Comparing version 1.3.0 to 1.3.1
@@ -18,3 +18,3 @@ /* | ||
* @source: https://github.com/xizon/f-curator | ||
* @version: 1.3.0 (January 22, 2022) | ||
* @version: 1.2.0 (January 26, 2022) | ||
* @author: UIUX Lab <uiuxlab@gmail.com> | ||
@@ -21,0 +21,0 @@ * @license: MIT |
@@ -5,2 +5,3 @@ /** | ||
const { app, Menu, shell } = require('electron'); | ||
const { officialWebsite } = require('../package.json'); | ||
const isMac = process.platform === 'darwin'; | ||
@@ -28,5 +29,5 @@ | ||
{ | ||
label: 'Visit Website', | ||
label: 'Official Website', | ||
click() { | ||
shell.openExternal('https://uiux.cc'); | ||
shell.openExternal(officialWebsite); | ||
} | ||
@@ -33,0 +34,0 @@ }, |
@@ -8,2 +8,3 @@ /** | ||
const { app, BrowserWindow } = require('electron'); | ||
const isDev = require('electron-is-dev'); | ||
const crawl = require('./crawl'); | ||
@@ -13,2 +14,3 @@ const buildHtml = require('./build-html'); | ||
const restoreDatabase = require('./restore-database'); | ||
const updateApp = require('./update-app'); | ||
const isMac = process.platform === 'darwin'; | ||
@@ -34,4 +36,4 @@ | ||
// get app information | ||
const { version, description, applicationName } = require('../package.json'); | ||
const appInfo = { "version": version, "description": description, "name": applicationName }; | ||
const { version, description, applicationName, officialWebsite } = require('../package.json'); | ||
const appInfo = { "version": version, "description": description, "name": applicationName, "website": officialWebsite }; | ||
@@ -309,8 +311,4 @@ // Create the browser window. | ||
/** | ||
* ////////////////////////////////////////////////////// | ||
* Simulate CommandOrControl+M in electron app | ||
* ////////////////////////////////////////////////////// | ||
*/ | ||
// Simulate CommandOrControl+M in electron app | ||
//------------------ | ||
const { globalShortcut } = require('electron'); | ||
@@ -321,7 +319,4 @@ globalShortcut.register('CommandOrControl+M', () => { | ||
/** | ||
* ////////////////////////////////////////////////////// | ||
* Make a link from Electron open in browser | ||
* ////////////////////////////////////////////////////// | ||
*/ | ||
// Make a link from Electron open in browser | ||
//------------------ | ||
win.webContents.on('new-window', function (e, url) { | ||
@@ -333,2 +328,12 @@ e.preventDefault(); | ||
// Updating Applications | ||
//------------------ | ||
//if (!isDev) { | ||
win.webContents.once("did-frame-finish-load", (event) => { | ||
updateApp(function(ver) { | ||
win.webContents.send('NOTIFY_UPDATE', {"version": ver, "website": officialWebsite}); | ||
})(); | ||
}) | ||
// } | ||
@@ -370,2 +375,1 @@ | ||
{ | ||
"name": "f-curator", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"applicationName": "F-Curator", | ||
"officialWebsite": "https://xizon.github.io/F-Curator-Official-Website/", | ||
"description": "F-Curator is an offline application that comes at you all day long and curates your own web favorites.", | ||
@@ -128,2 +129,3 @@ "main": "main/main.js", | ||
"axios": "^0.24.0", | ||
"electron-is-dev": "^2.0.0", | ||
"extract-zip": "^2.0.1", | ||
@@ -130,0 +132,0 @@ "got": "^10.4.0", |
@@ -50,3 +50,3 @@ # F-Curator | ||
- Judgment of URL validity and repetitiveness | ||
- Automatically extract resources local, such as icons | ||
- Automatically extract the remote resources, such as icons | ||
@@ -169,2 +169,8 @@ | ||
#### = 1.3.1 (January 26, 2022) = | ||
* new: Support application version detection. | ||
#### = 1.3.0 (January 22, 2022) = | ||
@@ -171,0 +177,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14103167
68
94345
229
9
+ Addedelectron-is-dev@^2.0.0
+ Addedelectron-is-dev@2.0.0(transitive)