diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index 50584d9bd..3f2b0ed06 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - 1.x merge_group: pull_request: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e67f470e0..79042f235 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: branches: - - main + - 1.x concurrency: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 76460a4f7..44cba0d76 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,9 +3,9 @@ name: 🧪 Tests on: workflow_dispatch: pull_request: - branches: [main] + branches: [main, 1.x] push: - branches: [main] + branches: [main, 1.x] jobs: tests: @@ -43,19 +43,19 @@ jobs: - name: E2E Chromium uses: cypress-io/github-action@v6 with: - project: ./packages/tests + project: ./apps/tests install: false start: pnpm --filter tests start --host 127.0.0.1 --port 3000 - wait-on: 'http://127.0.0.1:3000' + wait-on: "http://127.0.0.1:3000" + wait-on-timeout: 120 browser: chromium - name: E2E Firefox uses: cypress-io/github-action@v6 with: - project: ./packages/tests + project: ./apps/tests install: false start: pnpm --filter tests start --host 127.0.0.1 --port 3000 - wait-on: 'http://127.0.0.1:3000' + wait-on: "http://127.0.0.1:3000" + wait-on-timeout: 120 browser: firefox - - diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index a3d249f09..5233232b6 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - 1.x - dev - release-* tags-ignore: @@ -12,6 +13,7 @@ on: pull_request: branches: - main + - 1.x - dev - release-* diff --git a/.nvmrc b/.nvmrc index d5b283a3a..e2228113d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22.13.1 +22.19.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 15ee064b2..535772321 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,144 +1,67 @@ # Contributing -Thank you for your interest in contributing to **SolidStart**! We welcome contributions including bug fixes, feature enhancements, documentation improvements, and more. +Thank you for your interest in contributing to **SolidStart**. +We welcome contributions including bug fixes, feature enhancements, documentation improvements, and more. -## Prerequisites +## Creating a Template -- **Node.js**: Use the version specified in `.nvmrc`, to manage multiple versions across your system, we recommend a version manager such as [fnm](https://github.com/Schniz/fnm), or another of your preference. -- **pnpm**: Install globally via `npm install -g pnpm`. Or let **Corepack** handle it in the setup step below. -- **Git**: Ensure Git is installed for cloning and managing the repository +We do not maintain official templates and integration in this monorepo. +Instead, please head over to [solidjs/templates](https://github.com/solidjs/templates) to submit your contribution. -## Setup +## Documentation -1. Clone the repository +We always want help and creative ways of explaining how to take the best out of SolidStart. +Alas, this is not the right place to do it, please head over to [SolidDocs](https://github.com/solidjs/solid-docs) and offer contribution to the official documentation! - ```bash - git clone https://github.com/solidjs/solid-start.git - cd solid-start - ``` +## Feature Request -2. Enable the correct pnpm version specified in package.json +> [!IMPORTANT] +> Do not create a PR without first discussion in an issue - ```bash - corepack enable - ``` +If there's a new feature you'd like to request you can: -3. Install dependencies +1. Create an issue and make your pitch. Be sure to explain the value proposition in a way that will benefit most users. - ```bash - pnpm install - ``` +2. If it's a more general concept, feel free to open a [Discussion](https://github.com/solidjs/solid-start/discussions) in the **Idea** category. -4. Build all packages and the landing page - ```bash - pnpm run build:all - ``` +A new **primitive** follows the same criteria as issues, please create an issue for it to be discussed before hand. -If you encounter issues (e.g. missing `node_modules`), clean the workspace +Primitives that depend on multiple external dependencies and 3rd party integrations are generally not a good fit to live inside this monorepo, we still welcome you to create it and share with the ecosystem. +Reach out in a [Discussion](https://github.com/solidjs/solid-start/discussions) in the **showcase** session and we'll amplify as much as we can! -```bash -pnpm run clean:all -``` +## Found a Bug -Then reinstall dependencies and rebuild. +If you believe you found a bug, we appreciate you creating an issue. +Issues without a reproduction or PR link will be **automatically closed**. -## Monorepo Structure +To speed up triaging, we recommend 2 strategies: -SolidStart is a pnpm-based monorepo with nested workspaces. Key directories include +### Minimal Reproduction -- **`packages/start`**: The core `@solidjs/start` package. -- **`packages/landing-page`**: The official landing page. -- **`examples/`**: Example projects for testing (a nested workspace; see details below). -- **`packages/tests`**: Unit and end-to-end (E2E) tests using Vitest and Cypress. +Create a **minimal** reproduction either in a remote IDE or in an open-source repository and add a link to your issue. -Use pnpm filters (e.g. `pnpm --filter @solidjs/start ...`) to target specific packages. -The `examples/` directory is a separate workspace with its own `pnpm-workspace.yaml` and `pnpm-lock.yaml`. +We recommend using the `create-solid` package with the **basic** setting. -## Developing and Testing Changes +| Package Manager | Command | +| --------------- | ------------------------------------------ | +| pnpm | `pnpm create solid -s -t basic` | +| npm | `npm create solid -s -t basic` | +| yarn | `yarn create solid -s -t basic` | +| bun | `bun create solid -s -t basic` | +| deno | `deno run -A npm:create-solid -s -t basic` | -1. Make your changes in the relevant package (e.g. `packages/start`) +### Failing Test PR -2. Rebuild affected packages +You can also fork this repository and go to `apps/tests`. +There we have an app with all default configurations and many routes. +Create a new route, a Cypress assertion to it and open a PR with the failing test-case. - ```bash - pnpm run packages:build - ``` +Once the PR is there, **create an issue** and link the PR (mention the PR as you'd mention a person in the issue description and vice-versa). - For a full rebuild: `pnpm run build:all` +> [!IMPORTANT] +> Mark the **allow edit by the maintainers** so we can more easily investigate the failing test and propose a fix. Otherwise we may need to close your PR and cherry-pick your commit. -3. Test your changes +--- - - For examples - ```bash - cd examples - pnpm install - pnpm --filter example-hackernews run dev # Runs the HackerNews example - ``` - - For the landing page (from the root directory) - ```bash - pnpm run lp:dev - ``` - -4. Clean builds if needed - ```bash - pnpm run packages:clean # Cleans packages' node_modules and dist folders - pnpm run lp:clean # Cleans the landing page - pnpm run clean:root # Cleans root-level caches - ``` - -## Running Tests - -Tests are located in `packages/tests`, using Vitest for unit tests and Cypress for E2E tests. - -1. Install the Cypress binary (required only once) - - ```bash - pnpm --filter tests exec cypress install - ``` - -2. For unit tests that check build artifacts, build the test app first - - ```bash - pnpm --filter tests run build - ``` - -3. Run unit tests - - ```bash - pnpm --filter tests run unit - ``` - - - CI mode (run once): `pnpm --filter tests run unit:ci` - - UI mode: `pnpm --filter tests run unit:ui` - -4. Run E2E tests - - ```bash - pnpm --filter tests run e2e:run - ``` - - - Interactive mode: `pnpm --filter tests run e2e:open` - - With dev server: `pnpm --filter tests run e2e` - -5. Clean test artifacts - ```bash - pnpm run clean:test - ``` - -## Using SolidStart in Your Own Monorepo - -When integrating `@solidjs/start` into your own monorepo (e.g. using Yarn workspaces), configure dependency hoisting to ensure proper resolution. This helps runtime components (e.g. `client/index.tsx`) resolve correctly in generated files like `index.html`. - -### Yarn v2+ - -In the project root's `package.json` - -```jsonc -{ - "installConfig": { - "hoistingLimits": "dependencies" - } -} -``` - -For pnpm monorepos, define workspaces in `pnpm-workspace.yaml`. If you encounter resolution issues (e.g. missing modules like `h3` from Vinxi), add `shamefully-hoist=true` to your `.npmrc` file. Test for duplicates and adjust configurations as necessary. +If you have read all the way here, you're already a champ! 🏆 +Thank you. diff --git a/README.md b/README.md index 2f59c5ec1..88d39535b 100644 --- a/README.md +++ b/README.md @@ -10,78 +10,133 @@ -**SolidStart** brings fine-grained reactivity fullstack with full flexibility. Built with features like unified rendering and isomorphic code execution, SolidStart enables you to create highly performant and scalable web applications. +- For contributing to codebase, check [CONTRIBUTING.md](/CONTRIBUTING.md) +- For creating a new template, please head on to [solidjs/templates](https://github.com/solidjs/templates) +- For instructions on building with SolidStart, check the [package README.md](/packages/start/README.md) and our [official docs](https://docs.solidjs.com/solid-start) -Explore the official [documentation](https://docs.solidjs.com/solid-start) for detailed guides and examples. +## Prerequisites -## Core Features +- **Node.js**: Use the version specified in `.nvmrc`, to manage multiple versions across your system, we recommend a version manager such as [fnm](https://github.com/Schniz/fnm), or another of your preference. +- **pnpm**: Install globally via `npm install -g pnpm`. Or let **Corepack** handle it in the setup step below. +- **Git**: Ensure Git is installed for cloning and managing the repository -- **All Rendering Modes**: - - Server-Side Rendering _(SSR)_ with sync, async, and stream [modes](https://docs.solidjs.com/solid-start/reference/server/create-handler) - - Client-Side Rendering _(CSR)_ - - Static Site Generation _(SSG)_ with route [pre-rendering](https://docs.solidjs.com/solid-start/building-your-application/route-prerendering) -- **TypeScript**: Full integration for robust, type-safe development -- **File-Based Routing**: Intuitive routing based on your project’s file structure -- **API Routes**: Dedicated server-side endpoints for seamless API development -- **Streaming**: Efficient data rendering for faster page loads -- **Build Optimizations**: Code splitting, tree shaking, and dead code elimination -- **Deployment Adapters**: Easily deploy to platforms like Vercel, Netlify, Cloudflare, and more +## Monorepo Structure -## Getting Started +SolidStart is a pnpm-based monorepo with nested workspaces. Key directories include -### Installation +- **`packages/start`**: The core `@solidjs/start` package. +- **`apps/landing-page`**: The official landing page. +- **`apps/tests`**: Unit and end-to-end (E2E) tests using Vitest and Cypress. +- **`apps/fixtures`**: Fixture projects for testing. -Create a SolidStart template project with your preferred package manager +Use pnpm filters (e.g. `pnpm --filter @solidjs/start ...`) to target specific packages. -```bash -# using npm -npm create solid@latest -- -s -``` +## Local Setup -```bash -# using pnpm -pnpm create solid@latest -s -``` +1. Clone the repository + + ```bash + git clone https://github.com/solidjs/solid-start.git + cd solid-start + ``` + +2. Enable the correct pnpm version specified in package.json + + ```bash + corepack enable + ``` + +3. Install dependencies + + ```bash + pnpm dedupe + ``` + + (`pnpm dedupe` will install dependencies _and_ clean the lockfile from duplicates, useful to preventing conflicts). + +4. Build all packages and the landing page + ```bash + pnpm run build:all + ``` + +If you encounter issues (e.g. missing `node_modules`), clean the workspace ```bash -# using bun -bun create solid@latest --s +pnpm run clean:all ``` -### Project Structure +Then reinstall dependencies and rebuild. -- `public/`: Static assets like icons, images, and fonts -- `src/`: Core application (aliased to `~/`) - - `routes/`: File-based routing for pages and APIs - - `app.tsx`: Root component of your application - - `entry-client.tsx`: Handles client-side hydration - - `entry-server.tsx`: Manages server-side request handling -- **Configuration Files**: `app.config.ts`, `package.json`, and more +## Running Tests -Learn more about [routing](https://docs.solidjs.com/solid-start/building-your-application/routing) +End-to-end tests are located in `apps/tests` projects. For manual testing and development there's the `apps/fixtures` apps, and finally, integration and unit tests live inside their respective packages. -## Adapters +1. Install the Cypress binary (required only once) -Configure adapters in `app.config.ts` to deploy to platforms like Vercel, Netlify, Cloudflare, and others + ```bash + pnpm --filter tests exec cypress install + ``` -```ts -import { defineConfig } from "@solidjs/start/config"; +2. For unit tests that check build artifacts, build the test app first -export default defineConfig({ - ssr: true, // false for client-side rendering only - server: { preset: "vercel" } -}); -``` + ```bash + pnpm --filter tests run build + ``` -Presets also include runtimes like Node.js, Bun or Deno. For example, a preset like `node-server` enables hosting on your server. -Learn more about [`defineConfig`](https://docs.solidjs.com/solid-start/reference/config/define-config) +3. Run unit tests -## Building + ```bash + pnpm --filter tests run unit + ``` -Generate production-ready bundles + - CI mode (run once): `pnpm --filter tests run unit:ci` + - UI mode: `pnpm --filter tests run unit:ui` -```bash -npm run build # or pnpm build or bun build -``` +4. Run E2E tests + + ```bash + pnpm --filter tests run tests:run + ``` + + - Interactive mode: `pnpm --filter tests run tests:open` + - With dev server: `pnpm --filter tests run tests` + +5. Clean test artifacts + ```bash + pnpm run clean:test + ``` + +## Development + +1. Make your changes in the relevant package (e.g. `packages/start`) + +2. Rebuild affected packages + + ```bash + pnpm run packages:build + ``` + + For a full rebuild: `pnpm run build:all` + +3. Test your changes + + - For fixtures, pick the name of the fixture and run the `dev` with workspace filtering. + ```bash + pnpm --filter fixture-basic dev + ``` + - For the landing page (from the root directory) + ```bash + pnpm run lp:dev + ``` + +4. Clean builds if needed + ```bash + pnpm run packages:clean # Cleans packages' node_modules and dist folders + pnpm run lp:clean # Cleans the landing page + pnpm run clean:root # Cleans root-level caches + ``` + +--- -After the build completes, you’ll be guided through deployment for your specific preset. +If you have read all the way here, you're already a champ! 🏆 +Thank you. diff --git a/examples/bare/README.md b/apps/fixtures/bare/README.md similarity index 100% rename from examples/bare/README.md rename to apps/fixtures/bare/README.md diff --git a/examples/bare/app.config.ts b/apps/fixtures/bare/app.config.ts similarity index 100% rename from examples/bare/app.config.ts rename to apps/fixtures/bare/app.config.ts diff --git a/examples/bare/package.json b/apps/fixtures/bare/package.json similarity index 91% rename from examples/bare/package.json rename to apps/fixtures/bare/package.json index eb9f58a87..e366e2214 100644 --- a/examples/bare/package.json +++ b/apps/fixtures/bare/package.json @@ -1,5 +1,5 @@ { - "name": "example-bare", + "name": "fixture-bare", "type": "module", "scripts": { "dev": "vinxi dev", diff --git a/archived_examples/notes/public/favicon.ico b/apps/fixtures/bare/public/favicon.ico similarity index 100% rename from archived_examples/notes/public/favicon.ico rename to apps/fixtures/bare/public/favicon.ico diff --git a/examples/bare/src/app.css b/apps/fixtures/bare/src/app.css similarity index 100% rename from examples/bare/src/app.css rename to apps/fixtures/bare/src/app.css diff --git a/examples/bare/src/app.tsx b/apps/fixtures/bare/src/app.tsx similarity index 100% rename from examples/bare/src/app.tsx rename to apps/fixtures/bare/src/app.tsx diff --git a/examples/bare/src/entry-client.tsx b/apps/fixtures/bare/src/entry-client.tsx similarity index 100% rename from examples/bare/src/entry-client.tsx rename to apps/fixtures/bare/src/entry-client.tsx diff --git a/examples/bare/src/entry-server.tsx b/apps/fixtures/bare/src/entry-server.tsx similarity index 100% rename from examples/bare/src/entry-server.tsx rename to apps/fixtures/bare/src/entry-server.tsx diff --git a/examples/bare/src/global.d.ts b/apps/fixtures/bare/src/global.d.ts similarity index 100% rename from examples/bare/src/global.d.ts rename to apps/fixtures/bare/src/global.d.ts diff --git a/examples/bare/tsconfig.json b/apps/fixtures/bare/tsconfig.json similarity index 100% rename from examples/bare/tsconfig.json rename to apps/fixtures/bare/tsconfig.json diff --git a/examples/basic/README.md b/apps/fixtures/basic/README.md similarity index 100% rename from examples/basic/README.md rename to apps/fixtures/basic/README.md diff --git a/examples/basic/app.config.ts b/apps/fixtures/basic/app.config.ts similarity index 100% rename from examples/basic/app.config.ts rename to apps/fixtures/basic/app.config.ts diff --git a/examples/basic/package.json b/apps/fixtures/basic/package.json similarity index 93% rename from examples/basic/package.json rename to apps/fixtures/basic/package.json index 7d2dd1ee3..588800acb 100644 --- a/examples/basic/package.json +++ b/apps/fixtures/basic/package.json @@ -1,5 +1,5 @@ { - "name": "example-basic", + "name": "fixture-basic", "type": "module", "scripts": { "dev": "vinxi dev", diff --git a/archived_test/template/public/favicon.ico b/apps/fixtures/basic/public/favicon.ico similarity index 100% rename from archived_test/template/public/favicon.ico rename to apps/fixtures/basic/public/favicon.ico diff --git a/examples/basic/src/app.css b/apps/fixtures/basic/src/app.css similarity index 100% rename from examples/basic/src/app.css rename to apps/fixtures/basic/src/app.css diff --git a/examples/basic/src/app.tsx b/apps/fixtures/basic/src/app.tsx similarity index 100% rename from examples/basic/src/app.tsx rename to apps/fixtures/basic/src/app.tsx diff --git a/examples/basic/src/components/Counter.css b/apps/fixtures/basic/src/components/Counter.css similarity index 100% rename from examples/basic/src/components/Counter.css rename to apps/fixtures/basic/src/components/Counter.css diff --git a/examples/basic/src/components/Counter.tsx b/apps/fixtures/basic/src/components/Counter.tsx similarity index 100% rename from examples/basic/src/components/Counter.tsx rename to apps/fixtures/basic/src/components/Counter.tsx diff --git a/examples/basic/src/entry-client.tsx b/apps/fixtures/basic/src/entry-client.tsx similarity index 100% rename from examples/basic/src/entry-client.tsx rename to apps/fixtures/basic/src/entry-client.tsx diff --git a/examples/basic/src/entry-server.tsx b/apps/fixtures/basic/src/entry-server.tsx similarity index 100% rename from examples/basic/src/entry-server.tsx rename to apps/fixtures/basic/src/entry-server.tsx diff --git a/examples/basic/src/global.d.ts b/apps/fixtures/basic/src/global.d.ts similarity index 100% rename from examples/basic/src/global.d.ts rename to apps/fixtures/basic/src/global.d.ts diff --git a/examples/basic/src/routes/[...404].tsx b/apps/fixtures/basic/src/routes/[...404].tsx similarity index 100% rename from examples/basic/src/routes/[...404].tsx rename to apps/fixtures/basic/src/routes/[...404].tsx diff --git a/examples/basic/src/routes/about.tsx b/apps/fixtures/basic/src/routes/about.tsx similarity index 100% rename from examples/basic/src/routes/about.tsx rename to apps/fixtures/basic/src/routes/about.tsx diff --git a/examples/basic/src/routes/index.tsx b/apps/fixtures/basic/src/routes/index.tsx similarity index 100% rename from examples/basic/src/routes/index.tsx rename to apps/fixtures/basic/src/routes/index.tsx diff --git a/examples/basic/tsconfig.json b/apps/fixtures/basic/tsconfig.json similarity index 100% rename from examples/basic/tsconfig.json rename to apps/fixtures/basic/tsconfig.json diff --git a/examples/experiments/README.md b/apps/fixtures/experiments/README.md similarity index 100% rename from examples/experiments/README.md rename to apps/fixtures/experiments/README.md diff --git a/examples/experiments/app.config.ts b/apps/fixtures/experiments/app.config.ts similarity index 100% rename from examples/experiments/app.config.ts rename to apps/fixtures/experiments/app.config.ts diff --git a/examples/experiments/package.json b/apps/fixtures/experiments/package.json similarity index 90% rename from examples/experiments/package.json rename to apps/fixtures/experiments/package.json index 7bf513bae..42d13edd7 100644 --- a/examples/experiments/package.json +++ b/apps/fixtures/experiments/package.json @@ -1,5 +1,5 @@ { - "name": "example-experiments", + "name": "fixture-experiments", "type": "module", "scripts": { "dev": "vinxi dev", diff --git a/examples/bare/public/favicon.ico b/apps/fixtures/experiments/public/favicon.ico similarity index 100% rename from examples/bare/public/favicon.ico rename to apps/fixtures/experiments/public/favicon.ico diff --git a/examples/experiments/src/app.css b/apps/fixtures/experiments/src/app.css similarity index 100% rename from examples/experiments/src/app.css rename to apps/fixtures/experiments/src/app.css diff --git a/examples/experiments/src/app.tsx b/apps/fixtures/experiments/src/app.tsx similarity index 100% rename from examples/experiments/src/app.tsx rename to apps/fixtures/experiments/src/app.tsx diff --git a/examples/experiments/src/components/BreaksOnServer.tsx b/apps/fixtures/experiments/src/components/BreaksOnServer.tsx similarity index 100% rename from examples/experiments/src/components/BreaksOnServer.tsx rename to apps/fixtures/experiments/src/components/BreaksOnServer.tsx diff --git a/examples/experiments/src/components/Counter.css b/apps/fixtures/experiments/src/components/Counter.css similarity index 100% rename from examples/experiments/src/components/Counter.css rename to apps/fixtures/experiments/src/components/Counter.css diff --git a/examples/experiments/src/components/Counter.tsx b/apps/fixtures/experiments/src/components/Counter.tsx similarity index 100% rename from examples/experiments/src/components/Counter.tsx rename to apps/fixtures/experiments/src/components/Counter.tsx diff --git a/examples/experiments/src/components/Provider.tsx b/apps/fixtures/experiments/src/components/Provider.tsx similarity index 100% rename from examples/experiments/src/components/Provider.tsx rename to apps/fixtures/experiments/src/components/Provider.tsx diff --git a/examples/experiments/src/components/counterContext.tsx b/apps/fixtures/experiments/src/components/counterContext.tsx similarity index 100% rename from examples/experiments/src/components/counterContext.tsx rename to apps/fixtures/experiments/src/components/counterContext.tsx diff --git a/examples/experiments/src/entry-client.tsx b/apps/fixtures/experiments/src/entry-client.tsx similarity index 100% rename from examples/experiments/src/entry-client.tsx rename to apps/fixtures/experiments/src/entry-client.tsx diff --git a/examples/experiments/src/entry-server.tsx b/apps/fixtures/experiments/src/entry-server.tsx similarity index 100% rename from examples/experiments/src/entry-server.tsx rename to apps/fixtures/experiments/src/entry-server.tsx diff --git a/examples/experiments/src/global.d.ts b/apps/fixtures/experiments/src/global.d.ts similarity index 100% rename from examples/experiments/src/global.d.ts rename to apps/fixtures/experiments/src/global.d.ts diff --git a/examples/experiments/src/middleware.ts b/apps/fixtures/experiments/src/middleware.ts similarity index 100% rename from examples/experiments/src/middleware.ts rename to apps/fixtures/experiments/src/middleware.ts diff --git a/examples/experiments/src/routes/(group).tsx b/apps/fixtures/experiments/src/routes/(group).tsx similarity index 100% rename from examples/experiments/src/routes/(group).tsx rename to apps/fixtures/experiments/src/routes/(group).tsx diff --git a/examples/experiments/src/routes/(group)/endpoint.ts b/apps/fixtures/experiments/src/routes/(group)/endpoint.ts similarity index 100% rename from examples/experiments/src/routes/(group)/endpoint.ts rename to apps/fixtures/experiments/src/routes/(group)/endpoint.ts diff --git a/examples/experiments/src/routes/(group)/other.tsx b/apps/fixtures/experiments/src/routes/(group)/other.tsx similarity index 100% rename from examples/experiments/src/routes/(group)/other.tsx rename to apps/fixtures/experiments/src/routes/(group)/other.tsx diff --git a/examples/experiments/src/routes/(group2).tsx b/apps/fixtures/experiments/src/routes/(group2).tsx similarity index 100% rename from examples/experiments/src/routes/(group2).tsx rename to apps/fixtures/experiments/src/routes/(group2).tsx diff --git a/examples/experiments/src/routes/(group2)/something.tsx b/apps/fixtures/experiments/src/routes/(group2)/something.tsx similarity index 100% rename from examples/experiments/src/routes/(group2)/something.tsx rename to apps/fixtures/experiments/src/routes/(group2)/something.tsx diff --git a/examples/experiments/src/routes/[...404].tsx b/apps/fixtures/experiments/src/routes/[...404].tsx similarity index 100% rename from examples/experiments/src/routes/[...404].tsx rename to apps/fixtures/experiments/src/routes/[...404].tsx diff --git a/examples/experiments/src/routes/[[option]]/thing.tsx b/apps/fixtures/experiments/src/routes/[[option]]/thing.tsx similarity index 100% rename from examples/experiments/src/routes/[[option]]/thing.tsx rename to apps/fixtures/experiments/src/routes/[[option]]/thing.tsx diff --git a/examples/experiments/src/routes/api.ts b/apps/fixtures/experiments/src/routes/api.ts similarity index 100% rename from examples/experiments/src/routes/api.ts rename to apps/fixtures/experiments/src/routes/api.ts diff --git a/examples/experiments/src/routes/api/hello/[name].ts b/apps/fixtures/experiments/src/routes/api/hello/[name].ts similarity index 100% rename from examples/experiments/src/routes/api/hello/[name].ts rename to apps/fixtures/experiments/src/routes/api/hello/[name].ts diff --git a/examples/experiments/src/routes/index.tsx b/apps/fixtures/experiments/src/routes/index.tsx similarity index 100% rename from examples/experiments/src/routes/index.tsx rename to apps/fixtures/experiments/src/routes/index.tsx diff --git a/examples/experiments/src/routes/test(named)/[name].tsx b/apps/fixtures/experiments/src/routes/test(named)/[name].tsx similarity index 100% rename from examples/experiments/src/routes/test(named)/[name].tsx rename to apps/fixtures/experiments/src/routes/test(named)/[name].tsx diff --git a/examples/experiments/src/routes/test(named)/[name]/home.tsx b/apps/fixtures/experiments/src/routes/test(named)/[name]/home.tsx similarity index 100% rename from examples/experiments/src/routes/test(named)/[name]/home.tsx rename to apps/fixtures/experiments/src/routes/test(named)/[name]/home.tsx diff --git a/examples/experiments/src/routes/test(nolayout)/nolayout.tsx b/apps/fixtures/experiments/src/routes/test(nolayout)/nolayout.tsx similarity index 100% rename from examples/experiments/src/routes/test(nolayout)/nolayout.tsx rename to apps/fixtures/experiments/src/routes/test(nolayout)/nolayout.tsx diff --git a/examples/experiments/src/routes/test.tsx b/apps/fixtures/experiments/src/routes/test.tsx similarity index 100% rename from examples/experiments/src/routes/test.tsx rename to apps/fixtures/experiments/src/routes/test.tsx diff --git a/examples/experiments/src/routes/test/(hi).tsx b/apps/fixtures/experiments/src/routes/test/(hi).tsx similarity index 100% rename from examples/experiments/src/routes/test/(hi).tsx rename to apps/fixtures/experiments/src/routes/test/(hi).tsx diff --git a/examples/experiments/src/routes/test/[name].tsx b/apps/fixtures/experiments/src/routes/test/[name].tsx similarity index 100% rename from examples/experiments/src/routes/test/[name].tsx rename to apps/fixtures/experiments/src/routes/test/[name].tsx diff --git "a/examples/experiments/src/routes/\346\274\242\345\255\227.tsx" "b/apps/fixtures/experiments/src/routes/\346\274\242\345\255\227.tsx" similarity index 100% rename from "examples/experiments/src/routes/\346\274\242\345\255\227.tsx" rename to "apps/fixtures/experiments/src/routes/\346\274\242\345\255\227.tsx" diff --git a/examples/experiments/tsconfig.json b/apps/fixtures/experiments/tsconfig.json similarity index 100% rename from examples/experiments/tsconfig.json rename to apps/fixtures/experiments/tsconfig.json diff --git a/examples/hackernews/README.md b/apps/fixtures/hackernews/README.md similarity index 100% rename from examples/hackernews/README.md rename to apps/fixtures/hackernews/README.md diff --git a/examples/hackernews/app.config.ts b/apps/fixtures/hackernews/app.config.ts similarity index 100% rename from examples/hackernews/app.config.ts rename to apps/fixtures/hackernews/app.config.ts diff --git a/examples/hackernews/package.json b/apps/fixtures/hackernews/package.json similarity index 90% rename from examples/hackernews/package.json rename to apps/fixtures/hackernews/package.json index f89475cef..6b86664f3 100644 --- a/examples/hackernews/package.json +++ b/apps/fixtures/hackernews/package.json @@ -1,5 +1,5 @@ { - "name": "example-hackernews", + "name": "fixture-hackernews", "type": "module", "scripts": { "dev": "vinxi dev", diff --git a/examples/basic/public/favicon.ico b/apps/fixtures/hackernews/public/favicon.ico similarity index 100% rename from examples/basic/public/favicon.ico rename to apps/fixtures/hackernews/public/favicon.ico diff --git a/examples/hackernews/public/img/android-chrome-192x192.png b/apps/fixtures/hackernews/public/img/android-chrome-192x192.png similarity index 100% rename from examples/hackernews/public/img/android-chrome-192x192.png rename to apps/fixtures/hackernews/public/img/android-chrome-192x192.png diff --git a/examples/hackernews/public/img/android-chrome-512x512.png b/apps/fixtures/hackernews/public/img/android-chrome-512x512.png similarity index 100% rename from examples/hackernews/public/img/android-chrome-512x512.png rename to apps/fixtures/hackernews/public/img/android-chrome-512x512.png diff --git a/examples/hackernews/public/img/apple-touch-icon.png b/apps/fixtures/hackernews/public/img/apple-touch-icon.png similarity index 100% rename from examples/hackernews/public/img/apple-touch-icon.png rename to apps/fixtures/hackernews/public/img/apple-touch-icon.png diff --git a/examples/hackernews/public/img/favicon-16x16.png b/apps/fixtures/hackernews/public/img/favicon-16x16.png similarity index 100% rename from examples/hackernews/public/img/favicon-16x16.png rename to apps/fixtures/hackernews/public/img/favicon-16x16.png diff --git a/examples/hackernews/public/img/favicon-32x32.png b/apps/fixtures/hackernews/public/img/favicon-32x32.png similarity index 100% rename from examples/hackernews/public/img/favicon-32x32.png rename to apps/fixtures/hackernews/public/img/favicon-32x32.png diff --git a/examples/hackernews/public/img/mstile-150x150.png b/apps/fixtures/hackernews/public/img/mstile-150x150.png similarity index 100% rename from examples/hackernews/public/img/mstile-150x150.png rename to apps/fixtures/hackernews/public/img/mstile-150x150.png diff --git a/examples/hackernews/public/manifest.webmanifest b/apps/fixtures/hackernews/public/manifest.webmanifest similarity index 100% rename from examples/hackernews/public/manifest.webmanifest rename to apps/fixtures/hackernews/public/manifest.webmanifest diff --git a/examples/hackernews/public/robots.txt b/apps/fixtures/hackernews/public/robots.txt similarity index 100% rename from examples/hackernews/public/robots.txt rename to apps/fixtures/hackernews/public/robots.txt diff --git a/examples/hackernews/public/sw.js b/apps/fixtures/hackernews/public/sw.js similarity index 100% rename from examples/hackernews/public/sw.js rename to apps/fixtures/hackernews/public/sw.js diff --git a/examples/hackernews/src/app.css b/apps/fixtures/hackernews/src/app.css similarity index 100% rename from examples/hackernews/src/app.css rename to apps/fixtures/hackernews/src/app.css diff --git a/examples/hackernews/src/app.tsx b/apps/fixtures/hackernews/src/app.tsx similarity index 100% rename from examples/hackernews/src/app.tsx rename to apps/fixtures/hackernews/src/app.tsx diff --git a/examples/hackernews/src/components/comment.tsx b/apps/fixtures/hackernews/src/components/comment.tsx similarity index 100% rename from examples/hackernews/src/components/comment.tsx rename to apps/fixtures/hackernews/src/components/comment.tsx diff --git a/examples/hackernews/src/components/nav.tsx b/apps/fixtures/hackernews/src/components/nav.tsx similarity index 100% rename from examples/hackernews/src/components/nav.tsx rename to apps/fixtures/hackernews/src/components/nav.tsx diff --git a/examples/hackernews/src/components/story.tsx b/apps/fixtures/hackernews/src/components/story.tsx similarity index 100% rename from examples/hackernews/src/components/story.tsx rename to apps/fixtures/hackernews/src/components/story.tsx diff --git a/examples/hackernews/src/components/toggle.tsx b/apps/fixtures/hackernews/src/components/toggle.tsx similarity index 100% rename from examples/hackernews/src/components/toggle.tsx rename to apps/fixtures/hackernews/src/components/toggle.tsx diff --git a/examples/hackernews/src/entry-client.tsx b/apps/fixtures/hackernews/src/entry-client.tsx similarity index 100% rename from examples/hackernews/src/entry-client.tsx rename to apps/fixtures/hackernews/src/entry-client.tsx diff --git a/examples/hackernews/src/entry-server.tsx b/apps/fixtures/hackernews/src/entry-server.tsx similarity index 100% rename from examples/hackernews/src/entry-server.tsx rename to apps/fixtures/hackernews/src/entry-server.tsx diff --git a/examples/hackernews/src/global.d.ts b/apps/fixtures/hackernews/src/global.d.ts similarity index 100% rename from examples/hackernews/src/global.d.ts rename to apps/fixtures/hackernews/src/global.d.ts diff --git a/examples/hackernews/src/lib/api.ts b/apps/fixtures/hackernews/src/lib/api.ts similarity index 100% rename from examples/hackernews/src/lib/api.ts rename to apps/fixtures/hackernews/src/lib/api.ts diff --git a/examples/hackernews/src/routes/[...stories].tsx b/apps/fixtures/hackernews/src/routes/[...stories].tsx similarity index 100% rename from examples/hackernews/src/routes/[...stories].tsx rename to apps/fixtures/hackernews/src/routes/[...stories].tsx diff --git a/examples/hackernews/src/routes/stories/[id].tsx b/apps/fixtures/hackernews/src/routes/stories/[id].tsx similarity index 100% rename from examples/hackernews/src/routes/stories/[id].tsx rename to apps/fixtures/hackernews/src/routes/stories/[id].tsx diff --git a/examples/hackernews/src/routes/users/[id].tsx b/apps/fixtures/hackernews/src/routes/users/[id].tsx similarity index 100% rename from examples/hackernews/src/routes/users/[id].tsx rename to apps/fixtures/hackernews/src/routes/users/[id].tsx diff --git a/examples/hackernews/src/types.ts b/apps/fixtures/hackernews/src/types.ts similarity index 100% rename from examples/hackernews/src/types.ts rename to apps/fixtures/hackernews/src/types.ts diff --git a/examples/hackernews/tsconfig.json b/apps/fixtures/hackernews/tsconfig.json similarity index 100% rename from examples/hackernews/tsconfig.json rename to apps/fixtures/hackernews/tsconfig.json diff --git a/examples/notes/README.md b/apps/fixtures/notes/README.md similarity index 100% rename from examples/notes/README.md rename to apps/fixtures/notes/README.md diff --git a/examples/notes/app.config.ts b/apps/fixtures/notes/app.config.ts similarity index 100% rename from examples/notes/app.config.ts rename to apps/fixtures/notes/app.config.ts diff --git a/examples/notes/package.json b/apps/fixtures/notes/package.json similarity index 93% rename from examples/notes/package.json rename to apps/fixtures/notes/package.json index d06e6a04f..a6b6a95d6 100644 --- a/examples/notes/package.json +++ b/apps/fixtures/notes/package.json @@ -1,5 +1,5 @@ { - "name": "example-notes", + "name": "fixture-notes", "type": "module", "scripts": { "dev": "vinxi dev", diff --git a/archived_examples/notes/public/checkmark.svg b/apps/fixtures/notes/public/checkmark.svg similarity index 100% rename from archived_examples/notes/public/checkmark.svg rename to apps/fixtures/notes/public/checkmark.svg diff --git a/archived_examples/notes/public/chevron-down.svg b/apps/fixtures/notes/public/chevron-down.svg similarity index 100% rename from archived_examples/notes/public/chevron-down.svg rename to apps/fixtures/notes/public/chevron-down.svg diff --git a/archived_examples/notes/public/chevron-up.svg b/apps/fixtures/notes/public/chevron-up.svg similarity index 100% rename from archived_examples/notes/public/chevron-up.svg rename to apps/fixtures/notes/public/chevron-up.svg diff --git a/archived_examples/notes/public/cross.svg b/apps/fixtures/notes/public/cross.svg similarity index 100% rename from archived_examples/notes/public/cross.svg rename to apps/fixtures/notes/public/cross.svg diff --git a/examples/experiments/public/favicon.ico b/apps/fixtures/notes/public/favicon.ico similarity index 100% rename from examples/experiments/public/favicon.ico rename to apps/fixtures/notes/public/favicon.ico diff --git a/archived_examples/notes/public/logo.svg b/apps/fixtures/notes/public/logo.svg similarity index 100% rename from archived_examples/notes/public/logo.svg rename to apps/fixtures/notes/public/logo.svg diff --git a/examples/notes/src/app.css b/apps/fixtures/notes/src/app.css similarity index 100% rename from examples/notes/src/app.css rename to apps/fixtures/notes/src/app.css diff --git a/examples/notes/src/app.tsx b/apps/fixtures/notes/src/app.tsx similarity index 100% rename from examples/notes/src/app.tsx rename to apps/fixtures/notes/src/app.tsx diff --git a/examples/notes/src/components/EditButton.tsx b/apps/fixtures/notes/src/components/EditButton.tsx similarity index 100% rename from examples/notes/src/components/EditButton.tsx rename to apps/fixtures/notes/src/components/EditButton.tsx diff --git a/examples/notes/src/components/NoteEditor.tsx b/apps/fixtures/notes/src/components/NoteEditor.tsx similarity index 100% rename from examples/notes/src/components/NoteEditor.tsx rename to apps/fixtures/notes/src/components/NoteEditor.tsx diff --git a/examples/notes/src/components/NoteList.tsx b/apps/fixtures/notes/src/components/NoteList.tsx similarity index 100% rename from examples/notes/src/components/NoteList.tsx rename to apps/fixtures/notes/src/components/NoteList.tsx diff --git a/examples/notes/src/components/SearchField.tsx b/apps/fixtures/notes/src/components/SearchField.tsx similarity index 100% rename from examples/notes/src/components/SearchField.tsx rename to apps/fixtures/notes/src/components/SearchField.tsx diff --git a/examples/notes/src/components/SidebarNote.tsx b/apps/fixtures/notes/src/components/SidebarNote.tsx similarity index 100% rename from examples/notes/src/components/SidebarNote.tsx rename to apps/fixtures/notes/src/components/SidebarNote.tsx diff --git a/examples/notes/src/entry-client.tsx b/apps/fixtures/notes/src/entry-client.tsx similarity index 100% rename from examples/notes/src/entry-client.tsx rename to apps/fixtures/notes/src/entry-client.tsx diff --git a/examples/notes/src/entry-server.tsx b/apps/fixtures/notes/src/entry-server.tsx similarity index 100% rename from examples/notes/src/entry-server.tsx rename to apps/fixtures/notes/src/entry-server.tsx diff --git a/examples/notes/src/global.d.ts b/apps/fixtures/notes/src/global.d.ts similarity index 100% rename from examples/notes/src/global.d.ts rename to apps/fixtures/notes/src/global.d.ts diff --git a/examples/notes/src/lib/api.ts b/apps/fixtures/notes/src/lib/api.ts similarity index 100% rename from examples/notes/src/lib/api.ts rename to apps/fixtures/notes/src/lib/api.ts diff --git a/examples/notes/src/lib/db.ts b/apps/fixtures/notes/src/lib/db.ts similarity index 100% rename from examples/notes/src/lib/db.ts rename to apps/fixtures/notes/src/lib/db.ts diff --git a/examples/notes/src/lib/types.ts b/apps/fixtures/notes/src/lib/types.ts similarity index 100% rename from examples/notes/src/lib/types.ts rename to apps/fixtures/notes/src/lib/types.ts diff --git a/archived_examples/notes/src/routes/(layout)/(home).tsx b/apps/fixtures/notes/src/routes/(home).tsx similarity index 100% rename from archived_examples/notes/src/routes/(layout)/(home).tsx rename to apps/fixtures/notes/src/routes/(home).tsx diff --git a/examples/notes/src/routes/[...404].tsx b/apps/fixtures/notes/src/routes/[...404].tsx similarity index 100% rename from examples/notes/src/routes/[...404].tsx rename to apps/fixtures/notes/src/routes/[...404].tsx diff --git a/examples/notes/src/routes/new.tsx b/apps/fixtures/notes/src/routes/new.tsx similarity index 100% rename from examples/notes/src/routes/new.tsx rename to apps/fixtures/notes/src/routes/new.tsx diff --git a/examples/notes/src/routes/notes/[id]/(preview).tsx b/apps/fixtures/notes/src/routes/notes/[id]/(preview).tsx similarity index 100% rename from examples/notes/src/routes/notes/[id]/(preview).tsx rename to apps/fixtures/notes/src/routes/notes/[id]/(preview).tsx diff --git a/examples/notes/src/routes/notes/[id]/edit.tsx b/apps/fixtures/notes/src/routes/notes/[id]/edit.tsx similarity index 100% rename from examples/notes/src/routes/notes/[id]/edit.tsx rename to apps/fixtures/notes/src/routes/notes/[id]/edit.tsx diff --git a/examples/notes/tsconfig.json b/apps/fixtures/notes/tsconfig.json similarity index 100% rename from examples/notes/tsconfig.json rename to apps/fixtures/notes/tsconfig.json diff --git a/examples/package.json b/apps/fixtures/package.json similarity index 100% rename from examples/package.json rename to apps/fixtures/package.json diff --git a/examples/pnpm-lock.yaml b/apps/fixtures/pnpm-lock.yaml similarity index 100% rename from examples/pnpm-lock.yaml rename to apps/fixtures/pnpm-lock.yaml diff --git a/examples/pnpm-workspace.yaml b/apps/fixtures/pnpm-workspace.yaml similarity index 100% rename from examples/pnpm-workspace.yaml rename to apps/fixtures/pnpm-workspace.yaml diff --git a/examples/todomvc/README.md b/apps/fixtures/todomvc/README.md similarity index 100% rename from examples/todomvc/README.md rename to apps/fixtures/todomvc/README.md diff --git a/examples/todomvc/app.config.ts b/apps/fixtures/todomvc/app.config.ts similarity index 100% rename from examples/todomvc/app.config.ts rename to apps/fixtures/todomvc/app.config.ts diff --git a/examples/todomvc/package.json b/apps/fixtures/todomvc/package.json similarity index 91% rename from examples/todomvc/package.json rename to apps/fixtures/todomvc/package.json index dd41eb15d..ec03e1719 100644 --- a/examples/todomvc/package.json +++ b/apps/fixtures/todomvc/package.json @@ -1,5 +1,5 @@ { - "name": "example-todomvc", + "name": "fixture-todomvc", "type": "module", "scripts": { "dev": "vinxi dev", diff --git a/examples/hackernews/public/favicon.ico b/apps/fixtures/todomvc/public/favicon.ico similarity index 100% rename from examples/hackernews/public/favicon.ico rename to apps/fixtures/todomvc/public/favicon.ico diff --git a/examples/todomvc/src/app.css b/apps/fixtures/todomvc/src/app.css similarity index 100% rename from examples/todomvc/src/app.css rename to apps/fixtures/todomvc/src/app.css diff --git a/examples/todomvc/src/app.tsx b/apps/fixtures/todomvc/src/app.tsx similarity index 100% rename from examples/todomvc/src/app.tsx rename to apps/fixtures/todomvc/src/app.tsx diff --git a/examples/todomvc/src/components/icons.tsx b/apps/fixtures/todomvc/src/components/icons.tsx similarity index 100% rename from examples/todomvc/src/components/icons.tsx rename to apps/fixtures/todomvc/src/components/icons.tsx diff --git a/examples/todomvc/src/entry-client.tsx b/apps/fixtures/todomvc/src/entry-client.tsx similarity index 100% rename from examples/todomvc/src/entry-client.tsx rename to apps/fixtures/todomvc/src/entry-client.tsx diff --git a/examples/todomvc/src/entry-server.tsx b/apps/fixtures/todomvc/src/entry-server.tsx similarity index 100% rename from examples/todomvc/src/entry-server.tsx rename to apps/fixtures/todomvc/src/entry-server.tsx diff --git a/examples/todomvc/src/global.d.ts b/apps/fixtures/todomvc/src/global.d.ts similarity index 100% rename from examples/todomvc/src/global.d.ts rename to apps/fixtures/todomvc/src/global.d.ts diff --git a/examples/todomvc/src/lib/api.ts b/apps/fixtures/todomvc/src/lib/api.ts similarity index 100% rename from examples/todomvc/src/lib/api.ts rename to apps/fixtures/todomvc/src/lib/api.ts diff --git a/examples/todomvc/src/lib/db.ts b/apps/fixtures/todomvc/src/lib/db.ts similarity index 100% rename from examples/todomvc/src/lib/db.ts rename to apps/fixtures/todomvc/src/lib/db.ts diff --git a/examples/todomvc/src/routes/index.tsx b/apps/fixtures/todomvc/src/routes/index.tsx similarity index 100% rename from examples/todomvc/src/routes/index.tsx rename to apps/fixtures/todomvc/src/routes/index.tsx diff --git a/examples/todomvc/src/types.ts b/apps/fixtures/todomvc/src/types.ts similarity index 100% rename from examples/todomvc/src/types.ts rename to apps/fixtures/todomvc/src/types.ts diff --git a/examples/todomvc/tsconfig.json b/apps/fixtures/todomvc/tsconfig.json similarity index 100% rename from examples/todomvc/tsconfig.json rename to apps/fixtures/todomvc/tsconfig.json diff --git a/examples/use-workspace-package-in-examples.js b/apps/fixtures/use-workspace-package-in-examples.js similarity index 100% rename from examples/use-workspace-package-in-examples.js rename to apps/fixtures/use-workspace-package-in-examples.js diff --git a/packages/landing-page/app.config.ts b/apps/landing-page/app.config.ts similarity index 100% rename from packages/landing-page/app.config.ts rename to apps/landing-page/app.config.ts diff --git a/packages/landing-page/package.json b/apps/landing-page/package.json similarity index 100% rename from packages/landing-page/package.json rename to apps/landing-page/package.json diff --git a/packages/landing-page/postcss.config.js b/apps/landing-page/postcss.config.js similarity index 100% rename from packages/landing-page/postcss.config.js rename to apps/landing-page/postcss.config.js diff --git a/packages/landing-page/public/actions-machine.png b/apps/landing-page/public/actions-machine.png similarity index 100% rename from packages/landing-page/public/actions-machine.png rename to apps/landing-page/public/actions-machine.png diff --git a/packages/landing-page/public/actions-machine.svg b/apps/landing-page/public/actions-machine.svg similarity index 100% rename from packages/landing-page/public/actions-machine.svg rename to apps/landing-page/public/actions-machine.svg diff --git a/packages/landing-page/public/anomaly-logo.png b/apps/landing-page/public/anomaly-logo.png similarity index 100% rename from packages/landing-page/public/anomaly-logo.png rename to apps/landing-page/public/anomaly-logo.png diff --git a/examples/notes/public/favicon.ico b/apps/landing-page/public/favicon.ico similarity index 100% rename from examples/notes/public/favicon.ico rename to apps/landing-page/public/favicon.ico diff --git a/packages/landing-page/public/fonts/Geist-Bold.woff2 b/apps/landing-page/public/fonts/Geist-Bold.woff2 similarity index 100% rename from packages/landing-page/public/fonts/Geist-Bold.woff2 rename to apps/landing-page/public/fonts/Geist-Bold.woff2 diff --git a/packages/landing-page/public/fonts/Geist-Light.woff2 b/apps/landing-page/public/fonts/Geist-Light.woff2 similarity index 100% rename from packages/landing-page/public/fonts/Geist-Light.woff2 rename to apps/landing-page/public/fonts/Geist-Light.woff2 diff --git a/packages/landing-page/public/fonts/Geist-Medium.woff2 b/apps/landing-page/public/fonts/Geist-Medium.woff2 similarity index 100% rename from packages/landing-page/public/fonts/Geist-Medium.woff2 rename to apps/landing-page/public/fonts/Geist-Medium.woff2 diff --git a/packages/landing-page/public/fonts/Geist-Regular.woff2 b/apps/landing-page/public/fonts/Geist-Regular.woff2 similarity index 100% rename from packages/landing-page/public/fonts/Geist-Regular.woff2 rename to apps/landing-page/public/fonts/Geist-Regular.woff2 diff --git a/packages/landing-page/public/fonts/Geist-SemiBold.woff2 b/apps/landing-page/public/fonts/Geist-SemiBold.woff2 similarity index 100% rename from packages/landing-page/public/fonts/Geist-SemiBold.woff2 rename to apps/landing-page/public/fonts/Geist-SemiBold.woff2 diff --git a/packages/landing-page/public/fonts/GeistMono-Bold.woff2 b/apps/landing-page/public/fonts/GeistMono-Bold.woff2 similarity index 100% rename from packages/landing-page/public/fonts/GeistMono-Bold.woff2 rename to apps/landing-page/public/fonts/GeistMono-Bold.woff2 diff --git a/packages/landing-page/public/fonts/GeistMono-Medium.woff2 b/apps/landing-page/public/fonts/GeistMono-Medium.woff2 similarity index 100% rename from packages/landing-page/public/fonts/GeistMono-Medium.woff2 rename to apps/landing-page/public/fonts/GeistMono-Medium.woff2 diff --git a/packages/landing-page/public/fonts/GeistMono-Regular.woff2 b/apps/landing-page/public/fonts/GeistMono-Regular.woff2 similarity index 100% rename from packages/landing-page/public/fonts/GeistMono-Regular.woff2 rename to apps/landing-page/public/fonts/GeistMono-Regular.woff2 diff --git a/packages/landing-page/public/fonts/GeistMono-SemiBold.woff2 b/apps/landing-page/public/fonts/GeistMono-SemiBold.woff2 similarity index 100% rename from packages/landing-page/public/fonts/GeistMono-SemiBold.woff2 rename to apps/landing-page/public/fonts/GeistMono-SemiBold.woff2 diff --git a/packages/landing-page/public/fonts/Inter-Regular.woff2 b/apps/landing-page/public/fonts/Inter-Regular.woff2 similarity index 100% rename from packages/landing-page/public/fonts/Inter-Regular.woff2 rename to apps/landing-page/public/fonts/Inter-Regular.woff2 diff --git a/packages/landing-page/public/lego.svg b/apps/landing-page/public/lego.svg similarity index 100% rename from packages/landing-page/public/lego.svg rename to apps/landing-page/public/lego.svg diff --git a/packages/landing-page/public/logo.old.svg b/apps/landing-page/public/logo.old.svg similarity index 100% rename from packages/landing-page/public/logo.old.svg rename to apps/landing-page/public/logo.old.svg diff --git a/packages/landing-page/public/logo.svg b/apps/landing-page/public/logo.svg similarity index 100% rename from packages/landing-page/public/logo.svg rename to apps/landing-page/public/logo.svg diff --git a/packages/landing-page/public/og-share.png b/apps/landing-page/public/og-share.png similarity index 100% rename from packages/landing-page/public/og-share.png rename to apps/landing-page/public/og-share.png diff --git a/packages/landing-page/public/robots.txt b/apps/landing-page/public/robots.txt similarity index 100% rename from packages/landing-page/public/robots.txt rename to apps/landing-page/public/robots.txt diff --git a/packages/landing-page/public/ryan-carniato-sunglasses.png b/apps/landing-page/public/ryan-carniato-sunglasses.png similarity index 100% rename from packages/landing-page/public/ryan-carniato-sunglasses.png rename to apps/landing-page/public/ryan-carniato-sunglasses.png diff --git a/packages/landing-page/public/ryan-carniato-sunglasses.webp b/apps/landing-page/public/ryan-carniato-sunglasses.webp similarity index 100% rename from packages/landing-page/public/ryan-carniato-sunglasses.webp rename to apps/landing-page/public/ryan-carniato-sunglasses.webp diff --git a/packages/landing-page/public/ryan-carniato.png b/apps/landing-page/public/ryan-carniato.png similarity index 100% rename from packages/landing-page/public/ryan-carniato.png rename to apps/landing-page/public/ryan-carniato.png diff --git a/packages/landing-page/public/ryan-carniato.webp b/apps/landing-page/public/ryan-carniato.webp similarity index 100% rename from packages/landing-page/public/ryan-carniato.webp rename to apps/landing-page/public/ryan-carniato.webp diff --git a/packages/landing-page/public/start_og.png b/apps/landing-page/public/start_og.png similarity index 100% rename from packages/landing-page/public/start_og.png rename to apps/landing-page/public/start_og.png diff --git a/packages/landing-page/src/app.tsx b/apps/landing-page/src/app.tsx similarity index 100% rename from packages/landing-page/src/app.tsx rename to apps/landing-page/src/app.tsx diff --git a/packages/landing-page/src/components/bento.tsx b/apps/landing-page/src/components/bento.tsx similarity index 100% rename from packages/landing-page/src/components/bento.tsx rename to apps/landing-page/src/components/bento.tsx diff --git a/packages/landing-page/src/components/clipboard-button.tsx b/apps/landing-page/src/components/clipboard-button.tsx similarity index 100% rename from packages/landing-page/src/components/clipboard-button.tsx rename to apps/landing-page/src/components/clipboard-button.tsx diff --git a/packages/landing-page/src/components/code-snippet.tsx b/apps/landing-page/src/components/code-snippet.tsx similarity index 100% rename from packages/landing-page/src/components/code-snippet.tsx rename to apps/landing-page/src/components/code-snippet.tsx diff --git a/packages/landing-page/src/components/error.tsx b/apps/landing-page/src/components/error.tsx similarity index 100% rename from packages/landing-page/src/components/error.tsx rename to apps/landing-page/src/components/error.tsx diff --git a/packages/landing-page/src/components/icons/clipboard-icon.tsx b/apps/landing-page/src/components/icons/clipboard-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/clipboard-icon.tsx rename to apps/landing-page/src/components/icons/clipboard-icon.tsx diff --git a/packages/landing-page/src/components/icons/discord-icon.tsx b/apps/landing-page/src/components/icons/discord-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/discord-icon.tsx rename to apps/landing-page/src/components/icons/discord-icon.tsx diff --git a/packages/landing-page/src/components/icons/github-icon.tsx b/apps/landing-page/src/components/icons/github-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/github-icon.tsx rename to apps/landing-page/src/components/icons/github-icon.tsx diff --git a/packages/landing-page/src/components/icons/lego-icon.tsx b/apps/landing-page/src/components/icons/lego-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/lego-icon.tsx rename to apps/landing-page/src/components/icons/lego-icon.tsx diff --git a/packages/landing-page/src/components/icons/lock-icon.tsx b/apps/landing-page/src/components/icons/lock-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/lock-icon.tsx rename to apps/landing-page/src/components/icons/lock-icon.tsx diff --git a/packages/landing-page/src/components/icons/monitor-icon.tsx b/apps/landing-page/src/components/icons/monitor-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/monitor-icon.tsx rename to apps/landing-page/src/components/icons/monitor-icon.tsx diff --git a/packages/landing-page/src/components/icons/moon-icon.tsx b/apps/landing-page/src/components/icons/moon-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/moon-icon.tsx rename to apps/landing-page/src/components/icons/moon-icon.tsx diff --git a/packages/landing-page/src/components/icons/npm-icon.tsx b/apps/landing-page/src/components/icons/npm-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/npm-icon.tsx rename to apps/landing-page/src/components/icons/npm-icon.tsx diff --git a/packages/landing-page/src/components/icons/platform/aws-logo.tsx b/apps/landing-page/src/components/icons/platform/aws-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/platform/aws-logo.tsx rename to apps/landing-page/src/components/icons/platform/aws-logo.tsx diff --git a/packages/landing-page/src/components/icons/platform/azure-logo.tsx b/apps/landing-page/src/components/icons/platform/azure-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/platform/azure-logo.tsx rename to apps/landing-page/src/components/icons/platform/azure-logo.tsx diff --git a/packages/landing-page/src/components/icons/platform/bun-logo.tsx b/apps/landing-page/src/components/icons/platform/bun-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/platform/bun-logo.tsx rename to apps/landing-page/src/components/icons/platform/bun-logo.tsx diff --git a/packages/landing-page/src/components/icons/platform/cloudflare-logo.tsx b/apps/landing-page/src/components/icons/platform/cloudflare-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/platform/cloudflare-logo.tsx rename to apps/landing-page/src/components/icons/platform/cloudflare-logo.tsx diff --git a/packages/landing-page/src/components/icons/platform/deno-logo.tsx b/apps/landing-page/src/components/icons/platform/deno-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/platform/deno-logo.tsx rename to apps/landing-page/src/components/icons/platform/deno-logo.tsx diff --git a/packages/landing-page/src/components/icons/platform/netlify-logo.tsx b/apps/landing-page/src/components/icons/platform/netlify-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/platform/netlify-logo.tsx rename to apps/landing-page/src/components/icons/platform/netlify-logo.tsx diff --git a/packages/landing-page/src/components/icons/platform/vercel-logo.tsx b/apps/landing-page/src/components/icons/platform/vercel-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/platform/vercel-logo.tsx rename to apps/landing-page/src/components/icons/platform/vercel-logo.tsx diff --git a/packages/landing-page/src/components/icons/pnpm-icon.tsx b/apps/landing-page/src/components/icons/pnpm-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/pnpm-icon.tsx rename to apps/landing-page/src/components/icons/pnpm-icon.tsx diff --git a/packages/landing-page/src/components/icons/shield-icon.tsx b/apps/landing-page/src/components/icons/shield-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/shield-icon.tsx rename to apps/landing-page/src/components/icons/shield-icon.tsx diff --git a/packages/landing-page/src/components/icons/solid-logo.tsx b/apps/landing-page/src/components/icons/solid-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/solid-logo.tsx rename to apps/landing-page/src/components/icons/solid-logo.tsx diff --git a/packages/landing-page/src/components/icons/solidstart-logo.tsx b/apps/landing-page/src/components/icons/solidstart-logo.tsx similarity index 100% rename from packages/landing-page/src/components/icons/solidstart-logo.tsx rename to apps/landing-page/src/components/icons/solidstart-logo.tsx diff --git a/packages/landing-page/src/components/icons/sun-icon.tsx b/apps/landing-page/src/components/icons/sun-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/sun-icon.tsx rename to apps/landing-page/src/components/icons/sun-icon.tsx diff --git a/packages/landing-page/src/components/icons/swatch-icon.tsx b/apps/landing-page/src/components/icons/swatch-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/swatch-icon.tsx rename to apps/landing-page/src/components/icons/swatch-icon.tsx diff --git a/packages/landing-page/src/components/icons/yarn-icon.tsx b/apps/landing-page/src/components/icons/yarn-icon.tsx similarity index 100% rename from packages/landing-page/src/components/icons/yarn-icon.tsx rename to apps/landing-page/src/components/icons/yarn-icon.tsx diff --git a/packages/landing-page/src/components/nested-grid.tsx b/apps/landing-page/src/components/nested-grid.tsx similarity index 100% rename from packages/landing-page/src/components/nested-grid.tsx rename to apps/landing-page/src/components/nested-grid.tsx diff --git a/packages/landing-page/src/components/section.tsx b/apps/landing-page/src/components/section.tsx similarity index 100% rename from packages/landing-page/src/components/section.tsx rename to apps/landing-page/src/components/section.tsx diff --git a/packages/landing-page/src/components/sections/deploy-anywhere.tsx b/apps/landing-page/src/components/sections/deploy-anywhere.tsx similarity index 100% rename from packages/landing-page/src/components/sections/deploy-anywhere.tsx rename to apps/landing-page/src/components/sections/deploy-anywhere.tsx diff --git a/packages/landing-page/src/components/sections/footer.tsx b/apps/landing-page/src/components/sections/footer.tsx similarity index 100% rename from packages/landing-page/src/components/sections/footer.tsx rename to apps/landing-page/src/components/sections/footer.tsx diff --git a/packages/landing-page/src/components/sections/hero.tsx b/apps/landing-page/src/components/sections/hero.tsx similarity index 100% rename from packages/landing-page/src/components/sections/hero.tsx rename to apps/landing-page/src/components/sections/hero.tsx diff --git a/packages/landing-page/src/components/sections/meta-framework.tsx b/apps/landing-page/src/components/sections/meta-framework.tsx similarity index 100% rename from packages/landing-page/src/components/sections/meta-framework.tsx rename to apps/landing-page/src/components/sections/meta-framework.tsx diff --git a/packages/landing-page/src/components/sections/rock-solid-dx.tsx b/apps/landing-page/src/components/sections/rock-solid-dx.tsx similarity index 100% rename from packages/landing-page/src/components/sections/rock-solid-dx.tsx rename to apps/landing-page/src/components/sections/rock-solid-dx.tsx diff --git a/packages/landing-page/src/components/sections/sponsored-by.tsx b/apps/landing-page/src/components/sections/sponsored-by.tsx similarity index 100% rename from packages/landing-page/src/components/sections/sponsored-by.tsx rename to apps/landing-page/src/components/sections/sponsored-by.tsx diff --git a/packages/landing-page/src/components/sections/top-nav.tsx b/apps/landing-page/src/components/sections/top-nav.tsx similarity index 100% rename from packages/landing-page/src/components/sections/top-nav.tsx rename to apps/landing-page/src/components/sections/top-nav.tsx diff --git a/packages/landing-page/src/components/theme-toggle.tsx b/apps/landing-page/src/components/theme-toggle.tsx similarity index 100% rename from packages/landing-page/src/components/theme-toggle.tsx rename to apps/landing-page/src/components/theme-toggle.tsx diff --git a/packages/landing-page/src/components/ui/accordion.tsx b/apps/landing-page/src/components/ui/accordion.tsx similarity index 100% rename from packages/landing-page/src/components/ui/accordion.tsx rename to apps/landing-page/src/components/ui/accordion.tsx diff --git a/packages/landing-page/src/components/ui/button.tsx b/apps/landing-page/src/components/ui/button.tsx similarity index 100% rename from packages/landing-page/src/components/ui/button.tsx rename to apps/landing-page/src/components/ui/button.tsx diff --git a/packages/landing-page/src/components/ui/dialog.tsx b/apps/landing-page/src/components/ui/dialog.tsx similarity index 100% rename from packages/landing-page/src/components/ui/dialog.tsx rename to apps/landing-page/src/components/ui/dialog.tsx diff --git a/packages/landing-page/src/components/ui/drawer.tsx b/apps/landing-page/src/components/ui/drawer.tsx similarity index 100% rename from packages/landing-page/src/components/ui/drawer.tsx rename to apps/landing-page/src/components/ui/drawer.tsx diff --git a/packages/landing-page/src/components/ui/dropdown-menu.tsx b/apps/landing-page/src/components/ui/dropdown-menu.tsx similarity index 100% rename from packages/landing-page/src/components/ui/dropdown-menu.tsx rename to apps/landing-page/src/components/ui/dropdown-menu.tsx diff --git a/packages/landing-page/src/components/ui/input.tsx b/apps/landing-page/src/components/ui/input.tsx similarity index 100% rename from packages/landing-page/src/components/ui/input.tsx rename to apps/landing-page/src/components/ui/input.tsx diff --git a/packages/landing-page/src/components/ui/label.tsx b/apps/landing-page/src/components/ui/label.tsx similarity index 100% rename from packages/landing-page/src/components/ui/label.tsx rename to apps/landing-page/src/components/ui/label.tsx diff --git a/packages/landing-page/src/components/ui/mystic/dot-pattern.tsx b/apps/landing-page/src/components/ui/mystic/dot-pattern.tsx similarity index 100% rename from packages/landing-page/src/components/ui/mystic/dot-pattern.tsx rename to apps/landing-page/src/components/ui/mystic/dot-pattern.tsx diff --git a/packages/landing-page/src/components/ui/mystic/shine.tsx b/apps/landing-page/src/components/ui/mystic/shine.tsx similarity index 100% rename from packages/landing-page/src/components/ui/mystic/shine.tsx rename to apps/landing-page/src/components/ui/mystic/shine.tsx diff --git a/packages/landing-page/src/components/ui/mystic/sparkle-text.tsx b/apps/landing-page/src/components/ui/mystic/sparkle-text.tsx similarity index 100% rename from packages/landing-page/src/components/ui/mystic/sparkle-text.tsx rename to apps/landing-page/src/components/ui/mystic/sparkle-text.tsx diff --git a/packages/landing-page/src/components/ui/section-title.tsx b/apps/landing-page/src/components/ui/section-title.tsx similarity index 100% rename from packages/landing-page/src/components/ui/section-title.tsx rename to apps/landing-page/src/components/ui/section-title.tsx diff --git a/packages/landing-page/src/components/ui/skeleton.tsx b/apps/landing-page/src/components/ui/skeleton.tsx similarity index 100% rename from packages/landing-page/src/components/ui/skeleton.tsx rename to apps/landing-page/src/components/ui/skeleton.tsx diff --git a/packages/landing-page/src/components/ui/tabs.tsx b/apps/landing-page/src/components/ui/tabs.tsx similarity index 100% rename from packages/landing-page/src/components/ui/tabs.tsx rename to apps/landing-page/src/components/ui/tabs.tsx diff --git a/examples/with-auth/src/entry-client.tsx b/apps/landing-page/src/entry-client.tsx similarity index 100% rename from examples/with-auth/src/entry-client.tsx rename to apps/landing-page/src/entry-client.tsx diff --git a/packages/landing-page/src/entry-server.tsx b/apps/landing-page/src/entry-server.tsx similarity index 100% rename from packages/landing-page/src/entry-server.tsx rename to apps/landing-page/src/entry-server.tsx diff --git a/packages/landing-page/src/fonts.css b/apps/landing-page/src/fonts.css similarity index 100% rename from packages/landing-page/src/fonts.css rename to apps/landing-page/src/fonts.css diff --git a/packages/landing-page/src/global.d.ts b/apps/landing-page/src/global.d.ts similarity index 100% rename from packages/landing-page/src/global.d.ts rename to apps/landing-page/src/global.d.ts diff --git a/packages/landing-page/src/lib/utils.ts b/apps/landing-page/src/lib/utils.ts similarity index 100% rename from packages/landing-page/src/lib/utils.ts rename to apps/landing-page/src/lib/utils.ts diff --git a/packages/landing-page/src/root.css b/apps/landing-page/src/root.css similarity index 100% rename from packages/landing-page/src/root.css rename to apps/landing-page/src/root.css diff --git a/packages/landing-page/tailwind.config.ts b/apps/landing-page/tailwind.config.ts similarity index 100% rename from packages/landing-page/tailwind.config.ts rename to apps/landing-page/tailwind.config.ts diff --git a/packages/landing-page/tsconfig.json b/apps/landing-page/tsconfig.json similarity index 100% rename from packages/landing-page/tsconfig.json rename to apps/landing-page/tsconfig.json diff --git a/packages/landing-page/ui.config.json b/apps/landing-page/ui.config.json similarity index 100% rename from packages/landing-page/ui.config.json rename to apps/landing-page/ui.config.json diff --git a/packages/landing-page/ui.preset.ts b/apps/landing-page/ui.preset.ts similarity index 100% rename from packages/landing-page/ui.preset.ts rename to apps/landing-page/ui.preset.ts diff --git a/examples/with-mdx/README.md b/apps/tests/README.md similarity index 100% rename from examples/with-mdx/README.md rename to apps/tests/README.md diff --git a/examples/with-authjs/app.config.ts b/apps/tests/app.config.ts similarity index 87% rename from examples/with-authjs/app.config.ts rename to apps/tests/app.config.ts index 6ebc24f27..385745957 100644 --- a/examples/with-authjs/app.config.ts +++ b/apps/tests/app.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from "@solidjs/start/config"; export default defineConfig({ - ssr: true, + ssr: true }); diff --git a/packages/tests/cypress.config.ts b/apps/tests/cypress.config.ts similarity index 100% rename from packages/tests/cypress.config.ts rename to apps/tests/cypress.config.ts diff --git a/packages/tests/cypress/e2e/hydration.cy.ts b/apps/tests/cypress/e2e/hydration.cy.ts similarity index 100% rename from packages/tests/cypress/e2e/hydration.cy.ts rename to apps/tests/cypress/e2e/hydration.cy.ts diff --git a/packages/tests/cypress/e2e/route-groups.cy.ts b/apps/tests/cypress/e2e/route-groups.cy.ts similarity index 100% rename from packages/tests/cypress/e2e/route-groups.cy.ts rename to apps/tests/cypress/e2e/route-groups.cy.ts diff --git a/packages/tests/cypress/e2e/server-function.cy.ts b/apps/tests/cypress/e2e/server-function.cy.ts similarity index 100% rename from packages/tests/cypress/e2e/server-function.cy.ts rename to apps/tests/cypress/e2e/server-function.cy.ts diff --git a/packages/tests/cypress/support/e2e.ts b/apps/tests/cypress/support/e2e.ts similarity index 100% rename from packages/tests/cypress/support/e2e.ts rename to apps/tests/cypress/support/e2e.ts diff --git a/packages/tests/package.json b/apps/tests/package.json similarity index 90% rename from packages/tests/package.json rename to apps/tests/package.json index 5aceb4990..fef691b30 100644 --- a/packages/tests/package.json +++ b/apps/tests/package.json @@ -24,13 +24,10 @@ "jsdom": "^25.0.1", "lodash": "^4.17.21", "solid-js": "^1.9.5", - "vinxi": "^0.5.3", - "vite-plugin-solid": "^2.11.6", + "vinxi": "^0.5.8", + "vite-plugin-solid": "^2.11.8", "vitest": "3.0.5" }, - "engines": { - "node": ">=22" - }, "devDependencies": { "@cypress/code-coverage": "^3.14.0", "@types/lodash": "^4.17.14", diff --git a/examples/todomvc/public/favicon.ico b/apps/tests/public/favicon.ico similarity index 100% rename from examples/todomvc/public/favicon.ico rename to apps/tests/public/favicon.ico diff --git a/examples/with-strict-csp/src/app.css b/apps/tests/src/app.css similarity index 100% rename from examples/with-strict-csp/src/app.css rename to apps/tests/src/app.css diff --git a/packages/tests/src/app.test.tsx b/apps/tests/src/app.test.tsx similarity index 100% rename from packages/tests/src/app.test.tsx rename to apps/tests/src/app.test.tsx diff --git a/packages/tests/src/app.tsx b/apps/tests/src/app.tsx similarity index 100% rename from packages/tests/src/app.tsx rename to apps/tests/src/app.tsx diff --git a/examples/with-drizzle/src/entry-client.tsx b/apps/tests/src/entry-client.tsx similarity index 100% rename from examples/with-drizzle/src/entry-client.tsx rename to apps/tests/src/entry-client.tsx diff --git a/examples/with-mdx/src/entry-server.tsx b/apps/tests/src/entry-server.tsx similarity index 100% rename from examples/with-mdx/src/entry-server.tsx rename to apps/tests/src/entry-server.tsx diff --git a/packages/tests/src/functions/text-render-test-component.tsx b/apps/tests/src/functions/text-render-test-component.tsx similarity index 100% rename from packages/tests/src/functions/text-render-test-component.tsx rename to apps/tests/src/functions/text-render-test-component.tsx diff --git a/apps/tests/src/functions/use-generator-server-function.ts b/apps/tests/src/functions/use-generator-server-function.ts new file mode 100644 index 000000000..f2fb21b46 --- /dev/null +++ b/apps/tests/src/functions/use-generator-server-function.ts @@ -0,0 +1,5 @@ +export async function* sayHello() { + "use server"; + yield "Hello, World!"; + yield "¡Hola, Mundo!"; +} diff --git a/packages/tests/src/functions/use-is-server-const.ts b/apps/tests/src/functions/use-is-server-const.ts similarity index 82% rename from packages/tests/src/functions/use-is-server-const.ts rename to apps/tests/src/functions/use-is-server-const.ts index 7e3ccdb28..68f5ae155 100644 --- a/packages/tests/src/functions/use-is-server-const.ts +++ b/apps/tests/src/functions/use-is-server-const.ts @@ -3,5 +3,5 @@ import { isServer } from "solid-js/web"; export const serverFnWithIsServer = async () => { - return isServer; -} + return isServer; +}; diff --git a/packages/tests/src/functions/use-is-server-with-anon-default-export.ts b/apps/tests/src/functions/use-is-server-with-anon-default-export.ts similarity index 67% rename from packages/tests/src/functions/use-is-server-with-anon-default-export.ts rename to apps/tests/src/functions/use-is-server-with-anon-default-export.ts index 228ab39b5..62e15bb7f 100644 --- a/packages/tests/src/functions/use-is-server-with-anon-default-export.ts +++ b/apps/tests/src/functions/use-is-server-with-anon-default-export.ts @@ -1,10 +1,10 @@ import { isServer } from "solid-js/web"; export function serverFnWithIsServer() { - "use server"; - return isServer; + "use server"; + return isServer; } export default function () { - return null; + return null; } diff --git a/packages/tests/src/functions/use-is-server.ts b/apps/tests/src/functions/use-is-server.ts similarity index 100% rename from packages/tests/src/functions/use-is-server.ts rename to apps/tests/src/functions/use-is-server.ts diff --git a/apps/tests/src/functions/use-node-builtin.ts b/apps/tests/src/functions/use-node-builtin.ts new file mode 100644 index 000000000..85ccc5ec4 --- /dev/null +++ b/apps/tests/src/functions/use-node-builtin.ts @@ -0,0 +1,7 @@ +"use server"; + +import { join } from "node:path"; + +export function serverFnWithNodeBuiltin() { + return join("can", "externalize"); +} diff --git a/packages/tests/src/functions/use-npm-module.ts b/apps/tests/src/functions/use-npm-module.ts similarity index 79% rename from packages/tests/src/functions/use-npm-module.ts rename to apps/tests/src/functions/use-npm-module.ts index 47273b76b..470446b2a 100644 --- a/packages/tests/src/functions/use-npm-module.ts +++ b/apps/tests/src/functions/use-npm-module.ts @@ -1,8 +1,7 @@ "use server"; -import _ from 'lodash'; +import _ from "lodash"; export function serverFnWithNpmModule() { - return _.map([1, 2, 3], x => x * 2); } diff --git a/packages/tests/src/functions/use-server-function-meta.ts b/apps/tests/src/functions/use-server-function-meta.ts similarity index 100% rename from packages/tests/src/functions/use-server-function-meta.ts rename to apps/tests/src/functions/use-server-function-meta.ts diff --git a/examples/with-auth/src/global.d.ts b/apps/tests/src/global.d.ts similarity index 100% rename from examples/with-auth/src/global.d.ts rename to apps/tests/src/global.d.ts diff --git a/packages/tests/src/routes/(basic).tsx b/apps/tests/src/routes/(basic).tsx similarity index 100% rename from packages/tests/src/routes/(basic).tsx rename to apps/tests/src/routes/(basic).tsx diff --git a/packages/tests/src/routes/[...404].tsx b/apps/tests/src/routes/[...404].tsx similarity index 100% rename from packages/tests/src/routes/[...404].tsx rename to apps/tests/src/routes/[...404].tsx diff --git a/packages/tests/src/routes/api/text-plain.tsx b/apps/tests/src/routes/api/text-plain.tsx similarity index 100% rename from packages/tests/src/routes/api/text-plain.tsx rename to apps/tests/src/routes/api/text-plain.tsx diff --git a/packages/tests/src/routes/client-only/_component.tsx b/apps/tests/src/routes/client-only/_component.tsx similarity index 100% rename from packages/tests/src/routes/client-only/_component.tsx rename to apps/tests/src/routes/client-only/_component.tsx diff --git a/packages/tests/src/routes/client-only/index.tsx b/apps/tests/src/routes/client-only/index.tsx similarity index 100% rename from packages/tests/src/routes/client-only/index.tsx rename to apps/tests/src/routes/client-only/index.tsx diff --git a/packages/tests/src/routes/generator-server-function.tsx b/apps/tests/src/routes/generator-server-function.tsx similarity index 100% rename from packages/tests/src/routes/generator-server-function.tsx rename to apps/tests/src/routes/generator-server-function.tsx diff --git a/packages/tests/src/routes/is-server-const.tsx b/apps/tests/src/routes/is-server-const.tsx similarity index 100% rename from packages/tests/src/routes/is-server-const.tsx rename to apps/tests/src/routes/is-server-const.tsx diff --git a/packages/tests/src/routes/is-server-nested.tsx b/apps/tests/src/routes/is-server-nested.tsx similarity index 100% rename from packages/tests/src/routes/is-server-nested.tsx rename to apps/tests/src/routes/is-server-nested.tsx diff --git a/packages/tests/src/routes/is-server-toplevel.tsx b/apps/tests/src/routes/is-server-toplevel.tsx similarity index 100% rename from packages/tests/src/routes/is-server-toplevel.tsx rename to apps/tests/src/routes/is-server-toplevel.tsx diff --git a/packages/tests/src/routes/is-server-with-anon-default-export.tsx b/apps/tests/src/routes/is-server-with-anon-default-export.tsx similarity index 100% rename from packages/tests/src/routes/is-server-with-anon-default-export.tsx rename to apps/tests/src/routes/is-server-with-anon-default-export.tsx diff --git a/packages/tests/src/routes/nested/(ignored)route0.tsx b/apps/tests/src/routes/nested/(ignored)route0.tsx similarity index 94% rename from packages/tests/src/routes/nested/(ignored)route0.tsx rename to apps/tests/src/routes/nested/(ignored)route0.tsx index 5e658dc3a..be352577d 100644 --- a/packages/tests/src/routes/nested/(ignored)route0.tsx +++ b/apps/tests/src/routes/nested/(ignored)route0.tsx @@ -1,4 +1,4 @@ - -export default function nested() { - return

