create-qwik 0.0.108-dev20220914040446 → 0.0.108-dev20220916152030
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 +60 -64
- package/package.json +1 -1
- package/starters/apps/base/README.md +46 -11
- package/starters/apps/base/package.json +7 -7
- package/starters/apps/base/public/favicon.svg +1 -0
- package/starters/apps/{qwik-city → base}/src/routes/service-worker.ts +0 -0
- package/starters/apps/base/vite.config.ts +3 -1
- package/starters/apps/blank/package.json +2 -1
- package/starters/apps/blank/src/components/header/header.css +37 -0
- package/starters/apps/blank/src/components/header/header.tsx +34 -0
- package/starters/apps/blank/src/components/icons/qwik.tsx +32 -0
- package/starters/apps/blank/src/components/router-head/router-head.tsx +44 -0
- package/starters/apps/blank/src/global.css +70 -3
- package/starters/apps/blank/src/root.tsx +17 -9
- package/starters/apps/blank/src/routes/index.tsx +81 -0
- package/starters/apps/blank/src/routes/layout.tsx +13 -0
- package/starters/apps/qwik-city/package.json +1 -1
- package/starters/apps/base/public/favicon.ico +0 -0
- package/starters/apps/base/public/favicons/android-chrome-192x192.png +0 -0
- package/starters/apps/base/public/favicons/apple-touch-icon.png +0 -0
- package/starters/apps/base/public/favicons/favicon-16x16.png +0 -0
- package/starters/apps/base/public/favicons/favicon-32x32.png +0 -0
- package/starters/apps/base/public/favicons/favicon.svg +0 -13
- package/starters/apps/blank/src/components/app/app.tsx +0 -54
- package/starters/apps/blank/src/components/logo/logo.tsx +0 -16
- package/starters/apps/blank/src/entry.preview.tsx +0 -18
- package/starters/apps/blank/src/entry.ssr.tsx +0 -15
- package/starters/apps/qwik-city/src/components/head/analytics.tsx +0 -13
- package/starters/apps/qwik-city/src/components/head/head.tsx +0 -34
- package/starters/apps/qwik-city/src/components/head/social.tsx +0 -10
- package/starters/apps/qwik-city/src/entry.ssr.tsx +0 -17
- package/starters/apps/qwik-city/src/root.tsx +0 -16
- package/starters/apps/qwik-city/vite.config.ts +0 -10
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { component$ } from '@builder.io/qwik';
|
|
2
|
-
import { useDocumentHead, useLocation } from '@builder.io/qwik-city';
|
|
3
|
-
import { Analytics } from './analytics';
|
|
4
|
-
import { Social } from './social';
|
|
5
|
-
|
|
6
|
-
export const Head = component$(() => {
|
|
7
|
-
const head = useDocumentHead();
|
|
8
|
-
const loc = useLocation();
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<head>
|
|
12
|
-
<meta charSet="utf-8" />
|
|
13
|
-
|
|
14
|
-
<title>{head.title ? `${head.title} - Qwik` : `Qwik`}</title>
|
|
15
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
16
|
-
<link rel="canonical" href={loc.href} />
|
|
17
|
-
|
|
18
|
-
{head.meta.map((m) => (
|
|
19
|
-
<meta {...m} />
|
|
20
|
-
))}
|
|
21
|
-
|
|
22
|
-
{head.links.map((l) => (
|
|
23
|
-
<link {...l} />
|
|
24
|
-
))}
|
|
25
|
-
|
|
26
|
-
{head.styles.map((s) => (
|
|
27
|
-
<style {...s.props} dangerouslySetInnerHTML={s.style} />
|
|
28
|
-
))}
|
|
29
|
-
|
|
30
|
-
<Social />
|
|
31
|
-
<Analytics loc={loc} />
|
|
32
|
-
</head>
|
|
33
|
-
);
|
|
34
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export const Social = () => {
|
|
2
|
-
return (
|
|
3
|
-
<>
|
|
4
|
-
<meta property="og:site_name" content="Qwik" />
|
|
5
|
-
<meta name="twitter:card" content="summary_large_image" />
|
|
6
|
-
<meta name="twitter:site" content="@QwikDev" />
|
|
7
|
-
<meta name="twitter:title" content="Qwik" />
|
|
8
|
-
</>
|
|
9
|
-
);
|
|
10
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { renderToStream, RenderToStreamOptions } from '@builder.io/qwik/server';
|
|
2
|
-
import { manifest } from '@qwik-client-manifest';
|
|
3
|
-
import Root from './root';
|
|
4
|
-
|
|
5
|
-
export default function (opts: RenderToStreamOptions) {
|
|
6
|
-
return renderToStream(<Root />, {
|
|
7
|
-
manifest,
|
|
8
|
-
...opts,
|
|
9
|
-
prefetchStrategy: {
|
|
10
|
-
implementation: {
|
|
11
|
-
linkInsert: null,
|
|
12
|
-
workerFetchInsert: null,
|
|
13
|
-
prefetchEvent: 'always',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { QwikCity, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
|
|
2
|
-
import { Head } from './components/head/head';
|
|
3
|
-
|
|
4
|
-
import './global.css';
|
|
5
|
-
|
|
6
|
-
export default function () {
|
|
7
|
-
return (
|
|
8
|
-
<QwikCity>
|
|
9
|
-
<Head />
|
|
10
|
-
<body lang="en">
|
|
11
|
-
<RouterOutlet />
|
|
12
|
-
<ServiceWorkerRegister />
|
|
13
|
-
</body>
|
|
14
|
-
</QwikCity>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
import { qwikVite } from '@builder.io/qwik/optimizer';
|
|
3
|
-
import { qwikCity } from '@builder.io/qwik-city/vite';
|
|
4
|
-
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
5
|
-
|
|
6
|
-
export default defineConfig(() => {
|
|
7
|
-
return {
|
|
8
|
-
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
|
|
9
|
-
};
|
|
10
|
-
});
|