@gallop.software/studio 0.1.100 → 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-OIGJK35G.mjs → StudioUI-66GVMRQE.mjs} +9 -3
- package/dist/{StudioUI-OIGJK35G.mjs.map → StudioUI-66GVMRQE.mjs.map} +1 -1
- package/dist/{StudioUI-CX3KPS57.js → StudioUI-CJJDDI7H.js} +9 -3
- 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-CX3KPS57.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: [
|
|
@@ -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
|