commit 17e95224a083ccd9e522f8712bb10846a2dada8a Author: Elizabeth Hunt Date: Fri Mar 1 16:07:16 2024 -0700 add assets, vite init diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..d6c9537 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,18 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/index.html b/index.html new file mode 100644 index 0000000..e4b78ea --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite + React + TS + + +
+ + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..a1cd98b --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "the-abstraction-engine", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "preview": "vite preview" + }, + "dependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "devDependencies": { + "@types/react": "^18.2.56", + "@types/react-dom": "^18.2.19", + "@typescript-eslint/eslint-plugin": "^7.0.2", + "@typescript-eslint/parser": "^7.0.2", + "@vitejs/plugin-react": "^4.2.1", + "eslint": "^8.56.0", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.5", + "typescript": "^5.2.2", + "vite": "^5.1.4" + } +} diff --git a/public/assets/border.png b/public/assets/border.png new file mode 100644 index 0000000..157cefa Binary files /dev/null and b/public/assets/border.png differ diff --git a/public/assets/bridge.png b/public/assets/bridge.png new file mode 100644 index 0000000..ff2ba40 Binary files /dev/null and b/public/assets/bridge.png differ diff --git a/public/assets/bubble.png b/public/assets/bubble.png new file mode 100644 index 0000000..62744b3 Binary files /dev/null and b/public/assets/bubble.png differ diff --git a/public/assets/grass.png b/public/assets/grass.png new file mode 100644 index 0000000..53e1bce Binary files /dev/null and b/public/assets/grass.png differ diff --git a/public/assets/lambda.png b/public/assets/lambda.png new file mode 100644 index 0000000..d90ed51 Binary files /dev/null and b/public/assets/lambda.png differ diff --git a/public/assets/letters/a.png b/public/assets/letters/a.png new file mode 100644 index 0000000..aab327b Binary files /dev/null and b/public/assets/letters/a.png differ diff --git a/public/assets/letters/and.png b/public/assets/letters/and.png new file mode 100644 index 0000000..a460ead Binary files /dev/null and b/public/assets/letters/and.png differ diff --git a/public/assets/letters/b.png b/public/assets/letters/b.png new file mode 100644 index 0000000..a1188b2 Binary files /dev/null and b/public/assets/letters/b.png differ diff --git a/public/assets/letters/c.png b/public/assets/letters/c.png new file mode 100644 index 0000000..88f9535 Binary files /dev/null and b/public/assets/letters/c.png differ diff --git a/public/assets/letters/d.png b/public/assets/letters/d.png new file mode 100644 index 0000000..6ea249e Binary files /dev/null and b/public/assets/letters/d.png differ diff --git a/public/assets/letters/f.png b/public/assets/letters/f.png new file mode 100644 index 0000000..75458a2 Binary files /dev/null and b/public/assets/letters/f.png differ diff --git a/public/assets/letters/plus.png b/public/assets/letters/plus.png new file mode 100644 index 0000000..cce757c Binary files /dev/null and b/public/assets/letters/plus.png differ diff --git a/public/assets/letters/t.png b/public/assets/letters/t.png new file mode 100644 index 0000000..2d679d5 Binary files /dev/null and b/public/assets/letters/t.png differ diff --git a/public/assets/letters/times.png b/public/assets/letters/times.png new file mode 100644 index 0000000..88f17fc Binary files /dev/null and b/public/assets/letters/times.png differ diff --git a/public/assets/letters/x.png b/public/assets/letters/x.png new file mode 100644 index 0000000..681afc8 Binary files /dev/null and b/public/assets/letters/x.png differ diff --git a/public/assets/letters/y.png b/public/assets/letters/y.png new file mode 100644 index 0000000..205dc9c Binary files /dev/null and b/public/assets/letters/y.png differ diff --git a/public/assets/numbers/0.png b/public/assets/numbers/0.png new file mode 100644 index 0000000..61a4132 Binary files /dev/null and b/public/assets/numbers/0.png differ diff --git a/public/assets/numbers/1.png b/public/assets/numbers/1.png new file mode 100644 index 0000000..4db175e Binary files /dev/null and b/public/assets/numbers/1.png differ diff --git a/public/assets/numbers/10.png b/public/assets/numbers/10.png new file mode 100644 index 0000000..c9f3298 Binary files /dev/null and b/public/assets/numbers/10.png differ diff --git a/public/assets/numbers/11.png b/public/assets/numbers/11.png new file mode 100644 index 0000000..2742d07 Binary files /dev/null and b/public/assets/numbers/11.png differ diff --git a/public/assets/numbers/12.png b/public/assets/numbers/12.png new file mode 100644 index 0000000..6c38497 Binary files /dev/null and b/public/assets/numbers/12.png differ diff --git a/public/assets/numbers/13.png b/public/assets/numbers/13.png new file mode 100644 index 0000000..24c6e16 Binary files /dev/null and b/public/assets/numbers/13.png differ diff --git a/public/assets/numbers/14.png b/public/assets/numbers/14.png new file mode 100644 index 0000000..eca6270 Binary files /dev/null and b/public/assets/numbers/14.png differ diff --git a/public/assets/numbers/2.png b/public/assets/numbers/2.png new file mode 100644 index 0000000..b0051ed Binary files /dev/null and b/public/assets/numbers/2.png differ diff --git a/public/assets/numbers/3.png b/public/assets/numbers/3.png new file mode 100644 index 0000000..f08fd79 Binary files /dev/null and b/public/assets/numbers/3.png differ diff --git a/public/assets/numbers/4.png b/public/assets/numbers/4.png new file mode 100644 index 0000000..6b9759d Binary files /dev/null and b/public/assets/numbers/4.png differ diff --git a/public/assets/numbers/5.png b/public/assets/numbers/5.png new file mode 100644 index 0000000..13a8320 Binary files /dev/null and b/public/assets/numbers/5.png differ diff --git a/public/assets/numbers/6.png b/public/assets/numbers/6.png new file mode 100644 index 0000000..ee7736d Binary files /dev/null and b/public/assets/numbers/6.png differ diff --git a/public/assets/numbers/7.png b/public/assets/numbers/7.png new file mode 100644 index 0000000..cc32024 Binary files /dev/null and b/public/assets/numbers/7.png differ diff --git a/public/assets/numbers/8.png b/public/assets/numbers/8.png new file mode 100644 index 0000000..0c79dde Binary files /dev/null and b/public/assets/numbers/8.png differ diff --git a/public/assets/numbers/9.png b/public/assets/numbers/9.png new file mode 100644 index 0000000..c46dcd3 Binary files /dev/null and b/public/assets/numbers/9.png differ diff --git a/public/assets/void.png b/public/assets/void.png new file mode 100644 index 0000000..912894b Binary files /dev/null and b/public/assets/void.png differ diff --git a/public/assets/wires/north-east.png b/public/assets/wires/north-east.png new file mode 100644 index 0000000..1201322 Binary files /dev/null and b/public/assets/wires/north-east.png differ diff --git a/public/assets/wires/north-south.png b/public/assets/wires/north-south.png new file mode 100644 index 0000000..359adb4 Binary files /dev/null and b/public/assets/wires/north-south.png differ diff --git a/public/assets/wires/north-west.png b/public/assets/wires/north-west.png new file mode 100644 index 0000000..0b3c24b Binary files /dev/null and b/public/assets/wires/north-west.png differ diff --git a/public/assets/wires/south-east.png b/public/assets/wires/south-east.png new file mode 100644 index 0000000..035ee61 Binary files /dev/null and b/public/assets/wires/south-east.png differ diff --git a/public/assets/wires/west-east.png b/public/assets/wires/west-east.png new file mode 100644 index 0000000..3787b77 Binary files /dev/null and b/public/assets/wires/west-east.png differ diff --git a/public/assets/wires/west-south.png b/public/assets/wires/west-south.png new file mode 100644 index 0000000..a5a7c4f Binary files /dev/null and b/public/assets/wires/west-south.png differ diff --git a/public/vite.svg b/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/App.css b/src/App.css new file mode 100644 index 0000000..b9d355d --- /dev/null +++ b/src/App.css @@ -0,0 +1,42 @@ +#root { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; +} + +.logo { + height: 6em; + padding: 1.5em; + will-change: filter; + transition: filter 300ms; +} +.logo:hover { + filter: drop-shadow(0 0 2em #646cffaa); +} +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafbaa); +} + +@keyframes logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} + +@media (prefers-reduced-motion: no-preference) { + a:nth-of-type(2) .logo { + animation: logo-spin infinite 20s linear; + } +} + +.card { + padding: 2em; +} + +.read-the-docs { + color: #888; +} diff --git a/src/App.tsx b/src/App.tsx new file mode 100644 index 0000000..afe48ac --- /dev/null +++ b/src/App.tsx @@ -0,0 +1,35 @@ +import { useState } from 'react' +import reactLogo from './assets/react.svg' +import viteLogo from '/vite.svg' +import './App.css' + +function App() { + const [count, setCount] = useState(0) + + return ( + <> +
+ + Vite logo + + + React logo + +
+

