@gallop.software/studio 0.1.99 → 0.1.101
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/{StudioUI-KB6YIRTU.mjs → StudioUI-66GVMRQE.mjs} +10 -4
- package/dist/{StudioUI-KB6YIRTU.mjs.map → StudioUI-66GVMRQE.mjs.map} +1 -1
- package/dist/{StudioUI-6YTCVD5Z.js → StudioUI-CJJDDI7H.js} +10 -4
- package/dist/StudioUI-CJJDDI7H.js.map +1 -0
- package/dist/{chunk-IHXG2EE4.mjs → chunk-CIJTQ7TB.mjs} +1 -1
- package/dist/chunk-CIJTQ7TB.mjs.map +1 -0
- package/dist/{chunk-MCJNUXQ6.js → chunk-STROEKU2.js} +1 -1
- package/dist/chunk-STROEKU2.js.map +1 -0
- package/dist/handlers/index.js +16 -14
- package/dist/handlers/index.js.map +1 -1
- package/dist/handlers/index.mjs +3 -1
- package/dist/handlers/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/StudioUI-6YTCVD5Z.js.map +0 -1
- package/dist/chunk-IHXG2EE4.mjs.map +0 -1
- package/dist/chunk-MCJNUXQ6.js.map +0 -1
|
@@ -4202,12 +4202,14 @@ function StudioDetailView() {
|
|
|
4202
4202
|
const isImage = isImageFile(focusedItem.name);
|
|
4203
4203
|
const isVideo = isVideoFile(focusedItem.name);
|
|
4204
4204
|
const imageSrc = focusedItem.path.replace("public", "");
|
|
4205
|
+
const relativePath = "/" + focusedItem.path.replace(/^public\//, "");
|
|
4206
|
+
const productionUrl = process.env.NEXT_PUBLIC_PRODUCTION_URL || "";
|
|
4207
|
+
const fullUrl = focusedItem.cdnPushed && focusedItem.cdnBaseUrl ? `${focusedItem.cdnBaseUrl}${relativePath}` : productionUrl ? `${productionUrl}${relativePath}` : relativePath;
|
|
4205
4208
|
const handleClose = () => {
|
|
4206
4209
|
setFocusedItem(null);
|
|
4207
4210
|
};
|
|
4208
4211
|
const handleCopyPath = () => {
|
|
4209
|
-
|
|
4210
|
-
navigator.clipboard.writeText(pathToCopy);
|
|
4212
|
+
navigator.clipboard.writeText(fullUrl);
|
|
4211
4213
|
setShowCopied(true);
|
|
4212
4214
|
setTimeout(() => setShowCopied(false), 1500);
|
|
4213
4215
|
};
|
|
@@ -4466,6 +4468,10 @@ function StudioDetailView() {
|
|
|
4466
4468
|
/* @__PURE__ */ jsxs8("div", { css: styles8.infoRow, children: [
|
|
4467
4469
|
/* @__PURE__ */ jsx8("span", { css: styles8.infoLabel, children: "CDN Status" }),
|
|
4468
4470
|
/* @__PURE__ */ jsx8("span", { css: styles8.infoValue, children: focusedItem.cdnPushed ? "Pushed" : "Not pushed" })
|
|
4471
|
+
] }),
|
|
4472
|
+
/* @__PURE__ */ jsxs8("div", { css: styles8.infoRow, children: [
|
|
4473
|
+
/* @__PURE__ */ jsx8("span", { css: styles8.infoLabel, children: "URL" }),
|
|
4474
|
+
/* @__PURE__ */ jsx8("span", { css: styles8.infoValueWrap, title: fullUrl, children: fullUrl })
|
|
4469
4475
|
] })
|
|
4470
4476
|
] }),
|
|
4471
4477
|
/* @__PURE__ */ jsxs8("div", { css: styles8.actions, children: [
|
|
@@ -4475,7 +4481,7 @@ function StudioDetailView() {
|
|
|
4475
4481
|
] }),
|
|
4476
4482
|
/* @__PURE__ */ jsxs8("button", { css: styles8.actionBtn, onClick: handleSync, disabled: pushing, children: [
|
|
4477
4483
|
/* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" }) }),
|
|
4478
|
-
|
|
4484
|
+
pushing ? "Pushing..." : "Push to CDN"
|
|
4479
4485
|
] }),
|
|
4480
4486
|
/* @__PURE__ */ jsxs8("button", { css: styles8.actionBtn, onClick: () => setShowProcessConfirm(true), children: [
|
|
4481
4487
|
/* @__PURE__ */ jsx8("svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" }) }),
|
|
@@ -5454,4 +5460,4 @@ export {
|
|
|
5454
5460
|
StudioUI,
|
|
5455
5461
|
StudioUI_default as default
|
|
5456
5462
|
};
|
|
5457
|
-
//# sourceMappingURL=StudioUI-
|
|
5463
|
+
//# sourceMappingURL=StudioUI-66GVMRQE.mjs.map
|