mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 21:34:24 +00:00
setup do linter run & fix
This commit is contained in:
@@ -176,5 +176,5 @@ export default {
|
|||||||
this.theme = '☽';
|
this.theme = '☽';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -53,4 +53,4 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
};
|
||||||
@@ -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': {} } ),
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
},
|
},
|
||||||
'websiteName': 'libreevent',
|
'websiteName': 'libreevent',
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores( useBackendStore )
|
...mapStores( useBackendStore )
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formData: {},
|
formData: {},
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
notifications,
|
notifications,
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -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 ] === '@' ) {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
formData: {}
|
formData: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores( useBackendStore )
|
...mapStores( useBackendStore )
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
formData: {}
|
formData: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores( useBackendStore )
|
...mapStores( useBackendStore )
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
})
|
} );
|
||||||
|
|||||||
Reference in New Issue
Block a user