create-fsd-architecture 1.0.2 → 1.0.3
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/bin/index.mjs +3 -3
- package/package.json +6 -2
- package/.claude/settings.local.json +0 -9
- package/ashraf/README.md +0 -122
- package/ashraf/bun.lock +0 -1347
- package/ashraf/components.json +0 -23
- package/ashraf/eslint.config.js +0 -23
- package/ashraf/index.html +0 -13
- package/ashraf/package-lock.json +0 -9886
- package/ashraf/package.json +0 -43
- package/ashraf/src/app/App.tsx +0 -12
- 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 +0 -190
- package/ashraf/src/assets/index.ts +0 -0
- package/ashraf/src/entities/products/api/get-product-by-id.ts +0 -8
- package/ashraf/src/entities/products/api/get-products.ts +0 -8
- package/ashraf/src/entities/products/index.ts +0 -5
- package/ashraf/src/entities/products/model/query-keys.ts +0 -5
- package/ashraf/src/entities/products/model/types.ts +0 -18
- package/ashraf/src/entities/products/ui/product-card.tsx +0 -25
- package/ashraf/src/features/products/create-product/api/create-product.ts +0 -7
- package/ashraf/src/features/products/create-product/index.ts +0 -2
- package/ashraf/src/features/products/create-product/model/create-product-schema.ts +0 -11
- package/ashraf/src/features/products/create-product/model/use-create-product.ts +0 -15
- package/ashraf/src/features/products/create-product/ui/create-product-form.tsx +0 -85
- package/ashraf/src/features/products/update-product/api/update-product.ts +0 -12
- package/ashraf/src/features/products/update-product/index.ts +0 -2
- package/ashraf/src/features/products/update-product/model/update-product.schema.ts +0 -11
- package/ashraf/src/features/products/update-product/model/use-update-product.ts +0 -17
- package/ashraf/src/features/products/update-product/ui/update-product-form.tsx +0 -69
- package/ashraf/src/main.tsx +0 -10
- package/ashraf/src/pages/products/all-products.tsx +0 -23
- package/ashraf/src/pages/products/create-product-page.tsx +0 -10
- package/ashraf/src/pages/products/update-product-page.tsx +0 -24
- package/ashraf/src/shared/config/env.ts +0 -1
- package/ashraf/src/shared/lib/utils.ts +0 -6
- package/ashraf/src/shared/types/types.d.ts +0 -0
- package/ashraf/src/shared/ui/input.tsx +0 -21
- package/ashraf/src/shared/ui/label.tsx +0 -22
- 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 +0 -32
- package/ashraf/tsconfig.json +0 -21
- package/ashraf/tsconfig.node.json +0 -26
- package/ashraf/vite.config.ts +0 -14
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
|
|
3
|
-
import { cn } from "@/shared/lib/utils"
|
|
4
|
-
|
|
5
|
-
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
|
6
|
-
return (
|
|
7
|
-
<input
|
|
8
|
-
type={type}
|
|
9
|
-
data-slot="input"
|
|
10
|
-
className={cn(
|
|
11
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
12
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
13
|
-
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
14
|
-
className
|
|
15
|
-
)}
|
|
16
|
-
{...props}
|
|
17
|
-
/>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { Input }
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { Label as LabelPrimitive } from "radix-ui"
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/shared/lib/utils"
|
|
5
|
-
|
|
6
|
-
function Label({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
|
|
10
|
-
return (
|
|
11
|
-
<LabelPrimitive.Root
|
|
12
|
-
data-slot="label"
|
|
13
|
-
className={cn(
|
|
14
|
-
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
15
|
-
className
|
|
16
|
-
)}
|
|
17
|
-
{...props}
|
|
18
|
-
/>
|
|
19
|
-
)
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { Label }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/ashraf/tsconfig.app.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"paths": {
|
|
5
|
-
"@/*": ["./src/*"]
|
|
6
|
-
},
|
|
7
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
8
|
-
"target": "ES2022",
|
|
9
|
-
"useDefineForClassFields": true,
|
|
10
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
11
|
-
"module": "ESNext",
|
|
12
|
-
"types": ["vite/client"],
|
|
13
|
-
"skipLibCheck": true,
|
|
14
|
-
|
|
15
|
-
/* Bundler mode */
|
|
16
|
-
"moduleResolution": "bundler",
|
|
17
|
-
"allowImportingTsExtensions": true,
|
|
18
|
-
"verbatimModuleSyntax": true,
|
|
19
|
-
"moduleDetection": "force",
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"jsx": "react-jsx",
|
|
22
|
-
|
|
23
|
-
/* Linting */
|
|
24
|
-
"strict": true,
|
|
25
|
-
"noUnusedLocals": true,
|
|
26
|
-
"noUnusedParameters": true,
|
|
27
|
-
"erasableSyntaxOnly": true,
|
|
28
|
-
"noFallthroughCasesInSwitch": true,
|
|
29
|
-
"noUncheckedSideEffectImports": true
|
|
30
|
-
},
|
|
31
|
-
"include": ["src"]
|
|
32
|
-
}
|
package/ashraf/tsconfig.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"strict": true,
|
|
3
|
-
"noUncheckedIndexedAccess": true,
|
|
4
|
-
"files": [],
|
|
5
|
-
"references": [
|
|
6
|
-
{
|
|
7
|
-
"path": "./tsconfig.app.json"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"path": "./tsconfig.node.json"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"compilerOptions": {
|
|
14
|
-
"baseUrl": ".",
|
|
15
|
-
"paths": {
|
|
16
|
-
"@/*": [
|
|
17
|
-
"./src/*"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": ["ES2023"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"types": ["node"],
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"moduleDetection": "force",
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"erasableSyntaxOnly": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
"noUncheckedSideEffectImports": true
|
|
24
|
-
},
|
|
25
|
-
"include": ["vite.config.ts"]
|
|
26
|
-
}
|
package/ashraf/vite.config.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import react from '@vitejs/plugin-react-swc';
|
|
4
|
-
import tailwindcss from '@tailwindcss/vite';
|
|
5
|
-
|
|
6
|
-
// https://vite.dev/config/
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
plugins: [react(), tailwindcss()],
|
|
9
|
-
resolve: {
|
|
10
|
-
alias: {
|
|
11
|
-
"@": path.resolve(__dirname, "./src"),
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
})
|