diff --git a/.changeset/good-teachers-refuse.md b/.changeset/good-teachers-refuse.md new file mode 100644 index 00000000..ef472309 --- /dev/null +++ b/.changeset/good-teachers-refuse.md @@ -0,0 +1,12 @@ +--- +'@solid-devtools/debugger': minor +'@solid-devtools/extension': minor +'@solid-devtools/frontend': minor +'@solid-devtools/logger': minor +'solid-devtools': minor +'@solid-devtools/overlay': minor +'@solid-devtools/shared': minor +'@solid-devtools/theme': minor +--- + +Update to vite 6, remove solid-start dep (was unused anyway) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml deleted file mode 100644 index d07c72d6..00000000 --- a/.github/workflows/format.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Format - -on: - push: - branches: [main] - -jobs: - format: - runs-on: ubuntu-latest - - permissions: - # Give the default GITHUB_TOKEN write permission to commit and push the - # added or changed files to the repository. - contents: write - - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: pnpm/action-setup@v4 - - - name: Setup Node.js 22 - uses: actions/setup-node@v4 - with: - node-version: 22.x - cache: pnpm - - - name: Install dependencies - run: pnpm install --no-frozen-lockfile --ignore-scripts - - - name: Format - run: pnpm run format - - - name: Add, Commit and Push - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: 'Format' - # should match the file pattern in the format script - file_pattern: './{packages,examples}/**/*.{js,ts,json,css,tsx,jsx}' diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 099988ae..00000000 --- a/.prettierrc +++ /dev/null @@ -1,20 +0,0 @@ -{ - "trailingComma": "all", - "tabWidth": 4, - "printWidth": 100, - "semi": false, - "singleQuote": true, - "useTabs": false, - "arrowParens": "avoid", - "bracketSpacing": false, - "endOfLine": "lf", - "plugins": ["prettier-plugin-organize-imports"], - "overrides": [ - { - "files": "*.yml", - "options": { - "tabWidth": 2 - } - } - ] -} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 13cb1170..b6d65914 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ The following document is a _(work in progress)_ guide for contributing to Solid ## Tooling -[`pnpm`](https://pnpm.io/), [`prettier`](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) and [`eslint`](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) — that's it. +[`pnpm`](https://pnpm.io/ and [`eslint`](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) — that's it. This project uses [pnpm](https://pnpm.io/) for package management. If you don't have it installed, you can install it with `npm install -g pnpm`. @@ -20,7 +20,7 @@ If you want to run the E2E tests, you need to install the dependencies by runnin ## Operating System -I _([thetarnav](https://github.com/thetarnav))_ am working from a Windows PC, but it everything should theoretically work on macOS and Linux as well. If you find any issues, please open an issue. +I'm working on a linux machine right now, but everything should be wokking the same way regardless of OS. Please make an issue if it's not. Alternatively, if something is off, I recommend using [Gitpod](https://gitpod.io) or [Codeflow](https://stackblitz.com/codeflow) for development. Both of them are free for oss projects like this one and will give you a stable development environment. diff --git a/configs/tsconfig.base.json b/configs/tsconfig.base.json index 8c08b93a..4f49f178 100644 --- a/configs/tsconfig.base.json +++ b/configs/tsconfig.base.json @@ -2,17 +2,20 @@ "compilerOptions": { "strict": true, "target": "ESNext", - "module": "ESNext", - "moduleResolution": "node", + "module": "NodeNext", + "moduleResolution": "nodenext", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "esModuleInterop": true, + "verbatimModuleSyntax": true, + "allowImportingTsExtensions": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "noPropertyAccessFromIndexSignature": true, "noUncheckedIndexedAccess": true, "allowJs": true, "checkJs": true, + "emitDeclarationOnly": true, "outDir": "types", "types": ["@total-typescript/ts-reset"] } diff --git a/configs/tsup.config.ts b/configs/tsup.config.ts index c323e17b..a3f0bc0c 100644 --- a/configs/tsup.config.ts +++ b/configs/tsup.config.ts @@ -1,6 +1,6 @@ -import { Plugin } from 'esbuild' +import { type Plugin } from 'esbuild' import { solidPlugin } from 'esbuild-plugin-solid' -import { defineConfig, Options } from 'tsup' +import { defineConfig, type Options } from 'tsup' export const CI = process.env['CI'] === 'true' || diff --git a/eslint.config.mjs b/eslint.config.mjs index ed7e3c39..bbe0f676 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -60,7 +60,7 @@ export default [{ files: ['**/*.{js,mjs,jsx,ts,tsx}'], plugins: { - '@typescript-eslint': ts_eslint, + '@typescript-eslint': /** @type {*} */(ts_eslint), '@no-only-tests': no_only_tests, '@eslint-comments': eslint_comments, '@nothing-but': /** @type {*} */(nb_eslint), @@ -83,7 +83,7 @@ export default [{ */ 'no-console' : 'warn', 'no-debugger' : 'warn', - 'prefer-const' : 'warn', + // 'prefer-const' : 'warn', 'require-await' : 'warn', 'no-empty' : 'warn', '@typescript-eslint/no-unused-vars': ['warn', { diff --git a/examples/sandbox/package.json b/examples/sandbox/package.json index 771de2b0..0d779381 100644 --- a/examples/sandbox/package.json +++ b/examples/sandbox/package.json @@ -12,14 +12,13 @@ }, "devDependencies": { "@babel/plugin-syntax-typescript": "^7.23.3", - "@unocss/preset-typography": "0.65.0-beta.3", - "solid-devtools": "workspace:^", - "vite-plugin-inspect": "^0.7.42" + "@unocss/preset-typography": "0.65.1", + "solid-devtools": "workspace:^" }, "dependencies": { "@solid-devtools/debugger": "workspace:^", "@solid-devtools/logger": "workspace:^", "@solid-devtools/overlay": "workspace:^", - "@solid-primitives/timer": "^1.3.7" + "@solid-primitives/timer": "^1.3.10" } } diff --git a/examples/sandbox/src/App.tsx b/examples/sandbox/src/App.tsx index ab19e211..5fb3757b 100644 --- a/examples/sandbox/src/App.tsx +++ b/examples/sandbox/src/App.tsx @@ -1,5 +1,5 @@ import { - Component, + type Component, createComponent, createComputed, createEffect, @@ -9,15 +9,15 @@ import { createRoot, createSignal, ErrorBoundary, - ParentComponent, - Setter, + type ParentComponent, + type Setter, Show, Suspense, } from 'solid-js' import {createMutable} from 'solid-js/store' -import Recursive from './Recursive' -import {ThemeExample} from './Theme' -import Todos from './Todos' +import Recursive from './Recursive.tsx' +import {ThemeExample} from './Theme.tsx' +import Todos from './Todos.tsx' const doMediumCalc = () => { Array.from({length: 1000000}, (_, i) => i).sort(() => Math.random() - 5) diff --git a/examples/sandbox/src/Overlay.tsx b/examples/sandbox/src/Overlay.tsx index c9566243..395fa9fc 100644 --- a/examples/sandbox/src/Overlay.tsx +++ b/examples/sandbox/src/Overlay.tsx @@ -1,5 +1,5 @@ import {Show, lazy} from 'solid-js' -const DevtoolsOverlay = lazy(() => import('./DevtoolsOverlay')) +const DevtoolsOverlay = lazy(() => import('./DevtoolsOverlay.tsx')) export function Overlay() { return ( diff --git a/examples/sandbox/src/Recursive.tsx b/examples/sandbox/src/Recursive.tsx index 5cebc721..77b9ab41 100644 --- a/examples/sandbox/src/Recursive.tsx +++ b/examples/sandbox/src/Recursive.tsx @@ -1,4 +1,4 @@ -import {Component, createContext, For, mergeProps, splitProps, useContext} from 'solid-js' +import {type Component, createContext, For, mergeProps, splitProps, useContext} from 'solid-js' import {createStore} from 'solid-js/store' type NodeType = { diff --git a/examples/sandbox/src/Theme.tsx b/examples/sandbox/src/Theme.tsx index bb8d612d..aa7e6de2 100644 --- a/examples/sandbox/src/Theme.tsx +++ b/examples/sandbox/src/Theme.tsx @@ -1,4 +1,4 @@ -import {Component, createContext, ParentComponent, useContext} from 'solid-js' +import {type Component, createContext, type ParentComponent, useContext} from 'solid-js' import {createStore} from 'solid-js/store' export type ThemeContextState = { diff --git a/examples/sandbox/src/Todos.tsx b/examples/sandbox/src/Todos.tsx index 1f5c5a2f..91421658 100644 --- a/examples/sandbox/src/Todos.tsx +++ b/examples/sandbox/src/Todos.tsx @@ -1,6 +1,6 @@ import { batch, - Component, + type Component, createEffect, createMemo, createRoot, @@ -8,7 +8,7 @@ import { For, Show, } from 'solid-js' -import {createStore, produce, SetStoreFunction, Store, unwrap} from 'solid-js/store' +import {createStore, produce, type SetStoreFunction, type Store, unwrap} from 'solid-js/store' export function createLocalStore( name: string, diff --git a/examples/sandbox/src/index.tsx b/examples/sandbox/src/index.tsx index b3dbb63d..8165fd21 100644 --- a/examples/sandbox/src/index.tsx +++ b/examples/sandbox/src/index.tsx @@ -5,6 +5,6 @@ async function main() { await import('@solid-devtools/debugger/bundled') } - import('./main') + import('./main.tsx') } main() diff --git a/examples/sandbox/src/main.tsx b/examples/sandbox/src/main.tsx index efbd1e99..11333564 100644 --- a/examples/sandbox/src/main.tsx +++ b/examples/sandbox/src/main.tsx @@ -1,7 +1,7 @@ import {render} from 'solid-js/web' -import App from './App' -import {Overlay} from './Overlay' -import {ThemeProvider} from './Theme' +import App from './App.tsx' +import {Overlay} from './Overlay.tsx' +import {ThemeProvider} from './Theme.tsx' import 'uno.css' diff --git a/examples/sandbox/vite.config.ts b/examples/sandbox/vite.config.ts index 24dab359..d9471b91 100644 --- a/examples/sandbox/vite.config.ts +++ b/examples/sandbox/vite.config.ts @@ -2,7 +2,6 @@ import devtools from 'solid-devtools/vite' import {presetTypography} from 'unocss' import Unocss from 'unocss/vite' import {defineConfig} from 'vite' -import Inspect from 'vite-plugin-inspect' import solid from 'vite-plugin-solid' const is_ext = process.env['EXT'] === 'true' || process.env['EXT'] === '1' @@ -24,7 +23,6 @@ export default defineConfig(mode => { Unocss({ presets: [presetTypography()], }), - Inspect(), ], define: { 'process.env.EXT': JSON.stringify(is_ext), diff --git a/examples/start/.gitignore b/examples/start/.gitignore deleted file mode 100644 index 8f09412b..00000000 --- a/examples/start/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ - -dist -.solid -.output -.vercel -.netlify -netlify - -# dependencies -/node_modules - -# IDEs and editors -/.idea -.project -.classpath -*.launch -.settings/ - -# Temp -gitignore - -# System Files -.DS_Store -Thumbs.db diff --git a/examples/start/package.json b/examples/start/package.json deleted file mode 100644 index 716d2f03..00000000 --- a/examples/start/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "solid-devtools-example-start", - "private": true, - "scripts": { - "dev": "solid-start dev", - "build": "solid-start build", - "start": "solid-start start" - }, - "type": "module", - "main": "./dist/index.js", - "devDependencies": { - "solid-start-node": "^0.3.10" - }, - "dependencies": { - "@solid-devtools/overlay": "workspace:^", - "@solidjs/meta": "^0.29.1", - "@solidjs/router": "^0.9.1", - "solid-devtools": "workspace:^", - "solid-start": "^0.3.10", - "undici": "^5.27.2" - }, - "engines": { - "node": ">=22" - } -} diff --git a/examples/start/public/favicon.ico b/examples/start/public/favicon.ico deleted file mode 100644 index fb282da0..00000000 Binary files a/examples/start/public/favicon.ico and /dev/null differ diff --git a/examples/start/public/img/android-chrome-192x192.png b/examples/start/public/img/android-chrome-192x192.png deleted file mode 100644 index 378bc386..00000000 Binary files a/examples/start/public/img/android-chrome-192x192.png and /dev/null differ diff --git a/examples/start/public/img/android-chrome-512x512.png b/examples/start/public/img/android-chrome-512x512.png deleted file mode 100644 index f85a880f..00000000 Binary files a/examples/start/public/img/android-chrome-512x512.png and /dev/null differ diff --git a/examples/start/public/img/apple-touch-icon.png b/examples/start/public/img/apple-touch-icon.png deleted file mode 100644 index 8b82e33b..00000000 Binary files a/examples/start/public/img/apple-touch-icon.png and /dev/null differ diff --git a/examples/start/public/img/favicon-16x16.png b/examples/start/public/img/favicon-16x16.png deleted file mode 100644 index fb282da0..00000000 Binary files a/examples/start/public/img/favicon-16x16.png and /dev/null differ diff --git a/examples/start/public/img/favicon-32x32.png b/examples/start/public/img/favicon-32x32.png deleted file mode 100644 index 2c45aa58..00000000 Binary files a/examples/start/public/img/favicon-32x32.png and /dev/null differ diff --git a/examples/start/public/img/mstile-150x150.png b/examples/start/public/img/mstile-150x150.png deleted file mode 100644 index 0f6d02f5..00000000 Binary files a/examples/start/public/img/mstile-150x150.png and /dev/null differ diff --git a/examples/start/public/manifest.webmanifest b/examples/start/public/manifest.webmanifest deleted file mode 100644 index 1e7f4529..00000000 --- a/examples/start/public/manifest.webmanifest +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "Solid Hackernews", - "short_name": "Solid HN", - "icons": [ - { - "src": "/img/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/img/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "start_url": "/", - "background_color": "#f2f3f5", - "display": "standalone", - "theme_color": "#f60" -} diff --git a/examples/start/public/robots.txt b/examples/start/public/robots.txt deleted file mode 100644 index 6f27bb66..00000000 --- a/examples/start/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: \ No newline at end of file diff --git a/examples/start/public/sw.js b/examples/start/public/sw.js deleted file mode 100644 index 46f3c6d3..00000000 --- a/examples/start/public/sw.js +++ /dev/null @@ -1,16 +0,0 @@ -self.addEventListener('fetch', e => { - ;(e.request.url.includes('localhost') || e.request.url.includes('workers')) && - e.respondWith( - caches - .open('solid-hn') - .then(t => - t - .match(e.request) - .then( - n => n || fetch(e.request).then(n => (t.put(e.request, n.clone()), n)), - ), - ), - ) -}) - -self.addEventListener('activate', e => e.waitUntil(caches.delete('solid-hn'))) diff --git a/examples/start/src/components/comment.tsx b/examples/start/src/components/comment.tsx deleted file mode 100644 index 7d970ee8..00000000 --- a/examples/start/src/components/comment.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import {Component, For, Show} from 'solid-js' -import {A} from 'solid-start' -import {IComment} from '~/types' -import Toggle from './toggle' - -const Comment: Component<{comment: IComment}> = props => { - return ( -
  • -
    - {props.comment.user}{' '} - {props.comment.time_ago} ago -
    -
    - - - - {comment => } - - - -
  • - ) -} - -export default Comment diff --git a/examples/start/src/components/nav.tsx b/examples/start/src/components/nav.tsx deleted file mode 100644 index 15723e84..00000000 --- a/examples/start/src/components/nav.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import {A} from 'solid-start' - -function Nav() { - return ( -
    - -
    - ) -} - -export default Nav diff --git a/examples/start/src/components/story.tsx b/examples/start/src/components/story.tsx deleted file mode 100644 index 782c4ea4..00000000 --- a/examples/start/src/components/story.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import {Component, Show} from 'solid-js' -import {A} from 'solid-start' - -import type {IStory} from '../types' - -const Story: Component<{story: IStory}> = props => { - return ( -
  • - {props.story.points} - - {props.story.title}} - > - - {props.story.title} - - ({props.story.domain}) - - -
    - - {props.story.time_ago}} - > - by {props.story.user}{' '} - {props.story.time_ago} |{' '} - - {props.story.comments_count - ? `${props.story.comments_count} comments` - : 'discuss'} - - - - - {' '} - {props.story.type} - -
  • - ) -} - -export default Story diff --git a/examples/start/src/components/toggle.tsx b/examples/start/src/components/toggle.tsx deleted file mode 100644 index 918c165f..00000000 --- a/examples/start/src/components/toggle.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import {createSignal} from 'solid-js' - -export default function Toggle(props) { - const [open, setOpen] = createSignal(true) - - return ( - <> -
    - setOpen(o => !o)}>{open() ? '[-]' : '[+] comments collapsed'} -
    - - - ) -} diff --git a/examples/start/src/entry-client.tsx b/examples/start/src/entry-client.tsx deleted file mode 100644 index 1a025115..00000000 --- a/examples/start/src/entry-client.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import {mount, StartClient} from 'solid-start/entry-client' -// import { attachDevtoolsOverlay } from '@solid-devtools/overlay' - -// attachDevtoolsOverlay({}) - -mount(() => , document) diff --git a/examples/start/src/entry-server.tsx b/examples/start/src/entry-server.tsx deleted file mode 100644 index 9df864ec..00000000 --- a/examples/start/src/entry-server.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import {createHandler, renderAsync, StartServer} from 'solid-start/entry-server' - -export default createHandler(renderAsync(event => )) diff --git a/examples/start/src/lib/api.ts b/examples/start/src/lib/api.ts deleted file mode 100644 index 2e325b5b..00000000 --- a/examples/start/src/lib/api.ts +++ /dev/null @@ -1,26 +0,0 @@ -import {isServer} from 'solid-js/web' - -const story = (path: string) => `https://node-hnapi.herokuapp.com/${path}` -const user = (path: string) => `https://hacker-news.firebaseio.com/v0/${path}.json` - -export default async function fetchAPI(path: string) { - const url = path.startsWith('user') ? user(path) : story(path) - const headers = isServer ? {'User-Agent': 'chrome'} : {} - - try { - let response = await fetch(url, {headers}) - let text = await response.text() - try { - if (text === null) { - return {error: 'Not found'} - } - return JSON.parse(text) - } catch (e) { - console.error(`Recevied from API: ${text}`) - console.error(e) - return {error: e} - } - } catch (error) { - return {error} - } -} diff --git a/examples/start/src/root.css b/examples/start/src/root.css deleted file mode 100644 index 5df29576..00000000 --- a/examples/start/src/root.css +++ /dev/null @@ -1,316 +0,0 @@ -body { - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, - 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; - font-size: 15px; - background-color: #f2f3f5; - margin: 0; - padding-top: 55px; - color: #34495e; - overflow-y: scroll; -} - -a { - color: #34495e; - text-decoration: none; -} - -.header { - background-color: #335d92; - position: fixed; - z-index: 999; - height: 55px; - top: 0; - left: 0; - right: 0; -} - -.header .inner { - max-width: 800px; - box-sizing: border-box; - margin: 0 auto; - padding: 15px 5px; -} - -.header a { - color: rgba(255, 255, 255, 0.8); - line-height: 24px; - transition: color 0.15s ease; - display: inline-block; - vertical-align: middle; - font-weight: 300; - letter-spacing: 0.075em; - margin-right: 1.8em; -} - -.header a:hover { - color: #fff; -} - -.header a.active { - color: #fff; - font-weight: 400; -} - -.header a:nth-child(6) { - margin-right: 0; -} - -.header .github { - color: #fff; - font-size: 0.9em; - margin: 0; - float: right; -} - -.logo { - width: 24px; - margin-right: 10px; - display: inline-block; - vertical-align: middle; -} - -.view { - max-width: 800px; - margin: 0 auto; - position: relative; -} - -@media (max-width: 860px) { - .header .inner { - padding: 15px 30px; - } -} - -@media (max-width: 600px) { - .header .inner { - padding: 15px; - } - - .header a { - margin-right: 1em; - } - - .header .github { - display: none; - } -} - -.news-view { - padding-top: 45px; -} - -.news-list, -.news-list-nav { - background-color: #fff; - border-radius: 2px; -} - -.news-list-nav { - padding: 15px 30px; - position: fixed; - text-align: center; - top: 55px; - left: 0; - right: 0; - z-index: 998; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -} - -.news-list-nav .page-link { - margin: 0 1em; -} - -.news-list-nav .disabled { - color: #aaa; -} - -.news-list { - position: absolute; - margin: 30px 0; - width: 100%; -} - -.news-list ul { - list-style-type: none; - padding: 0; - margin: 0; -} - -@media (max-width: 600px) { - .news-list { - margin: 10px 0; - } -} - -.news-item { - background-color: #fff; - padding: 20px 30px 20px 80px; - border-bottom: 1px solid #eee; - position: relative; - line-height: 20px; -} - -.news-item .score { - color: #335d92; - font-size: 1.1em; - font-weight: 700; - position: absolute; - top: 50%; - left: 0; - width: 80px; - text-align: center; - margin-top: -10px; -} - -.news-item .host, -.news-item .meta { - font-size: 0.85em; - color: #626262; -} - -.news-item .host a, -.news-item .meta a { - color: #626262; - text-decoration: underline; -} - -.news-item .host a:hover, -.news-item .meta a:hover { - color: #335d92; -} - -.item-view-header { - background-color: #fff; - padding: 1.8em 2em 1em; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -} - -.item-view-header h1 { - display: inline; - font-size: 1.5em; - margin: 0; - margin-right: 0.5em; -} - -.item-view-header .host, -.item-view-header .meta, -.item-view-header .meta a { - color: #626262; -} - -.item-view-header .meta a { - text-decoration: underline; -} - -.item-view-comments { - background-color: #fff; - margin-top: 10px; - padding: 0 2em 0.5em; -} - -.item-view-comments-header { - margin: 0; - font-size: 1.1em; - padding: 1em 0; - position: relative; -} - -.item-view-comments-header .spinner { - display: inline-block; - margin: -15px 0; -} - -.comment-children { - list-style-type: none; - padding: 0; - margin: 0; -} - -@media (max-width: 600px) { - .item-view-header h1 { - font-size: 1.25em; - } -} - -.comment-children .comment-children { - margin-left: 1.5em; -} - -.comment { - border-top: 1px solid #eee; - position: relative; -} - -.comment .by, -.comment .text, -.comment .toggle { - font-size: 0.9em; - margin: 1em 0; -} - -.comment .by { - color: #626262; -} - -.comment .by a { - color: #626262; - text-decoration: underline; -} - -.comment .text { - overflow-wrap: break-word; -} - -.comment .text a:hover { - color: #335d92; -} - -.comment .text pre { - white-space: pre-wrap; -} - -.comment .toggle { - background-color: #fffbf2; - padding: 0.3em 0.5em; - border-radius: 4px; -} - -.comment .toggle a { - color: #626262; - cursor: pointer; -} - -.comment .toggle.open { - padding: 0; - background-color: transparent; - margin-bottom: -0.5em; -} - -.user-view { - background-color: #fff; - box-sizing: border-box; - padding: 2em 3em; -} - -.user-view h1 { - margin: 0; - font-size: 1.5em; -} - -.user-view .meta { - list-style-type: none; - padding: 0; -} - -.user-view .label { - display: inline-block; - min-width: 4em; -} - -.user-view .about { - margin: 1em 0; -} - -.user-view .links a { - text-decoration: underline; -} diff --git a/examples/start/src/root.tsx b/examples/start/src/root.tsx deleted file mode 100644 index 494499ee..00000000 --- a/examples/start/src/root.tsx +++ /dev/null @@ -1,50 +0,0 @@ -// @refresh reload -import {Suspense} from 'solid-js' -import { - Body, - ErrorBoundary, - FileRoutes, - Head, - Html, - Link, - Meta, - Routes, - Scripts, - Title, -} from 'solid-start' -import Nav from './components/nav' -import './root.css' - -import 'solid-devtools' - -export default function Root() { - return ( - - - SolidStart - Hacker News - - - - - - -