create-plasmic-app 0.0.151 → 0.0.152
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/cpa-out/.gitignore +4 -2
- package/cpa-out/gatsby-codegen-js/package.json +2 -2
- package/cpa-out/gatsby-codegen-js/plasmic.json +2 -2
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +61 -26
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +6 -39
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/plasmic__default_style.module.css +363 -0
- package/cpa-out/gatsby-codegen-ts/package.json +2 -2
- package/cpa-out/gatsby-codegen-ts/plasmic.json +2 -2
- package/cpa-out/gatsby-codegen-ts/src/components/RandomDynamicPageButton.tsx +1 -2
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +74 -28
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/plasmic__default_style.module.css +363 -0
- package/cpa-out/gatsby-loader-js/package.json +1 -1
- package/cpa-out/gatsby-loader-js/src/templates/defaultPlasmicPage.jsx +1 -0
- package/cpa-out/gatsby-loader-ts/package.json +1 -1
- package/cpa-out/gatsby-loader-ts/src/templates/defaultPlasmicPage.tsx +1 -0
- package/cpa-out/nextjs-app-codegen-js/app/dynamic/[slug]/page.jsx +13 -3
- package/cpa-out/nextjs-app-codegen-js/app/globals.css +10 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +62 -27
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.jsx +103 -2
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +6 -39
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/plasmic__default_style.module.css +363 -0
- package/cpa-out/nextjs-app-codegen-js/eslint.config.mjs +16 -0
- package/cpa-out/nextjs-app-codegen-js/jsconfig.json +7 -0
- package/cpa-out/nextjs-app-codegen-js/package.json +4 -4
- package/cpa-out/nextjs-app-codegen-js/plasmic.json +2 -2
- package/cpa-out/nextjs-app-codegen-ts/app/dynamic/[slug]/page.tsx +13 -3
- package/cpa-out/nextjs-app-codegen-ts/app/globals.css +10 -0
- package/cpa-out/nextjs-app-codegen-ts/components/RandomDynamicPageButton.tsx +1 -2
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +69 -29
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.tsx +110 -2
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/plasmic__default_style.module.css +363 -0
- package/cpa-out/nextjs-app-codegen-ts/eslint.config.mjs +18 -0
- package/cpa-out/nextjs-app-codegen-ts/package.json +4 -4
- package/cpa-out/nextjs-app-codegen-ts/plasmic.json +2 -2
- package/cpa-out/nextjs-app-loader-js/app/[[...catchall]]/page.jsx +1 -0
- package/cpa-out/nextjs-app-loader-js/app/globals.css +10 -0
- package/cpa-out/nextjs-app-loader-js/eslint.config.mjs +16 -0
- package/cpa-out/nextjs-app-loader-js/jsconfig.json +7 -0
- package/cpa-out/nextjs-app-loader-js/package.json +3 -3
- package/cpa-out/nextjs-app-loader-ts/app/[[...catchall]]/page.tsx +1 -0
- package/cpa-out/nextjs-app-loader-ts/app/globals.css +10 -0
- package/cpa-out/nextjs-app-loader-ts/eslint.config.mjs +18 -0
- package/cpa-out/nextjs-app-loader-ts/package.json +3 -3
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +62 -27
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +6 -39
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/plasmic__default_style.module.css +363 -0
- package/cpa-out/nextjs-pages-codegen-js/eslint.config.mjs +16 -0
- package/cpa-out/nextjs-pages-codegen-js/jsconfig.json +7 -0
- package/cpa-out/nextjs-pages-codegen-js/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-js/pages/dynamic/[slug].jsx +24 -2
- package/cpa-out/nextjs-pages-codegen-js/plasmic.json +2 -2
- package/cpa-out/nextjs-pages-codegen-js/styles/Home.module.css +141 -0
- package/cpa-out/nextjs-pages-codegen-js/styles/globals.css +10 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/RandomDynamicPageButton.tsx +1 -2
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +75 -29
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/plasmic__default_style.module.css +363 -0
- package/cpa-out/nextjs-pages-codegen-ts/eslint.config.mjs +18 -0
- package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +25 -2
- package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +2 -2
- package/cpa-out/nextjs-pages-codegen-ts/styles/Home.module.css +141 -0
- package/cpa-out/nextjs-pages-codegen-ts/styles/globals.css +10 -0
- package/cpa-out/nextjs-pages-loader-js/eslint.config.mjs +16 -0
- package/cpa-out/nextjs-pages-loader-js/jsconfig.json +7 -0
- package/cpa-out/nextjs-pages-loader-js/package.json +3 -3
- package/cpa-out/nextjs-pages-loader-js/pages/[[...catchall]].jsx +1 -0
- package/cpa-out/nextjs-pages-loader-js/styles/Home.module.css +141 -0
- package/cpa-out/nextjs-pages-loader-js/styles/globals.css +10 -0
- package/cpa-out/nextjs-pages-loader-ts/eslint.config.mjs +18 -0
- package/cpa-out/nextjs-pages-loader-ts/package.json +3 -3
- package/cpa-out/nextjs-pages-loader-ts/pages/[[...catchall]].tsx +1 -0
- package/cpa-out/nextjs-pages-loader-ts/styles/Home.module.css +141 -0
- package/cpa-out/nextjs-pages-loader-ts/styles/globals.css +10 -0
- package/cpa-out/react-codegen-js/package.json +2 -2
- package/cpa-out/react-codegen-js/plasmic.json +2 -2
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +61 -26
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +6 -39
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/plasmic__default_style.module.css +363 -0
- package/cpa-out/react-codegen-js/src/index.css +68 -0
- package/cpa-out/react-codegen-ts/package.json +2 -2
- package/cpa-out/react-codegen-ts/plasmic.json +2 -2
- package/cpa-out/react-codegen-ts/src/components/RandomDynamicPageButton.tsx +1 -2
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +74 -28
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/plasmic__default_style.module.css +363 -0
- package/cpa-out/react-codegen-ts/src/index.css +68 -0
- package/cpa-out/tanstack-codegen-ts/package.json +3 -3
- package/cpa-out/tanstack-codegen-ts/plasmic.json +2 -2
- package/cpa-out/tanstack-codegen-ts/src/components/RandomDynamicPageButton.tsx +1 -2
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.css +495 -0
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.css +44 -0
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +74 -28
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.css +43 -0
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.css +16 -0
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.css +354 -0
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/plasmic__default_style.css +363 -0
- package/cpa-out/tanstack-codegen-ts/src/routes/dynamic/$slug/index.tsx +31 -8
- package/cpa-out/tanstack-codegen-ts/src/styles.css +17 -0
- package/dist/nextjs/nextjs.js +30 -0
- package/package.json +2 -2
- package/src/nextjs/nextjs.ts +34 -1
|
@@ -14,6 +14,14 @@ import { ClientDynamicPage } from "../../../app/dynamic/[slug]/page-client"; //
|
|
|
14
14
|
|
|
15
15
|
const $$ = {};
|
|
16
16
|
|
|
17
|
+
import { unstable_executePlasmicQueries } from "@plasmicapp/react-web/lib/data-sources";
|
|
18
|
+
import type {
|
|
19
|
+
PlasmicQuery,
|
|
20
|
+
PlasmicQueryResult
|
|
21
|
+
} from "@plasmicapp/react-web/lib/data-sources";
|
|
22
|
+
import type { QueryComponentNode } from "@plasmicapp/react-web/lib/data-sources";
|
|
23
|
+
import { PlasmicQueryDataProvider } from "@plasmicapp/react-web/lib/query";
|
|
24
|
+
|
|
17
25
|
export type PageCtx = {
|
|
18
26
|
pageRoute: string;
|
|
19
27
|
pagePath: string;
|
|
@@ -29,6 +37,93 @@ export function generateDynamicMetadata($q: any, $ctx: PageCtx) {
|
|
|
29
37
|
}
|
|
30
38
|
};
|
|
31
39
|
}
|
|
40
|
+
export const serverQueryTree: QueryComponentNode = {
|
|
41
|
+
type: "component",
|
|
42
|
+
queries: {
|
|
43
|
+
sha256: {
|
|
44
|
+
id: "custom:krgWtF9Kkesx",
|
|
45
|
+
fn: async ({ $q, $props, $ctx, $state }) => {
|
|
46
|
+
console.log("Running SHA-256");
|
|
47
|
+
const data = new TextEncoder().encode($ctx.params.slug);
|
|
48
|
+
const hash = await crypto.subtle.digest("SHA-256", data);
|
|
49
|
+
return [...new Uint8Array(hash)]
|
|
50
|
+
.map(b => b.toString(16).padStart(2, "0"))
|
|
51
|
+
.join("-");
|
|
52
|
+
},
|
|
53
|
+
args: ({ $q, $props, $ctx, $state }) => {
|
|
54
|
+
return [
|
|
55
|
+
{
|
|
56
|
+
$ctx: {
|
|
57
|
+
params: $ctx["params"]
|
|
58
|
+
},
|
|
59
|
+
$props: {},
|
|
60
|
+
$q: {},
|
|
61
|
+
$state: {}
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
stateSpecs: [],
|
|
68
|
+
propsContext: {},
|
|
69
|
+
children: [
|
|
70
|
+
{
|
|
71
|
+
type: "component",
|
|
72
|
+
queries: {},
|
|
73
|
+
stateSpecs: [],
|
|
74
|
+
propsContext: {},
|
|
75
|
+
children: [
|
|
76
|
+
{
|
|
77
|
+
type: "component",
|
|
78
|
+
queries: {},
|
|
79
|
+
stateSpecs: [
|
|
80
|
+
{
|
|
81
|
+
path: "showStartIcon",
|
|
82
|
+
type: "private",
|
|
83
|
+
variableType: "variant",
|
|
84
|
+
initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
|
|
85
|
+
$props.showStartIcon
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
path: "showEndIcon",
|
|
89
|
+
type: "private",
|
|
90
|
+
variableType: "variant",
|
|
91
|
+
initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
|
|
92
|
+
$props.showEndIcon
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
path: "isDisabled",
|
|
96
|
+
type: "private",
|
|
97
|
+
variableType: "variant",
|
|
98
|
+
initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
|
|
99
|
+
$props.isDisabled
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
path: "shape",
|
|
103
|
+
type: "private",
|
|
104
|
+
variableType: "variant",
|
|
105
|
+
initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.shape
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
path: "size",
|
|
109
|
+
type: "private",
|
|
110
|
+
variableType: "variant",
|
|
111
|
+
initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.size
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
path: "color",
|
|
115
|
+
type: "private",
|
|
116
|
+
variableType: "variant",
|
|
117
|
+
initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.color
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
propsContext: { submitsForm: ({ $q, $props, $ctx, $state }) => true },
|
|
121
|
+
children: []
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
};
|
|
32
127
|
|
|
33
128
|
function mkPathFromRouteAndParams(
|
|
34
129
|
route: string,
|
|
@@ -77,6 +172,19 @@ export async function makeAppRouterPageCtx({
|
|
|
77
172
|
export type PlasmicDynamicPageServerProps = DefaultDynamicPageProps &
|
|
78
173
|
DynamicPageServerSkeletonProps;
|
|
79
174
|
|
|
80
|
-
export function PlasmicDynamicPageServer(
|
|
81
|
-
|
|
175
|
+
export async function PlasmicDynamicPageServer(
|
|
176
|
+
props: PlasmicDynamicPageServerProps
|
|
177
|
+
) {
|
|
178
|
+
const { params, searchParams, ...rest } = props;
|
|
179
|
+
const ctx = await makeAppRouterPageCtx({ params, searchParams });
|
|
180
|
+
const { cache: prefetchedCache } = await unstable_executePlasmicQueries(
|
|
181
|
+
serverQueryTree,
|
|
182
|
+
{ $props: rest, $ctx: ctx }
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
return (
|
|
186
|
+
<PlasmicQueryDataProvider prefetchedCache={prefetchedCache}>
|
|
187
|
+
<ClientDynamicPage {...rest} />
|
|
188
|
+
</PlasmicQueryDataProvider>
|
|
189
|
+
);
|
|
82
190
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: flex-start;
|
|
8
|
+
align-items: center;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
min-height: 0;
|
|
11
|
+
padding: 0px;
|
|
12
|
+
}
|
|
13
|
+
.section {
|
|
14
|
+
display: flex;
|
|
15
|
+
position: relative;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: auto;
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
row-gap: 16px;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
padding: 96px 24px;
|
|
25
|
+
}
|
|
26
|
+
.h1 {
|
|
27
|
+
position: relative;
|
|
28
|
+
max-width: 800px;
|
|
29
|
+
height: auto;
|
|
30
|
+
width: 100%;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
}
|
|
33
|
+
.text {
|
|
34
|
+
position: relative;
|
|
35
|
+
max-width: 800px;
|
|
36
|
+
height: auto;
|
|
37
|
+
width: 100%;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
}
|
|
40
|
+
.randomDynamicPageButton:global(.__wab_instance):global(.__wab_instance) {
|
|
41
|
+
max-width: 100%;
|
|
42
|
+
position: relative;
|
|
43
|
+
}
|
package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx
CHANGED
|
@@ -64,7 +64,6 @@ import {
|
|
|
64
64
|
import { generateDynamicMetadata, PageCtx } from "./PlasmicHomepageServer"; // plasmic-import: 6uuAAE1jiCew/rscServer
|
|
65
65
|
|
|
66
66
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
67
|
-
import { Fetcher } from "@plasmicapp/react-web/lib/data-sources";
|
|
68
67
|
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
69
68
|
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
70
69
|
|
|
@@ -198,7 +197,9 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
198
197
|
sty.h1
|
|
199
198
|
)}
|
|
200
199
|
>
|
|
201
|
-
{"
|
|
200
|
+
{hasVariant(globalVariants, "screen", "desktopOnly")
|
|
201
|
+
? "create-plasmic-app"
|
|
202
|
+
: "cpa"}
|
|
202
203
|
</h1>
|
|
203
204
|
<div
|
|
204
205
|
data-plasmic-name={"text"}
|
|
@@ -209,44 +210,9 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
209
210
|
sty.text
|
|
210
211
|
)}
|
|
211
212
|
>
|
|
212
|
-
{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
{
|
|
216
|
-
"This project is used by run-cpa.ts in the create-plasmic-app repo.\n\nrun-cpa.ts runs create-plasmic-app for many combinations of args (e.g. nextjs + appDir + loader + typescript) to check for changes in generated files. Any changes to this project will result in lots of changes to the generated files. "
|
|
217
|
-
}
|
|
218
|
-
</React.Fragment>
|
|
219
|
-
<span
|
|
220
|
-
className={
|
|
221
|
-
"plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
|
|
222
|
-
}
|
|
223
|
-
style={{ fontWeight: 700 }}
|
|
224
|
-
>
|
|
225
|
-
{"Therefore, please avoid changing this project."}
|
|
226
|
-
</span>
|
|
227
|
-
</React.Fragment>
|
|
228
|
-
) : (
|
|
229
|
-
<React.Fragment>
|
|
230
|
-
<React.Fragment>
|
|
231
|
-
{
|
|
232
|
-
"If you haven't already done so, go back and learn the basics by going through the Plasmic Levels tutorial.\n\nIt's always easier to start from examples! Add a new page using a template\u2014do this from the list of pages in the top left (the gray + button).\n\nOr press the big blue + button to start dragging items into this page.\n\nIntegrate this project into your codebase\u2014press the "
|
|
233
|
-
}
|
|
234
|
-
</React.Fragment>
|
|
235
|
-
<span
|
|
236
|
-
className={
|
|
237
|
-
"plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
|
|
238
|
-
}
|
|
239
|
-
style={{ fontWeight: 700 }}
|
|
240
|
-
>
|
|
241
|
-
{"Code"}
|
|
242
|
-
</span>
|
|
243
|
-
<React.Fragment>
|
|
244
|
-
{
|
|
245
|
-
" button in the top right and follow the quickstart instructions.\n\nJoin our Slack community (icon in bottom left) for help any time."
|
|
246
|
-
}
|
|
247
|
-
</React.Fragment>
|
|
248
|
-
</React.Fragment>
|
|
249
|
-
)}
|
|
213
|
+
{
|
|
214
|
+
"This project is used by run-cpa.ts in the create-plasmic-app repo.\n\n\nrun-cpa.ts runs create-plasmic-app for many combinations of args (e.g. nextjs + appDir + loader + typescript) to check for changes in generated files. Any changes to this project will result in lots of changes to the generated files. Therefore, please avoid changing this project.\n"
|
|
215
|
+
}
|
|
250
216
|
</div>
|
|
251
217
|
<RandomDynamicPageButton
|
|
252
218
|
data-plasmic-name={"randomDynamicPageButton"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.root:global(.__wab_instance) {
|
|
2
|
+
max-width: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
.svg__p2Hdu {
|
|
6
|
+
position: relative;
|
|
7
|
+
object-fit: cover;
|
|
8
|
+
width: auto;
|
|
9
|
+
height: 1em;
|
|
10
|
+
}
|
|
11
|
+
.svg__jkBz {
|
|
12
|
+
position: relative;
|
|
13
|
+
object-fit: cover;
|
|
14
|
+
width: auto;
|
|
15
|
+
height: 1em;
|
|
16
|
+
}
|