@skalfa/skalfa-app 1.0.0 → 1.0.1
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/.env.example +43 -43
- package/.github/workflows/publish.yml +39 -0
- package/CONTRIBUTING.md +45 -0
- package/LICENSE +21 -0
- package/README.md +91 -28
- package/app/auth/edit/page.tsx +65 -65
- package/app/auth/login/page.tsx +63 -63
- package/app/auth/me/page.tsx +58 -58
- package/app/auth/register/page.tsx +69 -69
- package/app/auth/verify/page.tsx +53 -53
- package/app/dashboard/user/page.tsx +76 -76
- package/app/layout.tsx +37 -37
- package/app/manifest.ts +25 -0
- package/app/page.tsx +13 -13
- package/barrels.json +5 -5
- package/blueprints/starter.blueprint.json +102 -102
- package/bun.lock +916 -0
- package/components/base.components/chip/Chip.component.tsx +39 -39
- package/components/base.components/document/DocumentViewer.component.tsx +163 -163
- package/components/base.components/document/ExportExcel.component.tsx +340 -340
- package/components/base.components/document/ImportExcel.component.tsx +315 -315
- package/components/base.components/document/PrintTable.component.tsx +204 -204
- package/components/base.components/document/RenderPDF.component.tsx +415 -415
- package/components/base.components/input/Checkbox.component.tsx +109 -109
- package/components/base.components/input/Input.component.tsx +332 -332
- package/components/base.components/input/InputCheckbox.component.tsx +174 -174
- package/components/base.components/input/InputCurrency.component.tsx +163 -163
- package/components/base.components/input/InputDate.component.tsx +352 -352
- package/components/base.components/input/InputDatetime.component.tsx +260 -260
- package/components/base.components/input/InputDocument.component.tsx +351 -351
- package/components/base.components/input/InputImage.component.tsx +533 -533
- package/components/base.components/input/InputMap.component.tsx +317 -317
- package/components/base.components/input/InputNumber.component.tsx +192 -192
- package/components/base.components/input/InputOtp.component.tsx +169 -169
- package/components/base.components/input/InputPassword.component.tsx +236 -236
- package/components/base.components/input/InputRadio.component.tsx +175 -175
- package/components/base.components/input/InputTime.component.tsx +275 -275
- package/components/base.components/input/InputValues.component.tsx +68 -68
- package/components/base.components/input/Radio.component.tsx +102 -102
- package/components/base.components/input/Select.component.tsx +541 -541
- package/components/base.components/modal/BottomSheet.component.tsx +245 -245
- package/components/base.components/supervision/FormSupervision.component.tsx +433 -433
- package/components/base.components/supervision/TableSupervision.component.tsx +697 -697
- package/components/base.components/table/ControlBar.component.tsx +497 -497
- package/components/base.components/table/FilterComponent.tsx +518 -518
- package/components/base.components/table/Table.component.tsx +469 -469
- package/components/base.components/typography/TypographyArticle.component.tsx +26 -26
- package/components/base.components/typography/TypographyColumn.component.tsx +20 -20
- package/components/base.components/typography/TypographyContent.component.tsx +20 -20
- package/components/base.components/typography/TypographyTips.component.tsx +20 -20
- package/components/base.components/wrap/Draggable.component.tsx +303 -303
- package/components/base.components/wrap/IDBProvider.tsx +12 -12
- package/components/base.components/wrap/Image.component.tsx +9 -9
- package/components/base.components/wrap/ShortcutProvider.tsx +57 -57
- package/components/base.components/wrap/Swipe.component.tsx +93 -93
- package/components/index.ts +2 -2
- package/contexts/AppProvider.tsx +11 -11
- package/contexts/Auth.context.tsx +64 -64
- package/contexts/Toggle.context.tsx +44 -44
- package/next.config.ts +15 -1
- package/package.json +14 -13
- package/public/204.svg +19 -19
- package/public/500.svg +39 -39
- package/public/icon-192.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/images/logo-fill.png +0 -0
- package/public/images/logo-full-fill.png +0 -0
- package/public/images/logo-full.png +0 -0
- package/public/images/logo.png +0 -0
- package/schema/idb/app.schema.ts +8 -8
- package/src-tauri/Cargo.toml +14 -0
- package/src-tauri/build.rs +3 -0
- package/src-tauri/capabilities/default.json +11 -0
- package/src-tauri/icons/128x128.png +0 -0
- package/src-tauri/icons/128x128@2x.png +0 -0
- package/src-tauri/icons/32x32.png +0 -0
- package/src-tauri/icons/icon.icns +0 -0
- package/src-tauri/icons/icon.ico +0 -0
- package/src-tauri/src/main.rs +7 -0
- package/src-tauri/tauri.conf.json +36 -0
- package/styles/globals.css +231 -231
- package/styles/tailwind.safelist +68 -68
- package/utils/commands/barrels.ts +27 -27
- package/utils/commands/light.ts +21 -21
- package/utils/commands/logger.ts +42 -42
- package/utils/commands/stubs/table-blueprint.stub +12 -12
- package/utils/commands/use-pdf.ts +29 -29
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"model" : "iam/user",
|
|
4
|
-
"schema" : {
|
|
5
|
-
"name" : "type:string,200 required min:1 max:200 fillable searchable selectable",
|
|
6
|
-
"email" : "type:string,100 unique index required min:5 max:100 fillable searchable selectable",
|
|
7
|
-
"password" : "type:string,200 required min:8 max:50 fillable hidden",
|
|
8
|
-
"image" : "type:string,100 required fillable selectable file",
|
|
9
|
-
"email_verification_at" : "type:timestamp"
|
|
10
|
-
},
|
|
11
|
-
"relations": {
|
|
12
|
-
"roles": "[]:Role expandable fillable",
|
|
13
|
-
"permission": "[1]Permission"
|
|
14
|
-
},
|
|
15
|
-
"seeders" : [
|
|
16
|
-
["Admin", "admin@mail.com", "$2b$10$tPX5QhnM.vUEDmDpht6O4OarVyTh43NTxhkzFrNxfRijJ3uhSHcli", null, "0001-01-01 01:01:01.000+00"],
|
|
17
|
-
["User", "user@mail.com", "$2b$10$tPX5QhnM.vUEDmDpht6O4OarVyTh43NTxhkzFrNxfRijJ3uhSHcli", null, "0001-01-01 01:01:01.000+00"]
|
|
18
|
-
],
|
|
19
|
-
"migrations" : false,
|
|
20
|
-
|
|
21
|
-
"pages": {
|
|
22
|
-
"iam/user": {
|
|
23
|
-
"features": "create import export print",
|
|
24
|
-
"schema": {
|
|
25
|
-
"Nama" : "name column:sortable form:text|required|min:1|max:200|6",
|
|
26
|
-
"Email" : "email column:sortable form:text|required|email|min:5|max:100|6",
|
|
27
|
-
"Password" : "password form:input-password|required,create|min:8|max:50",
|
|
28
|
-
"Foto" : "image form:image|6"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"model" : "iam/role",
|
|
35
|
-
"schema" : {
|
|
36
|
-
"name" : "type:string,25 index required min:1 max:25 fillable searchable selectable"
|
|
37
|
-
},
|
|
38
|
-
"controllers" : ["iam/role"],
|
|
39
|
-
"seeders" : [["Admin"], ["User"]],
|
|
40
|
-
"migrations" : false,
|
|
41
|
-
|
|
42
|
-
"pages": {
|
|
43
|
-
"iam/user": {
|
|
44
|
-
"features": "create",
|
|
45
|
-
"schema": {
|
|
46
|
-
"Nama" : "name column:sortable form:text|required|min:1|max:25"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"model" : "iam/user-role",
|
|
53
|
-
"schema" : {
|
|
54
|
-
"user_id" : "type:bigInteger unsigned index required fillable selectable",
|
|
55
|
-
"role_id" : "type:bigInteger unsigned index required fillable selectable"
|
|
56
|
-
},
|
|
57
|
-
"relations": {
|
|
58
|
-
"role" : "Role",
|
|
59
|
-
"user" : "User"
|
|
60
|
-
},
|
|
61
|
-
"controllers" : false,
|
|
62
|
-
"seeders" : [[1, 1], [2, 2]],
|
|
63
|
-
"migrations" : false,
|
|
64
|
-
"pages": false
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"model" : "iam/role-permission",
|
|
68
|
-
"schema" : {
|
|
69
|
-
"user_id" : "type:bigInteger unsigned index fillable selectable",
|
|
70
|
-
"role_id" : "type:bigInteger unsigned index fillable selectable",
|
|
71
|
-
"permissions" : "type:json nullable fillable selectable"
|
|
72
|
-
},
|
|
73
|
-
"migrations" : false
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"model" : "iam/user-access-token",
|
|
77
|
-
"controllers" : false,
|
|
78
|
-
"schema" : {
|
|
79
|
-
"user_id" : "type:bigInteger unsigned index fillable selectable",
|
|
80
|
-
"agent" : "type:string,100 nullable index fillable selectable",
|
|
81
|
-
"token" : "type:string,200 fillable selectable hidden",
|
|
82
|
-
"permissions" : "type:json nullable fillable selectable",
|
|
83
|
-
"last_used_ip" : "type:string,100 nullable fillable selectable",
|
|
84
|
-
"last_used_at" : "type:timestamp nullable fillable selectable",
|
|
85
|
-
"expired_at" : "type:timestamp nullable fillable selectable"
|
|
86
|
-
},
|
|
87
|
-
"migrations" : false,
|
|
88
|
-
"pages": false
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"model" : "iam/user-mail-token",
|
|
92
|
-
"controllers" : false,
|
|
93
|
-
"schema" : {
|
|
94
|
-
"user_id" : "type:bigInteger unsigned index fillable selectable",
|
|
95
|
-
"type" : "type:string,10 fillable selectable hidden",
|
|
96
|
-
"token" : "type:string,200 fillable selectable hidden",
|
|
97
|
-
"used_at" : "type:timestamp fillable selectable",
|
|
98
|
-
"expired_at" : "type:timestamp fillable selectable"
|
|
99
|
-
},
|
|
100
|
-
"migrations" : false,
|
|
101
|
-
"pages": false
|
|
102
|
-
}
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"model" : "iam/user",
|
|
4
|
+
"schema" : {
|
|
5
|
+
"name" : "type:string,200 required min:1 max:200 fillable searchable selectable",
|
|
6
|
+
"email" : "type:string,100 unique index required min:5 max:100 fillable searchable selectable",
|
|
7
|
+
"password" : "type:string,200 required min:8 max:50 fillable hidden",
|
|
8
|
+
"image" : "type:string,100 required fillable selectable file",
|
|
9
|
+
"email_verification_at" : "type:timestamp"
|
|
10
|
+
},
|
|
11
|
+
"relations": {
|
|
12
|
+
"roles": "[]:Role expandable fillable",
|
|
13
|
+
"permission": "[1]Permission"
|
|
14
|
+
},
|
|
15
|
+
"seeders" : [
|
|
16
|
+
["Admin", "admin@mail.com", "$2b$10$tPX5QhnM.vUEDmDpht6O4OarVyTh43NTxhkzFrNxfRijJ3uhSHcli", null, "0001-01-01 01:01:01.000+00"],
|
|
17
|
+
["User", "user@mail.com", "$2b$10$tPX5QhnM.vUEDmDpht6O4OarVyTh43NTxhkzFrNxfRijJ3uhSHcli", null, "0001-01-01 01:01:01.000+00"]
|
|
18
|
+
],
|
|
19
|
+
"migrations" : false,
|
|
20
|
+
|
|
21
|
+
"pages": {
|
|
22
|
+
"iam/user": {
|
|
23
|
+
"features": "create import export print",
|
|
24
|
+
"schema": {
|
|
25
|
+
"Nama" : "name column:sortable form:text|required|min:1|max:200|6",
|
|
26
|
+
"Email" : "email column:sortable form:text|required|email|min:5|max:100|6",
|
|
27
|
+
"Password" : "password form:input-password|required,create|min:8|max:50",
|
|
28
|
+
"Foto" : "image form:image|6"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"model" : "iam/role",
|
|
35
|
+
"schema" : {
|
|
36
|
+
"name" : "type:string,25 index required min:1 max:25 fillable searchable selectable"
|
|
37
|
+
},
|
|
38
|
+
"controllers" : ["iam/role"],
|
|
39
|
+
"seeders" : [["Admin"], ["User"]],
|
|
40
|
+
"migrations" : false,
|
|
41
|
+
|
|
42
|
+
"pages": {
|
|
43
|
+
"iam/user": {
|
|
44
|
+
"features": "create",
|
|
45
|
+
"schema": {
|
|
46
|
+
"Nama" : "name column:sortable form:text|required|min:1|max:25"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"model" : "iam/user-role",
|
|
53
|
+
"schema" : {
|
|
54
|
+
"user_id" : "type:bigInteger unsigned index required fillable selectable",
|
|
55
|
+
"role_id" : "type:bigInteger unsigned index required fillable selectable"
|
|
56
|
+
},
|
|
57
|
+
"relations": {
|
|
58
|
+
"role" : "Role",
|
|
59
|
+
"user" : "User"
|
|
60
|
+
},
|
|
61
|
+
"controllers" : false,
|
|
62
|
+
"seeders" : [[1, 1], [2, 2]],
|
|
63
|
+
"migrations" : false,
|
|
64
|
+
"pages": false
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"model" : "iam/role-permission",
|
|
68
|
+
"schema" : {
|
|
69
|
+
"user_id" : "type:bigInteger unsigned index fillable selectable",
|
|
70
|
+
"role_id" : "type:bigInteger unsigned index fillable selectable",
|
|
71
|
+
"permissions" : "type:json nullable fillable selectable"
|
|
72
|
+
},
|
|
73
|
+
"migrations" : false
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"model" : "iam/user-access-token",
|
|
77
|
+
"controllers" : false,
|
|
78
|
+
"schema" : {
|
|
79
|
+
"user_id" : "type:bigInteger unsigned index fillable selectable",
|
|
80
|
+
"agent" : "type:string,100 nullable index fillable selectable",
|
|
81
|
+
"token" : "type:string,200 fillable selectable hidden",
|
|
82
|
+
"permissions" : "type:json nullable fillable selectable",
|
|
83
|
+
"last_used_ip" : "type:string,100 nullable fillable selectable",
|
|
84
|
+
"last_used_at" : "type:timestamp nullable fillable selectable",
|
|
85
|
+
"expired_at" : "type:timestamp nullable fillable selectable"
|
|
86
|
+
},
|
|
87
|
+
"migrations" : false,
|
|
88
|
+
"pages": false
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"model" : "iam/user-mail-token",
|
|
92
|
+
"controllers" : false,
|
|
93
|
+
"schema" : {
|
|
94
|
+
"user_id" : "type:bigInteger unsigned index fillable selectable",
|
|
95
|
+
"type" : "type:string,10 fillable selectable hidden",
|
|
96
|
+
"token" : "type:string,200 fillable selectable hidden",
|
|
97
|
+
"used_at" : "type:timestamp fillable selectable",
|
|
98
|
+
"expired_at" : "type:timestamp fillable selectable"
|
|
99
|
+
},
|
|
100
|
+
"migrations" : false,
|
|
101
|
+
"pages": false
|
|
102
|
+
}
|
|
103
103
|
]
|