-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update version * Add auth expire check * Add linux build script and update installer scripts * auth and UI bug fix * update electron version for dynamically change top bar (#37) * Update: Electron version to 7.0.0 * Add: Operating system dark mode support * Update: Private notes size is enlarged * add menu item became singular * fix import function (#38) * Fix import bug after electron update to 7.0.0 * Fix openexternal link issue and add success callback to paddle upgrade * Refactor copy content functions * Add detail mixin and implement for all detail pages * Fix server detail page * update servers * Improve search function * pre-release * change company logo at detail and create * added Generate tooltip * Add custom title bar * Implement a global search on the title bar * added closeDevTools * Update login page style * fix height * Fix title-bar drag issue * added server field * Update login page * Fix quit issue * update version 1.0.2 * add nvm usage to README * Update electron and axios * updated electron version * fix top bar links * removed paddle script * add http cookie authentication * fix check update url * update version to 1.0.3 * Bump path-parse from 1.0.6 to 1.0.7 (#50) Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/jbgutierrez/path-parse/releases) - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7) --- updated-dependencies: - dependency-name: path-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump dns-packet from 1.3.1 to 1.3.4 (#49) Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4. - [Release notes](https://github.com/mafintosh/dns-packet/releases) - [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md) - [Commits](mafintosh/dns-packet@v1.3.1...v1.3.4) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump hosted-git-info from 2.8.8 to 2.8.9 (#48) Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. - [Release notes](https://github.com/npm/hosted-git-info/releases) - [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md) - [Commits](npm/hosted-git-info@v2.8.8...v2.8.9) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * upgrade electron builder version for mac arm * update readme for build Co-authored-by: Oguzhan INAN <[email protected]> Co-authored-by: Faruk Oruç <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6bee8e2
commit 4bbf276
Showing
9 changed files
with
1,306 additions
and
790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "passwall", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "PassWall <[email protected]>", | ||
"description": "PassWall Desktop", | ||
"license": "MIT", | ||
|
@@ -99,7 +99,7 @@ | |
"del": "^3.0.0", | ||
"devtron": "^1.4.0", | ||
"electron": "^11.4.1", | ||
"electron-builder": "21.2.0", | ||
"electron-builder": "22.10", | ||
"electron-debug": "^1.5.0", | ||
"electron-devtools-installer": "^2.2.4", | ||
"electron-packager": "^15.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import store from '@/store'; | ||
|
||
export default (to, from, next) => { | ||
|
||
const isAuthPage = to.matched.some(record => record.meta.auth) | ||
const access_token = localStorage.getItem('access_token') | ||
if (access_token) { | ||
if (isAuthPage) { | ||
return next({ name: 'Home' }) | ||
} | ||
|
||
const isAuthenticated = store.getters['isAuthenticated'] | ||
if (isAuthenticated) { | ||
if (isAuthPage) { | ||
return next({ name: 'Home' }) | ||
} | ||
} else { | ||
if (!isAuthPage) { | ||
return next({ name: 'Login' }) | ||
} | ||
if (!isAuthPage) { | ||
return next({ name: 'Login' }) | ||
} | ||
} | ||
next() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.