Skip to content

Commit 57e06ee

Browse files
committed
chore: wip
1 parent e1e8122 commit 57e06ee

File tree

4 files changed

+80
-7
lines changed

4 files changed

+80
-7
lines changed

bun.lockb

0 Bytes
Binary file not shown.

resources/components/Dashboard/Deployments/DeploymentList.vue

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<script setup lang="ts">
2+
const deployScript = ref('')
3+
</script>
4+
15
<template>
26
<div class="min-h-screen py-4 lg:py-8 dark:bg-blue-gray-800">
37
<div class="px-4 mb-8 sm:px-6 lg:px-8">
@@ -107,7 +111,39 @@
107111
</div>
108112
</div>
109113

110-
<TerminalContainer class="px-4 sm:px-6 lg:px-8 pt-12" live="true" />
114+
<div class="px-4 sm:px-6 lg:px-8 pt-12">
115+
<div class="sm:flex sm:items-center">
116+
<div class="sm:flex-auto">
117+
<h1 class="text-base font-semibold leading-6 text-gray-900">
118+
Deploy Script
119+
</h1>
120+
<p class="mt-2 text-sm text-gray-700">
121+
If you need a custom deploy script, you may specify it here.
122+
</p>
123+
</div>
124+
<!-- <div class="mt-4 sm:ml-16 sm:mt-0 sm:flex-none">
125+
<button type="button" class="block rounded-md bg-blue-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600">
126+
Deploy
127+
</button>
128+
</div> -->
129+
</div>
130+
131+
<div class="mt-8 flow-root">
132+
<div class="-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8">
133+
<div class="inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8">
134+
<div class="overflow-hidden">
135+
<textarea
136+
v-model="deployScript"
137+
class="w-full h-24 p-4 text-sm text-gray-700 bg-white border border-gray-300 rounded-md"
138+
placeholder="echo 'Hello World!'"
139+
/>
140+
</div>
141+
</div>
142+
</div>
143+
</div>
144+
</div>
145+
146+
<TerminalContainer class="px-4 sm:px-6 lg:px-8 pt-12" :live="true" />
111147

112148
<div class="px-4 sm:px-6 lg:px-8 pt-12">
113149
<div class="sm:flex sm:items-center">

resources/components/Dashboard/Navbar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const theme = ref(isDark.value ? 'dark' : 'light')
66
watch(theme, (currentVal) => {
77
if (currentVal === 'light')
88
isDark.value = false
9-
109
else
1110
isDark.value = true
1211

storage/framework/core/vite-config/src/dashboard.ts

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ import { alias } from '@stacksjs/alias'
22
import { config } from '@stacksjs/config'
33
import { path as p } from '@stacksjs/path'
44
import {
5-
autoImports,
65
components,
76
cssEngine,
87
i18n,
98
layouts,
10-
router,
119
} from '@stacksjs/vite-plugin'
10+
import { unheadVueComposablesImports as VueHeadImports } from '@unhead/vue'
1211
import Vue from '@vitejs/plugin-vue'
12+
import AutoImport from 'unplugin-auto-import/vite'
1313
import VueMacros from 'unplugin-vue-macros/vite'
14+
import { VueRouterAutoImports } from 'unplugin-vue-router'
15+
import VueRouter from 'unplugin-vue-router/vite'
1416
import { defineConfig } from 'vite'
1517
import generateSitemap from 'vite-ssg-sitemap'
1618

@@ -73,19 +75,55 @@ export default defineConfig({
7375
},
7476
}),
7577

76-
router({
78+
VueRouter({
7779
extensions: ['.stx', '.vue', '.md'],
7880
dts: p.frameworkPath('types/dashboard-router.d.ts'),
7981
routesFolder: [p.resourcesPath('views/dashboard')],
8082
logs: config.app.debug || false,
8183
}),
8284

8385
layouts({
84-
extensions: ['stx'],
86+
extensions: ['vue', 'stx'],
8587
layoutsDirs: p.layoutsPath('dashboard', { relative: true }),
8688
}),
8789

88-
autoImports(),
90+
// autoImports(),
91+
AutoImport({
92+
include: /\.(stx|vue|js|ts|mdx?|elm|html)($|\?)/,
93+
imports: [
94+
'pinia',
95+
'vue',
96+
'vue-i18n',
97+
// '@vueuse/core',
98+
// 'vitepress'
99+
// { '@stacksjs/ui': ['CssEngine', 'UiEngine', 'Store', 'presetForms', 'transformerCompileClass'] },
100+
// { '@stacksjs/logging': ['dd', 'dump'] }, // we also export `log` in st stacks/cli
101+
// { '@stacksjs/validation': ['validate', 'validateAll', 'validateSync', 'validateAllSync'] },
102+
VueHeadImports,
103+
VueRouterAutoImports,
104+
{
105+
'vue-router/auto': ['useLink'],
106+
},
107+
],
108+
109+
dts: p.frameworkPath('types/auto-imports.d.ts'),
110+
111+
dirs: [
112+
p.resourcesPath('components'),
113+
p.resourcesPath('functions'),
114+
p.resourcesPath('stores'),
115+
p.corePath(),
116+
],
117+
118+
vueTemplate: true,
119+
120+
// eslintrc: {
121+
// enabled: true,
122+
// filepath: '../../.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json`
123+
// globalsPropValue: true, // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable')
124+
// },
125+
}),
126+
89127
components(),
90128
cssEngine(),
91129
// markdown(),

0 commit comments

Comments
 (0)