firstly 0.0.12 → 0.0.13
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 +8 -0
- package/esm/api/index.d.ts +1 -0
- package/esm/api/index.js +3 -1
- package/esm/auth/server/AuthController.server.d.ts +1 -1
- package/esm/auth/server/AuthController.server.js +19 -19
- package/esm/auth/server/handleGuard.d.ts +16 -0
- package/esm/auth/server/handleGuard.js +67 -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 +102 -83
- package/esm/auth/server/module.js +55 -42
- package/esm/auth/server/providers/github.d.ts +2 -1
- package/esm/auth/server/providers/github.js +1 -1
- package/esm/auth/static/assets/Page-BUfjaN-D.d.ts +5 -0
- package/esm/auth/static/assets/Page-BUfjaN-D.js +19 -0
- package/esm/auth/static/assets/Page-CJ58H1vl.css +1 -0
- package/esm/auth/static/assets/Page-CaDAqmBS.d.ts +5 -0
- package/esm/auth/static/assets/Page-CaDAqmBS.js +1 -0
- package/esm/auth/static/assets/Page-DhdZddzJ.d.ts +5 -0
- package/esm/auth/static/assets/Page-DhdZddzJ.js +1 -0
- package/esm/auth/static/assets/index-BDy4A_14.css +4 -0
- package/esm/auth/static/assets/index-D-Ztdt2o.d.ts +54 -0
- package/esm/auth/static/assets/index-D-Ztdt2o.js +2 -0
- package/esm/auth/static/index.html +11 -11
- package/esm/bin/cmd.js +119 -48
- 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 +1 -2
- package/esm/feedback/ui/DialogIssue.svelte +52 -56
- package/esm/feedback/ui/DialogIssues.svelte +71 -71
- package/esm/feedback/ui/DialogMilestones.svelte +22 -22
- package/esm/index.d.ts +2 -5
- package/esm/index.js +2 -8
- package/esm/mail/templates/DefaultMail.svelte +17 -17
- 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 -0
- package/esm/sveltekit/server/index.js +3 -0
- package/esm/ui/Button.svelte +33 -33
- package/esm/ui/Button.svelte.d.ts +2 -2
- package/esm/ui/Clipboardable.svelte +6 -6
- package/esm/ui/Clipboardable.svelte.d.ts +4 -4
- package/esm/ui/Field.svelte +139 -149
- package/esm/ui/Field.svelte.d.ts +2 -2
- package/esm/ui/FieldGroup.svelte +38 -38
- package/esm/ui/Grid.svelte +212 -222
- package/esm/ui/GridLoading.svelte +18 -22
- package/esm/ui/GridPaginate.svelte +38 -38
- package/esm/ui/Icon.svelte +50 -49
- package/esm/ui/Icon.svelte.d.ts +18 -18
- package/esm/ui/Loading.svelte +5 -5
- package/esm/ui/Tooltip.svelte +16 -16
- package/esm/ui/dialog/DialogForm.svelte +22 -22
- package/esm/ui/dialog/DialogManagement.svelte +74 -74
- package/esm/ui/dialog/DialogPrimitive.svelte +50 -50
- package/esm/ui/dialog/FormEditAction.svelte +34 -34
- package/esm/ui/dialog/dialog.d.ts +1 -4
- package/esm/ui/internals/FieldContainer.svelte +11 -11
- package/esm/ui/internals/FieldContainer.svelte.d.ts +3 -3
- package/esm/ui/internals/Input.svelte +25 -25
- package/esm/ui/internals/Input.svelte.d.ts +1 -1
- package/esm/ui/internals/Textarea.svelte +21 -21
- package/esm/ui/internals/Textarea.svelte.d.ts +2 -2
- package/esm/ui/internals/select/MultiSelectMelt.svelte +69 -73
- package/esm/ui/internals/select/SelectMelt.svelte +86 -86
- package/esm/ui/internals/select/SelectRadio.svelte +22 -22
- package/esm/ui/link/Link.svelte +14 -14
- package/esm/ui/link/Link.svelte.d.ts +3 -4
- package/esm/ui/link/LinkPlus.svelte +33 -35
- package/package.json +14 -18
- 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
|
@@ -17,40 +17,38 @@ const hasSomethingToDisplay = (item2) => {
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<div class="flex items-center gap-4">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
{#if item}
|
|
21
|
+
{#if item.icon?.data && !noIcon}
|
|
22
|
+
{#if item.icon.caption}
|
|
23
|
+
<Tooltip text={item.icon.caption}>
|
|
24
|
+
<Icon {...item.icon} />
|
|
25
|
+
</Tooltip>
|
|
26
|
+
{:else}
|
|
27
|
+
<Icon {...item.icon} />
|
|
28
|
+
{/if}
|
|
29
|
+
{/if}
|
|
30
30
|
|
|
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}
|
|
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 ? 'text-nowrap' : ''}"
|
|
44
|
+
>
|
|
45
|
+
{item.caption ?? '-'}
|
|
46
|
+
</span>
|
|
47
|
+
{/if}
|
|
48
|
+
{#if item.captionSub && captionSubStyle === 'under'}
|
|
49
|
+
<span class="text-base-content/70 text-xs italic">{item.captionSub}</span>
|
|
50
|
+
{/if}
|
|
51
|
+
</div>
|
|
52
|
+
{/if}
|
|
53
|
+
{/if}
|
|
56
54
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firstly",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
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.
|
|
19
|
+
"remult": "2.7.31",
|
|
20
20
|
"svelte": ">=4.2.18"
|
|
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
41
|
"vite": "5.4.1",
|
|
42
42
|
"vite-plugin-kit-routes": "0.8.3",
|
|
43
|
-
"vite-plugin-stripper": "0.
|
|
43
|
+
"vite-plugin-stripper": "0.6.4"
|
|
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};
|