@skalfa/skalfa-app 1.0.3 → 1.0.5
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 +8 -16
- package/app/auth/edit/page.tsx +1 -1
- package/app/auth/login/page.tsx +1 -1
- package/app/auth/me/page.tsx +1 -1
- package/app/auth/register/page.tsx +1 -1
- package/app/auth/verify/page.tsx +1 -1
- package/app/dashboard/layout.tsx +2 -2
- package/app/dashboard/page.tsx +1 -1
- package/app/index.ts +1 -0
- package/app/layout.tsx +2 -4
- package/app/page.tsx +2 -2
- package/bun.lock +7 -2
- package/components/index.ts +1 -3
- package/package.json +8 -6
- package/styles/components.css +1392 -0
- package/styles/globals.css +40 -175
- package/styles/utilities.css +37 -0
- package/tsconfig.json +4 -2
- package/utils/commands/skalfa.ts +1 -1
- package/components/base.components/accordion/Accordion.component.tsx +0 -82
- package/components/base.components/breadcrumb/Breadcrumb.component.tsx +0 -80
- package/components/base.components/button/Button.component.tsx +0 -91
- package/components/base.components/button/IconButton.component.tsx +0 -88
- package/components/base.components/button/button.decorate.ts +0 -82
- package/components/base.components/card/AlertCard.component.tsx +0 -69
- package/components/base.components/card/Card.component.tsx +0 -25
- package/components/base.components/card/DashboardCard.component.tsx +0 -44
- package/components/base.components/card/GalleryCard.component.tsx +0 -50
- package/components/base.components/card/ProductCard.component.tsx +0 -65
- package/components/base.components/card/ProfileCard.component.tsx +0 -71
- package/components/base.components/carousel/Carousel.component.tsx +0 -113
- package/components/base.components/chip/Chip.component.tsx +0 -39
- package/components/base.components/document/DocumentViewer.component.tsx +0 -164
- package/components/base.components/document/ExportExcel.component.tsx +0 -340
- package/components/base.components/document/ImportExcel.component.tsx +0 -315
- package/components/base.components/document/PrintTable.component.tsx +0 -204
- package/components/base.components/document/RenderPDF.component.tsx +0 -416
- package/components/base.components/index.ts +0 -85
- package/components/base.components/input/Checkbox.component.tsx +0 -109
- package/components/base.components/input/Input.component.tsx +0 -332
- package/components/base.components/input/InputCheckbox.component.tsx +0 -174
- package/components/base.components/input/InputCurrency.component.tsx +0 -163
- package/components/base.components/input/InputDate.component.tsx +0 -352
- package/components/base.components/input/InputDatetime.component.tsx +0 -260
- package/components/base.components/input/InputDocument.component.tsx +0 -352
- package/components/base.components/input/InputImage.component.tsx +0 -533
- package/components/base.components/input/InputMap.component.tsx +0 -318
- package/components/base.components/input/InputNumber.component.tsx +0 -192
- package/components/base.components/input/InputOtp.component.tsx +0 -169
- package/components/base.components/input/InputPassword.component.tsx +0 -236
- package/components/base.components/input/InputRadio.component.tsx +0 -175
- package/components/base.components/input/InputTime.component.tsx +0 -276
- package/components/base.components/input/InputValues.component.tsx +0 -68
- package/components/base.components/input/Radio.component.tsx +0 -102
- package/components/base.components/input/Select.component.tsx +0 -541
- package/components/base.components/modal/BottomSheet.component.tsx +0 -246
- package/components/base.components/modal/FloatingPage.component.tsx +0 -104
- package/components/base.components/modal/Modal.component.tsx +0 -96
- package/components/base.components/modal/ModalConfirm.component.tsx +0 -218
- package/components/base.components/modal/Toast.component.tsx +0 -126
- package/components/base.components/nav/Bottombar.component.tsx +0 -116
- package/components/base.components/nav/Footer.component.tsx +0 -144
- package/components/base.components/nav/Headbar.component.tsx +0 -104
- package/components/base.components/nav/Navbar.component.tsx +0 -100
- package/components/base.components/nav/Sidebar.component.tsx +0 -301
- package/components/base.components/nav/Tabbar.component.tsx +0 -60
- package/components/base.components/nav/Wizard.component.tsx +0 -73
- package/components/base.components/supervision/FormSupervision.component.tsx +0 -434
- package/components/base.components/supervision/TableSupervision.component.tsx +0 -697
- package/components/base.components/table/ControlBar.component.tsx +0 -497
- package/components/base.components/table/FilterComponent.tsx +0 -518
- package/components/base.components/table/Pagination.component.tsx +0 -159
- package/components/base.components/table/Table.component.tsx +0 -469
- package/components/base.components/typography/TypographyArticle.component.tsx +0 -26
- package/components/base.components/typography/TypographyColumn.component.tsx +0 -20
- package/components/base.components/typography/TypographyContent.component.tsx +0 -20
- package/components/base.components/typography/TypographyTips.component.tsx +0 -20
- package/components/base.components/wrap/Draggable.component.tsx +0 -303
- package/components/base.components/wrap/IDBProvider.tsx +0 -12
- package/components/base.components/wrap/Image.component.tsx +0 -10
- package/components/base.components/wrap/OutsideClick.component.tsx +0 -48
- package/components/base.components/wrap/ScrollContainer.component.tsx +0 -104
- package/components/base.components/wrap/ShortcutProvider.tsx +0 -57
- package/components/base.components/wrap/Swipe.component.tsx +0 -93
- package/components/construct.components/example.tsx +0 -1
- package/components/construct.components/index.ts +0 -5
- package/components/structure.components/example.tsx +0 -1
- package/components/structure.components/index.ts +0 -5
- package/schema/idb/app.schema.ts +0 -9
- package/schema/index.ts +0 -5
package/.env.example
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# =========================>
|
|
2
2
|
# ## Base configuration
|
|
3
3
|
# =========================>
|
|
4
|
-
NEXT_PUBLIC_APP_NAME=
|
|
5
|
-
|
|
4
|
+
NEXT_PUBLIC_APP_NAME=skalfa_app
|
|
5
|
+
NEXT_PUBLIC_APP_KEY=
|
|
6
|
+
NEXT_PUBLIC_APP_PORT=3000
|
|
7
|
+
NEXT_PUBLIC_APP_DEBUG=
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
# =========================>
|
|
@@ -14,15 +16,11 @@ NEXT_PUBLIC_API_HEADERS=""
|
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
# =========================>
|
|
17
|
-
# ##
|
|
18
|
-
# =========================>
|
|
19
|
-
NEXT_PUBLIC_SOCKET_HOST=""
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
# ## Auth configuration
|
|
22
20
|
# =========================>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
NEXT_PUBLIC_LOGIN_PATH=
|
|
22
|
+
NEXT_PUBLIC_BASE_PATH=
|
|
23
|
+
NEXT_PUBLIC_ACCESS_TOKEN_EXPIRED=
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
# =========================>
|
|
@@ -36,9 +34,3 @@ NEXT_PUBLIC_SOCKET_KEY=""
|
|
|
36
34
|
# ## Map configuration
|
|
37
35
|
# =========================>
|
|
38
36
|
NEXT_PUBLIC_MAP_KEY="";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
# =========================>
|
|
42
|
-
# ## Exposed port (when using docker)
|
|
43
|
-
# =========================>
|
|
44
|
-
NEXT_PUBLIC_PORT=3000
|
package/app/auth/edit/page.tsx
CHANGED
|
@@ -11,7 +11,7 @@ export default function EditProfile() {
|
|
|
11
11
|
return (
|
|
12
12
|
<>
|
|
13
13
|
<div className="h-screen flex flex-col justify-center items-center">
|
|
14
|
-
<h1 className="text-2xl font-extrabold italic">
|
|
14
|
+
<h1 className="text-2xl font-extrabold italic">SKALFA APP</h1>
|
|
15
15
|
<p className="text-sm font-semibold mt-6">Edit account!</p>
|
|
16
16
|
|
|
17
17
|
<CardComponent className="mt-4 p-6 w-[400px] rounded-2xl">
|
package/app/auth/login/page.tsx
CHANGED
|
@@ -12,7 +12,7 @@ export default function Login() {
|
|
|
12
12
|
return (
|
|
13
13
|
<>
|
|
14
14
|
<div className="h-screen flex flex-col justify-center items-center">
|
|
15
|
-
<h1 className="text-2xl font-extrabold italic">WELCOME TO
|
|
15
|
+
<h1 className="text-2xl font-extrabold italic">WELCOME TO SKALFA APP</h1>
|
|
16
16
|
<p className="text-sm font-semibold mt-6">Sign in with your account!</p>
|
|
17
17
|
|
|
18
18
|
<CardComponent className="mt-4 p-6 w-[400px] rounded-2xl">
|
package/app/auth/me/page.tsx
CHANGED
|
@@ -12,7 +12,7 @@ export default function Login() {
|
|
|
12
12
|
return (
|
|
13
13
|
<>
|
|
14
14
|
<div className="h-screen flex flex-col justify-center items-center">
|
|
15
|
-
<h1 className="text-2xl font-extrabold italic">
|
|
15
|
+
<h1 className="text-2xl font-extrabold italic">SKALFA APP</h1>
|
|
16
16
|
<p className="text-sm font-semibold mt-6">Your account!</p>
|
|
17
17
|
|
|
18
18
|
<CardComponent className="mt-4 p-6 w-[400px] rounded-2xl">
|
|
@@ -12,7 +12,7 @@ export default function Register() {
|
|
|
12
12
|
return (
|
|
13
13
|
<>
|
|
14
14
|
<div className="h-screen flex flex-col justify-center items-center">
|
|
15
|
-
<h1 className="text-2xl font-extrabold italic">WELCOME TO
|
|
15
|
+
<h1 className="text-2xl font-extrabold italic">WELCOME TO SKALFA APP</h1>
|
|
16
16
|
<p className="text-sm font-semibold mt-6">Create new account!</p>
|
|
17
17
|
|
|
18
18
|
<CardComponent className="mt-4 p-6 w-[400px] rounded-2xl">
|
package/app/auth/verify/page.tsx
CHANGED
|
@@ -12,7 +12,7 @@ export default function Verify() {
|
|
|
12
12
|
return (
|
|
13
13
|
<>
|
|
14
14
|
<div className="h-screen flex flex-col justify-center items-center">
|
|
15
|
-
<h1 className="text-2xl font-extrabold italic">WELCOME TO
|
|
15
|
+
<h1 className="text-2xl font-extrabold italic">WELCOME TO SKALFA APP</h1>
|
|
16
16
|
<p className="text-sm font-semibold mt-6">Verify your email!</p>
|
|
17
17
|
|
|
18
18
|
<CardComponent className="mt-4 p-6 w-[400px] rounded-2xl">
|
package/app/dashboard/layout.tsx
CHANGED
|
@@ -10,10 +10,10 @@ export default function ExampleLayout({ children }: { children: ReactNode }) {
|
|
|
10
10
|
head={
|
|
11
11
|
<div className="px-4">
|
|
12
12
|
<a href="#" className="text-2xl font-extrabold italic">
|
|
13
|
-
|
|
13
|
+
SKALFA APP
|
|
14
14
|
</a>
|
|
15
15
|
<p className="text-sm -mt-1 font-semibold text-slate-400">
|
|
16
|
-
|
|
16
|
+
Framework & Template
|
|
17
17
|
</p>
|
|
18
18
|
</div>
|
|
19
19
|
}
|
package/app/dashboard/page.tsx
CHANGED
|
@@ -2,7 +2,7 @@ export default function Example() {
|
|
|
2
2
|
return (
|
|
3
3
|
<>
|
|
4
4
|
<div className="flex justify-center items-center h-screen">
|
|
5
|
-
<p className="text-2xl font-bold opacity-25 mb-4">WELCOME
|
|
5
|
+
<p className="text-2xl font-bold opacity-25 mb-4">WELCOME TO SKALFA APP</p>
|
|
6
6
|
</div>
|
|
7
7
|
</>
|
|
8
8
|
);
|
package/app/index.ts
CHANGED
package/app/layout.tsx
CHANGED
|
@@ -10,7 +10,7 @@ import { config } from "@fortawesome/fontawesome-svg-core";
|
|
|
10
10
|
import "@fortawesome/fontawesome-svg-core/styles.css";
|
|
11
11
|
|
|
12
12
|
import { ContextAppProvider } from "@contexts/AppProvider";
|
|
13
|
-
import {
|
|
13
|
+
import { ShortcutProvider } from "@components";
|
|
14
14
|
|
|
15
15
|
moment.locale("id");
|
|
16
16
|
config.autoAddCss = false;
|
|
@@ -28,9 +28,7 @@ export default function AppLayout({ children }: { children: ReactNode }) {
|
|
|
28
28
|
<body className="antialiased">
|
|
29
29
|
<ContextAppProvider>
|
|
30
30
|
<ShortcutProvider />
|
|
31
|
-
|
|
32
|
-
{children}
|
|
33
|
-
</IDBProvider>
|
|
31
|
+
{children}
|
|
34
32
|
</ContextAppProvider>
|
|
35
33
|
</body>
|
|
36
34
|
</html>
|
package/app/page.tsx
CHANGED
|
@@ -2,10 +2,10 @@ export default function Home() {
|
|
|
2
2
|
return (
|
|
3
3
|
<>
|
|
4
4
|
<div className="h-screen flex flex-col justify-center items-center">
|
|
5
|
-
<h1 className="text-2xl font-extrabold italic">
|
|
5
|
+
<h1 className="text-2xl font-extrabold italic">SKALFA APP</h1>
|
|
6
6
|
|
|
7
7
|
<p className="text-sm -mt-1 font-semibold text-light-foreground">
|
|
8
|
-
The Magic
|
|
8
|
+
The Magic Framework & Template
|
|
9
9
|
</p>
|
|
10
10
|
</div>
|
|
11
11
|
</>
|
package/bun.lock
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
12
12
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
13
13
|
"@react-google-maps/api": "^2.20.7",
|
|
14
|
-
"@skalfa/skalfa-app-core": "^1.0.
|
|
14
|
+
"@skalfa/skalfa-app-core": "^1.0.8",
|
|
15
|
+
"@skalfa/skalfa-component": "^1.0.0",
|
|
15
16
|
"@tailwindcss/postcss": "^4.0.0",
|
|
16
17
|
"axios": "^1.12.0",
|
|
17
18
|
"moment": "^2.30.1",
|
|
@@ -169,7 +170,9 @@
|
|
|
169
170
|
|
|
170
171
|
"@rushstack/eslint-patch": ["@rushstack/eslint-patch@1.10.5", "", {}, "sha512-kkKUDVlII2DQiKy7UstOR1ErJP8kUKAQ4oa+SQtM0K+lPdmmjj0YnnxBgtTVYH7mUKtbsxeFC9y0AmK7Yb78/A=="],
|
|
171
172
|
|
|
172
|
-
"@skalfa/skalfa-app-core": ["@skalfa/skalfa-app-core@1.0.
|
|
173
|
+
"@skalfa/skalfa-app-core": ["@skalfa/skalfa-app-core@1.0.8", "", { "dependencies": { "axios": "^1.12.0", "clsx": "^2.1.1", "commander": "^12.1.0", "crypto-js": "^4.2.0", "js-cookie": "^3.0.5", "lz-string": "^1.5.0", "moment": "^2.30.1", "tailwind-merge": "^3.0.2", "validator": "^13.15.22" }, "peerDependencies": { "next": "^15.0.0 || ^16.0.0", "react": "^19.0.0", "react-dom": "^19.0.0" } }, "sha512-GH2OnQ65HL6F0au3zlMTvPpCzaIBr8YmyUZbYPAiNeQ3cGC+yOC0/TEjg6gNsmtAKbVpdWJxetW8TU4rZsNzrA=="],
|
|
174
|
+
|
|
175
|
+
"@skalfa/skalfa-component": ["@skalfa/skalfa-component@1.0.0", "", { "peerDependencies": { "@fortawesome/react-fontawesome": "^0.2.2", "@skalfa/skalfa-app-core": "^1.0.0", "next": "^15.0.0 || ^16.0.0", "react": "^19.0.0", "react-dom": "^19.0.0" } }, "sha512-l5UGaTKhppz84l8lf9Oxicvh/iyqutPCGm9PJBGO7wx+LUuaN7BMtWbnMQJ1W465PpGzXuSr/fbzlUel8naP/A=="],
|
|
173
176
|
|
|
174
177
|
"@swc/helpers": ["@swc/helpers@0.5.15", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g=="],
|
|
175
178
|
|
|
@@ -853,6 +856,8 @@
|
|
|
853
856
|
|
|
854
857
|
"@humanfs/node/@humanwhocodes/retry": ["@humanwhocodes/retry@0.3.1", "", {}, "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA=="],
|
|
855
858
|
|
|
859
|
+
"@skalfa/skalfa-app-core/commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="],
|
|
860
|
+
|
|
856
861
|
"@typescript-eslint/eslint-plugin/ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="],
|
|
857
862
|
|
|
858
863
|
"@typescript-eslint/typescript-estree/minimatch": ["minimatch@10.2.5", "", { "dependencies": { "brace-expansion": "^5.0.5" } }, "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg=="],
|
package/components/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skalfa/skalfa-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"dev": "concurrently --raw
|
|
5
|
+
"dev": "concurrently --raw 'next dev' 'bun run skalfa watch:barrels'",
|
|
6
|
+
"watch": "next dev",
|
|
6
7
|
"build": "next build",
|
|
7
8
|
"start": "next start",
|
|
9
|
+
"skalfa": "bun run utils/commands/skalfa.ts",
|
|
8
10
|
"test": "bun tsc --noEmit",
|
|
9
|
-
"lint": "npx eslint app/* components/* utils/* contexts/*
|
|
10
|
-
"skalfa": "bun run utils/commands/skalfa.ts"
|
|
11
|
+
"lint": "npx eslint app/* components/* utils/* contexts/*"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
@@ -16,7 +17,8 @@
|
|
|
16
17
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
17
18
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
18
19
|
"@react-google-maps/api": "^2.20.7",
|
|
19
|
-
"@skalfa/skalfa-app-core": "^1.0.
|
|
20
|
+
"@skalfa/skalfa-app-core": "^1.0.8",
|
|
21
|
+
"@skalfa/skalfa-component": "^1.0.0",
|
|
20
22
|
"@tailwindcss/postcss": "^4.0.0",
|
|
21
23
|
"axios": "^1.12.0",
|
|
22
24
|
"moment": "^2.30.1",
|
|
@@ -40,4 +42,4 @@
|
|
|
40
42
|
"typescript": "^6.0.3"
|
|
41
43
|
},
|
|
42
44
|
"description": "Modern frontend starter template built with Next.js, pre-configured with PWA, Tauri, and modular extensions."
|
|
43
|
-
}
|
|
45
|
+
}
|