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>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'notificationsAPI',
|
name: 'notificationsAPI',
|
||||||
props: {
|
props: {
|
||||||
location: {
|
location: {
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ const app = createApp( App );
|
|||||||
app.use( createPinia() );
|
app.use( createPinia() );
|
||||||
app.use( router );
|
app.use( router );
|
||||||
|
|
||||||
app.mount('#app');
|
app.mount( '#app' );
|
||||||
|
|||||||
@@ -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,9 +7,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from 'pinia';
|
||||||
|
|
||||||
export const useBackendStore = defineStore ( 'backend', {
|
export const useBackendStore = defineStore( 'backend', {
|
||||||
state: () => ( { 'visitedSetupPages': {} } ),
|
state: () => ( { 'visitedSetupPages': {} } ),
|
||||||
getters: {
|
getters: {
|
||||||
getVisitedSetupPages: ( state ) => state.visitedSetupPages,
|
getVisitedSetupPages: ( state ) => state.visitedSetupPages,
|
||||||
|
|||||||
@@ -81,11 +81,11 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { useBackendStore } from '@/stores/backendStore.js';
|
import { useBackendStore } from '@/stores/backendStore.js';
|
||||||
import { mapStores } from 'pinia';
|
import { mapStores } from 'pinia';
|
||||||
import notifications from '../components/notifications.vue';
|
import notifications from '../components/notifications.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
notifications,
|
notifications,
|
||||||
},
|
},
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
},
|
},
|
||||||
'websiteName': 'libreevent',
|
'websiteName': 'libreevent',
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores( useBackendStore )
|
...mapStores( useBackendStore )
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( this.formData.email.port && this.formData.email.host && this.formData.email.user && this.formData.email.pass
|
if ( this.formData.email.port && this.formData.email.host && this.formData.email.user && this.formData.email.pass
|
||||||
&& this.formData.dpEmail && this.formData.display && this.formData.websiteName ) {
|
&& this.formData.dpEmail && this.formData.display && this.formData.websiteName ) {
|
||||||
this.formData.mailDisplay = this.formData.display + ' <' + this.formData.dpEmail + '>';
|
this.formData.mailDisplay = this.formData.display + ' <' + this.formData.dpEmail + '>';
|
||||||
const options = {
|
const options = {
|
||||||
@@ -153,5 +153,5 @@
|
|||||||
this.formData = JSON.parse( sessionStorage.getItem( 'basics' ) );
|
this.formData = JSON.parse( sessionStorage.getItem( 'basics' ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -22,13 +22,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import notifications from '../components/notifications.vue';
|
import notifications from '../components/notifications.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formData: {},
|
formData: {},
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
notifications,
|
notifications,
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -45,18 +45,18 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { useBackendStore } from '@/stores/backendStore.js';
|
import { useBackendStore } from '@/stores/backendStore.js';
|
||||||
import { mapStores } from 'pinia';
|
import { mapStores } from 'pinia';
|
||||||
import notifications from '../components/notifications.vue';
|
import notifications from '../components/notifications.vue';
|
||||||
|
|
||||||
const lookup = [ '@', '!', '.', ',', '?', '%', '&', '-', '_', ':', ';', '*', '§', '<', '>', '{', '}', '[', ']', '(', ')', '/', '#' ];
|
const lookup = [ '@', '!', '.', ',', '?', '%', '&', '-', '_', ':', ';', '*', '§', '<', '>', '{', '}', '[', ']', '(', ')', '/', '#' ];
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
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 ] === '@' ) {
|
||||||
@@ -194,7 +194,7 @@
|
|||||||
this.formData = JSON.parse( sessionStorage.getItem( 'root' ) );
|
this.formData = JSON.parse( sessionStorage.getItem( 'root' ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,14 +21,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { useBackendStore } from '@/stores/backendStore.js';
|
import { useBackendStore } from '@/stores/backendStore.js';
|
||||||
import { mapStores } from 'pinia';
|
import { mapStores } from 'pinia';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
formData: {}
|
formData: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores( useBackendStore )
|
...mapStores( useBackendStore )
|
||||||
@@ -39,5 +39,5 @@
|
|||||||
this.$router.push( '/setup/basics' );
|
this.$router.push( '/setup/basics' );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -29,14 +29,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { useBackendStore } from '@/stores/backendStore.js';
|
import { useBackendStore } from '@/stores/backendStore.js';
|
||||||
import { mapStores } from 'pinia';
|
import { mapStores } from 'pinia';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
formData: {}
|
formData: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores( useBackendStore )
|
...mapStores( useBackendStore )
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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