Skip to content

Commit 263d5b9

Browse files
Merge pull request #63 from recursivezero/feature/RZA-250021
RZA-250021: Refactor and Optimization of existing Pages
2 parents af29da4 + 00d87f0 commit 263d5b9

File tree

237 files changed

+19225
-4160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+19225
-4160
lines changed

.github/copilot-instructions.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
applyTo: "**"
3+
---
4+
5+
# Project general coding standards
6+
7+
## Naming Conventions
8+
9+
- Use PascalCase for component names, interfaces, and type aliases
10+
- Use camelCase for variables, functions, and methods
11+
- Prefix private class members with underscore (\_)
12+
- Use ALL_CAPS for constants
13+
14+
## Error Handling
15+
16+
- Use try/catch blocks for async operations
17+
- Implement proper error boundaries in React components
18+
- Always log errors with contextual information
19+
20+
## Code Structure
21+
22+
- Organize files by feature rather than type
23+
- Keep components small and focused on a single responsibility
24+
- Use TypeScript for type safety and better developer experience
25+
26+
## Documentation
27+
28+
- Maintain a README.md with project setup and usage instructions
29+
- Use inline comments sparingly, only for complex logic
30+
31+
## Version Control
32+
33+
- Use Git for version control
34+
- Write clear and concise commit messages
35+
- Use feature branches for new features and bug fixes
36+
- Rebase branches before merging
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
applyTo: "**/*.astro"
3+
---
4+
5+
## Project coding standards for Astro
6+
7+
Apply the [general coding guidelines](./general-coding.instructions.md) to all code.
8+
9+
## Astro Guidelines
10+
11+
- Use Astro components for reusable UI elements
12+
- Prefer using Astro's built-in components and features
13+
- Use TypeScript for Astro components when possible
14+
- Follow the Astro file structure conventions
15+
- Use Astro's slot system for component composition
16+
- Keep Astro components small and focused
17+
- Use CSS modules or scoped styles for component styling
18+
- Use Astro's built-in image optimization features
19+
- Use Astro's built-in routing system for navigation
20+
- Use Astro's built-in Markdown support for content
21+
22+
- Use Astro's built-in data fetching capabilities for dynamic content
23+
- Use Astro's built-in state management features when necessary
24+
25+
- Follow Astro's best practices for performance optimization
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
applyTo: "**/*.css"
3+
---
4+
5+
## Project coding standards for CSS
6+
7+
Apply the [general coding guidelines](./general-coding.instructions.md) to all code.
8+
9+
- Use BEM (Block Element Modifier) methodology for class naming
10+
- Use lowercase and hyphens for class names (e.g., `.block__element--modifier`)
11+
- Use meaningful class names that describe the purpose of the element
12+
- Use shorthand properties where applicable (e.g., `margin: 0 auto;` instead of `margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto;`)
13+
- Use CSS variables for colors and common values to ensure consistency
14+
- Use comments to explain complex styles or layout decisions
15+
- Use media queries for responsive design, keeping them close to the relevant styles
16+
- Avoid using IDs for styling; prefer classes
17+
- Use grid in place of flex wherever possible for layout instead of floats
18+
- Use `box-sizing: border-box;` to simplify box model calculations
19+
- Use css scroll snap properties for scrollable sections
20+
- writ css in nested structure to improve readability
21+
- Use `rem` or `em` units for font sizes and spacing to ensure scalability
22+
- Use `@import` for modular CSS files, but prefer CSS preprocessors like SASS or LESS for better organization
23+
- Use `:root` for defining global CSS variables
24+
- Use `transition` and `transform` for animations instead of JavaScript where possible
25+
- Use `:hover`, `:focus`, and `:active` pseudo-classes for interactive elements
26+
- Use `@media` queries for responsive design, keeping them close to the relevant styles
27+
- Use `@supports` for feature queries to ensure compatibility with older browsers
28+
- Use `@keyframes` for custom animations, keeping them modular and reusable
29+
- Use `@font-face` for custom fonts, ensuring proper fallbacks
30+
- Use `@layer` for CSS layering to control specificity and avoid conflicts
31+
- Use `@apply` for utility classes in Tailwind CSS or similar frameworks
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
applyTo: "**"
3+
---
4+
5+
# Project general coding standards
6+
7+
## Naming Conventions
8+
9+
- Use PascalCase for component names, interfaces, and type aliases
10+
- Use camelCase for variables, functions, and methods
11+
- Prefix private class members with underscore (\_)
12+
- Use ALL_CAPS for constants
13+
14+
## Error Handling
15+
16+
- Use try/catch blocks for async operations
17+
- Implement proper error boundaries in React components
18+
- Always log errors with contextual information
19+
- Use custom error classes for specific error types
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
applyTo: "**/*.ts,**/*.tsx"
3+
---
4+
5+
# Project coding standards for TypeScript and React
6+
7+
Apply the [general coding guidelines](./general-coding.instructions.md) to all code.
8+
9+
## TypeScript Guidelines
10+
11+
- Use TypeScript for all new code
12+
- Follow functional programming principles where possible
13+
- Use interfaces for data structures and type definitions
14+
- Prefer immutable data (const, readonly)
15+
- Use optional chaining (?.) and nullish coalescing (??) operators
16+
17+
## React Guidelines
18+
19+
- Use functional components with hooks
20+
- Follow the React hooks rules (no conditional hooks)
21+
- Use React.FC type for components with children
22+
- Keep components small and focused
23+
- Use CSS modules for component styling

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ npm-debug.log*
3131
yarn-debug.log*
3232
yarn-error.log*
3333
pnpm-debug.log*
34-
/.astro/astro/**
34+
/.astro/astro/**
35+
36+
*.code-workspace
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,108 @@
1+
abcdkbd
12
argmax
23
argmin
4+
Ashadha
5+
Ashvina
36
astro
47
astrojs
58
astype
69
audiorec
710
audiorecorder
811
avgrah
12+
Barahkhadi
13+
Bhadrapada
914
bincount
15+
Chaitra
1016
clsx
1117
cmdk
18+
Colour
19+
colours
1220
controlslist
1321
datetime
22+
Deepavali
1423
dhaga
24+
Dussehra
1525
ensurepip
1626
fontsource
1727
frontmatter
1828
getbuffer
1929
GSTIN
2030
heroicons
2131
hidenseek
32+
Holi
2233
hookform
2334
imread
2435
imwrite
2536
Jaati
37+
Jayanti
2638
jsonify
39+
Jyeshtha
40+
Kartika
2741
kmeans
2842
linalg
2943
lucide
44+
Magha
45+
Margashirsha
3046
matras
47+
nameform
3148
nodownload
3249
Organja
3350
orgenja
51+
paksha
52+
panchang
53+
parixan
54+
Pausha
3455
Peina
56+
Phalguna
3557
prerender
3658
Reddy
3759
roboto
3860
Rushi
3961
sanyukat
4062
shadcn
63+
Shravana
4164
signup
4265
sitemapindex
4366
skimage
4467
sportrop
4568
streamlit
69+
sunsign
70+
sunsigns
4671
tailwindcss
4772
threadzip
4873
Threazip
74+
tithi
75+
Vaishakha
76+
varnmala
4977
vaul
5078
venv
5179
Verdana
80+
Vijayadashami
5281
waitlist
5382
werkzeug
83+
अक्टूबर
84+
अगस्त
85+
अप्रैल
86+
आश्विन
87+
आषाढ़
88+
कन्या
89+
कर्क
90+
कार्तिक
91+
चैत्र
92+
जनवरी
93+
जुलाई
94+
ज्येष्ठ
95+
तुला
96+
दिसम्बर
97+
नवम्बर
98+
फ़रवरी
99+
फाल्गुन
100+
भाद्रपद
101+
मार्गशीर्ष
102+
मार्च
103+
मिथुन
104+
वृश्चिक
105+
वृषभ
106+
वैशाख
107+
श्रावण
108+
सितम्बर

.vscode/mcp.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"servers": {
3+
"my-mcp-server-9d062339": {
4+
"url": "https://api.githubcopilot.com/mcp/"
5+
}
6+
}
7+
}

.vscode/settings.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,26 @@
4646
"css.lint.unknownAtRules": "ignore",
4747
"css.lint.unknownProperties": "ignore",
4848
"css.hover.documentation": true,
49-
"css.hover.references": true
49+
"css.hover.references": true,
50+
"workbench.colorCustomizations": {
51+
"activityBar.activeBackground": "#e98cf9",
52+
"activityBar.background": "#e98cf9",
53+
"activityBar.foreground": "#15202b",
54+
"activityBar.inactiveForeground": "#15202b99",
55+
"activityBarBadge.background": "#fdf9e1",
56+
"activityBarBadge.foreground": "#15202b",
57+
"commandCenter.border": "#15202b99",
58+
"sash.hoverBorder": "#e98cf9",
59+
"statusBar.background": "#e05bf7",
60+
"statusBar.foreground": "#15202b",
61+
"statusBarItem.hoverBackground": "#d72af5",
62+
"statusBarItem.remoteBackground": "#e05bf7",
63+
"statusBarItem.remoteForeground": "#15202b",
64+
"titleBar.activeBackground": "#e05bf7",
65+
"titleBar.activeForeground": "#15202b",
66+
"titleBar.inactiveBackground": "#e05bf799",
67+
"titleBar.inactiveForeground": "#15202b99",
68+
"sideBar.border": "#e98cf9",
69+
"tab.activeBorder": "#e98cf9"
70+
}
5071
}

abcd.code-workspace

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"css.lint.unknownAtRules": "ignore",
4343
"debug.javascript.codelens.npmScripts": "never",
44-
"diffEditor.ignoreTrimWhitespace": true,
44+
"diffEditor.ignoreTrimWhitespace": false,
4545
"editor.accessibilitySupport": "off",
4646
"editor.bracketPairColorization.enabled": true,
4747
"editor.codeActionsOnSave": {
@@ -60,7 +60,7 @@
6060
"editor.inlayHints.enabled": "offUnlessPressed",
6161
"editor.insertSpaces": true,
6262
"editor.linkedEditing": true,
63-
"editor.minimap.enabled": false,
63+
"editor.minimap.enabled": true,
6464
"editor.minimap.renderCharacters": false,
6565
"editor.minimap.size": "fill",
6666
"editor.multiCursorModifier": "alt",
@@ -73,9 +73,25 @@
7373
"javascript": "javascriptreact"
7474
},
7575
"eslint.options": {
76-
"extensions": [".js", ".jsx", ".md", ".mdx", ".ts", ".tsx", ".astro"]
77-
},
78-
"eslint.validate": ["mdx", "markdown", "javascript", "javascriptreact", "typescript", "typescriptreact", "astro"],
76+
"extensions": [
77+
".js",
78+
".jsx",
79+
".md",
80+
".mdx",
81+
".ts",
82+
".tsx",
83+
".astro"
84+
]
85+
},
86+
"eslint.validate": [
87+
"mdx",
88+
"markdown",
89+
"javascript",
90+
"javascriptreact",
91+
"typescript",
92+
"typescriptreact",
93+
"astro"
94+
],
7995
"explorer.compactFolders": false,
8096
"explorer.confirmDelete": false,
8197
"explorer.confirmDragAndDrop": false,
@@ -103,7 +119,10 @@
103119
},
104120
"git.autofetch": true,
105121
"git.branchPrefix": "feature/",
106-
"git.branchProtection": ["develop", "main"],
122+
"git.branchProtection": [
123+
"develop",
124+
"main"
125+
],
107126
"git.branchRandomName.enable": true,
108127
"git.confirmSync": false,
109128
"git.enableCommitSigning": false,
@@ -114,7 +133,9 @@
114133
"js/ts.implicitProjectConfig.checkJs": true,
115134
"peacock.affectSideBarBorder": true,
116135
"peacock.color": "#6A3B98",
117-
"prettier.documentSelectors": ["**/*.astro"],
136+
"prettier.documentSelectors": [
137+
"**/*.astro"
138+
],
118139
"prettier.printWidth": 120,
119140
"prettier.quoteProps": "consistent",
120141
"prettier.singleQuote": false,
@@ -171,6 +192,9 @@
171192
"files.readonlyInclude": {
172193
".githooks/**": true
173194
},
174-
"typescript.preferences.preferGoToSourceDefinition": true
195+
"typescript.preferences.preferGoToSourceDefinition": true,
196+
"[xml]": {
197+
"editor.defaultFormatter": "redhat.vscode-xml"
198+
}
175199
}
176-
}
200+
}

0 commit comments

Comments
 (0)