Skip to content

Commit 3fb1992

Browse files
committed
initial commit
Signed-off-by: ladianchad <[email protected]>
0 parents  commit 3fb1992

15 files changed

+1687
-0
lines changed

.github/workflows/deploy.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # main 브랜치에 푸시될 때마다 실행됩니다.
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout the repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: '18' # Node.js 버전 설정
21+
22+
- name: Install yarn
23+
run: |
24+
npm install --global yarn
25+
26+
- name: Install dependencies
27+
run: |
28+
yarn install
29+
30+
- name: Build the project
31+
run: |
32+
yarn run build
33+
34+
35+
- name: Deploy to GitHub Pages
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_branch: doc
40+

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea
2+
.vscode
3+
**/node_modules
4+
**/build
5+
**/dist

index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
7+
<title>modern robotics</title>
8+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DT82RSKK0Z"></script>
9+
<script>
10+
window.dataLayer = window.dataLayer || [];
11+
12+
function gtag() {
13+
dataLayer.push(arguments);
14+
}
15+
16+
gtag('js', new Date());
17+
gtag('config', 'G-DT82RSKK0Z');
18+
</script>
19+
</head>
20+
<body class="w-dvw h-dvh">
21+
<div id="root" class="w-full h-full min-w-[300px] flex flex-col overflow-y-auto relative"></div>
22+
<script type="module" src="/src/index.tsx"></script>
23+
</body>
24+
</html>

package.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "ladinachad",
3+
"version": "1.0.0",
4+
"description": "robotics study pages",
5+
"main": "src/App.tsx",
6+
"repository": "[email protected]:robotics-study/moden_robotics.git",
7+
"author": "ladianchad <[email protected]>",
8+
"license": "MIT",
9+
"homepage": "https://ladianchad.github.io/",
10+
"scripts": {
11+
"dev": "vite",
12+
"build": "vite build",
13+
"preview": "vite preview"
14+
},
15+
"dependencies": {
16+
"@babylonjs/core": "^7.44.0",
17+
"@babylonjs/gui": "^7.44.0",
18+
"@babylonjs/loaders": "^7.44.0",
19+
"@babylonjs/materials": "^7.44.0",
20+
"@types/react": "^18.0.33",
21+
"@types/react-dom": "^18.0.11",
22+
"axios": "^1.7.9",
23+
"babylonjs-loaders": "^7.44.0",
24+
"cannon": "^0.6.2",
25+
"konva": "^9.3.18",
26+
"prop-types": "^15.8.1",
27+
"react": "^18.2.0",
28+
"react-babylonjs": "^3.2.2",
29+
"react-dom": "^18.2.0",
30+
"react-katex": "^3.0.1",
31+
"react-konva": "^18.2.10",
32+
"react-router-dom": "^6.28.1",
33+
"typescript": "^5.7.2"
34+
},
35+
"devDependencies": {
36+
"@types/cannon": "^0.1.13",
37+
"@types/react-katex": "^3.0.4",
38+
"@types/webpack-env": "^1.18.5",
39+
"autoprefixer": "^10.4.20",
40+
"clsx": "^2.1.1",
41+
"fs": "^0.0.1-security",
42+
"postcss": "^8.4.49",
43+
"tailwind-merge": "^2.5.5",
44+
"tailwindcss": "^3.4.16",
45+
"ts-node": "^10.9.2",
46+
"vite": "^6.0.3"
47+
}
48+
}

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

public/favicon.ico

264 KB
Binary file not shown.

src/App.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Home from "./pages/home/Home";
2+
const App = () => {
3+
return <BrowserRouter>
4+
<Routes>
5+
<Route path={"/"} element={<Home/>}></Route>
6+
</Routes>
7+
</BrowserRouter>
8+
}
9+
10+
export default App

src/index.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

src/index.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom/client';
3+
import App from './App';
4+
import './index.css';
5+
6+
const root = ReactDOM.createRoot(document.getElementById('root')!);
7+
root.render(<App />);

src/pages/home/Home.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const Home = () => {
2+
return <div className="divide-y">
3+
<h1>Robotics study</h1>
4+
<a href={"/modern_robotics"}>
5+
modern robotics
6+
</a>
7+
</div>
8+
}
9+
10+
11+
export default Home

tailwind.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], // Tailwind가 파일을 스캔할 경로
4+
theme: {
5+
extend: {}, // 사용자 정의 스타일 확장
6+
},
7+
plugins: [], // 필요시 플러그인 추가
8+
};

tsconfig.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["dom", "esnext"],
5+
"allowJs": true,
6+
"jsx": "react-jsx", // React JSX 사용 시 "react-jsx"로 설정
7+
"strict": true, // 타입 검사 강화를 위한 strict 모드 설정
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true
11+
},
12+
"include": [
13+
"**/*.ts",
14+
"**/*.tsx",
15+
"**/*.d.ts",
16+
"**/*.json",
17+
"../../../Library/Caches/JetBrains/WebStorm2023.3/javascript/typings/node/18.19.68/node_modules/@types/node/globals.d.ts"
18+
],
19+
"exclude": ["node_modules"]
20+
}

types/global.d.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {JSX} from "react";
2+
3+
export interface ISupportedExample {
4+
python?: boolean,
5+
"c++"?: boolean,
6+
"javascript?": boolean,
7+
}
8+
9+
export interface IChapterData {
10+
title: String,
11+
chapter: number,
12+
supportedExample: ISupportedExample | undefined
13+
contents: () => JSX.Element | undefined
14+
}

vite.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import {defineConfig} from 'vite';
2+
3+
4+
export default defineConfig(({mode}) => {
5+
return {
6+
base: '/',
7+
server: {
8+
host: true,
9+
port: 3000
10+
}
11+
}
12+
});

0 commit comments

Comments
 (0)