Skip to content

Commit 033af6b

Browse files
committed
chore: wip
1 parent 7495cc3 commit 033af6b

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

bun.lockb

17 KB
Binary file not shown.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@
108108
},
109109
"workspaces": [
110110
"storage/framework",
111-
"storage/framework/server",
112-
"storage/framework/libs/*",
113-
"storage/framework/views/*",
114111
"storage/framework/core/*",
115-
"storage/framework/core/bun-create/*"
112+
"storage/framework/core/bun-create/*",
113+
"storage/framework/docs",
114+
"storage/framework/ide/vscode",
115+
"storage/framework/libs/*",
116+
"storage/framework/server",
117+
"storage/framework/views/*"
116118
]
117119
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default defineConfig({
5757
extensions: ['stx'],
5858
layoutsDirs: p.frameworkPath('views/dashboard/src/layouts'),
5959
defaultLayout: p.frameworkPath('views/dashboard/src/layouts/default.stx'),
60-
}, false),
60+
}),
6161
// autoImports(),
6262
// components(),
6363
cssEngine(),

storage/framework/core/vite/src/plugin/layouts.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ import { path as p } from '@stacksjs/path'
22
import Layouts from 'vite-plugin-vue-layouts'
33
import type { UserOptions as LayoutOptions } from 'vite-plugin-vue-layouts'
44

5-
export function layouts(options?: LayoutOptions, isMain = true) {
6-
if (!isMain)
7-
return Layouts(options)
8-
9-
return Layouts({
5+
export function layouts(options?: LayoutOptions) {
6+
const opts = {
107
extensions: ['stx', 'vue'],
118
layoutsDirs: p.layoutsPath(),
129
defaultLayout: p.layoutsPath('default.stx'),
1310
exclude: [
1411
p.layoutsPath('mails'),
1512
],
1613
...options,
17-
})
14+
}
15+
16+
return Layouts(opts)
1817
}

0 commit comments

Comments
 (0)