mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
setup do linter run & fix
This commit is contained in:
@@ -176,5 +176,5 @@ export default {
|
||||
this.theme = '☽';
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -15,7 +15,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
name: 'notificationsAPI',
|
||||
props: {
|
||||
location: {
|
||||
@@ -40,7 +40,7 @@
|
||||
currentID: { 'critical': 0, 'medium': 1000, 'low': 100000 },
|
||||
displayTimeCurrentNotification: 0,
|
||||
notificationScheduler: null,
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
createNotification( message, showDuration, messageType, priority ) {
|
||||
@@ -116,7 +116,7 @@
|
||||
unmounted ( ) {
|
||||
clearInterval( this.notificationScheduler );
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -9,4 +9,4 @@ const app = createApp( App );
|
||||
app.use( createPinia() );
|
||||
app.use( router );
|
||||
|
||||
app.mount('#app');
|
||||
app.mount( '#app' );
|
||||
|
||||
@@ -20,14 +20,14 @@ let routes = [
|
||||
title: 'Admin login - Restart required! :: libreevent'
|
||||
}
|
||||
},
|
||||
]
|
||||
];
|
||||
|
||||
routes.push( setupRoutes );
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
const router = createRouter( {
|
||||
history: createWebHistory( import.meta.env.BASE_URL ),
|
||||
routes: routes
|
||||
} )
|
||||
} );
|
||||
|
||||
router.beforeEach( ( to ) => {
|
||||
let backendStore = useBackendStore();
|
||||
@@ -41,4 +41,4 @@ router.afterEach( ( to ) => {
|
||||
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': {} } ),
|
||||
getters: {
|
||||
getVisitedSetupPages: ( state ) => state.visitedSetupPages,
|
||||
|
||||
@@ -81,11 +81,11 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { useBackendStore } from '@/stores/backendStore.js';
|
||||
import { mapStores } from 'pinia';
|
||||
import notifications from '../components/notifications.vue';
|
||||
import { useBackendStore } from '@/stores/backendStore.js';
|
||||
import { mapStores } from 'pinia';
|
||||
import notifications from '../components/notifications.vue';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
notifications,
|
||||
},
|
||||
@@ -101,7 +101,7 @@
|
||||
},
|
||||
'websiteName': 'libreevent',
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores( useBackendStore )
|
||||
@@ -115,7 +115,7 @@
|
||||
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.mailDisplay = this.formData.display + ' <' + this.formData.dpEmail + '>';
|
||||
const options = {
|
||||
@@ -153,5 +153,5 @@
|
||||
this.formData = JSON.parse( sessionStorage.getItem( 'basics' ) );
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import notifications from '../components/notifications.vue';
|
||||
import notifications from '../components/notifications.vue';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
formData: {},
|
||||
}
|
||||
};
|
||||
},
|
||||
components: {
|
||||
notifications,
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -45,18 +45,18 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { useBackendStore } from '@/stores/backendStore.js';
|
||||
import { mapStores } from 'pinia';
|
||||
import notifications from '../components/notifications.vue';
|
||||
import { useBackendStore } from '@/stores/backendStore.js';
|
||||
import { mapStores } from 'pinia';
|
||||
import notifications from '../components/notifications.vue';
|
||||
|
||||
const lookup = [ '@', '!', '.', ',', '?', '%', '&', '-', '_', ':', ';', '*', '§', '<', '>', '{', '}', '[', ']', '(', ')', '/', '#' ];
|
||||
export default {
|
||||
const lookup = [ '@', '!', '.', ',', '?', '%', '&', '-', '_', ':', ';', '*', '§', '<', '>', '{', '}', '[', ']', '(', ')', '/', '#' ];
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
formData: {},
|
||||
passwordCheck: true,
|
||||
emailStatus: '',
|
||||
}
|
||||
};
|
||||
},
|
||||
components: {
|
||||
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 ] === '_' ) ) {
|
||||
return false
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if ( mail[ l ] === '@' ) {
|
||||
@@ -194,7 +194,7 @@
|
||||
this.formData = JSON.parse( sessionStorage.getItem( 'root' ) );
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -21,14 +21,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { useBackendStore } from '@/stores/backendStore.js';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useBackendStore } from '@/stores/backendStore.js';
|
||||
import { mapStores } from 'pinia';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
formData: {}
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores( useBackendStore )
|
||||
@@ -39,5 +39,5 @@
|
||||
this.$router.push( '/setup/basics' );
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -29,14 +29,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { useBackendStore } from '@/stores/backendStore.js';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useBackendStore } from '@/stores/backendStore.js';
|
||||
import { mapStores } from 'pinia';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
formData: {}
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores( useBackendStore )
|
||||
@@ -55,7 +55,7 @@
|
||||
}
|
||||
} );
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -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( {
|
||||
@@ -16,4 +16,4 @@ export default defineConfig( {
|
||||
server: {
|
||||
'port': 8081
|
||||
}
|
||||
})
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user