create-fsd-architecture 1.0.1 → 1.0.2
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/.claude/settings.local.json +9 -0
- package/README.md +84 -0
- package/ashraf/README.md +122 -0
- package/ashraf/bun.lock +1347 -0
- package/ashraf/components.json +23 -0
- package/ashraf/eslint.config.js +23 -0
- package/ashraf/index.html +13 -0
- package/ashraf/package-lock.json +9886 -0
- package/ashraf/package.json +43 -0
- package/ashraf/src/app/App.tsx +12 -0
- package/ashraf/src/app/providers/axios-interceptor.tsx +0 -0
- package/ashraf/src/app/providers.tsx +0 -0
- package/ashraf/src/app/routing/auth-routes.tsx +0 -0
- package/ashraf/src/app/routing/dashboard-routes.tsx +0 -0
- package/ashraf/src/app/routing/guards/auth-guard.tsx +0 -0
- package/ashraf/src/app/routing/guards/dashboard-guard.tsx +0 -0
- package/ashraf/src/app/styles/index.css +190 -0
- package/ashraf/src/assets/index.ts +0 -0
- package/ashraf/src/entities/products/api/get-product-by-id.ts +8 -0
- package/ashraf/src/entities/products/api/get-products.ts +8 -0
- package/ashraf/src/entities/products/index.ts +5 -0
- package/ashraf/src/entities/products/model/query-keys.ts +5 -0
- package/ashraf/src/entities/products/model/types.ts +18 -0
- package/ashraf/src/entities/products/ui/product-card.tsx +25 -0
- package/ashraf/src/features/products/create-product/api/create-product.ts +7 -0
- package/ashraf/src/features/products/create-product/index.ts +2 -0
- package/ashraf/src/features/products/create-product/model/create-product-schema.ts +11 -0
- package/ashraf/src/features/products/create-product/model/use-create-product.ts +15 -0
- package/ashraf/src/features/products/create-product/ui/create-product-form.tsx +85 -0
- package/ashraf/src/features/products/update-product/api/update-product.ts +12 -0
- package/ashraf/src/features/products/update-product/index.ts +2 -0
- package/ashraf/src/features/products/update-product/model/update-product.schema.ts +11 -0
- package/ashraf/src/features/products/update-product/model/use-update-product.ts +17 -0
- package/ashraf/src/features/products/update-product/ui/update-product-form.tsx +69 -0
- package/ashraf/src/main.tsx +10 -0
- package/ashraf/src/pages/products/all-products.tsx +23 -0
- package/ashraf/src/pages/products/create-product-page.tsx +10 -0
- package/ashraf/src/pages/products/update-product-page.tsx +24 -0
- package/ashraf/src/shared/config/env.ts +1 -0
- package/ashraf/src/shared/lib/utils.ts +6 -0
- package/ashraf/src/shared/types/types.d.ts +0 -0
- package/ashraf/src/shared/ui/input.tsx +21 -0
- package/ashraf/src/shared/ui/label.tsx +22 -0
- package/ashraf/src/widgets/dashboard-header.tsx +0 -0
- package/ashraf/src/widgets/index.ts +0 -0
- package/ashraf/src/widgets/sidebar.tsx +0 -0
- package/ashraf/tsconfig.app.json +32 -0
- package/ashraf/tsconfig.json +21 -0
- package/ashraf/tsconfig.node.json +26 -0
- package/ashraf/vite.config.ts +14 -0
- package/bin/index.mjs +180 -39
- package/package.json +3 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "new-york",
|
|
4
|
+
"rsc": false,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "",
|
|
8
|
+
"css": "src/index.css",
|
|
9
|
+
"baseColor": "neutral",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"iconLibrary": "lucide",
|
|
14
|
+
"rtl": false,
|
|
15
|
+
"aliases": {
|
|
16
|
+
"components": "@/components",
|
|
17
|
+
"utils": "@/shared/lib/utils",
|
|
18
|
+
"ui": "@/shared/ui",
|
|
19
|
+
"lib": "@/shared/lib",
|
|
20
|
+
"hooks": "@/hooks"
|
|
21
|
+
},
|
|
22
|
+
"registries": {}
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
+
import tseslint from 'typescript-eslint'
|
|
6
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
7
|
+
|
|
8
|
+
export default defineConfig([
|
|
9
|
+
globalIgnores(['dist']),
|
|
10
|
+
{
|
|
11
|
+
files: ['**/*.{ts,tsx}'],
|
|
12
|
+
extends: [
|
|
13
|
+
js.configs.recommended,
|
|
14
|
+
tseslint.configs.recommended,
|
|
15
|
+
reactHooks.configs.flat.recommended,
|
|
16
|
+
reactRefresh.configs.vite,
|
|
17
|
+
],
|
|
18
|
+
languageOptions: {
|
|
19
|
+
ecmaVersion: 2020,
|
|
20
|
+
globals: globals.browser,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
])
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>mudular-structure-v2</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|