Skip to content

Commit e83dbfd

Browse files
committed
Initial commit: Project setup and basic configuration.
1 parent 181dbf9 commit e83dbfd

26 files changed

+3507
-4436
lines changed

.eslintrc.json

100644100755
File mode changed.

.gitignore

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ yarn-error.log*
2626

2727
# local env files
2828
.env*.local
29+
.env
2930

3031
# vercel
3132
.vercel
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export default function $$var_textInFile() {
2+
}

.templates/.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# @see https://editorconfig-specification.readthedocs.io/en/latest/
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
12+
charset = utf-8
13+
14+
# 4 space indentation
15+
[*.py]
16+
indent_style = space
17+
indent_size = 4
18+
19+
# Tab indentation (no size specified)
20+
[Makefile]
21+
indent_style = tab
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from "react";
2+
import classNames from "classnames/bind";
3+
4+
import styles from "./index.scss";
5+
6+
const cx = classNames.bind(styles);
7+
8+
function __templateNameToPascalCase__() {
9+
return <div className={cx("__templateNameToParamCase__")}>Hello :)</div>;
10+
}
11+
12+
export default __templateNameToPascalCase__;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.__templateNameToParamCase__ {
2+
display: inline-block;
3+
}

.templates/template-sample/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default function __templateNameToPascalCase__() {
2+
console.log("TemplateName -> __templateName__");
3+
console.log("TemplateName to ParamCase -> __templateNameToParamCase__");
4+
console.log("TemplateName to PascalCase -> __templateNameToPascalCase__");
5+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"minimap.background": "#00000000",
4+
"scrollbar.shadow": "#00000000"
5+
}
6+
}

README.md

100644100755
File mode changed.

app/(root)/page.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"use client";
2+
3+
import { Modal } from "@/components/ui/modal";
4+
import { useStoreModal } from "@/hooks/use-store-modal";
5+
import { useEffect } from "react";
6+
7+
const SetUpPage = () => {
8+
const onOpen = useStoreModal(state => state.onOpen);
9+
const isOpen = useStoreModal(state => state.isOpen);
10+
11+
useEffect(() => {
12+
if (!isOpen) {
13+
onOpen();
14+
}
15+
}, [isOpen, onOpen]);
16+
17+
return (
18+
<div className="p-4">
19+
{/* <Modal title="Test" description="Test Desc" isOpen onClose={() => {}}>
20+
Children
21+
</Modal> */}
22+
Root Page
23+
</div>
24+
);
25+
};
26+
27+
export default SetUpPage;

app/favicon.ico

100644100755
File mode changed.

app/globals.css

100644100755
Lines changed: 71 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,82 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
@html, body,
56
:root {
6-
--foreground-rgb: 0, 0, 0;
7-
--background-start-rgb: 214, 219, 220;
8-
--background-end-rgb: 255, 255, 255;
7+
height: 100%;
98
}
109

11-
@media (prefers-color-scheme: dark) {
10+
@layer base {
1211
:root {
13-
--foreground-rgb: 255, 255, 255;
14-
--background-start-rgb: 0, 0, 0;
15-
--background-end-rgb: 0, 0, 0;
12+
--background: 0 0% 100%;
13+
--foreground: 222.2 84% 4.9%;
14+
15+
--muted: 210 40% 96.1%;
16+
--muted-foreground: 215.4 16.3% 46.9%;
17+
18+
--popover: 0 0% 100%;
19+
--popover-foreground: 222.2 84% 4.9%;
20+
21+
--card: 0 0% 100%;
22+
--card-foreground: 222.2 84% 4.9%;
23+
24+
--border: 214.3 31.8% 91.4%;
25+
--input: 214.3 31.8% 91.4%;
26+
27+
--primary: 222.2 47.4% 11.2%;
28+
--primary-foreground: 210 40% 98%;
29+
30+
--secondary: 210 40% 96.1%;
31+
--secondary-foreground: 222.2 47.4% 11.2%;
32+
33+
--accent: 210 40% 96.1%;
34+
--accent-foreground: 222.2 47.4% 11.2%;
35+
36+
--destructive: 0 84.2% 60.2%;
37+
--destructive-foreground: 210 40% 98%;
38+
39+
--ring: 215 20.2% 65.1%;
40+
41+
--radius: 0.5rem;
42+
}
43+
44+
.dark {
45+
--background: 222.2 84% 4.9%;
46+
--foreground: 210 40% 98%;
47+
48+
--muted: 217.2 32.6% 17.5%;
49+
--muted-foreground: 215 20.2% 65.1%;
50+
51+
--popover: 222.2 84% 4.9%;
52+
--popover-foreground: 210 40% 98%;
53+
54+
--card: 222.2 84% 4.9%;
55+
--card-foreground: 210 40% 98%;
56+
57+
--border: 217.2 32.6% 17.5%;
58+
--input: 217.2 32.6% 17.5%;
59+
60+
--primary: 210 40% 98%;
61+
--primary-foreground: 222.2 47.4% 11.2%;
62+
63+
--secondary: 217.2 32.6% 17.5%;
64+
--secondary-foreground: 210 40% 98%;
65+
66+
--accent: 217.2 32.6% 17.5%;
67+
--accent-foreground: 210 40% 98%;
68+
69+
--destructive: 0 62.8% 30.6%;
70+
--destructive-foreground: 0 85.7% 97.3%;
71+
72+
--ring: 217.2 32.6% 17.5%;
1673
}
1774
}
1875

19-
body {
20-
color: rgb(var(--foreground-rgb));
21-
background: linear-gradient(
22-
to bottom,
23-
transparent,
24-
rgb(var(--background-end-rgb))
25-
)
26-
rgb(var(--background-start-rgb));
76+
@layer base {
77+
* {
78+
@apply border-border;
79+
}
80+
body {
81+
@apply bg-background text-foreground;
82+
}
2783
}

app/page.tsx

Lines changed: 0 additions & 113 deletions
This file was deleted.

components.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true
11+
},
12+
"aliases": {
13+
"components": "@/components",
14+
"utils": "@/lib/utils"
15+
}
16+
}

lib/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ClassValue, clsx } from "clsx"
2+
import { twMerge } from "tailwind-merge"
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs))
6+
}

middleware.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { authMiddleware } from "@clerk/nextjs";
2+
3+
// This example protects all routes including api/trpc routes
4+
// Please edit this to allow other routes to be public as needed.
5+
// See https://clerk.com/docs/nextjs/middleware for more information about configuring your middleware
6+
export default authMiddleware({});
7+
8+
export const config = {
9+
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
10+
};

next.config.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)