Skip to content

Commit 4ca7973

Browse files
committed
added all components
1 parent 1977098 commit 4ca7973

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+7981
-0
lines changed

.eslintignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
**/*.log
2+
**/.DS_Store
3+
*.
4+
.vscode/settings.json
5+
.history
6+
.yarn
7+
bazel-*
8+
bazel-bin
9+
bazel-out
10+
bazel-qwik
11+
bazel-testlogs
12+
dist
13+
dist-dev
14+
lib
15+
lib-types
16+
etc
17+
external
18+
node_modules
19+
temp
20+
tsc-out
21+
tsdoc-metadata.json
22+
target
23+
output
24+
rollup.config.js
25+
build
26+
.cache
27+
.vscode
28+
.rollup.cache
29+
dist
30+
tsconfig.tsbuildinfo
31+
vite.config.ts
32+
*.spec.tsx
33+
*.spec.ts
34+
.netlify
35+
pnpm-lock.yaml
36+
package-lock.json
37+
yarn.lock
38+
server

.eslintrc.cjs

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
es2021: true,
6+
node: true,
7+
},
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:qwik/recommended",
12+
],
13+
parser: "@typescript-eslint/parser",
14+
parserOptions: {
15+
tsconfigRootDir: __dirname,
16+
project: ["./tsconfig.json"],
17+
ecmaVersion: 2021,
18+
sourceType: "module",
19+
ecmaFeatures: {
20+
jsx: true,
21+
},
22+
},
23+
plugins: ["@typescript-eslint"],
24+
rules: {
25+
"@typescript-eslint/no-explicit-any": "off",
26+
"@typescript-eslint/explicit-module-boundary-types": "off",
27+
"@typescript-eslint/no-inferrable-types": "off",
28+
"@typescript-eslint/no-non-null-assertion": "off",
29+
"@typescript-eslint/no-empty-interface": "off",
30+
"@typescript-eslint/no-namespace": "off",
31+
"@typescript-eslint/no-empty-function": "off",
32+
"@typescript-eslint/no-this-alias": "off",
33+
"@typescript-eslint/ban-types": "off",
34+
"@typescript-eslint/ban-ts-comment": "off",
35+
"prefer-spread": "off",
36+
"no-case-declarations": "off",
37+
"no-console": "off",
38+
"@typescript-eslint/no-unused-vars": ["error"],
39+
"@typescript-eslint/consistent-type-imports": "warn",
40+
"@typescript-eslint/no-unnecessary-condition": "warn",
41+
},
42+
};

.gitignore

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Build
2+
/dist
3+
/lib
4+
/lib-types
5+
/server
6+
7+
# Development
8+
node_modules
9+
.env
10+
*.local
11+
12+
# Cache
13+
.cache
14+
.mf
15+
.rollup.cache
16+
tsconfig.tsbuildinfo
17+
18+
# Logs
19+
logs
20+
*.log
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
pnpm-debug.log*
25+
lerna-debug.log*
26+
27+
# Editor
28+
.vscode/*
29+
!.vscode/launch.json
30+
!.vscode/*.code-snippets
31+
32+
.idea
33+
.DS_Store
34+
*.suo
35+
*.ntvs*
36+
*.njsproj
37+
*.sln
38+
*.sw?
39+
40+
# Yarn
41+
.yarn/*
42+
!.yarn/releases
43+
44+
45+
.nx/cache
46+
.nx/workspace-data

.prettierignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
**/*.log
2+
**/.DS_Store
3+
*.
4+
.vscode/settings.json
5+
.history
6+
.yarn
7+
bazel-*
8+
bazel-bin
9+
bazel-out
10+
bazel-qwik
11+
bazel-testlogs
12+
dist
13+
dist-dev
14+
lib
15+
lib-types
16+
etc
17+
external
18+
node_modules
19+
temp
20+
tsc-out
21+
tsdoc-metadata.json
22+
target
23+
output
24+
rollup.config.js
25+
build
26+
.cache
27+
.vscode
28+
.rollup.cache
29+
tsconfig.tsbuildinfo
30+
vite.config.ts
31+
*.spec.tsx
32+
*.spec.ts
33+
.netlify
34+
pnpm-lock.yaml
35+
package-lock.json
36+
yarn.lock
37+
server

.prettierrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
plugins: ['prettier-plugin-tailwindcss'],
3+
}

.vscode/launch.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch Chrome",
9+
"request": "launch",
10+
"type": "chrome",
11+
"url": "http://localhost:5173",
12+
"webRoot": "${workspaceFolder}"
13+
},
14+
{
15+
"type": "node",
16+
"name": "dev.debug",
17+
"request": "launch",
18+
"skipFiles": ["<node_internals>/**"],
19+
"cwd": "${workspaceFolder}",
20+
"program": "${workspaceFolder}/node_modules/vite/bin/vite.js",
21+
"args": ["--mode", "ssr", "--force"]
22+
}
23+
]
24+
}

.vscode/qwik-city.code-snippets

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"onRequest": {
3+
"scope": "javascriptreact,typescriptreact",
4+
"prefix": "qonRequest",
5+
"description": "onRequest function for a route index",
6+
"body": [
7+
"export const onRequest: RequestHandler = (request) => {",
8+
" $0",
9+
"};",
10+
],
11+
},
12+
"loader$": {
13+
"scope": "javascriptreact,typescriptreact",
14+
"prefix": "qloader$",
15+
"description": "loader$()",
16+
"body": ["export const $1 = routeLoader$(() => {", " $0", "});"],
17+
},
18+
"action$": {
19+
"scope": "javascriptreact,typescriptreact",
20+
"prefix": "qaction$",
21+
"description": "action$()",
22+
"body": ["export const $1 = routeAction$((data) => {", " $0", "});"],
23+
},
24+
"Full Page": {
25+
"scope": "javascriptreact,typescriptreact",
26+
"prefix": "qpage",
27+
"description": "Simple page component",
28+
"body": [
29+
"import { component$ } from '@builder.io/qwik';",
30+
"",
31+
"export default component$(() => {",
32+
" $0",
33+
"});",
34+
],
35+
},
36+
}

