create-v-kit-spa 1.0.10 → 1.0.12
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/README.md +4 -1
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +78 -67
- package/dist/count.d.ts +2 -2
- package/dist/count.d.ts.map +1 -1
- package/dist/count.js +45 -44
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/messages.d.ts +2 -2
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +70 -69
- package/dist/progress.d.ts +1 -1
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +38 -37
- package/dist/prompts.d.ts +4 -3
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +80 -77
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +33 -33
- package/dist/version.d.ts +1 -1
- package/dist/version.js +20 -20
- package/lib/162/.env.example +1 -7
- package/lib/162/README.md +0 -19
- package/lib/162/app/Http/Controllers/MainController.php +12 -0
- package/lib/162/composer.json +3 -7
- package/lib/162/composer.lock +579 -1140
- package/lib/162/config/cache.php +4 -3
- package/lib/162/config/database.php +5 -2
- package/lib/162/config/filesystems.php +3 -2
- package/lib/162/config/logging.php +1 -1
- package/lib/162/config/mail.php +15 -2
- package/lib/162/config/queue.php +4 -4
- package/lib/162/config/services.php +4 -0
- package/lib/162/config/session.php +0 -1
- package/lib/162/package.json +1 -9
- package/lib/162/public/.htaccess +6 -8
- package/lib/162/resources/js/app.js +10 -10
- package/lib/162/resources/js/components/About.vue +4 -4
- package/lib/162/resources/js/components/Home.vue +11 -11
- package/lib/162/resources/js/components/pages/About.vue +5 -0
- package/lib/162/resources/js/components/pages/Error.vue +5 -0
- package/lib/162/resources/js/components/pages/Home.vue +21 -0
- package/lib/162/resources/js/components/templates/App.vue +86 -0
- package/lib/162/resources/js/failOver.js +8 -8
- package/lib/162/resources/js/mainStore.js +20 -0
- package/lib/162/resources/js/router.js +40 -24
- package/lib/162/resources/js/store.js +18 -18
- package/lib/162/resources/js/templates/App.vue +65 -65
- package/lib/162/resources/js/views/HomeView.vue +7 -7
- package/lib/162/resources/views/layouts/app.blade.php +13 -14
- package/lib/162/resources/views/welcome.blade.php +2 -2
- package/lib/162/routes/web.php +2 -3
- package/lib/162/vite.config.js +1 -1
- package/package.json +1 -1
- package/lib/162/package-lock.json +0 -1330
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-app>
|
|
3
|
-
<v-app-bar
|
|
4
|
-
elevation="0"
|
|
5
|
-
density="compact"
|
|
6
|
-
color="black"
|
|
7
|
-
prominent
|
|
8
|
-
>
|
|
9
|
-
<v-app-bar-nav-icon variant="text" @click.stop="drawer = !drawer"></v-app-bar-nav-icon>
|
|
10
|
-
<v-toolbar-title >Vue 3 - Laravel 11 SPA</v-toolbar-title>
|
|
11
|
-
</v-app-bar>
|
|
12
|
-
|
|
13
|
-
<v-navigation-drawer
|
|
14
|
-
v-model="drawer"
|
|
15
|
-
temporary
|
|
16
|
-
>
|
|
17
|
-
|
|
18
|
-
<v-list density="compact" class="pt-0" >
|
|
19
|
-
<v-list-item
|
|
20
|
-
v-for="(item, i) in items"
|
|
21
|
-
:key="i"
|
|
22
|
-
:value="item"
|
|
23
|
-
color="gray"
|
|
24
|
-
@click="$router.push(item.to)"
|
|
25
|
-
>
|
|
26
|
-
<template v-slot:prepend>
|
|
27
|
-
<v-icon :icon="item.icon"></v-icon>
|
|
28
|
-
</template>
|
|
29
|
-
<v-list-item-title class="py-3" v-text="item.text"></v-list-item-title>
|
|
30
|
-
</v-list-item>
|
|
31
|
-
</v-list>
|
|
32
|
-
</v-navigation-drawer>
|
|
33
|
-
|
|
34
|
-
<v-main>
|
|
35
|
-
<router-view></router-view>
|
|
36
|
-
</v-main>
|
|
37
|
-
</v-app>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script>
|
|
41
|
-
import { ref } from 'vue';
|
|
42
|
-
|
|
43
|
-
export default {
|
|
44
|
-
setup() {
|
|
45
|
-
const drawer = ref(false);
|
|
46
|
-
|
|
47
|
-
const items = ref([
|
|
48
|
-
{
|
|
49
|
-
text: 'Home',
|
|
50
|
-
to: '/',
|
|
51
|
-
icon: 'mdi-home'
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
text: 'About',
|
|
55
|
-
to: '/about',
|
|
56
|
-
icon:'mdi-information-outline'
|
|
57
|
-
},
|
|
58
|
-
]);
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
drawer,
|
|
62
|
-
items
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
};
|
|
1
|
+
<template>
|
|
2
|
+
<v-app>
|
|
3
|
+
<v-app-bar
|
|
4
|
+
elevation="0"
|
|
5
|
+
density="compact"
|
|
6
|
+
color="black"
|
|
7
|
+
prominent
|
|
8
|
+
>
|
|
9
|
+
<v-app-bar-nav-icon variant="text" @click.stop="drawer = !drawer"></v-app-bar-nav-icon>
|
|
10
|
+
<v-toolbar-title >Vue 3 - Laravel 11 SPA</v-toolbar-title>
|
|
11
|
+
</v-app-bar>
|
|
12
|
+
|
|
13
|
+
<v-navigation-drawer
|
|
14
|
+
v-model="drawer"
|
|
15
|
+
temporary
|
|
16
|
+
>
|
|
17
|
+
|
|
18
|
+
<v-list density="compact" class="pt-0" >
|
|
19
|
+
<v-list-item
|
|
20
|
+
v-for="(item, i) in items"
|
|
21
|
+
:key="i"
|
|
22
|
+
:value="item"
|
|
23
|
+
color="gray"
|
|
24
|
+
@click="$router.push(item.to)"
|
|
25
|
+
>
|
|
26
|
+
<template v-slot:prepend>
|
|
27
|
+
<v-icon :icon="item.icon"></v-icon>
|
|
28
|
+
</template>
|
|
29
|
+
<v-list-item-title class="py-3" v-text="item.text"></v-list-item-title>
|
|
30
|
+
</v-list-item>
|
|
31
|
+
</v-list>
|
|
32
|
+
</v-navigation-drawer>
|
|
33
|
+
|
|
34
|
+
<v-main>
|
|
35
|
+
<router-view></router-view>
|
|
36
|
+
</v-main>
|
|
37
|
+
</v-app>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
import { ref } from 'vue';
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
setup() {
|
|
45
|
+
const drawer = ref(false);
|
|
46
|
+
|
|
47
|
+
const items = ref([
|
|
48
|
+
{
|
|
49
|
+
text: 'Home',
|
|
50
|
+
to: '/',
|
|
51
|
+
icon: 'mdi-home'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
text: 'About',
|
|
55
|
+
to: '/about',
|
|
56
|
+
icon:'mdi-information-outline'
|
|
57
|
+
},
|
|
58
|
+
]);
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
drawer,
|
|
62
|
+
items
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
66
|
</script>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import Home from '../components/Home.vue'
|
|
3
|
-
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<template>
|
|
7
|
-
<Home/>
|
|
1
|
+
<script setup>
|
|
2
|
+
import Home from '../components/Home.vue'
|
|
3
|
+
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<template>
|
|
7
|
+
<Home/>
|
|
8
8
|
</template>
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Vue 3 - Laravel 11 SPA</title>
|
|
7
|
+
|
|
8
|
+
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
9
|
+
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
</body>
|
|
15
14
|
</html>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
18
18
|
<body class="font-sans antialiased dark:bg-black dark:text-white/50">
|
|
19
|
-
<div
|
|
19
|
+
<div class="bg-gray-50 text-black/50 dark:bg-black dark:text-white/50">
|
|
20
20
|
<img id="background" class="absolute -left-20 top-0 max-w-[877px]" src="https://laravel.com/assets/img/welcome/background.svg" />
|
|
21
21
|
<div class="relative min-h-screen flex flex-col items-center justify-center selection:bg-[#FF2D20] selection:text-white">
|
|
22
22
|
<div class="relative w-full max-w-2xl px-6 lg:max-w-7xl">
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
<svg class="size-6 shrink-0 self-center stroke-[#FF2D20]" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75"/></svg>
|
|
141
141
|
</a>
|
|
142
142
|
|
|
143
|
-
<div class="flex items-start gap-4 rounded-lg bg-white p-6 shadow-[0px_14px_34px_0px_rgba(0,0,0,0.08)] ring-1 ring-white/[0.05] lg:pb-10 dark:bg-zinc-900 dark:ring-zinc-800">
|
|
143
|
+
<div class="flex items-start gap-4 rounded-lg bg-white p-6 shadow-[0px_14px_34px_0px_rgba(0,0,0,0.08)] ring-1 ring-white/[0.05] transition duration-300 hover:text-black/70 hover:ring-black/20 focus:outline-none focus-visible:ring-[#FF2D20] lg:pb-10 dark:bg-zinc-900 dark:ring-zinc-800 dark:hover:text-white/70 dark:hover:ring-zinc-700 dark:focus-visible:ring-[#FF2D20]">
|
|
144
144
|
<div class="flex size-12 shrink-0 items-center justify-center rounded-full bg-[#FF2D20]/10 sm:size-16">
|
|
145
145
|
<svg class="size-5 sm:size-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
146
146
|
<g fill="#FF2D20">
|
package/lib/162/routes/web.php
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<?php
|
|
2
2
|
|
|
3
3
|
use Illuminate\Support\Facades\Route;
|
|
4
|
+
use App\Http\Controllers\MainController;
|
|
4
5
|
|
|
5
|
-
Route::get('/{any?}',
|
|
6
|
-
return view('layouts.app');
|
|
7
|
-
})->where('any','.*');
|
|
6
|
+
Route::get('/{any?}', [MainController::class, 'index'])->where('any', '.*');
|
package/lib/162/vite.config.js
CHANGED