@gallop.software/studio 2.3.20 → 2.3.22
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/client/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-CoV4xOIE.js"></script>
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -1667,22 +1667,31 @@ async function handleUnprocessStream(request) {
|
|
|
1667
1667
|
if (!imageKey.startsWith("/")) {
|
|
1668
1668
|
imageKey = `/${imageKey}`;
|
|
1669
1669
|
}
|
|
1670
|
-
sendEvent({
|
|
1671
|
-
type: "progress",
|
|
1672
|
-
current: i + 1,
|
|
1673
|
-
total,
|
|
1674
|
-
percent: Math.round((i + 1) / total * 100),
|
|
1675
|
-
message: `Removing thumbnails for ${imageKey.slice(1)}...`
|
|
1676
|
-
});
|
|
1677
1670
|
try {
|
|
1678
1671
|
const entry = getMetaEntry(meta, imageKey);
|
|
1679
1672
|
if (!entry) {
|
|
1680
1673
|
errors.push(imageKey);
|
|
1674
|
+
sendEvent({
|
|
1675
|
+
type: "progress",
|
|
1676
|
+
current: i + 1,
|
|
1677
|
+
total,
|
|
1678
|
+
processed: removed.length,
|
|
1679
|
+
percent: Math.round((i + 1) / total * 100),
|
|
1680
|
+
message: `Error: ${imageKey.slice(1)}`
|
|
1681
|
+
});
|
|
1681
1682
|
continue;
|
|
1682
1683
|
}
|
|
1683
1684
|
const hasThumbnails = entry.sm || entry.md || entry.lg || entry.f;
|
|
1684
1685
|
if (!hasThumbnails) {
|
|
1685
1686
|
skipped.push(imageKey);
|
|
1687
|
+
sendEvent({
|
|
1688
|
+
type: "progress",
|
|
1689
|
+
current: i + 1,
|
|
1690
|
+
total,
|
|
1691
|
+
processed: removed.length,
|
|
1692
|
+
percent: Math.round((i + 1) / total * 100),
|
|
1693
|
+
message: `Skipped ${imageKey.slice(1)} (no thumbnails)`
|
|
1694
|
+
});
|
|
1686
1695
|
continue;
|
|
1687
1696
|
}
|
|
1688
1697
|
const existingCdnIndex = entry.c;
|
|
@@ -1698,9 +1707,25 @@ async function handleUnprocessStream(request) {
|
|
|
1698
1707
|
...entry.c !== void 0 ? { c: entry.c } : {}
|
|
1699
1708
|
};
|
|
1700
1709
|
removed.push(imageKey);
|
|
1710
|
+
sendEvent({
|
|
1711
|
+
type: "progress",
|
|
1712
|
+
current: i + 1,
|
|
1713
|
+
total,
|
|
1714
|
+
processed: removed.length,
|
|
1715
|
+
percent: Math.round((i + 1) / total * 100),
|
|
1716
|
+
message: `Removed thumbnails for ${imageKey.slice(1)}`
|
|
1717
|
+
});
|
|
1701
1718
|
} catch (error) {
|
|
1702
1719
|
console.error(`Failed to unprocess ${imageKey}:`, error);
|
|
1703
1720
|
errors.push(imageKey);
|
|
1721
|
+
sendEvent({
|
|
1722
|
+
type: "progress",
|
|
1723
|
+
current: i + 1,
|
|
1724
|
+
total,
|
|
1725
|
+
processed: removed.length,
|
|
1726
|
+
percent: Math.round((i + 1) / total * 100),
|
|
1727
|
+
message: `Failed: ${imageKey.slice(1)}`
|
|
1728
|
+
});
|
|
1704
1729
|
}
|
|
1705
1730
|
}
|
|
1706
1731
|
sendEvent({ type: "cleanup", message: "Saving metadata..." });
|
|
@@ -1773,13 +1798,6 @@ async function handleReprocessStream(request) {
|
|
|
1773
1798
|
if (!imageKey.startsWith("/")) {
|
|
1774
1799
|
imageKey = `/${imageKey}`;
|
|
1775
1800
|
}
|
|
1776
|
-
sendEvent({
|
|
1777
|
-
type: "progress",
|
|
1778
|
-
current: i + 1,
|
|
1779
|
-
total,
|
|
1780
|
-
percent: Math.round((i + 1) / total * 100),
|
|
1781
|
-
message: `Processing ${imageKey.slice(1)}...`
|
|
1782
|
-
});
|
|
1783
1801
|
try {
|
|
1784
1802
|
let buffer;
|
|
1785
1803
|
const entry = getMetaEntry(meta, imageKey);
|
|
@@ -1839,9 +1857,25 @@ async function handleReprocessStream(request) {
|
|
|
1839
1857
|
meta[imageKey] = updatedEntry;
|
|
1840
1858
|
}
|
|
1841
1859
|
processed.push(imageKey);
|
|
1860
|
+
sendEvent({
|
|
1861
|
+
type: "progress",
|
|
1862
|
+
current: i + 1,
|
|
1863
|
+
total,
|
|
1864
|
+
processed: processed.length,
|
|
1865
|
+
percent: Math.round((i + 1) / total * 100),
|
|
1866
|
+
message: `Processed ${imageKey.slice(1)}`
|
|
1867
|
+
});
|
|
1842
1868
|
} catch (error) {
|
|
1843
1869
|
console.error(`Failed to reprocess ${imageKey}:`, error);
|
|
1844
1870
|
errors.push(imageKey);
|
|
1871
|
+
sendEvent({
|
|
1872
|
+
type: "progress",
|
|
1873
|
+
current: i + 1,
|
|
1874
|
+
total,
|
|
1875
|
+
processed: processed.length,
|
|
1876
|
+
percent: Math.round((i + 1) / total * 100),
|
|
1877
|
+
message: `Failed: ${imageKey.slice(1)}`
|
|
1878
|
+
});
|
|
1845
1879
|
}
|
|
1846
1880
|
}
|
|
1847
1881
|
sendEvent({ type: "cleanup", message: "Saving metadata..." });
|
|
@@ -1915,6 +1949,7 @@ async function handleDownloadStream(request) {
|
|
|
1915
1949
|
type: "progress",
|
|
1916
1950
|
current: i + 1,
|
|
1917
1951
|
total: imageKeys.length,
|
|
1952
|
+
downloaded: downloaded.length,
|
|
1918
1953
|
message: `Skipped ${imageKey} (not on cloud)`
|
|
1919
1954
|
});
|
|
1920
1955
|
continue;
|
|
@@ -1950,6 +1985,7 @@ async function handleDownloadStream(request) {
|
|
|
1950
1985
|
type: "progress",
|
|
1951
1986
|
current: i + 1,
|
|
1952
1987
|
total: imageKeys.length,
|
|
1988
|
+
downloaded: downloaded.length,
|
|
1953
1989
|
message: `Downloaded ${imageKey}`
|
|
1954
1990
|
});
|
|
1955
1991
|
} catch (error) {
|
|
@@ -1959,6 +1995,7 @@ async function handleDownloadStream(request) {
|
|
|
1959
1995
|
type: "progress",
|
|
1960
1996
|
current: i + 1,
|
|
1961
1997
|
total: imageKeys.length,
|
|
1998
|
+
downloaded: downloaded.length,
|
|
1962
1999
|
message: `Failed to download ${imageKey}`
|
|
1963
2000
|
});
|
|
1964
2001
|
}
|
|
@@ -2037,20 +2074,29 @@ async function handlePushUpdatesStream(request) {
|
|
|
2037
2074
|
const itemPath = paths[i];
|
|
2038
2075
|
const key = itemPath.startsWith("public/") ? "/" + itemPath.slice(7) : itemPath;
|
|
2039
2076
|
const entry = meta[key];
|
|
2040
|
-
sendEvent({
|
|
2041
|
-
type: "progress",
|
|
2042
|
-
current: i + 1,
|
|
2043
|
-
total,
|
|
2044
|
-
percent: Math.round((i + 1) / total * 100),
|
|
2045
|
-
currentFile: path7.basename(key)
|
|
2046
|
-
});
|
|
2047
2077
|
if (!entry || entry.u !== 1) {
|
|
2048
2078
|
skipped.push(key);
|
|
2079
|
+
sendEvent({
|
|
2080
|
+
type: "progress",
|
|
2081
|
+
current: i + 1,
|
|
2082
|
+
total,
|
|
2083
|
+
pushed: pushed.length,
|
|
2084
|
+
percent: Math.round((i + 1) / total * 100),
|
|
2085
|
+
currentFile: path7.basename(key)
|
|
2086
|
+
});
|
|
2049
2087
|
continue;
|
|
2050
2088
|
}
|
|
2051
2089
|
const fileCdnUrl = entry.c !== void 0 ? cdnUrls[entry.c]?.replace(/\/$/, "") : void 0;
|
|
2052
2090
|
if (!fileCdnUrl || fileCdnUrl !== r2PublicUrl) {
|
|
2053
2091
|
skipped.push(key);
|
|
2092
|
+
sendEvent({
|
|
2093
|
+
type: "progress",
|
|
2094
|
+
current: i + 1,
|
|
2095
|
+
total,
|
|
2096
|
+
pushed: pushed.length,
|
|
2097
|
+
percent: Math.round((i + 1) / total * 100),
|
|
2098
|
+
currentFile: path7.basename(key)
|
|
2099
|
+
});
|
|
2054
2100
|
continue;
|
|
2055
2101
|
}
|
|
2056
2102
|
try {
|
|
@@ -2081,9 +2127,26 @@ async function handlePushUpdatesStream(request) {
|
|
|
2081
2127
|
await fs7.unlink(localPath);
|
|
2082
2128
|
delete entry.u;
|
|
2083
2129
|
pushed.push(key);
|
|
2130
|
+
sendEvent({
|
|
2131
|
+
type: "progress",
|
|
2132
|
+
current: i + 1,
|
|
2133
|
+
total,
|
|
2134
|
+
pushed: pushed.length,
|
|
2135
|
+
percent: Math.round((i + 1) / total * 100),
|
|
2136
|
+
currentFile: path7.basename(key)
|
|
2137
|
+
});
|
|
2084
2138
|
} catch (error) {
|
|
2085
2139
|
console.error(`Failed to push update for ${key}:`, error);
|
|
2086
2140
|
errors.push(key);
|
|
2141
|
+
sendEvent({
|
|
2142
|
+
type: "progress",
|
|
2143
|
+
current: i + 1,
|
|
2144
|
+
total,
|
|
2145
|
+
pushed: pushed.length,
|
|
2146
|
+
percent: Math.round((i + 1) / total * 100),
|
|
2147
|
+
currentFile: path7.basename(key),
|
|
2148
|
+
message: `Failed: ${path7.basename(key)}`
|
|
2149
|
+
});
|
|
2087
2150
|
}
|
|
2088
2151
|
}
|
|
2089
2152
|
sendEvent({ type: "cleanup", message: "Cleaning up..." });
|