firstly 0.0.7 → 0.0.9
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 +23 -0
- package/esm/BaseEnum.d.ts +2 -13
- package/esm/BaseEnum.js +0 -4
- package/esm/FF_Entity.js +20 -4
- package/esm/SqlDatabase/FF_LogToConsole.d.ts +4 -1
- package/esm/SqlDatabase/FF_LogToConsole.js +15 -8
- package/esm/api/index.d.ts +4 -4
- package/esm/api/index.js +13 -13
- package/esm/auth/Adapter.js +1 -9
- package/esm/auth/AuthController.server.d.ts +1 -2
- package/esm/auth/AuthController.server.js +21 -12
- package/esm/auth/RoleHelpers.d.ts +2 -2
- package/esm/auth/RoleHelpers.js +6 -4
- package/esm/auth/client/Auth.d.ts +11 -4
- package/esm/auth/client/Auth.js +14 -6
- package/esm/auth/{Entities.d.ts → client/Entities.d.ts} +4 -4
- package/esm/auth/{Entities.js → client/Entities.js} +33 -17
- package/esm/auth/client/index.d.ts +5 -0
- package/esm/auth/client/index.js +5 -0
- package/esm/auth/helper.d.ts +6 -1
- package/esm/auth/helper.js +11 -4
- package/esm/auth/index.d.ts +11 -11
- package/esm/auth/index.js +93 -78
- package/esm/auth/providers/github.js +2 -1
- package/esm/auth/providers/index.js +1 -1
- package/esm/auth/providers/strava.js +2 -1
- package/esm/auth/static/assets/{Page-RIbXHuZG.d.ts → Page-BEFYPjis.d.ts} +1 -1
- package/esm/auth/static/assets/{Page-RIbXHuZG.js → Page-BEFYPjis.js} +1 -1
- package/esm/auth/static/assets/Page-Cfysx_UV.d.ts +6 -0
- package/esm/auth/static/assets/Page-Cfysx_UV.js +18 -0
- package/esm/auth/static/assets/{Page-DBWJjlEQ.d.ts → Page-DtgkOCJs.d.ts} +1 -1
- package/esm/auth/static/assets/{Page-DBWJjlEQ.js → Page-DtgkOCJs.js} +1 -1
- package/esm/auth/static/assets/index-QypqCYwC.d.ts +63 -0
- package/esm/auth/static/assets/index-QypqCYwC.js +2 -0
- package/esm/auth/static/index.html +1 -1
- package/esm/auth/types.d.ts +7 -5
- package/esm/bin/cmd.js +28 -14
- package/esm/cellsBuildor.d.ts +5 -4
- package/esm/cellsBuildor.js +42 -17
- package/esm/changeLog/index.d.ts +23 -7
- package/esm/changeLog/index.js +24 -18
- package/esm/feedback/FeedbackController.d.ts +12 -3
- package/esm/feedback/FeedbackController.js +62 -13
- package/esm/feedback/index.d.ts +1 -0
- package/esm/feedback/ui/DialogIssue.svelte +26 -7
- package/esm/feedback/ui/DialogIssues.svelte +7 -2
- package/esm/handle/index.d.ts +1 -1
- package/esm/helper.js +3 -2
- package/esm/index.d.ts +10 -3
- package/esm/index.js +1 -1
- package/esm/mail/index.js +15 -10
- package/esm/storeList.d.ts +3 -1
- package/esm/storeList.js +20 -10
- package/esm/ui/Field.svelte +11 -13
- package/esm/ui/FieldGroup.svelte +4 -2
- package/esm/ui/Grid.svelte +90 -20
- package/esm/ui/Grid.svelte.d.ts +1 -0
- package/esm/ui/GridPaginate.svelte +12 -10
- package/esm/ui/GridPaginate.svelte.d.ts +1 -1
- package/esm/ui/dialog/DialogPrimitive.svelte +1 -5
- package/esm/ui/dialog/dialog.d.ts +10 -8
- package/esm/ui/dialog/dialog.js +9 -10
- package/esm/ui/internals/Input.svelte +10 -1
- package/esm/ui/link/LinkPlus.svelte +41 -29
- package/esm/vite/index.js +4 -1
- package/package.json +8 -8
- package/esm/auth/static/assets/Page-apb_xgZT.d.ts +0 -6
- package/esm/auth/static/assets/Page-apb_xgZT.js +0 -18
- package/esm/auth/static/assets/index-qfq98Nyd.d.ts +0 -63
- package/esm/auth/static/assets/index-qfq98Nyd.js +0 -2
|
@@ -1,44 +1,56 @@
|
|
|
1
|
-
<script>import {
|
|
1
|
+
<script>import {} from "../..";
|
|
2
2
|
import Icon from "../Icon.svelte";
|
|
3
3
|
import Tooltip from "../Tooltip.svelte";
|
|
4
4
|
import Link from "./Link.svelte";
|
|
5
5
|
export let item;
|
|
6
6
|
export let noIcon = false;
|
|
7
7
|
export let captionSubStyle = "under";
|
|
8
|
+
const hasSomethingToDisplay = (item2) => {
|
|
9
|
+
if (item2.href) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
if (item2.caption) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
};
|
|
8
17
|
</script>
|
|
9
18
|
|
|
10
19
|
<div class="flex items-center gap-4">
|
|
11
20
|
{#if item}
|
|
12
21
|
{#if item.icon?.data && !noIcon}
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
size={item.icon.size}
|
|
18
|
-
/>
|
|
19
|
-
</Tooltip>
|
|
20
|
-
{/if}
|
|
21
|
-
<div class="flex flex-col items-start">
|
|
22
|
-
{#if item.href}
|
|
23
|
-
<div>
|
|
24
|
-
<Link href={item.href}>{item.caption}</Link>
|
|
25
|
-
{#if item.captionSub && captionSubStyle === 'inline'}
|
|
26
|
-
<span class="text-base-content/70 text-xs italic">{item.captionSub}</span>
|
|
27
|
-
{/if}
|
|
28
|
-
</div>
|
|
22
|
+
{#if item.icon.caption}
|
|
23
|
+
<Tooltip text={item.icon.caption}>
|
|
24
|
+
<Icon {...item.icon} />
|
|
25
|
+
</Tooltip>
|
|
29
26
|
{:else}
|
|
30
|
-
|
|
31
|
-
<span
|
|
32
|
-
class="text-base-content {item.class} {(item.caption ?? '').length < 20
|
|
33
|
-
? 'text-nowrap'
|
|
34
|
-
: ''}"
|
|
35
|
-
>
|
|
36
|
-
{item.caption ?? '-'}
|
|
37
|
-
</span>
|
|
38
|
-
{/if}
|
|
39
|
-
{#if item.captionSub && captionSubStyle === 'under'}
|
|
40
|
-
<span class="text-base-content/70 text-xs italic">{item.captionSub}</span>
|
|
27
|
+
<Icon {...item.icon} />
|
|
41
28
|
{/if}
|
|
42
|
-
|
|
29
|
+
{/if}
|
|
30
|
+
|
|
31
|
+
{#if hasSomethingToDisplay(item)}
|
|
32
|
+
<div class="flex flex-col items-start">
|
|
33
|
+
{#if item.href}
|
|
34
|
+
<div>
|
|
35
|
+
<Link href={item.href}>{item.caption}</Link>
|
|
36
|
+
{#if item.captionSub && captionSubStyle === 'inline'}
|
|
37
|
+
<span class="text-base-content/70 text-xs italic">{item.captionSub}</span>
|
|
38
|
+
{/if}
|
|
39
|
+
</div>
|
|
40
|
+
{:else}
|
|
41
|
+
<!-- 20 is a cool value ! -->
|
|
42
|
+
<span
|
|
43
|
+
class="text-base-content {item.class} {(item.caption ?? '').length < 20
|
|
44
|
+
? 'text-nowrap'
|
|
45
|
+
: ''}"
|
|
46
|
+
>
|
|
47
|
+
{item.caption ?? '-'}
|
|
48
|
+
</span>
|
|
49
|
+
{/if}
|
|
50
|
+
{#if item.captionSub && captionSubStyle === 'under'}
|
|
51
|
+
<span class="text-base-content/70 text-xs italic">{item.captionSub}</span>
|
|
52
|
+
{/if}
|
|
53
|
+
</div>
|
|
54
|
+
{/if}
|
|
43
55
|
{/if}
|
|
44
56
|
</div>
|
package/esm/vite/index.js
CHANGED
|
@@ -2,9 +2,12 @@ import { mergeConfig } from 'vite';
|
|
|
2
2
|
import { kitRoutes } from 'vite-plugin-kit-routes';
|
|
3
3
|
import { stripper } from 'vite-plugin-stripper';
|
|
4
4
|
// import { Log } from '@kitql/helpers'
|
|
5
|
+
// const toRemove = ['oslo/password', 'oslo', '@node-rs/argon2', '@node-rs/bcrypt']
|
|
6
|
+
// oslo needs to be in the dependencies (not devDependencies) !!
|
|
5
7
|
const toRemove = ['oslo/password', 'oslo'];
|
|
6
8
|
export function firstly(options) {
|
|
7
9
|
// const log = new Log('firstly')
|
|
10
|
+
// console.log(`toRemove`, toRemove)
|
|
8
11
|
return [
|
|
9
12
|
{
|
|
10
13
|
name: 'vite-plugin-firstly',
|
|
@@ -13,7 +16,7 @@ export function firstly(options) {
|
|
|
13
16
|
return mergeConfig(a, {
|
|
14
17
|
build: {
|
|
15
18
|
// THE ERROR:
|
|
16
|
-
// RollupError: Unexpected character '�'
|
|
19
|
+
// RollupError: Unexpected character '�' or Unexpected character '\u{7f}'
|
|
17
20
|
// This code (A) is to fix in `build` mode
|
|
18
21
|
rollupOptions: {
|
|
19
22
|
external: toRemove,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firstly",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Firstly, an opinionated Remult setup!",
|
|
6
6
|
"repository": {
|
|
@@ -14,29 +14,29 @@
|
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@sveltejs/kit": ">=1.0.0 <3.0.0",
|
|
17
|
-
"remult": "0.27.
|
|
17
|
+
"remult": "0.27.19",
|
|
18
18
|
"svelte": ">=4.2.18"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@clack/prompts": "^0.7.0",
|
|
22
|
-
"@kitql/internals": "0.9.
|
|
22
|
+
"@kitql/internals": "0.9.9",
|
|
23
23
|
"@mdi/js": "^7.4.47",
|
|
24
|
-
"@melt-ui/svelte": "^0.
|
|
24
|
+
"@melt-ui/svelte": "^0.83.0",
|
|
25
25
|
"@types/nodemailer": "^6.4.15",
|
|
26
26
|
"arctic": "^1.8.0",
|
|
27
27
|
"clsx": "^2.1.1",
|
|
28
28
|
"cron": "^3.1.7",
|
|
29
|
-
"daisyui": "^4.10
|
|
29
|
+
"daisyui": "^4.12.10",
|
|
30
30
|
"esm-env": "^1.0.0",
|
|
31
31
|
"lucia": "^3.2.0",
|
|
32
32
|
"nodemailer": "^6.9.13",
|
|
33
|
-
"oslo": "
|
|
33
|
+
"oslo": "1.2.1",
|
|
34
34
|
"svelty-email": "^0.0.11",
|
|
35
35
|
"tailwind-merge": "^2.3.0",
|
|
36
36
|
"tailwindcss": "^3.4.3",
|
|
37
37
|
"vite": "^5.4.1",
|
|
38
|
-
"vite-plugin-kit-routes": "^0.6.
|
|
39
|
-
"vite-plugin-stripper": "^0.5.
|
|
38
|
+
"vite-plugin-kit-routes": "^0.6.10",
|
|
39
|
+
"vite-plugin-stripper": "^0.5.4"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"bin": "./esm/bin/cmd.js",
|