abckit 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +131 -0
- package/dist/module.d.mts +39 -5
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -28
- package/dist/runtime/components/app/AppImage.vue +1 -1
- package/dist/runtime/components/app/AppNavMain.vue +3 -1
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.d.vue.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue.d.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.d.vue.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue.d.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.d.vue.ts +0 -17
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue.d.ts +0 -17
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.d.vue.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue.d.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.d.vue.ts +0 -17
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue.d.ts +0 -17
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.d.vue.ts +0 -14
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue.d.ts +0 -14
- package/dist/runtime/components/ui/badge/index.d.ts +1 -1
- package/dist/runtime/components/ui/button/ThemeToggle.vue +2 -2
- package/dist/runtime/components/ui/button/index.d.ts +2 -2
- package/dist/runtime/components/ui/calendar/Calendar.vue +1 -0
- package/dist/runtime/components/ui/chart/ChartContainer.vue +1 -1
- package/dist/runtime/components/ui/chart/ChartLegendContent.vue +3 -3
- package/dist/runtime/components/ui/chart/ChartTooltipContent.vue +1 -0
- package/dist/runtime/components/ui/chart/index.d.ts +0 -1
- package/dist/runtime/components/ui/chart/index.js +0 -1
- package/dist/runtime/components/ui/chart/utils.js +1 -0
- package/dist/runtime/components/ui/combobox/Combobox.d.vue.ts +2 -2
- package/dist/runtime/components/ui/combobox/Combobox.vue.d.ts +2 -2
- package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +4 -1
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +4 -1
- package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +4 -4
- package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +4 -4
- package/dist/runtime/components/ui/file/FileGrid.vue +2 -0
- package/dist/runtime/components/ui/file/FileTable.vue +8 -4
- package/dist/runtime/components/ui/input-otp/InputOTP.d.vue.ts +8 -8
- package/dist/runtime/components/ui/input-otp/InputOTP.vue.d.ts +8 -8
- package/dist/runtime/components/ui/input-otp/InputOTPSlot.vue +1 -0
- package/dist/runtime/components/ui/item/index.d.ts +1 -1
- package/dist/runtime/components/ui/native-select/NativeSelect.d.vue.ts +7 -1
- package/dist/runtime/components/ui/native-select/NativeSelect.vue +9 -2
- package/dist/runtime/components/ui/native-select/NativeSelect.vue.d.ts +7 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +389 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue +6 -3
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +389 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +393 -1
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue +6 -3
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +393 -1
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +1 -1
- package/dist/runtime/components/ui/select/Select.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/Select.vue.d.ts +2 -2
- package/dist/runtime/components/ui/sidebar/index.d.ts +1 -1
- package/dist/runtime/components/ui/sonner/Sonner.d.vue.ts +4 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue +62 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +4 -0
- package/dist/runtime/components/ui/sonner/index.d.ts +1 -0
- package/dist/runtime/components/ui/sonner/index.js +1 -0
- package/dist/runtime/components/ui/storage/StorageActionBar.d.vue.ts +2 -2
- package/dist/runtime/components/ui/storage/StorageActionBar.vue +1 -1
- package/dist/runtime/components/ui/storage/StorageActionBar.vue.d.ts +2 -2
- package/dist/runtime/components/ui/storage/StorageGrid.vue +2 -0
- package/dist/runtime/components/ui/storage/StorageTable.vue +8 -4
- package/dist/runtime/components/ui/tags-input/TagsInput.vue +8 -1
- package/dist/runtime/components/ui/timezone-select/useTimezone.d.ts +2 -2
- package/dist/runtime/components/ui/timezone-select/useTimezone.js +3 -3
- package/dist/runtime/components/ui/toggle/index.d.ts +1 -1
- package/dist/runtime/composables/useAuth.d.ts +49 -37
- package/dist/runtime/composables/useAuth.js +1 -0
- package/dist/runtime/composables/useBreadcrumbItems.js +1 -1
- package/dist/runtime/composables/useImageUrl.js +1 -0
- package/dist/runtime/error.vue +12 -4
- package/dist/runtime/graphql/organization.d.ts +5 -0
- package/dist/runtime/graphql/organization.js +11 -0
- package/dist/runtime/shared/constants/r2.d.ts +12 -0
- package/dist/runtime/shared/constants/r2.js +18 -0
- package/dist/runtime/types/nitro-graphql-client.d.ts +7 -1
- package/package.json +6 -2
|
@@ -140,13 +140,13 @@ export function useTimezone(labels = {}) {
|
|
|
140
140
|
}).sort((a, b) => {
|
|
141
141
|
if (a.popular && !b.popular) return -1;
|
|
142
142
|
if (!a.popular && b.popular) return 1;
|
|
143
|
-
if (a.region !== b.region) return a.region.localeCompare(b.region);
|
|
143
|
+
if (a.region !== b.region) return (a.region || "").localeCompare(b.region || "");
|
|
144
144
|
return a.label.localeCompare(b.label);
|
|
145
145
|
});
|
|
146
146
|
} catch {
|
|
147
147
|
return [
|
|
148
|
-
{ value: "UTC", label: "UTC", offset: "UTC+00:00", region: "UTC", popular: true, searchText: "utc" },
|
|
149
|
-
{ value: "Europe/Istanbul", label: "Istanbul", offset: "UTC+03:00", region: "Europe", country: "
|
|
148
|
+
{ value: "UTC", label: "UTC", offset: "UTC+00:00", region: "UTC", country: void 0, popular: true, searchText: "utc" },
|
|
149
|
+
{ value: "Europe/Istanbul", label: "Istanbul", offset: "UTC+03:00", region: "Europe", country: "Turkey", popular: true, searchText: "europe/istanbul istanbul turkey utc+03:00 europe" }
|
|
150
150
|
];
|
|
151
151
|
}
|
|
152
152
|
};
|
|
@@ -2,6 +2,6 @@ import type { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
export { default as Toggle } from "./Toggle.vue.js";
|
|
3
3
|
export declare const toggleVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "outline" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
@@ -84,7 +84,7 @@ declare const authClient: {
|
|
|
84
84
|
limit?: string | number | undefined;
|
|
85
85
|
offset?: string | number | undefined;
|
|
86
86
|
sortBy?: string | undefined;
|
|
87
|
-
sortDirection?: "
|
|
87
|
+
sortDirection?: "desc" | "asc" | undefined;
|
|
88
88
|
filterField?: string | undefined;
|
|
89
89
|
filterValue?: string | number | boolean | undefined;
|
|
90
90
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
@@ -96,7 +96,7 @@ declare const authClient: {
|
|
|
96
96
|
limit?: string | number | undefined;
|
|
97
97
|
offset?: string | number | undefined;
|
|
98
98
|
sortBy?: string | undefined;
|
|
99
|
-
sortDirection?: "
|
|
99
|
+
sortDirection?: "desc" | "asc" | undefined;
|
|
100
100
|
filterField?: string | undefined;
|
|
101
101
|
filterValue?: string | number | boolean | undefined;
|
|
102
102
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
@@ -292,14 +292,14 @@ declare const authClient: {
|
|
|
292
292
|
admin: {
|
|
293
293
|
hasPermission: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<({
|
|
294
294
|
permission: {
|
|
295
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
296
|
-
readonly session?: ("
|
|
295
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
296
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
297
297
|
};
|
|
298
298
|
permissions?: never | undefined;
|
|
299
299
|
} | {
|
|
300
300
|
permissions: {
|
|
301
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
302
|
-
readonly session?: ("
|
|
301
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
302
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
303
303
|
};
|
|
304
304
|
permission?: never | undefined;
|
|
305
305
|
}) & {
|
|
@@ -307,14 +307,14 @@ declare const authClient: {
|
|
|
307
307
|
role?: "user" | "admin" | undefined;
|
|
308
308
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<(({
|
|
309
309
|
permission: {
|
|
310
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
311
|
-
readonly session?: ("
|
|
310
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
311
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
312
312
|
};
|
|
313
313
|
permissions?: never | undefined;
|
|
314
314
|
} | {
|
|
315
315
|
permissions: {
|
|
316
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
317
|
-
readonly session?: ("
|
|
316
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
317
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
318
318
|
};
|
|
319
319
|
permission?: never | undefined;
|
|
320
320
|
}) & {
|
|
@@ -333,7 +333,7 @@ declare const authClient: {
|
|
|
333
333
|
} & {
|
|
334
334
|
signIn: {
|
|
335
335
|
social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
336
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "
|
|
336
|
+
provider: "line" | (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
337
337
|
callbackURL?: string | undefined;
|
|
338
338
|
newUserCallbackURL?: string | undefined;
|
|
339
339
|
errorCallbackURL?: string | undefined;
|
|
@@ -350,7 +350,7 @@ declare const authClient: {
|
|
|
350
350
|
loginHint?: string | undefined;
|
|
351
351
|
additionalData?: Record<string, any> | undefined;
|
|
352
352
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
353
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "
|
|
353
|
+
provider: "line" | (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
354
354
|
callbackURL?: string | undefined;
|
|
355
355
|
newUserCallbackURL?: string | undefined;
|
|
356
356
|
errorCallbackURL?: string | undefined;
|
|
@@ -869,14 +869,14 @@ declare const authClient: {
|
|
|
869
869
|
admin: {
|
|
870
870
|
checkRolePermission: <R extends "user" | "admin">(data: ({
|
|
871
871
|
permission: {
|
|
872
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
873
|
-
readonly session?: ("
|
|
872
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
873
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
874
874
|
};
|
|
875
875
|
permissions?: never | undefined;
|
|
876
876
|
} | {
|
|
877
877
|
permissions: {
|
|
878
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
879
|
-
readonly session?: ("
|
|
878
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
879
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
880
880
|
};
|
|
881
881
|
permission?: never | undefined;
|
|
882
882
|
}) & {
|
|
@@ -1214,9 +1214,21 @@ export declare function useAuth(): {
|
|
|
1214
1214
|
readonly isRefetching: boolean;
|
|
1215
1215
|
readonly error: import("better-auth/vue").BetterFetchError | null;
|
|
1216
1216
|
}>>;
|
|
1217
|
-
isLoading:
|
|
1218
|
-
isAuthenticated:
|
|
1219
|
-
user:
|
|
1217
|
+
isLoading: import("vue").ComputedRef<boolean>;
|
|
1218
|
+
isAuthenticated: import("vue").ComputedRef<boolean>;
|
|
1219
|
+
user: import("vue").ComputedRef<{
|
|
1220
|
+
readonly id: string;
|
|
1221
|
+
readonly createdAt: Date;
|
|
1222
|
+
readonly updatedAt: Date;
|
|
1223
|
+
readonly email: string;
|
|
1224
|
+
readonly emailVerified: boolean;
|
|
1225
|
+
readonly name: string;
|
|
1226
|
+
readonly image?: string | null | undefined;
|
|
1227
|
+
readonly banned: boolean | null | undefined;
|
|
1228
|
+
readonly role?: string | null | undefined;
|
|
1229
|
+
readonly banReason?: string | null | undefined;
|
|
1230
|
+
readonly banExpires?: Date | null | undefined;
|
|
1231
|
+
} | null>;
|
|
1220
1232
|
login: (returnTo?: string) => void;
|
|
1221
1233
|
register: (returnTo?: string) => void;
|
|
1222
1234
|
logout: () => Promise<void>;
|
|
@@ -1343,7 +1355,7 @@ export declare function useAuth(): {
|
|
|
1343
1355
|
limit?: string | number | undefined;
|
|
1344
1356
|
offset?: string | number | undefined;
|
|
1345
1357
|
sortBy?: string | undefined;
|
|
1346
|
-
sortDirection?: "
|
|
1358
|
+
sortDirection?: "desc" | "asc" | undefined;
|
|
1347
1359
|
filterField?: string | undefined;
|
|
1348
1360
|
filterValue?: string | number | boolean | undefined;
|
|
1349
1361
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
@@ -1355,7 +1367,7 @@ export declare function useAuth(): {
|
|
|
1355
1367
|
limit?: string | number | undefined;
|
|
1356
1368
|
offset?: string | number | undefined;
|
|
1357
1369
|
sortBy?: string | undefined;
|
|
1358
|
-
sortDirection?: "
|
|
1370
|
+
sortDirection?: "desc" | "asc" | undefined;
|
|
1359
1371
|
filterField?: string | undefined;
|
|
1360
1372
|
filterValue?: string | number | boolean | undefined;
|
|
1361
1373
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
@@ -1551,14 +1563,14 @@ export declare function useAuth(): {
|
|
|
1551
1563
|
admin: {
|
|
1552
1564
|
hasPermission: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<({
|
|
1553
1565
|
permission: {
|
|
1554
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1555
|
-
readonly session?: ("
|
|
1566
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1567
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1556
1568
|
};
|
|
1557
1569
|
permissions?: never | undefined;
|
|
1558
1570
|
} | {
|
|
1559
1571
|
permissions: {
|
|
1560
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1561
|
-
readonly session?: ("
|
|
1572
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1573
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1562
1574
|
};
|
|
1563
1575
|
permission?: never | undefined;
|
|
1564
1576
|
}) & {
|
|
@@ -1566,14 +1578,14 @@ export declare function useAuth(): {
|
|
|
1566
1578
|
role?: "user" | "admin" | undefined;
|
|
1567
1579
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<(({
|
|
1568
1580
|
permission: {
|
|
1569
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1570
|
-
readonly session?: ("
|
|
1581
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1582
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1571
1583
|
};
|
|
1572
1584
|
permissions?: never | undefined;
|
|
1573
1585
|
} | {
|
|
1574
1586
|
permissions: {
|
|
1575
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1576
|
-
readonly session?: ("
|
|
1587
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1588
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1577
1589
|
};
|
|
1578
1590
|
permission?: never | undefined;
|
|
1579
1591
|
}) & {
|
|
@@ -1592,7 +1604,7 @@ export declare function useAuth(): {
|
|
|
1592
1604
|
} & {
|
|
1593
1605
|
signIn: {
|
|
1594
1606
|
social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
1595
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "
|
|
1607
|
+
provider: "line" | (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
1596
1608
|
callbackURL?: string | undefined;
|
|
1597
1609
|
newUserCallbackURL?: string | undefined;
|
|
1598
1610
|
errorCallbackURL?: string | undefined;
|
|
@@ -1609,7 +1621,7 @@ export declare function useAuth(): {
|
|
|
1609
1621
|
loginHint?: string | undefined;
|
|
1610
1622
|
additionalData?: Record<string, any> | undefined;
|
|
1611
1623
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
1612
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "
|
|
1624
|
+
provider: "line" | (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
1613
1625
|
callbackURL?: string | undefined;
|
|
1614
1626
|
newUserCallbackURL?: string | undefined;
|
|
1615
1627
|
errorCallbackURL?: string | undefined;
|
|
@@ -2128,14 +2140,14 @@ export declare function useAuth(): {
|
|
|
2128
2140
|
admin: {
|
|
2129
2141
|
checkRolePermission: <R extends "user" | "admin">(data: ({
|
|
2130
2142
|
permission: {
|
|
2131
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
2132
|
-
readonly session?: ("
|
|
2143
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
2144
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
2133
2145
|
};
|
|
2134
2146
|
permissions?: never | undefined;
|
|
2135
2147
|
} | {
|
|
2136
2148
|
permissions: {
|
|
2137
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
2138
|
-
readonly session?: ("
|
|
2149
|
+
readonly user?: ("delete" | "get" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
2150
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
2139
2151
|
};
|
|
2140
2152
|
permission?: never | undefined;
|
|
2141
2153
|
}) & {
|
|
@@ -2411,7 +2423,7 @@ export declare function useAuth(): {
|
|
|
2411
2423
|
};
|
|
2412
2424
|
export declare const signIn: {
|
|
2413
2425
|
social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2414
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "
|
|
2426
|
+
provider: "line" | (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
2415
2427
|
callbackURL?: string | undefined;
|
|
2416
2428
|
newUserCallbackURL?: string | undefined;
|
|
2417
2429
|
errorCallbackURL?: string | undefined;
|
|
@@ -2428,7 +2440,7 @@ export declare const signIn: {
|
|
|
2428
2440
|
loginHint?: string | undefined;
|
|
2429
2441
|
additionalData?: Record<string, any> | undefined;
|
|
2430
2442
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2431
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "
|
|
2443
|
+
provider: "line" | (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
2432
2444
|
callbackURL?: string | undefined;
|
|
2433
2445
|
newUserCallbackURL?: string | undefined;
|
|
2434
2446
|
errorCallbackURL?: string | undefined;
|
|
@@ -84,7 +84,7 @@ export function pathBreadcrumbSegments(path, rootNode = "/") {
|
|
|
84
84
|
return stepNode(startNode).reverse();
|
|
85
85
|
}
|
|
86
86
|
function withoutQuery(path) {
|
|
87
|
-
return path.split("?")[0];
|
|
87
|
+
return path.split("?")[0] ?? "";
|
|
88
88
|
}
|
|
89
89
|
function titleCase(s) {
|
|
90
90
|
return s.replaceAll("-", " ").replace(/\w\S*/g, (w) => w.charAt(0).toUpperCase() + w.substr(1).toLowerCase());
|
package/dist/runtime/error.vue
CHANGED
|
@@ -211,12 +211,20 @@ function switchUser() {
|
|
|
211
211
|
<!-- Quick Info -->
|
|
212
212
|
<div class="grid grid-cols-2 gap-4 p-3 bg-slate-50 dark:bg-slate-900 rounded-lg">
|
|
213
213
|
<div>
|
|
214
|
-
<div class="font-medium text-slate-500 dark:text-slate-400 text-xs mb-1">
|
|
215
|
-
|
|
214
|
+
<div class="font-medium text-slate-500 dark:text-slate-400 text-xs mb-1">
|
|
215
|
+
Status Code
|
|
216
|
+
</div>
|
|
217
|
+
<div class="font-mono text-slate-900 dark:text-slate-100">
|
|
218
|
+
{{ error.statusCode }}
|
|
219
|
+
</div>
|
|
216
220
|
</div>
|
|
217
221
|
<div>
|
|
218
|
-
<div class="font-medium text-slate-500 dark:text-slate-400 text-xs mb-1">
|
|
219
|
-
|
|
222
|
+
<div class="font-medium text-slate-500 dark:text-slate-400 text-xs mb-1">
|
|
223
|
+
Timestamp
|
|
224
|
+
</div>
|
|
225
|
+
<div class="font-mono text-slate-900 dark:text-slate-100 text-xs">
|
|
226
|
+
{{ (/* @__PURE__ */ new Date()).toLocaleString() }}
|
|
227
|
+
</div>
|
|
220
228
|
</div>
|
|
221
229
|
</div>
|
|
222
230
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert bytes to human-readable size string
|
|
3
|
+
*/
|
|
4
|
+
export declare function bytesToSize(bytes: number): string;
|
|
5
|
+
/**
|
|
6
|
+
* Get file extension from filename
|
|
7
|
+
*/
|
|
8
|
+
export declare function getFileExtension(filename: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Get MIME type category
|
|
11
|
+
*/
|
|
12
|
+
export declare function getMimeTypeCategory(mimeType: string): 'image' | 'video' | 'audio' | 'document' | 'archive' | 'other';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function bytesToSize(bytes) {
|
|
2
|
+
if (bytes === 0) return "0 B";
|
|
3
|
+
const k = 1024;
|
|
4
|
+
const sizes = ["B", "KB", "MB", "GB", "TB"];
|
|
5
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
6
|
+
return `${Number.parseFloat((bytes / k ** i).toFixed(2))} ${sizes[i]}`;
|
|
7
|
+
}
|
|
8
|
+
export function getFileExtension(filename) {
|
|
9
|
+
return filename.slice((filename.lastIndexOf(".") - 1 >>> 0) + 2);
|
|
10
|
+
}
|
|
11
|
+
export function getMimeTypeCategory(mimeType) {
|
|
12
|
+
if (mimeType.startsWith("image/")) return "image";
|
|
13
|
+
if (mimeType.startsWith("video/")) return "video";
|
|
14
|
+
if (mimeType.startsWith("audio/")) return "audio";
|
|
15
|
+
if (mimeType.includes("pdf") || mimeType.includes("document") || mimeType.includes("text/")) return "document";
|
|
16
|
+
if (mimeType.includes("zip") || mimeType.includes("tar") || mimeType.includes("rar") || mimeType.includes("7z")) return "archive";
|
|
17
|
+
return "other";
|
|
18
|
+
}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
// GraphQL client types - populated by nitro-graphql codegen
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// File type enum for storage components
|
|
4
|
+
export type FileType = 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'ARCHIVE' | 'OTHER'
|
|
5
|
+
|
|
6
|
+
// Re-export for convenience
|
|
7
|
+
export type { FileType as StorageFileType }
|
|
8
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abckit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"import": "./dist/runtime/colada.options.js"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"main": "./dist/module.mjs",
|
|
44
43
|
"types": "./dist/module.d.mts",
|
|
45
44
|
"files": [
|
|
46
45
|
"dist"
|
|
@@ -60,6 +59,7 @@
|
|
|
60
59
|
"@tailwindcss/typography": "^0.5.19",
|
|
61
60
|
"@tanstack/vue-table": "^8.21.3",
|
|
62
61
|
"@vee-validate/nuxt": "^4.15.1",
|
|
62
|
+
"@vee-validate/zod": "^4.15.1",
|
|
63
63
|
"@vueuse/core": "^14.1.0",
|
|
64
64
|
"@vueuse/nuxt": "^14.1.0",
|
|
65
65
|
"@vueuse/router": "^14.1.0",
|
|
@@ -99,10 +99,12 @@
|
|
|
99
99
|
"vue": "^3.5.25",
|
|
100
100
|
"vue-input-otp": "^0.3.2",
|
|
101
101
|
"vue-router": "^4.6.3",
|
|
102
|
+
"vue-sonner": "^2.0.9",
|
|
102
103
|
"vue-tsc": "^3.1.5",
|
|
103
104
|
"zod": "^4.1.13"
|
|
104
105
|
},
|
|
105
106
|
"devDependencies": {
|
|
107
|
+
"@antfu/eslint-config": "^6.4.1",
|
|
106
108
|
"@nuxt/eslint": "latest",
|
|
107
109
|
"@nuxt/module-builder": "^1.0.2",
|
|
108
110
|
"@types/node": "^24.10.1",
|
|
@@ -117,10 +119,12 @@
|
|
|
117
119
|
"abckit": "workspace:*"
|
|
118
120
|
},
|
|
119
121
|
"scripts": {
|
|
122
|
+
"build": "nuxt-module-build build",
|
|
120
123
|
"dev": "nuxt dev playground",
|
|
121
124
|
"dev:build": "nuxi build playground",
|
|
122
125
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
123
126
|
"lint": "eslint .",
|
|
127
|
+
"lint:fix": "eslint . --fix",
|
|
124
128
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
125
129
|
}
|
|
126
130
|
}
|