Skip to content

Commit 160c919

Browse files
remove capital in folders
1 parent ba57c4b commit 160c919

File tree

17 files changed

+14
-7
lines changed

17 files changed

+14
-7
lines changed

generator/templates/Crud/src/Components/BaseResource.vue renamed to generator/templates/Crud/src/components/BaseResource.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</v-container>
2525
</template>
2626
<script>
27-
import FormDataValues from './../mixins/formDataValues';
27+
import FormDataValues from '../mixins/formDataValues';
2828
2929
export default {
3030
components: {},

generator/templates/Crud/src/Views/UserResource.vue renamed to generator/templates/Crud/src/views/UserResource.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
2-
import UserForm from './../components/forms/User.vue';
3-
import BaseResource from './../components/BaseResource.vue';
2+
import UserForm from '../components/forms/User.vue';
3+
import BaseResource from '../components/BaseResource.vue';
44
55
export default {
66
components: {UserForm},
@@ -34,4 +34,4 @@
3434

3535
<style scoped>
3636
37-
</style>
37+
</style>

generator/templates/Default/src/API.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
import axios from 'axios';
33
import router from './router';
44
import qs from 'qs';
5+
<%_ if (options.useAuthorisation) { _%>
56
import store from './store/store.js'
6-
7+
<%_ } _%>
78
/**
89
* Instantiate promise based HTTP client for the browser and node.js
910
*

generator/templates/Default/src/newmain.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import '@babel/polyfill'
22
import Vue from 'vue'
33
import API from './API.js';
44
import './plugins/vuetify'
5+
<%_ if (options.useCrud) { _%>
56
import VuetifyResource from '@kingscode/vuetify-resource';
7+
<%_ } _%>
68
import App from './App.vue'
79
import router from './router'
810
<%_ if (options.useAuthorisation) { _%>
@@ -12,12 +14,16 @@ import './registerServiceWorker'
1214

1315
Vue.prototype.$http = API;
1416
window.$http = API;
17+
<%_ if (options.useCrud) { _%>
1518
Vue.use(VuetifyResource);
19+
<%_ } _%>
1620

1721
Vue.config.productionTip = false
1822

1923
new Vue({
2024
router,
25+
<%_ if (options.useAuthorisation) { _%>
2126
store,
27+
<%_ } _%>
2228
render: h => h(App)
2329
}).$mount('#app')

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "vue-cli-plugin-kingscode-scaffold",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
99
"author": "",
1010
"license": "MIT",
11-
"dependencies": {
11+
"dependencies": {
1212
"file-system": "^2.2.2"
1313
}
1414
}

0 commit comments

Comments
 (0)