From 997a1e87e81211442d1bfbd59552fdf890a644b4 Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Tue, 26 Mar 2024 19:31:15 +0800 Subject: [PATCH] chore: remove playground --- playground/.gitignore | 24 ---------- playground/counter.js | 9 ---- playground/index.html | 13 ------ playground/javascript.svg | 1 - playground/main.js | 26 ----------- playground/package.json | 14 ------ playground/public/vite.svg | 1 - playground/style.css | 96 -------------------------------------- pnpm-lock.yaml | 6 --- 9 files changed, 190 deletions(-) delete mode 100644 playground/.gitignore delete mode 100644 playground/counter.js delete mode 100644 playground/index.html delete mode 100644 playground/javascript.svg delete mode 100644 playground/main.js delete mode 100644 playground/package.json delete mode 100644 playground/public/vite.svg delete mode 100644 playground/style.css diff --git a/playground/.gitignore b/playground/.gitignore deleted file mode 100644 index a547bf3..0000000 --- a/playground/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# 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/playground/counter.js b/playground/counter.js deleted file mode 100644 index 881e2d7..0000000 --- a/playground/counter.js +++ /dev/null @@ -1,9 +0,0 @@ -export function setupCounter(element) { - let counter = 0 - const setCounter = (count) => { - counter = count - element.innerHTML = `count is ${counter}` - } - element.addEventListener('click', () => setCounter(counter + 1)) - setCounter(0) -} diff --git a/playground/index.html b/playground/index.html deleted file mode 100644 index 3d08438..0000000 --- a/playground/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/playground/javascript.svg b/playground/javascript.svg deleted file mode 100644 index f9abb2b..0000000 --- a/playground/javascript.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/main.js b/playground/main.js deleted file mode 100644 index 96e9e88..0000000 --- a/playground/main.js +++ /dev/null @@ -1,26 +0,0 @@ -import './style.css' - -import viteLogo from '/vite.svg' - -import { setupCounter } from './counter.js' -import javascriptLogo from './javascript.svg' - -document.querySelector('#app').innerHTML = ` -
- - - - - - -

Hello Vite!

-
- -
-

- Click on the Vite logo to learn more -

-
-` - -setupCounter(document.querySelector('#counter')) diff --git a/playground/package.json b/playground/package.json deleted file mode 100644 index e513d91..0000000 --- a/playground/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "playground", - "type": "module", - "version": "4.1.6", - "private": true, - "scripts": { - "build": "vite build", - "dev": "vite", - "preview": "vite preview" - }, - "devDependencies": { - "vite": "^5.2.6" - } -} diff --git a/playground/public/vite.svg b/playground/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/playground/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/playground/style.css b/playground/style.css deleted file mode 100644 index 30aa814..0000000 --- a/playground/style.css +++ /dev/null @@ -1,96 +0,0 @@ -: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; -} - -#app { - 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.vanilla:hover { - filter: drop-shadow(0 0 2em #f7df1eaa); -} - -.card { - padding: 2em; -} - -.read-the-docs { - color: #888; -} - -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/pnpm-lock.yaml b/pnpm-lock.yaml index b41fcf1..4c7ca2d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,12 +46,6 @@ importers: specifier: ^1.4.0 version: 1.4.0(@types/node@20.11.30) - playground: - devDependencies: - vite: - specifier: ^5.2.6 - version: 5.2.6(@types/node@20.11.30) - packages: /@aashutoshrathi/word-wrap@1.2.6: