create-qwik 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +36 -36
- package/package.json +1 -1
- package/starters/apps/base/.vscode/launch.json +17 -0
- package/starters/apps/base/package.json +9 -9
- package/starters/apps/basic/package.json +1 -1
- package/starters/apps/basic/src/components/starter/next-steps/next-steps.tsx +1 -1
- package/starters/apps/basic/src/routes/layout.tsx +12 -0
- package/starters/apps/empty/package.json +1 -1
- package/starters/apps/empty/src/global.css +0 -7
- package/starters/apps/empty/src/routes/layout.tsx +12 -0
- package/starters/apps/library/package.json +7 -7
- package/starters/apps/site-with-visual-cms/.env +2 -0
- package/starters/apps/site-with-visual-cms/builder-integration.ts +853 -0
- package/starters/apps/site-with-visual-cms/package.json +17 -0
- package/starters/apps/site-with-visual-cms/public/favicon.svg +1 -0
- package/starters/apps/site-with-visual-cms/public/manifest.json +9 -0
- package/starters/apps/site-with-visual-cms/public/robots.txt +0 -0
- package/starters/apps/site-with-visual-cms/src/components/builder-registry.ts +15 -0
- package/starters/apps/site-with-visual-cms/src/components/counter/counter.module.css +24 -0
- package/starters/apps/site-with-visual-cms/src/components/counter/counter.tsx +81 -0
- package/starters/apps/site-with-visual-cms/src/components/footer/footer.module.css +17 -0
- package/starters/apps/site-with-visual-cms/src/components/footer/footer.tsx +14 -0
- package/starters/apps/site-with-visual-cms/src/components/gauge/gauge.module.css +22 -0
- package/starters/apps/site-with-visual-cms/src/components/gauge/index.tsx +30 -0
- package/starters/apps/site-with-visual-cms/src/components/header/header.module.css +50 -0
- package/starters/apps/site-with-visual-cms/src/components/header/header.tsx +34 -0
- package/starters/apps/site-with-visual-cms/src/components/icons/qwik.tsx +38 -0
- package/starters/apps/{documentation-site → site-with-visual-cms}/src/components/router-head/router-head.tsx +3 -3
- package/starters/apps/site-with-visual-cms/src/entry.dev.tsx +17 -0
- package/starters/apps/site-with-visual-cms/src/entry.preview.tsx +20 -0
- package/starters/apps/site-with-visual-cms/src/entry.ssr.tsx +27 -0
- package/starters/apps/site-with-visual-cms/src/global.css +116 -0
- package/starters/apps/{documentation-site → site-with-visual-cms}/src/root.tsx +3 -1
- package/starters/apps/site-with-visual-cms/src/routes/[...index]/index.tsx +57 -0
- package/starters/apps/{documentation-site → site-with-visual-cms}/src/routes/layout.tsx +2 -2
- package/starters/apps/site-with-visual-cms/src/routes/service-worker.ts +18 -0
- package/starters/apps/site-with-visual-cms/vite.config.ts +10 -0
- package/starters/apps/documentation-site/package.json +0 -13
- package/starters/apps/documentation-site/src/components/breadcrumbs/breadcrumbs.css +0 -25
- package/starters/apps/documentation-site/src/components/breadcrumbs/breadcrumbs.tsx +0 -74
- package/starters/apps/documentation-site/src/components/footer/footer.css +0 -22
- package/starters/apps/documentation-site/src/components/footer/footer.tsx +0 -36
- package/starters/apps/documentation-site/src/components/header/header.css +0 -34
- package/starters/apps/documentation-site/src/components/header/header.tsx +0 -26
- package/starters/apps/documentation-site/src/components/icons/qwik.tsx +0 -20
- package/starters/apps/documentation-site/src/components/menu/menu.css +0 -13
- package/starters/apps/documentation-site/src/components/menu/menu.tsx +0 -36
- package/starters/apps/documentation-site/src/components/on-this-page/on-this-page.css +0 -33
- package/starters/apps/documentation-site/src/components/on-this-page/on-this-page.tsx +0 -62
- package/starters/apps/documentation-site/src/global.css +0 -66
- package/starters/apps/documentation-site/src/routes/about-us/index.md +0 -15
- package/starters/apps/documentation-site/src/routes/docs/advanced/index.md +0 -11
- package/starters/apps/documentation-site/src/routes/docs/docs.css +0 -22
- package/starters/apps/documentation-site/src/routes/docs/getting-started/index.md +0 -13
- package/starters/apps/documentation-site/src/routes/docs/index.md +0 -22
- package/starters/apps/documentation-site/src/routes/docs/layout.tsx +0 -25
- package/starters/apps/documentation-site/src/routes/docs/menu.md +0 -21
- package/starters/apps/documentation-site/src/routes/index.tsx +0 -167
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WHAT IS THIS FILE?
|
|
3
|
+
*
|
|
4
|
+
* The service-worker.ts file is used to have state of the art prefetching.
|
|
5
|
+
* https://qwik.builder.io/qwikcity/prefetching/overview/
|
|
6
|
+
*
|
|
7
|
+
* Qwik uses a service worker to speed up your site and reduce latency, ie, not used in the traditional way of offline.
|
|
8
|
+
* You can also use this file to add more functionality that runs in the service worker.
|
|
9
|
+
*/
|
|
10
|
+
import { setupServiceWorker } from '@builder.io/qwik-city/service-worker';
|
|
11
|
+
|
|
12
|
+
setupServiceWorker();
|
|
13
|
+
|
|
14
|
+
addEventListener('install', () => self.skipWaiting());
|
|
15
|
+
|
|
16
|
+
addEventListener('activate', () => self.clients.claim());
|
|
17
|
+
|
|
18
|
+
declare const self: ServiceWorkerGlobalScope;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import { qwikVite } from '@builder.io/qwik/optimizer';
|
|
3
|
+
import { qwikCity } from '@builder.io/qwik-city/vite';
|
|
4
|
+
import { builderDevTools } from '@builder.io/dev-tools/vite';
|
|
5
|
+
|
|
6
|
+
export default defineConfig(() => {
|
|
7
|
+
return {
|
|
8
|
+
plugins: [builderDevTools(), qwikCity(), qwikVite()],
|
|
9
|
+
};
|
|
10
|
+
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "qwik-docs-starter",
|
|
3
|
-
"description": "Basic start point to build a docs site with Qwik",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"__qwik__": {
|
|
6
|
-
"priority": 0,
|
|
7
|
-
"displayName": "Documentation site (QwikCity)",
|
|
8
|
-
"qwikCity": true,
|
|
9
|
-
"docs": [
|
|
10
|
-
"https://qwik.builder.io/docs/getting-started/"
|
|
11
|
-
]
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
nav.breadcrumbs {
|
|
2
|
-
padding: 5px;
|
|
3
|
-
border-bottom: 1px solid #ddd;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
nav.breadcrumbs > span {
|
|
7
|
-
display: inline-block;
|
|
8
|
-
padding: 5px 0;
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
nav.breadcrumbs > span a {
|
|
13
|
-
text-decoration: none;
|
|
14
|
-
color: inherit;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
nav.breadcrumbs > span::after {
|
|
18
|
-
content: '>';
|
|
19
|
-
padding: 0 5px;
|
|
20
|
-
opacity: 0.4;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
nav.breadcrumbs > span:last-child::after {
|
|
24
|
-
display: none;
|
|
25
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
2
|
-
import { useContent, useLocation, ContentMenu } from '@builder.io/qwik-city';
|
|
3
|
-
import styles from './breadcrumbs.css?inline';
|
|
4
|
-
|
|
5
|
-
export const Breadcrumbs = component$(() => {
|
|
6
|
-
useStyles$(styles);
|
|
7
|
-
|
|
8
|
-
const { menu } = useContent();
|
|
9
|
-
const loc = useLocation();
|
|
10
|
-
|
|
11
|
-
const breadcrumbs = createBreadcrumbs(menu, loc.url.pathname);
|
|
12
|
-
if (breadcrumbs.length === 0) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<nav class="breadcrumbs">
|
|
18
|
-
{breadcrumbs.map((b) => (
|
|
19
|
-
<span>{b.href ? <a href={b.href}>{b.text}</a> : b.text}</span>
|
|
20
|
-
))}
|
|
21
|
-
</nav>
|
|
22
|
-
);
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
export function createBreadcrumbs(menu: ContentMenu | undefined, pathname: string) {
|
|
26
|
-
if (menu?.items) {
|
|
27
|
-
for (const indexA of menu.items) {
|
|
28
|
-
const breadcrumbA: ContentBreadcrumb = {
|
|
29
|
-
text: indexA.text,
|
|
30
|
-
};
|
|
31
|
-
if (typeof indexA.href === 'string') {
|
|
32
|
-
breadcrumbA.href = indexA.href;
|
|
33
|
-
}
|
|
34
|
-
if (indexA.href === pathname) {
|
|
35
|
-
return [breadcrumbA];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (indexA.items) {
|
|
39
|
-
for (const indexB of indexA.items) {
|
|
40
|
-
const breadcrumbB: ContentBreadcrumb = {
|
|
41
|
-
text: indexB.text,
|
|
42
|
-
};
|
|
43
|
-
if (typeof indexB.href === 'string') {
|
|
44
|
-
breadcrumbB.href = indexB.href;
|
|
45
|
-
}
|
|
46
|
-
if (indexB.href === pathname) {
|
|
47
|
-
return [breadcrumbA, breadcrumbB];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (indexB.items) {
|
|
51
|
-
for (const indexC of indexB.items) {
|
|
52
|
-
const breadcrumbC: ContentBreadcrumb = {
|
|
53
|
-
text: indexC.text,
|
|
54
|
-
};
|
|
55
|
-
if (typeof indexC.href === 'string') {
|
|
56
|
-
breadcrumbC.href = indexC.href;
|
|
57
|
-
}
|
|
58
|
-
if (indexC.href === pathname) {
|
|
59
|
-
return [breadcrumbA, breadcrumbB, breadcrumbC];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return [];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
interface ContentBreadcrumb {
|
|
72
|
-
text: string;
|
|
73
|
-
href?: string;
|
|
74
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
footer {
|
|
2
|
-
border-top: 0.5px solid #ddd;
|
|
3
|
-
margin-top: 40px;
|
|
4
|
-
padding: 20px;
|
|
5
|
-
text-align: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
footer a {
|
|
9
|
-
color: #9e9e9e;
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
footer ul {
|
|
14
|
-
list-style: none;
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
footer li {
|
|
20
|
-
display: inline-block;
|
|
21
|
-
padding: 6px 12px;
|
|
22
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
2
|
-
import styles from './footer.css?inline';
|
|
3
|
-
|
|
4
|
-
export default component$(() => {
|
|
5
|
-
useStyles$(styles);
|
|
6
|
-
|
|
7
|
-
return (
|
|
8
|
-
<footer>
|
|
9
|
-
<ul>
|
|
10
|
-
<li>
|
|
11
|
-
<a href="/docs">Docs</a>
|
|
12
|
-
</li>
|
|
13
|
-
<li>
|
|
14
|
-
<a href="/about-us">About Us</a>
|
|
15
|
-
</li>
|
|
16
|
-
<li>
|
|
17
|
-
<a href="https://qwik.builder.io/">Qwik</a>
|
|
18
|
-
</li>
|
|
19
|
-
<li>
|
|
20
|
-
<a href="https://twitter.com/QwikDev">Twitter</a>
|
|
21
|
-
</li>
|
|
22
|
-
<li>
|
|
23
|
-
<a href="https://github.com/BuilderIO/qwik">GitHub</a>
|
|
24
|
-
</li>
|
|
25
|
-
<li>
|
|
26
|
-
<a href="https://qwik.builder.io/chat">Chat</a>
|
|
27
|
-
</li>
|
|
28
|
-
</ul>
|
|
29
|
-
<div>
|
|
30
|
-
<a href="https://www.builder.io/" target="_blank" class="builder">
|
|
31
|
-
Made with ♡ by Builder.io
|
|
32
|
-
</a>
|
|
33
|
-
</div>
|
|
34
|
-
</footer>
|
|
35
|
-
);
|
|
36
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
header {
|
|
2
|
-
position: sticky;
|
|
3
|
-
top: 0;
|
|
4
|
-
z-index: 11;
|
|
5
|
-
display: grid;
|
|
6
|
-
grid-template-columns: minmax(130px, auto) 1fr;
|
|
7
|
-
gap: 30px;
|
|
8
|
-
height: 80px;
|
|
9
|
-
width: 100%;
|
|
10
|
-
padding: 10px;
|
|
11
|
-
background-color: white;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
header a.logo {
|
|
16
|
-
display: block;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
header a {
|
|
20
|
-
text-decoration: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
header nav {
|
|
24
|
-
text-align: right;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
header nav a {
|
|
28
|
-
display: inline-block;
|
|
29
|
-
padding: 5px 15px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
header nav a:hover {
|
|
33
|
-
text-decoration: underline;
|
|
34
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
2
|
-
import { useLocation } from '@builder.io/qwik-city';
|
|
3
|
-
import { QwikLogo } from '../icons/qwik';
|
|
4
|
-
import styles from './header.css?inline';
|
|
5
|
-
|
|
6
|
-
export default component$(() => {
|
|
7
|
-
useStyles$(styles);
|
|
8
|
-
|
|
9
|
-
const { url } = useLocation();
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<header>
|
|
13
|
-
<a class="logo" href="/">
|
|
14
|
-
<QwikLogo />
|
|
15
|
-
</a>
|
|
16
|
-
<nav>
|
|
17
|
-
<a href="/docs" class={{ active: url.pathname.startsWith('/docs') }}>
|
|
18
|
-
Docs
|
|
19
|
-
</a>
|
|
20
|
-
<a href="/about-us" class={{ active: url.pathname.startsWith('/about-us') }}>
|
|
21
|
-
About Us
|
|
22
|
-
</a>
|
|
23
|
-
</nav>
|
|
24
|
-
</header>
|
|
25
|
-
);
|
|
26
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export const QwikLogo = () => (
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 167 53">
|
|
3
|
-
<path
|
|
4
|
-
fill="#000"
|
|
5
|
-
d="M81.95 46.59h-6.4V35.4a12.25 12.25 0 0 1-7.06 2.17c-3.47 0-6.06-.94-7.67-2.92-1.6-1.96-2.42-5.45-2.42-10.43 0-5.1.95-8.62 2.87-10.67 1.96-2.08 5.1-3.09 9.43-3.09 4.1 0 7.82.57 11.25 1.67V46.6Zm-6.4-30.31a16.6 16.6 0 0 0-4.85-.66c-2.17 0-3.73.56-4.6 1.7-.85 1.17-1.32 3.38-1.32 6.65 0 3.08.41 5.14 1.26 6.26.86 1.1 2.33 1.67 4.5 1.67 2.84 0 5.01-1.17 5.01-2.62v-13Zm15.58-5.14c2.27 6.3 4.2 12.6 5.86 18.95 2.22-6.5 4.1-12.8 5.55-18.95h5.61a187.5 187.5 0 0 1 5.3 18.95c2.52-6.9 4.5-13.21 5.95-18.95h6.31a285.68 285.68 0 0 1-8.92 25.76h-7.53c-.86-4.6-2.22-10.14-4.04-16.75a151.51 151.51 0 0 1-4.89 16.75H92.8a287.88 287.88 0 0 0-8.17-25.76h6.5Zm41.7-3.58c-2.83 0-3.63-.7-3.63-3.59 0-2.57.82-3.18 3.63-3.18 2.83 0 3.63.6 3.63 3.18 0 2.89-.8 3.59-3.63 3.59Zm-3.18 3.58h6.4V36.9h-6.4V11.14Zm36.65 0c-4.54 6.46-7.72 10.39-9.49 11.8 1.46.95 5.36 5.95 10.2 13.98h-7.38c-6.02-9.13-8.89-13.07-10.3-13.67v13.67h-6.4V0h6.4v23.23c1.45-1.06 4.63-5.1 9.54-12.09h7.43Z"
|
|
6
|
-
/>
|
|
7
|
-
<path
|
|
8
|
-
fill="#18B6F6"
|
|
9
|
-
d="M40.97 52.54 32.1 43.7l-.14.02v-.1l-18.9-18.66 4.66-4.5-2.74-15.7L2 20.87a7.14 7.14 0 0 0-1.03 8.52l8.11 13.45a6.81 6.81 0 0 0 5.92 3.3l4.02-.05 21.96 6.46Z"
|
|
10
|
-
/>
|
|
11
|
-
<path
|
|
12
|
-
fill="#AC7EF4"
|
|
13
|
-
d="m45.82 20.54-1.78-3.3-.93-1.68-.37-.66-.04.04-4.9-8.47a6.85 6.85 0 0 0-5.99-3.43l-4.28.12-12.8.04a6.85 6.85 0 0 0-5.85 3.37L1.1 21.99 15 4.73l18.24 20.04L30 28.04l1.94 15.68.02-.04v.04h-.04l.04.04 1.51 1.47 7.36 7.19c.3.29.81-.06.6-.43l-4.54-8.93 7.91-14.63.26-.3a6.73 6.73 0 0 0 .76-7.6Z"
|
|
14
|
-
/>
|
|
15
|
-
<path
|
|
16
|
-
fill="#fff"
|
|
17
|
-
d="M33.3 24.69 15.02 4.75l2.6 15.62-4.66 4.51L31.91 43.7l-1.7-15.62 3.1-3.4Z"
|
|
18
|
-
/>
|
|
19
|
-
</svg>
|
|
20
|
-
);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
2
|
-
import { useContent, Link, useLocation } from '@builder.io/qwik-city';
|
|
3
|
-
import styles from './menu.css?inline';
|
|
4
|
-
|
|
5
|
-
export default component$(() => {
|
|
6
|
-
useStyles$(styles);
|
|
7
|
-
|
|
8
|
-
const { menu } = useContent();
|
|
9
|
-
const loc = useLocation();
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<aside class="menu">
|
|
13
|
-
{menu
|
|
14
|
-
? menu.items?.map((item) => (
|
|
15
|
-
<>
|
|
16
|
-
<h5>{item.text}</h5>
|
|
17
|
-
<ul>
|
|
18
|
-
{item.items?.map((item) => (
|
|
19
|
-
<li>
|
|
20
|
-
<Link
|
|
21
|
-
href={item.href}
|
|
22
|
-
class={{
|
|
23
|
-
'is-active': loc.url.pathname === item.href,
|
|
24
|
-
}}
|
|
25
|
-
>
|
|
26
|
-
{item.text}
|
|
27
|
-
</Link>
|
|
28
|
-
</li>
|
|
29
|
-
))}
|
|
30
|
-
</ul>
|
|
31
|
-
</>
|
|
32
|
-
))
|
|
33
|
-
: null}
|
|
34
|
-
</aside>
|
|
35
|
-
);
|
|
36
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
.on-this-page {
|
|
2
|
-
padding-bottom: 20px;
|
|
3
|
-
font-size: 0.9em;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.on-this-page h6 {
|
|
7
|
-
margin: 10px 0;
|
|
8
|
-
font-weight: bold;
|
|
9
|
-
text-transform: uppercase;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.on-this-page ul {
|
|
13
|
-
margin: 0;
|
|
14
|
-
padding: 0 0 20px 0;
|
|
15
|
-
list-style: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.on-this-page a {
|
|
19
|
-
position: relative;
|
|
20
|
-
display: block;
|
|
21
|
-
border: 0 solid #ddd;
|
|
22
|
-
border-left-width: 2px;
|
|
23
|
-
padding: 4px 2px 4px 8px;
|
|
24
|
-
text-decoration: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.on-this-page a.indent {
|
|
28
|
-
padding-left: 30px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.on-this-page a:hover {
|
|
32
|
-
border-color: var(--theme-accent);
|
|
33
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { useContent, useLocation } from '@builder.io/qwik-city';
|
|
2
|
-
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
3
|
-
import styles from './on-this-page.css?inline';
|
|
4
|
-
|
|
5
|
-
export default component$(() => {
|
|
6
|
-
useStyles$(styles);
|
|
7
|
-
|
|
8
|
-
const { headings } = useContent();
|
|
9
|
-
const contentHeadings = headings?.filter((h) => h.level === 2 || h.level === 3) || [];
|
|
10
|
-
|
|
11
|
-
const { url } = useLocation();
|
|
12
|
-
const editUrl = `#update-your-edit-url-for-${url.pathname}`;
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<aside class="on-this-page">
|
|
16
|
-
{contentHeadings.length > 0 ? (
|
|
17
|
-
<>
|
|
18
|
-
<h6>On This Page</h6>
|
|
19
|
-
<ul>
|
|
20
|
-
{contentHeadings.map((h) => (
|
|
21
|
-
<li>
|
|
22
|
-
<a
|
|
23
|
-
href={`#${h.id}`}
|
|
24
|
-
class={{
|
|
25
|
-
block: true,
|
|
26
|
-
indent: h.level > 2,
|
|
27
|
-
}}
|
|
28
|
-
>
|
|
29
|
-
{h.text}
|
|
30
|
-
</a>
|
|
31
|
-
</li>
|
|
32
|
-
))}
|
|
33
|
-
</ul>
|
|
34
|
-
</>
|
|
35
|
-
) : null}
|
|
36
|
-
|
|
37
|
-
<h6>More</h6>
|
|
38
|
-
<ul>
|
|
39
|
-
<li>
|
|
40
|
-
<a href={editUrl} target="_blank">
|
|
41
|
-
Edit this page
|
|
42
|
-
</a>
|
|
43
|
-
</li>
|
|
44
|
-
<li>
|
|
45
|
-
<a href="https://qwik.builder.io/chat" target="_blank">
|
|
46
|
-
Join our community
|
|
47
|
-
</a>
|
|
48
|
-
</li>
|
|
49
|
-
<li>
|
|
50
|
-
<a href="https://github.com/BuilderIO/qwik" target="_blank">
|
|
51
|
-
GitHub
|
|
52
|
-
</a>
|
|
53
|
-
</li>
|
|
54
|
-
<li>
|
|
55
|
-
<a href="https://twitter.com/QwikDev" target="_blank">
|
|
56
|
-
@QwikDev
|
|
57
|
-
</a>
|
|
58
|
-
</li>
|
|
59
|
-
</ul>
|
|
60
|
-
</aside>
|
|
61
|
-
);
|
|
62
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
* {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
--user-font-scale: 1rem - 16px;
|
|
7
|
-
--max-width: calc(100% - 1rem);
|
|
8
|
-
|
|
9
|
-
--font-body: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
|
|
10
|
-
Apple Color Emoji, Segoe UI Emoji;
|
|
11
|
-
--font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console',
|
|
12
|
-
'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
|
|
13
|
-
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
|
14
|
-
|
|
15
|
-
color-scheme: light;
|
|
16
|
-
--theme-accent: #006ce9;
|
|
17
|
-
--theme-text: #181818;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@media (min-width: 50em) {
|
|
21
|
-
:root {
|
|
22
|
-
--max-width: 46em;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
body {
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
min-height: 100vh;
|
|
30
|
-
font-family: var(--font-body);
|
|
31
|
-
font-size: 1rem;
|
|
32
|
-
font-size: clamp(0.9rem, 0.75rem + 0.375vw + var(--user-font-scale), 1rem);
|
|
33
|
-
line-height: 1.5;
|
|
34
|
-
max-width: 100vw;
|
|
35
|
-
background: var(--theme-bg);
|
|
36
|
-
color: var(--theme-text);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
main {
|
|
40
|
-
padding: 10px 20px;
|
|
41
|
-
max-width: 960px;
|
|
42
|
-
margin: 0 auto;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
a {
|
|
46
|
-
color: var(--theme-accent);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
a:hover {
|
|
50
|
-
text-decoration: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
code,
|
|
54
|
-
kbd,
|
|
55
|
-
samp,
|
|
56
|
-
pre {
|
|
57
|
-
font-family: var(--font-mono);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
code {
|
|
61
|
-
background-color: rgb(224, 224, 224);
|
|
62
|
-
padding: 2px 4px;
|
|
63
|
-
border-radius: 3px;
|
|
64
|
-
font-size: 0.9em;
|
|
65
|
-
border-bottom: 2px solid #bfbfbf;
|
|
66
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: About Qwik
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# About Qwik
|
|
6
|
-
|
|
7
|
-
This page is at the root level, so it only uses the `/src/routes/layout.tsx` layout to wrap the page content.
|
|
8
|
-
|
|
9
|
-
## More info:
|
|
10
|
-
|
|
11
|
-
- [Layouts](https://qwik.builder.io/qwikcity/layout/overview/)
|
|
12
|
-
- [Routing](https://qwik.builder.io/qwikcity/routing/overview/)
|
|
13
|
-
- [Authoring Content](https://qwik.builder.io/qwikcity/content/component/)
|
|
14
|
-
- [Deployment](https://qwik.builder.io/deployments/overview/)
|
|
15
|
-
- [Static Site Generation (SSG)](https://qwik.builder.io/qwikcity/static-site-generation/overview/)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Advanced
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Advanced
|
|
6
|
-
|
|
7
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
8
|
-
|
|
9
|
-
## Ferrari
|
|
10
|
-
|
|
11
|
-
[Ferrari](https://en.wikipedia.org/wiki/Ferrari) (/fəˈrɑːri/; Italian: [ferˈraːri]) is an Italian luxury sports car manufacturer based in Maranello, Italy. Founded by Enzo Ferrari (1898–1988) in 1939 from the Alfa Romeo racing division as Auto Avio Costruzioni, the company built its first car in 1940, and produced its first Ferrari-badged car in 1947.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.docs {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-columns: 210px auto 190px;
|
|
4
|
-
grid-template-areas: 'menu article on-this-page';
|
|
5
|
-
gap: 40px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.docs h1 {
|
|
9
|
-
margin-top: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.docs .menu {
|
|
13
|
-
grid-area: menu;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.docs article {
|
|
17
|
-
grid-area: article;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.docs .on-this-page {
|
|
21
|
-
grid-area: on-this-page;
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Getting Started
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Getting Started
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
npm create qwik@latest
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Ford GT40
|
|
12
|
-
|
|
13
|
-
The [Ford GT40](https://en.wikipedia.org/wiki/Ford_GT40) is a high-performance endurance racing car commissioned by the Ford Motor Company. It grew out of the "Ford GT" (for Grand Touring) project, an effort to compete in European long-distance sports car races, against Ferrari, which won the prestigious 24 Hours of Le Mans race from 1960 to 1965. Ford succeeded with the GT40, winning the 1966 through 1969 races.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Overview
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Docs Site Overview
|
|
6
|
-
|
|
7
|
-
This page is wrapped by two layouts because this source file `src/routes/docs/index.md` is nested. The applied layouts are:
|
|
8
|
-
|
|
9
|
-
- `src/routes/docs/layout.tsx`
|
|
10
|
-
- `src/routes/layout.tsx`
|
|
11
|
-
|
|
12
|
-
## Left Menu
|
|
13
|
-
|
|
14
|
-
The left menu ordering is created with the `src/routes/docs/menu.md` markdown file.
|
|
15
|
-
|
|
16
|
-
## More info:
|
|
17
|
-
|
|
18
|
-
- [Layouts](https://qwik.builder.io/qwikcity/layout/overview/)
|
|
19
|
-
- [Routing](https://qwik.builder.io/qwikcity/routing/overview/)
|
|
20
|
-
- [Authoring Content](https://qwik.builder.io/qwikcity/content/component/)
|
|
21
|
-
- [Deployment](https://qwik.builder.io/deployments/overview/)
|
|
22
|
-
- [Static Site Generation (SSG)](https://qwik.builder.io/qwikcity/static-site-generation/overview/)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { component$, Slot, useStyles$ } from '@builder.io/qwik';
|
|
2
|
-
import type { DocumentHead } from '@builder.io/qwik-city';
|
|
3
|
-
import Menu from '~/components/menu/menu';
|
|
4
|
-
import OnThisPage from '~/components/on-this-page/on-this-page';
|
|
5
|
-
import styles from './docs.css?inline';
|
|
6
|
-
|
|
7
|
-
export default component$(() => {
|
|
8
|
-
useStyles$(styles);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<div class="docs">
|
|
12
|
-
<Menu />
|
|
13
|
-
<article>
|
|
14
|
-
<Slot />
|
|
15
|
-
</article>
|
|
16
|
-
<OnThisPage />
|
|
17
|
-
</div>
|
|
18
|
-
);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export const head: DocumentHead = ({ head }) => {
|
|
22
|
-
return {
|
|
23
|
-
title: `${head.title} - Documentation`,
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Guide
|
|
2
|
-
|
|
3
|
-
## Guides
|
|
4
|
-
|
|
5
|
-
- [Getting Started](getting-started/index.md)
|
|
6
|
-
|
|
7
|
-
## Advanced
|
|
8
|
-
|
|
9
|
-
- [Overview](advanced/index.md)
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
|
|
13
|
-
- [Hello World](https://qwik.builder.io/examples/introduction/hello-world/)
|
|
14
|
-
- [Tutorials](https://qwik.builder.io/tutorial/welcome/overview/)
|
|
15
|
-
- [Playground](https://qwik.builder.io/playground/)
|
|
16
|
-
|
|
17
|
-
## Community
|
|
18
|
-
|
|
19
|
-
- [@QwikDev](https://twitter.com/QwikDev)
|
|
20
|
-
- [Discord](https://qwik.builder.io/chat)
|
|
21
|
-
- [GitHub](https://github.com/BuilderIO/qwik)
|