Skip to content

Commit d7fd49a

Browse files
committed
feat: versioning
1 parent b9872c1 commit d7fd49a

File tree

5 files changed

+2262
-21218
lines changed

5 files changed

+2262
-21218
lines changed

.eslintrc.js

+11
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,16 @@ module.exports = {
6262
'@typescript-eslint/explicit-function-return-type': ['off'],
6363
},
6464
},
65+
{
66+
files: [
67+
'store/global/actions.ts',
68+
'store/global/getters.ts',
69+
'store/global/mutations.ts',
70+
'types/vue-shims-tsx.d.ts',
71+
],
72+
rules: {
73+
'import/named': 'off',
74+
},
75+
},
6576
],
6677
}

api/repository.ts

+18-17
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,25 @@ import { AxiosInstance } from 'axios'
1010
*
1111
* @return
1212
*/
13-
export default ($axios: AxiosInstance) => (resource: string): any => ({
14-
index(): any {
15-
return $axios.get(`${resource}`)
16-
},
13+
export default ($axios: AxiosInstance) =>
14+
(resource: string): any => ({
15+
index(): any {
16+
return $axios.get(`${resource}`)
17+
},
1718

18-
show(id: string): any {
19-
return $axios.get(`${resource}/${id}`)
20-
},
19+
show(id: string): any {
20+
return $axios.get(`${resource}/${id}`)
21+
},
2122

22-
create(payload: any): any {
23-
return $axios.post(`${resource}`, payload)
24-
},
23+
create(payload: any): any {
24+
return $axios.post(`${resource}`, payload)
25+
},
2526

26-
update(id: string, payload: any): any {
27-
return $axios.post(`${resource}/${id}`, payload)
28-
},
27+
update(id: string, payload: any): any {
28+
return $axios.post(`${resource}/${id}`, payload)
29+
},
2930

30-
delete(id: string): any {
31-
return $axios.delete(`${resource}/${id}`)
32-
},
33-
})
31+
delete(id: string): any {
32+
return $axios.delete(`${resource}/${id}`)
33+
},
34+
})

components/footer/Footer.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<template>
22
<v-footer app color="primary">
3-
<span class="mx-auto white--text font-weight-bold"
4-
>{{ new Date().getFullYear() }} &copy; {{ $config.appName }}</span
5-
>
3+
<span class="mx-auto white--text font-weight-bold">
4+
{{ new Date().getFullYear() }} &copy; {{ $config.appName }}
5+
{{ $config.appVersion }}
6+
</span>
67
</v-footer>
78
</template>
89

nuxt.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export default {
119119
*/
120120
publicRuntimeConfig: {
121121
appName: process.env.APP_NAME,
122+
appVersion: 'v1.0.0',
122123
},
123124
/**
124125
* Private runtime configs

0 commit comments

Comments
 (0)