feat(ui): refresh dashboard and paper boat branding
This commit is contained in:
1 parent
6cd904d460
commit
b3a53a7f58
93 files changed
+11134
-7543
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import paperBoatSvg from '../assets/logo.svg?raw';
|
||||
|
||||
// @ts-nocheck
|
||||
// TypeScript declarations for global variables
|
||||
/** @type {string} */
|
||||
@@ -1625,17 +1627,13 @@ window.replypierConfig;
|
||||
// Footer
|
||||
const footer = document.createElement('div');
|
||||
footer.className = 'replypier-error-footer';
|
||||
const logoSvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
||||
logoSvg.setAttribute('width', '14');
|
||||
logoSvg.setAttribute('height', '14');
|
||||
logoSvg.setAttribute('viewBox', '0 0 60 60');
|
||||
logoSvg.setAttribute('fill', 'none');
|
||||
const logoPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
||||
logoPath.setAttribute('d', 'M18 12 H42 A6 6 0 0 1 48 18 V42 A6 6 0 0 1 42 48 H18 A6 6 0 0 1 12 42 V18 A6 6 0 0 1 18 12 Z M17 30 a4 4 0 1 0 8 0 a4 4 0 1 0 -8 0 Z M26 30 a4 4 0 1 0 8 0 a4 4 0 1 0 -8 0 Z M35 30 a4 4 0 1 0 8 0 a4 4 0 1 0 -8 0 Z');
|
||||
logoPath.setAttribute('fill-rule', 'evenodd');
|
||||
logoPath.setAttribute('fill', 'currentColor');
|
||||
logoPath.setAttribute('opacity', '0.6');
|
||||
logoSvg.appendChild(logoPath);
|
||||
const logoSvg = document.createElement('span');
|
||||
// Trusted bundled vector: the same source used by the dashboard and widget.
|
||||
logoSvg.innerHTML = paperBoatSvg;
|
||||
const mark = logoSvg.querySelector('svg');
|
||||
mark.setAttribute('width', '20');
|
||||
mark.setAttribute('height', '16');
|
||||
mark.setAttribute('aria-hidden', 'true');
|
||||
const footerText = document.createElement('a');
|
||||
footerText.href = 'https://replypier.site';
|
||||
footerText.target = '_blank';
|
||||
|
||||
Reference in new issue
Block a user