@gallop.software/studio 0.1.101 → 0.1.103

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.
@@ -4148,6 +4148,19 @@ var styles8 = {
4148
4148
  word-break: break-all;
4149
4149
  white-space: normal;
4150
4150
  `,
4151
+ infoLink: css8`
4152
+ color: ${colors.primary};
4153
+ font-weight: 500;
4154
+ text-align: right;
4155
+ max-width: 160px;
4156
+ word-break: break-all;
4157
+ white-space: normal;
4158
+ text-decoration: none;
4159
+
4160
+ &:hover {
4161
+ text-decoration: underline;
4162
+ }
4163
+ `,
4151
4164
  actions: css8`
4152
4165
  display: flex;
4153
4166
  flex-direction: column;
@@ -4201,10 +4214,10 @@ function StudioDetailView() {
4201
4214
  if (!focusedItem) return null;
4202
4215
  const isImage = isImageFile(focusedItem.name);
4203
4216
  const isVideo = isVideoFile(focusedItem.name);
4204
- const imageSrc = focusedItem.path.replace("public", "");
4205
4217
  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;
4218
+ const imageSrc = focusedItem.cdnPushed && focusedItem.cdnBaseUrl ? `${focusedItem.cdnBaseUrl}${relativePath}` : relativePath;
4219
+ const localOrigin = typeof window !== "undefined" ? window.location.origin : "";
4220
+ const fullUrl = focusedItem.cdnPushed && focusedItem.cdnBaseUrl ? `${focusedItem.cdnBaseUrl}${relativePath}` : `${localOrigin}${relativePath}`;
4208
4221
  const handleClose = () => {
4209
4222
  setFocusedItem(null);
4210
4223
  };
@@ -4467,11 +4480,21 @@ function StudioDetailView() {
4467
4480
  ] }),
4468
4481
  /* @__PURE__ */ jsxs8("div", { css: styles8.infoRow, children: [
4469
4482
  /* @__PURE__ */ jsx8("span", { css: styles8.infoLabel, children: "CDN Status" }),
4470
- /* @__PURE__ */ jsx8("span", { css: styles8.infoValue, children: focusedItem.cdnPushed ? "Pushed" : "Not pushed" })
4483
+ /* @__PURE__ */ jsx8("span", { css: styles8.infoValue, children: focusedItem.cdnPushed ? focusedItem.isRemote ? "Remote" : "Pushed" : "Local" })
4471
4484
  ] }),
4472
4485
  /* @__PURE__ */ jsxs8("div", { css: styles8.infoRow, children: [
4473
4486
  /* @__PURE__ */ jsx8("span", { css: styles8.infoLabel, children: "URL" }),
4474
- /* @__PURE__ */ jsx8("span", { css: styles8.infoValueWrap, title: fullUrl, children: fullUrl })
4487
+ /* @__PURE__ */ jsx8(
4488
+ "a",
4489
+ {
4490
+ href: fullUrl,
4491
+ target: "_blank",
4492
+ rel: "noopener noreferrer",
4493
+ css: styles8.infoLink,
4494
+ title: fullUrl,
4495
+ children: fullUrl
4496
+ }
4497
+ )
4475
4498
  ] })
4476
4499
  ] }),
4477
4500
  /* @__PURE__ */ jsxs8("div", { css: styles8.actions, children: [
@@ -4479,14 +4502,32 @@ function StudioDetailView() {
4479
4502
  /* @__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: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" }) }),
4480
4503
  "Rename"
4481
4504
  ] }),
4482
- /* @__PURE__ */ jsxs8("button", { css: styles8.actionBtn, onClick: handleSync, disabled: pushing, children: [
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" }) }),
4484
- pushing ? "Pushing..." : "Push to CDN"
4485
- ] }),
4486
- /* @__PURE__ */ jsxs8("button", { css: styles8.actionBtn, onClick: () => setShowProcessConfirm(true), children: [
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" }) }),
4488
- "Process Image"
4489
- ] }),
4505
+ /* @__PURE__ */ jsxs8(
4506
+ "button",
4507
+ {
4508
+ css: styles8.actionBtn,
4509
+ onClick: handleSync,
4510
+ disabled: pushing || focusedItem.cdnPushed,
4511
+ title: focusedItem.cdnPushed ? "Already in cloud" : void 0,
4512
+ children: [
4513
+ /* @__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" }) }),
4514
+ pushing ? "Pushing..." : "Push to CDN"
4515
+ ]
4516
+ }
4517
+ ),
4518
+ /* @__PURE__ */ jsxs8(
4519
+ "button",
4520
+ {
4521
+ css: styles8.actionBtn,
4522
+ onClick: () => setShowProcessConfirm(true),
4523
+ disabled: focusedItem.isRemote,
4524
+ title: focusedItem.isRemote ? "Cannot process remote images" : void 0,
4525
+ children: [
4526
+ /* @__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" }) }),
4527
+ "Process Image"
4528
+ ]
4529
+ }
4530
+ ),
4490
4531
  /* @__PURE__ */ jsxs8("button", { css: [styles8.actionBtn, styles8.actionBtnDanger], onClick: () => setShowDeleteConfirm(true), children: [
4491
4532
  /* @__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: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" }) }),
4492
4533
  "Delete"
@@ -5460,4 +5501,4 @@ export {
5460
5501
  StudioUI,
5461
5502
  StudioUI_default as default
5462
5503
  };
5463
- //# sourceMappingURL=StudioUI-66GVMRQE.mjs.map
5504
+ //# sourceMappingURL=StudioUI-24OSFA4A.mjs.map