@addiscorp/kit 0.2.2 → 0.2.4
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/README.md +1 -1
- package/dist/footer/index.d.ts +3 -1
- package/dist/footer/index.js +2 -2
- package/dist/kit.css +1 -0
- package/dist/tool/index.d.ts +7 -3
- package/dist/tool/index.js +7 -7
- package/dist/tool/marks.js +5 -0
- package/dist/tool/tools.d.ts +5 -1
- package/dist/tool/tools.js +5 -0
- package/dist/tool.css +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ import { Header, Footer, HeaderButton, PersonIcon, themeBoot } from '@addiscorp/
|
|
|
58
58
|
|
|
59
59
|
## A tool's site
|
|
60
60
|
|
|
61
|
-
Every Addis tool (rixse, mirab, woreda, kebele, gelada, harar, p8) gets the
|
|
61
|
+
Every Addis tool (rixse, mirab, woreda, kebele, gelada, harar, p8, securecore) gets the
|
|
62
62
|
same site, after zega.dev: a hero with the install commands under the
|
|
63
63
|
headline and a demo reel beside it, three benefits, the other Addis tools; and
|
|
64
64
|
docs after rixse.dev. **Structure = kit, content = per site**: a site passes
|
package/dist/footer/index.d.ts
CHANGED
|
@@ -14,5 +14,7 @@ export type FooterProps = {
|
|
|
14
14
|
year?: number;
|
|
15
15
|
/** Anything else for the end of the footer, before the theme switch. */
|
|
16
16
|
children?: ReactNode;
|
|
17
|
+
/** A small line under the footer row, e.g. trademark notices. */
|
|
18
|
+
note?: ReactNode;
|
|
17
19
|
};
|
|
18
|
-
export declare function Footer({ site, owner, year, children }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function Footer({ site, owner, year, children, note }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/footer/index.js
CHANGED
|
@@ -6,8 +6,8 @@ export const ADDIS = {
|
|
|
6
6
|
href: 'https://addis.gg',
|
|
7
7
|
logo: _jsx(AddisMark, {}),
|
|
8
8
|
};
|
|
9
|
-
export function Footer({ site, owner = ADDIS, year = new Date().getFullYear(), children }) {
|
|
10
|
-
return (_jsxs("footer", { className: "ak-foot", children: [_jsxs("a", { className: "ak-credit", href: owner.href, children: [owner.logo, "\u00A9 ", year, " ", owner.name] }), _jsxs("span", { className: "ak-foot-end", children: [children, _jsx("span", { children: site }), _jsx(ThemeToggle, {})] })] }));
|
|
9
|
+
export function Footer({ site, owner = ADDIS, year = new Date().getFullYear(), children, note }) {
|
|
10
|
+
return (_jsxs("footer", { className: "ak-foot", children: [_jsxs("a", { className: "ak-credit", href: owner.href, children: [owner.logo, "\u00A9 ", year, " ", owner.name] }), _jsxs("span", { className: "ak-foot-end", children: [children, _jsx("span", { children: site }), _jsx(ThemeToggle, {})] }), note && _jsx("p", { className: "ak-foot-note", children: note })] }));
|
|
11
11
|
}
|
|
12
12
|
function AddisMark() {
|
|
13
13
|
return (_jsx("svg", { className: "ak-owner-mark", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: 32, height: 32, "aria-hidden": "true", dangerouslySetInnerHTML: { __html: '<circle cx="32" cy="32" r="31" fill="#1b1914"/><path fill="#f3efe3" d="M28.48 41L23.89 41L29.63 28.07Q26.87 27.73 25.60 26.27Q24.33 24.82 24.33 22.28L24.33 22.28L24.33 18.87L28.73 18.87L28.73 21.44Q28.73 23.27 29.52 23.95Q30.31 24.63 32.11 24.63L32.11 24.63L35.70 24.63L28.48 41ZM40.17 41L35.55 41Q35.52 38.21 35.08 36.51Q34.65 34.80 33.81 33.85Q32.98 32.91 31.74 32.38L31.74 32.38L33.19 28.91Q35.39 29.69 36.93 31.11Q38.46 32.54 39.28 34.92Q40.11 37.31 40.17 41L40.17 41Z"/><rect x="20" y="47.5" width="8" height="3" fill="#078930"/><rect x="28" y="47.5" width="8" height="3" fill="#fcdd09"/><rect x="36" y="47.5" width="8" height="3" fill="#da121a"/>' } }));
|
package/dist/kit.css
CHANGED
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
.ak-credit { display: inline-flex; align-items: center; gap: 8px; color: var(--ak-ink); text-decoration: none; }
|
|
109
109
|
.ak-credit img, .ak-owner-mark { width: 32px; height: 32px; border-radius: 50%; }
|
|
110
110
|
.ak-foot-end { display: inline-flex; align-items: center; gap: 12px; }
|
|
111
|
+
.ak-foot-note { flex-basis: 100%; margin: 0; font-size: 11px; line-height: 1.6; color: var(--ak-soft); opacity: .8; }
|
|
111
112
|
|
|
112
113
|
/* The theme switch */
|
|
113
114
|
.ak-theme-toggle { box-sizing: border-box; border: 0; background: transparent; border-radius: 4px; color: inherit; cursor: pointer; display: inline-flex; height: 32px; width: 32px; align-items: center; justify-content: center; padding: 8px; }
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { LinkComponent } from '../header/index.js';
|
|
3
3
|
import { type ToolId } from './tools.js';
|
|
4
|
-
export { TOOLS, toolInfo, type ToolId, type ToolInfo } from './tools.js';
|
|
4
|
+
export { TOOLS, toolInfo, toolName, type ToolId, type ToolInfo } from './tools.js';
|
|
5
5
|
export { MARKS } from './marks.js';
|
|
6
6
|
export { CopyButton } from './copy.js';
|
|
7
7
|
/** A tool's mark, drawn for light and dark; the theme picks one. */
|
|
@@ -15,12 +15,14 @@ export type HeaderLink = {
|
|
|
15
15
|
href: string;
|
|
16
16
|
};
|
|
17
17
|
/** Everything a tool site shows sits inside this: it sets the tool's colours, the header and the footer. */
|
|
18
|
-
export declare function ToolSite({ tool, home, docs, links, Link, children }: {
|
|
18
|
+
export declare function ToolSite({ tool, home, docs, links, footnote, Link, children }: {
|
|
19
19
|
tool: ToolId;
|
|
20
20
|
home?: string;
|
|
21
21
|
docs?: string;
|
|
22
22
|
/** More header links, after docs, for what only this tool has. */
|
|
23
23
|
links?: HeaderLink[];
|
|
24
|
+
/** A small line under the footer, e.g. trademark notices. */
|
|
25
|
+
footnote?: ReactNode;
|
|
24
26
|
Link?: LinkComponent;
|
|
25
27
|
children: ReactNode;
|
|
26
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -80,7 +82,7 @@ export type DocsPage = {
|
|
|
80
82
|
title: string;
|
|
81
83
|
};
|
|
82
84
|
/** The docs, after rixse.dev: the pages down the side, the page on the right. */
|
|
83
|
-
export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede, note, home, Link, children }: {
|
|
85
|
+
export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede, note, footnote, home, Link, children }: {
|
|
84
86
|
tool: ToolId;
|
|
85
87
|
pages: DocsPage[];
|
|
86
88
|
pathname: string;
|
|
@@ -89,6 +91,8 @@ export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede
|
|
|
89
91
|
lede?: string;
|
|
90
92
|
/** A small note under the page list, e.g. what the docs describe. */
|
|
91
93
|
note?: string;
|
|
94
|
+
/** A small line under the footer, e.g. trademark notices. */
|
|
95
|
+
footnote?: ReactNode;
|
|
92
96
|
home?: string;
|
|
93
97
|
Link?: LinkComponent;
|
|
94
98
|
children: ReactNode;
|
package/dist/tool/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Footer } from '../footer/index.js';
|
|
3
3
|
import { CopyButton } from './copy.js';
|
|
4
4
|
import { MARKS } from './marks.js';
|
|
5
|
-
import { TOOLS, toolInfo } from './tools.js';
|
|
6
|
-
export { TOOLS, toolInfo } from './tools.js';
|
|
5
|
+
import { TOOLS, toolInfo, toolName } from './tools.js';
|
|
6
|
+
export { TOOLS, toolInfo, toolName } from './tools.js';
|
|
7
7
|
export { MARKS } from './marks.js';
|
|
8
8
|
export { CopyButton } from './copy.js';
|
|
9
9
|
const PlainLink = (props) => _jsx("a", { ...props });
|
|
@@ -13,8 +13,8 @@ export function Mark({ tool, size = 26 }) {
|
|
|
13
13
|
return (_jsxs("span", { className: "akt-mark", style: { width: size, height: size }, "aria-hidden": "true", children: [_jsx("svg", { className: "akt-light", viewBox: "0 0 24 24", width: size, height: size, dangerouslySetInnerHTML: { __html: mark.light } }), _jsx("svg", { className: "akt-dark", viewBox: "0 0 24 24", width: size, height: size, dangerouslySetInnerHTML: { __html: mark.dark } })] }));
|
|
14
14
|
}
|
|
15
15
|
/** Everything a tool site shows sits inside this: it sets the tool's colours, the header and the footer. */
|
|
16
|
-
export function ToolSite({ tool, home = '/', docs = '/docs/', links = [], Link = PlainLink, children }) {
|
|
17
|
-
return (_jsxs("div", { className: "akt", "data-tool": tool, children: [_jsxs("main", { className: "akt-main", children: [_jsxs("header", { className: "akt-header", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), tool] }), _jsxs("nav", { "aria-label": "Main", children: [_jsx(Link, { href: docs, children: "docs" }), links.map((link) => _jsx(Link, { href: link.href, children: link.label }, link.href))] })] }), children] }), _jsx(Footer, { site: toolInfo(tool).domain })] }));
|
|
16
|
+
export function ToolSite({ tool, home = '/', docs = '/docs/', links = [], footnote, Link = PlainLink, children }) {
|
|
17
|
+
return (_jsxs("div", { className: "akt", "data-tool": tool, children: [_jsxs("main", { className: "akt-main", children: [_jsxs("header", { className: "akt-header", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool)] }), _jsxs("nav", { "aria-label": "Main", children: [_jsx(Link, { href: docs, children: "docs" }), links.map((link) => _jsx(Link, { href: link.href, children: link.label }, link.href))] })] }), children] }), _jsx(Footer, { site: toolInfo(tool).domain, note: footnote })] }));
|
|
18
18
|
}
|
|
19
19
|
const SCENE_SECONDS = 5;
|
|
20
20
|
/** The hero: headline, buttons, install commands under them, and the demo reel on the right. */
|
|
@@ -36,12 +36,12 @@ export function Reel({ scenes }) {
|
|
|
36
36
|
}
|
|
37
37
|
/** "Why <tool> · the short version": three benefits, and the other Addis tools. */
|
|
38
38
|
export function Why({ tool, benefits }) {
|
|
39
|
-
return (_jsxs("section", { className: "akt-why", children: [_jsxs("h2", { children: ["Why ", tool, _jsx("small", { children: "the short version" })] }), _jsxs("div", { className: "akt-cards", children: [benefits.map((benefit) => (_jsxs("div", { className: "akt-card", children: [_jsx("div", { className: "akt-dash" }), _jsx("h3", { children: benefit.title }), _jsx("p", { children: benefit.text })] }, benefit.title))), _jsxs("div", { className: "akt-card", children: [_jsxs("h3", { children: ["Addis tools", _jsx("small", { children: "they work together" })] }), _jsx("div", { className: "akt-family", children: TOOLS.filter((t) => t.id !== tool).map((t) => (_jsxs("a", { className: "akt-row", href: `https://${t.domain}`, children: [_jsxs("strong", { children: [_jsx(Mark, { tool: t.id, size: 18 }), t.id] }), _jsx("span", { children: t.short })] }, t.id))) })] })] })] }));
|
|
39
|
+
return (_jsxs("section", { className: "akt-why", children: [_jsxs("h2", { children: ["Why ", toolName(tool), _jsx("small", { children: "the short version" })] }), _jsxs("div", { className: "akt-cards", children: [benefits.map((benefit) => (_jsxs("div", { className: "akt-card", children: [_jsx("div", { className: "akt-dash" }), _jsx("h3", { children: benefit.title }), _jsx("p", { children: benefit.text })] }, benefit.title))), _jsxs("div", { className: "akt-card", children: [_jsxs("h3", { children: ["Addis tools", _jsx("small", { children: "they work together" })] }), _jsx("div", { className: "akt-family", children: TOOLS.filter((t) => t.id !== tool).map((t) => (_jsxs("a", { className: "akt-row", href: `https://${t.domain}`, children: [_jsxs("strong", { children: [_jsx(Mark, { tool: t.id, size: 18 }), t.name ?? t.id] }), _jsx("span", { children: t.short })] }, t.id))) })] })] })] }));
|
|
40
40
|
}
|
|
41
41
|
/** The docs, after rixse.dev: the pages down the side, the page on the right. */
|
|
42
|
-
export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, home = '/', Link = PlainLink, children }) {
|
|
42
|
+
export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, footnote, home = '/', Link = PlainLink, children }) {
|
|
43
43
|
const here = (href) => href.replace(/\/$/, '') === pathname.replace(/\/$/, '');
|
|
44
|
-
return (_jsxs("div", { className: "akt akt-docs", "data-tool": tool, children: [_jsxs("div", { className: "akt-docs-grid", children: [_jsxs("aside", { className: "akt-side", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), tool, _jsx("span", { className: "akt-brand-docs", children: "docs" })] }), _jsx("nav", { "aria-label": "Docs", children: pages.map((page) => (_jsx(Link, { href: page.href, "aria-current": here(page.href) ? 'page' : undefined, children: page.title }, page.href))) }), note && _jsx("p", { className: "akt-side-note", children: note })] }), _jsxs("article", { className: "akt-doc", children: [_jsx("div", { className: "akt-eyebrow", children: eyebrow }), _jsx("h1", { children: title }), lede && _jsx("p", { className: "akt-lede", children: lede }), _jsx("div", { className: "akt-prose", children: children })] })] }), _jsx(Footer, { site: toolInfo(tool).domain })] }));
|
|
44
|
+
return (_jsxs("div", { className: "akt akt-docs", "data-tool": tool, children: [_jsxs("div", { className: "akt-docs-grid", children: [_jsxs("aside", { className: "akt-side", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool), _jsx("span", { className: "akt-brand-docs", children: "docs" })] }), _jsx("nav", { "aria-label": "Docs", children: pages.map((page) => (_jsx(Link, { href: page.href, "aria-current": here(page.href) ? 'page' : undefined, children: page.title }, page.href))) }), note && _jsx("p", { className: "akt-side-note", children: note })] }), _jsxs("article", { className: "akt-doc", children: [_jsx("div", { className: "akt-eyebrow", children: eyebrow }), _jsx("h1", { children: title }), lede && _jsx("p", { className: "akt-lede", children: lede }), _jsx("div", { className: "akt-prose", children: children })] })] }), _jsx(Footer, { site: toolInfo(tool).domain, note: footnote })] }));
|
|
45
45
|
}
|
|
46
46
|
/** A boxed aside. */
|
|
47
47
|
export function Callout({ children }) {
|
package/dist/tool/marks.js
CHANGED
|
@@ -27,4 +27,9 @@ export const MARKS = {
|
|
|
27
27
|
light: "<rect width=\"24\" height=\"24\" rx=\"5.3\" fill=\"#6183BB\"/><g transform=\"translate(12 12) scale(0.0335) translate(-188.3 -114.7)\"><g transform=\"skewX(-10.5)\"><path d=\"M0 280V0H120C185 0 226 40 226 100C226 165 185 208 120 208H69V280Z\" fill=\"#FFFFFF\"/><path d=\"M69 54H112C140 54 154 70 154 96C154 132 135 155 105 155H69Z\" fill=\"#6183BB\"/></g><path transform=\"translate(207.5 208) scale(0.37)\" d=\"M267.49951171875 12.0Q186.04296875 12.0 130.6083984375 -8.684814453125Q75.173828125 -29.36962890625 46.7392578125 -66.95654296875Q18.3046875 -104.54345703125 18.3046875 -155.4345703125Q18.3046875 -201.4345703125 35.163330078125 -239.075927734375Q52.02197265625 -276.71728515625 84.02197265625 -305.358642578125Q116.02197265625 -334.0 159.2177734375 -350.36962890625Q126.84814453125 -372.54345703125 110.706787109375 -404.5Q94.5654296875 -436.45654296875 94.5654296875 -472.826171875Q94.5654296875 -523.2607421875 115.326171875 -564.619384765625Q136.0869140625 -605.97802734375 173.47802734375 -636.162841796875Q210.869140625 -666.34765625 260.67333984375 -682.71728515625Q310.4775390625 -699.0869140625 369.10791015625 -699.0869140625Q438.4775390625 -699.0869140625 489.596923828125 -678.13037109375Q540.71630859375 -657.173828125 568.922607421875 -619.0869140625Q597.12890625 -581.0 597.12890625 -529.10888671875Q597.12890625 -491.10888671875 583.67236328125 -457.69580078125Q570.2158203125 -424.28271484375 544.074462890625 -397.097900390625Q517.93310546875 -369.9130859375 479.10693359375 -350.36962890625Q519.2158203125 -331.0 541.661376953125 -297.315185546875Q564.10693359375 -263.63037109375 564.10693359375 -216.45654296875Q564.10693359375 -146.2177734375 526.683349609375 -95.032958984375Q489.259765625 -43.84814453125 422.60791015625 -15.924072265625Q355.9560546875 12.0 267.49951171875 12.0ZM275.6513671875 -106.564453125Q293.10791015625 -106.564453125 308.52099609375 -110.064453125Q323.93408203125 -113.564453125 337.8037109375 -120.292724609375Q351.67333984375 -127.02099609375 362.58642578125 -136.4775390625Q379.32568359375 -151.3037109375 389.380126953125 -172.227783203125Q399.4345703125 -193.15185546875 399.4345703125 -219.63037109375Q399.4345703125 -255.826171875 374.749755859375 -274.60888671875Q350.06494140625 -293.3916015625 308.76025390625 -293.3916015625Q292.390625 -293.3916015625 276.9775390625 -290.119873046875Q261.564453125 -286.84814453125 248.379638671875 -280.84814453125Q235.19482421875 -274.84814453125 224.28173828125 -265.3046875Q207.1728515625 -250.478515625 197.118408203125 -228.597900390625Q187.06396484375 -206.71728515625 187.06396484375 -179.32568359375Q187.06396484375 -144.1298828125 210.39013671875 -125.34716796875Q233.71630859375 -106.564453125 275.6513671875 -106.564453125ZM328.4775390625 -407.6083984375Q344.76025390625 -407.6083984375 359.814697265625 -411.021484375Q374.869140625 -414.4345703125 387.73876953125 -420.7607421875Q400.6083984375 -427.0869140625 411.06494140625 -436.28271484375Q426.6953125 -449.10888671875 435.32568359375 -468.43505859375Q443.9560546875 -487.76123046875 443.9560546875 -512.67431640625Q443.9560546875 -546.95703125 421.184326171875 -563.73974609375Q398.41259765625 -580.5224609375 359.58642578125 -580.5224609375Q343.1298828125 -580.5224609375 328.445068359375 -577.294189453125Q313.76025390625 -574.06591796875 301.3037109375 -568.15283203125Q288.84716796875 -562.23974609375 278.93408203125 -553.32666015625Q263.564453125 -539.50048828125 254.6513671875 -519.532958984375Q245.73828125 -499.5654296875 245.73828125 -473.45654296875Q245.73828125 -440.173828125 268.053466796875 -423.89111328125Q290.36865234375 -407.6083984375 328.4775390625 -407.6083984375Z\" fill=\"#FFFFFF\"/></g>",
|
|
28
28
|
dark: "<rect width=\"24\" height=\"24\" rx=\"5.3\" fill=\"#6183BB\"/><g transform=\"translate(12 12) scale(0.0335) translate(-188.3 -114.7)\"><g transform=\"skewX(-10.5)\"><path d=\"M0 280V0H120C185 0 226 40 226 100C226 165 185 208 120 208H69V280Z\" fill=\"#FFFFFF\"/><path d=\"M69 54H112C140 54 154 70 154 96C154 132 135 155 105 155H69Z\" fill=\"#6183BB\"/></g><path transform=\"translate(207.5 208) scale(0.37)\" d=\"M267.49951171875 12.0Q186.04296875 12.0 130.6083984375 -8.684814453125Q75.173828125 -29.36962890625 46.7392578125 -66.95654296875Q18.3046875 -104.54345703125 18.3046875 -155.4345703125Q18.3046875 -201.4345703125 35.163330078125 -239.075927734375Q52.02197265625 -276.71728515625 84.02197265625 -305.358642578125Q116.02197265625 -334.0 159.2177734375 -350.36962890625Q126.84814453125 -372.54345703125 110.706787109375 -404.5Q94.5654296875 -436.45654296875 94.5654296875 -472.826171875Q94.5654296875 -523.2607421875 115.326171875 -564.619384765625Q136.0869140625 -605.97802734375 173.47802734375 -636.162841796875Q210.869140625 -666.34765625 260.67333984375 -682.71728515625Q310.4775390625 -699.0869140625 369.10791015625 -699.0869140625Q438.4775390625 -699.0869140625 489.596923828125 -678.13037109375Q540.71630859375 -657.173828125 568.922607421875 -619.0869140625Q597.12890625 -581.0 597.12890625 -529.10888671875Q597.12890625 -491.10888671875 583.67236328125 -457.69580078125Q570.2158203125 -424.28271484375 544.074462890625 -397.097900390625Q517.93310546875 -369.9130859375 479.10693359375 -350.36962890625Q519.2158203125 -331.0 541.661376953125 -297.315185546875Q564.10693359375 -263.63037109375 564.10693359375 -216.45654296875Q564.10693359375 -146.2177734375 526.683349609375 -95.032958984375Q489.259765625 -43.84814453125 422.60791015625 -15.924072265625Q355.9560546875 12.0 267.49951171875 12.0ZM275.6513671875 -106.564453125Q293.10791015625 -106.564453125 308.52099609375 -110.064453125Q323.93408203125 -113.564453125 337.8037109375 -120.292724609375Q351.67333984375 -127.02099609375 362.58642578125 -136.4775390625Q379.32568359375 -151.3037109375 389.380126953125 -172.227783203125Q399.4345703125 -193.15185546875 399.4345703125 -219.63037109375Q399.4345703125 -255.826171875 374.749755859375 -274.60888671875Q350.06494140625 -293.3916015625 308.76025390625 -293.3916015625Q292.390625 -293.3916015625 276.9775390625 -290.119873046875Q261.564453125 -286.84814453125 248.379638671875 -280.84814453125Q235.19482421875 -274.84814453125 224.28173828125 -265.3046875Q207.1728515625 -250.478515625 197.118408203125 -228.597900390625Q187.06396484375 -206.71728515625 187.06396484375 -179.32568359375Q187.06396484375 -144.1298828125 210.39013671875 -125.34716796875Q233.71630859375 -106.564453125 275.6513671875 -106.564453125ZM328.4775390625 -407.6083984375Q344.76025390625 -407.6083984375 359.814697265625 -411.021484375Q374.869140625 -414.4345703125 387.73876953125 -420.7607421875Q400.6083984375 -427.0869140625 411.06494140625 -436.28271484375Q426.6953125 -449.10888671875 435.32568359375 -468.43505859375Q443.9560546875 -487.76123046875 443.9560546875 -512.67431640625Q443.9560546875 -546.95703125 421.184326171875 -563.73974609375Q398.41259765625 -580.5224609375 359.58642578125 -580.5224609375Q343.1298828125 -580.5224609375 328.445068359375 -577.294189453125Q313.76025390625 -574.06591796875 301.3037109375 -568.15283203125Q288.84716796875 -562.23974609375 278.93408203125 -553.32666015625Q263.564453125 -539.50048828125 254.6513671875 -519.532958984375Q245.73828125 -499.5654296875 245.73828125 -473.45654296875Q245.73828125 -440.173828125 268.053466796875 -423.89111328125Q290.36865234375 -407.6083984375 328.4775390625 -407.6083984375Z\" fill=\"#FFFFFF\"/></g>",
|
|
29
29
|
},
|
|
30
|
+
// SecureCore's icon: a padlock with a teal keyhole on its dark tile, the same in both themes.
|
|
31
|
+
securecore: {
|
|
32
|
+
light: "<rect width=\"24\" height=\"24\" rx=\"5.3\" fill=\"#11161D\"/><g transform=\"translate(2.16 2.16) scale(0.82)\"><path d=\"M7.6 11V7.6a4.4 4.4 0 0 1 8.8 0V11\" fill=\"none\" stroke=\"#E8ECEF\" stroke-width=\"2.9\"/><rect x=\"4\" y=\"10\" width=\"16\" height=\"12.2\" rx=\"2.6\" fill=\"#E8ECEF\"/><path d=\"M12 12.4a2.3 2.3 0 0 1 1.25 4.23L14 19.6h-4l0.75-2.97A2.3 2.3 0 0 1 12 12.4Z\" fill=\"#2DD4BF\"/></g>",
|
|
33
|
+
dark: "<rect width=\"24\" height=\"24\" rx=\"5.3\" fill=\"#11161D\"/><g transform=\"translate(2.16 2.16) scale(0.82)\"><path d=\"M7.6 11V7.6a4.4 4.4 0 0 1 8.8 0V11\" fill=\"none\" stroke=\"#E8ECEF\" stroke-width=\"2.9\"/><rect x=\"4\" y=\"10\" width=\"16\" height=\"12.2\" rx=\"2.6\" fill=\"#E8ECEF\"/><path d=\"M12 12.4a2.3 2.3 0 0 1 1.25 4.23L14 19.6h-4l0.75-2.97A2.3 2.3 0 0 1 12 12.4Z\" fill=\"#2DD4BF\"/></g>",
|
|
34
|
+
},
|
|
30
35
|
};
|
package/dist/tool/tools.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
export type ToolId = 'rixse' | 'mirab' | 'woreda' | 'kebele' | 'gelada' | 'harar' | 'p8';
|
|
1
|
+
export type ToolId = 'rixse' | 'mirab' | 'woreda' | 'kebele' | 'gelada' | 'harar' | 'p8' | 'securecore';
|
|
2
2
|
export type ToolInfo = {
|
|
3
3
|
id: ToolId;
|
|
4
4
|
/** Its site, without the scheme: `mirab.addis.gg`. */
|
|
5
5
|
domain: string;
|
|
6
6
|
/** One line, as the family list shows it. */
|
|
7
7
|
short: string;
|
|
8
|
+
/** The name as shown, when it isn't the id: `SecureCore`. */
|
|
9
|
+
name?: string;
|
|
8
10
|
};
|
|
9
11
|
export declare const TOOLS: ToolInfo[];
|
|
10
12
|
export declare function toolInfo(id: ToolId): ToolInfo;
|
|
13
|
+
/** A tool's name as every site shows it: its display name, else its id. */
|
|
14
|
+
export declare function toolName(id: ToolId): string;
|
package/dist/tool/tools.js
CHANGED
|
@@ -6,6 +6,7 @@ export const TOOLS = [
|
|
|
6
6
|
{ id: 'gelada', domain: 'gelada.addis.gg', short: 'OS sandboxes, without a container.' },
|
|
7
7
|
{ id: 'harar', domain: 'harar.addis.gg', short: 'A simple vault for your keys.' },
|
|
8
8
|
{ id: 'p8', domain: 'p8.addis.gg', short: 'PHP in pure Rust. Memory-safe.' },
|
|
9
|
+
{ id: 'securecore', name: 'SecureCore', domain: 'securecore.addis.gg', short: 'Every WordPress plugin in its own sandbox.' },
|
|
9
10
|
];
|
|
10
11
|
export function toolInfo(id) {
|
|
11
12
|
const info = TOOLS.find((t) => t.id === id);
|
|
@@ -13,3 +14,7 @@ export function toolInfo(id) {
|
|
|
13
14
|
throw new Error(`unknown tool: ${id}`);
|
|
14
15
|
return info;
|
|
15
16
|
}
|
|
17
|
+
/** A tool's name as every site shows it: its display name, else its id. */
|
|
18
|
+
export function toolName(id) {
|
|
19
|
+
return toolInfo(id).name ?? id;
|
|
20
|
+
}
|
package/dist/tool.css
CHANGED
|
@@ -172,3 +172,6 @@
|
|
|
172
172
|
.akt[data-tool="p8"] { --akt-reel: #141C2E; --akt-reelline: #2C3343; --akt-reelhl: #273147; --akt-reelacc: #9DB4E0; --akt-accent: #4A6AA3; --akt-btn: #4A6AA3; --akt-onbtn: #FFFFFF; --akt-dotoff: #BBBFC4; }
|
|
173
173
|
:root[data-theme="dark"] .akt[data-tool="p8"] { --akt-reel: #141C2E; --akt-reelline: #2C3343; --akt-reelhl: #273147; --akt-reelacc: #9DB4E0; --akt-ground: #162035; --akt-card: #0E1522; --akt-faint: #323B4D; --akt-dots: #293245; --akt-accent: #9DB4E0; --akt-btn: #9DB4E0; --akt-onbtn: #11161D; --akt-dotoff: #465061; }
|
|
174
174
|
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="p8"] { --akt-reel: #141C2E; --akt-reelline: #2C3343; --akt-reelhl: #273147; --akt-reelacc: #9DB4E0; --akt-ground: #162035; --akt-card: #0E1522; --akt-faint: #323B4D; --akt-dots: #293245; --akt-accent: #9DB4E0; --akt-btn: #9DB4E0; --akt-onbtn: #11161D; --akt-dotoff: #465061; } }
|
|
175
|
+
.akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-accent: #0F766E; --akt-btn: #0F766E; --akt-onbtn: #FFFFFF; --akt-dotoff: #BBBFC4; }
|
|
176
|
+
:root[data-theme="dark"] .akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-ground: #0F1918; --akt-card: #0A1110; --akt-faint: #2B3433; --akt-dots: #222B2A; --akt-accent: #2DD4BF; --akt-btn: #2DD4BF; --akt-onbtn: #11161D; --akt-dotoff: #414C4B; }
|
|
177
|
+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-ground: #0F1918; --akt-card: #0A1110; --akt-faint: #2B3433; --akt-dots: #222B2A; --akt-accent: #2DD4BF; --akt-btn: #2DD4BF; --akt-onbtn: #11161D; --akt-dotoff: #414C4B; } }
|
package/package.json
CHANGED