Skip to content

Commit aaed425

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip
1 parent 63dbc18 commit aaed425

File tree

14 files changed

+215
-884
lines changed

14 files changed

+215
-884
lines changed

storage/framework/core/actions/src/helpers/component-meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { type ComponentMeta, type MetaCheckerOptions, createComponentMetaChecker
66
/**
77
* ℹ️ Useful Links
88
*
9-
* vue-component-meta tests: https://github.com/johnsoncodehk/volar/blob/master/vue-language-tools/vue-component-meta/tests/index.spec.ts
9+
* vue-component-meta tests: https://github.com/vuejs/language-tools/tree/master/packages/component-meta/tests/index.spec.ts
1010
* Discord thread about improving vue-component-meta: https://discord.com/channels/793943652350427136/1027819645677350912
1111
* GitHub issue for improving vue-component-meta based on runtime/dynamic props: https://github.com/johnsoncodehk/volar/issues/1854
1212
* Discord chat: https://discord.com/channels/793943652350427136/1027819645677350912

storage/framework/core/api/build.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { dts } from 'bun-plugin-dts-auto'
12
import { intro, outro } from '../build/src'
23

34
const { startTime } = await intro({
@@ -11,7 +12,12 @@ const result = await Bun.build({
1112
target: 'bun',
1213
sourcemap: 'linked',
1314
minify: true,
14-
plugins: [],
15+
plugins: [
16+
dts({
17+
outdir: './dist',
18+
root: './src',
19+
}),
20+
],
1521
})
1622

1723
await outro({

storage/framework/core/auth/build.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ const result = await Bun.build({
1313
sourcemap: 'linked',
1414
minify: true,
1515
plugins: [
16-
// dts({
17-
// root: './src',
18-
// outdir: './dist',
19-
// }),
16+
dts({
17+
root: './src',
18+
outdir: './dist',
19+
}),
2020
],
2121
})
2222

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export async function deleteParameterStore(): Promise<Result<string, string>> {
434434

435435
export async function deleteVpcs(): Promise<Result<string, Error>> {
436436
const ec2Client = new EC2Client({ region: 'us-east-1' })
437-
const vpcNamePattern = `${config.app.name?.toLowerCase()}-` ?? 'stacks-'
437+
const vpcNamePattern = config.app.name ? `${config.app.name.toLowerCase()}-` : 'stacks-'
438438

439439
try {
440440
// Describe all VPCs
@@ -478,7 +478,7 @@ export async function deleteCdkRemnants(): Promise<Result<string, Error>> {
478478

479479
export async function deleteSubnets(): Promise<Result<string, Error>> {
480480
const ec2Client = new EC2Client({ region: 'us-east-1' })
481-
const subnetNamePattern = `${config.app.name?.toLowerCase()}-` ?? 'stacks-'
481+
const subnetNamePattern = config.app.name ? `${config.app.name.toLowerCase()}-` : 'stacks-'
482482

483483
try {
484484
// Describe all subnets
Lines changed: 0 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -1,168 +0,0 @@
1-
import type { CSSProperties, Component } from 'vue'
2-
3-
export type NotificationTypes = 'normal' | 'action' | 'success' | 'info' | 'warning' | 'error' | 'loading' | 'default'
4-
5-
export type PromiseT<Data = any> = Promise<Data> | (() => Promise<Data>)
6-
7-
export type PromiseExternalToast = Omit<ExternalToast, 'description'>
8-
9-
export type PromiseData<ToastData = any> = ExternalToast & {
10-
loading?: string | Component
11-
success?: (data: ToastData) => string | Component
12-
error?: (data: ToastData) => string | Component
13-
description?: string | Component | ((data: any) => Component | string)
14-
finally?: () => void | Promise<void>
15-
}
16-
17-
export interface ToastClasses {
18-
toast?: string
19-
title?: string
20-
description?: string
21-
loader?: string
22-
closeButton?: string
23-
cancelButton?: string
24-
actionButton?: string
25-
normal?: string
26-
action?: string
27-
success?: string
28-
error?: string
29-
info?: string
30-
warning?: string
31-
loading?: string
32-
default?: string
33-
}
34-
35-
export interface ToastIcons {
36-
success?: Component
37-
info?: Component
38-
warning?: Component
39-
error?: Component
40-
loading?: Component
41-
}
42-
43-
export interface ToastT<T extends Component = Component> {
44-
id: number | string
45-
title?: string | Component
46-
type?: NotificationTypes
47-
icon?: Component
48-
component?: T
49-
componentProps?: any
50-
invert?: boolean
51-
closeButton?: boolean
52-
dismissible?: boolean
53-
description?: string | Component
54-
duration?: number
55-
delete?: boolean
56-
important?: boolean
57-
action?: {
58-
label: string | Component
59-
onClick: (event: MouseEvent) => void
60-
}
61-
cancel?: {
62-
label: string | Component
63-
onClick?: () => void
64-
}
65-
onDismiss?: (toast: ToastT) => void
66-
onAutoClose?: (toast: ToastT) => void
67-
promise?: PromiseT
68-
cancelButtonStyle?: CSSProperties
69-
actionButtonStyle?: CSSProperties
70-
style?: CSSProperties
71-
unstyled?: boolean
72-
class?: string
73-
classes?: ToastClasses
74-
descriptionClass?: string
75-
position?: Position
76-
}
77-
78-
export type Position = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center'
79-
80-
export interface HeightT {
81-
height: number
82-
toastId: number | string
83-
position: Position
84-
}
85-
86-
export interface ToastOptions {
87-
class?: string
88-
closeButton?: boolean
89-
descriptionClass?: string
90-
style?: CSSProperties
91-
cancelButtonStyle?: CSSProperties
92-
actionButtonStyle?: CSSProperties
93-
duration?: number
94-
unstyled?: boolean
95-
classes?: ToastClasses
96-
}
97-
98-
export type CnFunction = (...classes: Array<string | undefined>) => string
99-
100-
export interface NotificationProps {
101-
invert?: boolean
102-
theme?: Theme
103-
position?: Position
104-
hotkey?: string[]
105-
richColors?: boolean
106-
expand?: boolean
107-
duration?: number
108-
gap?: number
109-
visibleToasts?: number
110-
closeButton?: boolean
111-
toastOptions?: ToastOptions
112-
class?: string
113-
style?: CSSProperties
114-
offset?: string | number
115-
dir?: 'rtl' | 'ltr' | 'auto'
116-
icons?: ToastIcons
117-
containerAriaLabel?: string
118-
pauseWhenPageIsHidden?: boolean
119-
cn?: CnFunction
120-
}
121-
122-
export interface ToastProps {
123-
toast: ToastT
124-
toasts: ToastT[]
125-
index: number
126-
expanded: boolean
127-
invert: boolean
128-
heights: HeightT[]
129-
gap?: number
130-
position: Position
131-
visibleToasts: number
132-
expandByDefault: boolean
133-
closeButton: boolean
134-
interacting: boolean
135-
duration?: number
136-
descriptionClass?: string
137-
style?: CSSProperties
138-
cancelButtonStyle?: CSSProperties
139-
actionButtonStyle?: CSSProperties
140-
unstyled?: boolean
141-
loadingIcon?: Component
142-
class: string
143-
classes?: ToastClasses
144-
icons?: ToastIcons
145-
closeButtonAriaLabel?: string
146-
pauseWhenPageIsHidden: boolean
147-
cn: CnFunction
148-
}
149-
150-
export enum SwipeStateTypes {
151-
SwipedOut = 'SwipedOut',
152-
SwipedBack = 'SwipedBack',
153-
NotSwiped = 'NotSwiped',
154-
}
155-
156-
export type Theme = 'light' | 'dark' | 'system'
157-
158-
export interface ToastToDismiss {
159-
id: number | string
160-
dismiss: boolean
161-
}
162-
163-
export type ExternalToast<T extends Component = Component> = Omit<
164-
ToastT<T>,
165-
'id' | 'type' | 'title' | 'promise' | 'delete'
166-
> & {
167-
id?: number | string
168-
}
Lines changed: 0 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -1,168 +0,0 @@
1-
import type { CSSProperties, Component } from 'vue'
2-
3-
export type NotificationTypes = 'normal' | 'action' | 'success' | 'info' | 'warning' | 'error' | 'loading' | 'default'
4-
5-
export type PromiseT<Data = any> = Promise<Data> | (() => Promise<Data>)
6-
7-
export type PromiseExternalToast = Omit<ExternalToast, 'description'>
8-
9-
export type PromiseData<ToastData = any> = ExternalToast & {
10-
loading?: string | Component
11-
success?: (data: ToastData) => string | Component
12-
error?: (data: ToastData) => string | Component
13-
description?: string | Component | ((data: any) => Component | string)
14-
finally?: () => void | Promise<void>
15-
}
16-
17-
export interface ToastClasses {
18-
toast?: string
19-
title?: string
20-
description?: string
21-
loader?: string
22-
closeButton?: string
23-
cancelButton?: string
24-
actionButton?: string
25-
normal?: string
26-
action?: string
27-
success?: string
28-
error?: string
29-
info?: string
30-
warning?: string
31-
loading?: string
32-
default?: string
33-
}
34-
35-
export interface ToastIcons {
36-
success?: Component
37-
info?: Component
38-
warning?: Component
39-
error?: Component
40-
loading?: Component
41-
}
42-
43-
export interface ToastT<T extends Component = Component> {
44-
id: number | string
45-
title?: string | Component
46-
type?: NotificationTypes
47-
icon?: Component
48-
component?: T
49-
componentProps?: any
50-
invert?: boolean
51-
closeButton?: boolean
52-
dismissible?: boolean
53-
description?: string | Component
54-
duration?: number
55-
delete?: boolean
56-
important?: boolean
57-
action?: {
58-
label: string | Component
59-
onClick: (event: MouseEvent) => void
60-
}
61-
cancel?: {
62-
label: string | Component
63-
onClick?: () => void
64-
}
65-
onDismiss?: (toast: ToastT) => void
66-
onAutoClose?: (toast: ToastT) => void
67-
promise?: PromiseT
68-
cancelButtonStyle?: CSSProperties
69-
actionButtonStyle?: CSSProperties
70-
style?: CSSProperties
71-
unstyled?: boolean
72-
class?: string
73-
classes?: ToastClasses
74-
descriptionClass?: string
75-
position?: Position
76-
}
77-
78-
export type Position = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center'
79-
80-
export interface HeightT {
81-
height: number
82-
toastId: number | string
83-
position: Position
84-
}
85-
86-
export interface ToastOptions {
87-
class?: string
88-
closeButton?: boolean
89-
descriptionClass?: string
90-
style?: CSSProperties
91-
cancelButtonStyle?: CSSProperties
92-
actionButtonStyle?: CSSProperties
93-
duration?: number
94-
unstyled?: boolean
95-
classes?: ToastClasses
96-
}
97-
98-
export type CnFunction = (...classes: Array<string | undefined>) => string
99-
100-
export interface NotificationProps {
101-
invert?: boolean
102-
theme?: Theme
103-
position?: Position
104-
hotkey?: string[]
105-
richColors?: boolean
106-
expand?: boolean
107-
duration?: number
108-
gap?: number
109-
visibleToasts?: number
110-
closeButton?: boolean
111-
toastOptions?: ToastOptions
112-
class?: string
113-
style?: CSSProperties
114-
offset?: string | number
115-
dir?: 'rtl' | 'ltr' | 'auto'
116-
icons?: ToastIcons
117-
containerAriaLabel?: string
118-
pauseWhenPageIsHidden?: boolean
119-
cn?: CnFunction
120-
}
121-
122-
export interface ToastProps {
123-
toast: ToastT
124-
toasts: ToastT[]
125-
index: number
126-
expanded: boolean
127-
invert: boolean
128-
heights: HeightT[]
129-
gap?: number
130-
position: Position
131-
visibleToasts: number
132-
expandByDefault: boolean
133-
closeButton: boolean
134-
interacting: boolean
135-
duration?: number
136-
descriptionClass?: string
137-
style?: CSSProperties
138-
cancelButtonStyle?: CSSProperties
139-
actionButtonStyle?: CSSProperties
140-
unstyled?: boolean
141-
loadingIcon?: Component
142-
class: string
143-
classes?: ToastClasses
144-
icons?: ToastIcons
145-
closeButtonAriaLabel?: string
146-
pauseWhenPageIsHidden: boolean
147-
cn: CnFunction
148-
}
149-
150-
export enum SwipeStateTypes {
151-
SwipedOut = 'SwipedOut',
152-
SwipedBack = 'SwipedBack',
153-
NotSwiped = 'NotSwiped',
154-
}
155-
156-
export type Theme = 'light' | 'dark' | 'system'
157-
158-
export interface ToastToDismiss {
159-
id: number | string
160-
dismiss: boolean
161-
}
162-
163-
export type ExternalToast<T extends Component = Component> = Omit<
164-
ToastT<T>,
165-
'id' | 'type' | 'title' | 'promise' | 'delete'
166-
> & {
167-
id?: number | string
168-
}

0 commit comments

Comments
 (0)