create-qwik 1.5.7-dev20240622232308 → 1.6.0-dev20240709155456

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.
Files changed (67) hide show
  1. package/index.cjs +11 -11
  2. package/package.json +1 -1
  3. package/starters/apps/base/package.json +3 -3
  4. package/starters/apps/base/vite.config.ts +1 -1
  5. package/starters/apps/empty/package.json +1 -1
  6. package/starters/apps/empty/src/root.tsx +8 -2
  7. package/starters/apps/library/package.json +3 -3
  8. package/starters/apps/{basic → playground}/package.json +2 -2
  9. package/starters/apps/{site-with-visual-cms → playground}/src/root.tsx +8 -2
  10. package/starters/apps/basic/src/root.tsx +0 -32
  11. package/starters/apps/site-with-visual-cms/.env +0 -2
  12. package/starters/apps/site-with-visual-cms/README.md +0 -15
  13. package/starters/apps/site-with-visual-cms/package.json +0 -17
  14. package/starters/apps/site-with-visual-cms/public/favicon.svg +0 -1
  15. package/starters/apps/site-with-visual-cms/public/manifest.json +0 -9
  16. package/starters/apps/site-with-visual-cms/public/robots.txt +0 -0
  17. package/starters/apps/site-with-visual-cms/src/components/builder-registry.ts +0 -25
  18. package/starters/apps/site-with-visual-cms/src/components/counter/counter.module.css +0 -23
  19. package/starters/apps/site-with-visual-cms/src/components/counter/counter.tsx +0 -81
  20. package/starters/apps/site-with-visual-cms/src/components/footer/footer.module.css +0 -17
  21. package/starters/apps/site-with-visual-cms/src/components/footer/footer.tsx +0 -14
  22. package/starters/apps/site-with-visual-cms/src/components/gauge/gauge.module.css +0 -22
  23. package/starters/apps/site-with-visual-cms/src/components/gauge/index.tsx +0 -36
  24. package/starters/apps/site-with-visual-cms/src/components/header/header.module.css +0 -50
  25. package/starters/apps/site-with-visual-cms/src/components/header/header.tsx +0 -43
  26. package/starters/apps/site-with-visual-cms/src/components/icons/qwik.tsx +0 -44
  27. package/starters/apps/site-with-visual-cms/src/components/router-head/router-head.tsx +0 -32
  28. package/starters/apps/site-with-visual-cms/src/entry.dev.tsx +0 -17
  29. package/starters/apps/site-with-visual-cms/src/entry.preview.tsx +0 -20
  30. package/starters/apps/site-with-visual-cms/src/entry.ssr.tsx +0 -33
  31. package/starters/apps/site-with-visual-cms/src/global.css +0 -128
  32. package/starters/apps/site-with-visual-cms/src/routes/[...index]/index.tsx +0 -61
  33. package/starters/apps/site-with-visual-cms/src/routes/layout.tsx +0 -15
  34. package/starters/apps/site-with-visual-cms/src/routes/service-worker.ts +0 -18
  35. package/starters/apps/site-with-visual-cms/vite.config.ts +0 -11
  36. /package/starters/apps/{basic → playground}/public/favicon.svg +0 -0
  37. /package/starters/apps/{basic → playground}/public/fonts/poppins-400.woff2 +0 -0
  38. /package/starters/apps/{basic → playground}/public/fonts/poppins-500.woff2 +0 -0
  39. /package/starters/apps/{basic → playground}/public/fonts/poppins-700.woff2 +0 -0
  40. /package/starters/apps/{basic → playground}/public/manifest.json +0 -0
  41. /package/starters/apps/{basic → playground}/public/robots.txt +0 -0
  42. /package/starters/apps/{basic → playground}/src/components/router-head/router-head.tsx +0 -0
  43. /package/starters/apps/{basic → playground}/src/components/starter/counter/counter.module.css +0 -0
  44. /package/starters/apps/{basic → playground}/src/components/starter/counter/counter.tsx +0 -0
  45. /package/starters/apps/{basic → playground}/src/components/starter/footer/footer.module.css +0 -0
  46. /package/starters/apps/{basic → playground}/src/components/starter/footer/footer.tsx +0 -0
  47. /package/starters/apps/{basic → playground}/src/components/starter/gauge/gauge.module.css +0 -0
  48. /package/starters/apps/{basic → playground}/src/components/starter/gauge/index.tsx +0 -0
  49. /package/starters/apps/{basic → playground}/src/components/starter/header/header.module.css +0 -0
  50. /package/starters/apps/{basic → playground}/src/components/starter/header/header.tsx +0 -0
  51. /package/starters/apps/{basic → playground}/src/components/starter/hero/hero.module.css +0 -0
  52. /package/starters/apps/{basic → playground}/src/components/starter/hero/hero.tsx +0 -0
  53. /package/starters/apps/{basic → playground}/src/components/starter/icons/qwik.tsx +0 -0
  54. /package/starters/apps/{basic → playground}/src/components/starter/infobox/infobox.module.css +0 -0
  55. /package/starters/apps/{basic → playground}/src/components/starter/infobox/infobox.tsx +0 -0
  56. /package/starters/apps/{basic → playground}/src/components/starter/next-steps/next-steps.module.css +0 -0
  57. /package/starters/apps/{basic → playground}/src/components/starter/next-steps/next-steps.tsx +0 -0
  58. /package/starters/apps/{basic → playground}/src/global.css +0 -0
  59. /package/starters/apps/{basic → playground}/src/media/thunder.png +0 -0
  60. /package/starters/apps/{basic → playground}/src/routes/demo/flower/flower.css +0 -0
  61. /package/starters/apps/{basic → playground}/src/routes/demo/flower/index.tsx +0 -0
  62. /package/starters/apps/{basic → playground}/src/routes/demo/todolist/index.tsx +0 -0
  63. /package/starters/apps/{basic → playground}/src/routes/demo/todolist/todolist.module.css +0 -0
  64. /package/starters/apps/{basic → playground}/src/routes/index.tsx +0 -0
  65. /package/starters/apps/{basic → playground}/src/routes/layout.tsx +0 -0
  66. /package/starters/apps/{basic → playground}/src/routes/service-worker.ts +0 -0
  67. /package/starters/apps/{basic → playground}/src/routes/styles.css +0 -0