.vscode/qwik.code-snippets

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"Qwik component (simple)": {
3+
"scope": "javascriptreact,typescriptreact",
4+
"prefix": "qcomponent$",
5+
"description": "Simple Qwik component",
6+
"body": [
7+
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}} = component$(() => {",
8+
" return <${2:div}>$4</$2>",
9+
"});",
10+
],
11+
},
12+
"Qwik component (props)": {
13+
"scope": "typescriptreact",
14+
"prefix": "qcomponent$ + props",
15+
"description": "Qwik component w/ props",
16+
"body": [
17+
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Props {",
18+
" $2",
19+
"}",
20+
"",
21+
"export const $1 = component$<$1Props>((props) => {",
22+
" const ${2:count} = useSignal(0);",
23+
" return (",
24+
" <${3:div} on${4:Click}$={(ev) => {$5}}>",
25+
" $6",
26+
" </${3}>",
27+
" );",
28+
"});",
29+
],
30+
},
31+
"Qwik signal": {
32+
"scope": "javascriptreact,typescriptreact",
33+
"prefix": "quseSignal",
34+
"description": "useSignal() declaration",
35+
"body": ["const ${1:foo} = useSignal($2);", "$0"],
36+
},
37+
"Qwik store": {
38+
"scope": "javascriptreact,typescriptreact",
39+
"prefix": "quseStore",
40+
"description": "useStore() declaration",
41+
"body": ["const ${1:state} = useStore({", " $2", "});", "$0"],
42+
},
43+
"$ hook": {
44+
"scope": "javascriptreact,typescriptreact",
45+
"prefix": "q$",
46+
"description": "$() function hook",
47+
"body": ["$(() => {", " $0", "});", ""],
48+
},
49+
"useVisibleTask": {
50+
"scope": "javascriptreact,typescriptreact",
51+
"prefix": "quseVisibleTask",
52+
"description": "useVisibleTask$() function hook",
53+
"body": ["useVisibleTask$(({ track }) => {", " $0", "});", ""],
54+
},
55+
"useTask": {
56+
"scope": "javascriptreact,typescriptreact",
57+
"prefix": "quseTask$",
58+
"description": "useTask$() function hook",
59+
"body": [
60+
"useTask$(({ track }) => {",
61+
" track(() => $1);",
62+
" $0",
63+
"});",
64+
"",
65+
],
66+
},
67+
"useResource": {
68+
"scope": "javascriptreact,typescriptreact",
69+
"prefix": "quseResource$",
70+
"description": "useResource$() declaration",
71+
"body": [
72+
"const $1 = useResource$(({ track, cleanup }) => {",
73+
" $0",
74+
"});",
75+
"",
76+
],
77+
},
78+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Qwik UI App for reproductions of bugs and issues

package.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "my-qwik-empty-starter",
3+
"description": "Blank project with routing included",
4+
"engines": {
5+
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
6+
},
7+
"engines-annotation": "Mostly required by sharp which needs a Node-API v9 compatible runtime",
8+
"private": true,
9+
"trustedDependencies": [
10+
"sharp"
11+
],
12+
"trustedDependencies-annotation": "Needed for bun to allow running install scripts",
13+
"type": "module",
14+
"scripts": {
15+
"build": "qwik build",
16+
"build.client": "vite build",
17+
"build.preview": "vite build --ssr src/entry.preview.tsx",
18+
"build.types": "tsc --incremental --noEmit",
19+
"deploy": "echo 'Run \"npm run qwik add\" to install a server adapter'",
20+
"dev": "vite --mode ssr",
21+
"dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
22+
"fmt": "prettier --write .",
23+
"fmt.check": "prettier --check .",
24+
"lint": "eslint \"src/**/*.ts*\"",
25+
"preview": "qwik build preview && vite preview --open",
26+
"start": "vite --open --mode ssr",
27+
"qwik": "qwik"
28+
},
29+
"devDependencies": {
30+
"@builder.io/qwik": "^1.10.0",
31+
"@builder.io/qwik-city": "^1.10.0",
32+
"@qwik-ui/headless": "^0.6.3",
33+
"@qwik-ui/styled": "^0.2.0",
34+
"@qwik-ui/utils": "^0.3.1",
35+
"@qwikest/icons": "^0.0.13",
36+
"@types/eslint": "8.56.10",
37+
"@types/node": "20.14.11",
38+
"@typescript-eslint/eslint-plugin": "7.16.1",
39+
"@typescript-eslint/parser": "7.16.1",
40+
"autoprefixer": "^10.4.19",
41+
"class-variance-authority": "^0.7.0",
42+
"eslint": "8.57.0",
43+
"eslint-plugin-qwik": "^1.10.0",
44+
"nx": "^20.1.2",
45+
"postcss": "^8.4.39",
46+
"prettier": "3.3.3",
47+
"prettier-plugin-tailwindcss": "^0.5.4",
48+
"qwik-ui": "^0.1.4",
49+
"tailwindcss": "^3.4.6",
50+
"tailwindcss-animate": "^1.0.7",
51+
"typescript": "5.4.5",
52+
"undici": "*",
53+
"vite": "5.3.5",
54+
"vite-tsconfig-paths": "^4.2.1"
55+
},
56+
"nx": {}
57+
}

0 commit comments

Comments
 (0)