firstly 0.0.12 → 0.0.14
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/CHANGELOG.md +16 -0
- package/esm/ROUTES.d.ts +2 -0
- package/esm/ROUTES.js +1 -0
- package/esm/api/index.d.ts +9 -0
- package/esm/api/index.js +3 -1
- package/esm/auth/AuthController.d.ts +12 -23
- package/esm/auth/AuthController.js +12 -31
- package/esm/auth/server/AuthController.server.d.ts +11 -11
- package/esm/auth/server/AuthController.server.js +99 -34
- package/esm/auth/server/handleGuard.d.ts +16 -0
- package/esm/auth/server/handleGuard.js +67 -0
- package/esm/auth/server/helperFirstly.d.ts +1 -1
- package/esm/auth/server/helperFirstly.js +1 -0
- package/esm/auth/server/index.d.ts +3 -1
- package/esm/auth/server/index.js +3 -1
- package/esm/auth/server/module.d.ts +105 -89
- package/esm/auth/server/module.js +55 -42
- package/esm/auth/server/providers/github.d.ts +4 -2
- package/esm/auth/server/providers/github.js +2 -2
- package/esm/auth/static/assets/Page-B0XXxe0N.d.ts +6 -0
- package/esm/auth/static/assets/Page-B0XXxe0N.js +1 -0
- package/esm/auth/static/assets/Page-DdKMiUZn.d.ts +6 -0
- package/esm/auth/static/assets/Page-DdKMiUZn.js +20 -0
- package/esm/auth/static/assets/Page-UV_hqY7I.d.ts +6 -0
- package/esm/auth/static/assets/Page-UV_hqY7I.js +1 -0
- package/esm/auth/static/assets/Page-mK42zGEw.css +1 -0
- package/esm/auth/static/assets/index-C9jzxOBu.d.ts +151 -0
- package/esm/auth/static/assets/index-C9jzxOBu.js +42 -0
- package/esm/auth/static/assets/index-DKWpA6v7.css +4 -0
- package/esm/auth/static/index.html +11 -11
- package/esm/auth/types.d.ts +26 -3
- package/esm/bin/cmd.js +423 -152
- package/esm/cellsBuildor.js +1 -1
- package/esm/common.d.ts +5 -0
- package/esm/common.js +8 -0
- package/esm/cron/server/index.js +1 -1
- package/esm/feedback/FeedbackController.js +58 -53
- package/esm/feedback/server/index.d.ts +6 -15
- package/esm/feedback/server/index.js +4 -5
- package/esm/feedback/types.d.ts +14 -0
- package/esm/feedback/types.js +4 -0
- package/esm/feedback/ui/DialogIssue.svelte +131 -119
- package/esm/feedback/ui/DialogIssue.svelte.d.ts +20 -18
- package/esm/feedback/ui/DialogIssues.svelte +108 -99
- package/esm/feedback/ui/DialogIssues.svelte.d.ts +20 -18
- package/esm/feedback/ui/DialogMilestones.svelte +40 -34
- package/esm/feedback/ui/DialogMilestones.svelte.d.ts +18 -16
- package/esm/feedback/ui/Feedback.svelte +11 -9
- package/esm/feedback/ui/Feedback.svelte.d.ts +16 -14
- package/esm/index.d.ts +2 -5
- package/esm/index.js +2 -8
- package/esm/mail/server/index.d.ts +9 -2
- package/esm/mail/server/index.js +3 -1
- package/esm/mail/templates/DefaultMail.svelte +81 -61
- package/esm/mail/templates/DefaultMail.svelte.d.ts +28 -26
- package/esm/server/index.d.ts +0 -0
- package/esm/server/index.js +1 -0
- package/esm/storeItem.d.ts +1 -4
- package/esm/storeItem.js +1 -1
- package/esm/storeList.d.ts +1 -4
- package/esm/sveltekit/server/index.d.ts +3 -9
- package/esm/sveltekit/server/index.js +3 -0
- package/esm/ui/Button.svelte +112 -89
- package/esm/ui/Button.svelte.d.ts +34 -24
- package/esm/ui/Clipboardable.svelte +24 -17
- package/esm/ui/Clipboardable.svelte.d.ts +34 -23
- package/esm/ui/Field.svelte +328 -285
- package/esm/ui/Field.svelte.d.ts +15 -8
- package/esm/ui/FieldGroup.svelte +112 -91
- package/esm/ui/FieldGroup.svelte.d.ts +17 -6
- package/esm/ui/Grid.svelte +322 -308
- package/esm/ui/Grid.svelte.d.ts +17 -6
- package/esm/ui/GridLoading.svelte +28 -27
- package/esm/ui/GridLoading.svelte.d.ts +19 -17
- package/esm/ui/GridPaginate.svelte +68 -61
- package/esm/ui/GridPaginate.svelte.d.ts +21 -19
- package/esm/ui/Icon.svelte +116 -80
- package/esm/ui/Icon.svelte.d.ts +52 -43
- package/esm/ui/Loading.svelte +10 -8
- package/esm/ui/Loading.svelte.d.ts +29 -18
- package/esm/ui/Tooltip.svelte +38 -35
- package/esm/ui/Tooltip.svelte.d.ts +30 -20
- package/esm/ui/dialog/DialogForm.svelte +70 -63
- package/esm/ui/dialog/DialogForm.svelte.d.ts +18 -16
- package/esm/ui/dialog/DialogManagement.svelte +74 -74
- package/esm/ui/dialog/DialogManagement.svelte.d.ts +22 -21
- package/esm/ui/dialog/DialogPrimitive.svelte +82 -76
- package/esm/ui/dialog/DialogPrimitive.svelte.d.ts +35 -25
- package/esm/ui/dialog/FormEditAction.svelte +58 -50
- package/esm/ui/dialog/FormEditAction.svelte.d.ts +13 -6
- package/esm/ui/dialog/dialog.d.ts +1 -4
- package/esm/ui/internals/FieldContainer.svelte +24 -17
- package/esm/ui/internals/FieldContainer.svelte.d.ts +37 -28
- package/esm/ui/internals/Input.svelte +136 -102
- package/esm/ui/internals/Input.svelte.d.ts +34 -32
- package/esm/ui/internals/Textarea.svelte +60 -52
- package/esm/ui/internals/Textarea.svelte.d.ts +31 -28
- package/esm/ui/internals/select/MultiSelectMelt.svelte +243 -199
- package/esm/ui/internals/select/MultiSelectMelt.svelte.d.ts +29 -27
- package/esm/ui/internals/select/SelectMelt.svelte +254 -219
- package/esm/ui/internals/select/SelectMelt.svelte.d.ts +34 -32
- package/esm/ui/internals/select/SelectRadio.svelte +39 -33
- package/esm/ui/internals/select/SelectRadio.svelte.d.ts +24 -22
- package/esm/ui/link/Link.svelte +25 -20
- package/esm/ui/link/Link.svelte.d.ts +31 -23
- package/esm/ui/link/LinkPlus.svelte +52 -51
- package/esm/ui/link/LinkPlus.svelte.d.ts +20 -18
- package/esm/vite/index.d.ts +2 -3
- package/esm/vite/index.js +33 -26
- package/package.json +16 -20
- package/esm/auth/static/assets/Page-Bb8bFlrP.d.ts +0 -4
- package/esm/auth/static/assets/Page-Bb8bFlrP.js +0 -1
- package/esm/auth/static/assets/Page-BxomFlZ8.d.ts +0 -4
- package/esm/auth/static/assets/Page-BxomFlZ8.js +0 -1
- package/esm/auth/static/assets/Page-CaIYu0-y.d.ts +0 -6
- package/esm/auth/static/assets/Page-CaIYu0-y.js +0 -19
- package/esm/auth/static/assets/Page-MkYglNtu.css +0 -1
- package/esm/auth/static/assets/index-Bl0Bk5u0.d.ts +0 -64
- package/esm/auth/static/assets/index-Bl0Bk5u0.js +0 -2
- package/esm/auth/static/assets/index-R27C_TlP.css +0 -4
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { BaseItem } from '../../../';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
10
12
|
};
|
|
11
|
-
|
|
12
|
-
selected: CustomEvent<any>;
|
|
13
|
-
} & {
|
|
14
|
-
[evt: string]: CustomEvent<any>;
|
|
15
|
-
};
|
|
16
|
-
slots: {};
|
|
17
|
-
exports?: {} | undefined;
|
|
18
|
-
bindings?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
export type SelectRadioProps = typeof __propDef.props;
|
|
21
|
-
export type SelectRadioEvents = typeof __propDef.events;
|
|
22
|
-
export type SelectRadioSlots = typeof __propDef.slots;
|
|
23
|
-
export default class SelectRadio extends SvelteComponent<SelectRadioProps, SelectRadioEvents, SelectRadioSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
24
14
|
}
|
|
25
|
-
|
|
15
|
+
declare const SelectRadio: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
id: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
items?: BaseItem[];
|
|
20
|
+
value?: string | number | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
selected: CustomEvent<any>;
|
|
23
|
+
} & {
|
|
24
|
+
[evt: string]: CustomEvent<any>;
|
|
25
|
+
}, {}, {}, string>;
|
|
26
|
+
type SelectRadio = InstanceType<typeof SelectRadio>;
|
|
27
|
+
export default SelectRadio;
|
package/esm/ui/link/Link.svelte
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let
|
|
6
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HTMLAnchorAttributes } from 'svelte/elements'
|
|
3
|
+
|
|
4
|
+
export let href: string
|
|
5
|
+
export let target: HTMLAnchorAttributes['target'] = undefined
|
|
6
|
+
|
|
7
|
+
export let kind: 'info' | 'ghost' = 'info'
|
|
8
|
+
const daisy = { info: 'link-info', ghost: '' }
|
|
9
|
+
|
|
10
|
+
let className: string | undefined | null = undefined
|
|
11
|
+
export { className as class }
|
|
7
12
|
</script>
|
|
8
13
|
|
|
9
14
|
<a
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
class={`${daisy[kind]} link inline-block text-left no-underline hover:underline ${className ?? ''}`}
|
|
16
|
+
{href}
|
|
17
|
+
rel="noopener"
|
|
18
|
+
{target}
|
|
19
|
+
{...$$restProps}
|
|
15
20
|
>
|
|
16
|
-
|
|
21
|
+
<slot />
|
|
17
22
|
</a>
|
|
18
23
|
|
|
19
24
|
<style>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
a[target='_blank']::after {
|
|
26
|
+
display: inline-block;
|
|
27
|
+
content: '⇱';
|
|
28
|
+
position: relative;
|
|
29
|
+
top: -3px;
|
|
30
|
+
margin-left: 3px;
|
|
31
|
+
transform: rotate(90deg);
|
|
32
|
+
}
|
|
28
33
|
</style>
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {
|
|
15
|
-
default: {};
|
|
16
|
-
};
|
|
17
|
-
exports?: undefined;
|
|
18
|
-
bindings?: undefined;
|
|
19
|
-
};
|
|
20
|
-
export type LinkProps = typeof __propDef.props;
|
|
21
|
-
export type LinkEvents = typeof __propDef.events;
|
|
22
|
-
export type LinkSlots = typeof __propDef.slots;
|
|
23
|
-
export default class Link extends SvelteComponent<LinkProps, LinkEvents, LinkSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
24
13
|
}
|
|
25
|
-
|
|
14
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
15
|
+
default: any;
|
|
16
|
+
} ? Props extends Record<string, never> ? any : {
|
|
17
|
+
children?: any;
|
|
18
|
+
} : {});
|
|
19
|
+
declare const Link: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
href: string;
|
|
22
|
+
target?: import("svelte/elements").HTMLAttributeAnchorTarget | null | undefined;
|
|
23
|
+
kind?: "info" | "ghost" | undefined;
|
|
24
|
+
class?: string | undefined | null | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
default: {};
|
|
27
|
+
}>, {
|
|
28
|
+
[evt: string]: CustomEvent<any>;
|
|
29
|
+
}, {
|
|
30
|
+
default: {};
|
|
31
|
+
}, {}, string>;
|
|
32
|
+
type Link = InstanceType<typeof Link>;
|
|
33
|
+
export default Link;
|
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { type BaseItemLight } from '../..'
|
|
3
|
+
import Icon from '../Icon.svelte'
|
|
4
|
+
import Tooltip from '../Tooltip.svelte'
|
|
5
|
+
import Link from './Link.svelte'
|
|
6
|
+
|
|
7
|
+
export let item: BaseItemLight | undefined
|
|
8
|
+
export let noIcon = false
|
|
9
|
+
export let captionSubStyle: 'under' | 'inline' | 'none' = 'under'
|
|
10
|
+
|
|
11
|
+
const hasSomethingToDisplay = (item: BaseItemLight) => {
|
|
12
|
+
if (item.href) {
|
|
13
|
+
return true
|
|
14
|
+
}
|
|
15
|
+
if (item.caption) {
|
|
16
|
+
return true
|
|
17
|
+
}
|
|
18
|
+
return false
|
|
19
|
+
}
|
|
17
20
|
</script>
|
|
18
21
|
|
|
19
22
|
<div class="flex items-center gap-4">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
{#if item}
|
|
24
|
+
{#if item.icon?.data && !noIcon}
|
|
25
|
+
{#if item.icon.caption}
|
|
26
|
+
<Tooltip text={item.icon.caption}>
|
|
27
|
+
<Icon {...item.icon} />
|
|
28
|
+
</Tooltip>
|
|
29
|
+
{:else}
|
|
30
|
+
<Icon {...item.icon} />
|
|
31
|
+
{/if}
|
|
32
|
+
{/if}
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{/if}
|
|
55
|
-
{/if}
|
|
34
|
+
{#if hasSomethingToDisplay(item)}
|
|
35
|
+
<div class="flex flex-col items-start">
|
|
36
|
+
{#if item.href}
|
|
37
|
+
<div>
|
|
38
|
+
<Link href={item.href}>{item.caption}</Link>
|
|
39
|
+
{#if item.captionSub && captionSubStyle === 'inline'}
|
|
40
|
+
<span class="text-base-content/70 text-xs italic">{item.captionSub}</span>
|
|
41
|
+
{/if}
|
|
42
|
+
</div>
|
|
43
|
+
{:else}
|
|
44
|
+
<!-- 20 is a cool value ! -->
|
|
45
|
+
<span
|
|
46
|
+
class="text-base-content {item.class} {(item.caption ?? '').length < 20 ? 'text-nowrap' : ''}"
|
|
47
|
+
>
|
|
48
|
+
{item.caption ?? '-'}
|
|
49
|
+
</span>
|
|
50
|
+
{/if}
|
|
51
|
+
{#if item.captionSub && captionSubStyle === 'under'}
|
|
52
|
+
<span class="text-base-content/70 text-xs italic">{item.captionSub}</span>
|
|
53
|
+
{/if}
|
|
54
|
+
</div>
|
|
55
|
+
{/if}
|
|
56
|
+
{/if}
|
|
56
57
|
</div>
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import { type BaseItemLight } from '../..';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
8
12
|
};
|
|
9
|
-
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type LinkPlusProps = typeof __propDef.props;
|
|
17
|
-
export type LinkPlusEvents = typeof __propDef.events;
|
|
18
|
-
export type LinkPlusSlots = typeof __propDef.slots;
|
|
19
|
-
export default class LinkPlus extends SvelteComponent<LinkPlusProps, LinkPlusEvents, LinkPlusSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
20
14
|
}
|
|
21
|
-
|
|
15
|
+
declare const LinkPlus: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
item: BaseItemLight | undefined;
|
|
17
|
+
noIcon?: boolean;
|
|
18
|
+
captionSubStyle?: "under" | "inline" | "none";
|
|
19
|
+
}, {
|
|
20
|
+
[evt: string]: CustomEvent<any>;
|
|
21
|
+
}, {}, {}, string>;
|
|
22
|
+
type LinkPlus = InstanceType<typeof LinkPlus>;
|
|
23
|
+
export default LinkPlus;
|
package/esm/vite/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type PluginOption } from 'vite';
|
|
2
2
|
import { type Options, type RouteMappings } from 'vite-plugin-kit-routes';
|
|
3
|
+
import { stripper } from 'vite-plugin-stripper';
|
|
3
4
|
export declare function firstly<KIT_ROUTES extends RouteMappings>(options?: {
|
|
4
|
-
stripper?:
|
|
5
|
-
debug?: boolean;
|
|
6
|
-
};
|
|
5
|
+
stripper?: Parameters<typeof stripper>[0];
|
|
7
6
|
kitRoutes?: Options<KIT_ROUTES>;
|
|
8
7
|
}): PluginOption;
|
package/esm/vite/index.js
CHANGED
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
import {} from 'vite';
|
|
2
2
|
import { kitRoutes } from 'vite-plugin-kit-routes';
|
|
3
3
|
import { stripper } from 'vite-plugin-stripper';
|
|
4
|
-
//
|
|
5
|
-
// const toRemove = ['@node-rs/argon2', '@node-rs/bcrypt']
|
|
6
|
-
// oslo needs to be in the dependencies (not devDependencies) !!
|
|
7
|
-
// const toRemove = ['oslo/password', 'oslo']
|
|
4
|
+
// const toRemove = ['async_hooks', 'join', 'fs', 'path']
|
|
8
5
|
export function firstly(options) {
|
|
9
6
|
// @ts-ignore
|
|
10
7
|
return [
|
|
11
8
|
// {
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
-
//
|
|
9
|
+
// name: 'vite-plugin-firstly',
|
|
10
|
+
// enforce: 'pre',
|
|
11
|
+
// config: async (a) => {
|
|
12
|
+
// return mergeConfig(a, {
|
|
13
|
+
// build: {
|
|
14
|
+
// // THE ERROR:
|
|
15
|
+
// // RollupError: Unexpected character '�' or Unexpected character '\u{7f}'
|
|
16
|
+
// // This code (A) is to fix in `build` mode
|
|
17
|
+
// rollupOptions: {
|
|
18
|
+
// external: toRemove,
|
|
19
|
+
// },
|
|
20
|
+
// },
|
|
21
|
+
// // This code (B) is to fix in `dev` mode
|
|
22
|
+
// optimizeDeps: {
|
|
23
|
+
// exclude: toRemove,
|
|
24
|
+
// },
|
|
25
|
+
// })
|
|
26
|
+
// },
|
|
30
27
|
// },
|
|
31
28
|
// @ts-ignore
|
|
32
29
|
...kitRoutes({
|
|
@@ -34,18 +31,28 @@ export function firstly(options) {
|
|
|
34
31
|
...{
|
|
35
32
|
format_page_route_id: true,
|
|
36
33
|
logs: {
|
|
37
|
-
...options?.kitRoutes?.logs,
|
|
38
34
|
post_update_run: false,
|
|
39
35
|
update: false,
|
|
36
|
+
...options?.kitRoutes?.logs,
|
|
40
37
|
},
|
|
41
38
|
},
|
|
42
39
|
}),
|
|
43
40
|
// @ts-ignore
|
|
44
41
|
...stripper({
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
strip: options?.stripper?.strip ?? [
|
|
43
|
+
{ decorator: 'BackendMethod' },
|
|
44
|
+
{
|
|
45
|
+
decorator: 'Entity',
|
|
46
|
+
args_1: [
|
|
47
|
+
{ fn: 'backendPrefilter' },
|
|
48
|
+
{ fn: 'backendPreprocessFilter' },
|
|
49
|
+
{ fn: 'sqlExpression' },
|
|
50
|
+
{ fn: 'saved', excludeEntityKeys: ['users'] },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
47
54
|
debug: options?.stripper?.debug ?? false,
|
|
48
|
-
nullify: ['$env/static/private', '$env/dynamic/private'],
|
|
55
|
+
nullify: options?.stripper?.nullify ?? ['$env/static/private', '$env/dynamic/private'],
|
|
49
56
|
}),
|
|
50
57
|
];
|
|
51
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firstly",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Firstly, an opinionated Remult setup!",
|
|
6
6
|
"funding": "https://github.com/sponsors/jycouet",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@sveltejs/kit": ">=1.0.0 <3.0.0",
|
|
19
|
-
"remult": "2.7.
|
|
20
|
-
"svelte": ">=
|
|
19
|
+
"remult": "2.7.32-next.0",
|
|
20
|
+
"svelte": ">=5"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@clack/prompts": "0.
|
|
24
|
-
"@kitql/internals": "0.
|
|
23
|
+
"@clack/prompts": "0.10.0",
|
|
24
|
+
"@kitql/internals": "0.10.3",
|
|
25
25
|
"@mdi/js": "7.4.47",
|
|
26
26
|
"@melt-ui/svelte": "0.86.3",
|
|
27
27
|
"@oslojs/crypto": "1.0.1",
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
"@oslojs/otp": "1.1.0",
|
|
30
30
|
"@types/nodemailer": "6.4.14",
|
|
31
31
|
"arctic": "3.5.0",
|
|
32
|
-
"
|
|
32
|
+
"bcryptjs": "3.0.2",
|
|
33
33
|
"clsx": "2.1.1",
|
|
34
|
-
"cron": "
|
|
34
|
+
"cron": "4.1.0",
|
|
35
35
|
"daisyui": "4.12.14",
|
|
36
|
-
"esm-env": "1.
|
|
37
|
-
"nodemailer": "6.
|
|
36
|
+
"esm-env": "1.2.2",
|
|
37
|
+
"nodemailer": "6.10.0",
|
|
38
38
|
"svelty-email": "0.0.11",
|
|
39
|
-
"tailwind-merge": "2.
|
|
39
|
+
"tailwind-merge": "2.6.0",
|
|
40
40
|
"tailwindcss": "3.4.4",
|
|
41
|
-
"vite": "
|
|
41
|
+
"vite": "6.2.2",
|
|
42
42
|
"vite-plugin-kit-routes": "0.8.3",
|
|
43
|
-
"vite-plugin-stripper": "0.
|
|
43
|
+
"vite-plugin-stripper": "0.9.0-next.1"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"bin": "./esm/bin/cmd.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"types": "./esm/formats/index.d.ts",
|
|
66
66
|
"default": "./esm/formats/index.js"
|
|
67
67
|
},
|
|
68
|
-
"./auth": {
|
|
68
|
+
"./auth/client": {
|
|
69
69
|
"types": "./esm/auth/index.d.ts",
|
|
70
70
|
"default": "./esm/auth/index.js"
|
|
71
71
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"types": "./esm/auth/server/index.d.ts",
|
|
74
74
|
"default": "./esm/auth/server/index.js"
|
|
75
75
|
},
|
|
76
|
-
"./changeLog": {
|
|
76
|
+
"./changeLog/client": {
|
|
77
77
|
"types": "./esm/changeLog/index.d.ts",
|
|
78
78
|
"default": "./esm/changeLog/index.js"
|
|
79
79
|
},
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"types": "./esm/cron/server/index.d.ts",
|
|
86
86
|
"default": "./esm/cron/server/index.js"
|
|
87
87
|
},
|
|
88
|
-
"./feedback": {
|
|
88
|
+
"./feedback/client": {
|
|
89
89
|
"types": "./esm/feedback/index.d.ts",
|
|
90
90
|
"default": "./esm/feedback/index.js"
|
|
91
91
|
},
|
|
@@ -93,17 +93,13 @@
|
|
|
93
93
|
"types": "./esm/feedback/server/index.d.ts",
|
|
94
94
|
"default": "./esm/feedback/server/index.js"
|
|
95
95
|
},
|
|
96
|
-
"./mail": {
|
|
96
|
+
"./mail/client": {
|
|
97
97
|
"types": "./esm/mail/index.d.ts",
|
|
98
98
|
"default": "./esm/mail/index.js"
|
|
99
99
|
},
|
|
100
100
|
"./mail/server": {
|
|
101
101
|
"types": "./esm/mail/server/index.d.ts",
|
|
102
102
|
"default": "./esm/mail/server/index.js"
|
|
103
|
-
},
|
|
104
|
-
"./sveltekit/server": {
|
|
105
|
-
"types": "./esm/sveltekit/server/index.d.ts",
|
|
106
|
-
"default": "./esm/sveltekit/server/index.js"
|
|
107
103
|
}
|
|
108
104
|
},
|
|
109
105
|
"keywords": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as l,b as d,a as f,d as i,h as m,M as p,t as u,n as r,z as h}from"./index-Bl0Bk5u0.js";function c(a){let e;const n={c:function(){e=p("Hello from files")},l:function(t){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(t,o){u(t,e,o)},p:r,i:r,o:r,d:function(t){t&&h(e)}};return i("SvelteRegisterBlock",{block:n,id:c.name,type:"component",source:"",ctx:a}),n}function w(a,e){let{$$slots:n={},$$scope:s}=e;m("Page",n,[]);const t=[];return Object.keys(e).forEach(o=>{!~t.indexOf(o)&&o.slice(0,2)!=="$$"&&o!=="slot"&&console.warn(`<Page> was created with unknown prop '${o}'`)}),[]}class v extends l{constructor(e){super(e),d(this,e,w,c,f,{}),i("SvelteRegisterComponent",{component:this,tagName:"Page",options:e,id:c.name})}}export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as l,b as d,a as f,d as i,h as m,M as p,t as u,n as r,z as h}from"./index-Bl0Bk5u0.js";function c(s){let e;const n={c:function(){e=p("Hello from admin")},l:function(t){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(t,o){u(t,e,o)},p:r,i:r,o:r,d:function(t){t&&h(e)}};return i("SvelteRegisterBlock",{block:n,id:c.name,type:"component",source:"",ctx:s}),n}function w(s,e){let{$$slots:n={},$$scope:a}=e;m("Page",n,[]);const t=[];return Object.keys(e).forEach(o=>{!~t.indexOf(o)&&o.slice(0,2)!=="$$"&&o!=="slot"&&console.warn(`<Page> was created with unknown prop '${o}'`)}),[]}class v extends l{constructor(e){super(e),d(this,e,w,c,f,{}),i("SvelteRegisterComponent",{component:this,tagName:"Page",options:e,id:c.name})}}export{v as default};
|