Skip to content

Commit f98156e

Browse files
committed
update
1 parent b8312ec commit f98156e

File tree

17 files changed

+37
-50
lines changed

17 files changed

+37
-50
lines changed

src/Console/InstallCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected function installVue()
169169
});
170170

171171
// Composer Packages
172-
$this->requireComposerPackages('inertiajs/inertia-laravel:0.5.4', 'tightenco/ziggy:^1.4');
172+
$this->requireComposerPackages('inertiajs/inertia-laravel:0.5.4', 'laravel/sanctum:^2.8', 'tightenco/ziggy:^1.4');
173173

174174
(new Filesystem)->cleanDirectory(resource_path('views'));
175175

@@ -203,7 +203,6 @@ protected function installVue()
203203

204204
copy(__DIR__ . '/../../stubs/vue/tailwind.config.js', base_path('tailwind.config.js'));
205205
copy(__DIR__ . '/../../stubs/vue/webpack.mix.js', base_path('webpack.mix.js'));
206-
copy(__DIR__ . '/../../stubs/vue/webpack.config.js', base_path('webpack.config.js'));
207206
copy(__DIR__ . '/../../stubs/vue/jsconfig.json', base_path('jsconfig.json'));
208207
copy(__DIR__ . '/../../stubs/vue/.babelrc', base_path('.babelrc'));
209208

stubs/vue/resources/js/Components/ActionMessage.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
</div>
99
</template>
1010

11-
<script>
12-
import { defineComponent } from 'vue'
13-
14-
export default defineComponent({
15-
props: ['on'],
16-
})
11+
<script setup>
12+
defineProps(['on'])
1713
</script>

stubs/vue/resources/js/Components/Checkbox.vue

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,28 @@
33
class="text-purple-500 border-gray-300 rounded focus:border-purple-300 focus:ring focus:ring-purple-500 dark:border-gray-600 dark:bg-dark-eval-1 dark:focus:ring-offset-dark-eval-1">
44
</template>
55

6-
<script>
7-
export default {
8-
emits: ['update:checked'],
6+
<script setup>
7+
import { computed } from 'vue';
98
10-
props: {
11-
checked: {
12-
type: [Array, Boolean],
13-
default: false,
14-
},
15-
value: {
16-
default: null,
17-
},
9+
const emit = defineEmits(['update:checked']);
10+
11+
const props = defineProps({
12+
checked: {
13+
type: [Array, Boolean],
14+
default: false,
15+
},
16+
value: {
17+
default: null,
1818
},
19+
});
1920
20-
computed: {
21-
proxyChecked: {
22-
get() {
23-
return this.checked;
24-
},
21+
const proxyChecked = computed({
22+
get() {
23+
return props.checked;
24+
},
2525
26-
set(val) {
27-
this.$emit("update:checked", val);
28-
},
29-
},
26+
set(val) {
27+
emit("update:checked", val);
3028
},
31-
}
29+
})
3230
</script>

stubs/vue/resources/js/Components/DialogModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<script setup>
2525
import Modal from '@/Components/Modal'
2626
27-
const props = defineProps({
27+
defineProps({
2828
show: {
2929
default: false,
3030
},

stubs/vue/resources/js/Components/FormSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import { useSlots, computed } from 'vue'
2727
import SectionTitle from '@/Components/SectionTitle'
2828
29-
const emits = defineEmits(['submitted'])
29+
defineEmits(['submitted'])
3030
3131
const slots = useSlots()
3232

stubs/vue/resources/js/Components/InputError.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</template>
88

99
<script setup>
10-
const props = defineProps({
10+
defineProps({
1111
message: String
1212
})
1313
</script>

stubs/vue/resources/js/Components/Label.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script setup>
9-
const props = defineProps({
9+
defineProps({
1010
value: String
1111
})
1212
</script>

stubs/vue/resources/js/Layouts/Authenticated.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import Navbar from '@/Components/Navbar'
4444
import PageFooter from '@/Components/PageFooter'
4545
import { sidebarState } from '@/Composables'
4646
47-
const props = defineProps({
47+
defineProps({
4848
title: String
4949
})
5050
</script>

stubs/vue/resources/js/Layouts/Guest.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import PageFooter from '@/Components/PageFooter'
5353
import Button from '@/Components/Button'
5454
import { toggleDarkMode, isDark } from '@/Composables'
5555
56-
const props = defineProps({
56+
defineProps({
5757
title: String
5858
})
5959
</script>

stubs/vue/resources/js/Pages/Auth/ForgotPassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import Input from '@/Components/Input'
4343
import Label from '@/Components/Label'
4444
import ValidationErrors from '@/Components/ValidationErrors'
4545
46-
const props = defineProps({
46+
defineProps({
4747
status: String
4848
})
4949

0 commit comments

Comments
 (0)