setup do linter run & fix

This commit is contained in:
janis
2023-10-05 13:31:51 +02:00
parent 46d565fbe7
commit 0352bb9051
12 changed files with 374 additions and 374 deletions

View File

@@ -176,5 +176,5 @@ export default {
this.theme = '☽'; this.theme = '☽';
} }
} }
} };
</script> </script>

View File

@@ -40,7 +40,7 @@
currentID: { 'critical': 0, 'medium': 1000, 'low': 100000 }, currentID: { 'critical': 0, 'medium': 1000, 'low': 100000 },
displayTimeCurrentNotification: 0, displayTimeCurrentNotification: 0,
notificationScheduler: null, notificationScheduler: null,
} };
}, },
methods: { methods: {
createNotification( message, showDuration, messageType, priority ) { createNotification( message, showDuration, messageType, priority ) {
@@ -116,7 +116,7 @@
unmounted ( ) { unmounted ( ) {
clearInterval( this.notificationScheduler ); clearInterval( this.notificationScheduler );
} }
} };
</script> </script>
<style scoped> <style scoped>

View File

@@ -20,14 +20,14 @@ let routes = [
title: 'Admin login - Restart required! :: libreevent' title: 'Admin login - Restart required! :: libreevent'
} }
}, },
] ];
routes.push( setupRoutes ); routes.push( setupRoutes );
const router = createRouter( { const router = createRouter( {
history: createWebHistory( import.meta.env.BASE_URL ), history: createWebHistory( import.meta.env.BASE_URL ),
routes: routes routes: routes
} ) } );
router.beforeEach( ( to ) => { router.beforeEach( ( to ) => {
let backendStore = useBackendStore(); let backendStore = useBackendStore();
@@ -41,4 +41,4 @@ router.afterEach( ( to ) => {
document.title = to.meta.title ? to.meta.title : 'libreevent'; document.title = to.meta.title ? to.meta.title : 'libreevent';
} ); } );
export default router export default router;

View File

@@ -53,4 +53,4 @@ export default {
} }
}, },
] ]
} };

View File

@@ -7,7 +7,7 @@
* *
*/ */
import { defineStore } from "pinia"; import { defineStore } from 'pinia';
export const useBackendStore = defineStore( 'backend', { export const useBackendStore = defineStore( 'backend', {
state: () => ( { 'visitedSetupPages': {} } ), state: () => ( { 'visitedSetupPages': {} } ),

View File

@@ -101,7 +101,7 @@
}, },
'websiteName': 'libreevent', 'websiteName': 'libreevent',
}, },
} };
}, },
computed: { computed: {
...mapStores( useBackendStore ) ...mapStores( useBackendStore )

View File

@@ -28,7 +28,7 @@
data() { data() {
return { return {
formData: {}, formData: {},
} };
}, },
components: { components: {
notifications, notifications,
@@ -63,7 +63,7 @@
} }
} ); } );
} }
} };
</script> </script>
<style scoped> <style scoped>

View File

@@ -56,7 +56,7 @@
formData: {}, formData: {},
passwordCheck: true, passwordCheck: true,
emailStatus: '', emailStatus: '',
} };
}, },
components: { components: {
notifications, notifications,
@@ -96,7 +96,7 @@
} }
} }
} else if ( !( /[a-z]/.test( mail[ l ] ) || /[A-Z]/.test( mail[ l ] ) || /[1-9]/.test( mail[ l ] ) || mail[ l ] === '-' || mail[ l ] === '_' ) ) { } else if ( !( /[a-z]/.test( mail[ l ] ) || /[A-Z]/.test( mail[ l ] ) || /[1-9]/.test( mail[ l ] ) || mail[ l ] === '-' || mail[ l ] === '_' ) ) {
return false return false;
} }
} else { } else {
if ( mail[ l ] === '@' ) { if ( mail[ l ] === '@' ) {

View File

@@ -28,7 +28,7 @@
data () { data () {
return { return {
formData: {} formData: {}
} };
}, },
computed: { computed: {
...mapStores( useBackendStore ) ...mapStores( useBackendStore )

View File

@@ -36,7 +36,7 @@
data () { data () {
return { return {
formData: {} formData: {}
} };
}, },
computed: { computed: {
...mapStores( useBackendStore ) ...mapStores( useBackendStore )

View File

@@ -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( {
@@ -16,4 +16,4 @@ export default defineConfig( {
server: { server: {
'port': 8081 'port': 8081
} }
}) } );