evophp 1.2.0 → 1.2.2
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/commands/new.js +12 -12
- 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/commands/new.js
CHANGED
|
@@ -129,25 +129,25 @@ async function setupPluginRepo(token, author, pluginName) {
|
|
|
129
129
|
return entry;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
async function setupTheme(token, author,
|
|
133
|
-
await createGitHubRepo(token, "kinsokafor/EvoTheme",
|
|
132
|
+
async function setupTheme(token, author, themeName) {
|
|
133
|
+
await createGitHubRepo(token, "kinsokafor/EvoTheme", themeName);
|
|
134
134
|
await cloneRepo(
|
|
135
135
|
author,
|
|
136
|
-
|
|
137
|
-
path.join("Public", "Themes",
|
|
136
|
+
themeName,
|
|
137
|
+
path.join("Public", "Themes", themeName)
|
|
138
138
|
);
|
|
139
139
|
|
|
140
|
-
await editFile(`./Public/Themes/${
|
|
141
|
-
|
|
140
|
+
await editFile(`./Public/Themes/${themeName}/Data/index.data.php`, {
|
|
141
|
+
themeName,
|
|
142
142
|
});
|
|
143
|
-
await editFile(`./Public/Themes/${
|
|
144
|
-
|
|
143
|
+
await editFile(`./Public/Themes/${themeName}/Data/login.data.php`, {
|
|
144
|
+
themeName,
|
|
145
145
|
});
|
|
146
|
-
await editFile(`./Public/Themes/${
|
|
147
|
-
|
|
146
|
+
await editFile(`./Public/Themes/${themeName}/Views/index.blade.php`, {
|
|
147
|
+
themeName,
|
|
148
148
|
});
|
|
149
|
-
await editFile(`./Public/Themes/${
|
|
150
|
-
|
|
149
|
+
await editFile(`./Public/Themes/${themeName}/Views/login.blade.php`, {
|
|
150
|
+
themeName,
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evophp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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;
|