Skip to content

Commit c701314

Browse files
(Add):<-Model , React Query Structure , Requests->
0 parents  commit c701314

27 files changed

+9248
-0
lines changed

.Prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"arrowParens": "always",
3+
"singleQuote": true
4+
}
5+

.eslintrc.cjs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
env: { browser: true, es2020: true },
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:react-hooks/recommended',
7+
],
8+
parser: '@typescript-eslint/parser',
9+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
10+
plugins: ['react-refresh'],
11+
rules: {
12+
'react-refresh/only-export-components': 'warn',
13+
},
14+
}

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- GlobalStyles On Ui Page -->

db.json

+204
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
{
2+
"product": [
3+
{
4+
"id": 1,
5+
"name": "TechPhone X",
6+
"description": "The ultimate flagship smartphone with cutting-edge features.",
7+
"year_of_creation": 2023,
8+
"rating": 4.8,
9+
"views": 12500,
10+
"country": "United States",
11+
"price": 420.75
12+
},
13+
{
14+
"id": 2,
15+
"name": "Gizmo Galaxy Z",
16+
"description": "A foldable smartphone that redefines flexibility and style.",
17+
"year_of_creation": 2022,
18+
"rating": 4.5,
19+
"views": 9800,
20+
"country": "South Korea",
21+
"price": 529.99
22+
},
23+
{
24+
"id": 3,
25+
"name": "EcoMobile E2",
26+
"description": "An eco-friendly phone with a focus on sustainability and longevity.",
27+
"year_of_creation": 2023,
28+
"rating": 4.6,
29+
"views": 7500,
30+
"country": "Sweden",
31+
"price": 379.5
32+
},
33+
{
34+
"id": 4,
35+
"name": "NexGen N10",
36+
"description": "A budget-friendly smartphone with surprisingly powerful features.",
37+
"year_of_creation": 2021,
38+
"rating": 4.2,
39+
"views": 15000,
40+
"country": "China",
41+
"price": 350.22
42+
},
43+
{
44+
"id": 5,
45+
"name": "Phantom P5",
46+
"description": "A camera-centric phone designed for photography enthusiasts.",
47+
"year_of_creation": 2023,
48+
"rating": 4.9,
49+
"views": 6200,
50+
"country": "France",
51+
"price": 437.0
52+
},
53+
{
54+
"id": 6,
55+
"name": "Solara S20",
56+
"description": "A solar-powered smartphone that's perfect for outdoor adventurers.",
57+
"year_of_creation": 2022,
58+
"rating": 4.4,
59+
"views": 3800,
60+
"country": "Australia",
61+
"price": 289.88
62+
},
63+
{
64+
"id": 7,
65+
"name": "MegaMax M2",
66+
"description": "A plus-sized phone with a massive display and battery.",
67+
"year_of_creation": 2021,
68+
"rating": 4.0,
69+
"views": 9800,
70+
"country": "India",
71+
"price": 399.75
72+
},
73+
{
74+
"id": 8,
75+
"name": "Zenith Z9",
76+
"description": "A luxury smartphone crafted with premium materials and craftsmanship.",
77+
"year_of_creation": 2023,
78+
"rating": 4.7,
79+
"views": 5400,
80+
"country": "Italy",
81+
"price": 529.5
82+
},
83+
{
84+
"id": 9,
85+
"name": "RetroPhone R1",
86+
"description": "A nostalgic throwback to classic cellphones, reimagined for the modern era.",
87+
"year_of_creation": 2022,
88+
"rating": 4.3,
89+
"views": 3200,
90+
"country": "Japan",
91+
"price": 315.0
92+
},
93+
{
94+
"id": 10,
95+
"name": "SwiftCell S10",
96+
"description": "A phone designed for speed and efficiency, perfect for professionals.",
97+
"year_of_creation": 2021,
98+
"rating": 4.5,
99+
"views": 5700,
100+
"country": "Germany",
101+
"price": 412.25
102+
},
103+
{
104+
"id": 11,
105+
"name": "Luna L7",
106+
"description": "An innovative smartphone with a focus on AI and smart assistant integration.",
107+
"year_of_creation": 2023,
108+
"rating": 4.8,
109+
"views": 7100,
110+
"country": "South Korea",
111+
"price": 512.3
112+
},
113+
{
114+
"id": 12,
115+
"name": "FireMobile F4",
116+
"description": "A rugged phone built to withstand extreme conditions and environments.",
117+
"year_of_creation": 2022,
118+
"rating": 4.6,
119+
"views": 4800,
120+
"country": "United States",
121+
"price": 398.99
122+
},
123+
{
124+
"id": 13,
125+
"name": "AquaPhone A3",
126+
"description": "A waterproof and underwater-capable smartphone for aquatic adventurers.",
127+
"year_of_creation": 2023,
128+
"rating": 4.5,
129+
"views": 3900,
130+
"country": "Australia",
131+
"price": 325.9
132+
},
133+
{
134+
"id": 14,
135+
"name": "ErgoMobile E1",
136+
"description": "An ergonomic phone designed for comfort and reduced strain during use.",
137+
"year_of_creation": 2021,
138+
"rating": 4.2,
139+
"views": 6900,
140+
"country": "Sweden",
141+
"price": 275.0
142+
},
143+
{
144+
"id": 15,
145+
"name": "Nova N5",
146+
"description": "A budget-friendly smartphone with a focus on clean and intuitive software.",
147+
"year_of_creation": 2023,
148+
"rating": 4.0,
149+
"views": 8200,
150+
"country": "China",
151+
"price": 365.6
152+
},
153+
{
154+
"id": 16,
155+
"name": "Titan T8",
156+
"description": "A durable phone with a reinforced body, built for industrial use.",
157+
"year_of_creation": 2022,
158+
"rating": 4.3,
159+
"views": 2800,
160+
"country": "Germany",
161+
"price": 298.75
162+
},
163+
{
164+
"id": 17,
165+
"name": "PixelPerfect P3",
166+
"description": "A smartphone with an emphasis on display quality and color accuracy.",
167+
"year_of_creation": 2021,
168+
"rating": 4.7,
169+
"views": 6200,
170+
"country": "United States",
171+
"price": 449.99
172+
},
173+
{
174+
"id": 18,
175+
"name": "Velo V2",
176+
"description": "A phone designed for cyclists, with built-in fitness tracking and navigation.",
177+
"year_of_creation": 2023,
178+
"rating": 4.4,
179+
"views": 3400,
180+
"country": "France",
181+
"price": 299.99
182+
},
183+
{
184+
"id": 19,
185+
"name": "Horizon H6",
186+
"description": "A foldable smartphone with multitasking features for enhanced productivity.",
187+
"year_of_creation": 2022,
188+
"rating": 4.1,
189+
"views": 4800,
190+
"country": "South Korea",
191+
"price": 599.0
192+
},
193+
{
194+
"id": 20,
195+
"name": "Xenon X1",
196+
"description": "A gaming-centric smartphone with advanced cooling and performance optimization.",
197+
"year_of_creation": 2021,
198+
"rating": 4.9,
199+
"views": 7400,
200+
"country": "China",
201+
"price": 569.75
202+
}
203+
]
204+
}

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en" class="light">
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>Vite + React + TS</title>
8+
</head>
9+
<body class="capitalize text-black dark:text-white bg-white dark:bg-black">
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)