ai_co_discuss 0.5.12 → 0.5.13
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/package.json +1 -1
- package/web/app.js +4 -2
- package/web/modern.css +1 -1
- package/web/modern.js +41 -41
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -8,7 +8,7 @@ const SHARE = window.CODISCUSS_SHARE || null;
|
|
|
8
8
|
// While a share page is being assembled, the raw answers of its reads, by route.
|
|
9
9
|
let share_recording = null;
|
|
10
10
|
// Where a reader of a share page learns about the product.
|
|
11
|
-
const SHARE_HOME = "https://
|
|
11
|
+
const SHARE_HOME = "https://codiscuss.com";
|
|
12
12
|
// The official share site that hosts published links (backend/share_worker.mjs); changing the domain changes only this.
|
|
13
13
|
const SHARE_SITE = "https://share.codiscuss.com";
|
|
14
14
|
// What a published link carries and how long it lives (the site enforces the same).
|
|
@@ -955,7 +955,9 @@ async function dissolve_room(id) {
|
|
|
955
955
|
// Wait one frame so the confirmation has begun to close; the effect draws the page itself, not what covers it.
|
|
956
956
|
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
957
957
|
const row = document.querySelector(`[data-drag-room="${CSS.escape(id)}"]`);
|
|
958
|
-
|
|
958
|
+
// A preview of the room's files (docked, floating, or folded into its capsule) dissolves too, then closes with the room.
|
|
959
|
+
const previews = [...document.querySelectorAll(`[data-preview-room="${CSS.escape(id)}"]`)];
|
|
960
|
+
const targets = [row, state.room?.id === id ? document.querySelector(".channel-main") : null, ...previews].filter(Boolean);
|
|
959
961
|
await Promise.all(targets.map(dust_away));
|
|
960
962
|
state.rooms = state.rooms.filter(item => item.id !== id);
|
|
961
963
|
if (state.room?.id === id) await select_room(visible_rooms()[0]?.id);
|