feat: heroku build
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
public_html
|
||||||
|
|
||||||
# Vite
|
# Vite
|
||||||
node_modules
|
node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ function getUtils() {
|
|||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
title: 'Flowbite Vue 3',
|
title: 'Flowbite Vue 3',
|
||||||
|
outDir: '../public_html',
|
||||||
head: [
|
head: [
|
||||||
['link', { rel: "icon", type: "image/svg", href: "../assets/logo.svg"}],
|
['link', { rel: "icon", type: "image/svg", href: "../assets/logo.svg"}],
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vitepress dev docs",
|
"dev": "vitepress dev docs",
|
||||||
"serve": "vitepress serve docs",
|
"serve": "vitepress serve docs",
|
||||||
"build:docs": "vitepress build docs",
|
"build": "vitepress build docs",
|
||||||
"build:package": "npm run build:types && npm run build",
|
"build:package": "vite build",
|
||||||
"build:types": "vue-tsc --declaration --emitDeclarationOnly",
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly",
|
||||||
"build": "vite build",
|
"build:production": "npm run build:types && npm run build:package",
|
||||||
"lint": "eslint --ext .ts,.vue --ignore-path .gitignore --fix src",
|
"lint": "eslint --ext .ts,.vue --ignore-path .gitignore --fix src",
|
||||||
"format": "prettier . --write",
|
"format": "prettier . --write",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, toRefs } from 'vue'
|
|
||||||
import type { PropType } from 'vue'
|
import type { PropType } from 'vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -49,12 +48,6 @@ const props = defineProps({
|
|||||||
type: String, // 'bottom-left' | 'bottom-right' | 'bottom-center' | 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right'
|
type: String, // 'bottom-left' | 'bottom-right' | 'bottom-center' | 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right'
|
||||||
default: 'center',
|
default: 'center',
|
||||||
},
|
},
|
||||||
root: {
|
|
||||||
type: HTMLElement,
|
|
||||||
default() {
|
|
||||||
return document ? document.body : undefined
|
|
||||||
},
|
|
||||||
},
|
|
||||||
show: {
|
show: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
|
|||||||
@@ -5,36 +5,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, toRefs } from 'vue'
|
|
||||||
import type { PropType } from 'vue'
|
|
||||||
|
|
||||||
const props = defineProps({
|
|
||||||
arrow: {
|
|
||||||
type: Boolean,
|
|
||||||
default: true,
|
|
||||||
},
|
|
||||||
children: {
|
|
||||||
type: Array,
|
|
||||||
default() {
|
|
||||||
return []
|
|
||||||
},
|
|
||||||
},
|
|
||||||
duration: {
|
|
||||||
type: Number, // animation = duration-300
|
|
||||||
default: 300,
|
|
||||||
},
|
|
||||||
placement: {
|
|
||||||
type: String, // top | right | bottom | left | {top/right/bottom/left}-{start/end}
|
|
||||||
default: 'auto',
|
|
||||||
},
|
|
||||||
type: {
|
|
||||||
type: String, // 'dark' | 'light' | 'auto'
|
|
||||||
default: 'dark',
|
|
||||||
},
|
|
||||||
trigger: {
|
|
||||||
type: String, // 'hover' | 'click'
|
|
||||||
default: 'hover',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
6
static.json
Normal file
6
static.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"routes": {
|
||||||
|
"/assets/*": "/assets/",
|
||||||
|
"/**": "index.html"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user