@@ -1,128 +0,0 @@
1
- /**
2
- * WHAT IS THIS FILE?
3
- *
4
- * Globally applied styles. No matter which components are in the page or matching route,
5
- * the styles in here will be applied to the Document, without any sort of CSS scoping.
6
- *
7
- */
8
-
9
- :root {
10
- --qwik-dark-blue: #006ce9;
11
- --qwik-light-blue: #18b6f6;
12
- --qwik-light-purple: #ac7ff4;
13
- --qwik-dark-purple: #713fc2;
14
- --qwik-dirty-black: #1d2033;
15
-
16
- --text-color: #ffffff;
17
- --main-background: #1c224a;
18
- --header-background: var(--main-background);
19
- --footer-background: #0d0c25;
20
- }
21
-
22
- /* SHELL ---------------------------------------- */
23
- html {
24
- font-family:
25
- ui-sans-serif,
26
- system-ui,
27
- -apple-system,
28
- BlinkMacSystemFont,
29
- "Segoe UI",
30
- Roboto,
31
- "Helvetica Neue",
32
- Arial,
33
- "Noto Sans",
34
- sans-serif,
35
- "Apple Color Emoji",
36
- "Segoe UI Emoji",
37
- "Segoe UI Symbol",
38
- "Noto Color Emoji";
39
- background: var(--footer-background);
40
- }
41
-
42
- body {
43
- padding: 0;
44
- margin: 0;
45
- color: var(--text-color);
46
- line-height: inherit;
47
- }
48
-
49
- main {
50
- background: var(--main-background);
51
- }
52
-
53
- /* HEADINGS ------------------------------------- */
54
- h1,
55
- h2,
56
- h3 {
57
- color: white;
58
- margin: 0;
59
- }
60
-
61
- h1 {
62
- font-size: 3.2rem;
63
- text-align: center;
64
- }
65
- h1 .highlight,
66
- h3 .highlight {
67
- color: var(--qwik-light-blue);
68
- }
69
-
70
- h2 {
71
- font-weight: 400;
72
- font-size: 2.4rem;
73
- }
74
- h2 .highlight {
75
- font-weight: 700;
76
- }
77
-
78
- h3 {
79
- font-size: 2rem;
80
- }
81
-
82
- @media screen and (min-width: 768px) {
83
- h1 {
84
- font-size: 5rem;
85
- }
86
- h2 {
87
- font-size: 3.4rem;
88
- }
89
- h3 {
90
- font-size: 3rem;
91
- }
92
- }
93
-
94
- /* TAGS ----------------------------------------- */
95
- a {
96
- text-decoration: none;
97
- color: var(--qwik-light-blue);
98
- }
99
-
100
- a:hover {
101
- text-decoration: underline;
102
- color: var(--qwik-light-blue);
103
- }
104
-
105
- code {
106
- background: rgba(230, 230, 230, 0.3);
107
- border-radius: 4px;
108
- padding: 2px 6px;
109
- }
110
-
111
- ul {
112
- margin: 0;
113
- padding-left: 20px;
114
- }
115
-
116
- /* Custom Builder CSS Class -----------------------------------------
117
- This is just an example of setting a custom CSS class on a Builder component,
118
- then applying styles to it here in the global CSS file.
119
- */
120
- .builder-footer a {
121
- color: var(--text-color);
122
- text-decoration: none;
123
- }
124
-
125
- .builder-footer a:hover {
126
- color: var(--qwik-light-blue);
127
- text-decoration: underline;
128
- }
@@ -1,61 +0,0 @@
1
- import { component$ } from "@builder.io/qwik";
2
- import { DocumentHead, routeLoader$ } from "@builder.io/qwik-city";
3
- import {
4
- getContent,
5
- RenderContent,
6
- getBuilderSearchParams,
7
- } from "@builder.io/sdk-qwik";
8
- import { CUSTOM_COMPONENTS } from "../../components/builder-registry";
9
-
10
- // This page is a catch-all for all routes that don't have a pre-defined route.
11
- // Using a catch-all route allows you to dynamically create new pages in Builder.
12
-
13
- // Use the `useBuilderContent` route loader to get your content from Builder.
14
- // `routeLoader$()` takes an async function to fetch content
15
- // from Builder with using `getContent()`.
16
- export const useBuilderContent = routeLoader$(async ({ url, error }) => {
17
- const isPreviewing = url.searchParams.has("builder.preview");
18
-
19
- // Fetch Builder.io Visual CMS content using the Qwik SDK.
20
- // The public API key is set in the .env file at the root
21
- // https://www.builder.io/c/docs/using-your-api-key
22
- const builderContent = await getContent({
23
- model: "page",
24
- apiKey: import.meta.env.PUBLIC_BUILDER_API_KEY,
25
- options: getBuilderSearchParams(url.searchParams),
26
- userAttributes: {
27
- urlPath: url.pathname,
28
- },
29
- });
30
-
31
- // If there's no content, throw a 404.
32
- // You can use your own 404 component here
33
- if (!builderContent && !isPreviewing) {
34
- throw error(404, "Page not found");
35
- }
36
-
37
- // return content fetched from Builder, which is JSON
38
- return builderContent;
39
- });
40
-
41
- export default component$(() => {
42
- const builderContent = useBuilderContent();
43
-
44
- // RenderContent component uses the `content` prop to render
45
- // the page, specified by the API Key, at the current URL path.
46
- return (
47
- <RenderContent
48
- model="page"
49
- content={builderContent.value}
50
- apiKey={import.meta.env.PUBLIC_BUILDER_API_KEY}
51
- customComponents={CUSTOM_COMPONENTS}
52
- />
53
- );
54
- });
55
-
56
- export const head: DocumentHead = ({ resolveValue }) => {
57
- const builderContent = resolveValue(useBuilderContent);
58
- return {
59
- title: builderContent?.data?.title,
60
- };
61
- };
@@ -1,15 +0,0 @@
1
- import { component$, Slot } from "@builder.io/qwik";
2
- import Header from "../components/header/header";
3
- import Footer from "../components/footer/footer";
4
-
5
- export default component$(() => {
6
- return (
7
- <>
8
- <Header />
9
- <main>
10
- <Slot />
11
- </main>
12
- <Footer />
13
- </>
14
- );
15
- });
@@ -1,18 +0,0 @@
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.dev/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;
@@ -1,11 +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 { builderDevTools } from "@builder.io/dev-tools/vite";
5
- import tsconfigPaths from "vite-tsconfig-paths";
6
-
7
- export default defineConfig(() => {
8
- return {
9
- plugins: [builderDevTools(), qwikCity(), qwikVite(), tsconfigPaths()],
10
- };
11
- });