catime 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl
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.
- catime/docs/app.js +16 -0
- catime/docs/index.html +4 -0
- catime/docs/style.css +25 -1
- {catime-0.4.0.dist-info → catime-0.4.1.dist-info}/METADATA +1 -1
- {catime-0.4.0.dist-info → catime-0.4.1.dist-info}/RECORD +8 -8
- {catime-0.4.0.dist-info → catime-0.4.1.dist-info}/WHEEL +0 -0
- {catime-0.4.0.dist-info → catime-0.4.1.dist-info}/entry_points.txt +0 -0
- {catime-0.4.0.dist-info → catime-0.4.1.dist-info}/licenses/LICENSE +0 -0
catime/docs/app.js
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
const lbImg = document.getElementById("lb-img");
|
|
19
19
|
const lbInfo = document.getElementById("lb-info");
|
|
20
20
|
const lbClose = document.getElementById("lb-close");
|
|
21
|
+
const lbPrompt = document.getElementById("lb-prompt");
|
|
22
|
+
const lbPromptText = document.getElementById("lb-prompt-text");
|
|
23
|
+
const lbCopyBtn = document.getElementById("lb-copy-btn");
|
|
21
24
|
|
|
22
25
|
// Date picker elements
|
|
23
26
|
const datePickerBtn = document.getElementById("date-picker-btn");
|
|
@@ -214,8 +217,21 @@
|
|
|
214
217
|
function openLightbox(cat) {
|
|
215
218
|
lbImg.src = cat.url;
|
|
216
219
|
lbInfo.textContent = `#${cat.number} \u00b7 ${cat.timestamp} \u00b7 ${cat.model || ""}`;
|
|
220
|
+
if (cat.prompt) {
|
|
221
|
+
lbPromptText.textContent = cat.prompt;
|
|
222
|
+
lbPrompt.classList.remove("hidden");
|
|
223
|
+
lbCopyBtn.textContent = "\u{1f4cb} Copy";
|
|
224
|
+
} else {
|
|
225
|
+
lbPrompt.classList.add("hidden");
|
|
226
|
+
}
|
|
217
227
|
lightbox.classList.remove("hidden");
|
|
218
228
|
}
|
|
229
|
+
lbCopyBtn.addEventListener("click", () => {
|
|
230
|
+
navigator.clipboard.writeText(lbPromptText.textContent).then(() => {
|
|
231
|
+
lbCopyBtn.textContent = "\u2705 Copied!";
|
|
232
|
+
setTimeout(() => { lbCopyBtn.textContent = "\u{1f4cb} Copy"; }, 1500);
|
|
233
|
+
});
|
|
234
|
+
});
|
|
219
235
|
lbClose.addEventListener("click", () => lightbox.classList.add("hidden"));
|
|
220
236
|
lightbox.addEventListener("click", e => { if (e.target === lightbox) lightbox.classList.add("hidden"); });
|
|
221
237
|
document.addEventListener("keydown", e => { if (e.key === "Escape") lightbox.classList.add("hidden"); });
|
catime/docs/index.html
CHANGED
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
<button id="lb-close" aria-label="Close">×</button>
|
|
52
52
|
<img id="lb-img" src="" alt="Cat">
|
|
53
53
|
<div id="lb-info"></div>
|
|
54
|
+
<div id="lb-prompt" class="hidden">
|
|
55
|
+
<p id="lb-prompt-text"></p>
|
|
56
|
+
<button id="lb-copy-btn" title="Copy prompt">📋 Copy</button>
|
|
57
|
+
</div>
|
|
54
58
|
</div>
|
|
55
59
|
|
|
56
60
|
<script src="app.js"></script>
|
catime/docs/style.css
CHANGED
|
@@ -255,6 +255,7 @@ body {
|
|
|
255
255
|
backdrop-filter: blur(8px);
|
|
256
256
|
display: flex; flex-direction: column;
|
|
257
257
|
align-items: center; justify-content: center;
|
|
258
|
+
overflow-y: auto; padding: 2rem 0;
|
|
258
259
|
}
|
|
259
260
|
#lb-close {
|
|
260
261
|
position: absolute; top: 1rem; right: 1.2rem;
|
|
@@ -264,7 +265,7 @@ body {
|
|
|
264
265
|
}
|
|
265
266
|
#lb-close:hover { transform: scale(1.2) rotate(90deg); }
|
|
266
267
|
#lb-img {
|
|
267
|
-
max-width: 90vw; max-height:
|
|
268
|
+
max-width: 90vw; max-height: 65vh;
|
|
268
269
|
border-radius: 16px;
|
|
269
270
|
box-shadow: 0 12px 40px rgba(0,0,0,.3);
|
|
270
271
|
}
|
|
@@ -273,6 +274,29 @@ body {
|
|
|
273
274
|
font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.3);
|
|
274
275
|
}
|
|
275
276
|
|
|
277
|
+
/* Lightbox prompt */
|
|
278
|
+
#lb-prompt {
|
|
279
|
+
margin-top: .8rem; max-width: 600px; width: 90vw;
|
|
280
|
+
background: rgba(0, 0, 0, .5); border-radius: 12px;
|
|
281
|
+
padding: .7rem 1rem; display: flex; align-items: flex-start; gap: .6rem;
|
|
282
|
+
}
|
|
283
|
+
#lb-prompt-text {
|
|
284
|
+
color: #fff; font-size: .82rem; line-height: 1.5;
|
|
285
|
+
word-break: break-word; flex: 1;
|
|
286
|
+
max-height: 4.5em; overflow-y: auto;
|
|
287
|
+
scrollbar-width: thin; scrollbar-color: var(--pink-light) transparent;
|
|
288
|
+
}
|
|
289
|
+
#lb-prompt-text::-webkit-scrollbar { width: 4px; }
|
|
290
|
+
#lb-prompt-text::-webkit-scrollbar-thumb { background: var(--pink-light); border-radius: 4px; }
|
|
291
|
+
#lb-copy-btn {
|
|
292
|
+
flex-shrink: 0; padding: .3rem .7rem; border: none; border-radius: 20px;
|
|
293
|
+
background: linear-gradient(135deg, var(--pink), var(--purple));
|
|
294
|
+
color: #fff; font-family: inherit; font-size: .78rem; font-weight: 700;
|
|
295
|
+
cursor: pointer; transition: transform .2s, box-shadow .2s; white-space: nowrap;
|
|
296
|
+
box-shadow: 0 2px 8px rgba(255, 107, 157, .3);
|
|
297
|
+
}
|
|
298
|
+
#lb-copy-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255, 107, 157, .5); }
|
|
299
|
+
|
|
276
300
|
/* Responsive */
|
|
277
301
|
@media (max-width: 1024px) {
|
|
278
302
|
.masonry { column-count: 2; margin-right: 0; }
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
catime/__init__.py,sha256=i8FYHW-V2UO0kNEghreL2-uQ70fLxsGQ0z5kGoNEbfk,70
|
|
2
2
|
catime/cli.py,sha256=9wvMNzCYkhvEJGOycuLCUf4MbvkpOAHw7Sfg0M1bN80,5743
|
|
3
|
-
catime/docs/app.js,sha256=
|
|
3
|
+
catime/docs/app.js,sha256=Hh-qKaBtmZfzL0auV0KXqVcd9dLnsW1DxbDXMWJM-lo,8919
|
|
4
4
|
catime/docs/apple-touch-icon.png,sha256=ZSipNfat3Wz3Gu3S5hTGPfIpc5hT_eDFFgScStJLzwQ,38872
|
|
5
5
|
catime/docs/favicon-32.png,sha256=13byvPFWFl_u2RiFITAIVZJZk75Ljo7_N_xS6NUmX_g,2496
|
|
6
6
|
catime/docs/favicon.ico,sha256=2LLdNzyOh5dCYMkpcOVCMyvYyg9PVJPTmmZ2APubvpQ,8050
|
|
7
7
|
catime/docs/icon-192.png,sha256=hx10FySGPXgaBVWMDLR6VJd9UBOfzybOeo9fNZMZTdw,43281
|
|
8
|
-
catime/docs/index.html,sha256=
|
|
9
|
-
catime/docs/style.css,sha256=
|
|
10
|
-
catime-0.4.
|
|
11
|
-
catime-0.4.
|
|
12
|
-
catime-0.4.
|
|
13
|
-
catime-0.4.
|
|
14
|
-
catime-0.4.
|
|
8
|
+
catime/docs/index.html,sha256=6oQWL8IWHAbdwKP6jN-DHgeXAhcLFzjdc6CXwe6L1Jo,2956
|
|
9
|
+
catime/docs/style.css,sha256=Kt6UX190gvOFxO41vwGWlYqyMisROJg74VxYkVrCVUc,11511
|
|
10
|
+
catime-0.4.1.dist-info/METADATA,sha256=JST_pgRFlplZPV1vFIJOhvyD_JaQ0JBOIuV-OWjlhVA,1814
|
|
11
|
+
catime-0.4.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
12
|
+
catime-0.4.1.dist-info/entry_points.txt,sha256=oPgi6h026vMo9YyEOH3wuNtD3A28e-s1ChJs-KWWGXw,43
|
|
13
|
+
catime-0.4.1.dist-info/licenses/LICENSE,sha256=p_h5YRMaNCwMqGXX5KDrk49_NWGpzAJ2d6IhKa67B0E,1064
|
|
14
|
+
catime-0.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|