diff --git a/package.json b/package.json index f2272e1..dbc2c7c 100644 --- a/package.json +++ b/package.json @@ -189,7 +189,6 @@ "react-dom": "17.0.0" }, "devDependencies": { - "@tailwindcss/forms": "^0.3.4", "@types/git-url-parse": "^9.0.1", "@types/lodash": "^4.14.176", "@types/parse-github-url": "^1.0.0", @@ -198,12 +197,9 @@ "@types/react-syntax-highlighter": "^13.5.2", "@types/three": "^0.134.0", "@vitejs/plugin-react": "^1.0.0", - "autoprefixer": "^10.4.0", "concurrently": "^6.4.0", "esbuild": "^0.13.14", "npm-watch": "^0.11.0", - "postcss": "^8.3.11", - "tailwindcss": "^2.2.19", "typescript": "^4.3.2", "vite": "^2.6.4" } diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index 33ad091..0000000 --- a/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} diff --git a/src/App.tsx b/src/App.tsx index 8d7bae1..a26276a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,14 +4,16 @@ import { AppInner } from "./components/app-inner"; import { useLocalStorage, usePackageJson } from "./hooks"; function App() { - const [blockId, setBlockId] = useState( + const [blockId, setBlockId] = useLocalStorage( + "blockId", "/src/blocks/file-blocks/code/index.tsx" ); - const [fileUrl, setFileUrl] = useState( + const [fileUrl, setFileUrl] = useLocalStorage( + "fileUrl", "https://github.com/githubocto/flat/blob/main/src/git.ts" ); const [doMimicProductionEnvironment, setDoMimicProductionEnvironment] = - useState(false); + useLocalStorage("doMimicProductionEnvironment", false); const { data: pkgJson, status } = usePackageJson(); @@ -53,15 +55,39 @@ function App() { const block = pkgJson?.blocks.find((v) => v.entry === blockId); return ( -
-
-
-