Skip to content

Commit 13f5384

Browse files
committed
Add front-end
1 parent 8c5d069 commit 13f5384

40 files changed

Lines changed: 8740 additions & 0 deletions

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# These are backup files generated by rustfmt
7+
**/*.rs.bk
8+
9+
# MSVC Windows builds of rustc generate these, which store debugging information
10+
*.pdb
11+
12+
# RustRover
13+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
14+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
15+
# and can be added to the global gitignore or merged into this file. For a more nuclear
16+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
17+
.idea/
18+
19+
.vercel/
20+
21+
# Logs
22+
logs
23+
*.log
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
pnpm-debug.log*
28+
lerna-debug.log*
29+
30+
node_modules
31+
dist
32+
dist-ssr
33+
*.local
34+
35+
# Editor directories and files
36+
.vscode/*
37+
!.vscode/extensions.json
38+
.idea
39+
.DS_Store
40+
*.suo
41+
*.ntvs*
42+
*.njsproj
43+
*.sln
44+
*.sw?
45+
.vercel

.prettierignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_packages/
2+
public/
3+
dist/
4+
temp/
5+
README.md
6+
LICENSE.md
7+
pnpm-lock.yaml
8+
pnpm-workspace.yaml
9+
package-lock.json
10+
Cargo.lock
11+
12+
target/
13+
**/*.rs
14+
**/*.toml

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 2,
3+
"semi": true,
4+
"singleQuote": true,
5+
"plugins": ["prettier-plugin-tailwindcss"]
6+
}

components.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/index.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+
}

eslint.config.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
import reactHooks from 'eslint-plugin-react-hooks';
4+
import reactRefresh from 'eslint-plugin-react-refresh';
5+
import tseslint from 'typescript-eslint';
6+
import tanstackQuery from '@tanstack/query';
7+
8+
export default tseslint.config(
9+
{ ignores: ['dist'] },
10+
{
11+
extends: [
12+
js.configs.recommended,
13+
...tseslint.configs.strictTypeChecked,
14+
'plugin:@tanstack/eslint-plugin-query/recommended',
15+
],
16+
files: ['**/*.{ts,tsx}'],
17+
languageOptions: {
18+
ecmaVersion: 2021,
19+
globals: globals.browser,
20+
},
21+
plugins: {
22+
'react-hooks': reactHooks,
23+
'react-refresh': reactRefresh,
24+
'@tanstack/eslint-plugin-query': tanstackQuery,
25+
},
26+
rules: {
27+
...reactHooks.configs.recommended.rules,
28+
'react-refresh/only-export-components': [
29+
'warn',
30+
{ allowConstantExport: true },
31+
],
32+
},
33+
},
34+
);

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>github-language-breakdown</title>
7+
</head>
8+
<body class="dark">
9+
<div id="root" class="min-h-dvh bg-background"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)