nested route 0

; -} + +export default function nested() { + return

nested route 0

; +} diff --git a/packages/tests/src/routes/nested/(level1)/(ignored)route1.tsx b/apps/tests/src/routes/nested/(level1)/(ignored)route1.tsx similarity index 94% rename from packages/tests/src/routes/nested/(level1)/(ignored)route1.tsx rename to apps/tests/src/routes/nested/(level1)/(ignored)route1.tsx index 205eb21ea..471db7aaa 100644 --- a/packages/tests/src/routes/nested/(level1)/(ignored)route1.tsx +++ b/apps/tests/src/routes/nested/(level1)/(ignored)route1.tsx @@ -1,4 +1,4 @@ - -export default function nested() { - return

nested route 1

; -} + +export default function nested() { + return

nested route 1

; +} diff --git a/packages/tests/src/routes/nested/(level1)/(level2)/(ignored)route2.tsx b/apps/tests/src/routes/nested/(level1)/(level2)/(ignored)route2.tsx similarity index 94% rename from packages/tests/src/routes/nested/(level1)/(level2)/(ignored)route2.tsx rename to apps/tests/src/routes/nested/(level1)/(level2)/(ignored)route2.tsx index 5973a081f..fcc953235 100644 --- a/packages/tests/src/routes/nested/(level1)/(level2)/(ignored)route2.tsx +++ b/apps/tests/src/routes/nested/(level1)/(level2)/(ignored)route2.tsx @@ -1,4 +1,4 @@ - -export default function nested() { - return

nested route 2

; -} + +export default function nested() { + return

nested route 2

; +} diff --git a/packages/tests/src/routes/nested/(level1)/(level2)/route3.tsx b/apps/tests/src/routes/nested/(level1)/(level2)/route3.tsx similarity index 94% rename from packages/tests/src/routes/nested/(level1)/(level2)/route3.tsx rename to apps/tests/src/routes/nested/(level1)/(level2)/route3.tsx index 51498e164..3d0eea984 100644 --- a/packages/tests/src/routes/nested/(level1)/(level2)/route3.tsx +++ b/apps/tests/src/routes/nested/(level1)/(level2)/route3.tsx @@ -1,4 +1,4 @@ - -export default function nested() { - return

nested route 3

; -} + +export default function nested() { + return

nested route 3

; +} diff --git a/packages/tests/src/routes/node-builtin-nested.tsx b/apps/tests/src/routes/node-builtin-nested.tsx similarity index 100% rename from packages/tests/src/routes/node-builtin-nested.tsx rename to apps/tests/src/routes/node-builtin-nested.tsx diff --git a/packages/tests/src/routes/node-builtin-toplevel.tsx b/apps/tests/src/routes/node-builtin-toplevel.tsx similarity index 100% rename from packages/tests/src/routes/node-builtin-toplevel.tsx rename to apps/tests/src/routes/node-builtin-toplevel.tsx diff --git a/packages/tests/src/routes/npm-module-nested.tsx b/apps/tests/src/routes/npm-module-nested.tsx similarity index 100% rename from packages/tests/src/routes/npm-module-nested.tsx rename to apps/tests/src/routes/npm-module-nested.tsx diff --git a/packages/tests/src/routes/npm-module-toplevel.tsx b/apps/tests/src/routes/npm-module-toplevel.tsx similarity index 100% rename from packages/tests/src/routes/npm-module-toplevel.tsx rename to apps/tests/src/routes/npm-module-toplevel.tsx diff --git a/packages/tests/src/routes/referencing-multiple-export-named-functions-in-the-same-file.tsx b/apps/tests/src/routes/referencing-multiple-export-named-functions-in-the-same-file.tsx similarity index 100% rename from packages/tests/src/routes/referencing-multiple-export-named-functions-in-the-same-file.tsx rename to apps/tests/src/routes/referencing-multiple-export-named-functions-in-the-same-file.tsx diff --git a/packages/tests/src/routes/server-function-meta-nested.tsx b/apps/tests/src/routes/server-function-meta-nested.tsx similarity index 100% rename from packages/tests/src/routes/server-function-meta-nested.tsx rename to apps/tests/src/routes/server-function-meta-nested.tsx diff --git a/packages/tests/src/routes/server-function-meta.tsx b/apps/tests/src/routes/server-function-meta.tsx similarity index 100% rename from packages/tests/src/routes/server-function-meta.tsx rename to apps/tests/src/routes/server-function-meta.tsx diff --git a/packages/tests/src/routes/text-plain-response.tsx b/apps/tests/src/routes/text-plain-response.tsx similarity index 100% rename from packages/tests/src/routes/text-plain-response.tsx rename to apps/tests/src/routes/text-plain-response.tsx diff --git a/packages/tests/src/routes/treeshaking/(no-side-effects).tsx b/apps/tests/src/routes/treeshaking/(no-side-effects).tsx similarity index 100% rename from packages/tests/src/routes/treeshaking/(no-side-effects).tsx rename to apps/tests/src/routes/treeshaking/(no-side-effects).tsx diff --git a/packages/tests/src/routes/treeshaking/side-effects.tsx b/apps/tests/src/routes/treeshaking/side-effects.tsx similarity index 100% rename from packages/tests/src/routes/treeshaking/side-effects.tsx rename to apps/tests/src/routes/treeshaking/side-effects.tsx diff --git a/packages/tests/src/routes/treeshaking/treeshake.test.ts b/apps/tests/src/routes/treeshaking/treeshake.test.ts similarity index 100% rename from packages/tests/src/routes/treeshaking/treeshake.test.ts rename to apps/tests/src/routes/treeshaking/treeshake.test.ts diff --git a/examples/with-vitest/tsconfig.json b/apps/tests/tsconfig.json similarity index 100% rename from examples/with-vitest/tsconfig.json rename to apps/tests/tsconfig.json diff --git a/packages/tests/vitest.config.ts b/apps/tests/vitest.config.ts similarity index 100% rename from packages/tests/vitest.config.ts rename to apps/tests/vitest.config.ts diff --git a/archived_examples/movies/.gitignore b/archived_examples/movies/.gitignore deleted file mode 100644 index 65313de56..000000000 --- a/archived_examples/movies/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -node_modules -# Keep environment variables out of version control -.env* -.db diff --git a/archived_examples/movies/README.md b/archived_examples/movies/README.md deleted file mode 100644 index 909730567..000000000 --- a/archived_examples/movies/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# solid-movies - -This was adapted from the Nuxt version: https://github.com/tastejs/nuxt-movies - -A SolidStart Movies application using [The Movie Database (TMDb)](https://developers.themoviedb.org/3) API. Built using [Solid](https://github.com/solidjs/solid) and [SolidStart](https://github.com/solidjs/solid-start). Our version is built by the Solid team. - -## Quick setup - -1. Take a copy of `.env.sample` and re-name to `.env` -2. Get your [TMDb](https://developers.themoviedb.org/3) API key -3. Get your [YouTube](https://developers.google.com/youtube/v3/getting-started) API key (optional, used for video data) -4. Enter the details into the `.env` file - -## Running - -``` bash -# install dependencies -$ npm install # Or yarn install - -# serve with hot reload at localhost:3000 -$ npm run dev -``` - diff --git a/archived_examples/movies/package.json b/archived_examples/movies/package.json deleted file mode 100644 index 1bb4a5f16..000000000 --- a/archived_examples/movies/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "example-movies", - "scripts": { - "dev": "solid-start dev", - "build": "solid-start build", - "start": "solid-start start" - }, - "type": "module", - "devDependencies": { - "@iconify/json": "^2.2.102", - "sass": "^1.65.1", - "solid-start-node": "^0.3.10", - "typescript": "^4.9.5", - "unplugin-icons": "^0.14.15", - "vite": "^4.4.9" - }, - "dependencies": { - "@solid-primitives/scheduled": "1.1.0", - "@solidjs/meta": "^0.29.2", - "@solidjs/router": "^0.8.3", - "nprogress": "^0.2.0", - "solid-heroicons": "^3.2.4", - "solid-js": "^1.8.6", - "solid-start": "^0.3.10", - "solid-start-netlify": "^0.3.10" - }, - "engines": { - "node": ">=22" - } -} diff --git a/archived_examples/movies/public/README.md b/archived_examples/movies/public/README.md deleted file mode 100644 index 5b8ddd4d6..000000000 --- a/archived_examples/movies/public/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# STATIC - -This directory contains your static files. -Each file inside this directory is mapped to /. - -Example: /static/robots.txt is mapped as /robots.txt. - -More information about the usage of this directory in the documentation: -https://nuxtjs.org/guide/assets#static - -**This directory is not required, you can delete it if you don't want to use it.** - diff --git a/archived_examples/movies/public/favicon.ico b/archived_examples/movies/public/favicon.ico deleted file mode 100644 index 12bbafe8e..000000000 Binary files a/archived_examples/movies/public/favicon.ico and /dev/null differ diff --git a/archived_examples/movies/public/icon-medium.png b/archived_examples/movies/public/icon-medium.png deleted file mode 100644 index 61a150d76..000000000 Binary files a/archived_examples/movies/public/icon-medium.png and /dev/null differ diff --git a/archived_examples/movies/public/icon.png b/archived_examples/movies/public/icon.png deleted file mode 100644 index ee7e106c6..000000000 Binary files a/archived_examples/movies/public/icon.png and /dev/null differ diff --git a/archived_examples/movies/public/solidjs.svg b/archived_examples/movies/public/solidjs.svg deleted file mode 100644 index 025aa303c..000000000 --- a/archived_examples/movies/public/solidjs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/README.md b/archived_examples/movies/src/assets/README.md deleted file mode 100644 index 76ffa79c5..000000000 --- a/archived_examples/movies/src/assets/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ASSETS - -This directory contains your un-compiled assets such as LESS, SASS, or JavaScript. \ No newline at end of file diff --git a/archived_examples/movies/src/assets/css/base/_base.scss b/archived_examples/movies/src/assets/css/base/_base.scss deleted file mode 100644 index a144afc4b..000000000 --- a/archived_examples/movies/src/assets/css/base/_base.scss +++ /dev/null @@ -1,106 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -*, -*:before, -*:after { - box-sizing: border-box; -} - -html { - font-family: $base-font-family; - font-size: $base-font-size; - font-style: $base-font-style; - font-weight: $base-font-weight; - line-height: $base-line-height; - color: $base-font-color; - background: $base-bg; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/** -* Remove text-shadow in selection highlight: -* https://twitter.com/miketaylr/status/12228805301 -* -* These selection rule sets have to be separate. -* Customize the background color to match your design. -*/ - -::-moz-selection { - text-shadow: none; - background: #b3d4fc; -} - -::selection { - text-shadow: none; - background: #b3d4fc; -} - -/** -* A better looking default horizontal rule -*/ - -hr { - display: block; - height: 1px; - padding: 0; - margin: 1em 0; - border: 0; - border-top: 1px solid #ccc; -} - -/** -* Remove the gap between audio, canvas, iframes, -* images, videos and the bottom of their containers: -* https://github.com/h5bp/base5-boilerplate/issues/440 -*/ - -audio, -canvas, -iframe, -img, -svg, -video { - vertical-align: middle; -} - -/** -* Remove default fieldset styles. -*/ - -fieldset { - padding: 0; - margin: 0; - border: 0; -} - -/** -* Allow only vertical resizing of textareas. -*/ - -textarea { - resize: vertical; -} - -/** -* Responsive images -*/ - -img { - display: inline-block; - max-width: 100%; - height: auto; - vertical-align: middle; - -ms-interpolation-mode: bicubic; -} - -table { - width: 100%; - border-collapse: collapse; - - th, - td { - padding: 0.5rem 0; - text-align: left; - } -} diff --git a/archived_examples/movies/src/assets/css/base/_forms.scss b/archived_examples/movies/src/assets/css/base/_forms.scss deleted file mode 100644 index 2da3d8769..000000000 --- a/archived_examples/movies/src/assets/css/base/_forms.scss +++ /dev/null @@ -1,75 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -.button, -a.button { - display: inline-block; - padding: 1.5rem 2.5rem; - font-size: 1.5rem; - font-weight: 500; - line-height: 1; - color: #fff; - letter-spacing: 0.05em; - cursor: pointer; - background-color: $secondary-color; - transition: all 0.2s; - - &:hover, - &:focus { - background-color: #2f2f2f; - } - - &:disabled, - &[disabled] { - color: #666; - cursor: default; - background-color: #000; - } - - .icon { - margin-right: 1rem; - } -} - -.button--icon { - display: inline-flex; - align-items: center; -} - -select { - padding: 0.8rem 3.5rem 0.8rem 1.5rem; - font-size: 1.3rem; - color: #fff; - background: $secondary-color url('~assets/images/select-arrow.svg') no-repeat 100% 45%; - background-size: 30px 60px; - border-color: $secondary-color; - appearance: none; - border-radius: 0; - - &:disabled, - &[disabled] { - cursor: default; - opacity: 0.4; - } -} - -// Make sure we are not setting a height / background to multi select -select[multiple="multiple"] { - height: auto; - background-image: none; -} - -// IE hide the select arrow -select::-ms-expand { - display: none; -} - -input { - font-size: 1.3rem; - border-radius: 0; -} - -button { - text-align: center; - border: 0; - border-radius: 0; -} diff --git a/archived_examples/movies/src/assets/css/base/_layout.scss b/archived_examples/movies/src/assets/css/base/_layout.scss deleted file mode 100644 index 46b6dcc38..000000000 --- a/archived_examples/movies/src/assets/css/base/_layout.scss +++ /dev/null @@ -1,19 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -@media (min-width: $breakpoint-large) { - body { - padding-left: $layout-nav-width; - } -} - -.spacing { - margin: 2.5rem 1.5rem; - - @media (min-width: $breakpoint-small) { - margin: 2.5rem 4rem; - } - - @media (min-width: $breakpoint-large) { - margin: 5rem; - } -} diff --git a/archived_examples/movies/src/assets/css/base/_normalize.scss b/archived_examples/movies/src/assets/css/base/_normalize.scss deleted file mode 100644 index 3d6aa2149..000000000 --- a/archived_examples/movies/src/assets/css/base/_normalize.scss +++ /dev/null @@ -1,344 +0,0 @@ -/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */ - -/* Document - ========================================================================== */ - -/** - * 1. Correct the line height in all browsers. - * 2. Prevent adjustments of font size after orientation changes in iOS. - */ - -html { - line-height: 1.15; /* 1 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers. - */ - -body { - margin: 0; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * Remove the gray background on active links in IE 10. - */ - -a { - background-color: transparent; -} - -/** - * 1. Remove the bottom border in Chrome 57- - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: 500; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Remove the border on images inside links in IE 10. - */ - -img { - border-style: none; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers. - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - font-family: inherit; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { - /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { - /* 1 */ - text-transform: none; -} - -/** - * Correct the inability to style clickable types in iOS and Safari. - */ - -button, -[type='button'], -[type='reset'], -[type='submit'] { - -webkit-appearance: button; - cursor: pointer; -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type='button']::-moz-focus-inner, -[type='reset']::-moz-focus-inner, -[type='submit']::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type='button']:-moz-focusring, -[type='reset']:-moz-focusring, -[type='submit']:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Correct the padding in Firefox. - */ - -fieldset { - padding: 0.35em 0.75em 0.625em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ -} - -/** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - vertical-align: baseline; -} - -/** - * Remove the default vertical scrollbar in IE 10+. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10. - * 2. Remove the padding in IE 10. - */ - -[type='checkbox'], -[type='radio'] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type='number']::-webkit-inner-spin-button, -[type='number']::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type='search'] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding in Chrome and Safari on macOS. - */ - -[type='search']::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in Edge, IE 10+, and Firefox. - */ - -details { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Misc - ========================================================================== */ - -/** - * Add the correct display in IE 10+. - */ - -template { - display: none; -} - -/** - * Add the correct display in IE 10. - */ - -[hidden] { - display: none; -} diff --git a/archived_examples/movies/src/assets/css/base/_transitions.scss b/archived_examples/movies/src/assets/css/base/_transitions.scss deleted file mode 100644 index ff02073b6..000000000 --- a/archived_examples/movies/src/assets/css/base/_transitions.scss +++ /dev/null @@ -1,26 +0,0 @@ -// Entire page load -.page-enter-active, -.page-leave-active { - transition: all .25s ease-out; -} - -.page-enter, -.page-leave-active { - opacity: 0; -} - -// Slide down -.slidedown-leave-active, -.slidedown-enter-active { - transition: 0.3s; -} - -.slidedown-enter, -.slidedown-leave-to { - transform: translateY(-100%); -} - -.slidedown-enter-to, -.slidedown-leave { - transform: translateY(0); -} diff --git a/archived_examples/movies/src/assets/css/base/_typography.scss b/archived_examples/movies/src/assets/css/base/_typography.scss deleted file mode 100644 index da40fd082..000000000 --- a/archived_examples/movies/src/assets/css/base/_typography.scss +++ /dev/null @@ -1,16 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -h1, -h2, -h3, -h4, -h5, -h6 { - margin: 0; - font-weight: 400; -} - -a { - color: $base-font-color; - text-decoration: none; -} diff --git a/archived_examples/movies/src/assets/css/components/_alert.scss b/archived_examples/movies/src/assets/css/components/_alert.scss deleted file mode 100644 index c5269369b..000000000 --- a/archived_examples/movies/src/assets/css/components/_alert.scss +++ /dev/null @@ -1,94 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -.alert { - font-size: 1.4rem; - color: #fff; - background-color: $secondary-color; - - p { - margin: 0; - } - - a { - color: #fff; - text-decoration: underline; - } - - button { - font-size: 1.4rem; - } -} - -.alert + .alert { - border-top: 1px solid #000; -} - -.alert__close { - display: flex; - flex: 0 0 auto; - align-items: center; - padding: 0 3rem; - background: none; - border-left: 1px solid #000; -} - -.alert__btn--primary { - background-color: $primary-color; - - &:hover, - &:focus { - background-color: #146fb7; - } -} - -.alert__btn--secondary { - background-color: #000; - - &:hover, - &:focus { - background-color: #2f2f2f; - } -} - -.alert--default { - display: flex; - - p { - flex: 1; - padding: 1.5rem; - - @media (min-width: $breakpoint-small) { - padding: 1.5rem 2rem; - } - } -} - -.alert--alt { - padding: 1.5rem; - - @media (min-width: $breakpoint-small) { - display: flex; - align-items: center; - justify-content: space-between; - padding: 1.5rem 2rem; - } - - p { - @media (min-width: $breakpoint-small) { - margin-right: 1rem; - } - } - - div { - flex-shrink: 0; - } - - .alert__btn { - margin: 1.5rem 1rem 0 0; - - @media (min-width: $breakpoint-small) { - flex-shrink: 0; - margin: 0 0 0 1rem; - } - } -} diff --git a/archived_examples/movies/src/assets/css/components/_card.scss b/archived_examples/movies/src/assets/css/components/_card.scss deleted file mode 100644 index fae68afcb..000000000 --- a/archived_examples/movies/src/assets/css/components/_card.scss +++ /dev/null @@ -1,87 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -.card { - margin-bottom: 1.5rem; - line-height: $base-line-height; - - @media (min-width: $breakpoint-xsmall) { - margin-bottom: 2rem; - } -} - -.card__img { - background-color: $secondary-color; - transition: transform 0.3s ease-in-out; - - span { - // TODO: should add styling for span element - transform: scale(0.97); - } - - span { - display: flex; - align-items: center; - justify-content: center; - font-size: 1.3rem; - - @media (min-width: $breakpoint-large) { - font-size: 1.6rem; - } - } - - &.lazyloaded img { - transform: scale(1); - } -} - - -.card__name { - margin-top: 1rem; - overflow: hidden; - font-size: 1.3rem; - text-overflow: ellipsis; - letter-spacing: $letter-spacing; - white-space: nowrap; - - @media (min-width: $breakpoint-large) { - margin-bottom: 0.5rem; - font-size: 1.5rem; - } -} - -.card__rating { - display: flex; - align-items: center; -} - -.card__vote { - margin-left: 1rem; - font-size: 1.2rem; - color: $text-color-grey; - - @media (min-width: $breakpoint-large) { - font-size: 1.4rem; - } -} - -.card__stars { - width: 7.3rem; - height: 1.2rem; - background-image: url('~assets/images/stars.png'); - background-repeat: no-repeat; - background-size: auto 100%; - - > div { - height: 100%; - background-image: url('~assets/images/stars-filled.png'); - background-repeat: no-repeat; - background-size: auto 100%; - } -} - -@media (max-width: $breakpoint-xsmall - 1) { - .card__name, - .card__rating { - display: none; - } -} diff --git a/archived_examples/movies/src/assets/css/components/_carousel.scss b/archived_examples/movies/src/assets/css/components/_carousel.scss deleted file mode 100644 index beb4e35c8..000000000 --- a/archived_examples/movies/src/assets/css/components/_carousel.scss +++ /dev/null @@ -1,188 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -.carousel { - position: relative; - overflow: hidden; -} - -.carousel__nav { - position: absolute; - top: 0; - bottom: 48px; - z-index: 1; - width: 30px; - padding: 0; - margin: 0; - text-align: center; - background: rgba(0, 0, 0, 0.5); - outline: 0; - transition: opacity 0.25s ease, background-color 0.25s ease; - - @media (max-width: $breakpoint-small - 1) { - display: none; - } - - @media (min-width: $breakpoint-small) { - width: 40px; - } - - @media (min-width: $breakpoint-large) { - bottom: 60px; - width: 50px; - } - - &:hover, - &:focus { - background: rgba(0, 0, 0, 0.75); - } - - &[disabled] { - cursor: default; - opacity: 0; - } -} - -.carousel__nav--left { - left: 0; -} - -.carousel__nav--right { - right: 0; -} - -.carousel__items { - width: 100%; - overflow: hidden; - overflow-x: scroll; - line-height: 0; - white-space: nowrap; - transform: translateZ(0); - -webkit-overflow-scrolling: touch; - -ms-overflow-style: none; - scroll-snap-type: x mandatory; - scroll-padding: 15px; - - @media (min-width: $breakpoint-small) { - scroll-padding: 40px; - } - - @media (min-width: $breakpoint-large) { - scroll-padding: 50px; - } - - &::-webkit-scrollbar { - display: none; - } -} - -.carousel__items .card { - display: inline-block; - width: calc(.33333 * (100% - 22px)); - padding-right: 8px; - margin: 0; - white-space: normal; - vertical-align: top; - scroll-snap-align: start; - - @media (min-width: $breakpoint-xsmall) { - width: calc(.25 * (100% - 72px)); - } - - @media (min-width: $breakpoint-medium) { - width: calc(.2 * (100% - 72px)); - } - - @media (min-width: $breakpoint-large) { - width: calc(.2 * (100% - 92px)); - } - - @media (min-width: $breakpoint-xlarger1) { - width: calc(.16667 * (100% - 92px)); - } - - @media (min-width: $breakpoint-xlarger2) { - width: calc(.14286 * (100% - 92px)); - } - - @media (min-width: $breakpoint-xlarger3) { - width: calc(.125 * (100% - 92px)); - } - - &:first-child { - margin-left: 15px; - - @media (min-width: $breakpoint-small) { - margin-left: 40px; - } - - @media (min-width: $breakpoint-large) { - margin-left: 50px; - } - } - - &:last-child { - margin-right: 7px; - - @media (min-width: $breakpoint-small) { - margin-right: 32px; - } - - @media (min-width: $breakpoint-large) { - margin-right: 42px; - } - } -} - -.carousel__items .credits-item { - display: inline-block; - width: calc(.33333 * (100% - 22px)); - padding-right: 8px; - margin: 0; - white-space: normal; - vertical-align: top; - scroll-snap-align: start; - - @media (min-width: $breakpoint-small) { - width: calc(.25 * (100% - 72px)); - } - - @media (min-width: 930px) { - width: calc(.2 * (100% - 72px)); - } - - @media (min-width: 1130px) { - width: calc(.16667 * (100% - 72px)); - } - - @media (min-width: $breakpoint-large) { - width: calc(.16667 * (100% - 92px)); - } - - @media (min-width: 1450px) { - width: calc(.14286 * (100% - 92px)); - } - - &:first-child { - margin-left: 15px; - - @media (min-width: $breakpoint-small) { - margin-left: 40px; - } - - @media (min-width: $breakpoint-large) { - margin-left: 50px; - } - } - - &:last-child { - margin-right: 7px; - - @media (min-width: $breakpoint-small) { - margin-right: 32px; - } - - @media (min-width: $breakpoint-large) { - margin-right: 42px; - } - } -} diff --git a/archived_examples/movies/src/assets/css/components/_listing.scss b/archived_examples/movies/src/assets/css/components/_listing.scss deleted file mode 100644 index 58a6b9ccb..000000000 --- a/archived_examples/movies/src/assets/css/components/_listing.scss +++ /dev/null @@ -1,105 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -.listing { - margin: 2.5rem 1.5rem; - - @media (min-width: $breakpoint-xsmall) { - margin: 3rem 1.5rem; - } - - @media (min-width: $breakpoint-large) { - margin: 5rem; - } -} - -.listing__head { - display: flex; - align-items: baseline; - margin-bottom: 1.5rem; - - @media (min-width: $breakpoint-large) { - margin-bottom: 2rem; - } -} - -.listing__title { - font-size: 1.8rem; - letter-spacing: $letter-spacing; - - @media (min-width: $breakpoint-large) { - font-size: 2.4rem; - } -} - -.listing__explore { - margin-left: 1rem; - font-size: 1.2rem; - color: $primary-color; - letter-spacing: $letter-spacing; - - @media (min-width: $breakpoint-large) { - font-size: 1.4rem; - } - - &:hover, - &:focus { - opacity: 0.8; - } -} - -.listing__items { - display: flex; - flex-wrap: wrap; - margin-right: -0.4rem; - margin-left: -0.4rem; -} - -.listing__nav { - padding: 4rem 0; - text-align: center; -} - -.listing--carousel { - margin-right: 0; - margin-left: 0; - - .listing__head { - margin-right: 1.5rem; - margin-left: 1.5rem; - - @media (min-width: $breakpoint-small) { - margin-right: 4rem; - margin-left: 4rem; - } - - @media (min-width: $breakpoint-large) { - margin-right: 5rem; - margin-left: 5rem; - } - } -} - -.listing__items .card { - width: 33.3333333%; - padding: 0 0.4rem; - - @media (min-width: $breakpoint-xsmall) { - width: 25%; - } - - @media (min-width: $breakpoint-medium) { - width: 20%; - } - - @media (min-width: $breakpoint-xlarger1) { - width: 16.6666667%; - } - - @media (min-width: $breakpoint-xlarger2) { - width: 14.2857143%; - } - - @media (min-width: $breakpoint-xlarger3) { - width: 12.5%; - } -} diff --git a/archived_examples/movies/src/assets/css/global.scss b/archived_examples/movies/src/assets/css/global.scss deleted file mode 100644 index 3562884a3..000000000 --- a/archived_examples/movies/src/assets/css/global.scss +++ /dev/null @@ -1,22 +0,0 @@ -@import './base/_normalize.scss'; -@import './base/_base.scss'; -@import './base/_transitions.scss'; -@import './base/_typography.scss'; -@import './base/_forms.scss'; -@import './base/_layout.scss'; -@import './utilities/_helpers.scss'; -@import './components/_alert.scss'; -@import './components/_listing.scss'; -@import './components/_carousel.scss'; -@import './components/_card.scss'; - -a.active { - &:hover, - &:focus { - opacity: 1; - } - - svg { - color: $primary-color; - } -} diff --git a/archived_examples/movies/src/assets/css/utilities/_helpers.scss b/archived_examples/movies/src/assets/css/utilities/_helpers.scss deleted file mode 100644 index 2daa2cfdc..000000000 --- a/archived_examples/movies/src/assets/css/utilities/_helpers.scss +++ /dev/null @@ -1,15 +0,0 @@ -.nolist { - padding: 0; - margin: 0; - list-style: none; -} - -.visuallyhidden { - position: absolute; - height: 1px; width: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0 0 0 0); - border: 0; -} diff --git a/archived_examples/movies/src/assets/css/utilities/_variables.scss b/archived_examples/movies/src/assets/css/utilities/_variables.scss deleted file mode 100644 index 88532aa94..000000000 --- a/archived_examples/movies/src/assets/css/utilities/_variables.scss +++ /dev/null @@ -1,49 +0,0 @@ -$font-family--sans-serif: 'Roboto', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; - -// 1rem = 10px -$base-font-size: 62.5%; -$base-line-height: 1.6; -$base-bg: #141414; -$base-font-color: #fff; -$base-font-family: $font-family--sans-serif; -$base-font-weight: 400; -$base-font-style: normal; - -$letter-spacing: 0.4px; - -$primary-color: #2196f3; -$secondary-color: #202124; - -$text-color: #fafafa; -$text-color-grey: #80868b; - -$breakpoint-xsmall: 640px; -$breakpoint-small: 768px; -$breakpoint-medium: 1024px; -$breakpoint-large: 1200px; -$breakpoint-xlarge: 1400px; -$breakpoint-xlarger1: 1500px; -$breakpoint-xlarger2: 1800px; -$breakpoint-xlarger3: 2500px; - -$z-index-mobile-stepper: 1000; -$z-index-speed-dial: 1050; -$z-index-app-bar: 1100; -$z-index-drawer: 1200; -$z-index-modal: 1300; -$z-index-snack-bar: 1400; -$z-index-tooltip: 1500; - -$layout-nav-width: 10rem; - -:export { - breakpointXsmall: $breakpoint-xsmall; - breakpointSmall: $breakpoint-small; - breakpointMedium: $breakpoint-medium; - breakpointLarge: $breakpoint-large; - breakpointXlarge: $breakpoint-xlarge; - breakpointXlarger1: $breakpoint-xlarger1; - breakpointXlarger2: $breakpoint-xlarger2; - breakpointXlarger3: $breakpoint-xlarger3; - layoutNavWidth: $layout-nav-width; -} diff --git a/archived_examples/movies/src/assets/images/chevron-left.svg b/archived_examples/movies/src/assets/images/chevron-left.svg deleted file mode 100644 index 34c0003ac..000000000 --- a/archived_examples/movies/src/assets/images/chevron-left.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/chevron-right.svg b/archived_examples/movies/src/assets/images/chevron-right.svg deleted file mode 100644 index 470714cf4..000000000 --- a/archived_examples/movies/src/assets/images/chevron-right.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/circle-play.svg b/archived_examples/movies/src/assets/images/circle-play.svg deleted file mode 100644 index 018141593..000000000 --- a/archived_examples/movies/src/assets/images/circle-play.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/cross.svg b/archived_examples/movies/src/assets/images/cross.svg deleted file mode 100644 index 80931878b..000000000 --- a/archived_examples/movies/src/assets/images/cross.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/email.svg b/archived_examples/movies/src/assets/images/email.svg deleted file mode 100644 index 7d816ac27..000000000 --- a/archived_examples/movies/src/assets/images/email.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/facebook.svg b/archived_examples/movies/src/assets/images/facebook.svg deleted file mode 100644 index ab79c7890..000000000 --- a/archived_examples/movies/src/assets/images/facebook.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/git-hub.svg b/archived_examples/movies/src/assets/images/git-hub.svg deleted file mode 100644 index 07844f2c5..000000000 --- a/archived_examples/movies/src/assets/images/git-hub.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/home.svg b/archived_examples/movies/src/assets/images/home.svg deleted file mode 100644 index ce28a907a..000000000 --- a/archived_examples/movies/src/assets/images/home.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/imdb.svg b/archived_examples/movies/src/assets/images/imdb.svg deleted file mode 100644 index e96dbfba7..000000000 --- a/archived_examples/movies/src/assets/images/imdb.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/instagram.svg b/archived_examples/movies/src/assets/images/instagram.svg deleted file mode 100644 index 34c3513b4..000000000 --- a/archived_examples/movies/src/assets/images/instagram.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/link.svg b/archived_examples/movies/src/assets/images/link.svg deleted file mode 100644 index 9dd98c72a..000000000 --- a/archived_examples/movies/src/assets/images/link.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/linked-in.svg b/archived_examples/movies/src/assets/images/linked-in.svg deleted file mode 100644 index 1ae3fa13a..000000000 --- a/archived_examples/movies/src/assets/images/linked-in.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/loader.svg b/archived_examples/movies/src/assets/images/loader.svg deleted file mode 100644 index 617dd6794..000000000 --- a/archived_examples/movies/src/assets/images/loader.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/archived_examples/movies/src/assets/images/loading-spinner.svg b/archived_examples/movies/src/assets/images/loading-spinner.svg deleted file mode 100644 index d68edd53d..000000000 --- a/archived_examples/movies/src/assets/images/loading-spinner.svg +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/magnifier.svg b/archived_examples/movies/src/assets/images/magnifier.svg deleted file mode 100644 index 48b431291..000000000 --- a/archived_examples/movies/src/assets/images/magnifier.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/movie.svg b/archived_examples/movies/src/assets/images/movie.svg deleted file mode 100644 index 3b27bf2d6..000000000 --- a/archived_examples/movies/src/assets/images/movie.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/placeholder.svg b/archived_examples/movies/src/assets/images/placeholder.svg deleted file mode 100644 index 74f50e517..000000000 --- a/archived_examples/movies/src/assets/images/placeholder.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/play.svg b/archived_examples/movies/src/assets/images/play.svg deleted file mode 100644 index aec562659..000000000 --- a/archived_examples/movies/src/assets/images/play.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/select-arrow.svg b/archived_examples/movies/src/assets/images/select-arrow.svg deleted file mode 100644 index c5667b0c5..000000000 --- a/archived_examples/movies/src/assets/images/select-arrow.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/archived_examples/movies/src/assets/images/stars-filled.png b/archived_examples/movies/src/assets/images/stars-filled.png deleted file mode 100644 index cbb03e20f..000000000 Binary files a/archived_examples/movies/src/assets/images/stars-filled.png and /dev/null differ diff --git a/archived_examples/movies/src/assets/images/stars.png b/archived_examples/movies/src/assets/images/stars.png deleted file mode 100644 index 78426f0fe..000000000 Binary files a/archived_examples/movies/src/assets/images/stars.png and /dev/null differ diff --git a/archived_examples/movies/src/assets/images/tv.svg b/archived_examples/movies/src/assets/images/tv.svg deleted file mode 100644 index cfc7865dd..000000000 --- a/archived_examples/movies/src/assets/images/tv.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - \ No newline at end of file diff --git a/archived_examples/movies/src/assets/images/twitter.svg b/archived_examples/movies/src/assets/images/twitter.svg deleted file mode 100644 index 5a5fb798f..000000000 --- a/archived_examples/movies/src/assets/images/twitter.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/archived_examples/movies/src/components/Card.tsx b/archived_examples/movies/src/components/Card.tsx deleted file mode 100644 index 02127c9c3..000000000 --- a/archived_examples/movies/src/components/Card.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { A } from "solid-start"; -import Poster from "./Poster"; - -export function Card(props) { - const media = () => - props.item.media_type ? props.item.media_type : props.item.name ? "tv" : "movie"; - return ( -
- -
- -
-

