Skip to content

Commit 5c0cf8f

Browse files
authored
Merge branch 'main' into 7313_filter_file
2 parents 6a07946 + 031eeb4 commit 5c0cf8f

File tree

35 files changed

+924
-424
lines changed

35 files changed

+924
-424
lines changed

.changeset/slick-candies-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik': patch
3+
---
4+
5+
FIX: now qwikloader is loaded only once in all cases

.prettierignore

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,45 @@
22
**/*.log
33
**/.DS_Store
44
*.
5-
.history
6-
.yarn
7-
.yarnrc.yml
8-
.pnpm-store
95
pnpm-lock.yaml
10-
.mf
6+
.*
7+
!.eslintrc.cjs
8+
!.prettierignore
9+
!.prettierrc.json
10+
11+
# Build output
1112
dist
1213
dist-dev
1314
lib
14-
etc
15-
external
16-
node_modules
17-
qwik-app
1815
target
19-
output
20-
rollup.config.js
21-
build
22-
!packages/qwik/src/build
23-
.cache
24-
.rollup.cache
16+
starters/apps/**/dist
17+
node_modules
18+
2519
tsconfig.tsbuildinfo
26-
packages/docs/api/**/*
20+
21+
# REPL files
2722
packages/docs/public/repl/repl-sw.js*
28-
packages/docs/src/routes/**/*.mdx
29-
**/server/**/*.js
30-
starters/**/*.js
31-
# explicit exclusion for tailwind prettier.config.js
32-
starters/features/tailwind/*
33-
packages/docs/server
23+
24+
# build output
25+
packages/*/lib
26+
packages/*/dist
27+
packages/*/server
28+
29+
# API output files
3430
packages/docs/src/routes/api
35-
packages/docs/**/*.md
31+
32+
# Prettier doesn't handle mdx files well
3633
packages/docs/**/*.mdx
34+
3735
packages/insights/drizzle
3836
packages/insights/.netlify
3937
packages/insights/scripts
4038
packages/insights/**/*.gen.d.ts
4139
packages/qwik-labs/lib-types
4240
packages/qwik-labs/vite
4341

44-
# TODO: Figure out why this doesn't pass in CI
45-
packages/qwik/src/core/props/props.ts
46-
packages/docs/src/routes/docs/overview/index.mdx
42+
# insights cache files
43+
**/q-insights.json
44+
45+
# Exclude builder js files from formatting - delete after migration
46+
packages/docs/public/builder

packages/docs/README.md

Lines changed: 27 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -60,49 +60,6 @@ If you don't already have an account, then [create a Cloudflare account here](ht
6060

6161
Within the projects "Settings" for "Build and deployments", the "Build command" should be `pnpm build`, and the "Build output directory" should be set to `dist`.
6262

