Skip to content

Commit 59bda66

Browse files
authored
Merge pull request #149 from krekas/support-L11
Support for Laravel 11
2 parents 291758a + aaf5508 commit 59bda66

File tree

103 files changed

+1967
-12401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1967
-12401
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ Example screenshots from Windmill theme:
104104
- [AdminLTE - Bootstrap 4](https://adminlte.io/)
105105
- [Plainadmin - Bootstrap 5](https://plainadmin.com/)
106106
- [Volt - Bootstrap 5](https://demo.themesberg.com/volt/) - contributed by [@knaazimkhan](https://github.com/knaazimkhan)
107-
- [SB Admin 2 - Bootstrap 4](https://startbootstrap.github.io/startbootstrap-sb-admin-2/) - contributed by [@pcmehrdad](https://github.com/pcmehrdad)
108107
109108
---
110109

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"email": "povilas@laraveldaily.com"
99
}
1010
],
11+
"require": {
12+
"php": "^8.2.0",
13+
"illuminate/filesystem": "^11.0"
14+
},
1115
"autoload": {
1216
"psr-4": {
1317
"LaravelDaily\\Larastarters\\": "src"
@@ -20,5 +24,5 @@
2024
]
2125
}
2226
},
23-
"version": "2.3.3"
27+
"version": "3.0.0"
2428
}
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
<template>
2-
<input type="checkbox" :value="value" v-model="proxyChecked"
3-
class="ml-1 w-5 h-5 rounded border-0 transition-all duration-150 ease-linear form-checkbox text-slate-700">
4-
</template>
5-
61
<script setup>
72
import { computed } from 'vue';
3+
84
const emit = defineEmits(['update:checked']);
5+
96
const props = defineProps({
107
checked: {
118
type: [Array, Boolean],
@@ -15,6 +12,7 @@ const props = defineProps({
1512
default: null,
1613
},
1714
});
15+
1816
const proxyChecked = computed({
1917
get() {
2018
return props.checked;
@@ -24,3 +22,8 @@ const proxyChecked = computed({
2422
},
2523
});
2624
</script>
25+
26+
<template>
27+
<input type="checkbox" :value="value" v-model="proxyChecked"
28+
class="ml-1 w-5 h-5 rounded border-0 transition-all duration-150 ease-linear form-checkbox text-slate-700">
29+
</template>

resources/stubs/breeze/inertia/notusjs/js/Components/Dropdown.vue

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
<template>
2-
<div class="relative">
3-
<div @click="open = ! open">
4-
<slot name="trigger" />
5-
</div>
6-
7-
<transition
8-
enter-active-class="transition duration-200 ease-out"
9-
enter-from-class="opacity-0 transform scale-95"
10-
enter-to-class="opacity-100 transform scale-100"
11-
leave-active-class="transition duration-75 ease-in"
12-
leave-from-class="opacity-100 transform scale-100"
13-
leave-to-class="opacity-0 transform scale-95">
14-
<div v-show="open"
15-
class="absolute right-0 z-50 mt-2 mt-8 w-48 rounded-md shadow-lg origin-top-right sm:mt-0"
16-
style="display: none;"
17-
@click="open = false">
18-
<div class="py-1 bg-white rounded-md ring-1 ring-black ring-opacity-5">
19-
<slot name="content" />
20-
</div>
21-
</div>
22-
</transition>
23-
</div>
2+
<div class="relative">
3+
<div @click="open = ! open">
4+
<slot name="trigger" />
5+
</div>
6+
7+
<transition
8+
enter-active-class="transition duration-200 ease-out"
9+
enter-from-class="opacity-0 transform scale-95"
10+
enter-to-class="opacity-100 transform scale-100"
11+
leave-active-class="transition duration-75 ease-in"
12+
leave-from-class="opacity-100 transform scale-100"
13+
leave-to-class="opacity-0 transform scale-95">
14+
<div v-show="open"
15+
class="absolute right-0 z-50 mt-2 mt-8 w-48 rounded-md shadow-lg origin-top-right sm:mt-0"
16+
style="display: none;"
17+
@click="open = false">
18+
<div class="py-1 bg-white rounded-md ring-1 ring-black ring-opacity-5">
19+
<slot name="content" />
20+
</div>
21+
</div>
22+
</transition>
23+
</div>
2424
</template>
2525

2626
<script setup>
2727
import { onMounted, onUnmounted, ref } from 'vue';
2828
2929
const closeOnEscape = (e) => {
30-
if (open.value && e.key === 'Escape') {
31-
open.value = false;
32-
}
30+
if (open.value && e.key === 'Escape') {
31+
open.value = false;
32+
}
3333
};
3434
3535
onMounted(() => document.addEventListener('keydown', closeOnEscape));
Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
<template>
2-
<Link class="block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out">
3-
<slot />
4-
</Link>
5-
</template>
6-
71
<script setup>
82
import { Link } from '@inertiajs/vue3';
3+
4+
defineProps({
5+
href: {
6+
type: String,
7+
required: true,
8+
},
9+
});
910
</script>
11+
12+
<template>
13+
<Link
14+
:href="href"
15+
class="block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out"
16+
>
17+
<slot />
18+
</Link>
19+
</template>
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
<script setup>
2-
defineProps(['message']);
3-
</script>
4-
51
<template>
6-
<div v-show="message">
7-
<p class="text-sm text-red-600">
8-
{{ message }}
9-
</p>
10-
</div>
2+
<div v-show="message">
3+
<p class="text-sm text-red-600">
4+
{{ message }}
5+
</p>
6+
</div>
117
</template>
8+
9+
<script setup>
10+
defineProps({
11+
message: {
12+
type: String,
13+
},
14+
});
15+
</script>

resources/stubs/breeze/inertia/notusjs/js/Components/InputLabel.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
<script setup>
2+
defineProps({
3+
value: {
4+
type: String,
5+
},
6+
});
7+
</script>
8+
19
<template>
210
<label class="block mb-2 text-xs font-bold uppercase text-slate-600">
311
<span v-if="value">{{ value }}</span>
412
<span v-else><slot /></span>
513
</label>
614
</template>
7-
8-
<script setup>
9-
defineProps(['value']);
10-
</script>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<h6 class="block pt-1 pb-4 text-xs font-bold no-underline uppercase md:min-w-full text-slate-500">
3-
<slot />
4-
</h6>
2+
<h6 class="block pt-1 pb-4 text-xs font-bold no-underline uppercase md:min-w-full text-slate-500">
3+
<slot />
4+
</h6>
55
</template>
Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
<template>
2-
<Link :href="href" :class="classes">
3-
<slot name="icon" />
4-
<slot />
5-
</Link>
2+
<Link :href="href" :class="classes">
3+
<slot name="icon" />
4+
<slot />
5+
</Link>
66
</template>
77

88
<script setup>
99
import { computed } from 'vue';
1010
import { Link } from '@inertiajs/vue3';
1111
12-
const props = defineProps(['href', 'active']);
12+
const props = defineProps({
13+
href: {
14+
type: String,
15+
required: true,
16+
},
17+
active: {
18+
type: Boolean,
19+
},
20+
});
1321
1422
const classes = computed(() => props.active
15-
? "text-xs uppercase py-3 font-bold block text-pink-500 hover:text-pink-600'"
16-
: "text-xs uppercase py-3 font-bold block text-slate-700 hover:text-slate-500"
23+
? 'text-xs uppercase py-3 font-bold block text-pink-500 hover:text-pink-600\''
24+
: 'text-xs uppercase py-3 font-bold block text-slate-700 hover:text-slate-500'
1725
);
1826
</script>
Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
<template>
2-
<div v-if="links.length > 3">
3-
<div class="flex flex-wrap -mb-1">
4-
<template v-for="(link, key) in links">
5-
<div v-if="link.url === null" :key="key"
6-
class="mr-1 mb-1 px-4 py-3 text-sm leading-4 text-gray-400 border rounded" v-html="link.label" />
7-
<Link v-else :key="key + 1"
8-
class="mr-1 mb-1 px-4 py-3 text-sm leading-4 border rounded hover:bg-white focus:border-indigo-500 focus:text-indigo-500"
9-
:class="{ 'bg-white': link.active }" :href="link.url" v-html="link.label" />
10-
</template>
11-
</div>
12-
</div>
2+
<div v-if="links.length > 3">
3+
<div class="flex flex-wrap -mb-1">
4+
<template v-for="(link, key) in links">
5+
<div v-if="link.url === null" :key="key"
6+
class="mr-1 mb-1 px-4 py-3 text-sm leading-4 text-gray-400 border rounded" v-html="link.label" />
7+
<Link v-else :key="key + 1"
8+
class="mr-1 mb-1 px-4 py-3 text-sm leading-4 border rounded hover:bg-white focus:border-indigo-500 focus:text-indigo-500"
9+
:class="{ 'bg-white': link.active }" :href="link.url" v-html="link.label" />
10+
</template>
11+
</div>
12+
</div>
1313
</template>
1414

1515
<script setup>
16-
import { Link } from "@inertiajs/vue3";
16+
import { Link } from '@inertiajs/vue3';
1717
1818
defineProps({
19-
links: Array,
19+
links: Array,
20+
required: true,
2021
});
2122
</script>

0 commit comments

Comments
 (0)