Vite + React

+
+ +

+ Edit src/App.tsx and save to test HMR +

+
+

+ Click on the Vite and React logos to learn more +

+ + ) +} + +export default App diff --git a/src/assets/react.svg b/src/assets/react.svg new file mode 100644 index 0000000..6c87de9 --- /dev/null +++ b/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..6119ad9 --- /dev/null +++ b/src/index.css @@ -0,0 +1,68 @@ +:root { + font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; + line-height: 1.5; + font-weight: 400; + + color-scheme: light dark; + color: rgba(255, 255, 255, 0.87); + background-color: #242424; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +a { + font-weight: 500; + color: #646cff; + text-decoration: inherit; +} +a:hover { + color: #535bf2; +} + +body { + margin: 0; + display: flex; + place-items: center; + min-width: 320px; + min-height: 100vh; +} + +h1 { + font-size: 3.2em; + line-height: 1.1; +} + +button { + border-radius: 8px; + border: 1px solid transparent; + padding: 0.6em 1.2em; + font-size: 1em; + font-weight: 500; + font-family: inherit; + background-color: #1a1a1a; + cursor: pointer; + transition: border-color 0.25s; +} +button:hover { + border-color: #646cff; +} +button:focus, +button:focus-visible { + outline: 4px auto -webkit-focus-ring-color; +} + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } + button { + background-color: #f9f9f9; + } +} diff --git a/src/main.tsx b/src/main.tsx new file mode 100644 index 0000000..3d7150d --- /dev/null +++ b/src/main.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import ReactDOM from 'react-dom/client' +import App from './App.tsx' +import './index.css' + +ReactDOM.createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..a7fc6fb --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..97ede7e --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true, + "strict": true + }, + "include": ["vite.config.ts"] +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..5a33944 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], +})