Skip to content

Commit 31335ee

Browse files
init
0 parents  commit 31335ee

File tree

1,965 files changed

+147382
-0
lines changed

Some content is hidden

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

1,965 files changed

+147382
-0
lines changed

.env.example

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Since the ".env" file is gitignored, you can use the ".env.example" file to
2+
# build a new ".env" file when you clone the repo. Keep this file up-to-date
3+
# when you add new variables to `.env`.
4+
5+
# This file will be committed to version control, so make sure not to have any
6+
# secrets in it. If you are cloning this repo, create a copy of this file named
7+
# ".env" and populate it with your secrets.
8+
9+
# When adding additional environment variables, the schema in "/src/env.js"
10+
# should be updated accordingly.
11+
12+
# Example:
13+
# SERVERVAR="foo"
14+
# NEXT_PUBLIC_CLIENTVAR="bar"

.eslintrc.cjs

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/** @type {import("eslint").Linter.Config} */
2+
const config = {
3+
parser: "@typescript-eslint/parser",
4+
parserOptions: {
5+
project: true,
6+
},
7+
plugins: [
8+
// "@typescript-eslint"
9+
],
10+
extends: [
11+
"next/core-web-vitals",
12+
"plugin:@typescript-eslint/recommended-type-checked",
13+
"plugin:@typescript-eslint/stylistic-type-checked",
14+
],
15+
rules: {
16+
"@typescript-eslint/no-empty-object-type": "off",
17+
"@typescript-eslint/no-unsafe-assignment": "off",
18+
"@typescript-eslint/no-explicit-any": "off",
19+
"@typescript-eslint/array-type": "off",
20+
"@typescript-eslint/no-unsafe-member-access": "warn",
21+
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
22+
"@typescript-eslint/no-unsafe-argument": "warn",
23+
"@typescript-eslint/no-unused-expressions": "warn",
24+
"@typescript-eslint/consistent-type-definitions": "off",
25+
"@typescript-eslint/await-thenable": "off",
26+
"@typescript-eslint/consistent-type-imports": [
27+
"warn",
28+
{
29+
prefer: "type-imports",
30+
fixStyle: "inline-type-imports",
31+
},
32+
],
33+
"@typescript-eslint/no-unused-vars": [
34+
"warn",
35+
{
36+
argsIgnorePattern: "^_",
37+
},
38+
],
39+
"@typescript-eslint/require-await": "off",
40+
"@typescript-eslint/no-misused-promises": [
41+
"error",
42+
{
43+
checksVoidReturn: {
44+
attributes: false,
45+
},
46+
},
47+
],
48+
"@typescript-eslint/prefer-nullish-coalescing": "warn",
49+
"@next/next/no-img-element": "off",
50+
},
51+
};
52+
module.exports = config;

.gitignore

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# database
12+
/prisma/db.sqlite
13+
/prisma/db.sqlite-journal
14+
db.sqlite
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
next-env.d.ts
20+
21+
# production
22+
/build
23+
24+
# misc
25+
.DS_Store
26+
*.pem
27+
28+
# debug
29+
npm-debug.log*
30+
yarn-debug.log*
31+
yarn-error.log*
32+
.pnpm-debug.log*
33+
34+
# local env files
35+
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
36+
.env
37+
.env*.local
38+
39+
# vercel
40+
.vercel
41+
42+
# typescript
43+
*.tsbuildinfo
44+
45+
# idea files
46+
.idea
47+
48+
tempCodeRunnerFile.*
49+
/scripts/private/
50+
# public/data/templatesStructure.json
51+
/src/templates/**/*--ign/

.vscode/settings.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"image-manager.viewer.imageBackgroundColor": "#ffffff",
3+
"tailwindCSS.files.exclude": [
4+
"**/.git/**",
5+
"**/node_modules/**",
6+
"**/.hg/**",
7+
"**/.svn/**",
8+
"./src/templates/**",
9+
"**/src/templates/**",
10+
"src/templates/**",
11+
"**/.next/**",
12+
]
13+
}

