Skip to content

Commit

Permalink
fix: 🚨 replace const enums with normal enums
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Oct 8, 2024
1 parent 2c3509e commit 060b71a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import { mdiFileCheck, mdiFileKey, mdiKeyChain } from "@mdi/js";
import { useSessionStorage } from "@vueuse/core";
import ColorSwitcher from "@/components/ColorSwitcher.vue";
const enum Tab {
sign,
validate,
keygen,
enum Tab {
sign = 0,
validate = 1,
keygen = 2,
}
const tab = useSessionStorage("tab", Tab.sign);
Expand Down
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const generateKeyPair = (
});

// Binary serialized, DO NOT CHANGE THE ORDER!
export const enum FileType {
export enum FileType {
file = 0,
dir = 1,
other = 2,
Expand Down
1 change: 0 additions & 1 deletion src/components/FileSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { onMounted, onUnmounted, ref } from "vue";
import { VBtn, VCard, VDialog, VIcon } from "vuetify/components";
import { TauriEvent, type UnlistenFn, listen } from "@tauri-apps/api/event";
import { message, open } from "@tauri-apps/plugin-dialog";
// import { useVModel } from "@vueuse/core";
import { FileType, detectFileType } from "@/command";
import FolderOpen from "~icons/ic/twotone-folder-open";
import Reject from "~icons/ic/twotone-highlight-off";
Expand Down

0 comments on commit 060b71a

Please sign in to comment.