Skip to content

Commit

Permalink
Export page deprecate old encryption #154
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Nov 16, 2021
1 parent fa11195 commit a9bbc88
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 38 deletions.
3 changes: 1 addition & 2 deletions app/export/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta charset="UTF-8" />
<!-- js -->
<script defer src="./src/js/index.js"></script>
<script defer src="./src/js/export.js"></script>
<!-- css -->
<link rel="stylesheet" href="../.././src/dragonfly.css" />
<link rel="stylesheet" href="../.././src/tailwind.css" />
Expand Down Expand Up @@ -41,7 +40,7 @@ <h4>You can export everything form your saved config.</h4>
<div class="before_export mx-auto rounded-2xl bg-gray-800 w-2/3 mt-20 mb-20">
<h2 class="pt-5">Export code(s)</h2>
<h3>If you saved your config you can export the secrets and the QR code(s).</h3>
<button class="buttoni but1 mb-5" id="but0" onclick="expChooser()">
<button class="buttoni but1 mb-5" id="but0" onclick="exportCodes()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4" />
</svg>
Expand Down
8 changes: 0 additions & 8 deletions app/export/src/js/export.js

This file was deleted.

18 changes: 0 additions & 18 deletions app/export/src/js/export.ts

This file was deleted.

14 changes: 4 additions & 10 deletions app/export/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,10 @@ const error = () => {
})
}

// ? new encryption method
const expChooser = () => {
if (settings.security.new_encryption === true) {
newExp()
} else {
exp()
}
}

const newExp = () => {
/**
* Export codes save to the disk
*/
const exportCodes = () => {
let password
let key

Expand Down

0 comments on commit a9bbc88

Please sign in to comment.