@radiantabyss/vue 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Components.js +2 -2
- package/src/Directives.js +1 -1
- package/src/Mixins.js +1 -1
- package/src/Modals.js +1 -1
- package/src/Routing/Actions.js +1 -1
- package/src/Routing/Middleware.js +1 -1
- package/src/Routing/Router.js +2 -2
- package/src/Store.js +1 -1
package/package.json
CHANGED
package/src/Components.js
CHANGED
|
@@ -14,7 +14,7 @@ function getComponentName(file) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export default async (app) => {
|
|
17
|
-
//load
|
|
17
|
+
//load app components
|
|
18
18
|
let files = Object.keys(context);
|
|
19
19
|
let components = [];
|
|
20
20
|
|
|
@@ -32,7 +32,7 @@ export default async (app) => {
|
|
|
32
32
|
for ( let i = 0; i < files.length; i++ ) {
|
|
33
33
|
let component = getComponentName(files[i]);
|
|
34
34
|
|
|
35
|
-
//enable component overloading. if component is already defined in
|
|
35
|
+
//enable component overloading. if component is already defined in app, continue
|
|
36
36
|
if ( components.includes(component) ) {
|
|
37
37
|
continue;
|
|
38
38
|
}
|
package/src/Directives.js
CHANGED
package/src/Mixins.js
CHANGED
package/src/Modals.js
CHANGED
package/src/Routing/Actions.js
CHANGED
package/src/Routing/Router.js
CHANGED
|
@@ -11,14 +11,14 @@ window.Route = Route;
|
|
|
11
11
|
window.RouteCrud = RouteCrud;
|
|
12
12
|
|
|
13
13
|
//load route files
|
|
14
|
-
let context = import.meta.glob('/
|
|
14
|
+
let context = import.meta.glob('/app/Routes/**/*.js');
|
|
15
15
|
|
|
16
16
|
const loadModules = async () => {
|
|
17
17
|
window.Actions = await Actions();
|
|
18
18
|
const files = Object.keys(context);
|
|
19
19
|
|
|
20
20
|
for ( let i = 0; i < files.length; i++ ) {
|
|
21
|
-
let file = files[i].replace('/
|
|
21
|
+
let file = files[i].replace('/app/Routes/', '').replace(/\.js$/, '');
|
|
22
22
|
window.__route_file = file;
|
|
23
23
|
|
|
24
24
|
if ( !RouteFiles[__route_file] ) {
|
package/src/Store.js
CHANGED