-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to vite, less depend from nova
- Loading branch information
1 parent
f5c78d3
commit 98013aa
Showing
23 changed files
with
468 additions
and
5,987 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"resources/js/tool.js": { | ||
"file": "js/tool.js", | ||
"src": "resources/js/tool.js", | ||
"isEntry": true | ||
}, | ||
"style.css": { | ||
"file": "css/tool.css", | ||
"src": "style.css" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"dev": "npm run development", | ||
"development": "mix", | ||
"watch": "mix watch", | ||
"watch-poll": "mix watch -- --watch-options-poll=1000", | ||
"hot": "mix watch --hot", | ||
"prod": "npm run production", | ||
"production": "mix --production", | ||
"dev": "vite build --watch", | ||
"build": "vite build", | ||
"nova:install": "npm --prefix='vendor/laravel/nova' ci" | ||
}, | ||
"devDependencies": { | ||
"@inertiajs/inertia": "^0.11.1", | ||
"@inertiajs/inertia-vue3": "^0.6.0", | ||
"@vitejs/plugin-vue": "^5.0.4", | ||
"@vue/compiler-sfc": "^3.2.22", | ||
"laravel-mix": "^6.0.41", | ||
"postcss": "^8.3.11", | ||
"postcss": "^8.4.37", | ||
"vite": "^5.1.6", | ||
"vue-loader": "^16.8.3" | ||
}, | ||
"dependencies": {} | ||
"dependencies": { | ||
"@headlessui/tailwindcss": "^0.2.0", | ||
"@headlessui/vue": "^1.7.19", | ||
"autoprefixer": "^10.4.18", | ||
"tailwindcss": "^3.4.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div | ||
class="shadow relative h-10 px-4 rounded-lg bg-primary-500 text-white text-white flex items-center text-center cursor-pointer hover:opacity-75 transition" | ||
:class="{ | ||
'bg-red-500': type === 'danger', | ||
'bg-yellow-500': type === 'warning', | ||
'bg-blue-500': type === 'info', | ||
'bg-green-500': type === 'success', | ||
'bg-gray-200 text-gray-900 dark:bg-gray-700 dark:text-gray-300': type === 'gray', | ||
'pointer-events-none': loading, | ||
}" | ||
> | ||
<slot /> | ||
<div class="absolute inset-0 bg-gray-500/75 dark:bg-gray-900/75 rounded-lg" v-if="loading"></div> | ||
<Loader class="absolute inset-0 m-auto text-white" v-if="loading" width="32" /> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
defineProps({ | ||
type: String, | ||
loading: Boolean | ||
}); | ||
</script> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.