Merge pull request #24 from pavlov346346-source/fix/caterium-branding-v1774
Finish Caterium visible branding
This commit is contained in:
commit
d5265a1c11
@ -5,7 +5,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"check:syntax": "node --check public/app-runtime.js && node --check public/service-worker.js && node --check public/legacy/bootstrap.js && node --check public/core/sun-safe.js && node --check public/core/performance.js && node --check public/core/auth-security-v1774.js && node --check public/core/data-layer-v1773.js && node --check public/core/server-automation-v1770.js && node --check public/core/hotfix-v1763.js && node --check public/core/ops-ux-v1762.js && node --check public/core/ux-fixes-v1764.js && node --check public/core/pdf-engine.js && node --check public/core/classic-offer-pdf-v1767.js && node --check public/core/developer-console-v1768.js && node --check public/core/offer-workspace-v1769.js",
|
||||
"test:static": "node tests/static-security.mjs && node tests/auth-security-v1774.mjs && node tests/employee-create-v1774.mjs && node tests/html-integrity-v1774.mjs && node tests/edge-security-v1774.mjs",
|
||||
"test:static": "node tests/static-security.mjs && node tests/auth-security-v1774.mjs && node tests/employee-create-v1774.mjs && node tests/html-integrity-v1774.mjs && node tests/edge-security-v1774.mjs && node tests/branding-v1774.mjs",
|
||||
"check:release": "node tests/release-check.mjs",
|
||||
"check:deploy": "npm run check:syntax && npm run test:static && npm run check:release",
|
||||
"test:e2e": "playwright test --config=tests/playwright.config.mjs",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Солнце Кейтеринг",
|
||||
"short_name": "Солнце",
|
||||
"description": "Заказы, календарь, клиенты, склад, рассылки и документы Солнце Кейтеринг",
|
||||
"name": "Caterium",
|
||||
"short_name": "Caterium",
|
||||
"description": "Заказы, календарь, клиенты, склад, рассылки и документы Caterium",
|
||||
"start_url": "./",
|
||||
"scope": "./",
|
||||
"display": "standalone",
|
||||
|
||||
12
tests/branding-v1774.mjs
Normal file
12
tests/branding-v1774.mjs
Normal file
@ -0,0 +1,12 @@
|
||||
import fs from 'node:fs';
|
||||
const index=fs.readFileSync('public/index.html','utf8');
|
||||
const manifest=JSON.parse(fs.readFileSync('public/manifest.webmanifest','utf8'));
|
||||
let bad=0;const check=(v,m)=>{console.log(`${v?'OK':'FAIL'}: ${m}`);if(!v)bad++};
|
||||
check(index.includes('<title>Caterium</title>'),'browser title uses Caterium');
|
||||
check(index.includes('<meta name="apple-mobile-web-app-title" content="Caterium">'),'Apple PWA title uses Caterium');
|
||||
check(index.includes('<div class="brand"><span class="sun">☼</span>Caterium</div>'),'visible header uses Caterium');
|
||||
check(!index.includes('<title>Солнце Кейтеринг</title>'),'legacy browser title is removed');
|
||||
check(!index.includes('<meta name="apple-mobile-web-app-title" content="Солнце">'),'legacy Apple PWA title is removed');
|
||||
check(manifest.name==='Caterium'&&manifest.short_name==='Caterium','manifest identity uses Caterium');
|
||||
check(String(manifest.description||'').includes('Caterium')&&!String(manifest.description||'').includes('Солнце Кейтеринг'),'manifest description uses Caterium');
|
||||
if(bad)process.exit(1);
|
||||
Loading…
Reference in New Issue
Block a user