Skip to content

Commit

Permalink
Version v1.2.1 (#62)
Browse files Browse the repository at this point in the history
* 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] <support@github.com>

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] <support@github.com>

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] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* upgrade electron builder version for mac arm

* update readme for build

* add build information

* add password check and refactor password buttons

* add hover color to button components

* refactor delete and edit buttons on detail pages

* Refactor detail delete buttons

* refactor textarea components

* feature always on top

* update version and readme

* refactor: refactor export logic

* refactor: refactor export

* Bump terser from 4.8.0 to 4.8.1 (#59)

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump electron from 11.5.0 to 15.5.5 (#58)

Bumps [electron](https://github.com/electron/electron) from 11.5.0 to 15.5.5.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](electron/electron@v11.5.0...v15.5.5)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eventsource from 1.1.0 to 1.1.1 (#57)

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](EventSource/eventsource@v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ejs from 3.1.6 to 3.1.8 (#61)

Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.8.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](mde/ejs@v3.1.6...v3.1.8)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump plist from 3.0.4 to 3.0.6 (#60)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.6.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refactor: update version to 1.2.1

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Oguzhan INAN <oguzhan3488@gmail.com>
Co-authored-by: Faruk Oruç <ooruc471@yandex.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Aug 21, 2022
1 parent 36e83ec commit 447bbe6
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 80 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "passwall",
"version": "1.0.4",
"version": "1.2.1",
"author": "PassWall <hello@passwall.io>",
"description": "PassWall Desktop",
"license": "MIT",
Expand Down Expand Up @@ -100,7 +100,7 @@
"css-loader": "^0.28.11",
"del": "^3.0.0",
"devtron": "^1.4.0",
"electron": "^11.4.1",
"electron": "^15.5.5",
"electron-builder": "^22.11.7",
"electron-debug": "^1.5.0",
"electron-devtools-installer": "^2.2.4",
Expand Down
91 changes: 81 additions & 10 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@

<script>
import fs from 'fs'
import path from 'path'
import Papa from 'papaparse'
import { remote, ipcRenderer } from 'electron'
import { mapActions, mapMutations, mapState } from 'vuex'
import CryptoUtils from '@/utils/crypto'
import SystemService from '@/api/services/System'
export default {
data() {
Expand Down Expand Up @@ -96,20 +98,89 @@ export default {
},
async onExport() {
const filePath = remote.dialog.showSaveDialogSync(null)
const dir = remote.dialog.showOpenDialogSync({
title: 'Select Export Directory',
properties: ['openDirectory', 'createDirectory']
})
if (!filePath) {
if (dir.length === 0) {
return
}
try {
const data = await this.Export()
const itemList = JSON.parse(CryptoUtils.aesDecrypt(data))
itemList.forEach(item => CryptoUtils.decryptFields(item))
const csvContent = Papa.unparse(itemList)
fs.writeFileSync(filePath, csvContent)
const { data } = await SystemService.Export()
const itemList = JSON.parse(CryptoUtils.aesDecrypt(data.data))
// console.log(itemList.Logins)
const LoginEncryptedFields = ['username', 'password', 'extra']
itemList.Logins.forEach(item => CryptoUtils.decryptFields(item, LoginEncryptedFields))
const ServerEncryptedFields = ['ip','username','password','hosting_username','hosting_password','admin_username','admin_password','extra']
itemList.Servers.forEach(item => CryptoUtils.decryptFields(item, ServerEncryptedFields))
const NoteEncryptedFields = ['note']
itemList.Notes.forEach(item => CryptoUtils.decryptFields(item, NoteEncryptedFields))
const EmailEncryptedFields = ['email', 'password']
itemList.Emails.forEach(item => CryptoUtils.decryptFields(item, EmailEncryptedFields))
const CreditCardEncryptedFields = ['type', 'number', 'expiry_date', 'cardholder_name', 'verification_number']
itemList.CreditCards.forEach(item => CryptoUtils.decryptFields(item, CreditCardEncryptedFields))
const BankAccountEncryptedFields = ['account_name', 'account_number', 'iban', 'currency', 'password']
itemList.BankAccounts.forEach(item => CryptoUtils.decryptFields(item, BankAccountEncryptedFields))
const contentLogins = Papa.unparse(itemList.Logins)
fs.writeFile(path.join(dir[0],"logins.csv"), contentLogins, function (err) {
if (err) {
this.$notifyError(this.$t('Something went wrong.'))
console.log(err)
}
});
const contentServer = Papa.unparse(itemList.Servers)
fs.writeFile(path.join(dir[0],"servers.csv"), contentServer, function (err) {
if (err) {
this.$notifyError(this.$t('Something went wrong.'))
console.log(err)
}
});
const contentNote = Papa.unparse(itemList.Notes)
fs.writeFile(path.join(dir[0],"notes.csv"), contentNote, function (err) {
if (err) {
this.$notifyError(this.$t('Something went wrong.'))
console.log(err)
}
});
const contentEmail = Papa.unparse(itemList.Emails)
fs.writeFile(path.join(dir[0],"emails.csv"), contentEmail, function (err) {
if (err) {
this.$notifyError(this.$t('Something went wrong.'))
console.log(err)
}
});
const contentCreditCard = Papa.unparse(itemList.CreditCards)
fs.writeFile(path.join(dir[0],"credit_cards.csv"), contentCreditCard, function (err) {
if (err) {
this.$notifyError(this.$t('Something went wrong.'))
console.log(err)
}
});
const contentBankAccount = Papa.unparse(itemList.BankAccounts)
fs.writeFile(path.join(dir[0],"credit_cards.csv"), contentBankAccount, function (err) {
if (err) {
this.$notifyError(this.$t('Something went wrong.'))
console.log(err)
}
});
this.$notifySuccess(this.$t(`All records exported successfully.`))
} catch (error) {
this.$notifyError(this.$t('Something went wrong.'))
console.log(error)
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/api/services/System.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default class SystemService {
}

static async Export() {
return HTTPClient.post(`/api/system/export`)
return HTTPClient.get(`/api/system/export`)
}
}
Loading

0 comments on commit 447bbe6

Please sign in to comment.