create-heresay 0.2.36 → 0.2.38
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/release/VERSION +1 -1
- package/release/functions/lib/core/agent.js +6 -0
- package/release/functions/lib/core/duplicates.js +3 -2
- package/release/functions/lib/core/handler.js +24 -4
- package/release/functions/lib/core/store.js +3 -0
- package/release/functions/lib/core/version.js +1 -1
- package/release/functions/lib/core/withdraw.js +2 -2
- package/release/functions/lib/providers/firebase/firestore-store.js +4 -0
- package/release/public/app/index.html +4 -4
- package/release/public/dashboard.css +8 -2
- package/release/public/dashboard.js +112 -29
- package/release/public/loader-dark.svg +1 -0
- package/release/public/logo-dark.svg +1 -0
- package/release/public/mark-dark.svg +1 -0
- package/release/public/workspace.css +5 -0
- package/src/steps.mjs +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-heresay",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.38",
|
|
4
4
|
"description": "Set up your own Heresay: in-app feedback that every report gets a hearing. Creates a Firebase project in your Google account and deploys the dashboard, API and SDK to it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/release/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.38
|
|
@@ -257,6 +257,8 @@ export async function agent(p, req, deps, body, prompt, createProject, toReporte
|
|
|
257
257
|
return json(409, { error: `this brief is already ${report?.status}`, status: report?.status });
|
|
258
258
|
const takenByOther = (t) => claimLive(t, now) && t.claim.repo !== repoName;
|
|
259
259
|
const addNote = (t, text, kind) => ({ ...t, notes: [...(t.notes ?? []), { by: me, at, text, kind }] });
|
|
260
|
+
// The dashboard polls reports by updated_at, and shows claims and notes beside them.
|
|
261
|
+
const touch = () => deps.store.updateReport(app.id, found.task.report_id, { updated_at: at });
|
|
260
262
|
if (p[2] === 'claim') {
|
|
261
263
|
let refused = '';
|
|
262
264
|
const t = await deps.store.updateTask(app.id, found.task.id, (cur) => {
|
|
@@ -268,6 +270,7 @@ export async function agent(p, req, deps, body, prompt, createProject, toReporte
|
|
|
268
270
|
});
|
|
269
271
|
if (refused)
|
|
270
272
|
return json(409, { error: `already in progress in ${refused}`, claimed_by: refused });
|
|
273
|
+
await touch();
|
|
271
274
|
deps.log('api.brief_claimed', { repo: repoName, report_id: t.id });
|
|
272
275
|
return json(200, { brief: summary(t, app, now) });
|
|
273
276
|
}
|
|
@@ -280,6 +283,7 @@ export async function agent(p, req, deps, body, prompt, createProject, toReporte
|
|
|
280
283
|
// Working on it keeps the claim fresh.
|
|
281
284
|
return cur.claim?.repo === repoName ? { ...next, claim: { repo: repoName, at } } : next;
|
|
282
285
|
});
|
|
286
|
+
await touch();
|
|
283
287
|
return json(200, { brief: summary(t, app, now) });
|
|
284
288
|
}
|
|
285
289
|
if (p[2] === 'handoff') {
|
|
@@ -303,6 +307,7 @@ export async function agent(p, req, deps, body, prompt, createProject, toReporte
|
|
|
303
307
|
});
|
|
304
308
|
if (refused)
|
|
305
309
|
return json(409, { error: `in progress in ${refused}`, claimed_by: refused });
|
|
310
|
+
await touch();
|
|
306
311
|
deps.log('api.brief_handed_off', { from: repoName, to, report_id: t.id });
|
|
307
312
|
await notify('handoff', app, t.id, deps);
|
|
308
313
|
return json(200, { brief: summary(t, app, now) });
|
|
@@ -320,6 +325,7 @@ export async function agent(p, req, deps, body, prompt, createProject, toReporte
|
|
|
320
325
|
const res = await toReporter(app, found.task.id, note, me, fx.ref);
|
|
321
326
|
if (res.status === 200) {
|
|
322
327
|
await deps.store.updateTask(app.id, found.task.id, (cur) => ({ ...addNote(cur, `Fixed: ${note}`, 'note'), claim: null }));
|
|
328
|
+
await touch();
|
|
323
329
|
}
|
|
324
330
|
return res;
|
|
325
331
|
}
|
|
@@ -60,7 +60,7 @@ export async function merge(project, id, body, me, deps) {
|
|
|
60
60
|
const dup = { project_id: targetApp.id, report_id: target.id, by: me.email, at };
|
|
61
61
|
const moving = [report, ...await duplicatesOf(project, id, deps)];
|
|
62
62
|
for (const r of moving) {
|
|
63
|
-
await deps.store.updateReport(r.project_id, r.id, { duplicate_of: dup });
|
|
63
|
+
await deps.store.updateReport(r.project_id, r.id, { duplicate_of: dup, updated_at: at });
|
|
64
64
|
// Into an accepted report: these are accepted too, and their words join the brief.
|
|
65
65
|
if (target.status === 'accepted' && r.status === 'open') {
|
|
66
66
|
await deps.store.move(r.project_id, r.id, 'open', 'accepted', { triaged_by: me.email, updated_at: at });
|
|
@@ -71,6 +71,7 @@ export async function merge(project, id, body, me, deps) {
|
|
|
71
71
|
await deps.store.updateTask(targetApp.id, target.id, (t) => ({
|
|
72
72
|
...t, also_reported: [...(t.also_reported ?? []).filter((a) => !add.some((x) => x.report_id === a.report_id)), ...add],
|
|
73
73
|
}));
|
|
74
|
+
await deps.store.updateReport(targetApp.id, target.id, { updated_at: at });
|
|
74
75
|
}
|
|
75
76
|
deps.log('api.report_merged', { project_id: project.id, report_id: id, into: target.id, by: me.email, moved: moving.length });
|
|
76
77
|
return json(200, { merged: moving.map((r) => r.id), into: { project_id: targetApp.id, report_id: target.id, status: target.status } });
|
|
@@ -84,7 +85,7 @@ export async function unmerge(project, id, me, deps) {
|
|
|
84
85
|
return json(409, { error: 'this report isn\'t merged into another' });
|
|
85
86
|
if (report.status !== 'open')
|
|
86
87
|
return json(409, { error: `it has already followed that report to ${report.status}; it can't be separated now` });
|
|
87
|
-
await deps.store.updateReport(project.id, id, { duplicate_of: null });
|
|
88
|
+
await deps.store.updateReport(project.id, id, { duplicate_of: null, updated_at: new Date(deps.now()).toISOString() });
|
|
88
89
|
deps.log('api.report_unmerged', { project_id: project.id, report_id: id, by: me.email });
|
|
89
90
|
return json(200, { report_id: id });
|
|
90
91
|
}
|
|
@@ -7,6 +7,7 @@ import { withdraw } from './withdraw.js';
|
|
|
7
7
|
import { alsoReported, duplicatesOf, follow, merge, parseFixRef, stampFix, unmerge } from './duplicates.js';
|
|
8
8
|
import { notificationSettings, notify } from './notifications.js';
|
|
9
9
|
import { LIMITS, PLATFORMS, REPORT_ORDER, REPORT_TYPES, isFramework, isPlatform, isReportType, isSignIn, toReporterView, } from './types.js';
|
|
10
|
+
const ISO = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/;
|
|
10
11
|
/**
|
|
11
12
|
* Fixed windows. The public endpoint has no login, so each of these is a separate line of
|
|
12
13
|
* defence: the device id is chosen by the client and can be rotated, the IP limit catches that,
|
|
@@ -266,12 +267,31 @@ async function route(req, deps) {
|
|
|
266
267
|
if (p[2] === 'reports' && p.length === 3 && req.method === 'GET') {
|
|
267
268
|
// Alongside each accepted report: where its fix is going, and whether an agent has it.
|
|
268
269
|
const now = deps.now();
|
|
269
|
-
const
|
|
270
|
-
|
|
270
|
+
const since = req.query?.since;
|
|
271
|
+
if (since !== undefined && !(typeof since === 'string' && ISO.test(since) && !Number.isNaN(Date.parse(since)))) {
|
|
272
|
+
return json(400, { error: 'since must be an ISO timestamp' });
|
|
273
|
+
}
|
|
274
|
+
const brief = (t) => {
|
|
271
275
|
const live = t.claim && now - Date.parse(t.claim.at) < 24 * 3600_000;
|
|
272
|
-
|
|
276
|
+
return { repo: t.repo ?? null, claimed_by: live ? t.claim.repo : null, notes: t.notes ?? [] };
|
|
277
|
+
};
|
|
278
|
+
const briefs = {};
|
|
279
|
+
const nowIso = new Date(now).toISOString();
|
|
280
|
+
if (since !== undefined) {
|
|
281
|
+
// A delta: only what changed, and tasks only for those, so a poll costs a few reads.
|
|
282
|
+
const reports = await deps.store.listReportsSince(project.id, since);
|
|
283
|
+
for (const r of reports) {
|
|
284
|
+
if (r.status !== 'open' && r.status !== 'declined' && r.status !== 'withdrawn') {
|
|
285
|
+
const t = await deps.store.getTask(project.id, r.id);
|
|
286
|
+
if (t)
|
|
287
|
+
briefs[t.id] = brief(t);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return json(200, { reports, briefs, now: nowIso });
|
|
273
291
|
}
|
|
274
|
-
|
|
292
|
+
for (const t of await deps.store.listTasks(project.id))
|
|
293
|
+
briefs[t.id] = brief(t);
|
|
294
|
+
return json(200, { reports: sortForTriage(await deps.store.listReports(project.id)), briefs, now: nowIso });
|
|
275
295
|
}
|
|
276
296
|
if (p[2] === 'repos' && p.length === 3 && req.method === 'GET') {
|
|
277
297
|
return json(200, { repos: await reposFor(project.id, deps) });
|
|
@@ -41,6 +41,9 @@ export class MemoryStore {
|
|
|
41
41
|
async listReports(project_id) {
|
|
42
42
|
return [...this.reports.values()].filter((r) => r.project_id === project_id);
|
|
43
43
|
}
|
|
44
|
+
async listReportsSince(project_id, since) {
|
|
45
|
+
return (await this.listReports(project_id)).filter((r) => r.updated_at > since).slice(0, 500);
|
|
46
|
+
}
|
|
44
47
|
async listReportsForDevice(project_id, device_id) {
|
|
45
48
|
return (await this.listReports(project_id)).filter((r) => r.device_id === device_id);
|
|
46
49
|
}
|
|
@@ -19,10 +19,10 @@ export async function withdraw(project, id, by, reason, owns, deps) {
|
|
|
19
19
|
if (!t.ok)
|
|
20
20
|
return json(409, { error: 'it changed just now; look again' });
|
|
21
21
|
const withdrawal = { ...by, at, reason: why };
|
|
22
|
-
await deps.store.updateReport(project.id, id, { withdrawal });
|
|
22
|
+
await deps.store.updateReport(project.id, id, { withdrawal, updated_at: at });
|
|
23
23
|
// Reports merged into it stand on their own again: their reporters still want an answer.
|
|
24
24
|
for (const d of await duplicatesOf(project, id, deps))
|
|
25
|
-
await deps.store.updateReport(d.project_id, d.id, { duplicate_of: null });
|
|
25
|
+
await deps.store.updateReport(d.project_id, d.id, { duplicate_of: null, updated_at: at });
|
|
26
26
|
deps.log('api.report_withdrawn', { project_id: project.id, report_id: id, kind: by.kind });
|
|
27
27
|
return json(200, { report: { ...t.report, withdrawal } });
|
|
28
28
|
}
|
|
@@ -62,6 +62,10 @@ export class FirestoreStore {
|
|
|
62
62
|
const q = await this.reports(project_id).orderBy('created_at', 'desc').limit(500).get();
|
|
63
63
|
return q.docs.map((d) => d.data());
|
|
64
64
|
}
|
|
65
|
+
async listReportsSince(project_id, since) {
|
|
66
|
+
const q = await this.reports(project_id).where('updated_at', '>', since).orderBy('updated_at').limit(500).get();
|
|
67
|
+
return q.docs.map((d) => d.data());
|
|
68
|
+
}
|
|
65
69
|
async listReportsForDevice(project_id, device_id) {
|
|
66
70
|
const q = await this.reports(project_id).where('device_id', '==', device_id).limit(50).get();
|
|
67
71
|
return q.docs.map((d) => d.data());
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<body class="booting pending">
|
|
16
16
|
|
|
17
17
|
<!-- The one loader: from first paint until a page has everything it needs -->
|
|
18
|
-
<div id="loader" class="app-loader on" role="status" aria-label="Loading"><img src="/loader.svg" alt="" width="96" height="96"></div>
|
|
18
|
+
<div id="loader" class="app-loader on" role="status" aria-label="Loading"><img class="light-only" src="/loader.svg" alt="" width="96" height="96"><img class="dark-only" src="/loader-dark.svg" alt="" width="96" height="96"></div>
|
|
19
19
|
|
|
20
20
|
<!-- Signed out -->
|
|
21
21
|
<div id="gate" class="gate" hidden>
|
|
22
|
-
<img src="/mark.svg" alt="" width="64" height="64">
|
|
22
|
+
<img class="light-only" src="/mark.svg" alt="" width="64" height="64"><img class="dark-only" src="/mark-dark.svg" alt="" width="64" height="64">
|
|
23
23
|
<h1>Sign in to your Heresay</h1>
|
|
24
24
|
<p class="mute">Use the account your team owner added.</p>
|
|
25
25
|
<button id="google" class="btn primary wide"><svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path fill="#fff" d="M21.35 11.1H12v2.98h5.35c-.23 1.38-1.64 4.05-5.35 4.05a5.93 5.93 0 0 1 0-11.86c1.83 0 3.06.78 3.76 1.45l2.57-2.47C16.68 3.7 14.55 2.7 12 2.7a9.3 9.3 0 1 0 0 18.6c5.37 0 8.93-3.77 8.93-9.09 0-.61-.07-1.08-.16-1.54z"/></svg>Continue with Google</button>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
<!-- Signed in, but this Heresay can't let them in -->
|
|
36
36
|
<div id="blocked" class="gate" hidden>
|
|
37
|
-
<img src="/mark.svg" alt="" width="64" height="64">
|
|
37
|
+
<img class="light-only" src="/mark.svg" alt="" width="64" height="64"><img class="dark-only" src="/mark-dark.svg" alt="" width="64" height="64">
|
|
38
38
|
<h1 id="blocked-title"></h1>
|
|
39
39
|
<p id="blocked-text" class="mute"></p>
|
|
40
40
|
<button id="blocked-out" class="btn wide">Use another account</button>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<a class="skip-link" href="#view">Skip to content</a>
|
|
45
45
|
<aside class="sidebar" aria-label="Workspace navigation">
|
|
46
46
|
<button id="nav-close" class="btn ghost nav-close" type="button" aria-label="Close navigation">×</button>
|
|
47
|
-
<a class="brand" href="#/inbox" aria-label="Heresay inbox"><img src="/logo.svg" alt="Heresay" height="30"></a>
|
|
47
|
+
<a class="brand" href="#/inbox" aria-label="Heresay inbox"><img class="light-only" src="/logo.svg" alt="Heresay" height="30"><img class="dark-only" src="/logo-dark.svg" alt="Heresay" height="30"></a>
|
|
48
48
|
<div class="workspace-label"><span class="workspace-icon" aria-hidden="true">H</span><span>Your workspace</span><span class="workspace-role" id="workspace-role"></span></div>
|
|
49
49
|
<nav class="tabs" aria-label="Main">
|
|
50
50
|
<a href="#/inbox" data-nav="inbox"><span class="nav-icon" data-icon="inbox"></span>Inbox<span id="inbox-count" class="nav-count" hidden></span></a>
|
|
@@ -440,8 +440,15 @@ a.platform:hover { border-color:var(--acc); box-shadow:0 0 0 3px var(--mist); }
|
|
|
440
440
|
.top .who { max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
+
/* where a report came from: the app, a chat app, an agent */
|
|
444
|
+
.pill.src-pill { background:var(--src-bg); color:var(--src-fg); }
|
|
445
|
+
.src-sdk { --src-bg:var(--mist); --src-fg:var(--deep); }
|
|
446
|
+
.src-chat { --src-bg:var(--chat-bg); --src-fg:var(--chat-fg); }
|
|
447
|
+
.src-agent { --src-bg:var(--agent-bg); --src-fg:var(--agent-fg); }
|
|
448
|
+
.src-label { color:var(--src-fg); font-weight:600; }
|
|
449
|
+
.src-label::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; margin-right:5px; vertical-align:1px; }
|
|
450
|
+
|
|
443
451
|
/* chat apps */
|
|
444
|
-
.pill.chat-pill { background:var(--chat-bg); color:var(--chat-fg); }
|
|
445
452
|
.chat-details { margin-top:8px; font-size:14px; }
|
|
446
453
|
.chat-details summary { cursor:pointer; color:var(--mute); font-size:13px; }
|
|
447
454
|
.chat-details > .md { margin:6px 0 0; padding:10px 14px; border-radius:10px; background:var(--soft, #f5f6f7); }
|
|
@@ -473,7 +480,6 @@ a.platform:hover { border-color:var(--acc); box-shadow:0 0 0 3px var(--mist); }
|
|
|
473
480
|
.authorize .can { margin:6px 0 12px; padding-left:20px; line-height:1.6; }
|
|
474
481
|
|
|
475
482
|
/* findings from agents */
|
|
476
|
-
.pill.agent-pill { background:var(--agent-bg); color:var(--agent-fg); }
|
|
477
483
|
.report .files { margin:4px 0 0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:6px; font-size:12.5px; }
|
|
478
484
|
.report .files a, .report .files code { font:12.5px var(--mono, ui-monospace, monospace); padding:2px 6px; border-radius:6px; background:rgba(127,127,127,.12); color:inherit; }
|
|
479
485
|
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
(kids || []).forEach(function (c) { if (c) n.appendChild(typeof c === 'string' ? document.createTextNode(c) : c); });
|
|
41
41
|
return n;
|
|
42
42
|
}
|
|
43
|
+
// The mark in both themes; CSS shows the one that matches (brand guidelines: the on-dark version in dark mode).
|
|
44
|
+
function markImg(size) {
|
|
45
|
+
var f = document.createDocumentFragment();
|
|
46
|
+
f.appendChild(el('img', { class: 'light-only', src: '/mark.svg', alt: '', width: size, height: size }));
|
|
47
|
+
f.appendChild(el('img', { class: 'dark-only', src: '/mark-dark.svg', alt: '', width: size, height: size }));
|
|
48
|
+
return f;
|
|
49
|
+
}
|
|
43
50
|
|
|
44
51
|
// Reuse the dashboard's outline icon language throughout the workspace chrome.
|
|
45
52
|
var NAV_ICONS = {
|
|
@@ -1397,7 +1404,7 @@
|
|
|
1397
1404
|
if (!shown.some(function (r) { return key(r) === selected; })) selected = shown.length ? key(shown[0]) : null;
|
|
1398
1405
|
list.textContent = '';
|
|
1399
1406
|
if (!projects.length) {
|
|
1400
|
-
list.appendChild(el('div', { class: 'inbox-empty' }, [
|
|
1407
|
+
list.appendChild(el('div', { class: 'inbox-empty' }, [markImg(48), el('h2', { text: 'Add your first app' }), el('p', { text: 'Connect your app to give every report a hearing.' }), el('a', { class: 'btn primary', href: '#/new', text: 'Add an app' })]));
|
|
1401
1408
|
} else if (!shown.length) list.appendChild(el('div', { class: 'inbox-empty' }, [el('h2', { text: search || type !== 'all' || source !== 'all' ? 'No matching reports' : filter === 'open' ? 'All caught up' : 'Nothing here yet' }), el('p', { text: search || type !== 'all' || source !== 'all' ? 'Try another search or adjust your filters.' : 'New reports will appear here. Every report gets a hearing.' })]));
|
|
1402
1409
|
shown.forEach(function (r) {
|
|
1403
1410
|
var c = ctxs[r.project_id], count = (c.dups[r.id] || []).length + 1;
|
|
@@ -1407,7 +1414,7 @@
|
|
|
1407
1414
|
} }, [
|
|
1408
1415
|
el('span', { class: 'type-symbol', 'aria-hidden': 'true', text: { broken: '!', confusing: '?', improvement: '↗', idea: '+' }[r.type] }),
|
|
1409
1416
|
el('span', { class: 'preview-copy' }, [el('b', { text: title(r) }), el('span', { class: 'preview-app', text: productName(c.project) + ' · ' + platformOf(c.project.platform).label }),
|
|
1410
|
-
el('span', { class: 'preview-meta',
|
|
1417
|
+
el('span', { class: 'preview-meta' }, [sourceTag(r, 'src-label'), (count > 1 ? ' · ' + count + ' reports' : '') + ' · ' + relative(r.created_at)])]),
|
|
1411
1418
|
el('span', { class: 'pill ' + r.type, text: TYPE_LABEL[r.type] }),
|
|
1412
1419
|
]);
|
|
1413
1420
|
list.appendChild(button);
|
|
@@ -1422,12 +1429,15 @@
|
|
|
1422
1429
|
function drawDetail(shown, preserve) {
|
|
1423
1430
|
var chosen = shown.filter(function (x) { return key(x) === selected; })[0];
|
|
1424
1431
|
var signature = chosen ? JSON.stringify([chosen, ctxs[chosen.project_id].briefs[chosen.id], ctxs[chosen.project_id].dups[chosen.id], ctxs[chosen.project_id].repos]) : null;
|
|
1425
|
-
|
|
1432
|
+
var drawn = detail.querySelector('.detail-card, .detail-placeholder');
|
|
1433
|
+
// 'hold': a person is mid-reply, so the open report stays as it is until they ask for the refresh.
|
|
1434
|
+
if (preserve === 'hold' && drawn) return;
|
|
1435
|
+
if (preserve && signature === detailSignature && drawn) return;
|
|
1426
1436
|
detailSignature = signature;
|
|
1427
1437
|
detail.textContent = '';
|
|
1428
1438
|
detail.appendChild(el('button', { class: 'btn ghost detail-back', type: 'button', text: '← Back to reports', onclick: function () { view.classList.remove('detail-open'); var active = list.querySelector('[aria-current=true]'); if (active) active.focus(); } }));
|
|
1429
1439
|
var r = shown.filter(function (x) { return key(x) === selected; })[0];
|
|
1430
|
-
if (!r) { view.classList.remove('detail-open'); detail.appendChild(el('div', { class: 'detail-placeholder' }, [
|
|
1440
|
+
if (!r) { view.classList.remove('detail-open'); detail.appendChild(el('div', { class: 'detail-placeholder' }, [markImg(52), el('h2', { text: 'Every report gets a hearing.' }), el('p', { text: 'Select a report to read its story and decide what comes next.' })])); return; }
|
|
1431
1441
|
var c = ctxs[r.project_id];
|
|
1432
1442
|
var card = row(c.project, r, settled, c, true);
|
|
1433
1443
|
card.classList.add('detail-card');
|
|
@@ -1436,7 +1446,7 @@
|
|
|
1436
1446
|
card.querySelector('.meta').before(el('h2', { class: 'detail-title', text: title(r) }));
|
|
1437
1447
|
var evidence = card.querySelector('.trail');
|
|
1438
1448
|
if (evidence) evidence.open = true;
|
|
1439
|
-
var device = deviceView(r.context);
|
|
1449
|
+
var device = fromApp(r) ? deviceView(r.context) : null;
|
|
1440
1450
|
if (device) { var actions = card.querySelector('.actions'); card.insertBefore(device, actions || null); }
|
|
1441
1451
|
detail.appendChild(card);
|
|
1442
1452
|
}
|
|
@@ -1453,31 +1463,38 @@
|
|
|
1453
1463
|
return (detail.contains(document.activeElement) && /^(INPUT|TEXTAREA|SELECT)$/.test(document.activeElement.tagName)) || detail.querySelector('.busy, .settled')
|
|
1454
1464
|
|| Array.prototype.some.call(detail.querySelectorAll('textarea, input'), function (n) { return n.value.trim(); });
|
|
1455
1465
|
}
|
|
1456
|
-
|
|
1457
|
-
|
|
1466
|
+
/** Everything derived from the per-project reports: duplicate groups, counts, the sorted inbox. */
|
|
1467
|
+
function derive() {
|
|
1468
|
+
var everything = [].concat.apply([], projects.map(function (x) { return ctxs[x.id].reports; }));
|
|
1469
|
+
var dups = {}, counts = {};
|
|
1470
|
+
everything.forEach(function (r) { if (r.duplicate_of) (dups[r.duplicate_of.report_id] = dups[r.duplicate_of.report_id] || []).push(r); });
|
|
1471
|
+
Object.keys(dups).forEach(function (id) { counts[id] = dups[id].length; });
|
|
1472
|
+
projects.forEach(function (x) { var c = ctxs[x.id]; c.dups = dups; c.all = everything.filter(function (r) { return productOf(ctxs[r.project_id].project) === productOf(x); }); c.siblings = ctxs; c.reload = load; });
|
|
1473
|
+
reports = triageSort(everything.filter(function (r) { return !r.duplicate_of; }), counts);
|
|
1474
|
+
}
|
|
1475
|
+
function fetchAll() {
|
|
1476
|
+
var nextProjects, nextContexts = {};
|
|
1458
1477
|
return api('GET', '/projects').then(function (b) {
|
|
1459
|
-
if (!shell.isConnected) return;
|
|
1460
1478
|
nextProjects = b.projects;
|
|
1461
1479
|
return Promise.all(nextProjects.map(function (x) {
|
|
1462
1480
|
return Promise.all([api('GET', '/projects/' + x.id + '/reports'), api('GET', '/projects/' + x.id + '/repos')]).then(function (r) {
|
|
1463
|
-
nextContexts[x.id] = { project: x, reports: r[0].reports, briefs: r[0].briefs || {}, repos: r[1].repos || [] };
|
|
1481
|
+
nextContexts[x.id] = { project: x, reports: r[0].reports, briefs: r[0].briefs || {}, repos: r[1].repos || [], now: r[0].now || null };
|
|
1464
1482
|
});
|
|
1465
1483
|
}));
|
|
1466
|
-
}).then(function () {
|
|
1484
|
+
}).then(function () { return { projects: nextProjects, contexts: nextContexts }; });
|
|
1485
|
+
}
|
|
1486
|
+
function load(background) {
|
|
1487
|
+
var serial = ++loadSerial;
|
|
1488
|
+
return fetchAll().then(function (next) {
|
|
1467
1489
|
if (!shell.isConnected || serial !== loadSerial || (background && readingReport())) return;
|
|
1468
1490
|
// Commit a complete snapshot together; failed refreshes leave the old one intact.
|
|
1469
1491
|
// Retained details close over their context; update it in place after success.
|
|
1470
|
-
Object.keys(
|
|
1471
|
-
if (ctxs[id])
|
|
1492
|
+
Object.keys(next.contexts).forEach(function (id) {
|
|
1493
|
+
if (ctxs[id]) next.contexts[id] = Object.assign(ctxs[id], next.contexts[id]);
|
|
1472
1494
|
});
|
|
1473
|
-
projects =
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
everything.forEach(function (r) { if (r.duplicate_of) (dups[r.duplicate_of.report_id] = dups[r.duplicate_of.report_id] || []).push(r); });
|
|
1477
|
-
Object.keys(dups).forEach(function (id) { counts[id] = dups[id].length; });
|
|
1478
|
-
projects.forEach(function (x) { var c = ctxs[x.id]; c.dups = dups; c.all = everything.filter(function (r) { return productOf(ctxs[r.project_id].project) === productOf(x); }); c.siblings = ctxs; c.reload = load; });
|
|
1479
|
-
reports = triageSort(everything.filter(function (r) { return !r.duplicate_of; }), counts);
|
|
1480
|
-
loaded = true; drawProducts(); render(background === true);
|
|
1495
|
+
projects = next.projects; ctxs = next.contexts;
|
|
1496
|
+
derive();
|
|
1497
|
+
loaded = true; hideCue(); noteChange(); drawProducts(); render(background === true);
|
|
1481
1498
|
}).catch(function (x) {
|
|
1482
1499
|
if (!shell.isConnected) return;
|
|
1483
1500
|
if (loaded) { toast('Could not refresh reports. ' + x.message, null, true); return; }
|
|
@@ -1485,14 +1502,80 @@
|
|
|
1485
1502
|
list.appendChild(el('div', { class: 'inbox-empty' }, [el('h2', { text: 'Could not load reports' }), el('p', { class: 'err', role: 'alert', text: x.message }), el('button', { class: 'btn', text: 'Retry', onclick: load })]));
|
|
1486
1503
|
});
|
|
1487
1504
|
}
|
|
1505
|
+
|
|
1506
|
+
// Background polls fetch only what changed since the server's last `now`, so keeping the
|
|
1507
|
+
// inbox live costs a few reads. A person mid-reply keeps their detail pane; a cue offers the refresh.
|
|
1508
|
+
var FAST = 8000, SLOW = 30000, QUIET = 5 * 60000;
|
|
1509
|
+
var polling = false, lastChange = Date.now(), lastPoll = 0, pending = {}, failing = false;
|
|
1510
|
+
var cue = el('button', { class: 'btn ghost new-cue', type: 'button', hidden: true, onclick: function () { hideCue(); render(); } });
|
|
1511
|
+
listHead.after(cue);
|
|
1512
|
+
function noteChange() { lastChange = Date.now(); }
|
|
1513
|
+
function hideCue() { pending = {}; cue.hidden = true; }
|
|
1514
|
+
function showCue() {
|
|
1515
|
+
var n = Object.keys(pending).length;
|
|
1516
|
+
cue.hidden = !n;
|
|
1517
|
+
cue.textContent = n === 1 ? '1 new update. Show' : n + ' new updates. Show';
|
|
1518
|
+
}
|
|
1519
|
+
/** `since` is the server's clock, minus a short overlap so a write in the same instant is never missed. */
|
|
1520
|
+
function sinceOf(c) { return new Date(Date.parse(c.now) - 2000).toISOString(); }
|
|
1521
|
+
function poll(force) {
|
|
1522
|
+
if (!loaded || polling || !shell.isConnected) return;
|
|
1523
|
+
var quiet = Date.now() - lastChange > QUIET;
|
|
1524
|
+
if (!force && quiet && Date.now() - lastPoll < SLOW - 1000) return;
|
|
1525
|
+
polling = true; lastPoll = Date.now();
|
|
1526
|
+
var serial = loadSerial;
|
|
1527
|
+
Promise.all(projects.map(function (x) {
|
|
1528
|
+
var c = ctxs[x.id];
|
|
1529
|
+
if (!c || !c.now) return null;
|
|
1530
|
+
return api('GET', '/projects/' + x.id + '/reports?since=' + encodeURIComponent(sinceOf(c))).then(function (b) { return { id: x.id, body: b }; });
|
|
1531
|
+
})).then(function (deltas) {
|
|
1532
|
+
failing = false;
|
|
1533
|
+
if (!shell.isConnected || serial !== loadSerial) return;
|
|
1534
|
+
var changed = [];
|
|
1535
|
+
deltas.forEach(function (d) {
|
|
1536
|
+
if (!d) return;
|
|
1537
|
+
var c = ctxs[d.id], have = {};
|
|
1538
|
+
c.reports.forEach(function (r) { have[r.id] = r; });
|
|
1539
|
+
(d.body.reports || []).forEach(function (r) {
|
|
1540
|
+
var cur = have[r.id], brief = (d.body.briefs || {})[r.id];
|
|
1541
|
+
if (cur && JSON.stringify(cur) === JSON.stringify(r) && (brief === undefined || JSON.stringify(c.briefs[r.id]) === JSON.stringify(brief))) return;
|
|
1542
|
+
if (cur) Object.assign(cur, r); else c.reports.push(r);
|
|
1543
|
+
if (brief !== undefined) c.briefs[r.id] = brief;
|
|
1544
|
+
changed.push(d.id + '/' + r.id);
|
|
1545
|
+
});
|
|
1546
|
+
c.now = d.body.now || c.now;
|
|
1547
|
+
});
|
|
1548
|
+
if (!changed.length) return;
|
|
1549
|
+
noteChange();
|
|
1550
|
+
derive(); drawProducts();
|
|
1551
|
+
if (readingReport()) {
|
|
1552
|
+
changed.forEach(function (k) { pending[k] = true; });
|
|
1553
|
+
render('hold'); showCue();
|
|
1554
|
+
} else { hideCue(); render(true); }
|
|
1555
|
+
}).catch(function (x) {
|
|
1556
|
+
if (!shell.isConnected) return;
|
|
1557
|
+
if (x.status === 404) { load(true); return; }
|
|
1558
|
+
if (!failing) toast('Could not refresh reports. ' + x.message, null, true);
|
|
1559
|
+
failing = true;
|
|
1560
|
+
}).then(function () { polling = false; });
|
|
1561
|
+
}
|
|
1562
|
+
function resume() {
|
|
1563
|
+
if (!shell.isConnected) { document.removeEventListener('visibilitychange', onVisible); window.removeEventListener('focus', resume); return; }
|
|
1564
|
+
if (document.hidden) return;
|
|
1565
|
+
noteChange(); poll(true);
|
|
1566
|
+
}
|
|
1567
|
+
function onVisible() { resume(); }
|
|
1568
|
+
document.addEventListener('visibilitychange', onVisible);
|
|
1569
|
+
window.addEventListener('focus', resume);
|
|
1488
1570
|
load();
|
|
1489
|
-
every(
|
|
1490
|
-
// Keep a person's form, selection and reading position steady while they work.
|
|
1491
|
-
if (readingReport()) return;
|
|
1492
|
-
load(true);
|
|
1493
|
-
});
|
|
1571
|
+
every(FAST, function () { poll(false); });
|
|
1494
1572
|
}
|
|
1495
1573
|
|
|
1574
|
+
// Where a report came from, worded and coloured the same in the list and on the report.
|
|
1575
|
+
function sourceLabel(r) { return r.source === 'agent' ? 'From an agent' : r.source === 'chat' ? 'From ' + (r.via || 'a chat app') : 'From the app'; }
|
|
1576
|
+
function fromApp(r) { return (r.source || 'sdk') === 'sdk'; }
|
|
1577
|
+
function sourceTag(r, cls) { return el('span', { class: cls + ' src-' + (r.source || 'sdk'), text: sourceLabel(r) }); }
|
|
1578
|
+
|
|
1496
1579
|
function deviceView(c) {
|
|
1497
1580
|
var fields = [['Platform', c.platform], ['App version', c.app_version], ['Browser', c.browser], ['OS', c.os], ['Page', c.route], ['Network', c.network]];
|
|
1498
1581
|
var more = [['Page title', c.page_title], ['Device', c.device], ['Screen', c.screen], ['Viewport', c.viewport], ['Language', c.locale], ['Timezone', c.timezone], ['Theme', c.theme], ['Settings', c.settings], ['Session', c.session_s == null ? null : c.session_s + ' seconds']];
|
|
@@ -1779,9 +1862,9 @@
|
|
|
1779
1862
|
card = el('article', { class: 'report t-' + r.type }, [
|
|
1780
1863
|
el('div', { class: 'meta' }, [
|
|
1781
1864
|
el('span', { class: 'pill ' + r.type, text: TYPE_LABEL[r.type] }),
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1865
|
+
sourceTag(r, 'pill src-pill'),
|
|
1866
|
+
// Only a report sent from the app has a platform of its own; chat apps and agents have none.
|
|
1867
|
+
showPlatform && fromApp(r) ? el('span', { class: 'pill platform-pill', text: platformOf(p.platform).label }) : null,
|
|
1785
1868
|
el('time', { datetime: r.created_at, text: new Date(r.created_at).toLocaleString() }),
|
|
1786
1869
|
status,
|
|
1787
1870
|
]),
|
|
@@ -2446,7 +2529,7 @@
|
|
|
2446
2529
|
.catch(function (x) { err.textContent = x.message; });
|
|
2447
2530
|
};
|
|
2448
2531
|
view.appendChild(el('section', { class: 'card authorize' }, [
|
|
2449
|
-
|
|
2532
|
+
markImg(48),
|
|
2450
2533
|
el('h1', { text: 'Connect ' + b.client_name + ' to Heresay?' }),
|
|
2451
2534
|
el('p', { class: 'mute', text: 'As ' + me.email + '. It will be able to:' }),
|
|
2452
2535
|
el('ul', { class: 'can' }, [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" role="img" aria-label="Loading"><style>svg *{transform-box:view-box}.body,.eyes,.all{transform-origin:100px 100px}@media (prefers-reduced-motion:reduce){*{animation:none!important}}.eyes{animation:look 3.2s ease-in-out infinite}@keyframes look{0%,12%{transform:translate(0,0)}22%,40%{transform:translate(-9px,1px)}50%,68%{transform:translate(9px,-1px)}78%,100%{transform:translate(0,0)}}.eye{animation:blink 3.2s infinite}@keyframes blink{0%,84%,92%,100%{transform:scaleY(1)}88%{transform:scaleY(.1)}}</style><path d="M174.00 100.00 L174.47 100.65 L174.93 101.31 L175.38 101.97 L175.82 102.65 L176.26 103.33 L176.68 104.02 L177.08 104.71 L177.47 105.42 L177.85 106.13 L178.20 106.84 L178.54 107.56 L178.86 108.29 L179.15 109.02 L179.43 109.75 L179.68 110.49 L179.90 111.23 L180.10 111.97 L180.28 112.72 L180.43 113.46 L180.55 114.20 L180.65 114.95 L180.71 115.69 L180.75 116.43 L180.76 117.17 L180.73 117.90 L180.68 118.63 L180.60 119.35 L180.49 120.07 L180.34 120.78 L180.17 121.48 L179.97 122.18 L179.74 122.86 L179.48 123.54 L179.19 124.21 L178.87 124.87 L178.52 125.51 L178.14 126.15 L177.74 126.77 L177.31 127.38 L176.86 127.98 L176.38 128.56 L175.88 129.13 L175.36 129.68 L174.81 130.23 L174.25 130.75 L173.66 131.27 L173.06 131.77 L172.44 132.25 L171.80 132.72 L171.15 133.18 L170.48 133.62 L169.80 134.04 L169.11 134.46 L168.41 134.86 L167.70 135.24 L166.99 135.62 L166.27 135.98 L165.54 136.33 L164.82 136.67 L164.09 137.00 L163.35 137.32 L162.62 137.63 L161.89 137.93 L161.17 138.22 L160.45 138.51 L159.73 138.79 L159.02 139.06 L158.31 139.33 L157.62 139.60 L156.93 139.86 L156.25 140.13 L155.59 140.39 L154.93 140.65 L154.29 140.91 L153.66 141.17 L153.04 141.44 L152.44 141.71 L151.85 141.99 L151.28 142.27 L150.72 142.56 L150.17 142.85 L149.64 143.15 L149.13 143.47 L148.63 143.79 L148.15 144.12 L147.68 144.46 L147.23 144.82 L146.79 145.19 L146.37 145.57 L145.96 145.96 L145.57 146.37 L145.19 146.79 L144.82 147.23 L144.46 147.68 L144.12 148.15 L143.79 148.63 L143.47 149.13 L143.15 149.64 L142.85 150.17 L142.56 150.72 L142.27 151.28 L141.99 151.85 L141.71 152.44 L141.44 153.04 L141.17 153.66 L140.91 154.29 L140.65 154.93 L140.39 155.59 L140.13 156.25 L139.86 156.93 L139.60 157.62 L139.33 158.31 L139.06 159.02 L138.79 159.73 L138.51 160.45 L138.22 161.17 L137.93 161.89 L137.63 162.62 L137.32 163.35 L137.00 164.09 L136.67 164.82 L136.33 165.54 L135.98 166.27 L135.62 166.99 L135.24 167.70 L134.86 168.41 L134.46 169.11 L134.04 169.80 L133.62 170.48 L133.18 171.15 L132.72 171.80 L132.25 172.44 L131.77 173.06 L131.27 173.66 L130.75 174.25 L130.23 174.81 L129.68 175.36 L129.13 175.88 L128.56 176.38 L127.98 176.86 L127.38 177.31 L126.77 177.74 L126.15 178.14 L125.51 178.52 L124.87 178.87 L124.21 179.19 L123.54 179.48 L122.86 179.74 L122.18 179.97 L121.48 180.17 L120.78 180.34 L120.07 180.49 L119.35 180.60 L118.63 180.68 L117.90 180.73 L117.17 180.76 L116.43 180.75 L115.69 180.71 L114.95 180.65 L114.20 180.55 L113.46 180.43 L112.72 180.28 L111.97 180.10 L111.23 179.90 L110.49 179.68 L109.75 179.43 L109.02 179.15 L108.29 178.86 L107.56 178.54 L106.84 178.20 L106.13 177.85 L105.42 177.47 L104.71 177.08 L104.02 176.68 L103.33 176.26 L102.65 175.82 L101.97 175.38 L101.31 174.93 L100.65 174.47 L100.00 174.00 L99.36 173.53 L98.72 173.05 L98.10 172.57 L97.48 172.08 L96.87 171.60 L96.27 171.12 L95.68 170.64 L95.09 170.17 L94.51 169.70 L93.94 169.24 L93.38 168.78 L92.82 168.33 L92.26 167.90 L91.72 167.47 L91.17 167.06 L90.63 166.66 L90.10 166.27 L89.56 165.90 L89.03 165.54 L88.50 165.20 L87.98 164.88 L87.45 164.57 L86.92 164.28 L86.39 164.01 L85.87 163.76 L85.33 163.53 L84.80 163.31 L84.26 163.12 L83.72 162.94 L83.18 162.79 L82.63 162.65 L82.07 162.53 L81.51 162.43 L80.94 162.35 L80.36 162.28 L79.78 162.24 L79.19 162.21 L78.58 162.19 L77.98 162.20 L77.36 162.21 L76.73 162.24 L76.09 162.29 L75.44 162.34 L74.78 162.41 L74.12 162.49 L73.44 162.57 L72.75 162.67 L72.05 162.77 L71.35 162.88 L70.63 162.99 L69.90 163.10 L69.17 163.22 L68.42 163.34 L67.67 163.46 L66.91 163.57 L66.14 163.69 L65.36 163.80 L64.58 163.90 L63.79 164.00 L63.00 164.09 L62.20 164.17 L61.40 164.24 L60.60 164.30 L59.79 164.34 L58.99 164.38 L58.18 164.39 L57.38 164.40 L56.57 164.38 L55.77 164.35 L54.97 164.30 L54.18 164.24 L53.39 164.15 L52.61 164.04 L51.84 163.91 L51.08 163.76 L50.32 163.58 L49.58 163.39 L48.85 163.17 L48.13 162.92 L47.42 162.66 L46.73 162.37 L46.06 162.05 L45.40 161.72 L44.76 161.35 L44.13 160.97 L43.53 160.56 L42.94 160.13 L42.38 159.67 L41.83 159.19 L41.31 158.69 L40.81 158.17 L40.33 157.62 L39.87 157.06 L39.44 156.47 L39.03 155.87 L38.65 155.24 L38.28 154.60 L37.95 153.94 L37.63 153.27 L37.34 152.58 L37.08 151.87 L36.83 151.15 L36.61 150.42 L36.42 149.68 L36.24 148.92 L36.09 148.16 L35.96 147.39 L35.85 146.61 L35.76 145.82 L35.70 145.03 L35.65 144.23 L35.62 143.43 L35.60 142.62 L35.61 141.82 L35.62 141.01 L35.66 140.21 L35.70 139.40 L35.76 138.60 L35.83 137.80 L35.91 137.00 L36.00 136.21 L36.10 135.42 L36.20 134.64 L36.31 133.86 L36.43 133.09 L36.54 132.33 L36.66 131.58 L36.78 130.83 L36.90 130.10 L37.01 129.37 L37.12 128.65 L37.23 127.95 L37.33 127.25 L37.43 126.56 L37.51 125.88 L37.59 125.22 L37.66 124.56 L37.71 123.91 L37.76 123.27 L37.79 122.64 L37.80 122.02 L37.81 121.42 L37.79 120.81 L37.76 120.22 L37.72 119.64 L37.65 119.06 L37.57 118.49 L37.47 117.93 L37.35 117.37 L37.21 116.82 L37.06 116.28 L36.88 115.74 L36.69 115.20 L36.47 114.67 L36.24 114.13 L35.99 113.61 L35.72 113.08 L35.43 112.55 L35.12 112.02 L34.80 111.50 L34.46 110.97 L34.10 110.44 L33.73 109.90 L33.34 109.37 L32.94 108.83 L32.53 108.28 L32.10 107.74 L31.67 107.18 L31.22 106.62 L30.76 106.06 L30.30 105.49 L29.83 104.91 L29.36 104.32 L28.88 103.73 L28.40 103.13 L27.92 102.52 L27.43 101.90 L26.95 101.28 L26.47 100.64 L26.00 100.00 L25.53 99.35 L25.07 98.69 L24.62 98.03 L24.18 97.35 L23.74 96.67 L23.32 95.98 L22.92 95.29 L22.53 94.58 L22.15 93.87 L21.80 93.16 L21.46 92.44 L21.14 91.71 L20.85 90.98 L20.57 90.25 L20.32 89.51 L20.10 88.77 L19.90 88.03 L19.72 87.28 L19.57 86.54 L19.45 85.80 L19.35 85.05 L19.29 84.31 L19.25 83.57 L19.24 82.83 L19.27 82.10 L19.32 81.37 L19.40 80.65 L19.51 79.93 L19.66 79.22 L19.83 78.52 L20.03 77.82 L20.26 77.14 L20.52 76.46 L20.81 75.79 L21.13 75.13 L21.48 74.49 L21.86 73.85 L22.26 73.23 L22.69 72.62 L23.14 72.02 L23.62 71.44 L24.12 70.87 L24.64 70.32 L25.19 69.77 L25.75 69.25 L26.34 68.73 L26.94 68.23 L27.56 67.75 L28.20 67.28 L28.85 66.82 L29.52 66.38 L30.20 65.96 L30.89 65.54 L31.59 65.14 L32.30 64.76 L33.01 64.38 L33.73 64.02 L34.46 63.67 L35.18 63.33 L35.91 63.00 L36.65 62.68 L37.38 62.37 L38.11 62.07 L38.83 61.78 L39.55 61.49 L40.27 61.21 L40.98 60.94 L41.69 60.67 L42.38 60.40 L43.07 60.14 L43.75 59.87 L44.41 59.61 L45.07 59.35 L45.71 59.09 L46.34 58.83 L46.96 58.56 L47.56 58.29 L48.15 58.01 L48.72 57.73 L49.28 57.44 L49.83 57.15 L50.36 56.85 L50.87 56.53 L51.37 56.21 L51.85 55.88 L52.32 55.54 L52.77 55.18 L53.21 54.81 L53.63 54.43 L54.04 54.04 L54.43 53.63 L54.81 53.21 L55.18 52.77 L55.54 52.32 L55.88 51.85 L56.21 51.37 L56.53 50.87 L56.85 50.36 L57.15 49.83 L57.44 49.28 L57.73 48.72 L58.01 48.15 L58.29 47.56 L58.56 46.96 L58.83 46.34 L59.09 45.71 L59.35 45.07 L59.61 44.41 L59.87 43.75 L60.14 43.07 L60.40 42.38 L60.67 41.69 L60.94 40.98 L61.21 40.27 L61.49 39.55 L61.78 38.83 L62.07 38.11 L62.37 37.38 L62.68 36.65 L63.00 35.91 L63.33 35.18 L63.67 34.46 L64.02 33.73 L64.38 33.01 L64.76 32.30 L65.14 31.59 L65.54 30.89 L65.96 30.20 L66.38 29.52 L66.82 28.85 L67.28 28.20 L67.75 27.56 L68.23 26.94 L68.73 26.34 L69.25 25.75 L69.77 25.19 L70.32 24.64 L70.87 24.12 L71.44 23.62 L72.02 23.14 L72.62 22.69 L73.23 22.26 L73.85 21.86 L74.49 21.48 L75.13 21.13 L75.79 20.81 L76.46 20.52 L77.14 20.26 L77.82 20.03 L78.52 19.83 L79.22 19.66 L79.93 19.51 L80.65 19.40 L81.37 19.32 L82.10 19.27 L82.83 19.24 L83.57 19.25 L84.31 19.29 L85.05 19.35 L85.80 19.45 L86.54 19.57 L87.28 19.72 L88.03 19.90 L88.77 20.10 L89.51 20.32 L90.25 20.57 L90.98 20.85 L91.71 21.14 L92.44 21.46 L93.16 21.80 L93.87 22.15 L94.58 22.53 L95.29 22.92 L95.98 23.32 L96.67 23.74 L97.35 24.18 L98.03 24.62 L98.69 25.07 L99.35 25.53 L100.00 26.00 L100.64 26.47 L101.28 26.95 L101.90 27.43 L102.52 27.92 L103.13 28.40 L103.73 28.88 L104.32 29.36 L104.91 29.83 L105.49 30.30 L106.06 30.76 L106.62 31.22 L107.18 31.67 L107.74 32.10 L108.28 32.53 L108.83 32.94 L109.37 33.34 L109.90 33.73 L110.44 34.10 L110.97 34.46 L111.50 34.80 L112.02 35.12 L112.55 35.43 L113.08 35.72 L113.61 35.99 L114.13 36.24 L114.67 36.47 L115.20 36.69 L115.74 36.88 L116.28 37.06 L116.82 37.21 L117.37 37.35 L117.93 37.47 L118.49 37.57 L119.06 37.65 L119.64 37.72 L120.22 37.76 L120.81 37.79 L121.42 37.81 L122.02 37.80 L122.64 37.79 L123.27 37.76 L123.91 37.71 L124.56 37.66 L125.22 37.59 L125.88 37.51 L126.56 37.43 L127.25 37.33 L127.95 37.23 L128.65 37.12 L129.37 37.01 L130.10 36.90 L130.83 36.78 L131.58 36.66 L132.33 36.54 L133.09 36.43 L133.86 36.31 L134.64 36.20 L135.42 36.10 L136.21 36.00 L137.00 35.91 L137.80 35.83 L138.60 35.76 L139.40 35.70 L140.21 35.66 L141.01 35.62 L141.82 35.61 L142.62 35.60 L143.43 35.62 L144.23 35.65 L145.03 35.70 L145.82 35.76 L146.61 35.85 L147.39 35.96 L148.16 36.09 L148.92 36.24 L149.68 36.42 L150.42 36.61 L151.15 36.83 L151.87 37.08 L152.58 37.34 L153.27 37.63 L153.94 37.95 L154.60 38.28 L155.24 38.65 L155.87 39.03 L156.47 39.44 L157.06 39.87 L157.62 40.33 L158.17 40.81 L158.69 41.31 L159.19 41.83 L159.67 42.38 L160.13 42.94 L160.56 43.53 L160.97 44.13 L161.35 44.76 L161.72 45.40 L162.05 46.06 L162.37 46.73 L162.66 47.42 L162.92 48.13 L163.17 48.85 L163.39 49.58 L163.58 50.32 L163.76 51.08 L163.91 51.84 L164.04 52.61 L164.15 53.39 L164.24 54.18 L164.30 54.97 L164.35 55.77 L164.38 56.57 L164.40 57.38 L164.39 58.18 L164.38 58.99 L164.34 59.79 L164.30 60.60 L164.24 61.40 L164.17 62.20 L164.09 63.00 L164.00 63.79 L163.90 64.58 L163.80 65.36 L163.69 66.14 L163.57 66.91 L163.46 67.67 L163.34 68.42 L163.22 69.17 L163.10 69.90 L162.99 70.63 L162.88 71.35 L162.77 72.05 L162.67 72.75 L162.57 73.44 L162.49 74.12 L162.41 74.78 L162.34 75.44 L162.29 76.09 L162.24 76.73 L162.21 77.36 L162.20 77.98 L162.19 78.58 L162.21 79.19 L162.24 79.78 L162.28 80.36 L162.35 80.94 L162.43 81.51 L162.53 82.07 L162.65 82.63 L162.79 83.18 L162.94 83.72 L163.12 84.26 L163.31 84.80 L163.53 85.33 L163.76 85.87 L164.01 86.39 L164.28 86.92 L164.57 87.45 L164.88 87.98 L165.20 88.50 L165.54 89.03 L165.90 89.56 L166.27 90.10 L166.66 90.63 L167.06 91.17 L167.47 91.72 L167.90 92.26 L168.33 92.82 L168.78 93.38 L169.24 93.94 L169.70 94.51 L170.17 95.09 L170.64 95.68 L171.12 96.27 L171.60 96.87 L172.08 97.48 L172.57 98.10 L173.05 98.72 L173.53 99.36Z" fill="#2dd4bf"/><g class="eyes"><g class="eye e1" style="transform-origin:80px 106px"><path d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" fill="#0b5e57" transform="translate(80 106) rotate(-24) scale(1.25)"/></g><g class="eye e2" style="transform-origin:124px 101px"><path d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" fill="#0b5e57" transform="translate(124 101) rotate(-24) scale(1.25)"/></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="700" height="200" viewBox="0 0 700.08 200.00"><g transform="scale(1.0)"><path d="M174.00 100.00 L174.47 100.65 L174.93 101.31 L175.38 101.97 L175.82 102.65 L176.26 103.33 L176.68 104.02 L177.08 104.71 L177.47 105.42 L177.85 106.13 L178.20 106.84 L178.54 107.56 L178.86 108.29 L179.15 109.02 L179.43 109.75 L179.68 110.49 L179.90 111.23 L180.10 111.97 L180.28 112.72 L180.43 113.46 L180.55 114.20 L180.65 114.95 L180.71 115.69 L180.75 116.43 L180.76 117.17 L180.73 117.90 L180.68 118.63 L180.60 119.35 L180.49 120.07 L180.34 120.78 L180.17 121.48 L179.97 122.18 L179.74 122.86 L179.48 123.54 L179.19 124.21 L178.87 124.87 L178.52 125.51 L178.14 126.15 L177.74 126.77 L177.31 127.38 L176.86 127.98 L176.38 128.56 L175.88 129.13 L175.36 129.68 L174.81 130.23 L174.25 130.75 L173.66 131.27 L173.06 131.77 L172.44 132.25 L171.80 132.72 L171.15 133.18 L170.48 133.62 L169.80 134.04 L169.11 134.46 L168.41 134.86 L167.70 135.24 L166.99 135.62 L166.27 135.98 L165.54 136.33 L164.82 136.67 L164.09 137.00 L163.35 137.32 L162.62 137.63 L161.89 137.93 L161.17 138.22 L160.45 138.51 L159.73 138.79 L159.02 139.06 L158.31 139.33 L157.62 139.60 L156.93 139.86 L156.25 140.13 L155.59 140.39 L154.93 140.65 L154.29 140.91 L153.66 141.17 L153.04 141.44 L152.44 141.71 L151.85 141.99 L151.28 142.27 L150.72 142.56 L150.17 142.85 L149.64 143.15 L149.13 143.47 L148.63 143.79 L148.15 144.12 L147.68 144.46 L147.23 144.82 L146.79 145.19 L146.37 145.57 L145.96 145.96 L145.57 146.37 L145.19 146.79 L144.82 147.23 L144.46 147.68 L144.12 148.15 L143.79 148.63 L143.47 149.13 L143.15 149.64 L142.85 150.17 L142.56 150.72 L142.27 151.28 L141.99 151.85 L141.71 152.44 L141.44 153.04 L141.17 153.66 L140.91 154.29 L140.65 154.93 L140.39 155.59 L140.13 156.25 L139.86 156.93 L139.60 157.62 L139.33 158.31 L139.06 159.02 L138.79 159.73 L138.51 160.45 L138.22 161.17 L137.93 161.89 L137.63 162.62 L137.32 163.35 L137.00 164.09 L136.67 164.82 L136.33 165.54 L135.98 166.27 L135.62 166.99 L135.24 167.70 L134.86 168.41 L134.46 169.11 L134.04 169.80 L133.62 170.48 L133.18 171.15 L132.72 171.80 L132.25 172.44 L131.77 173.06 L131.27 173.66 L130.75 174.25 L130.23 174.81 L129.68 175.36 L129.13 175.88 L128.56 176.38 L127.98 176.86 L127.38 177.31 L126.77 177.74 L126.15 178.14 L125.51 178.52 L124.87 178.87 L124.21 179.19 L123.54 179.48 L122.86 179.74 L122.18 179.97 L121.48 180.17 L120.78 180.34 L120.07 180.49 L119.35 180.60 L118.63 180.68 L117.90 180.73 L117.17 180.76 L116.43 180.75 L115.69 180.71 L114.95 180.65 L114.20 180.55 L113.46 180.43 L112.72 180.28 L111.97 180.10 L111.23 179.90 L110.49 179.68 L109.75 179.43 L109.02 179.15 L108.29 178.86 L107.56 178.54 L106.84 178.20 L106.13 177.85 L105.42 177.47 L104.71 177.08 L104.02 176.68 L103.33 176.26 L102.65 175.82 L101.97 175.38 L101.31 174.93 L100.65 174.47 L100.00 174.00 L99.36 173.53 L98.72 173.05 L98.10 172.57 L97.48 172.08 L96.87 171.60 L96.27 171.12 L95.68 170.64 L95.09 170.17 L94.51 169.70 L93.94 169.24 L93.38 168.78 L92.82 168.33 L92.26 167.90 L91.72 167.47 L91.17 167.06 L90.63 166.66 L90.10 166.27 L89.56 165.90 L89.03 165.54 L88.50 165.20 L87.98 164.88 L87.45 164.57 L86.92 164.28 L86.39 164.01 L85.87 163.76 L85.33 163.53 L84.80 163.31 L84.26 163.12 L83.72 162.94 L83.18 162.79 L82.63 162.65 L82.07 162.53 L81.51 162.43 L80.94 162.35 L80.36 162.28 L79.78 162.24 L79.19 162.21 L78.58 162.19 L77.98 162.20 L77.36 162.21 L76.73 162.24 L76.09 162.29 L75.44 162.34 L74.78 162.41 L74.12 162.49 L73.44 162.57 L72.75 162.67 L72.05 162.77 L71.35 162.88 L70.63 162.99 L69.90 163.10 L69.17 163.22 L68.42 163.34 L67.67 163.46 L66.91 163.57 L66.14 163.69 L65.36 163.80 L64.58 163.90 L63.79 164.00 L63.00 164.09 L62.20 164.17 L61.40 164.24 L60.60 164.30 L59.79 164.34 L58.99 164.38 L58.18 164.39 L57.38 164.40 L56.57 164.38 L55.77 164.35 L54.97 164.30 L54.18 164.24 L53.39 164.15 L52.61 164.04 L51.84 163.91 L51.08 163.76 L50.32 163.58 L49.58 163.39 L48.85 163.17 L48.13 162.92 L47.42 162.66 L46.73 162.37 L46.06 162.05 L45.40 161.72 L44.76 161.35 L44.13 160.97 L43.53 160.56 L42.94 160.13 L42.38 159.67 L41.83 159.19 L41.31 158.69 L40.81 158.17 L40.33 157.62 L39.87 157.06 L39.44 156.47 L39.03 155.87 L38.65 155.24 L38.28 154.60 L37.95 153.94 L37.63 153.27 L37.34 152.58 L37.08 151.87 L36.83 151.15 L36.61 150.42 L36.42 149.68 L36.24 148.92 L36.09 148.16 L35.96 147.39 L35.85 146.61 L35.76 145.82 L35.70 145.03 L35.65 144.23 L35.62 143.43 L35.60 142.62 L35.61 141.82 L35.62 141.01 L35.66 140.21 L35.70 139.40 L35.76 138.60 L35.83 137.80 L35.91 137.00 L36.00 136.21 L36.10 135.42 L36.20 134.64 L36.31 133.86 L36.43 133.09 L36.54 132.33 L36.66 131.58 L36.78 130.83 L36.90 130.10 L37.01 129.37 L37.12 128.65 L37.23 127.95 L37.33 127.25 L37.43 126.56 L37.51 125.88 L37.59 125.22 L37.66 124.56 L37.71 123.91 L37.76 123.27 L37.79 122.64 L37.80 122.02 L37.81 121.42 L37.79 120.81 L37.76 120.22 L37.72 119.64 L37.65 119.06 L37.57 118.49 L37.47 117.93 L37.35 117.37 L37.21 116.82 L37.06 116.28 L36.88 115.74 L36.69 115.20 L36.47 114.67 L36.24 114.13 L35.99 113.61 L35.72 113.08 L35.43 112.55 L35.12 112.02 L34.80 111.50 L34.46 110.97 L34.10 110.44 L33.73 109.90 L33.34 109.37 L32.94 108.83 L32.53 108.28 L32.10 107.74 L31.67 107.18 L31.22 106.62 L30.76 106.06 L30.30 105.49 L29.83 104.91 L29.36 104.32 L28.88 103.73 L28.40 103.13 L27.92 102.52 L27.43 101.90 L26.95 101.28 L26.47 100.64 L26.00 100.00 L25.53 99.35 L25.07 98.69 L24.62 98.03 L24.18 97.35 L23.74 96.67 L23.32 95.98 L22.92 95.29 L22.53 94.58 L22.15 93.87 L21.80 93.16 L21.46 92.44 L21.14 91.71 L20.85 90.98 L20.57 90.25 L20.32 89.51 L20.10 88.77 L19.90 88.03 L19.72 87.28 L19.57 86.54 L19.45 85.80 L19.35 85.05 L19.29 84.31 L19.25 83.57 L19.24 82.83 L19.27 82.10 L19.32 81.37 L19.40 80.65 L19.51 79.93 L19.66 79.22 L19.83 78.52 L20.03 77.82 L20.26 77.14 L20.52 76.46 L20.81 75.79 L21.13 75.13 L21.48 74.49 L21.86 73.85 L22.26 73.23 L22.69 72.62 L23.14 72.02 L23.62 71.44 L24.12 70.87 L24.64 70.32 L25.19 69.77 L25.75 69.25 L26.34 68.73 L26.94 68.23 L27.56 67.75 L28.20 67.28 L28.85 66.82 L29.52 66.38 L30.20 65.96 L30.89 65.54 L31.59 65.14 L32.30 64.76 L33.01 64.38 L33.73 64.02 L34.46 63.67 L35.18 63.33 L35.91 63.00 L36.65 62.68 L37.38 62.37 L38.11 62.07 L38.83 61.78 L39.55 61.49 L40.27 61.21 L40.98 60.94 L41.69 60.67 L42.38 60.40 L43.07 60.14 L43.75 59.87 L44.41 59.61 L45.07 59.35 L45.71 59.09 L46.34 58.83 L46.96 58.56 L47.56 58.29 L48.15 58.01 L48.72 57.73 L49.28 57.44 L49.83 57.15 L50.36 56.85 L50.87 56.53 L51.37 56.21 L51.85 55.88 L52.32 55.54 L52.77 55.18 L53.21 54.81 L53.63 54.43 L54.04 54.04 L54.43 53.63 L54.81 53.21 L55.18 52.77 L55.54 52.32 L55.88 51.85 L56.21 51.37 L56.53 50.87 L56.85 50.36 L57.15 49.83 L57.44 49.28 L57.73 48.72 L58.01 48.15 L58.29 47.56 L58.56 46.96 L58.83 46.34 L59.09 45.71 L59.35 45.07 L59.61 44.41 L59.87 43.75 L60.14 43.07 L60.40 42.38 L60.67 41.69 L60.94 40.98 L61.21 40.27 L61.49 39.55 L61.78 38.83 L62.07 38.11 L62.37 37.38 L62.68 36.65 L63.00 35.91 L63.33 35.18 L63.67 34.46 L64.02 33.73 L64.38 33.01 L64.76 32.30 L65.14 31.59 L65.54 30.89 L65.96 30.20 L66.38 29.52 L66.82 28.85 L67.28 28.20 L67.75 27.56 L68.23 26.94 L68.73 26.34 L69.25 25.75 L69.77 25.19 L70.32 24.64 L70.87 24.12 L71.44 23.62 L72.02 23.14 L72.62 22.69 L73.23 22.26 L73.85 21.86 L74.49 21.48 L75.13 21.13 L75.79 20.81 L76.46 20.52 L77.14 20.26 L77.82 20.03 L78.52 19.83 L79.22 19.66 L79.93 19.51 L80.65 19.40 L81.37 19.32 L82.10 19.27 L82.83 19.24 L83.57 19.25 L84.31 19.29 L85.05 19.35 L85.80 19.45 L86.54 19.57 L87.28 19.72 L88.03 19.90 L88.77 20.10 L89.51 20.32 L90.25 20.57 L90.98 20.85 L91.71 21.14 L92.44 21.46 L93.16 21.80 L93.87 22.15 L94.58 22.53 L95.29 22.92 L95.98 23.32 L96.67 23.74 L97.35 24.18 L98.03 24.62 L98.69 25.07 L99.35 25.53 L100.00 26.00 L100.64 26.47 L101.28 26.95 L101.90 27.43 L102.52 27.92 L103.13 28.40 L103.73 28.88 L104.32 29.36 L104.91 29.83 L105.49 30.30 L106.06 30.76 L106.62 31.22 L107.18 31.67 L107.74 32.10 L108.28 32.53 L108.83 32.94 L109.37 33.34 L109.90 33.73 L110.44 34.10 L110.97 34.46 L111.50 34.80 L112.02 35.12 L112.55 35.43 L113.08 35.72 L113.61 35.99 L114.13 36.24 L114.67 36.47 L115.20 36.69 L115.74 36.88 L116.28 37.06 L116.82 37.21 L117.37 37.35 L117.93 37.47 L118.49 37.57 L119.06 37.65 L119.64 37.72 L120.22 37.76 L120.81 37.79 L121.42 37.81 L122.02 37.80 L122.64 37.79 L123.27 37.76 L123.91 37.71 L124.56 37.66 L125.22 37.59 L125.88 37.51 L126.56 37.43 L127.25 37.33 L127.95 37.23 L128.65 37.12 L129.37 37.01 L130.10 36.90 L130.83 36.78 L131.58 36.66 L132.33 36.54 L133.09 36.43 L133.86 36.31 L134.64 36.20 L135.42 36.10 L136.21 36.00 L137.00 35.91 L137.80 35.83 L138.60 35.76 L139.40 35.70 L140.21 35.66 L141.01 35.62 L141.82 35.61 L142.62 35.60 L143.43 35.62 L144.23 35.65 L145.03 35.70 L145.82 35.76 L146.61 35.85 L147.39 35.96 L148.16 36.09 L148.92 36.24 L149.68 36.42 L150.42 36.61 L151.15 36.83 L151.87 37.08 L152.58 37.34 L153.27 37.63 L153.94 37.95 L154.60 38.28 L155.24 38.65 L155.87 39.03 L156.47 39.44 L157.06 39.87 L157.62 40.33 L158.17 40.81 L158.69 41.31 L159.19 41.83 L159.67 42.38 L160.13 42.94 L160.56 43.53 L160.97 44.13 L161.35 44.76 L161.72 45.40 L162.05 46.06 L162.37 46.73 L162.66 47.42 L162.92 48.13 L163.17 48.85 L163.39 49.58 L163.58 50.32 L163.76 51.08 L163.91 51.84 L164.04 52.61 L164.15 53.39 L164.24 54.18 L164.30 54.97 L164.35 55.77 L164.38 56.57 L164.40 57.38 L164.39 58.18 L164.38 58.99 L164.34 59.79 L164.30 60.60 L164.24 61.40 L164.17 62.20 L164.09 63.00 L164.00 63.79 L163.90 64.58 L163.80 65.36 L163.69 66.14 L163.57 66.91 L163.46 67.67 L163.34 68.42 L163.22 69.17 L163.10 69.90 L162.99 70.63 L162.88 71.35 L162.77 72.05 L162.67 72.75 L162.57 73.44 L162.49 74.12 L162.41 74.78 L162.34 75.44 L162.29 76.09 L162.24 76.73 L162.21 77.36 L162.20 77.98 L162.19 78.58 L162.21 79.19 L162.24 79.78 L162.28 80.36 L162.35 80.94 L162.43 81.51 L162.53 82.07 L162.65 82.63 L162.79 83.18 L162.94 83.72 L163.12 84.26 L163.31 84.80 L163.53 85.33 L163.76 85.87 L164.01 86.39 L164.28 86.92 L164.57 87.45 L164.88 87.98 L165.20 88.50 L165.54 89.03 L165.90 89.56 L166.27 90.10 L166.66 90.63 L167.06 91.17 L167.47 91.72 L167.90 92.26 L168.33 92.82 L168.78 93.38 L169.24 93.94 L169.70 94.51 L170.17 95.09 L170.64 95.68 L171.12 96.27 L171.60 96.87 L172.08 97.48 L172.57 98.10 L173.05 98.72 L173.53 99.36Z" fill="#2dd4bf"/><path d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" fill="#0b5e57" transform="translate(80 106) rotate(-24) scale(1.25)"/><path d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" fill="#0b5e57" transform="translate(124 101) rotate(-24) scale(1.25)"/></g><g transform="translate(236.0 58.0)"><g transform="translate(0 100.0) scale(0.13158)"><path d="M36 0V-279V-700H198V-568Q198 -547 195.5 -512.5Q193 -478 188.5 -439.0Q184 -400 179.5 -364.5Q175 -329 172 -305H181Q190 -388 212.0 -440.5Q234 -493 272.0 -517.5Q310 -542 364 -542Q449 -542 490.0 -481.5Q531 -421 531 -299V0H369V-292Q369 -348 354.0 -374.0Q339 -400 305 -400Q275 -400 251.0 -377.5Q227 -355 212.5 -306.0Q198 -257 198 -179V0Z M831 14Q756 14 705.5 -7.5Q655 -29 624.0 -66.5Q593 -104 579.5 -152.0Q566 -200 566 -253Q566 -310 580.5 -362.0Q595 -414 625.5 -454.5Q656 -495 704.5 -518.5Q753 -542 821 -542Q889 -542 937.5 -518.5Q986 -495 1015.0 -453.0Q1044 -411 1052.5 -356.0Q1061 -301 1050 -237L667 -231V-319L926 -324L905 -273Q911 -319 903.5 -350.5Q896 -382 876.0 -398.5Q856 -415 821 -415Q784 -415 762.0 -396.0Q740 -377 731.0 -342.5Q722 -308 722 -261Q722 -180 749.0 -143.0Q776 -106 832 -106Q856 -106 872.0 -112.0Q888 -118 898.0 -129.5Q908 -141 912.0 -157.5Q916 -174 915 -195L1063 -187Q1066 -154 1056.5 -119.0Q1047 -84 1021.0 -54.0Q995 -24 948.5 -5.0Q902 14 831 14Z M1099 0V-287V-528H1239V-318H1247Q1253 -402 1270.5 -450.5Q1288 -499 1314.5 -519.5Q1341 -540 1374 -540Q1392 -540 1411.5 -535.0Q1431 -530 1450 -519L1442 -339Q1420 -352 1399.0 -358.5Q1378 -365 1359 -365Q1327 -365 1305.0 -347.0Q1283 -329 1271.5 -294.0Q1260 -259 1260 -209V0Z M1732 14Q1657 14 1606.5 -7.5Q1556 -29 1525.0 -66.5Q1494 -104 1480.5 -152.0Q1467 -200 1467 -253Q1467 -310 1481.5 -362.0Q1496 -414 1526.5 -454.5Q1557 -495 1605.5 -518.5Q1654 -542 1722 -542Q1790 -542 1838.5 -518.5Q1887 -495 1916.0 -453.0Q1945 -411 1953.5 -356.0Q1962 -301 1951 -237L1568 -231V-319L1827 -324L1806 -273Q1812 -319 1804.5 -350.5Q1797 -382 1777.0 -398.5Q1757 -415 1722 -415Q1685 -415 1663.0 -396.0Q1641 -377 1632.0 -342.5Q1623 -308 1623 -261Q1623 -180 1650.0 -143.0Q1677 -106 1733 -106Q1757 -106 1773.0 -112.0Q1789 -118 1799.0 -129.5Q1809 -141 1813.0 -157.5Q1817 -174 1816 -195L1964 -187Q1967 -154 1957.5 -119.0Q1948 -84 1922.0 -54.0Q1896 -24 1849.5 -5.0Q1803 14 1732 14Z M2231 14Q2178 14 2132.5 3.5Q2087 -7 2053.5 -30.0Q2020 -53 2002.5 -91.5Q1985 -130 1988 -185L2129 -197Q2131 -164 2144.0 -142.5Q2157 -121 2180.0 -111.0Q2203 -101 2236 -101Q2267 -101 2289.5 -111.5Q2312 -122 2312 -147Q2312 -160 2304.0 -168.5Q2296 -177 2274.5 -184.5Q2253 -192 2212 -202Q2161 -215 2120.0 -228.0Q2079 -241 2050.0 -259.0Q2021 -277 2006.0 -303.5Q1991 -330 1991 -369Q1991 -424 2020.5 -462.5Q2050 -501 2102.0 -521.5Q2154 -542 2222 -542Q2283 -542 2336.0 -523.0Q2389 -504 2419.5 -461.0Q2450 -418 2442 -347L2304 -334Q2307 -363 2296.0 -383.5Q2285 -404 2264.0 -414.5Q2243 -425 2213 -425Q2179 -425 2160.5 -412.5Q2142 -400 2142 -381Q2142 -366 2153.5 -355.5Q2165 -345 2189.5 -337.5Q2214 -330 2253 -321Q2287 -314 2324.0 -303.0Q2361 -292 2393.0 -273.5Q2425 -255 2445.0 -225.0Q2465 -195 2465 -149Q2465 -100 2438.0 -63.0Q2411 -26 2359.0 -6.0Q2307 14 2231 14Z M2638 14Q2598 14 2562.0 0.0Q2526 -14 2503.0 -45.5Q2480 -77 2480 -130Q2480 -179 2499.0 -209.5Q2518 -240 2550.0 -258.5Q2582 -277 2620.0 -286.5Q2658 -296 2695 -303Q2747 -313 2773.0 -319.0Q2799 -325 2808.5 -333.0Q2818 -341 2818 -355Q2818 -384 2796.5 -399.0Q2775 -414 2740 -414Q2718 -414 2696.0 -406.0Q2674 -398 2660.0 -377.5Q2646 -357 2647 -319L2503 -329Q2501 -392 2522.0 -433.5Q2543 -475 2579.5 -498.5Q2616 -522 2659.5 -532.0Q2703 -542 2746 -542Q2825 -542 2876.0 -512.5Q2927 -483 2951.5 -427.5Q2976 -372 2976 -293V-199Q2976 -166 2976.0 -132.5Q2976 -99 2976.0 -66.0Q2976 -33 2976 0H2836Q2836 -36 2836.0 -73.0Q2836 -110 2836 -151H2830Q2826 -106 2800.5 -68.5Q2775 -31 2733.5 -8.5Q2692 14 2638 14ZM2705 -104Q2722 -104 2741.5 -110.5Q2761 -117 2778.5 -132.0Q2796 -147 2807.0 -173.5Q2818 -200 2818 -239V-263L2845 -266Q2837 -253 2818.5 -245.0Q2800 -237 2777.0 -232.5Q2754 -228 2730.5 -223.5Q2707 -219 2687.0 -211.5Q2667 -204 2654.5 -191.5Q2642 -179 2642 -157Q2642 -131 2660.5 -117.5Q2679 -104 2705 -104Z M3213 156Q3183 156 3147.0 151.0Q3111 146 3075.0 135.0Q3039 124 3008 107L3045 -56Q3081 -22 3125.5 -8.0Q3170 6 3205 6Q3254 6 3287.5 -13.5Q3321 -33 3338.0 -70.5Q3355 -108 3355 -162V-254H3346Q3344 -184 3323.5 -139.5Q3303 -95 3268.0 -74.0Q3233 -53 3187 -53Q3130 -53 3092.5 -82.0Q3055 -111 3036.0 -169.0Q3017 -227 3017 -314V-528H3178V-356Q3178 -271 3196.0 -232.0Q3214 -193 3253 -193Q3273 -193 3288.5 -203.5Q3304 -214 3314.0 -235.5Q3324 -257 3329.0 -289.5Q3334 -322 3334 -365V-528H3495V-156Q3495 -102 3484.0 -54.5Q3473 -7 3451.0 31.5Q3429 70 3395.5 98.0Q3362 126 3316.5 141.0Q3271 156 3213 156Z" fill="#ffffff"/></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200.00 200.00"><path d="M174.00 100.00 L174.47 100.65 L174.93 101.31 L175.38 101.97 L175.82 102.65 L176.26 103.33 L176.68 104.02 L177.08 104.71 L177.47 105.42 L177.85 106.13 L178.20 106.84 L178.54 107.56 L178.86 108.29 L179.15 109.02 L179.43 109.75 L179.68 110.49 L179.90 111.23 L180.10 111.97 L180.28 112.72 L180.43 113.46 L180.55 114.20 L180.65 114.95 L180.71 115.69 L180.75 116.43 L180.76 117.17 L180.73 117.90 L180.68 118.63 L180.60 119.35 L180.49 120.07 L180.34 120.78 L180.17 121.48 L179.97 122.18 L179.74 122.86 L179.48 123.54 L179.19 124.21 L178.87 124.87 L178.52 125.51 L178.14 126.15 L177.74 126.77 L177.31 127.38 L176.86 127.98 L176.38 128.56 L175.88 129.13 L175.36 129.68 L174.81 130.23 L174.25 130.75 L173.66 131.27 L173.06 131.77 L172.44 132.25 L171.80 132.72 L171.15 133.18 L170.48 133.62 L169.80 134.04 L169.11 134.46 L168.41 134.86 L167.70 135.24 L166.99 135.62 L166.27 135.98 L165.54 136.33 L164.82 136.67 L164.09 137.00 L163.35 137.32 L162.62 137.63 L161.89 137.93 L161.17 138.22 L160.45 138.51 L159.73 138.79 L159.02 139.06 L158.31 139.33 L157.62 139.60 L156.93 139.86 L156.25 140.13 L155.59 140.39 L154.93 140.65 L154.29 140.91 L153.66 141.17 L153.04 141.44 L152.44 141.71 L151.85 141.99 L151.28 142.27 L150.72 142.56 L150.17 142.85 L149.64 143.15 L149.13 143.47 L148.63 143.79 L148.15 144.12 L147.68 144.46 L147.23 144.82 L146.79 145.19 L146.37 145.57 L145.96 145.96 L145.57 146.37 L145.19 146.79 L144.82 147.23 L144.46 147.68 L144.12 148.15 L143.79 148.63 L143.47 149.13 L143.15 149.64 L142.85 150.17 L142.56 150.72 L142.27 151.28 L141.99 151.85 L141.71 152.44 L141.44 153.04 L141.17 153.66 L140.91 154.29 L140.65 154.93 L140.39 155.59 L140.13 156.25 L139.86 156.93 L139.60 157.62 L139.33 158.31 L139.06 159.02 L138.79 159.73 L138.51 160.45 L138.22 161.17 L137.93 161.89 L137.63 162.62 L137.32 163.35 L137.00 164.09 L136.67 164.82 L136.33 165.54 L135.98 166.27 L135.62 166.99 L135.24 167.70 L134.86 168.41 L134.46 169.11 L134.04 169.80 L133.62 170.48 L133.18 171.15 L132.72 171.80 L132.25 172.44 L131.77 173.06 L131.27 173.66 L130.75 174.25 L130.23 174.81 L129.68 175.36 L129.13 175.88 L128.56 176.38 L127.98 176.86 L127.38 177.31 L126.77 177.74 L126.15 178.14 L125.51 178.52 L124.87 178.87 L124.21 179.19 L123.54 179.48 L122.86 179.74 L122.18 179.97 L121.48 180.17 L120.78 180.34 L120.07 180.49 L119.35 180.60 L118.63 180.68 L117.90 180.73 L117.17 180.76 L116.43 180.75 L115.69 180.71 L114.95 180.65 L114.20 180.55 L113.46 180.43 L112.72 180.28 L111.97 180.10 L111.23 179.90 L110.49 179.68 L109.75 179.43 L109.02 179.15 L108.29 178.86 L107.56 178.54 L106.84 178.20 L106.13 177.85 L105.42 177.47 L104.71 177.08 L104.02 176.68 L103.33 176.26 L102.65 175.82 L101.97 175.38 L101.31 174.93 L100.65 174.47 L100.00 174.00 L99.36 173.53 L98.72 173.05 L98.10 172.57 L97.48 172.08 L96.87 171.60 L96.27 171.12 L95.68 170.64 L95.09 170.17 L94.51 169.70 L93.94 169.24 L93.38 168.78 L92.82 168.33 L92.26 167.90 L91.72 167.47 L91.17 167.06 L90.63 166.66 L90.10 166.27 L89.56 165.90 L89.03 165.54 L88.50 165.20 L87.98 164.88 L87.45 164.57 L86.92 164.28 L86.39 164.01 L85.87 163.76 L85.33 163.53 L84.80 163.31 L84.26 163.12 L83.72 162.94 L83.18 162.79 L82.63 162.65 L82.07 162.53 L81.51 162.43 L80.94 162.35 L80.36 162.28 L79.78 162.24 L79.19 162.21 L78.58 162.19 L77.98 162.20 L77.36 162.21 L76.73 162.24 L76.09 162.29 L75.44 162.34 L74.78 162.41 L74.12 162.49 L73.44 162.57 L72.75 162.67 L72.05 162.77 L71.35 162.88 L70.63 162.99 L69.90 163.10 L69.17 163.22 L68.42 163.34 L67.67 163.46 L66.91 163.57 L66.14 163.69 L65.36 163.80 L64.58 163.90 L63.79 164.00 L63.00 164.09 L62.20 164.17 L61.40 164.24 L60.60 164.30 L59.79 164.34 L58.99 164.38 L58.18 164.39 L57.38 164.40 L56.57 164.38 L55.77 164.35 L54.97 164.30 L54.18 164.24 L53.39 164.15 L52.61 164.04 L51.84 163.91 L51.08 163.76 L50.32 163.58 L49.58 163.39 L48.85 163.17 L48.13 162.92 L47.42 162.66 L46.73 162.37 L46.06 162.05 L45.40 161.72 L44.76 161.35 L44.13 160.97 L43.53 160.56 L42.94 160.13 L42.38 159.67 L41.83 159.19 L41.31 158.69 L40.81 158.17 L40.33 157.62 L39.87 157.06 L39.44 156.47 L39.03 155.87 L38.65 155.24 L38.28 154.60 L37.95 153.94 L37.63 153.27 L37.34 152.58 L37.08 151.87 L36.83 151.15 L36.61 150.42 L36.42 149.68 L36.24 148.92 L36.09 148.16 L35.96 147.39 L35.85 146.61 L35.76 145.82 L35.70 145.03 L35.65 144.23 L35.62 143.43 L35.60 142.62 L35.61 141.82 L35.62 141.01 L35.66 140.21 L35.70 139.40 L35.76 138.60 L35.83 137.80 L35.91 137.00 L36.00 136.21 L36.10 135.42 L36.20 134.64 L36.31 133.86 L36.43 133.09 L36.54 132.33 L36.66 131.58 L36.78 130.83 L36.90 130.10 L37.01 129.37 L37.12 128.65 L37.23 127.95 L37.33 127.25 L37.43 126.56 L37.51 125.88 L37.59 125.22 L37.66 124.56 L37.71 123.91 L37.76 123.27 L37.79 122.64 L37.80 122.02 L37.81 121.42 L37.79 120.81 L37.76 120.22 L37.72 119.64 L37.65 119.06 L37.57 118.49 L37.47 117.93 L37.35 117.37 L37.21 116.82 L37.06 116.28 L36.88 115.74 L36.69 115.20 L36.47 114.67 L36.24 114.13 L35.99 113.61 L35.72 113.08 L35.43 112.55 L35.12 112.02 L34.80 111.50 L34.46 110.97 L34.10 110.44 L33.73 109.90 L33.34 109.37 L32.94 108.83 L32.53 108.28 L32.10 107.74 L31.67 107.18 L31.22 106.62 L30.76 106.06 L30.30 105.49 L29.83 104.91 L29.36 104.32 L28.88 103.73 L28.40 103.13 L27.92 102.52 L27.43 101.90 L26.95 101.28 L26.47 100.64 L26.00 100.00 L25.53 99.35 L25.07 98.69 L24.62 98.03 L24.18 97.35 L23.74 96.67 L23.32 95.98 L22.92 95.29 L22.53 94.58 L22.15 93.87 L21.80 93.16 L21.46 92.44 L21.14 91.71 L20.85 90.98 L20.57 90.25 L20.32 89.51 L20.10 88.77 L19.90 88.03 L19.72 87.28 L19.57 86.54 L19.45 85.80 L19.35 85.05 L19.29 84.31 L19.25 83.57 L19.24 82.83 L19.27 82.10 L19.32 81.37 L19.40 80.65 L19.51 79.93 L19.66 79.22 L19.83 78.52 L20.03 77.82 L20.26 77.14 L20.52 76.46 L20.81 75.79 L21.13 75.13 L21.48 74.49 L21.86 73.85 L22.26 73.23 L22.69 72.62 L23.14 72.02 L23.62 71.44 L24.12 70.87 L24.64 70.32 L25.19 69.77 L25.75 69.25 L26.34 68.73 L26.94 68.23 L27.56 67.75 L28.20 67.28 L28.85 66.82 L29.52 66.38 L30.20 65.96 L30.89 65.54 L31.59 65.14 L32.30 64.76 L33.01 64.38 L33.73 64.02 L34.46 63.67 L35.18 63.33 L35.91 63.00 L36.65 62.68 L37.38 62.37 L38.11 62.07 L38.83 61.78 L39.55 61.49 L40.27 61.21 L40.98 60.94 L41.69 60.67 L42.38 60.40 L43.07 60.14 L43.75 59.87 L44.41 59.61 L45.07 59.35 L45.71 59.09 L46.34 58.83 L46.96 58.56 L47.56 58.29 L48.15 58.01 L48.72 57.73 L49.28 57.44 L49.83 57.15 L50.36 56.85 L50.87 56.53 L51.37 56.21 L51.85 55.88 L52.32 55.54 L52.77 55.18 L53.21 54.81 L53.63 54.43 L54.04 54.04 L54.43 53.63 L54.81 53.21 L55.18 52.77 L55.54 52.32 L55.88 51.85 L56.21 51.37 L56.53 50.87 L56.85 50.36 L57.15 49.83 L57.44 49.28 L57.73 48.72 L58.01 48.15 L58.29 47.56 L58.56 46.96 L58.83 46.34 L59.09 45.71 L59.35 45.07 L59.61 44.41 L59.87 43.75 L60.14 43.07 L60.40 42.38 L60.67 41.69 L60.94 40.98 L61.21 40.27 L61.49 39.55 L61.78 38.83 L62.07 38.11 L62.37 37.38 L62.68 36.65 L63.00 35.91 L63.33 35.18 L63.67 34.46 L64.02 33.73 L64.38 33.01 L64.76 32.30 L65.14 31.59 L65.54 30.89 L65.96 30.20 L66.38 29.52 L66.82 28.85 L67.28 28.20 L67.75 27.56 L68.23 26.94 L68.73 26.34 L69.25 25.75 L69.77 25.19 L70.32 24.64 L70.87 24.12 L71.44 23.62 L72.02 23.14 L72.62 22.69 L73.23 22.26 L73.85 21.86 L74.49 21.48 L75.13 21.13 L75.79 20.81 L76.46 20.52 L77.14 20.26 L77.82 20.03 L78.52 19.83 L79.22 19.66 L79.93 19.51 L80.65 19.40 L81.37 19.32 L82.10 19.27 L82.83 19.24 L83.57 19.25 L84.31 19.29 L85.05 19.35 L85.80 19.45 L86.54 19.57 L87.28 19.72 L88.03 19.90 L88.77 20.10 L89.51 20.32 L90.25 20.57 L90.98 20.85 L91.71 21.14 L92.44 21.46 L93.16 21.80 L93.87 22.15 L94.58 22.53 L95.29 22.92 L95.98 23.32 L96.67 23.74 L97.35 24.18 L98.03 24.62 L98.69 25.07 L99.35 25.53 L100.00 26.00 L100.64 26.47 L101.28 26.95 L101.90 27.43 L102.52 27.92 L103.13 28.40 L103.73 28.88 L104.32 29.36 L104.91 29.83 L105.49 30.30 L106.06 30.76 L106.62 31.22 L107.18 31.67 L107.74 32.10 L108.28 32.53 L108.83 32.94 L109.37 33.34 L109.90 33.73 L110.44 34.10 L110.97 34.46 L111.50 34.80 L112.02 35.12 L112.55 35.43 L113.08 35.72 L113.61 35.99 L114.13 36.24 L114.67 36.47 L115.20 36.69 L115.74 36.88 L116.28 37.06 L116.82 37.21 L117.37 37.35 L117.93 37.47 L118.49 37.57 L119.06 37.65 L119.64 37.72 L120.22 37.76 L120.81 37.79 L121.42 37.81 L122.02 37.80 L122.64 37.79 L123.27 37.76 L123.91 37.71 L124.56 37.66 L125.22 37.59 L125.88 37.51 L126.56 37.43 L127.25 37.33 L127.95 37.23 L128.65 37.12 L129.37 37.01 L130.10 36.90 L130.83 36.78 L131.58 36.66 L132.33 36.54 L133.09 36.43 L133.86 36.31 L134.64 36.20 L135.42 36.10 L136.21 36.00 L137.00 35.91 L137.80 35.83 L138.60 35.76 L139.40 35.70 L140.21 35.66 L141.01 35.62 L141.82 35.61 L142.62 35.60 L143.43 35.62 L144.23 35.65 L145.03 35.70 L145.82 35.76 L146.61 35.85 L147.39 35.96 L148.16 36.09 L148.92 36.24 L149.68 36.42 L150.42 36.61 L151.15 36.83 L151.87 37.08 L152.58 37.34 L153.27 37.63 L153.94 37.95 L154.60 38.28 L155.24 38.65 L155.87 39.03 L156.47 39.44 L157.06 39.87 L157.62 40.33 L158.17 40.81 L158.69 41.31 L159.19 41.83 L159.67 42.38 L160.13 42.94 L160.56 43.53 L160.97 44.13 L161.35 44.76 L161.72 45.40 L162.05 46.06 L162.37 46.73 L162.66 47.42 L162.92 48.13 L163.17 48.85 L163.39 49.58 L163.58 50.32 L163.76 51.08 L163.91 51.84 L164.04 52.61 L164.15 53.39 L164.24 54.18 L164.30 54.97 L164.35 55.77 L164.38 56.57 L164.40 57.38 L164.39 58.18 L164.38 58.99 L164.34 59.79 L164.30 60.60 L164.24 61.40 L164.17 62.20 L164.09 63.00 L164.00 63.79 L163.90 64.58 L163.80 65.36 L163.69 66.14 L163.57 66.91 L163.46 67.67 L163.34 68.42 L163.22 69.17 L163.10 69.90 L162.99 70.63 L162.88 71.35 L162.77 72.05 L162.67 72.75 L162.57 73.44 L162.49 74.12 L162.41 74.78 L162.34 75.44 L162.29 76.09 L162.24 76.73 L162.21 77.36 L162.20 77.98 L162.19 78.58 L162.21 79.19 L162.24 79.78 L162.28 80.36 L162.35 80.94 L162.43 81.51 L162.53 82.07 L162.65 82.63 L162.79 83.18 L162.94 83.72 L163.12 84.26 L163.31 84.80 L163.53 85.33 L163.76 85.87 L164.01 86.39 L164.28 86.92 L164.57 87.45 L164.88 87.98 L165.20 88.50 L165.54 89.03 L165.90 89.56 L166.27 90.10 L166.66 90.63 L167.06 91.17 L167.47 91.72 L167.90 92.26 L168.33 92.82 L168.78 93.38 L169.24 93.94 L169.70 94.51 L170.17 95.09 L170.64 95.68 L171.12 96.27 L171.60 96.87 L172.08 97.48 L172.57 98.10 L173.05 98.72 L173.53 99.36Z" fill="#2dd4bf"/><path d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" fill="#0b5e57" transform="translate(80 106) rotate(-24) scale(1.25)"/><path d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" fill="#0b5e57" transform="translate(124 101) rotate(-24) scale(1.25)"/></svg>
|
|
@@ -135,6 +135,7 @@ h3 { font-size:15px; margin:0 0 14px; font-weight:700; }
|
|
|
135
135
|
.detail-card .meta { gap:8px; font-size:11px; margin-bottom:14px; }
|
|
136
136
|
.detail-card .meta > .status { position:absolute; right:30px; top:27px; padding:4px 10px; border-radius:5px; background:var(--mist); color:var(--deep); }
|
|
137
137
|
.detail-card .meta .pill { font-size:11px; font-weight:500; border:0; background:none; padding:0; }
|
|
138
|
+
.detail-card .meta .src-pill { background:var(--src-bg); padding:3px 8px; border-radius:5px; font-weight:600; }
|
|
138
139
|
.detail-card .meta time { color:var(--mute); }
|
|
139
140
|
.detail-card .detail-title { font-size:25px; line-height:1.25; margin:0 0 20px; overflow-wrap:anywhere; }
|
|
140
141
|
.detail-card > .text, .detail-card > .md { padding:16px; background:var(--soft); border-radius:7px; font-size:15px; line-height:1.7; margin:0 0 18px; }
|
|
@@ -274,6 +275,10 @@ h3 { font-size:15px; margin:0 0 14px; font-weight:700; }
|
|
|
274
275
|
.reporter-context a { margin-left:6px; }
|
|
275
276
|
|
|
276
277
|
/* dark mode: follows the system, or data-theme on <html> */
|
|
278
|
+
/* Logo, mark and loader come in pairs; the on-dark artwork shows in dark mode. */
|
|
279
|
+
@media (prefers-color-scheme:light) { :root:not([data-theme=dark]) .dark-only { display:none !important; } }
|
|
280
|
+
@media (prefers-color-scheme:dark) { :root:not([data-theme=light]) .light-only { display:none !important; } }
|
|
281
|
+
:root[data-theme=light] .dark-only, :root[data-theme=dark] .light-only { display:none !important; }
|
|
277
282
|
@media (prefers-color-scheme:dark) {
|
|
278
283
|
:root:not([data-theme=light]) { color-scheme:dark;
|
|
279
284
|
--bg:#14171b; --soft:#1b1f24; --fg:#e8ebef; --mute:#9aa4b2; --line:#2a3037; --acc:#2dd4bf; --deep:#5eead4; --mist:#173532;
|
package/src/steps.mjs
CHANGED
|
@@ -148,8 +148,13 @@ export function prepareRelease(ctx) {
|
|
|
148
148
|
for (const fn of cfg.functions) delete fn.predeploy;
|
|
149
149
|
for (const r of cfg.hosting.rewrites) if (r.function) r.function.region = ctx.region;
|
|
150
150
|
// On a named site, keep serving the project's default site too: apps already shipped with its
|
|
151
|
-
// address, and repos already connected to it, must keep working.
|
|
152
|
-
|
|
151
|
+
// address, and repos already connected to it, must keep working. HERESAY_ONLY_SITE=1 opts out
|
|
152
|
+
// for an instance that has retired the default address.
|
|
153
|
+
if (siteOf(ctx) !== ctx.id) {
|
|
154
|
+
cfg.hosting = process.env.HERESAY_ONLY_SITE === '1'
|
|
155
|
+
? { ...cfg.hosting, site: siteOf(ctx) }
|
|
156
|
+
: [{ ...cfg.hosting, site: siteOf(ctx) }, { ...cfg.hosting, site: ctx.id }];
|
|
157
|
+
}
|
|
153
158
|
writeFileSync(join(dir, 'firebase.json'), JSON.stringify(cfg, null, 2) + '\n');
|
|
154
159
|
writeFileSync(join(dir, '.firebaserc'), JSON.stringify({ projects: { default: ctx.id } }, null, 2) + '\n');
|
|
155
160
|
writeFileSync(join(dir, 'functions', '.env'), `HERESAY_REGION=${ctx.region}\n`);
|