make all vue folders lowercase
This commit is contained in:
@@ -24,9 +24,8 @@
|
||||
|
||||
|
||||
<script>
|
||||
import TableValueDirective from 'zerocomponents/Tables/table-value.js';
|
||||
import TableValueDirective from './table-value.js';
|
||||
import UiPagination from 'zerocomponents/pagination.vue';
|
||||
import Strings from 'zeroservices/strings';
|
||||
import { each as _each, extend as _extend } from 'underscore';
|
||||
|
||||
const defaultConfig = {
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
// Globally register all pages for convenience, because they
|
||||
// will be used very frequently. Page components are registered using the
|
||||
// PascalCased version of their file name.
|
||||
|
||||
import Vue from 'vue';
|
||||
|
||||
|
||||
// https://webpack.js.org/guides/dependency-management/#require-context
|
||||
const requireComponent = require.context(
|
||||
// Look for files in the current directory
|
||||
'.',
|
||||
// Do look in subdirectories
|
||||
true,
|
||||
// .vue files
|
||||
/[\w-]+\.vue$/
|
||||
);
|
||||
|
||||
// For each matching file name...
|
||||
requireComponent.keys().forEach((path) =>
|
||||
{
|
||||
let pathParts = path.split('/');
|
||||
let fileName = pathParts[pathParts.length - 1];
|
||||
|
||||
// Get the component config
|
||||
const componentConfig = requireComponent(path);
|
||||
// Get the PascalCase version of the component name
|
||||
const componentName = 'app' + fileName
|
||||
// Remove the "./_" from the beginning
|
||||
.replace(/^\.\/_/, '')
|
||||
// Remove the file extension from the end
|
||||
.replace(/\.\w+$/, '')
|
||||
// Split up kebabs
|
||||
.split('-')
|
||||
// Upper case
|
||||
.map((kebab) => kebab.charAt(0).toUpperCase() + kebab.slice(1))
|
||||
// Concatenated
|
||||
.join('');
|
||||
|
||||
// Globally register the component
|
||||
Vue.component(componentName, componentConfig.default || componentConfig);
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
import Vue from 'vue';
|
||||
import AppConfirm from 'zerocomponents/Overlays/confirm';
|
||||
import AppConfirm from 'zerocomponents/overlays/confirm';
|
||||
import Strings from 'zeroservices/strings';
|
||||
import { find as _find, extend as _extend } from 'underscore';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vue from 'vue';
|
||||
import VueRouter from 'vue-router';
|
||||
import Localization from 'zeroservices/localization';
|
||||
import ViewDefault from 'zeropages/page';
|
||||
import ViewDefault from 'zeropages/pages/page';
|
||||
|
||||
Vue.use(VueRouter);
|
||||
|
||||
@@ -24,13 +24,13 @@ let addSection = (section, component) =>
|
||||
|
||||
zero.sections.forEach(section =>
|
||||
{
|
||||
addSection(section, () => import('zeropages/' + section.alias));
|
||||
addSection(section, () => import('zeropages/' + section.alias + '/' + section.alias));
|
||||
|
||||
if (section.children.length > 0)
|
||||
{
|
||||
section.children.forEach(child =>
|
||||
{
|
||||
addSection(child, () => import('zeropages/' + section.alias + '/' + child.alias));
|
||||
addSection(child, () => import('zeropages/' + section.alias + '/' + section.alias + '/' + child.alias));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
<script>
|
||||
import '../Sass/app.scss'
|
||||
import AppNavigation from 'zero/navigation.vue'
|
||||
import AppLogin from 'zeropages/login.vue'
|
||||
import AppOverlays from 'zerocomponents/Overlays/overlay-holder.vue'
|
||||
import AppLogin from 'zeropages/login/login.vue'
|
||||
import AppOverlays from 'zerocomponents/overlays/overlay-holder.vue'
|
||||
import Router from 'zero/app.router.js'
|
||||
import AuthApi from 'zeroservices/auth.js'
|
||||
import 'zero/axios.config.js'
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<script>
|
||||
import Sass from '../Sass/setup.scss'
|
||||
import UiButton from 'zerocomponents/Buttons/button.vue'
|
||||
import UiButton from 'zerocomponents/buttons/button.vue'
|
||||
import StepUser from './Steps/step-user.vue'
|
||||
import StepApplication from './Steps/step-application.vue'
|
||||
import StepDatabase from './Steps/step-database.vue'
|
||||
|
||||
Reference in New Issue
Block a user