Skip to content

Commit

Permalink
migrate to vite, less depend from nova
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenko3 committed Mar 19, 2024
1 parent f5c78d3 commit 98013aa
Show file tree
Hide file tree
Showing 23 changed files with 468 additions and 5,987 deletions.
11 changes: 11 additions & 0 deletions dist/.vite/manifest.json
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"
}
}
1 change: 1 addition & 0 deletions dist/css/tool.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions dist/mix-manifest.json

This file was deleted.

33 changes: 0 additions & 33 deletions nova.mix.js

This file was deleted.

23 changes: 13 additions & 10 deletions package.json
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"
}
}
6 changes: 6 additions & 0 deletions postcss.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
4 changes: 4 additions & 0 deletions resources/css/tool.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

@tailwind base;
@tailwind components;
@tailwind utilities;
24 changes: 24 additions & 0 deletions resources/js/components/Button.vue
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>
38 changes: 0 additions & 38 deletions resources/js/components/DangerButton.vue

This file was deleted.

53 changes: 0 additions & 53 deletions resources/js/components/LoadingButton.vue

This file was deleted.

Loading

0 comments on commit 98013aa

Please sign in to comment.