Skip to content

Commit 666de70

Browse files
committed
One Commit
0 parents  commit 666de70

File tree

25 files changed

+2227
-0
lines changed

25 files changed

+2227
-0
lines changed

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
requests.http
10+
node_modules
11+
dist
12+
dist-ssr
13+
.vite
14+
*.local
15+
16+
# Editor directories and files
17+
.vscode/*
18+
!.vscode/extensions.json
19+
.idea
20+
.DS_Store
21+
*.suo
22+
*.ntvs*
23+
*.njsproj
24+
*.sln
25+
*.sw?
26+
*.env

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["denoland.vscode-deno"],
3+
}

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Vite + Deno + React + TypeScript
2+
3+
## Running
4+
5+
You need to have Deno v2.0.0 or later installed to run this repo.
6+
7+
Start a dev server:
8+
9+
```
10+
$ deno task dev
11+
```
12+
13+
## Deploy
14+
15+
Build production assets:
16+
17+
```
18+
$ deno task build
19+
```

database/database.sql

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
CREATE DATABASE codes;
2+
3+
USE codes;
4+
5+
CREATE TABLE hackerank (
6+
id SERIAL PRIMARY KEY,
7+
date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
8+
name VARCHAR(255) NOT NULL,
9+
description TEXT,
10+
solution TEXT,
11+
original TEXT
12+
);
13+
CREATE TABLE codeforces (
14+
id SERIAL PRIMARY KEY,
15+
date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
16+
name VARCHAR(255) NOT NULL,
17+
description TEXT,
18+
solution TEXT,
19+
original TEXT
20+
);
21+
CREATE TABLE omegaup(
22+
id SERIAL PRIMARY KEY,
23+
date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
24+
name VARCHAR(255) NOT NULL,
25+
description TEXT,
26+
solution TEXT,
27+
original TEXT
28+
);
29+
30+
INSERT INTO hackerank(name, description) VALUES ('sum', 'idk');
31+
INSERT INTO codeforces(name, description) VALUES ('sum', 'idk');
32+
INSERT INTO omegaup(name, description) VALUES ('sum', 'idk');

deno.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"tasks": {
3+
"dev": "deno run -A --node-modules-dir npm:vite --host",
4+
"build": "deno run -A --node-modules-dir npm:vite build",
5+
"preview": "deno run -A --node-modules-dir npm:vite preview",
6+
"serve": "deno run --allow-net --allow-read jsr:@std/http@1/file-server dist/"
7+
},
8+
"compilerOptions": {
9+
"lib": ["ES2020", "DOM", "DOM.Iterable", "deno.ns"],
10+
"jsx": "react-jsx",
11+
"jsxImportSource": "react",
12+
"jsxImportSourceTypes": "@types/react"
13+
},
14+
"imports": {
15+
"@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.0",
16+
"@types/react": "npm:@types/react@^18.3.11",
17+
"@types/react-dom": "npm:@types/react-dom@^18.3.1",
18+
"@vitejs/plugin-react-swc": "npm:@vitejs/plugin-react-swc@^3.7.1",
19+
"autoprefixer": "npm:autoprefixer@^10.4.20",
20+
"postcss": "npm:postcss@^8.4.47",
21+
"react": "npm:react@^18.3.1",
22+
"react-dom": "npm:react-dom@^18.3.1",
23+
"react-router-dom": "npm:react-router-dom@^6.28.0",
24+
"react-syntax-highlighter": "npm:react-syntax-highlighter@^15.6.1",
25+
"tailwindcss": "npm:tailwindcss@^3.4.14",
26+
"vite": "npm:vite@^5.4.9"
27+
}
28+
}

0 commit comments

Comments
 (0)