Add the missing commas and semicolons

This commit is contained in:
Rodolphe Bréard 2023-08-11 18:16:57 +02:00
parent dfc1aa4872
commit 9a28dc13b6
9 changed files with 21 additions and 21 deletions

View file

@ -1,5 +1,5 @@
<script setup>
defineProps(['url', 'name'])
defineProps(['url', 'name']);
</script>
<template>

View file

@ -1,18 +1,18 @@
import './assets/main.sass';
import { createApp } from 'vue';
import { createI18n } from 'vue-i18n'
import { useStorage } from '@vueuse/core'
import { createI18n } from 'vue-i18n';
import { useStorage } from '@vueuse/core';
import App from './App.vue';
import router from './router';
import msg_en from './locales/en.json';
import msg_fr from './locales/fr.json';
const default_locale = 'en'
const default_locale = 'en';
const stored_locale = useStorage('sake-locale', '');
if (!stored_locale.value) {
stored_locale.value = default_locale
stored_locale.value = default_locale;
}
const messages = {

View file

@ -1,5 +1,5 @@
import {createRouter, createMemoryHistory} from 'vue-router';
import { useStorage } from '@vueuse/core'
import { useStorage } from '@vueuse/core';
import MainView from '../views/MainView.vue';
import AboutView from '../views/AboutView.vue';
@ -21,17 +21,17 @@ const router = createRouter({
path: '/',
name: 'main',
component: MainView,
beforeEnter: requireAccounts
beforeEnter: requireAccounts,
},
{
path: '/about',
name: 'about',
component: AboutView
component: AboutView,
},
{
path: '/add-account',
name: 'add-account',
component: AddAccountView
component: AddAccountView,
},
{
path: '/config',
@ -47,7 +47,7 @@ const router = createRouter({
path: '/manage-accounts',
name: 'manage-accounts',
component: ManageAccountsView,
beforeEnter: requireAccounts
beforeEnter: requireAccounts,
},
]
});

View file

@ -1,7 +1,7 @@
<script setup>
import { ref, computed } from 'vue';
import { useRouter } from 'vue-router';
import { useStorage } from '@vueuse/core'
import { useStorage } from '@vueuse/core';
import { QrcodeStream, setZXingModuleOverrides } from 'vue-qrcode-reader';
import { sha256 } from '@noble/hashes/sha256';
import base32Encode from 'base32-encode';
@ -36,7 +36,7 @@ const addDisabled = computed(() => {
localPart.value,
separator.value,
domainName.value,
privateKey.value
privateKey.value,
];
return !params.every((e) => e);
});

View file

@ -2,7 +2,7 @@
import { watch } from 'vue';
import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { useStorage } from '@vueuse/core'
import { useStorage } from '@vueuse/core';
import LayoutComponent from '../components/LayoutComponent.vue';
const router = useRouter();

View file

@ -1,6 +1,6 @@
<script setup>
import { useRoute, useRouter } from 'vue-router';
import { useStorage } from '@vueuse/core'
import { useStorage } from '@vueuse/core';
import LayoutComponent from '../components/LayoutComponent.vue';
const accounts = useStorage('sake-accounts', []);

View file

@ -2,7 +2,7 @@
import { sortAccounts } from '../accounts';
import { ref, computed } from 'vue';
import { RouterLink, useRouter } from 'vue-router';
import { useStorage } from '@vueuse/core'
import { useStorage } from '@vueuse/core';
import { hmac } from '@noble/hashes/hmac';
import { sha256 } from '@noble/hashes/sha256';
import base32Encode from 'base32-encode';

View file

@ -1,7 +1,7 @@
<script setup>
import { sortAccounts } from '../accounts';
import { RouterLink, useRouter } from 'vue-router';
import { useStorage } from '@vueuse/core'
import { useStorage } from '@vueuse/core';
import LayoutComponent from '../components/LayoutComponent.vue';
const router = useRouter();

View file

@ -1,7 +1,7 @@
import { fileURLToPath, URL } from 'node:url'
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
// https://vitejs.dev/config/
export default defineConfig({
@ -11,7 +11,7 @@ export default defineConfig({
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
'@': fileURLToPath(new URL('./src', import.meta.url)),
}
},
build: {
@ -28,4 +28,4 @@ export default defineConfig({
__VUE_I18N_LEGACY_API__: false,
__INTLIFY_PROD_DEVTOOLS__: false,
}
})
});