feat: add frontend

This commit is contained in:
2022-10-07 16:15:53 +02:00
parent abfaf19c47
commit 97059d4c6e
72 changed files with 47026 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { initializeAxios } from '~/utils/api'
const accessor: ({$axios}: { $axios: any }) => void = ({ $axios }) => {
initializeAxios($axios)
}
export default accessor

View File

@@ -0,0 +1,13 @@
import Vue from 'vue'
Vue.filter('formatDate', (value: string) => {
const date = new Date(value);
return `${(date.getDate() > 9 ? '' : '0')
+ date.getDate()}/${((date.getMonth() + 1) > 9 ? "" : "0")
+ (date.getMonth() + 1)}/${date.getFullYear()}`;
})
Vue.filter('formatRate', (value: number) => {
return value.toFixed(1);
})