{props.item.title}

-
-
- ); -} diff --git a/archived_examples/movies/src/components/ExternalLinks.tsx b/archived_examples/movies/src/components/ExternalLinks.tsx deleted file mode 100644 index 28c3f7ac9..000000000 --- a/archived_examples/movies/src/components/ExternalLinks.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import { Show } from "solid-js"; -import FacebookIcon from "~icons/ant-design/facebook-outlined"; -import InstagramIcon from "~icons/ant-design/instagram-outline"; -import LinkIcon from "~icons/ant-design/link-outlined"; -import TwitterIcon from "~icons/ant-design/twitter-outlined"; -import IMDBIcon from "~icons/fa-brands/imdb"; - -type Props = { - media?: string; - links: { - twitter_id?: string; - facebook_id?: string; - instagram_id?: string; - imdb_id?: string; - homepage?: string; - }; -}; - -export function ExternalLinks(props: Props) { - const { links } = props; - - return ( - - ); -} diff --git a/archived_examples/movies/src/components/Footer.module.scss b/archived_examples/movies/src/components/Footer.module.scss deleted file mode 100644 index f5d97b227..000000000 --- a/archived_examples/movies/src/components/Footer.module.scss +++ /dev/null @@ -1,49 +0,0 @@ -@import "~/assets/css/utilities/_variables.scss"; - -.footer { - padding: 2rem 1.5rem 6.5rem; - color: $text-color-grey; - - @media (min-width: $breakpoint-small) { - padding-right: 4rem; - padding-left: 4rem; - } - - @media (min-width: $breakpoint-large) { - padding: 2rem 5rem; - } - - p { - margin: 0.3rem 0; - font-size: 1.4rem; - } - - a { - color: $text-color-grey; - text-decoration: underline; - } - - ul { - display: flex; - margin: 2rem 0 0 -0.5rem; - - a { - display: flex; - align-items: center; - justify-content: center; - width: 4.4rem; - height: 4.4rem; - - svg { - transition: all 0.3s ease-in-out; - } - - &:hover, - &:focus { - svg { - fill: #fff; - } - } - } - } -} \ No newline at end of file diff --git a/archived_examples/movies/src/components/Footer.tsx b/archived_examples/movies/src/components/Footer.tsx deleted file mode 100644 index 56b82eff0..000000000 --- a/archived_examples/movies/src/components/Footer.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import { A, Outlet } from "solid-start"; -import GitHubIcon from "~icons/ant-design/github-filled"; -import EmailIcon from "~icons/ant-design/mail-filled"; -import TwitterIcon from "~icons/ant-design/twitter-outlined"; -import styles from "./Footer.module.scss"; - -export default function Footer() { - return ( - - ); -} \ No newline at end of file diff --git a/archived_examples/movies/src/components/GlobalLoader.scss b/archived_examples/movies/src/components/GlobalLoader.scss deleted file mode 100644 index beb128478..000000000 --- a/archived_examples/movies/src/components/GlobalLoader.scss +++ /dev/null @@ -1,56 +0,0 @@ -.global-loader { - height: 3px; - width: 100%; - display: flex; - flex-shrink: 0; - position: fixed; - overflow: hidden; - top: 0; - left: 0; - z-index: 9999; - - .global-loader-fill { - display: block; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 200%; - transform: translateX(0); - opacity: 0; - transition: transform 1s ease, opacity .5s ease; - background: #2196f3; - } - - &::after { - display: block; - content: ' '; - position: absolute; - bottom: 0; - left: 0; - right: 0; - height: 1px; - background: rgba(0, 0, 0, 0.2); - } - - &.is-loading { - .global-loader-fill { - transition: none; - opacity: 1; - animation: Indeterminate 5s ease-out; - animation-fill-mode: forwards; - } - } - - @keyframes Indeterminate { - 0% { - transform: translateX(-100%); - } - 20% { - transform: translateX(-10%); - } - 100% { - transform: translateX(0); - } - } -} \ No newline at end of file diff --git a/archived_examples/movies/src/components/GlobalLoader.tsx b/archived_examples/movies/src/components/GlobalLoader.tsx deleted file mode 100644 index a23899f28..000000000 --- a/archived_examples/movies/src/components/GlobalLoader.tsx +++ /dev/null @@ -1,29 +0,0 @@ -"use client"; -import { createSignal, Show } from "solid-js"; -import { isServer } from "solid-js/web"; - -import "./GlobalLoader.scss"; - -export default () => { - const [isVisible, setVisible] = createSignal(); - if (!isServer) { - window.router.router.addEventListener("navigation-start", e => { - setVisible(true); - }); - - window.router.router.addEventListener("navigation-end", e => { - setVisible(false); - }); - - window.router.router.addEventListener("navigation-error", e => { - setVisible(false); - }); - } - return ( - -
-
-
- - ); -}; diff --git a/archived_examples/movies/src/components/Hero.module.scss b/archived_examples/movies/src/components/Hero.module.scss deleted file mode 100644 index 91c102d04..000000000 --- a/archived_examples/movies/src/components/Hero.module.scss +++ /dev/null @@ -1,211 +0,0 @@ -@import '~/assets/css/utilities/_variables.scss'; - -.hero { - display: flex; - flex-direction: column; - justify-content: space-between; - height: 35rem; - color: #999; - background-color: #000; - - @media (min-width: $breakpoint-xsmall) { - height: 50rem; - } - - @media (min-width: $breakpoint-medium) { - position: relative; - display: block; - height: 0; - padding-bottom: 40%; - } -} - -.backdrop { - position: relative; - display: flex; - flex: 1 1 auto; - min-height: 0; - - @media (min-width: $breakpoint-medium) { - position: absolute; - top: 0; - right: 0; - display: block; - width: 71.1%; - height: 100%; - } - - &::after { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - display: block; - content: ''; - background-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 100%); - - @media (min-width: $breakpoint-medium) { - background-image: linear-gradient(to right, #000 0, transparent 50%, transparent 100%); - } - } - - > div { - width: 100%; - - @media (min-width: $breakpoint-medium) { - display: inline; - } - } -} - -.play { - position: absolute; - top: 50%; - left: 50%; - z-index: 1; - padding: 0; - margin: 0; - background: none; - transform: translate(-50%, -50%); - - @media (min-width: $breakpoint-medium) { - display: none; - } -} - -.image { - display: inline-block; - max-width: none; - height: 100%; - - @media (max-width: $breakpoint-medium) { - width: 100%; - object-fit: cover; - } -} - -.pane { - padding: 0 1.5rem 1.5rem; - - @media (min-width: $breakpoint-small) { - padding: 0 4rem 4rem; - } - - @media (min-width: $breakpoint-medium) { - position: absolute; - top: 0; - bottom: 0; - left: 0; - z-index: 1; - display: flex; - align-items: center; - width: 55%; - height: 100%; - padding: 5rem 4rem; - } - - @media (min-width: $breakpoint-large) { - padding-right: 5rem; - padding-left: 5rem; - } - - @media (min-width: $breakpoint-xlarge) { - width: 43%; - } -} - -.name { - margin: 0 0 1.4rem; - font-size: 2.8rem; - line-height: 1.1; - color: #fff; - letter-spacing: $letter-spacing; - - @media (min-width: $breakpoint-small) { - margin-bottom: 1.8rem; - } - - @media (min-width: $breakpoint-large) { - font-size: 2.4vw; - } -} - -.meta { - font-size: 1.4rem; - - @media (min-width: $breakpoint-small) { - display: flex; - } - - @media (min-width: 1650px) { - font-size: 0.9vw; - } -} - -.rating { - display: flex; - align-items: center; - margin-bottom: 1.3rem; - - @media (min-width: $breakpoint-small) { - margin: 0 1.2rem 0 0; - } -} - -.stars { - width: 8.5rem; - height: 1.4rem; - margin-right: 1rem; - background-image: url('~/assets/images/stars.png'); - background-repeat: no-repeat; - background-size: auto 100%; - - @media (min-width: $breakpoint-small) { - width: 10.3rem; - height: 1.7rem; - } - - > div { - height: 100%; - background-image: url('~/assets/images/stars-filled.png'); - background-repeat: no-repeat; - background-size: auto 100%; - } -} - -.info { - display: flex; - align-items: center; - - span { - margin-right: 0.9rem; - } -} - -.desc { - display: block; - margin-top: 2.5rem; - font-size: 1.5rem; - color: #fff; - - @media (max-width: $breakpoint-small) { - display: none; - } - - @media (min-width: 1650px) { - font-size: 0.9vw; - } -} - -.trailer { - margin-top: 3rem; - - @media (max-width: $breakpoint-medium) { - display: none; - } - - @media (min-width: 1650px) { - font-size: 0.9vw; - } -} diff --git a/archived_examples/movies/src/components/Hero.tsx b/archived_examples/movies/src/components/Hero.tsx deleted file mode 100644 index 1ae1646e3..000000000 --- a/archived_examples/movies/src/components/Hero.tsx +++ /dev/null @@ -1,161 +0,0 @@ -import { Show } from "solid-js"; -import { formatRuntime } from "~/utils/format"; -import styles from "./Hero.module.scss"; - -export function Hero(props) { - const stars = () => (props.item.vote_average ? props.item.vote_average * 10 : 0); - const name = () => (props.item.title ? props.item.title : props.item.name); - const yearStart = () => { - const date = props.item.release_date || props.item.first_air_date; - if (date) { - return date.split("-")[0]; - } - }; - - return ( -
-
-
-
- - - - - - - {props.item.title - - {/* */} - {/* */} -
-
- -
-
-

- {name()} - - {/* */} -

-
-
- -
-
-
- - - 0}> -
{props.item.vote_count} Reviews
-
-
- -
- - Season {props.item.number_of_seasons} - - - {yearStart()} - - - {formatRuntime(props.item.runtime)} - - {/* Cert. {{ cert }} */} -
-
-
{props.item.overview}
-
- {/* -
-

- - - -

- -
-
-
-
-
- -
- {{ item.vote_count | numberWithCommas }} Reviews -
-
- -
- Season {{ item.number_of_seasons }} - {{ yearStart }} - {{ item.runtime | runtime }} - Cert. {{ cert }} -
-
- -
- {{ item.overview | truncate(200) }} -
- - -
*/} -
-
-
- ); -} - -export default Hero; diff --git a/archived_examples/movies/src/components/ListingCarousel.tsx b/archived_examples/movies/src/components/ListingCarousel.tsx deleted file mode 100644 index b0ce4e398..000000000 --- a/archived_examples/movies/src/components/ListingCarousel.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { For, Show } from "solid-js"; -import { A } from "solid-start"; -import { Card } from "./Card"; - -export function ListingCarousel(props) { - return ( - - - - ); -} diff --git a/archived_examples/movies/src/components/Nav.module.scss b/archived_examples/movies/src/components/Nav.module.scss deleted file mode 100644 index 1635913cd..000000000 --- a/archived_examples/movies/src/components/Nav.module.scss +++ /dev/null @@ -1,67 +0,0 @@ -@import "~/assets/css/utilities/_variables.scss"; - -.nav { - position: fixed; - right: 0; - bottom: 0; - left: 0; - z-index: 5; - padding-block: 1.5rem; - background-color: #000; - - @media (min-width: $breakpoint-large) { - top: 0; - right: auto; - width: $layout-nav-width; - height: 100%; - border-right: 1px solid $secondary-color; - } - - ul { - display: flex; - height: 100%; - align-items: center; - - @media (min-width: $breakpoint-large) { - flex-direction: column; - } - - .logo { - display: flex; - justify-content: center; - align-items: center; - } - - li { - flex: 1 1 auto; - height: 100%; - - @media (min-width: $breakpoint-large) { - flex: 0 1 auto; - height: 10rem; - } - } - } - - button { - padding: 0; - margin: 0; - background: none; - } - - a, - button { - display: flex; - align-items: center; - justify-content: center; - width: 100%; - height: 100%; - outline: 0; - transition: all 0.2s; - - &:hover, - &:focus { - opacity: 0.8; - } - } -} \ No newline at end of file diff --git a/archived_examples/movies/src/components/Nav.tsx b/archived_examples/movies/src/components/Nav.tsx deleted file mode 100644 index d3696daec..000000000 --- a/archived_examples/movies/src/components/Nav.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { A } from "solid-start"; -import HomeIcon from "~icons/ant-design/home-outlined"; -import MagnifierIcon from "~icons/ant-design/search-outlined"; -import MoviesIcon from "~icons/pepicons/clapperboard"; -import TVIcon from "~icons/pepicons/television"; -import styles from "./Nav.module.scss"; - -export default function Nav() { - return ( - - ); -} \ No newline at end of file diff --git a/archived_examples/movies/src/components/Poster.module.scss b/archived_examples/movies/src/components/Poster.module.scss deleted file mode 100644 index 72e999bce..000000000 --- a/archived_examples/movies/src/components/Poster.module.scss +++ /dev/null @@ -1,19 +0,0 @@ -.wrapper{ - position: relative; - &:hover{ - --scale: 1.02; - } - &::after{ - content: ''; - position: absolute; - inset: 0; - background-image: radial-gradient(circle at calc(var(--spot-x, 50) * 1%) calc(var(--spot-y, 50) * 1%), #fff2, transparent); - will-change: background-image; - } -} - -.poster{ - will-change: transform; - transition: transform 100ms; - transform: perspective(1000px) scale(var(--scale, .97)) rotateX(calc(var(--y-off, 0) * -1deg)) rotateY(calc(var(--x-off, 0) * 1deg)); -} \ No newline at end of file diff --git a/archived_examples/movies/src/components/Poster.tsx b/archived_examples/movies/src/components/Poster.tsx deleted file mode 100644 index 6385a2f83..000000000 --- a/archived_examples/movies/src/components/Poster.tsx +++ /dev/null @@ -1,74 +0,0 @@ -"use client"; -import { createSignal, JSX, splitProps } from "solid-js"; -import styles from "./Poster.module.scss"; - -const lerp = (min: number, max: number, percentage: number) => - min * (1 - percentage) + max * percentage; - -type PosterProps = JSX.ImgHTMLAttributes & { path: string }; - -export default function Poster(props: PosterProps) { - const [local, imgProps] = splitProps(props, ["class", "path"]); - //this might have been done with just two signals but it would've required - //calcs in css and it would've been far less readable - const [xOffset, setXOffset] = createSignal(0); - const [yOffset, setYOffset] = createSignal(0); - const [spotX, setSpotX] = createSignal(50); - const [spotY, setSpotY] = createSignal(50); - return ( -
{ - const { width, height, x, y } = (e.currentTarget as HTMLDivElement).getBoundingClientRect(); - const percentageX = (e.clientX - x) / width; - const percentageY = (e.clientY - y) / height; - setXOffset(lerp(-15, 15, percentageX)); - setYOffset(lerp(-15, 15, percentageY)); - setSpotX(percentageX * 100); - setSpotY(percentageY * 100); - }} - onPointerLeave={() => { - setXOffset(0); - setYOffset(0); - setSpotX(50); - setSpotY(50); - }} - style={{ - "--x-off": xOffset(), - "--y-off": yOffset(), - "--spot-x": spotX(), - "--spot-y": spotY() - }} - > - - - - - - - - -
- ); -} diff --git a/archived_examples/movies/src/entry-client.tsx b/archived_examples/movies/src/entry-client.tsx deleted file mode 100644 index 942284855..000000000 --- a/archived_examples/movies/src/entry-client.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import { mount, StartClient } from "solid-start/entry-client"; - -mount(() => , document); diff --git a/archived_examples/movies/src/entry-server.tsx b/archived_examples/movies/src/entry-server.tsx deleted file mode 100644 index 0ada38765..000000000 --- a/archived_examples/movies/src/entry-server.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import { createHandler, renderStream, StartServer } from "solid-start/entry-server"; - -export default createHandler(renderStream(event => )); diff --git a/archived_examples/movies/src/global.d.ts b/archived_examples/movies/src/global.d.ts deleted file mode 100644 index 83460315b..000000000 --- a/archived_examples/movies/src/global.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/archived_examples/movies/src/root.tsx b/archived_examples/movies/src/root.tsx deleted file mode 100644 index 9ce1ed8ae..000000000 --- a/archived_examples/movies/src/root.tsx +++ /dev/null @@ -1,42 +0,0 @@ -// @refresh reload -import { Suspense } from "solid-js"; -import { - Body, - ErrorBoundary, - FileRoutes, - Head, - Html, - Meta, - Routes, - Scripts, - Title -} from "solid-start"; -import Nav from "./components/Nav"; -import Footer from "./components/Footer"; -import GlobalLoader from "./components/GlobalLoader"; -import "~/assets/css/global.scss"; - -export default function Root() { - return ( - - - Solid Movies - - - - - - -
}> - - - -