feat: review backend and frontend
- update to the latest version of Java/SpringBoot - update to the latest version NuxtJS - add account/password update - add account creation - add account password reset - add bundle to regroup questions and add default questions on user creation - add bundle creation
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import type { NuxtAxiosInstance } from '@nuxtjs/axios'
|
||||
|
||||
/* eslint import/no-mutable-exports: 0 */
|
||||
let $axios: NuxtAxiosInstance;
|
||||
|
||||
export function initializeAxios(axiosInstance: NuxtAxiosInstance) {
|
||||
$axios = axiosInstance
|
||||
}
|
||||
|
||||
export { $axios }
|
4
frontend/utils/formatDate.ts
Normal file
4
frontend/utils/formatDate.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default (date: string) => {
|
||||
const dateObject = new Date(date);
|
||||
return dateObject.toLocaleDateString();
|
||||
}
|
4
frontend/utils/formatDateTime.ts
Normal file
4
frontend/utils/formatDateTime.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default (date: string) => {
|
||||
const dateObject = new Date(date);
|
||||
return dateObject.toLocaleDateString() + ' ' + dateObject.toLocaleTimeString();
|
||||
}
|
@@ -1,12 +0,0 @@
|
||||
import {Store} from 'vuex'
|
||||
import {getModule} from 'vuex-module-decorators'
|
||||
import Quiz from "~/store/quiz";
|
||||
|
||||
/* eslint import/no-mutable-exports: 0 */
|
||||
let quizStore: Quiz;
|
||||
|
||||
function initialiseStores(store: Store<any>): void {
|
||||
quizStore = getModule(Quiz, store);
|
||||
}
|
||||
|
||||
export {initialiseStores, quizStore}
|
Reference in New Issue
Block a user