evophp 1.2.0 → 1.2.1
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 +3 -2
- package/templates/blade.landing.php +2 -0
- package/templates/js.entry.js +11 -0
- package/templates/js.router.js +27 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evophp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Command-line installer for the Evolution PHP framework",
|
|
5
5
|
"bin": {
|
|
6
6
|
"evophp": "./bin/evophp.js"
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"bin/",
|
|
14
14
|
"commands/",
|
|
15
|
-
"utils/"
|
|
15
|
+
"utils/",
|
|
16
|
+
"templates/"
|
|
16
17
|
],
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"axios": "^1.7.9",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {createApp} from 'vue'
|
|
2
|
+
import app from '@/components/AppMount.vue'
|
|
3
|
+
import router from './router'
|
|
4
|
+
import { createPinia } from 'pinia'
|
|
5
|
+
import restricted from '@/plugins/restricted'
|
|
6
|
+
|
|
7
|
+
createApp(app)
|
|
8
|
+
.use(createPinia())
|
|
9
|
+
.use(restricted)
|
|
10
|
+
.use(router)
|
|
11
|
+
.mount("#app")
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {createRouter, createWebHashHistory} from 'vue-router'
|
|
2
|
+
import NotFound from '@/components/NotFound.vue'
|
|
3
|
+
|
|
4
|
+
const router = createRouter({
|
|
5
|
+
history: createWebHashHistory(),
|
|
6
|
+
routes : [
|
|
7
|
+
{
|
|
8
|
+
path: '/',
|
|
9
|
+
name: 'Dashboard',
|
|
10
|
+
component: NotFound,
|
|
11
|
+
meta: {title: "Dashboard | Home"}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
path: '/:pathMatch(.*)*',
|
|
15
|
+
name: 'NotFound',
|
|
16
|
+
component: NotFound,
|
|
17
|
+
meta: {title: "404 Not Found"}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
router.beforeEach((to, from, next) => {
|
|
23
|
+
document.title = `${to.meta.title}`;
|
|
24
|
+
next();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export default router;
|