Add the missing commas and semicolons
This commit is contained in:
parent
dfc1aa4872
commit
9a28dc13b6
9 changed files with 21 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
defineProps(['url', 'name'])
|
defineProps(['url', 'name']);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
import './assets/main.sass';
|
import './assets/main.sass';
|
||||||
|
|
||||||
import { createApp } from 'vue';
|
import { createApp } from 'vue';
|
||||||
import { createI18n } from 'vue-i18n'
|
import { createI18n } from 'vue-i18n';
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core';
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
import router from './router';
|
import router from './router';
|
||||||
|
|
||||||
import msg_en from './locales/en.json';
|
import msg_en from './locales/en.json';
|
||||||
import msg_fr from './locales/fr.json';
|
import msg_fr from './locales/fr.json';
|
||||||
|
|
||||||
const default_locale = 'en'
|
const default_locale = 'en';
|
||||||
const stored_locale = useStorage('sake-locale', '');
|
const stored_locale = useStorage('sake-locale', '');
|
||||||
if (!stored_locale.value) {
|
if (!stored_locale.value) {
|
||||||
stored_locale.value = default_locale
|
stored_locale.value = default_locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {createRouter, createMemoryHistory} from 'vue-router';
|
import {createRouter, createMemoryHistory} from 'vue-router';
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core';
|
||||||
|
|
||||||
import MainView from '../views/MainView.vue';
|
import MainView from '../views/MainView.vue';
|
||||||
import AboutView from '../views/AboutView.vue';
|
import AboutView from '../views/AboutView.vue';
|
||||||
|
@ -21,17 +21,17 @@ const router = createRouter({
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'main',
|
name: 'main',
|
||||||
component: MainView,
|
component: MainView,
|
||||||
beforeEnter: requireAccounts
|
beforeEnter: requireAccounts,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/about',
|
path: '/about',
|
||||||
name: 'about',
|
name: 'about',
|
||||||
component: AboutView
|
component: AboutView,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/add-account',
|
path: '/add-account',
|
||||||
name: 'add-account',
|
name: 'add-account',
|
||||||
component: AddAccountView
|
component: AddAccountView,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/config',
|
path: '/config',
|
||||||
|
@ -47,7 +47,7 @@ const router = createRouter({
|
||||||
path: '/manage-accounts',
|
path: '/manage-accounts',
|
||||||
name: 'manage-accounts',
|
name: 'manage-accounts',
|
||||||
component: ManageAccountsView,
|
component: ManageAccountsView,
|
||||||
beforeEnter: requireAccounts
|
beforeEnter: requireAccounts,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core';
|
||||||
import { QrcodeStream, setZXingModuleOverrides } from 'vue-qrcode-reader';
|
import { QrcodeStream, setZXingModuleOverrides } from 'vue-qrcode-reader';
|
||||||
import { sha256 } from '@noble/hashes/sha256';
|
import { sha256 } from '@noble/hashes/sha256';
|
||||||
import base32Encode from 'base32-encode';
|
import base32Encode from 'base32-encode';
|
||||||
|
@ -36,7 +36,7 @@ const addDisabled = computed(() => {
|
||||||
localPart.value,
|
localPart.value,
|
||||||
separator.value,
|
separator.value,
|
||||||
domainName.value,
|
domainName.value,
|
||||||
privateKey.value
|
privateKey.value,
|
||||||
];
|
];
|
||||||
return !params.every((e) => e);
|
return !params.every((e) => e);
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { watch } from 'vue';
|
import { watch } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core';
|
||||||
import LayoutComponent from '../components/LayoutComponent.vue';
|
import LayoutComponent from '../components/LayoutComponent.vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core';
|
||||||
import LayoutComponent from '../components/LayoutComponent.vue';
|
import LayoutComponent from '../components/LayoutComponent.vue';
|
||||||
|
|
||||||
const accounts = useStorage('sake-accounts', []);
|
const accounts = useStorage('sake-accounts', []);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { sortAccounts } from '../accounts';
|
import { sortAccounts } from '../accounts';
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import { RouterLink, useRouter } from 'vue-router';
|
import { RouterLink, useRouter } from 'vue-router';
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core';
|
||||||
import { hmac } from '@noble/hashes/hmac';
|
import { hmac } from '@noble/hashes/hmac';
|
||||||
import { sha256 } from '@noble/hashes/sha256';
|
import { sha256 } from '@noble/hashes/sha256';
|
||||||
import base32Encode from 'base32-encode';
|
import base32Encode from 'base32-encode';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { sortAccounts } from '../accounts';
|
import { sortAccounts } from '../accounts';
|
||||||
import { RouterLink, useRouter } from 'vue-router';
|
import { RouterLink, useRouter } from 'vue-router';
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core';
|
||||||
import LayoutComponent from '../components/LayoutComponent.vue';
|
import LayoutComponent from '../components/LayoutComponent.vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { fileURLToPath, URL } from 'node:url'
|
import { fileURLToPath, URL } from 'node:url';
|
||||||
|
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite';
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
@ -11,7 +11,7 @@ export default defineConfig({
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
@ -28,4 +28,4 @@ export default defineConfig({
|
||||||
__VUE_I18N_LEGACY_API__: false,
|
__VUE_I18N_LEGACY_API__: false,
|
||||||
__INTLIFY_PROD_DEVTOOLS__: false,
|
__INTLIFY_PROD_DEVTOOLS__: false,
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
Loading…
Reference in a new issue