Skip to content

Commit ffd49c5

Browse files
committed
chore: wip
1 parent 212a0e3 commit ffd49c5

File tree

21 files changed

+63
-1169
lines changed

21 files changed

+63
-1169
lines changed

bun.lockb

15.9 KB
Binary file not shown.

storage/framework/core/cloud/src/cloud/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class QueueStack {
8787
}
8888

8989
async loadModule(filePath: string) {
90-
const jobModule = await import(filePath)
90+
const jobModule = await import(/* @vite-ignore */ filePath)
9191

9292
return jobModule
9393
}

storage/framework/core/components/notification/auto-imports.d.ts

Lines changed: 0 additions & 1138 deletions
This file was deleted.

storage/framework/core/components/notification/components.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export {}
77
/* prettier-ignore */
88
declare module 'vue' {
99
export interface GlobalComponents {
10+
'Carbon:cafe': typeof import('~icons/carbon/cafe')['default']
11+
'Carbon:logoTwitter': typeof import('~icons/carbon/logo-twitter')['default']
1012
CheckIcon: typeof import('./src/components/icons/CheckIcon.vue')['default']
1113
CloseIcon: typeof import('./src/components/icons/CloseIcon.vue')['default']
1214
CopyIcon: typeof import('./src/components/icons/CopyIcon.vue')['default']
@@ -19,6 +21,7 @@ declare module 'vue' {
1921
InfoIcon: typeof import('./src/components/icons/InfoIcon.vue')['default']
2022
Installation: typeof import('./src/components/Installation.vue')['default']
2123
Loader: typeof import('./src/components/icons/Loader.vue')['default']
24+
'Mdi:heart': typeof import('~icons/mdi/heart')['default']
2225
Others: typeof import('./src/components/Others.vue')['default']
2326
Position: typeof import('./src/components/Position.vue')['default']
2427
RouterLink: typeof import('vue-router')['RouterLink']

storage/framework/core/components/notification/src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { createHead } from '@vueuse/head'
22
import { createApp } from 'vue'
33
import App from './App.vue'
4-
54
import '@unocss/reset/tailwind.css'
6-
import 'unocss'
5+
import 'uno.css'
76
import highlight from './plugins/highlight'
87

98
const app = createApp(App)

storage/framework/core/components/notification/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default defineConfig(({ command, mode }) => {
2929
include: /\.(stx|vue|md)($|\?)/,
3030
}),
3131

32-
// UnoCSS(),
32+
UnoCSS(),
3333

3434
Components({
3535
extensions: ['stx', 'vue', 'md'],

storage/framework/core/components/stepper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@types/clean-css": "^4.2.11",
4949
"@vue/tsconfig": "^0.5.1",
5050
"clean-css": "^5.3.3",
51-
"unocss": "0.62.3",
51+
"unocss": "0.61.0",
5252
"unplugin-icons": "^0.19.2"
5353
}
5454
}

storage/framework/core/database/src/drivers/mysql.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function resetMysqlDatabase() {
3131
const userModelFiles = glob.sync(path.userModelsPath('*.ts'))
3232

3333
for (const userModel of userModelFiles) {
34-
const model = (await import(userModel)).default as Model
34+
const model = (await import(/* @vite-ignore */ userModel)).default as Model
3535
const pivotTables = await getPivotTables(model, userModel)
3636

3737
for (const pivotTable of pivotTables) await db.schema.dropTable(pivotTable.table).ifExists().execute()
@@ -79,7 +79,7 @@ export async function generateMysqlMigration(modelPath: string) {
7979
// }
8080
// }
8181

82-
const model = (await import(modelPath)).default as Model
82+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
8383
const fileName = path.basename(modelPath)
8484
const tableName = getTableName(model, modelPath)
8585

@@ -124,7 +124,7 @@ export async function generateMysqlMigration(modelPath: string) {
124124
async function createTableMigration(modelPath: string) {
125125
log.debug('createTableMigration modelPath:', modelPath)
126126

127-
const model = (await import(modelPath)).default as Model
127+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
128128
const tableName = getTableName(model, modelPath)
129129

130130
const twoFactorEnabled = model.traits?.useAuth?.useTwoFactor
@@ -225,7 +225,7 @@ async function createPivotTableMigration(model: Model, modelPath: string) {
225225
export async function createAlterTableMigration(modelPath: string) {
226226
console.log('createAlterTableMigration')
227227

228-
const model = (await import(modelPath)).default as Model
228+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
229229
const modelName = getModelName(model, modelPath)
230230
const tableName = getTableName(model, modelPath)
231231
let hasChanged = false
@@ -334,7 +334,7 @@ export async function fetchMysqlTables(): Promise<string[]> {
334334
const tables: string[] = []
335335

336336
for (const modelPath of modelFiles) {
337-
const model = (await import(modelPath)).default as Model
337+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
338338
const tableName = getTableName(model, modelPath)
339339

340340
tables.push(tableName)

storage/framework/core/database/src/drivers/postgres.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function resetPostgresDatabase() {
3030
const userModelFiles = glob.sync(path.userModelsPath('*.ts'))
3131

3232
for (const userModel of userModelFiles) {
33-
const userModelPath = (await import(userModel)).default
33+
const userModelPath = (await import(/* @vite-ignore */ userModel)).default
3434

3535
const pivotTables = await getPivotTables(userModelPath, userModelPath)
3636

@@ -79,7 +79,7 @@ export async function generatePostgresMigration(modelPath: string) {
7979
}
8080
}
8181

82-
const model = (await import(modelPath)).default as Model
82+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
8383
const fileName = path.basename(modelPath)
8484
const tableName = getTableName(model, modelPath)
8585

@@ -124,7 +124,7 @@ export async function generatePostgresMigration(modelPath: string) {
124124
async function createTableMigration(modelPath: string) {
125125
log.debug('createTableMigration modelPath:', modelPath)
126126

127-
const model = (await import(modelPath)).default as Model
127+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
128128
const tableName = getTableName(model, modelPath)
129129

130130
await createPivotTableMigration(model, modelPath)
@@ -221,7 +221,7 @@ async function createPivotTableMigration(model: Model, modelPath: string) {
221221
export async function createAlterTableMigration(modelPath: string) {
222222
console.log('createAlterTableMigration')
223223

224-
const model = (await import(modelPath)).default as Model
224+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
225225
const modelName = path.basename(modelPath)
226226
const tableName = await getTableName(model, modelPath)
227227

@@ -270,7 +270,7 @@ export async function fetchMysqlTables(): Promise<string[]> {
270270
const tables: string[] = []
271271

272272
for (const modelPath of modelFiles) {
273-
const model = (await import(modelPath)).default
273+
const model = (await import(/* @vite-ignore */ modelPath)).default
274274

275275
const tableName = await getTableName(model, modelPath)
276276

storage/framework/core/database/src/drivers/sqlite.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export async function resetSqliteDatabase() {
2929
const userModelFiles = glob.sync(path.userModelsPath('*.ts'))
3030

3131
for (const userModel of userModelFiles) {
32-
const userModelPath = (await import(userModel)).default
33-
32+
const userModelPath = (await import(/* @vite-ignore */ userModel)).default
3433
const pivotTables = await getPivotTables(userModelPath, userModel)
3534

3635
for (const pivotTable of pivotTables) await db.schema.dropTable(pivotTable.table).ifExists().execute()
@@ -77,7 +76,7 @@ export async function generateSqliteMigration(modelPath: string) {
7776
}
7877
}
7978

80-
const model = (await import(modelPath)).default as Model
79+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
8180
const fileName = path.basename(modelPath)
8281
const tableName = await getTableName(model, modelPath)
8382

@@ -122,8 +121,8 @@ export async function generateSqliteMigration(modelPath: string) {
122121
async function createTableMigration(modelPath: string) {
123122
log.debug('createTableMigration modelPath:', modelPath)
124123

125-
const model = (await import(modelPath)).default as Model
126-
const tableName = await getTableName(model, modelPath)
124+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
125+
const tableName = getTableName(model, modelPath)
127126

128127
const twoFactorEnabled = model.traits?.useAuth?.useTwoFactor
129128

@@ -223,9 +222,9 @@ async function createPivotTableMigration(model: Model, modelPath: string) {
223222
export async function createAlterTableMigration(modelPath: string) {
224223
console.log('createAlterTableMigration')
225224

226-
const model = (await import(modelPath)).default as Model
225+
const model = (await import(/* @vite-ignore */ modelPath)).default as Model
227226
const modelName = getModelName(model, modelPath)
228-
const tableName = await getTableName(model, modelPath)
227+
const tableName = getTableName(model, modelPath)
229228
let hasChanged = false
230229

231230
// Assuming you have a function to get the fields from the last migration

0 commit comments

Comments
 (0)