Skip to content

Commit f83e767

Browse files
committed
chore: wip
1 parent 52bc42e commit f83e767

File tree

8 files changed

+28
-26
lines changed

8 files changed

+28
-26
lines changed

.stacks/core/alias/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export const alias: Record<string, string> = {
211211
'stacks/x-ray/*': p.xRayPath('src/*'),
212212
'~/app/*': p.appPath('*'),
213213
'~/config/*': p.projectConfigPath('*'),
214+
'~/lang/*': p.langPath('*'),
214215
'~/components/*': p.componentsPath('*'),
215216
'~/functions/*': p.functionsPath('*'),
216217
'~views/*': p.viewsPath('*'),

.stacks/core/config/src/defaults.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import type { ResolvedStacksOptions } from '@stacksjs/types'
2-
import app from '../../../../config/app'
3-
import binary from '../../../../config/binary'
4-
import cache from '../../../../config/cache'
5-
import cdn from '../../../../config/cdn'
6-
import database from '../../../../config/database'
7-
import dependencies from '../../../../config/deps'
8-
import dns from '../../../../config/dns'
9-
import docs from '../../../../config/docs'
10-
import email from '../../../../config/email'
11-
import git from '../../../../config/git'
12-
import hashing from '../../../../config/hashing'
13-
import library from '../../../../config/library'
14-
import queue from '../../../../config/queue'
15-
import payment from '../../../../config/payment'
16-
import notification from '../../../../config/notification'
17-
import storage from '../../../../config/storage'
18-
import searchEngine from '../../../../config/search-engine'
19-
import services from '../../../../config/services'
20-
import ui from '../../../../config/ui'
2+
import app from '~/config/app'
3+
import binary from '~/config/binary'
4+
import cache from '~/config/cache'
5+
import cdn from '~/config/cdn'
6+
import database from '~/config/database'
7+
import dependencies from '~/config/deps'
8+
import dns from '~/config/dns'
9+
import docs from '~/config/docs'
10+
import email from '~/config/email'
11+
import git from '~/config/git'
12+
import hashing from '~/config/hashing'
13+
import library from '~/config/library'
14+
import queue from '~/config/queue'
15+
import payment from '~/config/payment'
16+
import notification from '~/config/notification'
17+
import storage from '~/config/storage'
18+
import searchEngine from '~/config/search-engine'
19+
import services from '~/config/services'
20+
import ui from '~/config/ui'
2121

2222
const defaults: ResolvedStacksOptions = {
2323
app,

.stacks/core/path/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function gitPath(path?: string) {
191191
}
192192

193193
export function langPath(path?: string) {
194-
return resourcesPath(`lang/${path || ''}`)
194+
return projectPath(`lang/${path || ''}`)
195195
}
196196

197197
export type LibraryType = 'vue-components' | 'web-components' | 'functions'

.stacks/core/vite/src/plugin/ssl-cert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import mkcert from 'vite-plugin-mkcert'
22
import type { Plugin } from 'vite'
33
import { path as p } from '@stacksjs/path'
4-
import library from '../../../../../config/library'
4+
import library from '~/config/library'
55

66
export function sslCertificate(): Plugin {
77
console.log('sslCertificate')

.stacks/libs/components/vue/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { createApp } from 'vue'
22

33
// import Previewer from 'virtual:vue-component-preview'
4-
import Demo from '../../../../resources/components/Demo.vue'
4+
import Demo from '~/resources/components/Demo.vue'
55

66
// prepare the messages object from the yaml language files
77
// const messages = Object.fromEntries(
88
// Object.entries(
9-
// import.meta.glob<{ default: any }>('../../../lang/*.y(a)?ml', { eager: true }))
9+
// import.meta.glob<{ default: any }>('~/lang/*.y(a)?ml', { eager: true }))
1010
// .map(([key, value]) => {
1111
// const yaml = key.endsWith('.yaml')
1212
// return [key.slice(14, yaml ? -5 : -4), value.default]

.stacks/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@
235235
"~/models/*": ["../app/models/*"],
236236
"~/app/*": ["../app/*"],
237237
"~/config/*": ["../config/*"],
238+
"~/lang/*": ["../lang/*"],
238239
"~/functions/*": ["../resources/functions/*"],
239240
"~/components/*": ["../resources/components/*"],
240241
"~/views/*": ["../resources/views/*"],

.stacks/views/desktop/dashboard/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import App from './src/App.vue'
66
// prepare the messages object from the yaml language files
77
// const messages = Object.fromEntries(
88
// Object.entries(
9-
// import.meta.glob<{ default: any }>('../../../lang/*.y(a)?ml', { eager: true }))
9+
// import.meta.glob<{ default: any }>('~/lang/*.y(a)?ml', { eager: true }))
1010
// .map(([key, value]) => {
1111
// const yaml = key.endsWith('.yaml')
1212
// return [key.slice(14, yaml ? -5 : -4), value.default]

.stacks/views/desktop/hello-world/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { createApp } from 'vue'
22

33
// import Previewer from 'virtual:vue-component-preview'
4-
import Demo from '../../../resources/views/index.vue'
4+
import Demo from '~/resources/views/index.vue'
55

66
// prepare the messages object from the yaml language files
77
// const messages = Object.fromEntries(
88
// Object.entries(
9-
// import.meta.glob<{ default: any }>('../../../lang/*.y(a)?ml', { eager: true }))
9+
// import.meta.glob<{ default: any }>('~/lang/*.y(a)?ml', { eager: true }))
1010
// .map(([key, value]) => {
1111
// const yaml = key.endsWith('.yaml')
1212
// return [key.slice(14, yaml ? -5 : -4), value.default]

0 commit comments

Comments
 (0)