create-pmos 0.275.0 → 0.277.0
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/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/briefing-premium-board-test.js +1 -1
- package/workspace/briefing-premium-calendar-3-test.js +18 -6
- package/workspace/briefing-premium-initiative-test.js +1 -1
- package/workspace/briefing-premium-insights-test.js +2 -2
- package/workspace/briefing-premium-test.js +3 -2
- package/workspace/briefing-premium-work-test.js +1 -1
- package/workspace/c3-briefing-test.js +2 -2
- package/workspace/c3-capture-test.js +3 -3
- package/workspace/c3-core-docs-test.js +1 -1
- package/workspace/c3-driver-test.js +6 -6
- package/workspace/c3-foundation-test.js +4 -4
- package/workspace/c3-ini-harness.js +2 -2
- package/workspace/c3-initiatives-test.js +1 -1
- package/workspace/c3-light-load-test.js +2 -2
- package/workspace/c3-one-home-test.js +2 -2
- package/workspace/c3-phone-test.js +12 -12
- package/workspace/c3-quiet-test.js +5 -5
- package/workspace/c3-report-design-real-test.js +2 -2
- package/workspace/c3-report-design-test.js +4 -4
- package/workspace/c3-report-setup-test.js +7 -7
- package/workspace/c3-report-structure-real-test.js +2 -2
- package/workspace/c3-report-structure-test.js +2 -2
- package/workspace/c3-reports-test.js +2 -2
- package/workspace/c3-scan-test.js +7 -7
- package/workspace/c3-sessions-panel-test.js +2 -2
- package/workspace/c3-settings-test.js +7 -7
- package/workspace/c3-updates-test.js +1 -1
- package/workspace/c3-work-test.js +2 -2
- package/workspace/extension/README.md +1 -1
- package/workspace/extension/panel.js +3 -3
- package/workspace/extension/popup.js +4 -4
- package/workspace/guide/briefing-premium.md +13 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-phone-card-test.js +178 -0
- package/workspace/public/pm/c3-audience-link.js +2 -2
- package/workspace/public/pm/c3-capture.js +2 -2
- package/workspace/public/pm/c3-focus.js +1 -1
- package/workspace/public/pm/premium-board.js +2 -2
- package/workspace/public/pm/premium-insights.js +1 -1
- package/workspace/public/pm/premium-report-read.js +1 -1
- package/workspace/public/pm/premium-shell.js +3 -3
- package/workspace/public/pm/premium.css +18 -0
- package/workspace/public/pm/premium.js +95 -1
- package/workspace/public/premium-board.html +1 -1
- package/workspace/public/premium-initiative.html +1 -1
- package/workspace/public/premium-insights.html +1 -1
- package/workspace/public/premium-work.html +1 -1
- package/workspace/public/premium.html +11 -2
- package/workspace/server.js +12 -4
- package/workspace/test-lists/premium-phone-card.json +9 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* audienceChannelName(ws, path) the BroadcastChannel both windows share
|
|
4
4
|
* openAudienceWindow({ ws, path, name, start }) → { win, ch } | null (the browser blocked the window)
|
|
5
5
|
*
|
|
6
|
-
* The window is /
|
|
6
|
+
* The window is /console.html?audience=1&…, which c3-boot.js hands to c3-audience.js. It shows the slides only. The presenter view and the window tell
|
|
7
7
|
* each other the slide through the channel: { t: 'slide', i } both ways, { t: 'hello' } from a window that has just opened, { t: 'close' } from
|
|
8
8
|
* the presenter view when it ends. The channel carries a slide number and nothing else, and it exists only between pages of this origin. */
|
|
9
9
|
export const audienceChannelName = (ws, path) => 'pmos-audience:' + String(ws || '') + ':' + String(path || '');
|
|
@@ -13,7 +13,7 @@ export function openAudienceWindow({ ws, path, name, start } = {}) {
|
|
|
13
13
|
const q = new URLSearchParams({ audience: '1', ws: String(ws || ''), path: String(path || ''), name: String(name || 'Deck').slice(0, 120), start: String(Math.max(0, Number(start) || 0)) });
|
|
14
14
|
try { if (new URLSearchParams(location.search).get('demo') === '1') q.set('demo', '1'); } catch { /* no location */ }
|
|
15
15
|
let win = null;
|
|
16
|
-
try { win = window.open('/
|
|
16
|
+
try { win = window.open('/console.html?' + q.toString(), 'pmos-audience', 'popup=yes,width=1280,height=720'); } catch { win = null; }
|
|
17
17
|
if (!win || win.closed) return null;
|
|
18
18
|
let ch = null;
|
|
19
19
|
try { ch = typeof BroadcastChannel === 'function' ? new BroadcastChannel(audienceChannelName(ws, path)) : null; } catch { ch = null; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* pm/c3-capture.js — the page the PMOS Chrome extension frames in its popup (initiative report-design-studio; mockup 42-reportdeck.js, hashes
|
|
2
|
-
* #design-chrome and #design-chrome-page). c3-boot.js loads it alone for /
|
|
2
|
+
* #design-chrome and #design-chrome-page). c3-boot.js loads it alone for /console.html?capture=1&pop=1&pkind=deck|doc|page&ptitle=…&purl=…[&pscreens=N].
|
|
3
3
|
*
|
|
4
4
|
* It draws "Add this page to a report design": the page, the report to add it to (the report whose studio was opened last is chosen), how it is
|
|
5
5
|
* saved, and Add as a sample. The extension never posts to PMOS itself: every PMOS write needs a press on a PMOS page. So this page asks its
|
|
@@ -106,7 +106,7 @@ async function upload(m) {
|
|
|
106
106
|
function openStudio() {
|
|
107
107
|
const r = repOf(); if (!r) return;
|
|
108
108
|
if (window.parent !== window) { say({ pmosCapture: 'open', report: r.id }); return; }
|
|
109
|
-
location.href = '/
|
|
109
|
+
location.href = '/console.html?studio=' + encodeURIComponent(r.id) + (r.ws ? '&ws=' + encodeURIComponent(r.ws) : '');
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
window.addEventListener('message', (e) => {
|
|
@@ -400,7 +400,7 @@ function openNoteSheet() { F.ui.noteTab = F.ui.noteTab || 'note'; showSheet('not
|
|
|
400
400
|
|
|
401
401
|
/** The full focus page, in a new tab: the compact page's way to everything it leaves out. */
|
|
402
402
|
function fullUrl() {
|
|
403
|
-
const u = new URL('/
|
|
403
|
+
const u = new URL('/console.html', location.origin);
|
|
404
404
|
u.searchParams.set('focus', F.data ? F.data.event.id : F.id);
|
|
405
405
|
if (F.date) u.searchParams.set('fdate', F.date);
|
|
406
406
|
if (wsParam()) u.searchParams.set('ws', wsParam());
|
|
@@ -140,10 +140,10 @@ $('#docTop').addEventListener('click', async (e) => {
|
|
|
140
140
|
await load();
|
|
141
141
|
});
|
|
142
142
|
$('#docTop').addEventListener('input', (e) => { if (e.target.id === 'dmQ') { docQuery = e.target.value; drawDocList(); } });
|
|
143
|
-
const GOTAB = { rep: '/
|
|
143
|
+
const GOTAB = { rep: '/console.html?tab=rep', init: '/console.html?tab=init' };
|
|
144
144
|
$('#docBody').addEventListener('click', async (e) => {
|
|
145
145
|
const o = e.target.closest('[data-doc]'); if (o) { openReader(M.docs.rows.find((x) => x.key === o.dataset.doc)); return; }
|
|
146
|
-
const t = e.target.closest('[data-tab]'); if (t) { location.assign(GOTAB[t.dataset.tab] || '/
|
|
146
|
+
const t = e.target.closest('[data-tab]'); if (t) { location.assign(GOTAB[t.dataset.tab] || '/console.html'); return; }
|
|
147
147
|
const b = e.target.closest('[data-draft]'); if (!b || b.disabled) return;
|
|
148
148
|
const key = b.dataset.draft, d = M.docs.rows.find((x) => x.key === key);
|
|
149
149
|
b.disabled = true;
|
|
@@ -220,7 +220,7 @@ function drawReps() {
|
|
|
220
220
|
$('#repBody').addEventListener('click', (e) => {
|
|
221
221
|
const rp = e.target.closest('[data-rep]');
|
|
222
222
|
if (rp) { const row = M.reports.rows.find((x) => x.key === rp.dataset.rep), su = row && (M.reports.setups || []).find((x) => x.id === row.cadence); openReport(row, { ws: M.board.ws, name: su ? su.name : null }); return; }
|
|
223
|
-
if (e.target.closest('#repOpen')) { location.assign('/
|
|
223
|
+
if (e.target.closest('#repOpen')) { location.assign('/console.html?tab=rep'); return; }
|
|
224
224
|
if (e.target.closest('#repNew')) { openReportEdit(null); return; }
|
|
225
225
|
const f = e.target.closest('[data-found]'), a = e.target.closest('[data-ask]'), s = e.target.closest('[data-setup]');
|
|
226
226
|
if (f) openFound((M.reports.found || []).find((x) => x.id === f.dataset.found));
|
|
@@ -143,7 +143,7 @@ function draw() {
|
|
|
143
143
|
if (!R) return;
|
|
144
144
|
const m = $('#oMain');
|
|
145
145
|
const keep = document.activeElement && document.activeElement.closest && document.activeElement.closest('#oMain') ? document.activeElement.getAttribute('data-rr') : null;
|
|
146
|
-
m.innerHTML = `<div class="rdr" id="rdR">${barHtml()}<p class="note rdsrc" id="rdSrc">${esc(sourceLine())}</p>${designHtml()}${R.view === 'deck' ? deckHtml() : pageHtml()}<p class="note rdcon"><a class="lk" href="/
|
|
146
|
+
m.innerHTML = `<div class="rdr" id="rdR">${barHtml()}<p class="note rdsrc" id="rdSrc">${esc(sourceLine())}</p>${designHtml()}${R.view === 'deck' ? deckHtml() : pageHtml()}<p class="note rdcon"><a class="lk" href="/console.html?tab=rep">Open in the console</a> to edit or issue this document.</p></div>`;
|
|
147
147
|
fit(m);
|
|
148
148
|
if (keep) { const b = m.querySelector(`[data-rr="${keep}"]`); if (b) b.focus(); }
|
|
149
149
|
}
|
|
@@ -290,7 +290,7 @@ async function pvPal() {
|
|
|
290
290
|
const miss = [];
|
|
291
291
|
const ini = b.j && b.j.ok && Array.isArray(b.j.rows) ? b.j.rows.map((r) => ({ g: 'Initiatives', gl: 'ini', t: r.title || r.id, s: [r.lane, r.stage].filter(Boolean).join(' · '), go: '/premium-initiative.html?id=' + encodeURIComponent(r.id) + (b.j.ws ? '&ws=' + encodeURIComponent(b.j.ws) + '&board=' + encodeURIComponent(b.j.board) : '') })) : (miss.push('initiatives'), []);
|
|
292
292
|
const docs = d.j && d.j.ok && Array.isArray(d.j.docs) ? d.j.docs.map((x) => ({ g: 'Documents', gl: 'doc', t: x.title || x.key, s: d.j.scope && d.j.scope.name ? d.j.scope.name : 'Board', go: '/premium-board.html' + pvQ('?') })) : (miss.push('documents'), []);
|
|
293
|
-
const ses = s.j && Array.isArray(s.j.sessions) ? s.j.sessions.filter((x) => !x.automatic).map((x) => ({ g: 'Sessions', gl: 'ses', t: x.name || x.id, s: [x.cwd && x.cwd !== '.' ? x.cwd : '', x.state].filter(Boolean).join(' · '), go: '/
|
|
293
|
+
const ses = s.j && Array.isArray(s.j.sessions) ? s.j.sessions.filter((x) => !x.automatic).map((x) => ({ g: 'Sessions', gl: 'ses', t: x.name || x.id, s: [x.cwd && x.cwd !== '.' ? x.cwd : '', x.state].filter(Boolean).join(' · '), go: '/console.html' })) : (miss.push('sessions'), []);
|
|
294
294
|
pvOv.pal = { items: [...PLACES.map(([t, go]) => ({ g: 'Places', gl: 'place', t, s: 'Place', go })), ...ini, ...docs, ...ses], miss };
|
|
295
295
|
}
|
|
296
296
|
if (pvOv.kind === 'pal') pvPalDraw();
|
|
@@ -363,7 +363,7 @@ export async function openSettings() {
|
|
|
363
363
|
<div class="two" style="margin-top:10px"><label><input id="stP" maxlength="500" placeholder="Folder path of a repository" aria-label="Folder path of a repository"></label><button type="button" class="cta" id="stAdd">Add repository</button></div></div>
|
|
364
364
|
<div><span class="label">Connectors</span><p class="note" style="margin:0 0 8px">Which sources the Briefing reads. PMOS keeps no passwords or keys; your Claude session reaches each tool through its own connectors.</p>${srcRows}</div>
|
|
365
365
|
<p class="note" id="stM" role="status" style="margin:0;min-height:1.2em">${esc(M.err)}</p>
|
|
366
|
-
<p class="note" style="margin:0">Everything else runs on a default. <a href="/
|
|
366
|
+
<p class="note" style="margin:0">Everything else runs on a default. <a href="/console.html?tab=settings">More settings in the console</a>.</p></div></article>`;
|
|
367
367
|
};
|
|
368
368
|
openDlg({ eye: 'Settings · real data', title: 'Settings', say: 'Two choices only: which repositories PMOS works in, and which sources the Briefing reads.', stream: turnA(ptx('Two choices only: which repositories PMOS works in, and which sources the Briefing reads. Each press saves that one record and changes nothing else.')), noteKey: null, pane: '<article class="paper doc"></article>', label: 'Settings' });
|
|
369
369
|
$('#askF').hidden = true; setMode('detail'); draw();
|
|
@@ -430,7 +430,7 @@ export async function openSessions() {
|
|
|
430
430
|
}).join('')}</ul>` : '<div class="sse"><b>No agent sessions running.</b><p>New sessions start in the console.</p></div>';
|
|
431
431
|
$('#oMain').innerHTML = `<article class="paper doc"><div class="addf">${rows}
|
|
432
432
|
<p class="note" id="ssM" role="status" style="margin:0;min-height:1.2em">${esc(M.err)}</p>
|
|
433
|
-
<p class="note" style="margin:0">Terminals, new sessions and run questions stay in the console. <a href="/
|
|
433
|
+
<p class="note" style="margin:0">Terminals, new sessions and run questions stay in the console. <a href="/console.html">Open the console</a>.</p></div></article>`;
|
|
434
434
|
};
|
|
435
435
|
openDlg({ eye: 'Agent sessions · real data', title: 'Agent sessions', say: 'The sessions running now. Stop ends one.', stream: turnA(ptx('The sessions running now, read from the same list the console shows. Stop ends one and says so.')), noteKey: null, pane: '<article class="paper doc"></article>', label: 'Sessions' });
|
|
436
436
|
$('#askF').hidden = true; setMode('detail'); draw();
|
|
@@ -1631,3 +1631,21 @@ button.m3-stc{min-height:44px;margin:-7px 0}button.m3-stc:hover{background:var(-
|
|
|
1631
1631
|
.bd-src b{display:block;font-weight:650}.bd-src small{display:block;margin-top:2px;font-size:var(--t-small);color:var(--ink-3)}
|
|
1632
1632
|
.bd-st{font-weight:650}.bd-st.stale,.bd-st.failed{color:var(--ember-ink)}.bd-st.never{color:var(--bad)}
|
|
1633
1633
|
@media (max-width:700px){.bd-acts .cta{flex:1 1 auto;justify-content:center}.bd-src{grid-template-columns:minmax(0,1fr)}}
|
|
1634
|
+
|
|
1635
|
+
/* ── Briefing: the phone moment card (premium-phone-card) — shown at 640px and below only ── */
|
|
1636
|
+
#phoneCard{display:none}
|
|
1637
|
+
@media (max-width:640px){
|
|
1638
|
+
#phoneCard:not([hidden]){display:block}
|
|
1639
|
+
.phm{margin-top:24px;box-shadow:inset 3px 0 0 var(--ember),var(--card-shadow)}
|
|
1640
|
+
.phbig{display:block;margin:6px 0 4px;font-size:var(--t-lead,20px);font-weight:700;line-height:1.25;color:var(--ink);overflow-wrap:anywhere}
|
|
1641
|
+
.phtt{display:block;font-size:var(--t-body);font-weight:650;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
|
|
1642
|
+
.phl{margin:2px 0 8px;font-size:var(--t-small);color:var(--ink-2);overflow-wrap:anywhere}
|
|
1643
|
+
.phs{margin:4px 0;font-size:var(--t-small);line-height:1.5;color:var(--ink-3);overflow-wrap:anywhere}
|
|
1644
|
+
.phacts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
|
|
1645
|
+
.phacts .cta{height:44px;min-width:44px;padding:0 18px;margin:0;flex:1 1 auto;justify-content:center}
|
|
1646
|
+
.phfit{margin-top:12px;padding-top:12px;border-top:1px solid var(--hair)}
|
|
1647
|
+
.phstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 4px}
|
|
1648
|
+
.phstats div{display:grid;gap:2px;padding:10px;border-radius:12px;background:var(--well)}
|
|
1649
|
+
.phstats b{font-size:var(--t-lead,20px);font-weight:700;color:var(--ink)}
|
|
1650
|
+
.phstats span{font-size:var(--t-small);color:var(--ink-3)}
|
|
1651
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { pmPost, pmGet } from './http.js';
|
|
6
6
|
import { mountMeeting } from './premium-meeting.js';
|
|
7
7
|
import { lineItems, behindOf, refreshTargets, whenRead } from './freshness-words.js';
|
|
8
|
+
import { momentOf, inText } from './c3-phone-model.js';
|
|
8
9
|
import { $, $$, esc, store, THEME_KEY, RM, AI, S, theme, toast, kv, H, openDlg, closeDlg, setTab, setMode, CHECK, CHEV, ptx, turnA, turnU, H1, H2, P1, UL, logHtml, loadThread, onScroll, wireRail, pvFeed } from './premium-shell.js';
|
|
9
10
|
const ICON = {
|
|
10
11
|
meeting: '<rect x="4" y="5" width="16" height="15" rx="3"/><path d="M4 10h16M9 3v4M15 3v4"/>',
|
|
@@ -304,8 +305,10 @@ async function readProps(P) {
|
|
|
304
305
|
if (!items.length && errs.length) return { ok: false, error: errs[0] };
|
|
305
306
|
return { ok: true, items, errs };
|
|
306
307
|
}
|
|
308
|
+
const briefPage = (force) => (BP && !force && Date.now() - BP.at < 30000 ? BP.p : (BP = { at: Date.now(), p: getj('/api/brief-page') }).p); // one read of the day for the Around you card and the phone card
|
|
309
|
+
let BP = null;
|
|
307
310
|
async function readMen() {
|
|
308
|
-
const r = await
|
|
311
|
+
const r = await briefPage();
|
|
309
312
|
return r.ok ? { ok: true, list: Array.isArray(r.mentions) ? r.mentions : null } : r;
|
|
310
313
|
}
|
|
311
314
|
const PST = { 'on time': ['ok', 'On time'], 'at risk': ['warn', 'At risk'], delayed: ['bad', 'Delayed'], overdue: ['bad', 'Overdue'], 'no plan': ['', 'No plan'] };
|
|
@@ -684,6 +687,97 @@ function mountAround() {
|
|
|
684
687
|
}
|
|
685
688
|
mountAround();
|
|
686
689
|
|
|
690
|
+
/* ── the phone moment card: what the day is doing now, above What you need to do, at 640 px and narrower ───────────────────────────────
|
|
691
|
+
* The moment is chosen by momentOf (c3-phone-model.js) from the brief-page day and a clock. Every line below comes from /api/brief-page or /api/phone-day. */
|
|
692
|
+
const PH = { page: null, day: null, dayAt: 0, dec: new Map(), err: {} };
|
|
693
|
+
const phoneOn = () => matchMedia('(max-width:640px)').matches;
|
|
694
|
+
const pHm = (iso) => { const d = new Date(iso); return STAMP(d.getHours()) + ':' + STAMP(d.getMinutes()); };
|
|
695
|
+
const pWho = (m) => (m.people && m.people.length ? m.people.map(first).join(', ') : '');
|
|
696
|
+
const pOwn = () => ((PH.page && PH.page.ok && PH.page.needs) || []).filter((n) => n && n.id && (n.kind === 'overdue' || n.kind === 'due-today'))
|
|
697
|
+
.map((n) => ({ id: n.id, headline: n.headline, label: n.kind === 'overdue' ? (n.days_late === 1 ? '1 day late' : n.days_late + ' days late') : 'Due today', kind: n.kind, looks: !!(n.evidence && n.evidence.text) }));
|
|
698
|
+
const pBtn = (label, act, id, alt) => `<button type="button" class="cta${alt ? ' alt' : ''}" data-pha="${act}"${id != null ? ` data-id="${esc(id)}"` : ''}>${esc(label)}</button>`;
|
|
699
|
+
const pItem = (n) => {
|
|
700
|
+
const d = PH.dec.has(n.id);
|
|
701
|
+
const act = d ? `<p class="bd-done" role="status">${CHECK}<span>Done.</span></p><div class="phacts">${pBtn('Undo', 'phundo', n.id, true)}</div>` : `<div class="phacts">${pBtn(n.looks ? 'Confirm done' : 'Done', 'phdone', n.id)}</div>`;
|
|
702
|
+
return `<div class="phfit" data-id="${esc(n.id)}"><span class="label">${esc(n.label)}</span><b class="phtt">${esc(n.headline)}</b>${act}${PH.err[n.id] ? `<p class="nodef err" role="alert">${esc(PH.err[n.id])}</p>` : ''}</div>`;
|
|
703
|
+
};
|
|
704
|
+
const pItems = (list) => list.concat([...PH.dec.values()].filter((x) => !list.some((y) => y.id === x.id))).map(pItem).join('');
|
|
705
|
+
const pOpen = (m) => pBtn('Open the meeting', 'phopen', m.id, true);
|
|
706
|
+
const pBig = (t) => `<b class="phbig">${esc(t)}</b>`;
|
|
707
|
+
const pL = (t) => `<p class="phl">${esc(t)}</p>`, pS = (t) => `<p class="phs">${esc(t)}</p>`;
|
|
708
|
+
const pDayErr = () => (PH.day && PH.day.ok === false ? pS('Today could not be read: ' + PH.day.error + '.') : !PH.day ? pS('Reading your day.') : '');
|
|
709
|
+
const pNum = (n, one, many) => (n === 1 ? '1 ' + one : (n || 0) + ' ' + many);
|
|
710
|
+
function phMoment(mo) {
|
|
711
|
+
const m = mo.meeting, own = pOwn(), day = PH.day && PH.day.ok !== false ? PH.day : null, fin = day ? day.finished || [] : [];
|
|
712
|
+
const wait = own.length ? pNum(own.length, 'item of yours waits', 'items of yours wait') + '.' : 'Nothing of yours is due.';
|
|
713
|
+
const finRows = (n) => fin.slice(0, n).map((t) => `<div class="phfit"><span class="label">${t.status === 'review' ? 'Waits for you' : t.status === 'sent' ? 'Sent' : 'Finished'}</span><b class="phtt">${esc(t.title)}</b><p class="phs">${esc(t.summary)}</p></div>`).join('');
|
|
714
|
+
if (mo.kind === 'meeting') return `<span class="label">Under way · ends ${esc(inText(mo.minutes))}</span>${pBig(m.title)}${pWho(m) ? pL(pWho(m)) : ''}<div class="phacts">${pOpen(m)}</div>`;
|
|
715
|
+
if (mo.kind === 'before') {
|
|
716
|
+
const prep = (m.prepared || []).slice(0, 3).map((x) => `<p class="phs">${esc(x.text)}</p>`).join('') || pS('Nothing is prepared for it.');
|
|
717
|
+
const bf = (m.before || []).filter((x) => x && x.id && !x.done).map((x) => ({ id: x.id, headline: x.title, label: 'Before you go', kind: 'before' }));
|
|
718
|
+
return `<span class="label">Starts ${esc(inText(mo.minutes))} · ${pHm(m.start)}</span>${pBig(m.title)}${[pWho(m), m.initiative].filter(Boolean).length ? pL([pWho(m), m.initiative].filter(Boolean).join(' · ')) : ''}${prep}${pItems(bf)}<div class="phacts">${pOpen(m)}</div>`;
|
|
719
|
+
}
|
|
720
|
+
if (mo.kind === 'after') return `<span class="label">Just ended · ${pHm(m.end || m.start)}</span>${pBig(m.title)}${pS('The notes of this meeting, if there are any, are in the meeting.')}<div class="phacts">${pOpen(m)}</div>`;
|
|
721
|
+
if (mo.kind === 'gap') return `<span class="label">Until ${esc(mo.next.title)} at ${pHm(mo.next.start)}</span>${pBig(mo.minutes + ' free minutes')}${mo.fits.length ? pItems(mo.fits.map((n) => own.find((o) => o.id === n.id)).filter(Boolean)) : pL('Nothing of yours is due. A good moment to prepare the next meeting.')}`;
|
|
722
|
+
if (mo.kind === 'morning') {
|
|
723
|
+
const top = own.slice(0, 3);
|
|
724
|
+
return `<span class="label">Your morning</span>${pBig(top.length ? ['', 'One thing', 'Two things', 'Three things'][top.length] + ' this morning' : 'Nothing pressing this morning')}${pItems(top)}${pS(wait)}${mo.next ? `<div class="phfit"><b class="phtt">First up: ${esc(mo.next.title)} at ${pHm(mo.next.start)}</b><p class="phs">${esc(inText((Date.parse(mo.next.start) - Date.now()) / 60000).replace(/^in/, 'In'))}${pWho(mo.next) ? ' · ' + esc(pWho(mo.next)) : ''}</p><div class="phacts">${pOpen(mo.next)}</div></div>` : pS('No meetings today.')}`;
|
|
725
|
+
}
|
|
726
|
+
if (mo.kind === 'work') return `<span class="label">${mo.next ? 'Next: ' + esc(mo.next.title) + ' at ' + pHm(mo.next.start) : 'No more meetings today'}</span>${pBig(fin.length ? 'Finished for you' : 'Nothing new from the agent')}${fin.length ? finRows(2) + pS('Approving a draft waits for your computer.') : pDayErr() || pS('When the agent finishes a draft today, it shows here.')}${mo.fits.length ? pItems(mo.fits.map((n) => own.find((o) => o.id === n.id)).filter(Boolean)) : ''}${mo.next ? `<div class="phacts">${pOpen(mo.next)}</div>` : ''}`;
|
|
727
|
+
if (mo.kind === 'recap') {
|
|
728
|
+
const r = day && day.recap, one = own[0];
|
|
729
|
+
return `<span class="label">Evening recap</span>${pBig('How today went')}${r ? `<div class="phstats"><div><b>${r.meetings || 0}</b><span>meetings</span></div><div><b>${r.decided || 0}</b><span>decided in meetings</span></div><div><b>${r.done || 0}</b><span>done by you</span></div></div>${(r.moved || []).length ? `<div class="phfit"><b class="phtt">What moved</b>${r.moved.map((x) => `<p class="phs">${esc(x.text)}${x.sub ? ' · ' + esc(x.sub) : ''}</p>`).join('')}</div>` : ''}` : pDayErr()}<div class="phfit"><b class="phtt">Still open · ${own.length}</b>${own.slice(0, 3).map((x) => pS(x.headline)).join('')}${pS(own.length ? "They come first on tomorrow's Briefing." : 'Nothing of yours is still open.')}</div>${one ? `<div class="phfit"><span class="label">One thing tonight, if you have a minute</span>${pItems([one])}</div>` : ''}`;
|
|
730
|
+
}
|
|
731
|
+
const r = day && day.recap, tm = day && day.tomorrow;
|
|
732
|
+
return `<span class="label">End of day</span>${pBig(tm ? 'Tomorrow, ' + tm.label : 'Tomorrow, at a glance')}${r ? pL('Today: ' + [pNum(r.meetings, 'meeting', 'meetings'), pNum(r.decided, 'decision', 'decisions'), pNum(r.done, 'item done', 'items done')].join(', ') + '.') : ''}${tm ? `<div class="phfit"><b class="phtt">${tm.meetings.length ? pNum(tm.meetings.length, 'meeting', 'meetings') : 'No meetings'}</b>${tm.meetings.slice(0, 5).map((x) => `<p class="phs">${pHm(x.start)} · ${esc(x.title)}${pWho(x) ? ' · ' + esc(pWho(x)) : ''}</p>`).join('')}</div>` : pDayErr()}${pS(own.length ? pNum(own.length, 'item carries', 'items carry') + " over. They open first on tomorrow's Briefing." : 'Nothing carries over.')}`;
|
|
733
|
+
}
|
|
734
|
+
function drawPhone(focus) {
|
|
735
|
+
const c = $('#phoneCard'); if (!c) return;
|
|
736
|
+
c.hidden = !phoneOn(); if (c.hidden) return;
|
|
737
|
+
if (!PH.page) c.innerHTML = '<span class="label">Now</span><p class="phl">Reading your day.</p>';
|
|
738
|
+
else if (!PH.page.ok) c.innerHTML = `<span class="label">Now</span><p class="nodef err" role="alert">Your day ${esc(said(PH.page))}</p>`;
|
|
739
|
+
else { const mo = momentOf({ today: PH.page.today || [], needs: pOwn(), now: new Date() }); c.dataset.moment = mo.kind; c.innerHTML = phMoment(mo); }
|
|
740
|
+
if (focus) { const f = $(focus, c); if (f) f.focus(); }
|
|
741
|
+
}
|
|
742
|
+
async function readPhone(force) {
|
|
743
|
+
if (!phoneOn()) { drawPhone(); return; }
|
|
744
|
+
PH.page = await briefPage(force);
|
|
745
|
+
const mo = PH.page.ok ? momentOf({ today: PH.page.today || [], needs: pOwn(), now: new Date() }) : null;
|
|
746
|
+
if (mo && ['work', 'recap', 'night'].includes(mo.kind) && (force || !PH.day || Date.now() - PH.dayAt > 300000)) { PH.day = await getj('/api/phone-day'); PH.dayAt = Date.now(); }
|
|
747
|
+
drawPhone();
|
|
748
|
+
}
|
|
749
|
+
async function phonePress(e) {
|
|
750
|
+
const b = e.target.closest('[data-pha]'); if (!b || BUSY) return;
|
|
751
|
+
const act = b.dataset.pha, id = b.dataset.id;
|
|
752
|
+
if (act === 'phopen') {
|
|
753
|
+
const m = ((PH.page && PH.page.today) || []).find((x) => x.id === id); if (!m) return;
|
|
754
|
+
if (!(await week.openToday({ at: Date.parse(m.start), title: m.title }))) toast('The calendar PMOS holds does not list that meeting, so it could not be opened.');
|
|
755
|
+
return;
|
|
756
|
+
}
|
|
757
|
+
const n = pOwn().find((x) => x.id === id) || (PH.dec.get(id)) || (((PH.page && PH.page.today) || []).flatMap((x) => x.before || []).map((x) => ({ id: x.id, headline: x.title, label: 'Before you go', kind: 'before' })).find((x) => x.id === id));
|
|
758
|
+
if (!n) return;
|
|
759
|
+
BUSY = id; b.disabled = true; delete PH.err[id];
|
|
760
|
+
const r = await pmPost(act === 'phdone' ? '/api/pm-items/done' : '/api/pm-items/reopen', { id });
|
|
761
|
+
BUSY = '';
|
|
762
|
+
if (!r || r.ok === false) { PH.err[id] = 'That did not go through' + (r && r.error ? ': ' + r.error : '.'); drawPhone(`.phfit[data-id="${CSS.escape(id)}"] button`); return; }
|
|
763
|
+
if (act === 'phdone') { PH.dec.set(id, n); toast('Done: ' + n.headline); } else { PH.dec.delete(id); toast('Reopened: ' + n.headline); }
|
|
764
|
+
drawPhone(`.phfit[data-id="${CSS.escape(id)}"] button`);
|
|
765
|
+
await readPhone(true); drawPhone(`.phfit[data-id="${CSS.escape(id)}"] button`);
|
|
766
|
+
}
|
|
767
|
+
function mountPhone() {
|
|
768
|
+
const anchor = $('#hMoves') && $('#hMoves').closest('.cols2'); if (!anchor) return;
|
|
769
|
+
const s = document.createElement('section');
|
|
770
|
+
s.className = 'card rise phm'; s.id = 'phoneCard'; s.hidden = true; s.setAttribute('aria-label', 'Now'); s.style.setProperty('--d', '5');
|
|
771
|
+
anchor.insertAdjacentElement('beforebegin', s);
|
|
772
|
+
s.addEventListener('click', phonePress);
|
|
773
|
+
const mq = matchMedia('(max-width:640px)'), again = () => { if (!document.hidden) readPhone(); };
|
|
774
|
+
(mq.addEventListener ? mq.addEventListener('change', again) : mq.addListener(again));
|
|
775
|
+
document.addEventListener('visibilitychange', again);
|
|
776
|
+
setInterval(() => { if (!document.hidden && phoneOn()) { PH.page && PH.page.ok ? drawPhone() : null; readPhone(true); } }, 60000);
|
|
777
|
+
readPhone();
|
|
778
|
+
}
|
|
779
|
+
mountPhone();
|
|
780
|
+
|
|
687
781
|
/* ── load ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
688
782
|
let readTimer = null, AROUND = false;
|
|
689
783
|
const ago = (ms) => { const m = Math.round(ms / 60000); return m < 1 ? 'just now' : m < 90 ? m + ' min ago' : Math.round(m / 60) + ' h ago'; };
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<h1 class="vh">Board</h1><div id="crumbHost"></div>
|
|
36
36
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the board</span>
|
|
37
37
|
<span class="seg modeseg" id="modeSeg" role="group" aria-label="How an initiative opens"><i class="pill"></i><button data-m="page" aria-pressed="true">Page</button><button data-m="popup" aria-pressed="false">Popup</button></span>
|
|
38
|
-
<a class="glass round" id="toConsole" href="/
|
|
38
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
39
39
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
40
40
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
41
41
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<header class="top rise" style="--d:0">
|
|
35
35
|
<h1 class="vh" id="iH1">Initiative</h1><div id="crumbHost"></div>
|
|
36
36
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the initiative</span>
|
|
37
|
-
<a class="glass round" id="toConsole" href="/
|
|
37
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
38
38
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
39
39
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
40
40
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<header class="top rise" style="--d:0">
|
|
36
36
|
<h1 class="vh">Insights</h1><div id="crumbHost"></div>
|
|
37
37
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the records</span>
|
|
38
|
-
<a class="glass round" id="toConsole" href="/
|
|
38
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
39
39
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
40
40
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
41
41
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<header class="top rise" style="--d:0">
|
|
35
35
|
<h1 class="vh">My work</h1><span class="glass name" aria-hidden="true">My work</span>
|
|
36
36
|
<div class="tools tools-top"><span class="snap" id="snap">Reading your list</span>
|
|
37
|
-
<a class="glass round" id="toConsole" href="/
|
|
37
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
38
38
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
39
39
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
40
40
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
@@ -5,8 +5,17 @@
|
|
|
5
5
|
<meta name="pmos-nonce" content="" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
7
7
|
<title>PMOS · Briefing</title>
|
|
8
|
-
<!-- The premium Briefing (initiative briefing-premium, slice 1).
|
|
8
|
+
<!-- The premium Briefing (initiative briefing-premium, slice 1). The default page (premium-default-page); the console is at /console.html.
|
|
9
9
|
The rail's other three places open the matching console tab until their slices land. Slice 2 adds the PM's own presses (record a decision, put a row off, return a run, save a note); the page never writes on its own. -->
|
|
10
|
+
<!-- Add to Home Screen: this is the default page, so it carries what the console carried. The manifest is fetched with credentials because over the
|
|
11
|
+
tailnet every request needs the session cookie. -->
|
|
12
|
+
<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
|
|
13
|
+
<meta name="theme-color" content="#090b0c" />
|
|
14
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
15
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
16
|
+
<meta name="apple-mobile-web-app-title" content="PMOS" />
|
|
17
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
18
|
+
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
|
10
19
|
<link rel="preload" href="/vendor/geist-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
11
20
|
<link rel="stylesheet" href="/pm/premium.css" />
|
|
12
21
|
</head>
|
|
@@ -36,7 +45,7 @@
|
|
|
36
45
|
<h1 class="vh">Briefing</h1><span class="glass name" aria-hidden="true">Briefing</span>
|
|
37
46
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the repository</span>
|
|
38
47
|
<span class="pkw" id="pkw" hidden><button class="fchip" id="pick" aria-haspopup="menu" aria-expanded="false" aria-controls="pickMenu">Products<em id="pickN"></em></button><div class="crmenu pkmenu" id="pickMenu" role="menu" hidden></div></span>
|
|
39
|
-
<a class="glass round" id="toConsole" href="/
|
|
48
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
40
49
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
41
50
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
42
51
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
package/workspace/server.js
CHANGED
|
@@ -6091,14 +6091,22 @@ async function handleRequest(req, res) {
|
|
|
6091
6091
|
const built = BUILD_RE.exec(url.pathname);
|
|
6092
6092
|
const p = built ? built[1] : url.pathname;
|
|
6093
6093
|
|
|
6094
|
-
//
|
|
6095
|
-
//
|
|
6096
|
-
|
|
6094
|
+
// The premium Briefing (public/premium.html) is the default page: '/' and '/index.html' serve it (premium-default-page). The console
|
|
6095
|
+
// (public/c3.html) is served at '/console.html'. '/c3.html' is an old link: bare, it goes to the premium Briefing; with a query
|
|
6096
|
+
// (?tab=, ?studio=, ?audience=, ?capture=, ?demo=) it goes to '/console.html' with the same query, so every link the console made
|
|
6097
|
+
// for itself still lands in the console. The older shell (public/index.html) stays at '/classic.html'.
|
|
6098
|
+
// ROLLBACK, one line: change the final 'premium.html' in the readFile name chain below to 'c3.html' and delete the '/c3.html'
|
|
6099
|
+
// redirect block above.
|
|
6100
|
+
if (p === '/c3.html' || p === '/c3') {
|
|
6101
|
+
res.writeHead(302, { Location: (url.search ? '/console.html' : '/premium.html') + url.search, 'Cache-Control': 'no-store' });
|
|
6102
|
+
return res.end();
|
|
6103
|
+
}
|
|
6104
|
+
if (p === '/' || p === '/index.html' || p === '/console' || p === '/console.html' || p === '/classic' || p === '/classic.html' || p === '/welcome' || p === '/welcome.html' || p === '/premium' || p === '/premium.html' || p === '/premium-work' || p === '/premium-work.html' || p === '/premium-board' || p === '/premium-board.html' || p === '/premium-initiative' || p === '/premium-initiative.html' || p === '/premium-insights' || p === '/premium-insights.html') {
|
|
6097
6105
|
// pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
|
|
6098
6106
|
// restarted server never answers a press from a page that holds the previous launch's value. The page code is
|
|
6099
6107
|
// referenced under this launch's build prefix.
|
|
6100
6108
|
const n = pmGuard.launchNonce();
|
|
6101
|
-
return fs.readFile(path.join(PUB, (p === '/classic' || p === '/classic.html') ? 'index.html' : (p === '/welcome' || p === '/welcome.html') ? 'welcome.html' : (p === '/premium' || p === '/premium.html') ? 'premium.html' : (p === '/premium-work' || p === '/premium-work.html') ? 'premium-work.html' : (p === '/premium-board' || p === '/premium-board.html') ? 'premium-board.html' : (p === '/premium-initiative' || p === '/premium-initiative.html') ? 'premium-initiative.html' : (p === '/premium-insights' || p === '/premium-insights.html') ? 'premium-insights.html' : 'c3.html'), 'utf8', (err, html) => {
|
|
6109
|
+
return fs.readFile(path.join(PUB, (p === '/classic' || p === '/classic.html') ? 'index.html' : (p === '/welcome' || p === '/welcome.html') ? 'welcome.html' : (p === '/premium' || p === '/premium.html') ? 'premium.html' : (p === '/premium-work' || p === '/premium-work.html') ? 'premium-work.html' : (p === '/premium-board' || p === '/premium-board.html') ? 'premium-board.html' : (p === '/premium-initiative' || p === '/premium-initiative.html') ? 'premium-initiative.html' : (p === '/premium-insights' || p === '/premium-insights.html') ? 'premium-insights.html' : (p === '/console' || p === '/console.html') ? 'c3.html' : 'premium.html'), 'utf8', (err, html) => {
|
|
6102
6110
|
if (err) { res.writeHead(404); res.end('not found'); return; }
|
|
6103
6111
|
let out = withBuild(html);
|
|
6104
6112
|
if (n) out = out.replace('<meta name="' + pmGuard.NONCE_META + '" content="" />', '<meta name="' + pmGuard.NONCE_META + '" content="' + n + '" />');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Initiative premium-phone-card: the phone moment card on the premium Briefing at 640px and below, against the real server with the clock set per moment; Done and Reopen press the real routes.",
|
|
3
|
+
"seconds": {
|
|
4
|
+
"premium-phone-card-test.js": 90
|
|
5
|
+
},
|
|
6
|
+
"panels": [
|
|
7
|
+
"premium-phone-card-test.js"
|
|
8
|
+
]
|
|
9
|
+
}
|