@rxdrag/website-studio 0.0.56 → 0.0.58
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/dist/{cssMode-91c5028f.js → cssMode-09f3d08a.js} +2 -2
- package/dist/{cssMode-91c5028f.js.map → cssMode-09f3d08a.js.map} +1 -1
- package/dist/{freemarker2-809f7e92.js → freemarker2-e76b71c2.js} +2 -2
- package/dist/{freemarker2-809f7e92.js.map → freemarker2-e76b71c2.js.map} +1 -1
- package/dist/{handlebars-435daeb8.js → handlebars-1e06e488.js} +2 -2
- package/dist/{handlebars-435daeb8.js.map → handlebars-1e06e488.js.map} +1 -1
- package/dist/{html-c08d0c2f.js → html-01a2c82d.js} +2 -2
- package/dist/{html-c08d0c2f.js.map → html-01a2c82d.js.map} +1 -1
- package/dist/{htmlMode-b275349e.js → htmlMode-71fa2280.js} +2 -2
- package/dist/{htmlMode-b275349e.js.map → htmlMode-71fa2280.js.map} +1 -1
- package/dist/{index-00576497.js → index-f5bad985.js} +68 -42
- package/dist/{index-00576497.js.map → index-f5bad985.js.map} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{javascript-eabe9c28.js → javascript-31f976b5.js} +3 -3
- package/dist/{javascript-eabe9c28.js.map → javascript-31f976b5.js.map} +1 -1
- package/dist/{jsonMode-af4e2a56.js → jsonMode-0ac682a1.js} +2 -2
- package/dist/{jsonMode-af4e2a56.js.map → jsonMode-0ac682a1.js.map} +1 -1
- package/dist/{liquid-88c26e28.js → liquid-cf497048.js} +2 -2
- package/dist/{liquid-88c26e28.js.map → liquid-cf497048.js.map} +1 -1
- package/dist/{mdx-2fa366c7.js → mdx-8494287c.js} +2 -2
- package/dist/{mdx-2fa366c7.js.map → mdx-8494287c.js.map} +1 -1
- package/dist/{python-477e1416.js → python-7b6d405d.js} +2 -2
- package/dist/{python-477e1416.js.map → python-7b6d405d.js.map} +1 -1
- package/dist/{razor-1fe57a2b.js → razor-0a925e48.js} +2 -2
- package/dist/{razor-1fe57a2b.js.map → razor-0a925e48.js.map} +1 -1
- package/dist/{tsMode-41007fbc.js → tsMode-a79abe6c.js} +2 -2
- package/dist/{tsMode-41007fbc.js.map → tsMode-a79abe6c.js.map} +1 -1
- package/dist/{typescript-db59573b.js → typescript-6fed2f8c.js} +2 -2
- package/dist/{typescript-db59573b.js.map → typescript-6fed2f8c.js.map} +1 -1
- package/dist/{xml-34916896.js → xml-7fc2d3d8.js} +2 -2
- package/dist/{xml-34916896.js.map → xml-7fc2d3d8.js.map} +1 -1
- package/dist/{yaml-21c57711.js → yaml-e8730fef.js} +2 -2
- package/dist/{yaml-21c57711.js.map → yaml-e8730fef.js.map} +1 -1
- package/package.json +13 -13
|
@@ -702,6 +702,7 @@ function newComponentCategoryQueryOptions(themeId) {
|
|
|
702
702
|
[
|
|
703
703
|
ComponentCategoryFields.id,
|
|
704
704
|
ComponentCategoryFields.name,
|
|
705
|
+
ComponentCategoryFields.title,
|
|
705
706
|
ComponentCategoryFields.seqValue,
|
|
706
707
|
ComponentCategoryFields.updatedAt,
|
|
707
708
|
ComponentCategoryFields.isInMarket,
|
|
@@ -136381,7 +136382,7 @@ registerLanguage({
|
|
|
136381
136382
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
136382
136383
|
loader: () => {
|
|
136383
136384
|
{
|
|
136384
|
-
return import("./freemarker2-
|
|
136385
|
+
return import("./freemarker2-e76b71c2.js").then((m2) => m2.TagAutoInterpolationDollar);
|
|
136385
136386
|
}
|
|
136386
136387
|
}
|
|
136387
136388
|
});
|
|
@@ -136390,7 +136391,7 @@ registerLanguage({
|
|
|
136390
136391
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
136391
136392
|
loader: () => {
|
|
136392
136393
|
{
|
|
136393
|
-
return import("./freemarker2-
|
|
136394
|
+
return import("./freemarker2-e76b71c2.js").then((m2) => m2.TagAngleInterpolationDollar);
|
|
136394
136395
|
}
|
|
136395
136396
|
}
|
|
136396
136397
|
});
|
|
@@ -136399,7 +136400,7 @@ registerLanguage({
|
|
|
136399
136400
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
136400
136401
|
loader: () => {
|
|
136401
136402
|
{
|
|
136402
|
-
return import("./freemarker2-
|
|
136403
|
+
return import("./freemarker2-e76b71c2.js").then((m2) => m2.TagBracketInterpolationDollar);
|
|
136403
136404
|
}
|
|
136404
136405
|
}
|
|
136405
136406
|
});
|
|
@@ -136408,7 +136409,7 @@ registerLanguage({
|
|
|
136408
136409
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
136409
136410
|
loader: () => {
|
|
136410
136411
|
{
|
|
136411
|
-
return import("./freemarker2-
|
|
136412
|
+
return import("./freemarker2-e76b71c2.js").then((m2) => m2.TagAngleInterpolationBracket);
|
|
136412
136413
|
}
|
|
136413
136414
|
}
|
|
136414
136415
|
});
|
|
@@ -136417,7 +136418,7 @@ registerLanguage({
|
|
|
136417
136418
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
136418
136419
|
loader: () => {
|
|
136419
136420
|
{
|
|
136420
|
-
return import("./freemarker2-
|
|
136421
|
+
return import("./freemarker2-e76b71c2.js").then((m2) => m2.TagBracketInterpolationBracket);
|
|
136421
136422
|
}
|
|
136422
136423
|
}
|
|
136423
136424
|
});
|
|
@@ -136426,7 +136427,7 @@ registerLanguage({
|
|
|
136426
136427
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
136427
136428
|
loader: () => {
|
|
136428
136429
|
{
|
|
136429
|
-
return import("./freemarker2-
|
|
136430
|
+
return import("./freemarker2-e76b71c2.js").then((m2) => m2.TagAutoInterpolationDollar);
|
|
136430
136431
|
}
|
|
136431
136432
|
}
|
|
136432
136433
|
});
|
|
@@ -136435,7 +136436,7 @@ registerLanguage({
|
|
|
136435
136436
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
136436
136437
|
loader: () => {
|
|
136437
136438
|
{
|
|
136438
|
-
return import("./freemarker2-
|
|
136439
|
+
return import("./freemarker2-e76b71c2.js").then((m2) => m2.TagAutoInterpolationBracket);
|
|
136439
136440
|
}
|
|
136440
136441
|
}
|
|
136441
136442
|
});
|
|
@@ -136485,7 +136486,7 @@ registerLanguage({
|
|
|
136485
136486
|
mimetypes: ["text/x-handlebars-template"],
|
|
136486
136487
|
loader: () => {
|
|
136487
136488
|
{
|
|
136488
|
-
return import("./handlebars-
|
|
136489
|
+
return import("./handlebars-1e06e488.js");
|
|
136489
136490
|
}
|
|
136490
136491
|
}
|
|
136491
136492
|
});
|
|
@@ -136518,7 +136519,7 @@ registerLanguage({
|
|
|
136518
136519
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
136519
136520
|
loader: () => {
|
|
136520
136521
|
{
|
|
136521
|
-
return import("./html-
|
|
136522
|
+
return import("./html-01a2c82d.js");
|
|
136522
136523
|
}
|
|
136523
136524
|
}
|
|
136524
136525
|
});
|
|
@@ -136571,7 +136572,7 @@ registerLanguage({
|
|
|
136571
136572
|
mimetypes: ["text/javascript"],
|
|
136572
136573
|
loader: () => {
|
|
136573
136574
|
{
|
|
136574
|
-
return import("./javascript-
|
|
136575
|
+
return import("./javascript-31f976b5.js");
|
|
136575
136576
|
}
|
|
136576
136577
|
}
|
|
136577
136578
|
});
|
|
@@ -136670,7 +136671,7 @@ registerLanguage({
|
|
|
136670
136671
|
mimetypes: ["application/liquid"],
|
|
136671
136672
|
loader: () => {
|
|
136672
136673
|
{
|
|
136673
|
-
return import("./liquid-
|
|
136674
|
+
return import("./liquid-cf497048.js");
|
|
136674
136675
|
}
|
|
136675
136676
|
}
|
|
136676
136677
|
});
|
|
@@ -136718,7 +136719,7 @@ registerLanguage({
|
|
|
136718
136719
|
aliases: ["MDX", "mdx"],
|
|
136719
136720
|
loader: () => {
|
|
136720
136721
|
{
|
|
136721
|
-
return import("./mdx-
|
|
136722
|
+
return import("./mdx-8494287c.js");
|
|
136722
136723
|
}
|
|
136723
136724
|
}
|
|
136724
136725
|
});
|
|
@@ -136977,7 +136978,7 @@ registerLanguage({
|
|
|
136977
136978
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
136978
136979
|
loader: () => {
|
|
136979
136980
|
{
|
|
136980
|
-
return import("./python-
|
|
136981
|
+
return import("./python-7b6d405d.js");
|
|
136981
136982
|
}
|
|
136982
136983
|
}
|
|
136983
136984
|
});
|
|
@@ -137026,7 +137027,7 @@ registerLanguage({
|
|
|
137026
137027
|
mimetypes: ["text/x-cshtml"],
|
|
137027
137028
|
loader: () => {
|
|
137028
137029
|
{
|
|
137029
|
-
return import("./razor-
|
|
137030
|
+
return import("./razor-0a925e48.js");
|
|
137030
137031
|
}
|
|
137031
137032
|
}
|
|
137032
137033
|
});
|
|
@@ -137362,7 +137363,7 @@ registerLanguage({
|
|
|
137362
137363
|
mimetypes: ["text/typescript"],
|
|
137363
137364
|
loader: () => {
|
|
137364
137365
|
{
|
|
137365
|
-
return import("./typescript-
|
|
137366
|
+
return import("./typescript-6fed2f8c.js");
|
|
137366
137367
|
}
|
|
137367
137368
|
}
|
|
137368
137369
|
});
|
|
@@ -137446,7 +137447,7 @@ registerLanguage({
|
|
|
137446
137447
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
137447
137448
|
loader: () => {
|
|
137448
137449
|
{
|
|
137449
|
-
return import("./xml-
|
|
137450
|
+
return import("./xml-7fc2d3d8.js");
|
|
137450
137451
|
}
|
|
137451
137452
|
}
|
|
137452
137453
|
});
|
|
@@ -137463,7 +137464,7 @@ registerLanguage({
|
|
|
137463
137464
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
137464
137465
|
loader: () => {
|
|
137465
137466
|
{
|
|
137466
|
-
return import("./yaml-
|
|
137467
|
+
return import("./yaml-e8730fef.js");
|
|
137467
137468
|
}
|
|
137468
137469
|
}
|
|
137469
137470
|
});
|
|
@@ -137587,7 +137588,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3(
|
|
|
137587
137588
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
137588
137589
|
function getMode$3() {
|
|
137589
137590
|
{
|
|
137590
|
-
return import("./cssMode-
|
|
137591
|
+
return import("./cssMode-09f3d08a.js");
|
|
137591
137592
|
}
|
|
137592
137593
|
}
|
|
137593
137594
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -137718,7 +137719,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
137718
137719
|
};
|
|
137719
137720
|
function getMode$2() {
|
|
137720
137721
|
{
|
|
137721
|
-
return import("./htmlMode-
|
|
137722
|
+
return import("./htmlMode-71fa2280.js");
|
|
137722
137723
|
}
|
|
137723
137724
|
}
|
|
137724
137725
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -137816,7 +137817,7 @@ var getWorker = () => getMode$1().then((mode) => mode.getWorker());
|
|
|
137816
137817
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults, getWorker };
|
|
137817
137818
|
function getMode$1() {
|
|
137818
137819
|
{
|
|
137819
|
-
return import("./jsonMode-
|
|
137820
|
+
return import("./jsonMode-0ac682a1.js");
|
|
137820
137821
|
}
|
|
137821
137822
|
}
|
|
137822
137823
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -138092,7 +138093,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
138092
138093
|
};
|
|
138093
138094
|
function getMode() {
|
|
138094
138095
|
{
|
|
138095
|
-
return import("./tsMode-
|
|
138096
|
+
return import("./tsMode-a79abe6c.js");
|
|
138096
138097
|
}
|
|
138097
138098
|
}
|
|
138098
138099
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -203893,7 +203894,7 @@ const ComponentCategoryNode = memo(
|
|
|
203893
203894
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203894
203895
|
GroupNode,
|
|
203895
203896
|
{
|
|
203896
|
-
title: category.name,
|
|
203897
|
+
title: category.title || category.name,
|
|
203897
203898
|
fiexdAction: open || isMutating,
|
|
203898
203899
|
icon: null,
|
|
203899
203900
|
classNames: {
|
|
@@ -204032,6 +204033,19 @@ function ComponentCategoryModal(props) {
|
|
|
204032
204033
|
placeholder: "请输入名称"
|
|
204033
204034
|
}
|
|
204034
204035
|
),
|
|
204036
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
204037
|
+
InputField,
|
|
204038
|
+
{
|
|
204039
|
+
name: "title",
|
|
204040
|
+
label: "标题",
|
|
204041
|
+
validateSchema: {
|
|
204042
|
+
type: "string",
|
|
204043
|
+
required: true
|
|
204044
|
+
},
|
|
204045
|
+
labelPlacement: "outside",
|
|
204046
|
+
placeholder: "请输入标题"
|
|
204047
|
+
}
|
|
204048
|
+
),
|
|
204035
204049
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
204036
204050
|
InputField,
|
|
204037
204051
|
{
|
|
@@ -205195,28 +205209,17 @@ const WebsiteToolbar = memo(() => {
|
|
|
205195
205209
|
setSelectedContent(void 0);
|
|
205196
205210
|
}, [currentLang, setSelectedContent]);
|
|
205197
205211
|
const deployWebsite = useCallback(async () => {
|
|
205212
|
+
var _a4, _b4;
|
|
205198
205213
|
try {
|
|
205199
205214
|
setIsDeploying(true);
|
|
205200
|
-
const
|
|
205201
|
-
|
|
205202
|
-
const
|
|
205203
|
-
|
|
205204
|
-
|
|
205205
|
-
if (file2.type === "folder")
|
|
205206
|
-
zip.folder(fullPath);
|
|
205207
|
-
else
|
|
205208
|
-
zip.file(fullPath, file2.content || "");
|
|
205209
|
-
});
|
|
205210
|
-
const file = new File(
|
|
205211
|
-
[await zip.generateAsync({ type: "blob" })],
|
|
205212
|
-
`${(website == null ? void 0 : website.name) || "website"}.zip`,
|
|
205213
|
-
{ type: "application/zip" }
|
|
205214
|
-
);
|
|
205215
|
-
formData.append("file", file);
|
|
205216
|
-
await uploadDeploymentFile(formData);
|
|
205215
|
+
const hasPreviewRepo = !!((_b4 = (_a4 = website == null ? void 0 : website.settings) == null ? void 0 : _a4.deployConfig) == null ? void 0 : _b4.githubPreviewRepo);
|
|
205216
|
+
const deployModes = hasPreviewRepo ? [false, true] : [true];
|
|
205217
|
+
for (const isStatic of deployModes) {
|
|
205218
|
+
await deployToGithub(isStatic);
|
|
205219
|
+
}
|
|
205217
205220
|
addToast({
|
|
205218
205221
|
title: "部署成功",
|
|
205219
|
-
description: "
|
|
205222
|
+
description: hasPreviewRepo ? "网站静态和动态版本均已部署成功" : "网站静态版本部署成功",
|
|
205220
205223
|
color: "success"
|
|
205221
205224
|
});
|
|
205222
205225
|
} catch (e) {
|
|
@@ -205228,7 +205231,30 @@ const WebsiteToolbar = memo(() => {
|
|
|
205228
205231
|
} finally {
|
|
205229
205232
|
setIsDeploying(false);
|
|
205230
205233
|
}
|
|
205231
|
-
}, [website
|
|
205234
|
+
}, [website]);
|
|
205235
|
+
const deployToGithub = async (isStatic) => {
|
|
205236
|
+
const havap = isStatic;
|
|
205237
|
+
const formData = new FormData();
|
|
205238
|
+
formData.append("websiteId", (website == null ? void 0 : website.id) || "");
|
|
205239
|
+
formData.append("havap", String(havap));
|
|
205240
|
+
const files = await generateWebsiteFiles(isStatic) || [];
|
|
205241
|
+
const zip = new JSZip();
|
|
205242
|
+
traverseFiles$1(files, (file2, fullPath) => {
|
|
205243
|
+
if (file2.type === "folder") {
|
|
205244
|
+
zip.folder(fullPath);
|
|
205245
|
+
} else {
|
|
205246
|
+
zip.file(fullPath, file2.content || "");
|
|
205247
|
+
}
|
|
205248
|
+
});
|
|
205249
|
+
const suffix = isStatic ? "static" : "preview";
|
|
205250
|
+
const file = new File(
|
|
205251
|
+
[await zip.generateAsync({ type: "blob" })],
|
|
205252
|
+
`${(website == null ? void 0 : website.name) || "website"}_${suffix}.zip`,
|
|
205253
|
+
{ type: "application/zip" }
|
|
205254
|
+
);
|
|
205255
|
+
formData.append("file", file);
|
|
205256
|
+
await uploadDeploymentFile(formData);
|
|
205257
|
+
};
|
|
205232
205258
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
205233
205259
|
"div",
|
|
205234
205260
|
{
|
|
@@ -205509,4 +205535,4 @@ export {
|
|
|
205509
205535
|
typescriptDefaults as t,
|
|
205510
205536
|
useCustomizedMaterials as u
|
|
205511
205537
|
};
|
|
205512
|
-
//# sourceMappingURL=index-
|
|
205538
|
+
//# sourceMappingURL=index-f5bad985.js.map
|