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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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 ),
|
||||
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,7 +7,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import { defineStore } from "pinia";
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useBackendStore = defineStore( 'backend', {
|
||||
state: () => ( { 'visitedSetupPages': {} } ),
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
},
|
||||
'websiteName': 'libreevent',
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores( useBackendStore )
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
data() {
|
||||
return {
|
||||
formData: {},
|
||||
}
|
||||
};
|
||||
},
|
||||
components: {
|
||||
notifications,
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
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 ] === '@' ) {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
data () {
|
||||
return {
|
||||
formData: {}
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores( useBackendStore )
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
data () {
|
||||
return {
|
||||
formData: {}
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores( useBackendStore )
|
||||
|
||||
@@ -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