CONTRIBUTING.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Contributing to DY Comps
2+
3+
Thank you for considering contributing to DY Comps! We appreciate your support and effort in making this project better.
4+
5+
## Add a New Template
6+
7+
1. **Install Dependencies**
8+
```sh
9+
pnpm i
10+
```
11+
2. **Fork the Repository**
12+
3. **Clone Your Fork**
13+
```sh
14+
git clone https://github.com/your-username/DY-Comps.git
15+
cd DY-Comps
16+
```
17+
4. **Create a New Branch**
18+
```sh
19+
git checkout -b feature/template-branch
20+
```
21+
5. **Create a new folder inside `src/templates/`.**
22+
6. **Add the following two files:**
23+
- `metadata.ts`: Contains data about this template. You can view other examples or refer to `type.d.ts` for more details.
24+
- `index.tsx`: The template's main component.
25+
26+
### Updating Metadata
27+
28+
- If you change the `metadata.ts` file, run the following command:
29+
```sh
30+
pnpm gen:data
31+
```
32+
- Open a new tab in your browser to see the updates.
33+
- After making all changes, run:
34+
```sh
35+
pnpm gen:data
36+
```
37+
38+
7. **Commit & Push Your Changes**
39+
```sh
40+
git add .
41+
git commit -m "Add new template"
42+
git push origin feature/template-branch
43+
```
44+
8. **Create a Pull Request (PR)**
45+
46+
## Contribution Guidelines
47+
48+
- Follow the coding style used in the project.
49+
- Write meaningful commit messages.
50+
- Ensure your changes do not break existing functionality.
51+
52+
## Reporting Issues
53+
54+
If you encounter a bug or have a feature request, please create an issue:
55+
56+
1. Navigate to the **Issues** tab.
57+
2. Click **New Issue**.
58+
3. Provide a clear and concise description of the problem.
59+
60+
## Contact
61+
62+
For any questions, feel free to reach out by opening an issue or contacting the maintainers.
63+
64+
Happy Coding! 🚀

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 immi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<div align="center">
2+
<img src="./public/logo.svg" alt="DY Comps Logo" width="150" />
3+
<h1>DY Comps</h1>
4+
<p><strong>Elegantly crafted React Components using Next.js, TypeScript, ShadCN, and Framer Motion.</strong></p>
5+
</div>
6+
7+
## 🌟 About
8+
9+
DY Comps provides a collection of meticulously designed and highly customizable React components, built with modern technologies to ensure seamless performance and aesthetic appeal.
10+
11+
## 🚀 Features
12+
13+
- **Next.js & TypeScript**: Leverage the power of modern web development with scalability and type safety.
14+
- **ShadCN Components**: Pre-styled, accessible, and easy-to-use UI components.
15+
- **Framer Motion**: Smooth animations and transitions for an enhanced user experience.
16+
- **Highly Customizable**: Tailor components to match your project's unique style and needs.
17+
- **Optimized Performance**: Lightweight and efficient, ensuring a fast and smooth experience.
18+
- **Developer-Friendly**: Well-structured code, easy-to-follow documentation, and seamless integration.
19+
20+
## 📜 Contribution
21+
22+
We welcome contributions! Check out our [Contributing Guide](CONTRIBUTING.md) for details on how to contribute.
23+
24+
## 📄 License
25+
26+
This project is licensed under the MIT License.
27+
28+
---
29+
30+
### 🌟 Stay Connected
31+
- Follow updates on GitHub
32+
- Join discussions and suggest features
33+
34+
Happy Coding! 🚀

components.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/styles/globals.css",
9+
"baseColor": "zinc",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
20+
}

css.d.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// My css.d.ts file
2+
import type * as CSS from 'csstype';
3+
4+
declare module 'csstype' {
5+
interface Properties {
6+
// Add a missing property
7+
WebkitRocketLauncher?: string;
8+
9+
// Allow namespaced CSS Custom Properties
10+
[index: `--theme-${string}`]: any;
11+
12+
// Allow any CSS Custom Properties
13+
[index: `--${string}`]: any;
14+
15+
// ...or allow any other property
16+
[index: string]: any;
17+
}
18+
}

next.config.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
3+
* for Docker builds.
4+
*/
5+
await import("./src/env.js");
6+
7+
/** @type {import("next").NextConfig} */
8+
const config = {
9+
experimental: {
10+
reactCompiler: true,
11+
},
12+
typescript: {
13+
ignoreBuildErrors: true,
14+
},
15+
eslint: {
16+
ignoreDuringBuilds: true,
17+
},
18+
images: {
19+
unoptimized: true,
20+
},
21+
};
22+
23+
export default config;

0 commit comments

Comments
 (0)