This repository was archived by the owner on Jan 18, 2024. It is now read-only.
-
-
Couldn't load subscription status.
- Fork 108
Add Qwik Example #197
Open
Sensational-Code
wants to merge
14
commits into
directus-labs:main
from
Sensational-Code:add-qwik-example-blog
Open
Add Qwik Example #197
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c8c50ac
Initial project
Sensational-Code 1ebb9a5
Add Qwik specific README.md
Sensational-Code d816c3d
Add Qwik listing to main README.md
Sensational-Code 742c21a
Minor cleanup
Sensational-Code d1040fc
Minor spacing changes
Sensational-Code 86c03d6
Add 404 page
Sensational-Code 712044d
Add routing to 404 when article not found
Sensational-Code ca9fa9b
Add defined image sizes to prevent layout shift
Sensational-Code 0754b77
Convert inline components to component$
Sensational-Code 4c7b82d
Make Notice component close button work
Sensational-Code 550af22
Extract Signal value on state definition
Sensational-Code 5a2e84d
Use routerLoader$ on Home page for readability
Sensational-Code cff2ffb
Fix spelling mistake for Qwik README.md link
Sensational-Code f71d7e7
Remove rogue space
Sensational-Code File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
qwik/.env.example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| PUBLIC_QWIK_APP_DIRECTUS_URL=http://127.0.0.1:8055 |
38 changes: 38 additions & 0 deletions
qwik/.eslintignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| **/*.log | ||
| **/.DS_Store | ||
| *. | ||
| .vscode/settings.json | ||
| .history | ||
| .yarn | ||
| bazel-* | ||
| bazel-bin | ||
| bazel-out | ||
| bazel-qwik | ||
| bazel-testlogs | ||
| dist | ||
| dist-dev | ||
| lib | ||
| lib-types | ||
| etc | ||
| external | ||
| node_modules | ||
| temp | ||
| tsc-out | ||
| tsdoc-metadata.json | ||
| target | ||
| output | ||
| rollup.config.js | ||
| build | ||
| .cache | ||
| .vscode | ||
| .rollup.cache | ||
| dist | ||
| tsconfig.tsbuildinfo | ||
| vite.config.ts | ||
| *.spec.tsx | ||
| *.spec.ts | ||
| .netlify | ||
| pnpm-lock.yaml | ||
| package-lock.json | ||
| yarn.lock | ||
| server |
42 changes: 42 additions & 0 deletions
qwik/.eslintrc.cjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| module.exports = { | ||
| root: true, | ||
| env: { | ||
| browser: true, | ||
| es2021: true, | ||
| node: true, | ||
| }, | ||
| extends: [ | ||
| "eslint:recommended", | ||
| "plugin:@typescript-eslint/recommended", | ||
| "plugin:qwik/recommended", | ||
| ], | ||
| parser: "@typescript-eslint/parser", | ||
| parserOptions: { | ||
| tsconfigRootDir: __dirname, | ||
| project: ["./tsconfig.json"], | ||
| ecmaVersion: 2021, | ||
| sourceType: "module", | ||
| ecmaFeatures: { | ||
| jsx: true, | ||
| }, | ||
| }, | ||
| plugins: ["@typescript-eslint"], | ||
| rules: { | ||
| "@typescript-eslint/no-explicit-any": "off", | ||
| "@typescript-eslint/explicit-module-boundary-types": "off", | ||
| "@typescript-eslint/no-inferrable-types": "off", | ||
| "@typescript-eslint/no-non-null-assertion": "off", | ||
| "@typescript-eslint/no-empty-interface": "off", | ||
| "@typescript-eslint/no-namespace": "off", | ||
| "@typescript-eslint/no-empty-function": "off", | ||
| "@typescript-eslint/no-this-alias": "off", | ||
| "@typescript-eslint/ban-types": "off", | ||
| "@typescript-eslint/ban-ts-comment": "off", | ||
| "prefer-spread": "off", | ||
| "no-case-declarations": "off", | ||
| "no-console": "off", | ||
| "@typescript-eslint/no-unused-vars": ["error"], | ||
| "@typescript-eslint/consistent-type-imports": "warn", | ||
| "@typescript-eslint/no-unnecessary-condition": "warn", | ||
| }, | ||
| }; |
41 changes: 41 additions & 0 deletions
qwik/.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # Build | ||
| /dist | ||
| /lib | ||
| /lib-types | ||
| /server | ||
|
|
||
| # Development | ||
| node_modules | ||
| *.local | ||
|
|
||
| # Cache | ||
| .cache | ||
| .mf | ||
| .rollup.cache | ||
| tsconfig.tsbuildinfo | ||
|
|
||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| # Editor | ||
| .vscode/* | ||
| !.vscode/launch.json | ||
| !.vscode/*.code-snippets | ||
|
|
||
| .idea | ||
| .DS_Store | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw? | ||
|
|
||
| # Yarn | ||
| .yarn/* | ||
| !.yarn/releases |
38 changes: 38 additions & 0 deletions
qwik/.prettierignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| **/*.log | ||
| **/.DS_Store | ||
| *. | ||
| .vscode/settings.json | ||
| .history | ||
| .yarn | ||
| bazel-* | ||
| bazel-bin | ||
| bazel-out | ||
| bazel-qwik | ||
| bazel-testlogs | ||
| dist | ||
| dist-dev | ||
| lib | ||
| lib-types | ||
| etc | ||
| external | ||
| node_modules | ||
| temp | ||
| tsc-out | ||
| tsdoc-metadata.json | ||
| target | ||
| output | ||
| rollup.config.js | ||
| build | ||
| .cache | ||
| .vscode | ||
| .rollup.cache | ||
| dist | ||
| tsconfig.tsbuildinfo | ||
| vite.config.ts | ||
| *.spec.tsx | ||
| *.spec.ts | ||
| .netlify | ||
| pnpm-lock.yaml | ||
| package-lock.json | ||
| yarn.lock | ||
| server |
45 changes: 45 additions & 0 deletions
qwik/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Directus Qwik Example | ||
|
|
||
| This is a [Qwik](https://qwik.builder.io) project bootstrapped with [`npm create qwik@latest`](https://github.com/BuilderIO/qwik-create-cli-build). | ||
|
|
||
| [](https://codesandbox.io/s/github/directus/examples/tree/main/qwik) | ||
|
|
||
| [](https://stackblitz.com/github/directus/examples/tree/main/qwik) | ||
|
|
||
| Note: This example folder is a standalone frontend, which is why it will still need Directus running to work, the CodeSandbox and StackBlitz links only pull the example folder as is, you will still need Directus running somewhere to make it work, such as a [Cloud](https://directus.cloud/) instance, or self hosted. | ||
| ## 📌 Prerequisites | ||
|
|
||
| You will need to have the provided [Directus project](../directus) running first before proceeding with this example. | ||
|
|
||
| ## 🚀 Getting Started | ||
|
|
||
| 1. Clone this repo. | ||
|
|
||
| 2. Install dependencies for this example. | ||
|
|
||
| ```shell | ||
| cd qwik | ||
| npm install | ||
| ``` | ||
|
|
||
| 3. Create a `.env` file by copying the provided `.env.example` file. | ||
|
|
||
| 4. Start the development server. | ||
|
|
||
| ```shell | ||
| npm start | ||
| ``` | ||
|
|
||
| Your Directus Qwik example is now running at <http://localhost:5173>. | ||
|
|
||
| ## 🔗 Links | ||
|
|
||
| ### Directus | ||
|
|
||
| - [Official Site](https://directus.io) | ||
| - [Documentation](https://docs.directus.io) | ||
|
|
||
| ### Qwik | ||
|
|
||
| - [Official Site](https://qwik.builder.io) | ||
| - [Documentation](https://qwik.builder.io/docs) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.