63-
## Algolia search
64-
65-
STILL WIP
66-
67-
resource: https://docsearch.algolia.com/
68-
69-
### Crawler
70-
71-
Setup in https://crawler.algolia.com/
72-
73-
### Debug local site with crawler settings
74-
75-
To crawl localhost site for testing index settings for content hierarchy. use this docker command
76-
77-
```shell
78-
# create apiKey via https://www.algolia.com/account/api-keys
79-
touch .env
80-
# APPLICATION_ID=APPLICATION_ID
81-
# API_KEY=API_KEY
82-
docker run -it --rm --env-file=.env -e "CONFIG=$(cat ./packages/docs/algolia.json | jq -r tostring)" algolia/docsearch-scraper
83-
```
84-
85-
see guide of [DocSearch-legacy docker command](https://docsearch.algolia.com/docs/legacy/run-your-own#run-the-crawl-from-the-docker-image)
86-
87-
> In mac machine, docker container can access host's network, workaround is to use `host.docker.internal`
88-
## Cloudflare Pages
89-
90-
Cloudflare's [wrangler](https://github.com/cloudflare/wrangler) CLI can be used to preview a production build locally. To start a local server, run:
91-
92-
```
93-
pnpm serve
94-
```
95-
96-
Then visit [http://localhost:8787/](http://localhost:8787/)
97-
98-
### Deployments
99-
100-
[Cloudflare Pages](https://pages.cloudflare.com/) are deployable through their [Git provider integrations](https://developers.cloudflare.com/pages/platform/git-integration/).
101-
102-
If you don't already have an account, then [create a Cloudflare account here](https://dash.cloudflare.com/sign-up/pages). Next go to your dashboard and follow the [Cloudflare Pages deployment guide](https://developers.cloudflare.com/pages/framework-guides/deploy-anything/).
103-
104-
Within the projects "Settings" for "Build and deployments", the "Build command" should be `pnpm build`, and the "Build output directory" should be set to `dist`.
105-
10663
### Function Invocation Routes
10764

10865
Cloudflare Page's [function-invocation-routes config](https://developers.cloudflare.com/pages/platform/functions/routing/#functions-invocation-routes) can be used to include, or exclude, certain paths to be used by the worker functions. Having a `_routes.json` file gives developers more granular control over when your Function is invoked.
@@ -130,4 +87,30 @@ By default, the Cloudflare pages adaptor _does not_ include a `public/_routes.js
13087

13188
In the above example, it's saying _all_ pages should be SSR'd. However, the root static files such as `/favicon.ico` and any static assets in `/build/*` should be excluded from the Functions, and instead treated as a static file.
13289

133-
In most cases the generated `dist/_routes.json` file is ideal. However, if you need more granular control over each path, you can instead provide you're own `public/_routes.json` file. When the project provides its own `public/_routes.json` file, then the Cloudflare adaptor will not auto-generate the routes config and instead use the committed one within the `public` directory.
90+
In most cases the generated `dist/_routes.json` file is ideal. However, if you need more granular control over each path, you can instead provide you're own `public/_routes.json` file. When the project provides its own `public/_routes.json` file, then the Cloudflare adaptor will not auto-generate the routes config and instead use the one committed within the `public` directory.
91+
92+
## Algolia search
93+
94+
STILL WIP
95+
96+
resource: https://docsearch.algolia.com/
97+
98+
### Crawler
99+
100+
Setup in https://crawler.algolia.com/
101+
102+
### Debug local site with crawler settings
103+
104+
To crawl localhost site for testing index settings for content hierarchy. use this docker command
105+
106+
```shell
107+
# create apiKey via https://www.algolia.com/account/api-keys
108+
touch .env
109+
# APPLICATION_ID=APPLICATION_ID
110+
# API_KEY=API_KEY
111+
docker run -it --rm --env-file=.env -e "CONFIG=$(cat ./packages/docs/algolia.json | jq -r tostring)" algolia/docsearch-scraper
112+
```
113+
114+
see guide of [DocSearch-legacy docker command](https://docsearch.algolia.com/docs/legacy/run-your-own#run-the-crawl-from-the-docker-image)
115+
116+
> In mac machines, docker containers can't access host's network directly, a workaround is to use host.docker.internal`
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
import{useLexicalScope}from"./qwik-0.100.0.js";export const Component856B004403F841C789CF61F2A180C93F_onClick_0=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
2+
try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`);
3+
interactiveScroller.scrollLeft -= interactiveScroller.children[1].clientWidth;
4+
}
5+
catch (err) {
6+
console.warn('Builder code error', err);
7+
}
8+
};export const Component856B004403F841C789CF61F2A180C93F_onClick_1=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
9+
try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`);
10+
interactiveScroller.scrollLeft += interactiveScroller.children[1].clientWidth;
11+
}
12+
catch (err) {
13+
console.warn('Builder code error', err);
14+
}
15+
};export const Component856B004403F841C789CF61F2A180C93F_onClick_2=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
16+
try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`);
17+
interactiveScroller.scrollLeft -= interactiveScroller.children[1].clientWidth;
18+
}
19+
catch (err) {
20+
console.warn('Builder code error', err);
21+
}
22+
};export const Component856B004403F841C789CF61F2A180C93F_onClick_3=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
23+
try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`);
24+
interactiveScroller.scrollLeft += interactiveScroller.children[1].clientWidth;
25+
}
26+
catch (err) {
27+
console.warn('Builder code error', err);
28+
}
29+
};export const __proxyMerge__=function __proxyMerge__(state,local){return new Proxy(state,{get:function(obj,prop){if(local && prop in local){return local[prop];}else{return state[prop];}},set:function(obj,prop,value){obj[prop] = value;return true;},});};export const Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_0=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
30+
try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`);
31+
interactiveScroller.scrollLeft -= interactiveScroller.children[1].clientWidth;
32+
}
33+
catch (err) {
34+
console.warn('Builder code error', err);
35+
}
36+
};export const Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_1=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
37+
try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`);
38+
interactiveScroller.scrollLeft += interactiveScroller.children[1].clientWidth;
39+
}
40+
catch (err) {
41+
console.warn('Builder code error', err);
42+
}
43+
};export const Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_2=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
44+
try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`);
45+
interactiveScroller.scrollLeft -= interactiveScroller.children[1].clientWidth;
46+
}
47+
catch (err) {
48+
console.warn('Builder code error', err);
49+
}
50+
};export const Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_3=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
51+
try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`);
52+
interactiveScroller.scrollLeft += interactiveScroller.children[1].clientWidth;
53+
}
54+
catch (err) {
55+
console.warn('Builder code error', err);
56+
}
57+
};export const Component3C0255D6D2D94E3390539DEE6AF8C7C0_onClick_0=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);;
58+
try { return state.slide = state.$index;
59+
}
60+
catch (err) {
61+
console.warn('Builder code error', err);
62+
}
63+
};export const ComponentB417246B77124735ADE3A2694CB86BF9_onClick_0=(event)=>{
64+
try { navigator.clipboard.writeText(`npm create qwik@latest`);
65+
event.target.innerText = "Copied to Clipboard";
66+
setTimeout(() => (event.target.innerText = "npm create qwik@latest"), 2000);
67+
}
68+
catch (err) {
69+
console.warn('Builder code error', err);
70+
}
71+
};

0 commit comments

Comments
 (0)