Release wave: no data collection, contact by email, deploy from src/
- Remove the request form, consent checkbox, honeypot, success dialog, form.js, analytics.js, the Yandex Metrica id and the cookie banner (D23). - Contact is a mailto card to harveymonsterteam@gmail.com; privacy.html rewritten for "no data collected"; Google Fonts replaced by four self-hosted WOFF2 files, so the page makes no third-party request. - Drop `summary` from the case contract: the project dialog shows the case body only, the planet plaque uses tagline, and a project without shots opens one honest slot instead of three fake ones. - Restore the original voice and punctuation in 12 cards, strip internal wording from published copy, fix stale counts (20 projects, 5 releases). - Deploy = contents of src/: api/ moved to archive/api/, new release gate scripts/check-release.mjs, deploy guide docs/deploy.md. - Sync docs: AGENTS.md (D23, D8, R4 closed, structure), design/spec.md section 10.31, DESIGN.md, PRODUCT.md, INDEX.md, inventory.
This commit is contained in:
1 parent
76e6c2a294
commit
0ac596086a
52 files changed
+475
-660
No files matched your search
@@ -3,16 +3,19 @@
|
||||
// во вкладке — правки «не видны» до жёсткого reload (Ctrl+Shift+R). Здесь no-store,
|
||||
// поэтому обычного F5 достаточно.
|
||||
//
|
||||
// Запуск: node scripts/dev-server.mjs [порт] (по умолчанию 8765)
|
||||
// Страница: http://127.0.0.1:8765/src/
|
||||
// Запуск: node scripts/dev-server.mjs [порт] [корень] (по умолчанию 8765, корень = репозиторий)
|
||||
// Страница: http://127.0.0.1:8765/src/ · форма деплоя: node scripts/dev-server.mjs 8765 src → http://127.0.0.1:8765/
|
||||
import { createServer } from 'node:http';
|
||||
import { createReadStream } from 'node:fs';
|
||||
import { stat } from 'node:fs/promises';
|
||||
import { extname, join, normalize } from 'node:path';
|
||||
import { extname, join, normalize, resolve } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const ROOT = fileURLToPath(new URL('..', import.meta.url));
|
||||
const PORT = Number(process.argv[2]) || 8765;
|
||||
// Корень можно задать вторым аргументом: так проверяется форма деплоя (docroot = src/).
|
||||
const ROOT_ARG = process.argv[3];
|
||||
const ROOT = ROOT_ARG ? resolve(ROOT_ARG) : fileURLToPath(new URL('..', import.meta.url));
|
||||
const PAGE = ROOT_ARG ? '/' : '/src/';
|
||||
const TYPES = {
|
||||
'.html': 'text/html; charset=utf-8', '.js': 'text/javascript; charset=utf-8',
|
||||
'.css': 'text/css; charset=utf-8', '.json': 'application/json; charset=utf-8',
|
||||
@@ -38,5 +41,5 @@ createServer(async (req, res) => {
|
||||
res.end('404');
|
||||
}
|
||||
}).listen(PORT, '127.0.0.1', () => {
|
||||
console.log(`dev (no-cache): http://127.0.0.1:${PORT}/src/`);
|
||||
console.log(`dev (no-cache): http://127.0.0.1:${PORT}${PAGE}`);
|
||||
});
|
||||
Reference in new issue
Block a user