Add explore homepage and Radicle marketing site
Co-authored-by: Julien Donck <donckjulien@gmail.com> Co-authored-by: Brandon Oxendine <brandon.oxendine@gmail.com>
@@ -2,9 +2,9 @@
|
||||
node_modules/
|
||||
NOTES
|
||||
config/local*
|
||||
radicle-httpd/target
|
||||
radicle-httpd/build/artifacts
|
||||
crates/radicle-httpd/build/artifacts
|
||||
target
|
||||
target-docker
|
||||
|
||||
# KaTeX files
|
||||
*.min.css
|
||||
|
||||
@@ -102,6 +102,51 @@ The structure of the runtime `config.json` must match the shape of the
|
||||
application's base configuration defined in `config/default.json`.
|
||||
|
||||
|
||||
### Homepage
|
||||
|
||||
The `nodes.homepage` key controls what is rendered at the root URL (`/`):
|
||||
|
||||
* `"node"` (default) — show the node view of the user's primary seed
|
||||
directly, as if the user had navigated to `/nodes/<your-node>`. The
|
||||
primary seed is resolved from `preferredSeeds` (see [`default.json`][def]).
|
||||
This is the default so that a self-hosted deployment acts as a dedicated
|
||||
front-end for its own seed.
|
||||
* `"landing"` — serve the full Radicle marketing site: the landing page and
|
||||
its `/learn`, `/install` and documentation (`/faq`, `/glossary`,
|
||||
`/guides/*`) sub-routes. This is opt-in and intended for the canonical
|
||||
[radicle.dev][app] deployment; the marketing sub-routes are only reachable
|
||||
in this mode.
|
||||
|
||||
The cross-seed Explore page is always available at `/explore`, regardless of
|
||||
the `homepage` setting.
|
||||
|
||||
#### Node-homepage deployment
|
||||
|
||||
If you operate your own seed node and want the explorer to act as a
|
||||
dedicated front-end for it (the default behaviour), put your own node first
|
||||
(and ideally as the only entry) in `preferredSeeds` so it is always picked
|
||||
as the primary seed.
|
||||
|
||||
Example `local.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"preferredSeeds": [
|
||||
{
|
||||
"hostname": "seed.example.com",
|
||||
"port": 443,
|
||||
"scheme": "https"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
With this configuration, opening `/` lands the visitor on the node view
|
||||
for `seed.example.com`. Keeping `preferredSeeds` to a single entry
|
||||
ensures the primary seed is deterministic; if you list multiple, users
|
||||
are bucketed across them and may land on a different node.
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
* For detailed contribution guidelines, refer to the [CONTRIBUTING.md][con]
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"requiredApiVersion": "~0.18.0",
|
||||
"defaultHttpdPort": 443,
|
||||
"defaultLocalHttpdPort": 8080,
|
||||
"defaultHttpdScheme": "https"
|
||||
"defaultHttpdScheme": "https",
|
||||
"homepage": "node"
|
||||
},
|
||||
"source": {
|
||||
"commitsPerPage": 30
|
||||
@@ -17,11 +18,6 @@
|
||||
"port": 443,
|
||||
"scheme": "https"
|
||||
},
|
||||
{
|
||||
"hostname": "seed.radicle.dev",
|
||||
"port": 443,
|
||||
"scheme": "https"
|
||||
},
|
||||
{
|
||||
"hostname": "iris.radicle.network",
|
||||
"port": 443,
|
||||
|
||||
@@ -164,6 +164,9 @@ export default [
|
||||
"build/**/*",
|
||||
"public/**/*",
|
||||
"radicle-httpd/**/*",
|
||||
"radicle-search/**/*",
|
||||
"target/**/*",
|
||||
"target-docker/**/*",
|
||||
"workers/**/node_modules/**/*",
|
||||
"workers/**/.wrangler/**/*",
|
||||
],
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="/elevations.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/prettylights.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/index.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/marketing/marketing.css" />
|
||||
<link rel="icon" href="/favicon.png" type="image/png" />
|
||||
<link rel="manifest" href="/app.webmanifest" />
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
declare module "*.md" {
|
||||
import type { ComponentType } from "svelte";
|
||||
const component: ComponentType;
|
||||
export default component;
|
||||
}
|
||||
|
||||
declare const buildTimeConfig: {
|
||||
nodes: {
|
||||
requiredApiVersion: string;
|
||||
@@ -5,6 +11,7 @@ declare const buildTimeConfig: {
|
||||
defaultHttpdPort: number;
|
||||
defaultLocalHttpdPort: number;
|
||||
defaultHttpdScheme: string;
|
||||
homepage: "node" | "landing";
|
||||
};
|
||||
source: {
|
||||
commitsPerPage: number;
|
||||
|
||||
@@ -56,9 +56,13 @@
|
||||
"get-port": "^7.2.0",
|
||||
"globals": "^17.6.0",
|
||||
"happy-dom": "^20.9.0",
|
||||
"mdsvex": "^0.12.7",
|
||||
"prettier": "^3.8.3",
|
||||
"prettier-plugin-svelte": "^3.5.2",
|
||||
"rehype-slug": "^6.0.0",
|
||||
"remark-unwrap-images": "^4.0.1",
|
||||
"rimraf": "^6.1.3",
|
||||
"shiki": "^4.3.1",
|
||||
"svelte-check": "^4.4.8",
|
||||
"svelte-eslint-parser": "^1.6.1",
|
||||
"typescript": "^6.0.3",
|
||||
@@ -587,9 +591,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -607,9 +608,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -627,9 +625,6 @@
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -647,9 +642,6 @@
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -667,9 +659,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -687,9 +676,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -783,6 +769,114 @@
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@shikijs/core": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.3.1.tgz",
|
||||
"integrity": "sha512-ANMDxuaPsNMdDC1m4vfvhlDmJweMwkE5XitTwrq2rWHx5jM+dlm4MmHt2PP6t0uejfR77SuhrhJ0zEijIF/uhA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@shikijs/primitive": "4.3.1",
|
||||
"@shikijs/types": "4.3.1",
|
||||
"@shikijs/vscode-textmate": "^10.0.2",
|
||||
"@types/hast": "^3.0.4",
|
||||
"hast-util-to-html": "^9.0.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@shikijs/engine-javascript": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.3.1.tgz",
|
||||
"integrity": "sha512-JBItcnPuYq7jVJdZo/vMj94r+szT7XEjHFX+mvFDGSEIbVAXAGyHAHzhbWzpGOwYidCZrErJLLgn2PVeiokHnQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@shikijs/types": "4.3.1",
|
||||
"@shikijs/vscode-textmate": "^10.0.2",
|
||||
"oniguruma-to-es": "^4.3.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@shikijs/engine-oniguruma": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.3.1.tgz",
|
||||
"integrity": "sha512-OXyNMzg0pews+msMj4cHeqT4xiYKKvbnn6VbdAXxfoFl3SSx4fJTc8FadECuc5/H9p3BzhNAoAUXKwAu9rWYhg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@shikijs/types": "4.3.1",
|
||||
"@shikijs/vscode-textmate": "^10.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@shikijs/langs": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.3.1.tgz",
|
||||
"integrity": "sha512-m0l9nsDqgBHvbZbk7A0/kXz/impK3uB/c6rAn6Gpg/uPtdZRQ+alsN/17MU5thb68XTj/4DxkZAotrM0GGSpDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@shikijs/types": "4.3.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@shikijs/primitive": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.3.1.tgz",
|
||||
"integrity": "sha512-CXQRQOYy1leqQ8ceTeJdmXv/bsUY++6QyLpXJ94LZAAYj5X2SKRdc5ipguv4NPyGVKItB2PPwUpRNe0Sjh5S1A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@shikijs/types": "4.3.1",
|
||||
"@shikijs/vscode-textmate": "^10.0.2",
|
||||
"@types/hast": "^3.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@shikijs/themes": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.3.1.tgz",
|
||||
"integrity": "sha512-dgpoJ4WqNi2yTmizQHBJ5zcX6j2lE6icN/0yt4l1kkf16jrY/pwPLoTb1ETsWMz0OBLf9ZNvwmxft+cH+N9qSA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@shikijs/types": "4.3.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@shikijs/types": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.3.1.tgz",
|
||||
"integrity": "sha512-CHFxE0jztBIZRHH6gxXE7DXUCFXjReEGxZ/j0rfSLGKZuwp2xBYycEP14875DSa9KLL/6700oxIq6oO6ef9K2g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@shikijs/vscode-textmate": "^10.0.2",
|
||||
"@types/hast": "^3.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@shikijs/vscode-textmate": {
|
||||
"version": "10.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz",
|
||||
"integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@sindresorhus/merge-streams": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz",
|
||||
@@ -3305,6 +3399,13 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/github-slugger": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz",
|
||||
"integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==",
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/glob": {
|
||||
"version": "13.0.6",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
|
||||
@@ -3434,6 +3535,20 @@
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-heading-rank": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/hast-util-heading-rank/-/hast-util-heading-rank-3.0.0.tgz",
|
||||
"integrity": "sha512-EJKb8oMUXVHcWZTDepnr+WNbfnXKFNf9duMesmr4S8SXTJBJ9M4Yok08pu9vxdJwdlGRhVumk9mEhkEvKGifwA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-to-dom": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/hast-util-to-dom/-/hast-util-to-dom-4.0.1.tgz",
|
||||
@@ -3472,6 +3587,20 @@
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-to-string": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/hast-util-to-string/-/hast-util-to-string-3.0.1.tgz",
|
||||
"integrity": "sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-whitespace": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
|
||||
@@ -3952,9 +4081,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -3976,9 +4102,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -4000,9 +4123,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -4024,9 +4144,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -4248,6 +4365,102 @@
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/mdsvex": {
|
||||
"version": "0.12.7",
|
||||
"resolved": "https://registry.npmjs.org/mdsvex/-/mdsvex-0.12.7.tgz",
|
||||
"integrity": "sha512-gx4bReLCUvq+MPErHXYeyX+TEq1hsS2KfiZtEOMNTcbibSouFy8AHc5h04KbGCl+g5tLuo4/lbgRVYRnc7bJZw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/mdast": "^4.0.4",
|
||||
"@types/unist": "^2.0.3",
|
||||
"prism-svelte": "^0.4.7",
|
||||
"prismjs": "^1.17.1",
|
||||
"unist-util-visit": "^2.0.1",
|
||||
"vfile-message": "^2.0.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^3.56.0 || ^4.0.0 || ^5.0.0-next.120"
|
||||
}
|
||||
},
|
||||
"node_modules/mdsvex/node_modules/@types/unist": {
|
||||
"version": "2.0.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",
|
||||
"integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/mdsvex/node_modules/unist-util-is": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz",
|
||||
"integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/mdsvex/node_modules/unist-util-stringify-position": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz",
|
||||
"integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/unist": "^2.0.2"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/mdsvex/node_modules/unist-util-visit": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz",
|
||||
"integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/unist": "^2.0.0",
|
||||
"unist-util-is": "^4.0.0",
|
||||
"unist-util-visit-parents": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/mdsvex/node_modules/unist-util-visit-parents": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz",
|
||||
"integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/unist": "^2.0.0",
|
||||
"unist-util-is": "^4.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/mdsvex/node_modules/vfile-message": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz",
|
||||
"integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/unist": "^2.0.0",
|
||||
"unist-util-stringify-position": "^2.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/mermaid": {
|
||||
"version": "11.15.0",
|
||||
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.15.0.tgz",
|
||||
@@ -4521,6 +4734,25 @@
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/oniguruma-parser": {
|
||||
"version": "0.12.2",
|
||||
"resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.2.tgz",
|
||||
"integrity": "sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/oniguruma-to-es": {
|
||||
"version": "4.3.6",
|
||||
"resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.6.tgz",
|
||||
"integrity": "sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"oniguruma-parser": "^0.12.2",
|
||||
"regex": "^6.1.0",
|
||||
"regex-recursion": "^6.0.2"
|
||||
}
|
||||
},
|
||||
"node_modules/optionator": {
|
||||
"version": "0.9.4",
|
||||
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
|
||||
@@ -4905,6 +5137,23 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/prism-svelte": {
|
||||
"version": "0.4.7",
|
||||
"resolved": "https://registry.npmjs.org/prism-svelte/-/prism-svelte-0.4.7.tgz",
|
||||
"integrity": "sha512-yABh19CYbM24V7aS7TuPYRNMqthxwbvx6FF/Rw920YbyBWO3tnyPIqRMgHuSVsLmuHkkBS1Akyof463FVdkeDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/prismjs": {
|
||||
"version": "1.30.0",
|
||||
"resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz",
|
||||
"integrity": "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/property-information": {
|
||||
"version": "7.1.0",
|
||||
"resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",
|
||||
@@ -4949,6 +5198,67 @@
|
||||
"url": "https://paulmillr.com/funding/"
|
||||
}
|
||||
},
|
||||
"node_modules/regex": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz",
|
||||
"integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"regex-utilities": "^2.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/regex-recursion": {
|
||||
"version": "6.0.2",
|
||||
"resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz",
|
||||
"integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"regex-utilities": "^2.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/regex-utilities": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz",
|
||||
"integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/rehype-slug": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/rehype-slug/-/rehype-slug-6.0.0.tgz",
|
||||
"integrity": "sha512-lWyvf/jwu+oS5+hL5eClVd3hNdmwM1kAC0BUvEGD19pajQMIzcNUd/k9GsfQ+FfECvX+JE+e9/btsKH0EjJT6A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0",
|
||||
"github-slugger": "^2.0.0",
|
||||
"hast-util-heading-rank": "^3.0.0",
|
||||
"hast-util-to-string": "^3.0.0",
|
||||
"unist-util-visit": "^5.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-unwrap-images": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/remark-unwrap-images/-/remark-unwrap-images-4.0.1.tgz",
|
||||
"integrity": "sha512-J9HibCHx0/X7ovgqaFe0otizCHpbb1s6Jh3IeiD5ibQm2Oz/OhCDXSKMEW5T54iBw5CxuqRL6BrYp+jLLdqBOw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/mdast": "^4.0.0",
|
||||
"hast-util-whitespace": "^3.0.0",
|
||||
"unist-util-visit": "^5.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/rimraf": {
|
||||
"version": "6.1.3",
|
||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.3.tgz",
|
||||
@@ -5092,6 +5402,26 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/shiki": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/shiki/-/shiki-4.3.1.tgz",
|
||||
"integrity": "sha512-oR+qDVi2OjX1tmDpyv+3KviX01KzO6Af+0NNnKnsp9491UEGz2YpxTuJboS/6VhYpTdqzmuJBuiTlrAWWJAssw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@shikijs/core": "4.3.1",
|
||||
"@shikijs/engine-javascript": "4.3.1",
|
||||
"@shikijs/engine-oniguruma": "4.3.1",
|
||||
"@shikijs/langs": "4.3.1",
|
||||
"@shikijs/themes": "4.3.1",
|
||||
"@shikijs/types": "4.3.1",
|
||||
"@shikijs/vscode-textmate": "^10.0.2",
|
||||
"@types/hast": "^3.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/siginfo": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",
|
||||
@@ -5944,8 +6274,10 @@
|
||||
"version": "2.9.0",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz",
|
||||
"integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==",
|
||||
"extraneous": true,
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"yaml": "bin.mjs"
|
||||
},
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
"build": "vite build && scripts/copy-katex-assets && scripts/install-twemoji-assets",
|
||||
"postinstall": "scripts/copy-katex-assets && scripts/install-twemoji-assets",
|
||||
"check": "scripts/check",
|
||||
"check:radicle-httpd": "cd radicle-httpd && cargo clippy --all --tests && cargo fmt --all --check",
|
||||
"check:radicle-httpd": "cargo clippy --all --tests && cargo fmt --all --check",
|
||||
"format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' --write",
|
||||
"test:unit": "TZ='UTC' vitest run",
|
||||
"test:e2e": "NODE_CONFIG_ENV='test' TZ='UTC' playwright test",
|
||||
"test:e2e:local": "scripts/compile-local-httpd && USE_LOCAL_HTTPD=true NODE_CONFIG_ENV='test' TZ='UTC' playwright test",
|
||||
"test:http-client:unit": "NODE_CONFIG_ENV='test' TZ='UTC' vitest run --config http-client/vite.config.ts --reporter verbose",
|
||||
"test:http-client:unit:local": "scripts/compile-local-httpd && USE_LOCAL_HTTPD=true NODE_CONFIG_ENV='test' TZ='UTC' vitest run --config http-client/vite.config.ts --reporter verbose",
|
||||
"test:radicle-httpd": "cd radicle-httpd && cargo test --all-features",
|
||||
"test:radicle-httpd": "cargo test --all-features",
|
||||
"deploy": "rimraf build && npm clean-install && npm run build && scripts/inject-plausible && npx wrangler deploy",
|
||||
"deploy:open-graph": "cd workers/open-graph && npx wrangler deploy",
|
||||
"start:open-graph": "cd workers/open-graph && npx wrangler dev"
|
||||
@@ -29,9 +29,9 @@
|
||||
"@playwright/test": "^1.60.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
||||
"@tsconfig/svelte": "^5.0.8",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/katex": "^0.16.8",
|
||||
"@types/linkify-it": "^5.0.0",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/lodash": "^4.17.24",
|
||||
"@types/md5": "^2.3.6",
|
||||
"@types/node": "^24",
|
||||
@@ -46,9 +46,13 @@
|
||||
"get-port": "^7.2.0",
|
||||
"globals": "^17.6.0",
|
||||
"happy-dom": "^20.9.0",
|
||||
"mdsvex": "^0.12.7",
|
||||
"prettier": "^3.8.3",
|
||||
"prettier-plugin-svelte": "^3.5.2",
|
||||
"rehype-slug": "^6.0.0",
|
||||
"remark-unwrap-images": "^4.0.1",
|
||||
"rimraf": "^6.1.3",
|
||||
"shiki": "^4.3.1",
|
||||
"svelte-check": "^4.4.8",
|
||||
"svelte-eslint-parser": "^1.6.1",
|
||||
"typescript": "^6.0.3",
|
||||
@@ -78,8 +82,8 @@
|
||||
"marked-katex-extension": "^5.1.8",
|
||||
"marked-linkify-it": "^3.1.15",
|
||||
"md5": "^2.3.0",
|
||||
"svelte": "^5.55.7",
|
||||
"mermaid": "^11.15.0",
|
||||
"svelte": "^5.55.7",
|
||||
"twemoji": "^14.0.2",
|
||||
"zod": "^4.4.3"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3 8.5L6.5 12L13 5.5" stroke="#B8BABC" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 200 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="2" y="6" width="8" height="8" stroke="#B8BABC"/>
|
||||
<path d="M5 6V3H13V11H10" stroke="#B8BABC"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 206 B |
@@ -0,0 +1,5 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="#000000" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M10.3535 6.35352L6.35352 10.3535L5.64648 9.64648L9.64648 5.64648L10.3535 6.35352Z"/>
|
||||
<path d="M8.64648 2.6465C9.94632 1.34667 12.0537 1.34667 13.3535 2.6465C14.6533 3.94634 14.6533 6.0537 13.3535 7.35354L11 9.70705L10.293 9.00002L12.6465 6.6465C13.5558 5.7372 13.5558 4.26284 12.6465 3.35354C11.7372 2.44423 10.2628 2.44423 9.35352 3.35354L7 5.70705L6.29297 5.00002L8.64648 2.6465Z"/>
|
||||
<path d="M5.70681 7L3.85329 8.85352C2.94398 9.76282 2.94398 11.2372 3.85329 12.1465C4.7626 13.0558 6.23695 13.0558 7.14626 12.1465L8.99978 10.293L9.70681 11L7.85329 12.8535C6.55346 14.1533 4.44609 14.1533 3.14626 12.8535C1.84643 11.5537 1.84643 9.44632 3.14626 8.14648L4.99978 6.29297L5.70681 7Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 799 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="64" height="64" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M56 76L112 128L56 180" stroke="#4ADE80" stroke-width="22" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M132 180H200" stroke="#4ADE80" stroke-width="22" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 304 B |
@@ -23,8 +23,18 @@
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
-ms-overflow-style: scrollbar;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
/* Repo views fill the viewport and scroll their own content region, so the
|
||||
body never scrolls. Don't reserve a body scrollbar gutter there, otherwise
|
||||
an empty scrollbar track is shown. */
|
||||
html[data-repo-view="true"] {
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: auto;
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -136,3 +146,57 @@ pre {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Global page transition for client-side navigation (View Transition API),
|
||||
triggered from the router. The outgoing page fades out and slides up; the
|
||||
incoming page fades in and slides up from below. Elements with their own
|
||||
view-transition-name (e.g. the marketing sidebar dot, the header logo)
|
||||
animate independently via their own transition groups. */
|
||||
@keyframes vt-fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes vt-fade-out {
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes vt-slide-from-bottom {
|
||||
from {
|
||||
transform: translateY(30px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes vt-slide-to-top {
|
||||
to {
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
}
|
||||
|
||||
::view-transition-old(root) {
|
||||
animation:
|
||||
110ms cubic-bezier(0.4, 0, 1, 1) both vt-fade-out,
|
||||
300ms cubic-bezier(0.4, 0, 0.2, 1) both vt-slide-to-top;
|
||||
transform-origin: 50% 50%;
|
||||
}
|
||||
|
||||
::view-transition-new(root) {
|
||||
animation:
|
||||
210ms cubic-bezier(0, 0, 0.2, 1) 90ms both vt-fade-in,
|
||||
300ms cubic-bezier(0.4, 0, 0.2, 1) both vt-slide-from-bottom;
|
||||
}
|
||||
|
||||
/* Don't let the transition snapshot intercept clicks mid-animation. */
|
||||
::view-transition {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
::view-transition-old(root),
|
||||
::view-transition-new(root) {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="hsl(14.8, 63.1%, 59.6%)"><path d="m19.6 66.5 19.7-11 .3-1-.3-.5h-1l-3.3-.2-11.2-.3L14 53l-9.5-.5-2.4-.5L0 49l.2-1.5 2-1.3 2.9.2 6.3.5 9.5.6 6.9.4L38 49.1h1.6l.2-.7-.5-.4-.4-.4L29 41l-10.6-7-5.6-4.1-3-2-1.5-2-.6-4.2 2.7-3 3.7.3.9.2 3.7 2.9 8 6.1L37 36l1.5 1.2.6-.4.1-.3-.7-1.1L33 25l-6-10.4-2.7-4.3-.7-2.6c-.3-1-.4-2-.4-3l3-4.2L28 0l4.2.6L33.8 2l2.6 6 4.1 9.3L47 29.9l2 3.8 1 3.4.3 1h.7v-.5l.5-7.2 1-8.7 1-11.2.3-3.2 1.6-3.8 3-2L61 2.6l2 2.9-.3 1.8-1.1 7.7L59 27.1l-1.5 8.2h.9l1-1.1 4.1-5.4 6.9-8.6 3-3.5L77 13l2.3-1.8h4.3l3.1 4.7-1.4 4.9-4.4 5.6-3.7 4.7-5.3 7.1-3.2 5.7.3.4h.7l12-2.6 6.4-1.1 7.6-1.3 3.5 1.6.4 1.6-1.4 3.4-8.2 2-9.6 2-14.3 3.3-.2.1.2.3 6.4.6 2.8.2h6.8l12.6 1 3.3 2 1.9 2.7-.3 2-5.1 2.6-6.8-1.6-16-3.8-5.4-1.3h-.8v.4l4.6 4.5 8.3 7.5L89 80.1l.5 2.4-1.3 2-1.4-.2-9.2-7-3.6-3-8-6.8h-.5v.7l1.8 2.7 9.8 14.7.5 4.5-.7 1.4-2.6 1-2.7-.6-5.8-8-6-9-4.7-8.2-.5.4-2.9 30.2-1.3 1.5-3 1.2-2.5-2-1.4-3 1.4-6.2 1.6-8 1.3-6.4 1.2-7.9.7-2.6v-.2H49L43 72l-9 12.3-7.2 7.6-1.7.7-3-1.5.3-2.8L24 86l10-12.8 6-7.9 4-4.6-.1-.5h-.3L17.2 77.4l-4.7.6-2-2 .2-3 1-1 8-5.5Z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 675 KiB |
|
After Width: | Height: | Size: 734 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 484 KiB |
|
After Width: | Height: | Size: 516 KiB |
@@ -0,0 +1,35 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 378.4899439789051 305.03114976535403" width="378.4899439789051" height="305.03114976535403">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round" transform="translate(10 10) rotate(0 179.24497198945255 142.51557488267702)">
|
||||
<path d="M32 0 C96.01 -0.62, 159.52 0.59, 326.49 0 C344.88 0.81, 355.74 13.91, 358.49 32 C359.82 116.27, 360.66 201.56, 358.49 253.03 C354.99 273.63, 347.55 286.32, 326.49 285.03 C214.87 285.42, 98.52 284.38, 32 285.03 C10.91 282.57, 3.47 277.22, 0 253.03 C-4.75 193.41, -2.08 136.24, 0 32 C-3.25 7.16, 12.37 1.22, 32 0" stroke="none" stroke-width="0" fill="#8888ff"></path>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(34.01185502861517 199.3068340056381) rotate(0 157.80769423861102 38.3330192901304)">
|
||||
<path d="M19.17 0 C84.2 -2.67, 146.92 0, 296.45 0 C310.53 0.75, 319.03 5.75, 315.62 19.17 C318.44 28.78, 319.28 38.28, 315.62 57.5 C314.61 67.05, 312.19 79.43, 296.45 76.67 C195.09 74.32, 89.88 74.98, 19.17 76.67 C3.17 73.58, 0.06 67.96, 0 57.5 C-3.12 48.25, 1.29 33.91, 0 19.17 C0.97 5.69, 9.11 0.3, 19.17 0" stroke="none" stroke-width="0" fill="#ff80b3"></path>
|
||||
<path d="M19.17 0 C120.56 -0.89, 222.28 -1.12, 296.45 0 M19.17 0 C88.97 -1.03, 159.01 -1.11, 296.45 0 M296.45 0 C309.44 -0.66, 314.24 8.35, 315.62 19.17 M296.45 0 C310.27 0.21, 317.75 5.25, 315.62 19.17 M315.62 19.17 C316.9 28.51, 316.99 43.17, 315.62 57.5 M315.62 19.17 C315.99 33.86, 315.04 47.24, 315.62 57.5 M315.62 57.5 C315.99 72.08, 309.68 75, 296.45 76.67 M315.62 57.5 C315.09 72.4, 309.77 77.38, 296.45 76.67 M296.45 76.67 C212.97 77.04, 128.13 77.1, 19.17 76.67 M296.45 76.67 C193.14 77.6, 90.04 77.8, 19.17 76.67 M19.17 76.67 C5.65 74.76, -1.87 69.62, 0 57.5 M19.17 76.67 C4.45 74.61, 0.96 68.12, 0 57.5 M0 57.5 C1.36 49.01, -1.28 36.13, 0 19.17 M0 57.5 C-0.8 47.67, 0.56 39.41, 0 19.17 M0 19.17 C-1.16 7.87, 7.88 -0.82, 19.17 0 M0 19.17 C-1.91 5.25, 4.89 -0.66, 19.17 0" stroke="transparent" stroke-width="1" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(159.44454926722665 228.43985329576853) rotate(0 32.375 9.2)">
|
||||
<text x="32.375" y="13.5203125" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Message</text>
|
||||
</g>
|
||||
<g transform="translate(34.08640279365136 31.42163495354498) rotate(0 53.67499923706055 9.200000000000003)">
|
||||
<text x="0" y="13.5203125" fill="#ffffff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Announcement</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(34.086403155768494 67.90804170597728) rotate(0 157.80769400000008 25.06389752325083)">
|
||||
<path d="M12.53 0 C97.48 -0.9, 184.29 -0.42, 303.08 0 C308.71 0.61, 314.89 3.66, 315.62 12.53 C312.63 15.55, 319.45 25.83, 315.62 37.6 C313.64 47.19, 308.31 50.19, 303.08 50.13 C226.1 50.29, 143.23 46.5, 12.53 50.13 C1.26 49.91, -1.92 43.95, 0 37.6 C-1.85 31.9, 2.46 24.55, 0 12.53 C3.43 2.67, 5.38 -2.78, 12.53 0" stroke="none" stroke-width="0" fill="#ffa083"></path>
|
||||
<path d="M12.53 0 C123.79 -1.73, 232.45 -0.44, 303.08 0 M12.53 0 C100.71 0.09, 189.2 0.3, 303.08 0 M303.08 0 C312.24 -0.29, 317.41 4.02, 315.62 12.53 M303.08 0 C312.56 0.94, 316.99 2.42, 315.62 12.53 M315.62 12.53 C316.69 20.15, 315.98 28.86, 315.62 37.6 M315.62 12.53 C315.44 20.41, 315.32 27.19, 315.62 37.6 M315.62 37.6 C316.47 47.01, 311.83 50.74, 303.08 50.13 M315.62 37.6 C315.74 47.48, 309.86 51.26, 303.08 50.13 M303.08 50.13 C188.33 49.7, 71.85 49.15, 12.53 50.13 M303.08 50.13 C242.1 50.16, 181.47 51.2, 12.53 50.13 M12.53 50.13 C3.94 49.44, 0.85 45.58, 0 37.6 M12.53 50.13 C5.18 51.55, -2.19 48.22, 0 37.6 M0 37.6 C1.21 26.09, -1.77 16.71, 0 12.53 M0 37.6 C0.96 28.25, -0.05 19.94, 0 12.53 M0 12.53 C-0.48 5.5, 2.77 -1.48, 12.53 0 M0 12.53 C-1.45 4.55, 6.16 -1.45, 12.53 0" stroke="transparent" stroke-width="1" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(162.39409715576858 83.77193922922811) rotate(0 29.5 9.200000000000003)">
|
||||
<text x="29.5" y="13.5203125" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Node ID</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(34.08640271441618 131.40405163335802) rotate(0 157.80769422067624 27.109607533198556)">
|
||||
<path d="M13.55 0 C119.59 -4.14, 230.02 -0.7, 302.06 0 C310.88 0.31, 317.84 7.95, 315.62 13.55 C312.74 26.15, 312.7 29.26, 315.62 40.66 C317.6 47.17, 307.72 51.48, 302.06 54.22 C192.51 52.15, 75.87 53.62, 13.55 54.22 C3.1 54.22, 0.62 52.7, 0 40.66 C-3.16 31.04, -0.54 23.1, 0 13.55 C-2.81 4.05, 1.92 -3.57, 13.55 0" stroke="none" stroke-width="0" fill="#ffa083"></path>
|
||||
<path d="M13.55 0 C102.43 1.46, 190.51 1.57, 302.06 0 M13.55 0 C72.96 1.26, 133.29 1.59, 302.06 0 M302.06 0 C310.07 1.24, 315.17 4.31, 315.62 13.55 M302.06 0 C311.07 -0.18, 314.93 2.8, 315.62 13.55 M315.62 13.55 C313.62 21.6, 316.39 27.52, 315.62 40.66 M315.62 13.55 C315.61 22.65, 315.17 30.62, 315.62 40.66 M315.62 40.66 C316.05 50.66, 311.62 53.7, 302.06 54.22 M315.62 40.66 C316.84 50.17, 312.94 54.41, 302.06 54.22 M302.06 54.22 C229.75 51.88, 157.65 52.64, 13.55 54.22 M302.06 54.22 C197.2 52.24, 91.55 52.95, 13.55 54.22 M13.55 54.22 C6.39 52.75, -0.48 50.1, 0 40.66 M13.55 54.22 C6.66 54.81, 0.8 50.52, 0 40.66 M0 40.66 C-1.57 32.84, -0.99 24.07, 0 13.55 M0 40.66 C-0.49 32.22, -0.45 25.51, 0 13.55 M0 13.55 C0.8 3.53, 3.63 0.73, 13.55 0 M0 13.55 C0.68 3.2, 5.9 -1.43, 13.55 0" stroke="transparent" stroke-width="1" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(157.66909693509297 149.3136591665566) rotate(0 34.22499999999991 9.2)">
|
||||
<text x="34.225" y="13.5203125" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Signature</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.8 KiB |
@@ -0,0 +1,131 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 337.24307182817483 731.1541034420759" width="337.24307182817483" height="731.1541034420759">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round" transform="translate(52.205180970953734 503.2862482615314) rotate(0 53.390605406266786 38.0736284454527)">
|
||||
<path d="M19.04 0 C41.18 -1.38, 62.08 -3.02, 87.74 0 C102.5 2.61, 104.9 6.39, 106.78 19.04 C104.14 30.6, 107.63 49.39, 106.78 57.11 C106.82 67.75, 97.42 78.32, 87.74 76.15 C68.39 78.8, 57.23 74.41, 19.04 76.15 C7.74 74.38, 1.78 71.44, 0 57.11 C-2.09 44.86, -0.46 30.86, 0 19.04 C-3.11 5.17, 5.02 -2.29, 19.04 0" stroke="none" stroke-width="0" fill="#ffa083"/>
|
||||
</g>
|
||||
<g transform="translate(71.00828485134207 532.159876706984) rotate(0 34.587501525878906 9.199999999999989)">
|
||||
<text x="34.587501525878906" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Comment</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(10 352.14874786706235) rotate(0 53.390605406266786 38.0736284454527)">
|
||||
<path d="M19.04 0 C41.49 -2.6, 61.47 3.11, 87.74 0 C98.56 0.05, 110.24 5.44, 106.78 19.04 C107.33 32.67, 106.35 43.86, 106.78 57.11 C103.77 71.98, 97.91 76.56, 87.74 76.15 C65.24 74.6, 41.96 75.11, 19.04 76.15 C8.13 77.79, 0.45 69.48, 0 57.11 C-0.11 41.41, -2.7 29.45, 0 19.04 C-1.33 4.05, 5.63 -1.16, 19.04 0" stroke="none" stroke-width="0" fill="#ffa083"/>
|
||||
</g>
|
||||
<g transform="translate(28.803103880387425 371.822376312515) rotate(0 34.587501525878906 18.399999999999977)">
|
||||
<text x="34.587501525878906" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Edit</text>
|
||||
<text x="34.587501525878906" y="18.4" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Comment</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(220.46186101564126 475.0142432140772) rotate(0 53.390605406266786 38.0736284454527)">
|
||||
<path d="M19.04 0 C38.93 3.67, 52.81 1.11, 87.74 0 C103.89 -0.9, 108.69 3.87, 106.78 19.04 C107.01 24.69, 103.96 36.63, 106.78 57.11 C104.26 70.21, 102 72.59, 87.74 76.15 C64.47 73.6, 40.2 77.01, 19.04 76.15 C6.79 75.82, 1.72 67.65, 0 57.11 C-3.01 44.89, -1.23 32.72, 0 19.04 C-0.72 5.19, 5.42 0.86, 19.04 0" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
</g>
|
||||
<g transform="translate(254.32746680337732 503.88787165952994) rotate(0 19.524999618530273 9.199999999999989)">
|
||||
<text x="19.524999618530273" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Label</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(144.39080882045891 10) rotate(0 53.390605406266786 38.07362844545273)">
|
||||
<path d="M19.04 0 C31.86 -0.85, 51.89 -1.8, 87.74 0 C102.34 -2.47, 103.27 7.37, 106.78 19.04 C103.77 32.84, 104.27 42.71, 106.78 57.11 C108.34 66.24, 102.56 77.23, 87.74 76.15 C73.25 77.18, 55.65 75.21, 19.04 76.15 C8.07 74, -0.35 69.28, 0 57.11 C-0.74 45.99, -0.13 38.29, 0 19.04 C-0.92 7.21, 9.08 1.56, 19.04 0" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(177.38141460819588 38.87362844545271) rotate(0 20.399999618530273 9.199999999999989)">
|
||||
<text x="20.399999618530273" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Close</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(187.97719679494912 296.7109886655805) rotate(0 53.390605406266786 38.0736284454527)">
|
||||
<path d="M19.04 0 C48.08 -0.92, 72.12 -2.49, 87.74 0 C96.93 1.02, 106.98 6.38, 106.78 19.04 C103.68 28.7, 107.77 33.98, 106.78 57.11 C108.9 70.89, 98.16 77.54, 87.74 76.15 C70.95 76.38, 54.98 74.56, 19.04 76.15 C5.99 75.62, -2.45 66.69, 0 57.11 C-0.47 45.77, -0.67 37.61, 0 19.04 C2.73 7.91, 9.64 3.09, 19.04 0" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
</g>
|
||||
<g transform="translate(206.78030067533655 325.5846171110332) rotate(0 34.587501525878906 9.199999999999989)">
|
||||
<text x="34.587501525878906" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Comment</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(155.08269948085217 145.33589324399912) rotate(0 53.390605406266786 38.0736284454527)">
|
||||
<path d="M19.04 0 C41.65 -2.16, 56.93 1.33, 87.74 0 C100.63 0.04, 104.73 3.33, 106.78 19.04 C107.86 29.2, 108.42 47.57, 106.78 57.11 C104.51 71.19, 98.67 77.93, 87.74 76.15 C65.73 73.88, 39.91 75.51, 19.04 76.15 C3.89 73.04, -1.18 68.47, 0 57.11 C-0.79 48.97, 2.87 40.68, 0 19.04 C3.29 9.43, 8.49 2.67, 19.04 0" stroke="none" stroke-width="0" fill="#ffa083"/>
|
||||
</g>
|
||||
<g transform="translate(173.8858033612405 174.20952168945183) rotate(0 34.587501525878906 9.199999999999989)">
|
||||
<text x="34.587501525878906" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Comment</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(127.95801258526626 645.0068465511706) rotate(0 53.390605406266786 38.0736284454527)">
|
||||
<path d="M19.04 0 C34.42 1.87, 57.01 0.89, 87.74 0 C98.38 -3.02, 108.96 3.82, 106.78 19.04 C109.2 31.98, 104.8 44.14, 106.78 57.11 C105.02 71.58, 102.07 76.6, 87.74 76.15 C67.4 74.88, 45.32 72.3, 19.04 76.15 C5.17 74.82, -2.29 69.08, 0 57.11 C2.91 48.48, 3.47 39.8, 0 19.04 C2.15 9.02, 6.66 -2.13, 19.04 0" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
</g>
|
||||
<g transform="translate(161.83611722859314 673.8804749966234) rotate(0 19.512500762939453 9.199999999999989)">
|
||||
<text x="19.512500762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Open</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(273.58010784829276 557.1236558333646) rotate(0 -43.101673754182684 40.21628481155909)">
|
||||
<path d="M-0.92 -1.07 C-15.32 12.37, -72.86 66.3, -87.07 79.7 M0.79 0.98 C-13.17 14.65, -70.19 67.67, -84.82 80.86" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(273.58010784829276 557.1236558333646) rotate(0 -43.101673754182684 40.21628481155909)">
|
||||
<path d="M-85.01 80.93 L-80.66 66.51 L-69.7 77.22 L-83.98 80.39" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M-84.82 80.86 C-84.65 76.45, -82.84 74.19, -79.09 66.99 M-84.82 80.86 C-83.92 77.71, -82.21 74.66, -79.09 66.99 M-79.09 66.99 C-75.31 70.37, -72.91 74.26, -70.52 76.33 M-79.09 66.99 C-76.65 69.96, -73.69 73.32, -70.52 76.33 M-70.52 76.33 C-73.87 77.97, -79.04 80.04, -84.82 80.86 M-70.52 76.33 C-73.32 76.85, -77.48 78.49, -84.82 80.86 M-84.82 80.86 C-84.82 80.86, -84.82 80.86, -84.82 80.86 M-84.82 80.86 C-84.82 80.86, -84.82 80.86, -84.82 80.86" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(240.46317562151398 381.8763467092097) rotate(0 17.754193402408873 43.356592404533046)">
|
||||
<path d="M-0.87 -0.73 C5.21 13.72, 29.46 71.24, 35.52 85.64 M0.88 1.5 C6.87 16.16, 28.93 72.46, 34.58 86.62" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(240.46317562151398 381.8763467092097) rotate(0 17.754193402408873 43.356592404533046)">
|
||||
<path d="M33.02 86.13 L24.51 77.19 L36.32 71.18 L34.77 85.58" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M34.58 86.62 C31.34 84.26, 28.48 81.97, 23.69 76.3 M34.58 86.62 C32.5 83.97, 30.29 81.89, 23.69 76.3 M23.69 76.3 C28.52 75.44, 33.22 72.44, 35.48 71.64 M23.69 76.3 C25.73 75.26, 28.52 74.52, 35.48 71.64 M35.48 71.64 C34.91 77.42, 34.2 81.38, 34.58 86.62 M35.48 71.64 C35.53 74.79, 35.08 77.14, 34.58 86.62 M34.58 86.62 C34.58 86.62, 34.58 86.62, 34.58 86.62 M34.58 86.62 C34.58 86.62, 34.58 86.62, 34.58 86.62" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(65.84128582151789 434.88471388600186) rotate(0 17.074172468658162 31.160364755301202)">
|
||||
<path d="M0.01 -1.07 C5.86 9.26, 28.57 50.79, 34.18 61.29 M-1.44 0.98 C4.32 11.49, 27.56 51.95, 33.24 62.28" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(65.84128582151789 434.88471388600186) rotate(0 17.074172468658162 31.160364755301202)">
|
||||
<path d="M34.06 63.17 L21.88 53.08 L32.28 46.29 L32.7 63.99" stroke="none" stroke-width="0" fill="#ffa083" fill-rule="evenodd"/>
|
||||
<path d="M33.24 62.28 C29.18 60.33, 26.45 57.69, 21.05 53.55 M33.24 62.28 C30.32 59.63, 27.41 58.13, 21.05 53.55 M21.05 53.55 C25.08 51.2, 26.91 48.55, 32.09 47.32 M21.05 53.55 C23.78 52.1, 26.72 50.74, 32.09 47.32 M32.09 47.32 C31.64 52.53, 31.4 58.39, 33.24 62.28 M32.09 47.32 C32.21 50.2, 32.76 54.49, 33.24 62.28 M33.24 62.28 C33.24 62.28, 33.24 62.28, 33.24 62.28 M33.24 62.28 C33.24 62.28, 33.24 62.28, 33.24 62.28" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(106.86366612921483 585.6261611465545) rotate(0 32.25021831292861 25.833440279708668)">
|
||||
<path d="M0.03 -1.04 C10.69 7.68, 53.21 42.55, 64.01 51.23 M-1.42 1.04 C9.05 10.01, 51.87 44.04, 62.81 52.54" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(106.86366612921483 585.6261611465545) rotate(0 32.25021831292861 25.833440279708668)">
|
||||
<path d="M63.64 52.07 L48.39 48.07 L55.5 40.86 L64.05 52.78" stroke="none" stroke-width="0" fill="#ffa083" fill-rule="evenodd"/>
|
||||
<path d="M62.81 52.54 C57.14 50.9, 53.5 50.88, 48.21 49.1 M62.81 52.54 C59.81 52.16, 55.74 51, 48.21 49.1 M48.21 49.1 C49.92 44.46, 53.42 40.8, 56.05 39.15 M48.21 49.1 C50.48 46.62, 52.74 43.38, 56.05 39.15 M56.05 39.15 C57.11 45.58, 60.1 49.34, 62.81 52.54 M56.05 39.15 C58.2 43.38, 59.69 47.29, 62.81 52.54 M62.81 52.54 C62.81 52.54, 62.81 52.54, 62.81 52.54 M62.81 52.54 C62.81 52.54, 62.81 52.54, 62.81 52.54" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(234.52015786159973 380.4037120064299) rotate(0 -58.10940753997647 57.731142011168856)">
|
||||
<path d="M-0.49 -0.44 C-19.81 18.87, -96.69 95.58, -115.9 114.82 M1.45 -1.71 C-18 17.84, -97.07 96.39, -116.67 116.02" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(234.52015786159973 380.4037120064299) rotate(0 -58.10940753997647 57.731142011168856)">
|
||||
<path d="M-116.49 114.98 L-112.07 103.65 L-101.33 111.15 L-115.35 115.8" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M-116.67 116.02 C-115.54 112.19, -114.24 108.16, -111.52 101.93 M-116.67 116.02 C-115.3 112.49, -113.53 108.91, -111.52 101.93 M-111.52 101.93 C-109.73 103.63, -106.89 106.81, -102.57 110.91 M-111.52 101.93 C-108.55 104.57, -105.4 107.21, -102.57 110.91 M-102.57 110.91 C-108.16 112.9, -111.72 114.03, -116.67 116.02 M-102.57 110.91 C-106 111.83, -107.8 112.77, -116.67 116.02 M-116.67 116.02 C-116.67 116.02, -116.67 116.02, -116.67 116.02 M-116.67 116.02 C-116.67 116.02, -116.67 116.02, -116.67 116.02" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(217.2287559953711 229.99464426210392) rotate(0 11.715435443094066 30.215509485325867)">
|
||||
<path d="M0.32 -0.64 C4.39 9.43, 19.93 49.66, 23.94 59.98 M-0.97 1.64 C3.03 11.91, 19.07 51.66, 23.26 61.28" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(217.2287559953711 229.99464426210392) rotate(0 11.715435443094066 30.215509485325867)">
|
||||
<path d="M22.72 62.99 L13.43 51.41 L25.21 46.07 L23 62.5" stroke="none" stroke-width="0" fill="#ffa083" fill-rule="evenodd"/>
|
||||
<path d="M23.26 61.28 C19.63 59.33, 16.99 57.31, 12.18 51.17 M23.26 61.28 C19.71 57.89, 14.9 53.15, 12.18 51.17 M12.18 51.17 C14.59 49.96, 17.68 49.19, 23.89 46.29 M12.18 51.17 C16.72 49.16, 20.49 47.21, 23.89 46.29 M23.89 46.29 C23.66 51.87, 21.94 58.38, 23.26 61.28 M23.89 46.29 C24.26 50.6, 22.78 56.19, 23.26 61.28 M23.26 61.28 C23.26 61.28, 23.26 61.28, 23.26 61.28 M23.26 61.28 C23.26 61.28, 23.26 61.28, 23.26 61.28" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(204.14208281764877 230.84835288553683) rotate(0 -68.67932303656698 57.941749169515845)">
|
||||
<path d="M0.51 -0.45 C-22.27 19.11, -113.42 97.27, -136.36 116.71 M-0.68 -1.74 C-23.56 17.55, -113.94 95.12, -136.79 115.03" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(204.14208281764877 230.84835288553683) rotate(0 -68.67932303656698 57.941749169515845)">
|
||||
<path d="M-135.54 115.27 L-129.32 101.12 L-122.62 112.16 L-136.86 115.04" stroke="none" stroke-width="0" fill="#ffa083" fill-rule="evenodd"/>
|
||||
<path d="M-136.79 115.03 C-135.27 111.77, -131.66 106.34, -130.64 101.35 M-136.79 115.03 C-135.04 109.83, -133.42 105.68, -130.64 101.35 M-130.64 101.35 C-128.56 103.72, -126.22 106.08, -122.36 110.94 M-130.64 101.35 C-128.12 103.44, -125.39 106.29, -122.36 110.94 M-122.36 110.94 C-128.22 112.39, -131.27 112.49, -136.79 115.03 M-122.36 110.94 C-126.98 112.72, -131.02 113.59, -136.79 115.03 M-136.79 115.03 C-136.79 115.03, -136.79 115.03, -136.79 115.03 M-136.79 115.03 C-136.79 115.03, -136.79 115.03, -136.79 115.03" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(198.87267287727627 93.40420502108407) rotate(0 1.2780757271502807 22.953228948586883)">
|
||||
<path d="M0.46 0.38 C0.86 8.09, 2.24 38.43, 2.66 46.06 M0.03 0.1 C0.35 7.66, 1.82 37.65, 2.28 45.17" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(198.87267287727627 93.40420502108407) rotate(0 1.2780757271502807 22.953228948586883)">
|
||||
<path d="M2.95 45.06 L-4.91 32.55 L7.84 31.25 L2.22 45.66" stroke="none" stroke-width="0" fill="#8888ff" fill-rule="evenodd"/>
|
||||
<path d="M2.28 45.17 C0.41 40.81, -2.33 36.69, -4.78 31.94 M2.28 45.17 C-0.39 40.43, -2.79 36.02, -4.78 31.94 M-4.78 31.94 C-0.87 31.87, 2.29 32.01, 7.88 31.25 M-4.78 31.94 C-1.35 31.63, 1.51 31.68, 7.88 31.25 M7.88 31.25 C6.32 34.61, 4.57 39.6, 2.28 45.17 M7.88 31.25 C6.03 35.13, 4.83 38.65, 2.28 45.17 M2.28 45.17 C2.28 45.17, 2.28 45.17, 2.28 45.17 M2.28 45.17 C2.28 45.17, 2.28 45.17, 2.28 45.17" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,188 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1197.5366182992343 544.0303397564605" width="1197.5366182992343" height="544.0303397564605">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round" transform="translate(164.46806523511532 249.54652025739685) rotate(0 75.81566086153839 72.99954032373856)">
|
||||
<path d="M103.65 5.15 C113.88 8.13, 124.93 16.5, 132.44 24.52 C139.94 32.54, 145.64 43.04, 148.68 53.27 C151.71 63.5, 152.52 75.75, 150.62 85.9 C148.72 96.05, 143.71 105.85, 137.27 114.17 C130.84 122.5, 121.61 130.66, 112.02 135.84 C102.42 141.02, 90.5 144.62, 79.68 145.26 C68.87 145.9, 57.15 143.71, 47.13 139.67 C37.1 135.63, 26.95 128.78, 19.53 121.02 C12.12 113.27, 5.69 103.24, 2.65 93.16 C-0.39 83.08, -0.64 70.98, 1.28 60.56 C3.21 50.14, 7.82 39.08, 14.21 30.65 C20.61 22.21, 30.14 15, 39.68 9.96 C49.21 4.92, 59.16 0.48, 71.42 0.41 C83.68 0.33, 105.32 7.27, 113.22 9.52 C121.13 11.77, 119.71 12.99, 118.85 13.91 M50.52 4.43 C60.12 0.12, 73.72 -0.53, 84.52 0.74 C95.33 2.01, 106.29 6.48, 115.36 12.04 C124.43 17.61, 133.23 25.2, 138.95 34.15 C144.67 43.11, 148.42 55.34, 149.7 65.79 C150.97 76.23, 149.91 87.15, 146.61 96.84 C143.31 106.53, 137.67 116.4, 129.89 123.92 C122.12 131.44, 110.3 138.5, 99.97 141.95 C89.64 145.4, 78.66 145.55, 67.93 144.62 C57.2 143.7, 45.03 142, 35.59 136.39 C26.16 130.78, 16.92 120.33, 11.31 110.99 C5.7 101.65, 2.99 90.67, 1.93 80.36 C0.86 70.04, 1.55 58.89, 4.93 49.09 C8.31 39.29, 14.65 29.24, 22.22 21.58 C29.79 13.91, 45.65 5.64, 50.35 3.09 C55.06 0.53, 49.92 4.8, 50.45 6.24" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
</g>
|
||||
<g transform="translate(210.02395856279009 313.22759059471906) rotate(0 30.149999618530273 9.2)">
|
||||
<text x="30.149999618530273" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Instance</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(49.77884501009112 389.488550646855) rotate(0 43.181572564415546 41.87304006246351)">
|
||||
<path d="M41.36 0.45 C48.82 -0.68, 58.61 1.88, 65.22 5.5 C71.82 9.12, 77.39 15.36, 80.98 22.16 C84.58 28.96, 87.5 38.87, 86.79 46.31 C86.07 53.74, 81.7 60.97, 76.7 66.77 C71.69 72.56, 63.93 78.34, 56.76 81.06 C49.58 83.77, 41.06 84.59, 33.64 83.05 C26.23 81.51, 17.73 77.12, 12.26 71.8 C6.8 66.48, 2.49 58.78, 0.85 51.11 C-0.79 43.45, -0.31 33.15, 2.4 25.81 C5.11 18.47, 10.48 11.46, 17.09 7.06 C23.71 2.66, 37.47 0.58, 42.09 -0.61 C46.71 -1.79, 44.68 -0.68, 44.81 -0.03 M33.64 1.51 C40.75 -0.38, 50.56 1.39, 58.13 4.04 C65.7 6.69, 74.3 11.35, 79.06 17.42 C83.82 23.48, 86.29 33, 86.69 40.43 C87.1 47.86, 85.59 55.78, 81.49 62 C77.39 68.21, 69.18 74.29, 62.09 77.72 C55 81.15, 46.5 83.04, 38.93 82.58 C31.35 82.11, 22.66 79.3, 16.63 74.91 C10.61 70.53, 5.26 63.28, 2.79 56.27 C0.32 49.27, 0.17 40.08, 1.81 32.88 C3.44 25.68, 7.3 18.34, 12.6 13.07 C17.91 7.8, 30.21 2.92, 33.65 1.27 C37.09 -0.39, 33.09 2.48, 33.22 3.13" stroke="none" stroke-width="0" fill="#ffa083"/>
|
||||
</g>
|
||||
<g transform="translate(76.07643441043956 422.0528801322546) rotate(0 16.850000381469727 9.200000000000003)">
|
||||
<text x="16.850000381469727" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">User</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(195.446750133568 450.28425963153353) rotate(0 43.181572564415546 41.8730400624635)">
|
||||
<path d="M63.23 4.48 C69.95 7.06, 75.94 13.65, 79.88 20.26 C83.83 26.87, 87.23 36.67, 86.92 44.13 C86.61 51.59, 82.7 58.99, 78.03 65.01 C73.35 71.03, 65.88 77.19, 58.85 80.27 C51.82 83.36, 43.34 84.65, 35.84 83.49 C28.35 82.33, 19.62 78.37, 13.87 73.32 C8.12 68.28, 3.39 60.81, 1.35 53.24 C-0.69 45.66, -0.69 35.33, 1.63 27.86 C3.96 20.38, 9.27 13.09, 15.31 8.38 C21.34 3.68, 29.24 0.04, 37.83 -0.37 C46.42 -0.77, 61.42 4.3, 66.83 5.94 C72.24 7.58, 70.75 8.81, 70.29 9.48 M48.4 1.62 C56.12 1.94, 66.14 5.41, 72.22 10.29 C78.31 15.16, 82.73 23.73, 84.92 30.85 C87.1 37.97, 87.77 46.12, 85.34 53.01 C82.91 59.89, 76.4 67.3, 70.34 72.18 C64.28 77.05, 56.47 80.95, 48.96 82.24 C41.45 83.52, 32.21 82.77, 25.26 79.89 C18.31 77.01, 11.37 71.2, 7.28 64.98 C3.19 58.76, 0.89 49.94, 0.72 42.56 C0.56 35.17, 2.4 27.01, 6.3 20.64 C10.2 14.27, 17.24 7.47, 24.12 4.33 C31 1.19, 43.6 2.31, 47.57 1.82 C51.53 1.33, 47.76 1, 47.92 1.39" stroke="none" stroke-width="0" fill="#ffa083"/>
|
||||
</g>
|
||||
<g transform="translate(221.74433953391645 482.8485891169331) rotate(0 16.850000381469727 9.200000000000003)">
|
||||
<text x="16.850000381469727" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">User</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(377.07124620331297 314.8532617533285) rotate(0 43.181572564415546 41.87304006246351)">
|
||||
<path d="M50.97 0.53 C58.32 1.43, 68.01 7.24, 73.6 12.37 C79.19 17.5, 82.94 24.15, 84.52 31.31 C86.11 38.46, 85.5 48.01, 83.11 55.33 C80.72 62.65, 76.12 70.38, 70.16 75.22 C64.2 80.06, 55.15 83.55, 47.35 84.36 C39.55 85.17, 30.39 83.8, 23.36 80.07 C16.34 76.34, 9.21 68.82, 5.19 61.97 C1.18 55.12, -1.07 46.45, -0.72 38.95 C-0.37 31.44, 2.66 23.09, 7.31 16.94 C11.96 10.8, 18.29 4.46, 27.18 2.09 C36.08 -0.28, 53.85 1.63, 60.67 2.72 C67.49 3.81, 68.35 7.94, 68.1 8.63 M53.37 1.24 C60.88 2.16, 68.66 8.12, 74.1 13.35 C79.54 18.58, 84.63 25.61, 85.99 32.62 C87.35 39.62, 85.2 48.41, 82.26 55.36 C79.32 62.32, 74.41 69.67, 68.36 74.35 C62.31 79.02, 53.59 82.67, 45.98 83.42 C38.38 84.16, 29.4 82.33, 22.74 78.81 C16.08 75.29, 9.85 68.76, 6.02 62.3 C2.19 55.84, -0.55 47.55, -0.25 40.03 C0.04 32.51, 3.32 23.2, 7.8 17.21 C12.29 11.22, 19.39 6.77, 26.66 4.09 C33.93 1.41, 47.13 1.58, 51.4 1.14 C55.66 0.69, 52.48 0.73, 52.26 1.41" stroke="none" stroke-width="0" fill="#ffa083"/>
|
||||
</g>
|
||||
<g transform="translate(403.3688356036614 347.4175912387281) rotate(0 16.850000381469727 9.2)">
|
||||
<text x="16.850000381469727" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">User</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(10 261.6301842620378) rotate(0 43.181572564415546 41.87304006246351)">
|
||||
<path d="M44.95 0.79 C52.33 0.32, 60.7 2.47, 66.88 6.55 C73.07 10.62, 78.88 18.11, 82.07 25.25 C85.27 32.39, 87.21 41.76, 86.06 49.38 C84.9 56.99, 80.44 65.29, 75.13 70.95 C69.82 76.61, 61.85 81.7, 54.21 83.36 C46.57 85.01, 36.84 83.55, 29.31 80.91 C21.78 78.27, 13.97 73.33, 9.01 67.52 C4.05 61.72, 0.33 53.58, -0.44 46.09 C-1.2 38.59, 0.87 29.36, 4.42 22.55 C7.97 15.73, 12.81 8.81, 20.86 5.18 C28.92 1.55, 45.99 0.93, 52.75 0.77 C59.51 0.6, 61.45 3.51, 61.43 4.19 M61 4.67 C67.94 6.92, 75.82 12.51, 79.81 18.44 C83.81 24.36, 85.09 32.77, 84.97 40.2 C84.85 47.62, 83.03 56.45, 79.09 63 C75.15 69.56, 68.21 76.08, 61.34 79.51 C54.46 82.93, 45.38 84.45, 37.84 83.57 C30.29 82.69, 22.12 78.92, 16.07 74.22 C10.02 69.51, 4.1 62.52, 1.56 55.32 C-0.99 48.12, -1.12 38.23, 0.8 31.02 C2.72 23.81, 7.28 17.1, 13.07 12.04 C18.85 6.99, 27.59 2.17, 35.53 0.7 C43.47 -0.78, 56.81 2.56, 60.7 3.2 C64.59 3.83, 59.17 3.99, 58.88 4.53" stroke="none" stroke-width="0" fill="#ffa083"/>
|
||||
</g>
|
||||
<g transform="translate(36.29758940034844 294.1945137474373) rotate(0 16.850000381469727 9.2)">
|
||||
<text x="16.850000381469727" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">User</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(98.71875979873312 307.5340681163887) rotate(0 32.680205096570035 3.49830712379638)">
|
||||
<path d="M0 0 C18.23 1.81, 34.99 3.35, 65.36 7" stroke="#ffa083" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(131.6741397291289 405.35073334978426) rotate(0 23.147124966747697 -15.918425252681539)">
|
||||
<path d="M0 0 C16.77 -11.61, 34.03 -22.46, 46.29 -31.84" stroke="#ffa083" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(244.01367285545393 446.9936182992437) rotate(0 -1.0993849600399699 -23.447938666200784)">
|
||||
<path d="M0 0 C-0.28 -14.15, -1.95 -30.49, -2.2 -46.9" stroke="#ffa083" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(373.6002476885583 345.95508052730673) rotate(0 -26.775894501999574 -6.031232097674884)">
|
||||
<path d="M0 0 C-17.27 -4.63, -32.17 -6.08, -53.55 -12.06" stroke="#ffa083" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round" transform="translate(17.148012893789655 84.62230053287573) rotate(0 65.8768637944188 63.42991303267446)">
|
||||
<path d="M37.48 5.31 C45.93 0.4, 58.24 -1.27, 68.37 -0.82 C78.49 -0.36, 89.35 3.1, 98.25 8.05 C107.14 12.99, 116.11 20.56, 121.72 28.84 C127.34 37.13, 131.01 47.77, 131.95 57.77 C132.9 67.77, 131.4 79.66, 127.38 88.82 C123.37 97.98, 115.78 106.53, 107.88 112.72 C99.98 118.91, 90.04 124.17, 79.98 125.96 C69.92 127.75, 57.57 126.33, 47.51 123.48 C37.45 120.62, 27.09 115.48, 19.64 108.82 C12.18 102.15, 5.92 92.68, 2.76 83.48 C-0.4 74.27, -1.06 63.17, 0.68 53.58 C2.42 43.99, 6.71 34.04, 13.22 25.95 C19.73 17.86, 34.8 8.53, 39.73 5.06 C44.67 1.59, 42.37 4.27, 42.81 5.12 M96.43 6.82 C105.41 10.31, 112.8 19.49, 118.62 27.46 C124.44 35.43, 129.92 44.7, 131.35 54.63 C132.79 64.57, 130.93 77.92, 127.22 87.07 C123.52 96.22, 116.46 103.43, 109.13 109.53 C101.79 115.63, 92.88 121.13, 83.22 123.67 C73.55 126.22, 61.22 126.93, 51.14 124.8 C41.05 122.67, 30.49 117.53, 22.7 110.88 C14.91 104.24, 8.17 93.97, 4.4 84.92 C0.63 75.87, -1.21 66.04, 0.09 56.58 C1.4 47.12, 6.44 36.36, 12.22 28.18 C17.99 20, 25.96 12.26, 34.74 7.49 C43.53 2.73, 54.43 -0.51, 64.91 -0.41 C75.39 -0.31, 92.44 6.5, 97.61 8.11 C102.77 9.73, 96.64 8.55, 95.89 9.3" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
</g>
|
||||
<g transform="translate(52.79289995734189 139.0004919300731) rotate(0 30.149999618530273 9.200000000000003)">
|
||||
<text x="30.149999618530273" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Instance</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(130.33296245699557 199.76165836821326) rotate(0 27.431722095257555 31.804895182907295)">
|
||||
<path d="M0 0 C12.65 14.25, 23.98 29.91, 54.86 63.61" stroke="#ff80b3" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round" transform="translate(299.8074014826675 91.91694725835794) rotate(0 65.87686379441902 63.42991303267446)">
|
||||
<path d="M37.02 5.85 C45.39 1.03, 58.24 -0.85, 68.57 -0.49 C78.91 -0.13, 90.1 2.92, 99.05 8.01 C107.99 13.1, 116.82 21.64, 122.26 30.04 C127.71 38.43, 130.87 48.64, 131.71 58.38 C132.55 68.13, 131.35 79.66, 127.31 88.51 C123.28 97.36, 115.63 105.41, 107.5 111.5 C99.37 117.59, 88.6 122.93, 78.53 125.05 C68.46 127.17, 56.79 126.8, 47.08 124.21 C37.37 121.61, 27.51 116.14, 20.26 109.48 C13.01 102.81, 6.78 93.58, 3.58 84.2 C0.37 74.83, -0.67 63.1, 1.04 53.23 C2.74 43.36, 6.95 33.28, 13.82 24.97 C20.69 16.66, 36.55 6.99, 42.25 3.39 C47.95 -0.22, 47.64 2.2, 48.01 3.35 M58.16 -0.52 C67.85 -2.37, 79.61 2.03, 89.04 5.49 C98.46 8.94, 107.65 13.27, 114.69 20.2 C121.73 27.12, 128.6 37.35, 131.26 47.06 C133.92 56.78, 133.28 68.74, 130.65 78.46 C128.02 88.19, 122.38 98.24, 115.47 105.43 C108.56 112.62, 98.84 118.01, 89.17 121.61 C79.5 125.2, 67.48 127.9, 57.45 126.99 C47.42 126.09, 37.4 121.87, 29.02 116.19 C20.63 110.52, 12.11 101.83, 7.14 92.94 C2.17 84.06, -1.07 72.6, -0.78 62.9 C-0.49 53.21, 3.97 43.24, 8.89 34.78 C13.81 26.32, 20.57 17.91, 28.73 12.16 C36.9 6.4, 52.82 2, 57.89 0.25 C62.95 -1.5, 58.97 0.59, 59.13 1.66" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
</g>
|
||||
<g transform="translate(335.45228854621973 146.29513865555532) rotate(0 30.149999618530273 9.200000000000003)">
|
||||
<text x="30.149999618530273" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Instance</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(155.81052696967527 149.04208107520648) rotate(0 68.34468724936437 2.670520078610892)">
|
||||
<path d="M0 0 C40.04 2.08, 79 3.41, 136.69 5.34" stroke="#ff80b3" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(297.0871079015392 258.7902818143921) rotate(0 13.292947909892064 -20.149300419218164)">
|
||||
<path d="M0 0 C8.72 -13.46, 18.61 -28.54, 26.59 -40.3" stroke="#ff80b3" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round" transform="translate(180.17911871151955 10) rotate(0 43.18157256441532 41.8730400624635)">
|
||||
<path d="M30.3 1.05 C37.1 -1.56, 46.65 -0.92, 54.19 1.13 C61.74 3.18, 70.23 7.74, 75.57 13.35 C80.91 18.96, 84.89 27.14, 86.23 34.79 C87.57 42.45, 86.75 52.24, 83.61 59.27 C80.46 66.3, 73.85 72.81, 67.37 76.96 C60.88 81.11, 52.55 84.22, 44.7 84.16 C36.85 84.09, 27.14 80.69, 20.28 76.57 C13.41 72.46, 6.93 66.15, 3.49 59.47 C0.05 52.78, -1.42 43.83, -0.35 36.45 C0.72 29.07, 4.49 20.93, 9.9 15.18 C15.31 9.42, 28.07 4.17, 32.11 1.91 C36.16 -0.35, 33.86 1.08, 34.15 1.59 M48 0.56 C55.66 0.63, 65.42 4.73, 71.27 9.62 C77.13 14.51, 80.88 22.8, 83.14 29.92 C85.4 37.04, 86.78 44.89, 84.83 52.33 C82.88 59.78, 77.39 69.64, 71.44 74.59 C65.49 79.53, 56.55 81.3, 49.14 82 C41.73 82.71, 33.87 81.72, 26.99 78.82 C20.12 75.91, 12.35 70.69, 7.91 64.57 C3.47 58.45, 0.57 49.8, 0.37 42.11 C0.16 34.41, 2.67 24.64, 6.69 18.39 C10.72 12.13, 17.37 7.45, 24.52 4.56 C31.67 1.66, 45.61 1.54, 49.6 1 C53.59 0.47, 48.81 0.83, 48.47 1.34" stroke="none" stroke-width="0" fill="#ffa083"/>
|
||||
</g>
|
||||
<g transform="translate(206.476708111868 42.56432948539958) rotate(0 16.8500003814695 9.199999999999989)">
|
||||
<text x="16.850000381469727" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">User</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(258.66057538988525 80.95176488887137) rotate(0 22.175136810002186 17.055950936410696)">
|
||||
<path d="M0 0 C14.7 12.2, 30.33 22.71, 44.35 34.11" stroke="#ffa083" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round" transform="translate(621.0930725376234 107.4005764770692) rotate(0 55.56231838939857 53.87861177153815)">
|
||||
<path d="M74.94 3.42 C83.43 5.73, 92.24 12.31, 98.17 19.14 C104.09 25.96, 108.96 35.46, 110.49 44.36 C112.02 53.26, 110.52 64.15, 107.36 72.54 C104.19 80.93, 98.7 88.96, 91.5 94.69 C84.3 100.43, 73.52 105.45, 64.15 106.97 C54.77 108.49, 43.76 106.92, 35.25 103.84 C26.73 100.75, 18.68 95.42, 13.05 88.47 C7.43 81.51, 3.01 71.1, 1.49 62.1 C-0.04 53.1, 0.87 42.9, 3.9 34.45 C6.93 26.01, 12.68 17.05, 19.67 11.43 C26.65 5.81, 36.1 1.86, 45.82 0.72 C55.54 -0.41, 72.47 3.6, 77.99 4.63 C83.51 5.65, 79.54 6.23, 78.94 6.89 M62.62 0.25 C71.5 0.72, 82.23 5.43, 89.64 10.82 C97.06 16.22, 103.43 24.27, 107.1 32.61 C110.78 40.95, 112.95 51.97, 111.7 60.85 C110.46 69.73, 105.22 78.81, 99.63 85.9 C94.04 93, 86.55 100.01, 78.16 103.42 C69.76 106.82, 58.56 107.36, 49.25 106.33 C39.94 105.3, 29.6 102.32, 22.27 97.25 C14.94 92.17, 9.08 84.34, 5.28 75.89 C1.48 67.43, -1.69 55.58, -0.55 46.51 C0.6 37.44, 6.24 28.65, 12.18 21.47 C18.11 14.28, 26.75 6.89, 35.07 3.4 C43.39 -0.09, 57.83 1.05, 62.12 0.52 C66.41 -0.01, 60.75 -0.62, 60.83 0.22" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(657.7918980524923 151.9812565040354) rotate(0 19.075000762939453 9.200000000000003)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(846.0050550609062 51.8730404270479) rotate(0 55.56231838939857 53.87861177153815)">
|
||||
<path d="M34.53 3.28 C42.45 -0.74, 54.36 -1.55, 63.55 -0.23 C72.75 1.08, 82.32 5.63, 89.7 11.17 C97.09 16.7, 104.46 24.6, 107.86 32.98 C111.26 41.36, 111.69 52.5, 110.13 61.46 C108.58 70.41, 104.11 79.57, 98.54 86.72 C92.97 93.86, 85.05 101, 76.69 104.33 C68.34 107.66, 57.61 108.11, 48.42 106.69 C39.23 105.28, 29.07 101.42, 21.56 95.83 C14.04 90.23, 6.93 81.41, 3.31 73.14 C-0.31 64.88, -1.68 54.95, -0.17 46.23 C1.34 37.52, 5.65 28.12, 12.39 20.84 C19.13 13.56, 34.71 5.84, 40.26 2.55 C45.82 -0.75, 45.38 0.27, 45.73 1.09 M33.46 4.78 C41.16 0.57, 52.3 -0.84, 61.56 0.14 C70.82 1.12, 81.63 5.43, 89.01 10.65 C96.39 15.86, 102.09 23.32, 105.86 31.42 C109.63 39.52, 112.45 50.44, 111.64 59.26 C110.84 68.08, 106.55 76.99, 101.02 84.32 C95.49 91.66, 86.82 99.28, 78.45 103.29 C70.09 107.29, 60.2 109.46, 50.82 108.36 C41.44 107.26, 29.63 102.11, 22.15 96.71 C14.67 91.31, 9.37 84.14, 5.95 75.95 C2.52 67.75, 0.85 56.46, 1.58 47.56 C2.32 38.66, 5.37 29.87, 10.35 22.53 C15.33 15.19, 27.49 6.34, 31.47 3.51 C35.45 0.69, 33.87 4.78, 34.22 5.57" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(882.7038805757752 96.4537204540141) rotate(0 19.075000762939453 9.200000000000003)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(833.7138547484324 200.1226669501092) rotate(0 55.56231838939857 53.878611771538154)">
|
||||
<path d="M54.38 -0.76 C63.19 -1.7, 73.81 1.96, 82.04 6.26 C90.26 10.55, 98.98 17.3, 103.75 25.01 C108.52 32.73, 110.7 43.52, 110.68 52.56 C110.66 61.61, 107.89 71.32, 103.6 79.28 C99.31 87.24, 92.58 95.68, 84.91 100.34 C77.24 105, 66.88 107.16, 57.59 107.23 C48.31 107.29, 37.59 105.09, 29.22 100.73 C20.86 96.38, 12.41 88.71, 7.42 81.11 C2.43 73.51, -0.7 63.93, -0.72 55.13 C-0.73 46.32, 2.82 36.07, 7.33 28.28 C11.84 20.49, 18.1 13.23, 26.36 8.4 C34.62 3.58, 51.06 0.46, 56.91 -0.66 C62.75 -1.79, 61.48 0.58, 61.45 1.64 M53.37 -0.07 C62.17 -1.17, 73.93 2.41, 82.03 6.49 C90.12 10.58, 96.98 16.97, 101.95 24.44 C106.92 31.91, 111.3 42.47, 111.86 51.32 C112.42 60.17, 109.67 69.52, 105.3 77.55 C100.94 85.58, 93.37 94.33, 85.65 99.5 C77.94 104.67, 68.43 108.34, 59.01 108.57 C49.59 108.8, 37.33 105.14, 29.13 100.86 C20.94 96.59, 14.48 90.49, 9.85 82.93 C5.22 75.37, 2 64.44, 1.36 55.5 C0.73 46.56, 2.25 37.34, 6.07 29.3 C9.89 21.27, 16.28 12.2, 24.27 7.3 C32.25 2.4, 49.42 1.16, 53.96 -0.1 C58.51 -1.36, 51.5 -1.32, 51.53 -0.25" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(870.4126802633014 244.7033469770754) rotate(0 19.075000762939453 9.199999999999996)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(1073.3714459553107 400.33351177821623) rotate(0 55.56231838939857 53.87861177153815)">
|
||||
<path d="M39.22 1.98 C47.51 -1.26, 59.9 -1.54, 68.88 0.55 C77.86 2.63, 86.57 8.26, 93.1 14.47 C99.62 20.67, 105.18 29.09, 108.02 37.76 C110.86 46.44, 112 57.79, 110.14 66.53 C108.29 75.26, 103.23 83.76, 96.88 90.18 C90.53 96.59, 81.14 102.45, 72.04 105.02 C62.94 107.58, 51.49 107.54, 42.29 105.58 C33.1 103.61, 23.43 99.19, 16.87 93.23 C10.3 87.26, 5.53 78.3, 2.91 69.8 C0.29 61.3, -0.74 51.12, 1.13 42.22 C2.99 33.31, 7.01 23.13, 14.09 16.36 C21.18 9.58, 38.2 3.99, 43.66 1.58 C49.11 -0.83, 46.65 0.98, 46.8 1.89 M57.1 0.5 C65.78 -0.23, 75.52 2.68, 83.46 7.16 C91.4 11.65, 100.08 19.69, 104.75 27.39 C109.43 35.1, 111.7 44.36, 111.49 53.39 C111.27 62.42, 108.11 73.52, 103.47 81.57 C98.84 89.62, 91.92 97.47, 83.68 101.68 C75.45 105.9, 63.28 107.11, 54.05 106.86 C44.83 106.61, 35.94 104.78, 28.34 100.21 C20.74 95.63, 13.21 87.22, 8.47 79.43 C3.73 71.64, 0.22 62.5, -0.12 53.47 C-0.45 44.44, 1.55 33.01, 6.45 25.23 C11.35 17.45, 21.25 11.22, 29.29 6.79 C37.32 2.35, 50.03 -0.58, 54.66 -1.38 C59.29 -2.19, 56.97 0.64, 57.09 1.94" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(1110.0702714701797 444.91419180518244) rotate(0 19.075000762939453 9.200000000000003)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(1076.4119815204372 121.34509575371601) rotate(0 55.56231838939857 53.87861177153815)">
|
||||
<path d="M35.24 3.16 C43.04 -0.75, 53.68 -0.86, 62.62 0.42 C71.56 1.7, 81.4 5.24, 88.87 10.82 C96.34 16.4, 103.7 25.61, 107.45 33.91 C111.2 42.21, 112.64 51.87, 111.37 60.62 C110.1 69.38, 105.73 79.39, 99.82 86.45 C93.92 93.51, 84.68 99.5, 75.93 102.97 C67.18 106.44, 56.32 108.31, 47.34 107.27 C38.36 106.24, 29.31 102.15, 22.06 96.74 C14.81 91.33, 7.56 83.3, 3.82 74.83 C0.08 66.36, -1.73 54.85, -0.39 45.91 C0.95 36.97, 5.43 28.38, 11.87 21.17 C18.31 13.97, 32.89 5.75, 38.23 2.68 C43.56 -0.39, 43.47 1.9, 43.89 2.76 M52.77 -0.28 C61.49 -1.51, 73.67 2.04, 82.01 6.07 C90.34 10.09, 97.93 16.27, 102.78 23.89 C107.64 31.51, 110.66 42.51, 111.14 51.8 C111.63 61.09, 110.12 71.85, 105.68 79.62 C101.23 87.39, 92.25 93.75, 84.47 98.42 C76.7 103.09, 67.91 107.26, 59.04 107.65 C50.16 108.03, 39.62 104.87, 31.22 100.75 C22.81 96.64, 13.99 90.59, 8.59 82.97 C3.18 75.34, -1.01 64.02, -1.22 54.99 C-1.44 45.97, 3.05 36.83, 7.29 28.84 C11.54 20.85, 16.44 11.71, 24.24 7.06 C32.04 2.4, 49.4 1.73, 54.11 0.92 C58.82 0.1, 52.42 1.51, 52.48 2.17" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(1113.1108070353062 165.92577578068222) rotate(0 19.075000762939453 9.200000000000003)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(734.7248496847219 359.3982089323207) rotate(0 55.56231838939857 53.878611771538154)">
|
||||
<path d="M45.42 0.76 C53.7 -1.43, 64.94 -0.37, 73.8 2.77 C82.65 5.92, 92.35 12.77, 98.55 19.63 C104.75 26.5, 109.43 35.24, 111.02 43.94 C112.62 52.64, 111.52 63.44, 108.12 71.83 C104.73 80.23, 97.91 88.49, 90.65 94.34 C83.39 100.19, 73.46 105.19, 64.54 106.94 C55.62 108.68, 45.77 107.76, 37.13 104.79 C28.49 101.82, 18.92 96.14, 12.72 89.11 C6.52 82.08, 1.48 71.48, -0.04 62.59 C-1.57 53.7, 0.4 44.07, 3.57 35.79 C6.74 27.51, 11.33 18.73, 18.95 12.9 C26.58 7.07, 43.64 2.72, 49.33 0.81 C55.02 -1.1, 52.99 0.5, 53.1 1.42 M65.44 0.7 C74.37 1.21, 84.16 5.46, 91.2 11.21 C98.23 16.96, 104.31 26.48, 107.65 35.21 C110.98 43.93, 112.89 54.89, 111.2 63.55 C109.52 72.22, 103.39 80.4, 97.55 87.18 C91.71 93.97, 84.45 101.1, 76.15 104.25 C67.86 107.41, 57.12 107.55, 47.79 106.11 C38.46 104.68, 27.76 101.4, 20.17 95.64 C12.59 89.89, 5.34 80.05, 2.28 71.59 C-0.79 63.14, 0.28 53.8, 1.77 44.91 C3.25 36.03, 5.3 25.06, 11.17 18.29 C17.04 11.53, 28.2 7.06, 36.99 4.31 C45.79 1.55, 59.18 2.28, 63.94 1.77 C68.7 1.25, 65.61 0.29, 65.55 1.23" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(771.4236751995909 403.9788889592869) rotate(0 19.075000762939453 9.2)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(892.5351695310005 188.01609981997137) rotate(0 1.2988473808027265 -8.420976433920842)">
|
||||
<path d="M0.13 -0.26 C0.52 -3.05, 2.36 -14.33, 2.72 -17.15" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(695.2878488944912 230.72428333596778) rotate(0 28.417713324169654 64.68732563403155)">
|
||||
<path d="M0.28 -0.67 C9.59 20.87, 46.56 106.88, 56.17 128.69" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(855.149639501165 427.6710511565692) rotate(0 99.733390846357 13.769149265977639)">
|
||||
<path d="M-0.67 -0.69 C32.71 4.14, 167.31 23.52, 200.54 28.31" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(933.6033948008958 312.30752722058173) rotate(0 72.19649747504172 47.26234016047354)">
|
||||
<path d="M1.07 0.78 C25.12 16.74, 119.55 79.49, 143.63 95.1" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(856.605242456943 315.2671431623975) rotate(0 -13.762062805582445 20.471127363937477)">
|
||||
<path d="M-0.76 0.57 C-5.33 7.25, -22.04 34.31, -26.36 40.86" stroke="#1971c2" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(1126.8094110115167 388.03578429933236) rotate(0 7.020792789252937 -75.32851299562428)">
|
||||
<path d="M1.17 -0.08 C3.77 -25.46, 12.74 -126.75, 14.89 -151.72" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(962.05105644278 248.5860443288454) rotate(0 58.51052511049147 -13.536829356526198)">
|
||||
<path d="M0.85 -1.07 C20.16 -5.44, 97.6 -21.79, 117.04 -26.32" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(742.4653003088874 144.5503163618182) rotate(0 46.504943433785684 -17.141046457743172)">
|
||||
<path d="M0.02 0.76 C15.45 -4.97, 77.79 -29.65, 93.44 -35.42" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 26 KiB |
@@ -0,0 +1,65 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 696.3195887720376 164.40567933133389" width="696.3195887720376" height="164.40567933133389">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(155.6647377174172 88.99766194007896) rotate(0 193.40433438988248 0.4302015039870071)">
|
||||
<path d="M-0.08 -1.08 C64.37 -1.16, 323.08 -0.79, 387.46 -0.27 M-1.58 0.97 C62.7 0.98, 322.41 0.78, 386.85 0.68" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(155.6647377174172 88.99766194007896) rotate(0 193.40433438988248 0.4302015039870071)">
|
||||
<path d="M0.09 -2 L12.44 -8.01 L14.83 6.96 L1.34 -3.02" stroke="none" stroke-width="0" fill="#8888ff" fill-rule="evenodd"/>
|
||||
<path d="M-0.08 -1.08 C3.51 -2.56, 8.4 -6.48, 13.52 -7.4 M-0.08 -1.08 C4.72 -3.17, 10.42 -5.91, 13.52 -7.4 M13.52 -7.4 C14.53 -3.08, 13.94 1.62, 13.51 5.28 M13.52 -7.4 C13.24 -2.59, 13.7 2.02, 13.51 5.28 M13.51 5.28 C11.31 3.44, 5.8 1.97, -0.08 -1.08 M13.51 5.28 C9.44 2.77, 4.34 0.94, -0.08 -1.08 M-0.08 -1.08 C-0.08 -1.08, -0.08 -1.08, -0.08 -1.08 M-0.08 -1.08 C-0.08 -1.08, -0.08 -1.08, -0.08 -1.08" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(155.6647377174172 88.99766194007896) rotate(0 193.40433438988248 0.4302015039870071)">
|
||||
<path d="M387.02 -0.25 L372.18 6.42 L374.57 -3.97 L388.27 -1.27" stroke="none" stroke-width="0" fill="#8888ff" fill-rule="evenodd"/>
|
||||
<path d="M386.85 0.68 C380.57 3.79, 375.55 4.49, 373.26 7.03 M386.85 0.68 C380.79 3.52, 375.62 5.85, 373.26 7.03 M373.26 7.03 C374.51 2.62, 373.91 -1.41, 373.25 -5.65 M373.26 7.03 C373.09 2.39, 373.55 -2.47, 373.25 -5.65 M373.25 -5.65 C378.3 -4.34, 379.94 -2.47, 386.85 0.68 M373.25 -5.65 C378.81 -3.41, 383.31 -0.75, 386.85 0.68 M386.85 0.68 C386.85 0.68, 386.85 0.68, 386.85 0.68 M386.85 0.68 C386.85 0.68, 386.85 0.68, 386.85 0.68" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(153.29403161629398 120.51076320358675) rotate(0 195.01077471920325 -33.28254065403456)">
|
||||
<path d="M0.65 -1.13 C21.95 -1.28, 80.34 7.51, 127.74 -1.99 C175.14 -11.49, 241.5 -47.46, 285.04 -58.12 C328.59 -68.78, 371.61 -64.61, 389.01 -65.97 M-0.47 0.89 C21.23 0.53, 82.66 6.18, 130.12 -3.49 C177.57 -13.15, 241.16 -46.3, 284.26 -57.09 C327.36 -67.88, 370.89 -66.77, 388.73 -68.22" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(153.29403161629398 120.51076320358675) rotate(0 195.01077471920325 -33.28254065403456)">
|
||||
<path d="M-0.43 -1.74 L15.82 -5.21 L15.38 3.83 L1.89 -0.6" stroke="none" stroke-width="0" fill="#ffa083" fill-rule="evenodd"/>
|
||||
<path d="M0.65 -1.13 C3.35 -3.7, 10.32 -4.63, 14.5 -6.89 M0.65 -1.13 C3.85 -2.51, 8.08 -4.83, 14.5 -6.89 M14.5 -6.89 C15 -2.9, 15.22 -0.02, 13.96 5.78 M14.5 -6.89 C14.51 -2.35, 13.83 2.78, 13.96 5.78 M13.96 5.78 C8.5 3.16, 4.92 0.85, 0.65 -1.13 M13.96 5.78 C11.65 4.65, 8.32 3.16, 0.65 -1.13 M0.65 -1.13 C0.65 -1.13, 0.65 -1.13, 0.65 -1.13 M0.65 -1.13 C0.65 -1.13, 0.65 -1.13, 0.65 -1.13" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(153.29403161629398 120.51076320358675) rotate(0 195.01077471920325 -33.28254065403456)">
|
||||
<path d="M387.64 -68.83 L376.76 -59.6 L376.28 -75.88 L389.97 -67.69" stroke="none" stroke-width="0" fill="#ffa083" fill-rule="evenodd"/>
|
||||
<path d="M388.73 -68.22 C383.35 -66.91, 382.36 -64.11, 375.43 -61.27 M388.73 -68.22 C384.91 -66.23, 382.23 -65.32, 375.43 -61.27 M375.43 -61.27 C375.7 -64.68, 375.91 -69.2, 374.86 -73.94 M375.43 -61.27 C375.51 -65.9, 374.83 -69.94, 374.86 -73.94 M374.86 -73.94 C379.5 -71.87, 385.9 -69.54, 388.73 -68.22 M374.86 -73.94 C378.16 -72.47, 380.31 -71.41, 388.73 -68.22 M388.73 -68.22 C388.73 -68.22, 388.73 -68.22, 388.73 -68.22 M388.73 -68.22 C388.73 -68.22, 388.73 -68.22, 388.73 -68.22" stroke="#ffa083" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(156.4921060642805 57.683615871721145) rotate(0 191.40055685780635 33.46045238299962)">
|
||||
<path d="M-0.64 1.19 C20.2 2.06, 79.16 -5.48, 125.71 4.1 C172.26 13.68, 235.93 48.17, 278.68 58.68 C321.43 69.19, 364.76 65.98, 382.21 67.17 M1.22 0.77 C21.84 1.9, 78.11 -3.96, 124.74 5.35 C171.38 14.66, 238.14 46.14, 281.04 56.65 C323.94 67.16, 365.29 66.91, 382.14 68.4" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(156.4921060642805 57.683615871721145) rotate(0 191.40055685780635 33.46045238299962)">
|
||||
<path d="M0.68 2.87 L14.23 -7.39 L14.32 7.77 L1.35 1.1" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M-0.64 1.19 C5.67 -1.13, 8.26 -4.69, 12.81 -5.44 M-0.64 1.19 C4.42 -1.86, 8.73 -2.8, 12.81 -5.44 M12.81 -5.44 C13.87 -2.21, 13.81 1.63, 13.08 7.24 M12.81 -5.44 C12.71 -0.97, 13.46 3.1, 13.08 7.24 M13.08 7.24 C10.03 5.7, 3.88 5.31, -0.64 1.19 M13.08 7.24 C8.96 5.78, 4.97 4.31, -0.64 1.19 M-0.64 1.19 C-0.64 1.19, -0.64 1.19, -0.64 1.19 M-0.64 1.19 C-0.64 1.19, -0.64 1.19, -0.64 1.19" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(156.4921060642805 57.683615871721145) rotate(0 191.40055685780635 33.46045238299962)">
|
||||
<path d="M383.47 70.08 L369.62 72.01 L370.17 61.83 L384.13 68.31" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M382.14 68.4 C378.65 70.25, 371.54 70.99, 368.2 73.95 M382.14 68.4 C377.57 69.67, 372.31 72.98, 368.2 73.95 M368.2 73.95 C369.29 69.67, 369.37 66.01, 368.93 61.3 M368.2 73.95 C368.15 70.49, 369.04 66.63, 368.93 61.3 M368.93 61.3 C373.44 63.48, 374.89 66.81, 382.14 68.4 M368.93 61.3 C372.5 63.45, 376.14 65.71, 382.14 68.4 M382.14 68.4 C382.14 68.4, 382.14 68.4, 382.14 68.4 M382.14 68.4 C382.14 68.4, 382.14 68.4, 382.14 68.4" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round" transform="translate(10 26.058957069921462) rotate(0 66 64)">
|
||||
<path d="M85.06 2.57 C94.54 4.44, 104.35 11.43, 111.55 18.31 C118.75 25.19, 124.92 34.48, 128.29 43.84 C131.65 53.2, 133.5 64.45, 131.74 74.47 C129.98 84.48, 124.18 96.07, 117.73 103.91 C111.28 111.74, 102.31 117.61, 93.04 121.49 C83.78 125.37, 72.42 127.75, 62.13 127.19 C51.84 126.63, 39.9 123.25, 31.28 118.15 C22.67 113.04, 15.48 104.79, 10.44 96.58 C5.39 88.36, 1.72 78.62, 1.01 68.84 C0.31 59.06, 2.05 47.14, 6.19 37.87 C10.33 28.6, 17.83 19.36, 25.83 13.22 C33.83 7.08, 42.99 2.31, 54.2 1.03 C65.4 -0.26, 85.36 3.88, 93.06 5.51 C100.75 7.13, 100.62 9.83, 100.36 10.76 M77.38 0.35 C87.27 1.63, 99.14 8.9, 107.26 15.43 C115.38 21.96, 121.79 30.51, 126.12 39.51 C130.45 48.51, 133.91 59.74, 133.24 69.42 C132.57 79.11, 127.98 89.37, 122.11 97.61 C116.24 105.84, 107.05 113.79, 98.02 118.84 C88.99 123.88, 77.84 127.22, 67.93 127.9 C58.02 128.57, 47.52 127.23, 38.59 122.88 C29.65 118.53, 20.63 110.04, 14.31 101.79 C7.99 93.54, 2.63 83.13, 0.68 73.39 C-1.26 63.64, -0.6 52.58, 2.63 43.34 C5.86 34.09, 12.61 24.87, 20.08 17.89 C27.55 10.91, 37.49 4.38, 47.45 1.46 C57.41 -1.46, 74.59 0.02, 79.84 0.36 C85.09 0.71, 79.18 2.11, 78.94 3.54" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(55.88095167874826 81.10412307398246) rotate(0 19.950000762939453 9.199999999999989)">
|
||||
<text x="19.950000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Calyx</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(554.3195887720376 26.405679331333886) rotate(0 66 64)">
|
||||
<path d="M56.2 0.41 C65.63 -1.9, 77.98 -0.24, 87.86 3.05 C97.74 6.33, 108.57 12.55, 115.49 20.12 C122.41 27.69, 126.98 38.88, 129.39 48.47 C131.8 58.06, 132.2 68.24, 129.93 77.66 C127.67 87.08, 122.55 97.49, 115.8 105 C109.05 112.5, 98.78 119.05, 89.44 122.69 C80.1 126.32, 69.63 127.62, 59.76 126.81 C49.88 126, 38.73 123.23, 30.2 117.83 C21.66 112.43, 13.45 103.32, 8.55 94.41 C3.66 85.49, 0.99 74.24, 0.82 64.34 C0.66 54.45, 3.22 43.85, 7.56 35.02 C11.9 26.2, 17.76 17.32, 26.86 11.39 C35.95 5.46, 55.05 1.21, 62.13 -0.58 C69.21 -2.38, 69.07 -0.45, 69.33 0.6 M42.51 5.45 C51.4 1.54, 63.16 0.38, 73.57 1.49 C83.97 2.59, 96.44 6.65, 104.93 12.08 C113.42 17.51, 120.25 25.47, 124.53 34.07 C128.81 42.67, 130.83 53.72, 130.61 63.67 C130.39 73.61, 127.67 84.75, 123.23 93.73 C118.78 102.72, 112.01 112.09, 103.92 117.55 C95.84 123.01, 84.98 125.69, 74.71 126.51 C64.45 127.34, 52.11 125.99, 42.32 122.5 C32.53 119.01, 22.67 112.83, 15.96 105.59 C9.25 98.34, 4.35 88.71, 2.06 79.02 C-0.24 69.33, -0.42 57.18, 2.19 47.46 C4.8 37.74, 10.91 27.74, 17.72 20.7 C24.53 13.66, 38.69 7.54, 43.07 5.23 C47.46 2.92, 43.65 6.17, 44.01 6.84" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(600.188041595195 81.45084533539489) rotate(0 19.962499618530273 9.199999999999989)">
|
||||
<text x="19.962499618530273" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Paxel</text>
|
||||
</g>
|
||||
<g transform="translate(273.816853053685 10) rotate(0 81.1624984741211 9.199999999999989)">
|
||||
<text x="0" y="0" fill="#8888ff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Multiplexed connection</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.3 KiB |
@@ -0,0 +1,34 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 604.3149966657938 100.14486226111859" width="604.3149966657938" height="100.14486226111859">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round" transform="translate(511.6656077284415 10.000000261262159) rotate(0 41.32469446867617 40.072430999928216)">
|
||||
<path d="M22.13 4.96 C28.19 1.45, 38.52 -0.28, 46.17 0.33 C53.82 0.94, 62.46 3.98, 68.05 8.6 C73.65 13.23, 77.56 21.09, 79.76 28.08 C81.97 35.07, 82.99 43.46, 81.29 50.53 C79.58 57.59, 75.09 65.74, 69.53 70.47 C63.98 75.2, 55.4 77.87, 47.96 78.91 C40.52 79.96, 31.72 79.37, 24.91 76.73 C18.09 74.1, 11.1 69.12, 7.07 63.12 C3.04 57.12, 0.99 47.97, 0.72 40.75 C0.45 33.52, 1.35 26.22, 5.46 19.78 C9.58 13.33, 21.71 4.98, 25.41 2.09 C29.12 -0.81, 27.54 1.73, 27.69 2.39 M22.35 3.48 C28.65 -0.2, 38.22 -1.99, 45.68 -1 C53.15 -0.02, 61.25 4.78, 67.12 9.39 C73 14, 78.59 20.02, 80.93 26.66 C83.28 33.31, 83.31 42.33, 81.21 49.27 C79.11 56.21, 73.83 63.49, 68.36 68.3 C62.88 73.11, 55.63 76.56, 48.36 78.12 C41.08 79.68, 31.52 80.39, 24.71 77.66 C17.9 74.93, 11.41 67.82, 7.49 61.77 C3.57 55.71, 1.61 48.27, 1.2 41.34 C0.79 34.42, 1.35 26.39, 5.05 20.23 C8.76 14.08, 20.6 7.14, 23.42 4.43 C26.25 1.71, 21.61 3.2, 22.02 3.94" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
</g>
|
||||
<g transform="translate(532.8068308893244 41.03694356251114) rotate(0 19.962499618530273 9.200000000000003)">
|
||||
<text x="19.962499618530273" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Paxel</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(102.39708639034416 49.61786066367563) rotate(0 199.40417245013805 0.40807994667591174)">
|
||||
<path d="M-0.19 0.45 C66.29 0.59, 332.53 0.04, 398.92 0.11 M-1.75 -0.36 C64.58 -0.02, 331.56 0.85, 398.03 1.27" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(102.39708639034416 49.61786066367563) rotate(0 199.40417245013805 0.40807994667591174)">
|
||||
<path d="M0.9 1.97 L13.06 -6.67 L14.38 6.88 L0.45 -0.86" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M-0.19 0.45 C4.51 -1.31, 7.15 -4.18, 13.4 -5.9 M-0.19 0.45 C4.04 -0.86, 7.42 -3.89, 13.4 -5.9 M13.4 -5.9 C12.24 -3.65, 14.23 0.41, 13.41 6.78 M13.4 -5.9 C12.76 -3.05, 13.28 -0.98, 13.41 6.78 M13.41 6.78 C8.25 4.72, 5.25 2.57, -0.19 0.45 M13.41 6.78 C7.61 3.75, 3.23 2.38, -0.19 0.45 M-0.19 0.45 C-0.19 0.45, -0.19 0.45, -0.19 0.45 M-0.19 0.45 C-0.19 0.45, -0.19 0.45, -0.19 0.45" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g transform="translate(201.32231328367652 12.874986951179523) rotate(0 103.75 9.200000000000003)">
|
||||
<text x="0" y="0" fill="#ff80b3" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Responder gossips static key</text>
|
||||
</g>
|
||||
<g transform="translate(300.39731309294166 61.591726416196025) rotate(0 4.675000190734863 9.599999999999994)">
|
||||
<text x="0" y="0" fill="#ff80b3" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">s</text>
|
||||
</g>
|
||||
<g stroke-opacity="0" fill-opacity="0" stroke-linecap="round" transform="translate(10 10) rotate(0 41.32469446867617 40.0724309999282)">
|
||||
<path d="M82.65 40.07 C82.65 41.97, 82.51 43.89, 82.23 45.78 C81.95 47.66, 81.53 49.54, 80.98 51.36 C80.42 53.19, 79.73 54.99, 78.91 56.72 C78.1 58.45, 77.15 60.14, 76.09 61.74 C75.03 63.34, 73.84 64.88, 72.56 66.31 C71.27 67.75, 69.87 69.11, 68.39 70.36 C66.91 71.6, 65.32 72.76, 63.67 73.78 C62.02 74.81, 60.27 75.73, 58.49 76.52 C56.71 77.31, 54.85 77.99, 52.97 78.52 C51.09 79.06, 49.15 79.47, 47.21 79.74 C45.27 80.01, 43.29 80.14, 41.32 80.14 C39.36 80.14, 37.38 80.01, 35.44 79.74 C33.5 79.47, 31.56 79.06, 29.68 78.52 C27.8 77.99, 25.94 77.31, 24.16 76.52 C22.37 75.73, 20.63 74.81, 18.98 73.78 C17.33 72.76, 15.74 71.6, 14.26 70.36 C12.78 69.11, 11.38 67.75, 10.09 66.31 C8.81 64.88, 7.62 63.34, 6.56 61.74 C5.5 60.14, 4.55 58.45, 3.73 56.72 C2.92 54.99, 2.23 53.19, 1.67 51.36 C1.12 49.54, 0.7 47.66, 0.42 45.78 C0.14 43.89, 0 41.97, 0 40.07 C0 38.17, 0.14 36.25, 0.42 34.37 C0.7 32.49, 1.12 30.61, 1.67 28.78 C2.23 26.96, 2.92 25.15, 3.73 23.43 C4.55 21.7, 5.5 20.01, 6.56 18.41 C7.62 16.81, 8.81 15.27, 10.09 13.83 C11.38 12.39, 12.78 11.03, 14.26 9.79 C15.74 8.54, 17.33 7.39, 18.98 6.36 C20.63 5.33, 22.37 4.41, 24.16 3.62 C25.94 2.83, 27.8 2.16, 29.68 1.62 C31.56 1.09, 33.5 0.68, 35.44 0.41 C37.38 0.14, 39.36 0, 41.32 0 C43.29 0, 45.27 0.14, 47.21 0.41 C49.15 0.68, 51.09 1.09, 52.97 1.62 C54.85 2.16, 56.71 2.83, 58.49 3.62 C60.27 4.41, 62.02 5.33, 63.67 6.36 C65.32 7.39, 66.91 8.54, 68.39 9.79 C69.87 11.03, 71.27 12.39, 72.56 13.83 C73.84 15.27, 75.03 16.81, 76.09 18.41 C77.15 20.01, 78.1 21.7, 78.91 23.43 C79.73 25.15, 80.42 26.96, 80.98 28.78 C81.53 30.61, 81.95 32.49, 82.23 34.37 C82.51 36.25, 82.58 39.12, 82.65 40.07 C82.72 41.02, 82.72 39.12, 82.65 40.07" stroke="none" stroke-width="0" fill="#1e1e1e"/>
|
||||
<path d="M82.65 40.07 C82.65 41.97, 82.51 43.89, 82.23 45.78 C81.95 47.66, 81.53 49.54, 80.98 51.36 C80.42 53.19, 79.73 54.99, 78.91 56.72 C78.1 58.45, 77.15 60.14, 76.09 61.74 C75.03 63.34, 73.84 64.88, 72.56 66.31 C71.27 67.75, 69.87 69.11, 68.39 70.36 C66.91 71.6, 65.32 72.76, 63.67 73.78 C62.02 74.81, 60.27 75.73, 58.49 76.52 C56.71 77.31, 54.85 77.99, 52.97 78.52 C51.09 79.06, 49.15 79.47, 47.21 79.74 C45.27 80.01, 43.29 80.14, 41.32 80.14 C39.36 80.14, 37.38 80.01, 35.44 79.74 C33.5 79.47, 31.56 79.06, 29.68 78.52 C27.8 77.99, 25.94 77.31, 24.16 76.52 C22.37 75.73, 20.63 74.81, 18.98 73.78 C17.33 72.76, 15.74 71.6, 14.26 70.36 C12.78 69.11, 11.38 67.75, 10.09 66.31 C8.81 64.88, 7.62 63.34, 6.56 61.74 C5.5 60.14, 4.55 58.45, 3.73 56.72 C2.92 54.99, 2.23 53.19, 1.67 51.36 C1.12 49.54, 0.7 47.66, 0.42 45.78 C0.14 43.89, 0 41.97, 0 40.07 C0 38.17, 0.14 36.25, 0.42 34.37 C0.7 32.49, 1.12 30.61, 1.67 28.78 C2.23 26.96, 2.92 25.15, 3.73 23.43 C4.55 21.7, 5.5 20.01, 6.56 18.41 C7.62 16.81, 8.81 15.27, 10.09 13.83 C11.38 12.39, 12.78 11.03, 14.26 9.79 C15.74 8.54, 17.33 7.39, 18.98 6.36 C20.63 5.33, 22.37 4.41, 24.16 3.62 C25.94 2.83, 27.8 2.16, 29.68 1.62 C31.56 1.09, 33.5 0.68, 35.44 0.41 C37.38 0.14, 39.36 0, 41.32 0 C43.29 0, 45.27 0.14, 47.21 0.41 C49.15 0.68, 51.09 1.09, 52.97 1.62 C54.85 2.16, 56.71 2.83, 58.49 3.62 C60.27 4.41, 62.02 5.33, 63.67 6.36 C65.32 7.39, 66.91 8.54, 68.39 9.79 C69.87 11.03, 71.27 12.39, 72.56 13.83 C73.84 15.27, 75.03 16.81, 76.09 18.41 C77.15 20.01, 78.1 21.7, 78.91 23.43 C79.73 25.15, 80.42 26.96, 80.98 28.78 C81.53 30.61, 81.95 32.49, 82.23 34.37 C82.51 36.25, 82.58 39.12, 82.65 40.07 C82.72 41.02, 82.72 39.12, 82.65 40.07" stroke="#ffffff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.8 KiB |
@@ -0,0 +1,74 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 604.3149977373096 312.38343077362174" width="604.3149977373096" height="312.38343077362174">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(100.76342687430133 51.66129650929588) rotate(0 199.81560347454388 0.04748986530546517)">
|
||||
<path d="M0.05 -1.04 C66.78 -1.24, 333.01 -0.87, 399.66 -0.81 M-1.39 1.03 C65.26 0.92, 331.94 0.38, 398.73 0.26" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(100.76342687430133 51.66129650929588) rotate(0 199.81560347454388 0.04748986530546517)">
|
||||
<path d="M398.38 -0.32 L383.98 7.21 L383.95 -6.41 L397.46 -1.23" stroke="none" stroke-width="0" fill="#8888ff" fill-rule="evenodd"/>
|
||||
<path d="M398.73 0.26 C394.24 1.8, 391.19 3.66, 385.14 6.62 M398.73 0.26 C395.29 2.22, 392.09 3.18, 385.14 6.62 M385.14 6.62 C384.7 3.03, 384.41 -2.84, 385.12 -6.06 M385.14 6.62 C384.69 3.58, 384.73 1.2, 385.12 -6.06 M385.12 -6.06 C389.09 -6.14, 391.55 -4, 398.73 0.26 M385.12 -6.06 C388.68 -3.8, 392.28 -2.44, 398.73 0.26 M398.73 0.26 C398.73 0.26, 398.73 0.26, 398.73 0.26 M398.73 0.26 C398.73 0.26, 398.73 0.26, 398.73 0.26" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round" transform="translate(10 10) rotate(0 41.32469446867617 40.0724309999282)">
|
||||
<path d="M24.4 4.33 C30.55 1.21, 38.57 0.38, 45.72 1.32 C52.86 2.27, 61.44 5.66, 67.26 10 C73.07 14.34, 78.37 20.58, 80.62 27.35 C82.86 34.13, 82.71 43.42, 80.72 50.64 C78.73 57.85, 74.23 65.84, 68.66 70.65 C63.1 75.46, 54.82 78.62, 47.33 79.51 C39.83 80.39, 30.54 78.9, 23.69 75.96 C16.85 73.01, 10.16 67.63, 6.28 61.83 C2.39 56.04, 0.44 48.45, 0.36 41.18 C0.28 33.91, 0.97 24.66, 5.79 18.23 C10.61 11.8, 24.31 5.33, 29.28 2.6 C34.24 -0.14, 35.41 1.25, 35.57 1.82 M30.46 0.14 C37.07 -2.44, 46.11 -1.71, 53.34 0.93 C60.57 3.56, 69.23 10.22, 73.83 15.96 C78.44 21.7, 80.39 28.34, 80.97 35.37 C81.54 42.4, 80.13 51.44, 77.31 58.15 C74.49 64.86, 70.31 72.15, 64.06 75.63 C57.81 79.11, 47.31 79.55, 39.83 79.02 C32.35 78.49, 25.4 76.47, 19.2 72.46 C13 68.46, 5.77 61.37, 2.63 54.99 C-0.5 48.6, -0.7 40.87, 0.39 34.14 C1.48 27.41, 4.4 20.08, 9.18 14.59 C13.95 9.1, 25.33 3.2, 29.03 1.21 C32.74 -0.78, 31.06 2.22, 31.42 2.67" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(31.153722016473694 41.03694330124898) rotate(0 19.950000762939453 9.199999999999989)">
|
||||
<text x="19.950000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Calyx</text>
|
||||
</g>
|
||||
<g transform="translate(281.69731516462343 63.60451130592071) rotate(0 23.375 9.599999999999994)">
|
||||
<text x="0" y="0" fill="#8888ff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">e, es</text>
|
||||
</g>
|
||||
<g transform="translate(200.85981363874453 23.140486194293203) rotate(0 104.2125015258789 9.199999999999989)">
|
||||
<text x="0" y="0" fill="#8888ff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Initiator sends ephemeral key</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(511.6656087999572 114.71541536112113) rotate(0 41.32469446867617 40.0724309999282)">
|
||||
<path d="M46.51 0.4 C53.43 0.6, 61.68 4.6, 67.52 9.23 C73.37 13.86, 79.3 21.06, 81.57 28.19 C83.84 35.33, 83.44 45.03, 81.16 52.04 C78.87 59.04, 73.41 65.45, 67.87 70.22 C62.33 74.99, 55.16 79.51, 47.93 80.65 C40.7 81.79, 31.3 80.28, 24.51 77.06 C17.71 73.85, 11.06 67.41, 7.14 61.37 C3.22 55.34, 1.07 48.07, 0.98 40.83 C0.89 33.6, 2.62 24.13, 6.59 17.97 C10.57 11.8, 17.4 6.49, 24.81 3.84 C32.21 1.19, 46.03 2.31, 51.02 2.06 C56.01 1.8, 54.8 1.89, 54.74 2.31 M40.21 -0.9 C47.21 -1.96, 56.32 1.23, 62.84 5.16 C69.36 9.09, 76.17 15.99, 79.32 22.68 C82.47 29.37, 82.6 38.24, 81.73 45.28 C80.86 52.32, 78.74 59.22, 74.09 64.91 C69.45 70.6, 61.01 77.07, 53.88 79.42 C46.74 81.76, 38.35 80.93, 31.29 79 C24.23 77.07, 16.64 72.91, 11.5 67.83 C6.35 62.75, 2.02 55.95, 0.41 48.51 C-1.19 41.07, -1.19 30.29, 1.86 23.18 C4.9 16.08, 12.3 9.98, 18.68 5.88 C25.06 1.78, 36.41 -0.75, 40.15 -1.4 C43.88 -2.05, 41.18 0.9, 41.09 1.98" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
</g>
|
||||
<g transform="translate(532.8068319608401 145.75235866237017) rotate(0 19.962499618530273 9.199999999999989)">
|
||||
<text x="19.962499618530273" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Paxel</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(100.76342313791156 158.20916508748223) rotate(0 199.81561527484928 0.04748986810994893)">
|
||||
<path d="M-0.3 -0.98 C66.17 -0.94, 333.25 0.61, 399.91 0.94 M1.74 1.12 C67.99 0.77, 332.91 -0.4, 399.1 -0.75" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(100.76342313791156 158.20916508748223) rotate(0 199.81561527484928 0.04748986810994893)">
|
||||
<path d="M-0.87 -1.53 L11.4 -8.34 L12.56 4.45 L-2.08 0.01" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M-0.3 -0.98 C3.71 -3.04, 11.27 -5.77, 13.32 -7.26 M-0.3 -0.98 C5.45 -3.57, 10.01 -5.92, 13.32 -7.26 M13.32 -7.26 C12.31 -4.02, 12.92 1.88, 13.26 5.42 M13.32 -7.26 C12.76 -3.66, 12.88 0.39, 13.26 5.42 M13.26 5.42 C8.39 3.52, 3.89 0.15, -0.3 -0.98 M13.26 5.42 C8.45 4.1, 4.88 1.01, -0.3 -0.98 M-0.3 -0.98 C-0.3 -0.98, -0.3 -0.98, -0.3 -0.98 M-0.3 -0.98 C-0.3 -0.98, -0.3 -0.98, -0.3 -0.98" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g transform="translate(187.98481363874453 128.2667250132248) rotate(0 117.0875015258789 9.199999999999989)">
|
||||
<text x="0" y="0" fill="#ff80b3" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Responder sends ephemeral key</text>
|
||||
</g>
|
||||
<g transform="translate(281.69731516462343 169.30075797223606) rotate(0 23.375 9.600000000000023)">
|
||||
<text x="0" y="0" fill="#ff80b3" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">e, ee</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(100.7634273953172 263.8998652830612) rotate(0 199.81560347454388 0.04748986530546517)">
|
||||
<path d="M0.88 0.5 C67.38 0.7, 332.69 1.35, 399.23 1.16 M-0.12 -0.29 C66.17 -0.39, 331.45 -0.5, 398.07 -0.41" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(100.7634273953172 263.8998652830612) rotate(0 199.81560347454388 0.04748986530546517)">
|
||||
<path d="M397.99 -0.98 L385.45 4.75 L384.57 -8.63 L399.86 0.97" stroke="none" stroke-width="0" fill="#8888ff" fill-rule="evenodd"/>
|
||||
<path d="M398.07 -0.41 C394.35 1.2, 390.72 4.29, 384.47 5.93 M398.07 -0.41 C394.8 1.7, 391.08 3.29, 384.47 5.93 M384.47 5.93 C384.1 2.51, 385.56 -1.43, 384.47 -6.75 M384.47 5.93 C385 3.5, 385.05 0.33, 384.47 -6.75 M384.47 -6.75 C386.35 -5.82, 388.87 -3.02, 398.07 -0.41 M384.47 -6.75 C388.13 -5.13, 390.59 -4.4, 398.07 -0.41 M398.07 -0.41 C398.07 -0.41, 398.07 -0.41, 398.07 -0.41 M398.07 -0.41 C398.07 -0.41, 398.07 -0.41, 398.07 -0.41" stroke="#8888ff" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round" transform="translate(10.000000521014954 222.23856877376534) rotate(0 41.32469446867617 40.0724309999282)">
|
||||
<path d="M51.52 0.65 C58.51 1.63, 65.09 6.43, 70.04 11.76 C75 17.08, 79.66 25.55, 81.24 32.59 C82.82 39.62, 82.16 47.43, 79.52 53.98 C76.88 60.54, 71.51 67.72, 65.4 71.94 C59.29 76.16, 50.18 78.79, 42.86 79.29 C35.53 79.79, 27.64 78.48, 21.45 74.96 C15.26 71.44, 9.23 64.43, 5.72 58.17 C2.21 51.91, -0.05 44.4, 0.39 37.39 C0.83 30.38, 3.8 21.99, 8.37 16.1 C12.94 10.21, 20.18 4.48, 27.79 2.04 C35.4 -0.39, 49.08 1.1, 54.06 1.5 C59.04 1.9, 57.86 3.75, 57.68 4.44 M26.04 4.72 C32.61 1.18, 41.7 -0.68, 48.95 0.09 C56.19 0.86, 64.31 4.55, 69.53 9.33 C74.75 14.11, 78.24 21.45, 80.27 28.77 C82.3 36.08, 83.78 46.14, 81.72 53.24 C79.65 60.33, 73.77 67.04, 67.85 71.36 C61.94 75.68, 53.58 78.51, 46.24 79.18 C38.91 79.84, 30.38 78.31, 23.86 75.36 C17.33 72.42, 11.31 67.72, 7.1 61.5 C2.9 55.28, -1.3 45.44, -1.34 38.06 C-1.39 30.68, 2.26 23.22, 6.85 17.21 C11.45 11.21, 23.45 4.03, 26.25 2.01 C29.06 0, 23.79 4.19, 23.69 5.12" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(31.153722537488648 253.27551207501426) rotate(0 19.950000762939453 9.199999999999989)">
|
||||
<text x="19.950000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Calyx</text>
|
||||
</g>
|
||||
<g transform="translate(219.95981211286562 228.74933994380604) rotate(0 85.11250305175781 9.199999999999989)">
|
||||
<text x="0" y="0" fill="#8888ff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Initiator sends static key</text>
|
||||
</g>
|
||||
<g transform="translate(281.69731516462343 278.9833729028172) rotate(0 23.375 9.600000000000023)">
|
||||
<text x="0" y="0" fill="#8888ff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">s, se</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.1 KiB |
@@ -0,0 +1,188 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 753.925211100468 540.8248741260445" width="753.925211100468" height="540.8248741260445">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round" transform="translate(9.999999999999545 88.74726524195785) rotate(0 58.486854893352984 56.71452595719077)">
|
||||
<path d="M56.44 1 C64.91 0.1, 76.22 2.89, 84.54 6.62 C92.87 10.35, 101.04 16.41, 106.39 23.38 C111.75 30.35, 115.38 39.8, 116.67 48.44 C117.96 57.07, 117.31 66.91, 114.13 75.19 C110.95 83.46, 104.41 92.01, 97.6 98.1 C90.78 104.19, 81.97 109.51, 73.23 111.74 C64.49 113.97, 54.1 113.48, 45.17 111.49 C36.24 109.5, 26.34 105.43, 19.65 99.82 C12.96 94.22, 8.33 86.12, 5.03 77.88 C1.73 69.63, -0.89 59.01, -0.16 50.37 C0.58 41.73, 4.22 33.13, 9.45 26.02 C14.67 18.91, 22.71 11.92, 31.2 7.7 C39.7 3.47, 54.7 1.55, 60.41 0.69 C66.12 -0.17, 65.36 1.74, 65.47 2.51 M67 1.94 C75.4 2.6, 86.03 6.8, 93.45 12.07 C100.87 17.35, 107.86 25.83, 111.54 33.57 C115.22 41.31, 115.92 49.79, 115.54 58.51 C115.15 67.24, 113.39 78.29, 109.23 85.91 C105.07 93.53, 98.35 99.73, 90.6 104.23 C82.85 108.73, 71.98 112.36, 62.74 112.92 C53.51 113.48, 43.51 111.13, 35.2 107.59 C26.89 104.04, 18.75 98.04, 12.88 91.63 C7.02 85.23, 1.95 77.72, 0.01 69.15 C-1.93 60.58, -1.66 48.95, 1.24 40.23 C4.14 31.51, 11.13 23.11, 17.41 16.83 C23.69 10.55, 30.68 5.43, 38.92 2.53 C47.16 -0.37, 62.24 -0.66, 66.83 -0.59 C71.43 -0.52, 66.7 1.58, 66.51 2.95" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(49.55540242504958 136.15856530303847) rotate(0 19.075000762939453 9.199999999999989)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(310.28878912904247 10) rotate(0 58.486854893352984 56.71452595719077)">
|
||||
<path d="M61.62 0.69 C70.49 0.11, 81.1 3.45, 88.94 7.8 C96.78 12.14, 103.93 19.34, 108.68 26.78 C113.43 34.21, 116.98 43.64, 117.44 52.41 C117.9 61.18, 115.28 71.25, 111.44 79.42 C107.61 87.59, 101.54 96.02, 94.44 101.44 C87.35 106.86, 77.88 110.35, 68.88 111.93 C59.88 113.51, 48.9 113.38, 40.44 110.9 C31.98 108.42, 24.49 103.33, 18.13 97.05 C11.76 90.78, 5.17 81.53, 2.25 73.25 C-0.67 64.97, -1.21 55.81, 0.61 47.37 C2.43 38.93, 7.7 29.56, 13.15 22.62 C18.6 15.67, 23.87 9.14, 33.31 5.7 C42.75 2.27, 62.57 2.37, 69.79 2.02 C77.02 1.67, 76.82 2.7, 76.65 3.59 M54.5 0.79 C63.22 -0.59, 74.38 2.66, 82.46 6.03 C90.54 9.4, 97.38 14.18, 102.98 21.02 C108.59 27.86, 114.03 38.41, 116.08 47.06 C118.13 55.71, 118.03 64.71, 115.29 72.91 C112.54 81.12, 106.2 90.22, 99.61 96.31 C93.03 102.41, 84.42 106.95, 75.8 109.5 C67.18 112.05, 56.97 112.77, 47.92 111.62 C38.86 110.48, 28.74 107.99, 21.45 102.64 C14.16 97.29, 7.55 87.82, 4.17 79.54 C0.79 71.26, 0.66 61.69, 1.17 52.97 C1.67 44.24, 2.93 34.87, 7.22 27.21 C11.52 19.54, 19.23 11.31, 26.94 6.98 C34.65 2.64, 49.06 1.95, 53.49 1.21 C57.92 0.47, 53.11 1.66, 53.53 2.56" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(349.8441915540925 57.411300061080624) rotate(0 19.075000762939453 9.199999999999989)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(267.34634286154414 206.64682956755274) rotate(0 58.486854893352984 56.71452595719077)">
|
||||
<path d="M86.8 6.61 C94.85 9.69, 102.28 17.53, 107.35 24.76 C112.43 32, 116.39 41.28, 117.23 50.03 C118.07 58.77, 115.88 68.9, 112.4 77.22 C108.92 85.53, 103.2 94.21, 96.35 99.92 C89.5 105.62, 80.22 109.5, 71.3 111.44 C62.38 113.38, 51.38 113.68, 42.81 111.56 C34.25 109.43, 26.54 104.71, 19.91 98.7 C13.29 92.7, 6.33 83.68, 3.04 75.52 C-0.24 67.36, -1.21 58.23, 0.23 49.73 C1.66 41.23, 6.53 31.7, 11.68 24.54 C16.82 17.37, 23.1 10.66, 31.08 6.74 C39.07 2.82, 50.16 0.93, 59.6 1 C69.03 1.07, 82.82 5.65, 87.67 7.17 C92.52 8.69, 89.21 9.32, 88.71 10.11 M81.4 5.58 C89.47 7.85, 96.52 13.42, 102.26 20.15 C108 26.88, 113.63 37.34, 115.86 45.96 C118.08 54.57, 118.19 63.58, 115.62 71.84 C113.04 80.1, 106.87 89.29, 100.42 95.51 C93.97 101.73, 85.46 106.43, 76.9 109.15 C68.34 111.87, 58.14 112.78, 49.05 111.81 C39.97 110.84, 29.77 108.53, 22.37 103.32 C14.97 98.11, 8.21 88.76, 4.66 80.56 C1.12 72.35, 0.78 62.82, 1.11 54.09 C1.44 45.36, 2.5 35.93, 6.64 28.17 C10.78 20.42, 18.34 12.05, 25.96 7.57 C33.58 3.09, 43.34 1.6, 52.34 1.29 C61.34 0.99, 75.06 4.93, 79.95 5.76 C84.84 6.59, 81.9 5.43, 81.68 6.28" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(306.9017452865942 254.05812962863348) rotate(0 19.075000762939453 9.199999999999989)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(519.6183712310744 417.395822211663) rotate(0 58.486854893352984 56.71452595719077)">
|
||||
<path d="M75.92 2.09 C84.44 3.68, 93.95 9.59, 100.27 15.79 C106.58 21.98, 111.2 30.73, 113.79 39.26 C116.37 47.78, 117.35 58.31, 115.77 66.93 C114.19 75.55, 109.96 84.09, 104.31 90.98 C98.65 97.88, 89.89 104.58, 81.85 108.32 C73.8 112.06, 65.01 114, 56.03 113.42 C47.05 112.84, 35.93 109.24, 27.97 104.83 C20 100.41, 12.75 94.2, 8.25 86.91 C3.75 79.62, 1.65 69.85, 0.96 61.07 C0.26 52.3, 0.49 42.24, 4.08 34.26 C7.67 26.29, 15.23 18.83, 22.5 13.21 C29.76 7.59, 37.71 1.82, 47.67 0.55 C57.63 -0.72, 75.66 4.31, 82.24 5.56 C88.82 6.81, 87.46 7.35, 87.15 8.05 M70.15 0.91 C78.72 1.9, 89.39 8.72, 96.65 14.45 C103.91 20.18, 110.45 27.32, 113.71 35.29 C116.98 43.26, 117.39 53.69, 116.25 62.29 C115.1 70.88, 111.84 79.65, 106.84 86.87 C101.83 94.08, 94.34 100.96, 86.24 105.57 C78.15 110.18, 67.48 114.36, 58.29 114.55 C49.09 114.74, 38.8 110.93, 31.09 106.69 C23.37 102.46, 17.25 96.23, 11.98 89.13 C6.71 82.04, 1.07 72.93, -0.53 64.1 C-2.13 55.27, -0.66 44.17, 2.39 36.15 C5.44 28.13, 11.12 21.48, 17.77 15.98 C24.42 10.49, 33.18 5.48, 42.3 3.19 C51.42 0.89, 67.69 2.12, 72.47 2.22 C77.26 2.31, 71.53 2.86, 71 3.76" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(559.1737736561245 464.80712227274375) rotate(0 19.075000762939453 9.200000000000003)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(626.9515013137625 262.27202836953) rotate(0 58.486854893352984 56.71452595719077)">
|
||||
<path d="M51.12 -0.14 C59.41 -2.1, 69.53 -0.12, 77.91 3.01 C86.28 6.14, 95.24 12.21, 101.37 18.67 C107.5 25.12, 112.48 33.3, 114.69 41.76 C116.9 50.22, 116.46 60.75, 114.63 69.41 C112.8 78.07, 109.54 87.17, 103.7 93.74 C97.86 100.32, 88.22 105.55, 79.61 108.88 C71 112.22, 60.82 114.49, 52.03 113.78 C43.24 113.06, 34.5 109.48, 26.85 104.59 C19.2 99.71, 10.58 92.13, 6.15 84.47 C1.72 76.8, 0.26 67.55, 0.27 58.59 C0.29 49.63, 2.14 38.59, 6.24 30.72 C10.33 22.85, 15.98 16.58, 24.84 11.36 C33.71 6.14, 52.05 0.99, 59.44 -0.59 C66.82 -2.18, 69.08 0.76, 69.16 1.83 M80.11 4.78 C88.81 7.09, 97.87 12.8, 103.7 19.27 C109.52 25.74, 113.22 35.17, 115.06 43.59 C116.9 52.01, 117.01 61.38, 114.74 69.78 C112.47 78.18, 107.68 87.11, 101.43 94 C95.19 100.9, 85.93 108.11, 77.28 111.15 C68.63 114.19, 58.14 113.71, 49.53 112.24 C40.93 110.78, 33.04 107.41, 25.66 102.36 C18.27 97.32, 9.69 89.94, 5.24 81.98 C0.78 74.02, -1.18 63.12, -1.07 54.58 C-0.96 46.04, 1.58 38.02, 5.88 30.74 C10.17 23.46, 16.81 15.83, 24.69 10.89 C32.58 5.95, 44.02 2.06, 53.19 1.11 C62.36 0.16, 75.48 4.43, 79.72 5.2 C83.96 5.97, 78.98 5.25, 78.64 5.71" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(666.5069037388125 309.68332843061074) rotate(0 19.075000762939453 9.199999999999989)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(163.14702679586935 374.3058794777371) rotate(0 58.486854893352984 56.71452595719077)">
|
||||
<path d="M46.1 0.82 C54.21 -1.55, 65.53 0.01, 74.26 2.39 C82.99 4.78, 92.02 9.11, 98.48 15.13 C104.94 21.16, 109.93 30.11, 113.04 38.53 C116.14 46.96, 118.44 57.09, 117.09 65.69 C115.74 74.28, 110.52 82.93, 104.91 90.07 C99.31 97.21, 91.4 104.52, 83.45 108.52 C75.5 112.53, 66.35 114.43, 57.19 114.1 C48.02 113.77, 36.42 110.87, 28.46 106.56 C20.5 102.24, 14.15 95.78, 9.44 88.2 C4.72 80.62, 0.92 69.86, 0.16 61.07 C-0.59 52.29, 1.41 43.62, 4.92 35.49 C8.42 27.37, 13.13 18.2, 21.2 12.31 C29.26 6.43, 47.02 2, 53.32 0.16 C59.62 -1.68, 58.9 0.46, 58.99 1.27 M49.19 0.43 C57.43 -2.04, 67.39 -0.18, 75.82 2.34 C84.25 4.87, 93.38 9.42, 99.77 15.57 C106.16 21.72, 111.65 30.45, 114.15 39.26 C116.66 48.06, 116.6 59.74, 114.78 68.41 C112.96 77.08, 108.48 84.7, 103.22 91.29 C97.96 97.89, 91.52 104.4, 83.24 108.01 C74.95 111.61, 62.91 113.64, 53.51 112.93 C44.11 112.21, 34.59 108.09, 26.85 103.74 C19.1 99.39, 11.71 93.95, 7.04 86.85 C2.37 79.74, -1.03 69.92, -1.17 61.1 C-1.3 52.27, 2.3 41.91, 6.23 33.91 C10.17 25.9, 15.57 18.47, 22.42 13.08 C29.28 7.69, 43.05 3.61, 47.37 1.55 C51.7 -0.51, 48.17 0.13, 48.37 0.73" stroke="none" stroke-width="0" fill="#8888ff"/>
|
||||
</g>
|
||||
<g transform="translate(202.70242922091984 421.71717953881785) rotate(0 19.075000762939453 9.200000000000003)">
|
||||
<text x="19.075000762939453" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g mask="url(#mask-zSxwzdfp1ECJoq_7zknET)" stroke-linecap="round">
|
||||
<g transform="translate(136.60364791299253 130.03104577778868) rotate(0 80.93565039496934 -22.009112556096625)">
|
||||
<path d="M0.73 0.84 C27.57 -6.55, 135.12 -37.11, 161.83 -44.48 M-0.34 0.24 C26.27 -6.99, 133.56 -35.57, 160.86 -43.18" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(136.60364791299253 130.03104577778868) rotate(0 80.93565039496934 -22.009112556096625)">
|
||||
<path d="M161.63 -43.32 L148.66 -31.93 L147.43 -43.83 L160.51 -43.86" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M160.86 -43.18 C157.71 -39.62, 151.9 -37.12, 149.4 -33.5 M160.86 -43.18 C156.54 -39.95, 152.9 -36.07, 149.4 -33.5 M149.4 -33.5 C148.56 -38.35, 147.9 -42.13, 146.08 -45.73 M149.4 -33.5 C147.97 -38.26, 146.84 -42.88, 146.08 -45.73 M146.08 -45.73 C151.32 -45.07, 154.66 -43.3, 160.86 -43.18 M146.08 -45.73 C149.09 -45.7, 151.52 -44.46, 160.86 -43.18 M160.86 -43.18 C160.86 -43.18, 160.86 -43.18, 160.86 -43.18 M160.86 -43.18 C160.86 -43.18, 160.86 -43.18, 160.86 -43.18" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask-zSxwzdfp1ECJoq_7zknET">
|
||||
<rect x="0" y="0" fill="#fff" width="398.47494870293104" height="274.0492708899819"/>
|
||||
<rect x="200.25179792649215" y="98.821933221692" fill="#000" width="34.57500076293945" height="18.4" opacity="1"/>
|
||||
</mask>
|
||||
<g transform="translate(200.25179792649215 98.821933221692) rotate(0 17.09504276057214 9.390390547365001)">
|
||||
<text x="17.287500381469727" y="0" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">fetch</text>
|
||||
</g>
|
||||
<g mask="url(#mask-8edb0N0xMd1y8xEyjyNZy)" stroke-linecap="round">
|
||||
<g transform="translate(613.5568552447585 310.90467441845533) rotate(0 -106.70178824522327 -23.18423847249062)">
|
||||
<path d="M-0.04 -0.46 C-35.88 -8.22, -178.7 -37.98, -214.28 -45.75 M-1.52 -1.75 C-37.05 -9.94, -176.55 -40.14, -212.02 -47.54" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(613.5568552447585 310.90467441845533) rotate(0 -106.70178824522327 -23.18423847249062)">
|
||||
<path d="M-0.78 1.11 L-13.3 4.84 L-12.39 -10.15 L-0.11 0.61" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M-0.04 -0.46 C-5.87 -0.33, -9.79 1.84, -14.65 2.94 M-0.04 -0.46 C-3.46 0.7, -6.56 1.4, -14.65 2.94 M-14.65 2.94 C-13.01 0.17, -12.41 -3.14, -12.04 -9.47 M-14.65 2.94 C-14.04 -0.28, -13.13 -3.27, -12.04 -9.47 M-12.04 -9.47 C-9 -5.37, -4.69 -3.71, -0.04 -0.46 M-12.04 -9.47 C-7.88 -5.44, -2.83 -2.06, -0.04 -0.46 M-0.04 -0.46 C-0.04 -0.46, -0.04 -0.46, -0.04 -0.46 M-0.04 -0.46 C-0.04 -0.46, -0.04 -0.46, -0.04 -0.46" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask-8edb0N0xMd1y8xEyjyNZy">
|
||||
<rect x="0" y="0" fill="#fff" width="926.960431735205" height="457.27315136343657"/>
|
||||
<rect x="489.5675666180655" y="278.5204359459647" fill="#000" width="34.57500076293945" height="18.4" opacity="1"/>
|
||||
</mask>
|
||||
<g transform="translate(489.5675666180655 278.5204359459646) rotate(0 16.829612234980004 8.38330388026776)">
|
||||
<text x="17.287500381469727" y="0" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">fetch</text>
|
||||
</g>
|
||||
<g mask="url(#mask-EoBwFsRtk4rVGTzQtcBdH)" stroke-linecap="round">
|
||||
<g transform="translate(337.4337469730767 194.7486705293428) rotate(0 8.315885347008134 -30.177537520577005)">
|
||||
<path d="M-0.87 0.62 C1.89 -9.48, 13.67 -50.88, 16.52 -61.07" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask-EoBwFsRtk4rVGTzQtcBdH">
|
||||
<rect x="0" y="0" fill="#fff" width="454.065517667093" height="355.1037455704968"/>
|
||||
<rect x="322.68713232008486" y="155.3711330087658" fill="#000" width="46.125" height="18.4" opacity="1"/>
|
||||
</mask>
|
||||
<g transform="translate(322.68713232008486 155.3711330087658) rotate(0 22.567419198900552 9.154650124162401)">
|
||||
<text x="23.0625" y="0" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">gossip</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(93.16964826070762 217.08136793988575) rotate(0 42.225571594457506 80.38758103934502)">
|
||||
<path d="M-0.12 -0.71 C14.03 25.95, 69.88 133.6, 84 160.61" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g mask="url(#mask-FX5PDo1N7GMKcZQ1J8pW_)" stroke-linecap="round">
|
||||
<g transform="translate(198.8371034355505 357.69961233492484) rotate(0 -41.43001101616528 -78.43234415949462)">
|
||||
<path d="M-0.45 -0.17 C-14.21 -26.1, -69.09 -130.23, -82.68 -156.29 M1.51 -1.3 C-12.38 -27.52, -69.56 -131.89, -83.54 -158.1" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(198.8371034355505 357.69961233492484) rotate(0 -41.43001101616528 -78.43234415949462)">
|
||||
<path d="M-83.61 -157.04 L-71.27 -151.13 L-80.65 -143.47 L-82.35 -157.33" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M-83.54 -158.1 C-80.3 -155.24, -75.87 -151.82, -71.49 -149.17 M-83.54 -158.1 C-79.75 -154.58, -75.3 -151.65, -71.49 -149.17 M-71.49 -149.17 C-75.52 -147.31, -79.28 -144.79, -82.64 -143.13 M-71.49 -149.17 C-74.44 -148.12, -77.01 -146.55, -82.64 -143.13 M-82.64 -143.13 C-83.7 -148.08, -82.49 -151.25, -83.54 -158.1 M-82.64 -143.13 C-83.06 -147.27, -83.31 -152.42, -83.54 -158.1 M-83.54 -158.1 C-83.54 -158.1, -83.54 -158.1, -83.54 -158.1 M-83.54 -158.1 C-83.54 -158.1, -83.54 -158.1, -83.54 -158.1" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask-FX5PDo1N7GMKcZQ1J8pW_">
|
||||
<rect x="0" y="0" fill="#fff" width="381.69712546788105" height="614.5643006539141"/>
|
||||
<rect x="140.11959203791548" y="270.06726817543023" fill="#000" width="34.57500076293945" height="18.4" opacity="1"/>
|
||||
</mask>
|
||||
<g transform="translate(140.11959203791548 270.0672681754301) rotate(0 17.704039723677624 8.497149785035276)">
|
||||
<text x="17.287500381469727" y="0" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">fetch</text>
|
||||
</g>
|
||||
<g mask="url(#mask-KQWjxgPB8cljw5SK97v7v)" stroke-linecap="round">
|
||||
<g transform="translate(289.9104054978775 446.172279802175) rotate(0 104.98288277988581 14.493891876149746)">
|
||||
<path d="M0.18 0.58 C35.39 5.5, 175.92 24.58, 210.81 29.38" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
<g transform="translate(289.9104054978775 446.172279802175) rotate(0 104.98288277988581 14.493891876149746)">
|
||||
<path d="M210.75 28.47 L194.79 34.81 L197.2 21.67 L211.69 27.5" stroke="none" stroke-width="0" fill="#8888ff" fill-rule="evenodd"/>
|
||||
<path d="M210.81 29.38 C207.77 31.62, 203.77 31.12, 196.48 33.82 M196.48 33.82 C197.53 30.54, 198 24.68, 198.2 21.26 M198.2 21.26 C201.11 24.05, 204.59 26.71, 210.81 29.38 M210.81 29.38 C210.81 29.38, 210.81 29.38, 210.81 29.38" stroke="#8888ff" stroke-width="1.5" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask-KQWjxgPB8cljw5SK97v7v">
|
||||
<rect x="0" y="0" fill="#fff" width="599.8761710576491" height="575.1600635544745"/>
|
||||
<rect x="371.83078827776353" y="451.46617167832477" fill="#000" width="46.125" height="18.4" opacity="1"/>
|
||||
</mask>
|
||||
<g transform="translate(371.83078827776353 451.4661716783249) rotate(0 23.571635607629787 9.684915908426035)">
|
||||
<text x="23.0625" y="0" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">gossip</text>
|
||||
</g>
|
||||
<g mask="url(#mask-yMAqHfG9whOVzOfrKMWlb)" stroke-linecap="round">
|
||||
<g transform="translate(371.38774017152673 324.73656797418676) rotate(0 75.99657814920738 49.75000523760215)">
|
||||
<path d="M0.84 0.39 C26.06 16.94, 126.36 83.23, 151.5 99.9" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
<g transform="translate(371.38774017152673 324.73656797418676) rotate(0 75.99657814920738 49.75000523760215)">
|
||||
<path d="M-0.84 1.38 L14.69 3 L9.58 11.29 L0.69 2.17" stroke="none" stroke-width="0" fill="#8888ff" fill-rule="evenodd"/>
|
||||
<path d="M0.84 0.39 C6.01 0.37, 10.69 1.31, 15.68 2.59 M15.68 2.59 C13.41 5.91, 10.11 10.31, 8.7 13.17 M8.7 13.17 C5.91 10.42, 4.42 5.61, 0.84 0.39 M0.84 0.39 C0.84 0.39, 0.84 0.39, 0.84 0.39" stroke="#8888ff" stroke-width="1.5" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask-yMAqHfG9whOVzOfrKMWlb">
|
||||
<rect x="0" y="0" fill="#fff" width="623.3808964699415" height="524.2365784493911"/>
|
||||
<rect x="424.3218183207341" y="365.2865732117889" fill="#000" width="46.125" height="18.4" opacity="1"/>
|
||||
</mask>
|
||||
<g transform="translate(424.3218183207341 365.28657321178883) rotate(0 23.23831563368458 9.596453579515213)">
|
||||
<text x="23.0625" y="0" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">gossip</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(291.44262447873916 327.85196404020223) rotate(0 -14.48643241814193 21.54863026497472)">
|
||||
<path d="M-0.49 0.4 C-5.51 7.68, -24.58 36.78, -29.26 44.04" stroke="#1971c2" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(618.1515385033836 416.38509054872736) rotate(0 17.633369809143005 -19.58258118992751)">
|
||||
<path d="M-0.29 0.95 C5.74 -5.5, 29.71 -31.48, 35.69 -38.29" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(397.24292749635015 291.04844404416406) rotate(0 108.11723831068298 23.89541939863892)">
|
||||
<path d="M0.42 0.88 C36.56 8.57, 180.64 39.32, 216.56 47.09" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(133.85460614113572 106.9372580866725) rotate(0 75.6039044712877 -20.761693973980528)">
|
||||
<path d="M0.33 -0.7 C25.41 -7.83, 125.78 -34.98, 150.92 -41.85" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(516.3493971183293 73.41312426332206) rotate(0 27.70338997193403 0)">
|
||||
<path d="M-0.29 -0.33 C8.87 -0.28, 45.97 -0.42, 55.32 -0.43" stroke="#8888ff" stroke-width="1.5" fill="none" stroke-dasharray="8 9"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g transform="translate(599.177519990882 64.21312459557089) rotate(0 24.825000762939453 9.199999999999989)">
|
||||
<text x="0" y="0" fill="#8888ff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Gossip</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(575.1806302259693 106.55716122893216) rotate(0 -30.59614681953599 0)">
|
||||
<path d="M0.43 -0.43 C-9.62 -0.32, -50.14 0.33, -60.42 0.22 M-0.8 -1.7 C-10.94 -1.94, -50.75 -2.01, -60.97 -1.78" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(575.1806302259693 106.55716122893216) rotate(0 -30.59614681953599 0)">
|
||||
<path d="M-0.63 -2.14 L-13.12 7.76 L-13.07 -7.52 L-0.65 -1.04" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M0.43 -0.43 C-4.08 2.49, -7.23 3.34, -13.08 6.09 M0.43 -0.43 C-2.78 1.56, -5.23 1.84, -13.08 6.09 M-13.08 6.09 C-12.92 3.91, -14.4 0.52, -13.24 -6.59 M-13.08 6.09 C-12.99 1.62, -13.46 -3.39, -13.24 -6.59 M-13.24 -6.59 C-9.71 -5.56, -4.81 -2.36, 0.43 -0.43 M-13.24 -6.59 C-7.88 -3.71, -2.36 -2.41, 0.43 -0.43 M0.43 -0.43 C0.43 -0.43, 0.43 -0.43, 0.43 -0.43 M0.43 -0.43 C0.43 -0.43, 0.43 -0.43, 0.43 -0.43" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask/>
|
||||
<g transform="translate(599.1775200738534 97.35716109035195) rotate(0 29.6875 9.199999999999989)">
|
||||
<text x="0" y="0" fill="#ff80b3" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Git fetch</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,83 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 568.6068795283663 434.95101002887304" width="568.6068795283663" height="434.95101002887304">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round" transform="translate(10 17.97897946733997) rotate(0 49.240810459650675 49.24081045965056)">
|
||||
<path d="M65.11 3.56 C72.47 5.67, 80.47 11.58, 85.81 17.58 C91.15 23.58, 95.61 31.54, 97.14 39.55 C98.66 47.55, 97.71 57.67, 94.97 65.6 C92.22 73.53, 86.82 81.82, 80.68 87.14 C74.54 92.45, 65.95 95.95, 58.13 97.49 C50.32 99.03, 41.45 99.03, 33.79 96.36 C26.12 93.68, 17.6 87.64, 12.14 81.44 C6.69 75.24, 2.52 67.32, 1.06 59.18 C-0.41 51.04, 0.68 40.37, 3.37 32.61 C6.06 24.84, 11.22 17.88, 17.21 12.57 C23.19 7.27, 30.64 2.08, 39.28 0.79 C47.92 -0.5, 63.3 3.6, 69.03 4.82 C74.77 6.04, 73.94 7.31, 73.68 8.12 M60.87 2.09 C68.72 3.67, 77.78 9.28, 83.61 15.03 C89.44 20.78, 93.63 28.88, 95.85 36.6 C98.08 44.31, 99.01 53.32, 96.98 61.31 C94.95 69.3, 89.3 78.58, 83.66 84.51 C78.02 90.45, 71.15 94.86, 63.15 96.9 C55.16 98.95, 43.68 98.99, 35.7 96.78 C27.72 94.57, 20.88 89.3, 15.25 83.66 C9.62 78.02, 4.01 70.6, 1.94 62.94 C-0.13 55.27, 0.77 45.72, 2.82 37.68 C4.88 29.64, 8.86 20.74, 14.28 14.69 C19.69 8.65, 27.56 3.37, 35.32 1.42 C43.08 -0.53, 56.36 2.87, 60.85 3.01 C65.33 3.14, 62.38 1.84, 62.23 2.24" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(41.99730023544953 57.40127893985016) rotate(0 17.424999237060547 10)">
|
||||
<text x="17.424999237060547" y="14.016" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Peer</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(243.95993195721303 326.4693891095719) rotate(0 49.24081045965045 49.24081045965056)">
|
||||
<path d="M67.45 3.11 C74.94 5.35, 82.49 12.52, 87.48 19.2 C92.46 25.89, 96.21 35.11, 97.39 43.21 C98.57 51.31, 97.44 60.19, 94.57 67.8 C91.71 75.41, 86.6 83.81, 80.19 88.87 C73.77 93.93, 64.31 97.03, 56.07 98.15 C47.83 99.28, 38.28 98.81, 30.75 95.62 C23.21 92.43, 15.9 85.53, 10.86 79.01 C5.82 72.49, 1.83 64.59, 0.5 56.5 C-0.84 48.42, -0.18 38.12, 2.84 30.48 C5.86 22.85, 11.85 15.55, 18.6 10.7 C25.36 5.84, 34.77 2.2, 43.38 1.35 C52 0.49, 65.4 4.8, 70.29 5.57 C75.19 6.33, 73.2 5.45, 72.76 5.92 M54.22 0.31 C62.17 0.32, 72.39 4.06, 79.06 9.06 C85.74 14.06, 90.87 22.61, 94.27 30.31 C97.67 38.01, 100.5 47.17, 99.45 55.27 C98.39 63.36, 92.95 72.37, 87.95 78.87 C82.95 85.37, 76.85 90.88, 69.46 94.27 C62.06 97.66, 51.7 99.95, 43.58 99.23 C35.46 98.51, 27.39 94.98, 20.74 89.93 C14.08 84.87, 7.28 76.71, 3.67 68.9 C0.05 61.09, -1.79 51.06, -0.97 43.06 C-0.15 35.06, 3.38 27.52, 8.6 20.92 C13.81 14.33, 22.7 7.1, 30.32 3.49 C37.93 -0.12, 50.38 -0.36, 54.29 -0.74 C58.21 -1.12, 53.64 0.03, 53.8 1.19" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(275.95723219266256 365.8916885820821) rotate(0 17.424999237060547 10)">
|
||||
<text x="17.424999237060547" y="14.016" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Peer</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(460.12525860906544 10) rotate(0 49.24081045965045 49.24081045965056)">
|
||||
<path d="M34.52 2.6 C41.88 -0.35, 52.2 -0.72, 60.44 1.2 C68.67 3.12, 77.88 8.44, 83.93 14.12 C89.97 19.8, 94.44 27.4, 96.68 35.29 C98.92 43.18, 99.19 53.57, 97.35 61.48 C95.5 69.39, 91.27 76.81, 85.61 82.74 C79.94 88.68, 71.46 94.72, 63.36 97.11 C55.25 99.5, 45.06 99.03, 36.98 97.08 C28.89 95.14, 20.57 90.92, 14.87 85.44 C9.17 79.96, 5.04 72.01, 2.77 64.21 C0.51 56.41, -0.59 46.92, 1.28 38.64 C3.15 30.35, 7.85 20.9, 14 14.51 C20.14 8.12, 33.37 2.53, 38.16 0.29 C42.95 -1.95, 42.39 0.26, 42.72 1.09 M48.01 0.35 C55.98 -0.36, 67.24 2.28, 74.36 6.19 C81.49 10.1, 86.59 16.86, 90.77 23.83 C94.94 30.8, 99.1 39.62, 99.42 48.01 C99.73 56.4, 96.59 66.69, 92.66 74.15 C88.72 81.6, 82.9 88.62, 75.78 92.74 C68.66 96.86, 58.54 98.96, 49.93 98.86 C41.31 98.76, 31.47 95.95, 24.11 92.14 C16.75 88.32, 9.74 83.03, 5.78 75.96 C1.82 68.9, 0.45 58.36, 0.36 49.75 C0.26 41.15, 1.52 31.48, 5.22 24.34 C8.91 17.21, 15.23 10.82, 22.51 6.93 C29.79 3.04, 44.75 1.89, 48.91 0.98 C53.07 0.07, 47.4 0.65, 47.46 1.46" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(492.12255884451497 49.42229947251019) rotate(0 17.424999237060547 10)">
|
||||
<text x="17.424999237060547" y="14.016" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Peer</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(158.85098471674928 89.02151148082146) rotate(0 47.997148734979646 45.68939014702187)">
|
||||
<path d="M61.74 2.33 C69.91 3.86, 78.44 9.23, 84.09 15.41 C89.73 21.59, 94.21 31.33, 95.61 39.39 C97.02 47.45, 96.03 56.25, 92.52 63.77 C89.01 71.28, 82 79.88, 74.55 84.47 C67.1 89.06, 56.55 91.25, 47.81 91.32 C39.06 91.39, 29.14 89.08, 22.07 84.89 C14.99 80.69, 8.96 73.52, 5.34 66.14 C1.71 58.77, -0.74 49.08, 0.34 40.62 C1.42 32.15, 6.34 21.92, 11.83 15.35 C17.32 8.77, 24.61 3.39, 33.28 1.18 C41.95 -1.02, 58.36 1.7, 63.85 2.11 C69.34 2.52, 66.54 2.82, 66.23 3.62 M36.14 1.82 C43.8 -1, 53 -0.35, 61.22 1.97 C69.44 4.29, 79.67 9.3, 85.45 15.74 C91.22 22.18, 94.67 32.2, 95.86 40.63 C97.05 49.06, 96.36 58.97, 92.61 66.31 C88.87 73.66, 81.1 80.55, 73.39 84.69 C65.67 88.84, 55.13 91.07, 46.31 91.16 C37.49 91.25, 27.42 89.77, 20.45 85.23 C13.49 80.69, 8.01 71.84, 4.54 63.93 C1.07 56.02, -1.39 45.85, -0.37 37.75 C0.65 29.66, 4.7 21.21, 10.66 15.37 C16.63 9.53, 31.5 4.77, 35.43 2.73 C39.36 0.68, 33.96 2.38, 34.22 3.1" stroke="#ffa083" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(185.9715241036056 114.9036240266064) rotate(0 20.9375 20)">
|
||||
<text x="20.9375" y="14.016" fill="#ffa083" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Tor</text>
|
||||
<text x="20.9375" y="34.016" fill="#ffa083" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Relay</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(103.9523525193922 94.97506807501793) rotate(0 20.754503275990828 10.930892542754407)">
|
||||
<path d="M-0.17 1.02 C6.77 4.76, 35.33 18.65, 42.3 22.16 M-1.72 0.51 C5.08 3.89, 34.65 16.36, 41.76 20.2" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
<mask></mask>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(404.3643613584163 91.93165333194588) rotate(0 24.60424194583311 -6.782557003275258)">
|
||||
<path d="M0.36 0.14 C8.58 -2.18, 41.05 -11.22, 49.27 -13.45 M-0.12 -0.27 C8.05 -2.52, 40.59 -12.05, 48.87 -14.36" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
<mask></mask>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(300.8403991662567 312.49757029904686) rotate(0 1.0673190615093517 -9.743473163811188)">
|
||||
<path d="M0.06 0.11 C0.43 -3.1, 2.27 -15.9, 2.59 -19.16 M-0.57 -0.3 C-0.26 -3.69, 2.04 -16.87, 2.39 -19.96" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
<mask></mask>
|
||||
<g stroke-linecap="round" transform="translate(295.6899290929523 59.43611403464308) rotate(0 47.997148734979646 45.68939014702187)">
|
||||
<path d="M31.98 2.24 C39.61 -0.81, 51.4 -0.93, 59.8 1.05 C68.21 3.04, 76.45 8.08, 82.41 14.13 C88.37 20.19, 93.74 29.09, 95.56 37.38 C97.38 45.66, 96.56 56.21, 93.33 63.84 C90.11 71.46, 83.49 78.58, 76.22 83.14 C68.96 87.7, 58.52 90.82, 49.74 91.2 C40.96 91.57, 30.88 89.51, 23.56 85.38 C16.24 81.25, 9.86 73.82, 5.82 66.41 C1.79 58.99, -1.46 49.21, -0.65 40.89 C0.16 32.57, 4.78 23, 10.69 16.51 C16.59 10.01, 30.37 4.43, 34.79 1.93 C39.21 -0.57, 36.93 0.7, 37.2 1.5 M69.52 3.99 C76.97 6.78, 85.84 15.52, 90.07 22.7 C94.3 29.88, 95.65 38.66, 94.91 47.08 C94.16 55.5, 90.71 66.13, 85.61 73.24 C80.51 80.34, 72.33 86.87, 64.31 89.69 C56.29 92.51, 45.62 91.86, 37.48 90.15 C29.34 88.43, 21.3 84.95, 15.47 79.41 C9.63 73.87, 4.74 64.84, 2.45 56.91 C0.17 48.98, -1.03 39.62, 1.75 31.82 C4.53 24.02, 12.15 15.54, 19.13 10.11 C26.11 4.68, 35.33 0.2, 43.63 -0.74 C51.92 -1.68, 64.75 3.36, 68.89 4.49 C73.02 5.62, 68.47 5.04, 68.44 6.03" stroke="#ffa083" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(322.8104684798086 85.31822658042802) rotate(0 20.9375 20)">
|
||||
<text x="20.9375" y="14.016" fill="#ffa083" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Tor</text>
|
||||
<text x="20.9375" y="34.016" fill="#ffa083" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Relay</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(250.64668144360576 187.3589373587863) rotate(0 47.997148734979646 45.68939014702187)">
|
||||
<path d="M67.65 4.55 C75.17 7.15, 83.29 13.87, 88.08 20.65 C92.87 27.43, 96.31 36.83, 96.4 45.24 C96.49 53.64, 93.37 64.17, 88.62 71.06 C83.87 77.95, 75.86 83.21, 67.9 86.58 C59.93 89.95, 49.39 92.33, 40.82 91.28 C32.26 90.23, 23.15 85.9, 16.51 80.28 C9.87 74.65, 3.42 65.64, 0.98 57.52 C-1.46 49.41, -0.64 39.45, 1.86 31.59 C4.37 23.73, 9.55 15.41, 16.02 10.35 C22.5 5.29, 31.02 1.78, 40.71 1.25 C50.4 0.72, 67.64 5.51, 74.16 7.17 C80.68 8.84, 80.33 10.6, 79.84 11.27 M41.76 -0.79 C49.66 -2.42, 60.67 -0.54, 68.63 2.97 C76.58 6.47, 84.76 13.18, 89.49 20.24 C94.23 27.31, 97.08 36.96, 97.04 45.34 C97 53.72, 94.01 63.54, 89.23 70.52 C84.45 77.51, 76.3 83.96, 68.35 87.26 C60.4 90.57, 50.1 91.35, 41.53 90.34 C32.97 89.34, 23.47 86.61, 16.96 81.25 C10.46 75.89, 5.07 66.45, 2.49 58.17 C-0.09 49.9, -0.71 39.34, 1.5 31.61 C3.71 23.89, 9.2 17.27, 15.74 11.83 C22.28 6.38, 36.37 0.86, 40.74 -1.05 C45.11 -2.96, 41.7 -0.87, 41.98 0.37" stroke="#ffa083" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(277.76722083046207 213.24104990457118) rotate(0 20.9375 20)">
|
||||
<text x="20.9375" y="14.016" fill="#ffa083" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Tor</text>
|
||||
<text x="20.9375" y="34.016" fill="#ffa083" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Relay</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(264.5509668975001 117.26276698181437) rotate(0 11.617632317859488 -2.1679597137701876)">
|
||||
<path d="M0.31 0.38 C4.18 -0.29, 19.54 -3.39, 23.44 -4.25 M-0.2 0.1 C3.6 -0.45, 19.15 -2.75, 23.12 -3.5" stroke="#ffa083" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
<mask></mask>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(255.18190619558663 169.66050724295633) rotate(0 6.569672534478286 6.4982404660564725)">
|
||||
<path d="M0 -0.11 C2.11 1.89, 10.8 10.38, 12.99 12.54 M-0.66 -0.64 C1.34 1.64, 10.24 10.66, 12.48 13.01" stroke="#ffa083" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
<mask></mask>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(325.1159534091057 179.31113752337114) rotate(0 3.8664573842822847 -11.43044409157892)">
|
||||
<path d="M0.44 -0.53 C1.63 -4.27, 6.31 -18.91, 7.52 -22.55 M0 0.39 C1.07 -3.5, 5.76 -19.42, 6.98 -23.36" stroke="#ffa083" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
<mask></mask>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,50 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 599.2362879299221 443.05879460575545" width="599.2362879299221" height="443.05879460575545">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round" transform="translate(10.000000000000227 26.086764044222264) rotate(0 49.24081045965056 49.24081045965056)">
|
||||
<path d="M60.59 0.71 C68.35 1.87, 77.18 7.44, 83.19 13.46 C89.19 19.47, 94.19 28.85, 96.62 36.82 C99.05 44.79, 99.75 53.47, 97.77 61.27 C95.79 69.07, 90.75 77.84, 84.72 83.61 C78.7 89.39, 69.64 93.82, 61.64 95.95 C53.65 98.07, 44.42 98.18, 36.74 96.36 C29.07 94.54, 21.36 90.53, 15.61 85.01 C9.85 79.49, 4.45 71.11, 2.22 63.25 C-0.01 55.39, 0.11 45.97, 2.23 37.86 C4.35 29.75, 9.3 20.65, 14.95 14.59 C20.6 8.52, 27.27 3.16, 36.15 1.47 C45.03 -0.23, 62.16 3.28, 68.22 4.42 C74.29 5.56, 72.8 7.65, 72.54 8.32 M58.32 2.43 C66.05 3.19, 76.61 6.69, 82.89 12.02 C89.18 17.35, 93.75 26.34, 96.05 34.41 C98.35 42.49, 98.37 52.72, 96.71 60.48 C95.04 68.24, 91.12 75.11, 86.06 80.95 C81 86.8, 74.24 92.73, 66.36 95.57 C58.49 98.42, 47.25 99.41, 38.81 98.03 C30.37 96.65, 21.79 92.63, 15.71 87.3 C9.62 81.97, 4.95 74.24, 2.31 66.06 C-0.32 57.87, -1.78 46.27, -0.09 38.19 C1.6 30.11, 6.91 23.34, 12.45 17.56 C17.99 11.79, 25.4 6.19, 33.17 3.52 C40.94 0.86, 54.75 1.95, 59.07 1.57 C63.39 1.19, 59.29 0.74, 59.1 1.24" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(41.99730023544976 65.50906351673245) rotate(0 17.424999237060547 10)">
|
||||
<text x="17.424999237060547" y="14.016" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Peer</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(243.95993195721303 334.57717368645433) rotate(0 49.24081045965056 49.24081045965056)">
|
||||
<path d="M43.4 1.25 C51.05 -0.48, 61.3 0.48, 69.06 3.59 C76.82 6.7, 85.17 13.14, 89.96 19.92 C94.74 26.7, 97.15 35.95, 97.77 44.28 C98.39 52.6, 96.94 62.31, 93.68 69.88 C90.41 77.46, 84.8 85.18, 78.16 89.75 C71.52 94.33, 61.96 96.49, 53.84 97.35 C45.72 98.21, 36.88 97.98, 29.44 94.91 C22 91.85, 14.08 85.63, 9.23 78.97 C4.37 72.31, 1.12 63.29, 0.31 54.95 C-0.5 46.6, 1.07 36.61, 4.36 28.9 C7.65 21.18, 11.54 13.31, 20.06 8.66 C28.58 4, 47.89 1.7, 55.49 0.98 C63.08 0.25, 65.95 3.67, 65.63 4.28 M57.98 0.15 C65.72 0.39, 75.69 4.94, 82.07 10.34 C88.45 15.74, 93.85 24.81, 96.26 32.55 C98.66 40.29, 98.05 48.78, 96.5 56.78 C94.96 64.78, 91.98 74.28, 87.01 80.54 C82.04 86.79, 74.75 91.58, 66.7 94.32 C58.66 97.05, 47.13 98.28, 38.74 96.95 C30.34 95.62, 22.08 91.79, 16.33 86.34 C10.57 80.89, 6.71 71.94, 4.21 64.27 C1.7 56.6, -0.16 48.19, 1.31 40.32 C2.78 32.45, 8.01 23.46, 13.02 17.04 C18.04 10.62, 23.86 4.5, 31.39 1.81 C38.92 -0.89, 53.83 1.01, 58.2 0.87 C62.57 0.73, 57.66 0.15, 57.61 0.98" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(275.95723219266256 373.9994731589645) rotate(0 17.424999237060547 10)">
|
||||
<text x="17.424999237060547" y="14.016" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Peer</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(490.754667010621 10) rotate(0 49.24081045965056 49.24081045965056)">
|
||||
<path d="M29.28 4.45 C36.15 0.79, 46.87 0.18, 55.14 1.1 C63.41 2.03, 72.51 5.12, 78.89 10 C85.28 14.87, 90.25 22.98, 93.46 30.35 C96.66 37.72, 98.9 46.14, 98.13 54.21 C97.37 62.27, 93.62 71.95, 88.87 78.74 C84.12 85.53, 77.31 91.7, 69.66 94.94 C62.01 98.19, 51.34 99.31, 42.98 98.21 C34.62 97.1, 26.09 93.25, 19.49 88.33 C12.88 83.4, 6.65 75.99, 3.34 68.64 C0.02 61.29, -1.55 52.44, -0.4 44.23 C0.75 36.02, 4.72 26.23, 10.25 19.38 C15.79 12.54, 28.19 6.07, 32.8 3.17 C37.41 0.27, 37.58 1.2, 37.91 1.98 M59.91 2.18 C67.86 2.71, 75.7 6.51, 81.47 11.76 C87.24 17.01, 91.9 26.03, 94.53 33.69 C97.16 41.36, 98.41 49.92, 97.26 57.76 C96.12 65.59, 93.04 74.54, 87.66 80.71 C82.29 86.89, 73.07 92.07, 65.03 94.8 C56.98 97.53, 47.5 98.53, 39.39 97.09 C31.28 95.65, 22.49 91.68, 16.36 86.15 C10.22 80.62, 4.9 71.69, 2.58 63.9 C0.25 56.11, 0.79 47.2, 2.4 39.41 C4 31.62, 7 23.25, 12.2 17.14 C17.39 11.03, 25.53 5.58, 33.56 2.75 C41.6 -0.08, 56.2 0.31, 60.41 0.18 C64.62 0.04, 58.99 0.99, 58.81 1.91" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(522.7519672460705 49.42229947251019) rotate(0 17.424999237060547 10)">
|
||||
<text x="17.424999237060547" y="14.016" fill="#8888ff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Peer</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(208.39855713103043 72.80594232705675) rotate(0 86.28390923692393 75.41793359559034)">
|
||||
<path d="M103.46 0.79 C114.45 1.5, 126.71 7.64, 136.29 13.85 C145.87 20.06, 155.14 29.19, 160.96 38.05 C166.78 46.91, 170 56.83, 171.19 67.01 C172.38 77.19, 171.4 89.37, 168.1 99.14 C164.8 108.9, 159.06 118.06, 151.41 125.62 C143.75 133.17, 132.88 140.33, 122.18 144.48 C111.49 148.64, 99.08 150.45, 87.22 150.56 C75.36 150.66, 61.95 149.34, 51.01 145.12 C40.07 140.9, 29.37 132.97, 21.59 125.23 C13.82 117.49, 7.94 108.13, 4.35 98.67 C0.77 89.22, -1.07 78.72, 0.07 68.5 C1.21 58.29, 5.43 46.51, 11.2 37.39 C16.97 28.27, 25.04 19.66, 34.7 13.79 C44.36 7.93, 56.28 3.95, 69.18 2.2 C82.08 0.44, 103.75 2.51, 112.1 3.26 C120.44 4, 119.73 5.39, 119.23 6.65 M126.44 7.47 C136.94 11.11, 146.79 20.52, 153.84 28.37 C160.88 36.22, 165.76 44.93, 168.7 54.58 C171.64 64.23, 173.26 75.7, 171.48 86.27 C169.71 96.83, 164.39 109.37, 158.05 117.99 C151.7 126.61, 142.91 132.44, 133.4 137.99 C123.9 143.55, 112.63 149.52, 101.01 151.35 C89.4 153.17, 75.48 151.98, 63.72 148.95 C51.96 145.92, 39.26 139.65, 30.43 133.17 C21.6 126.7, 15.7 119.23, 10.73 110.11 C5.76 101, 1.66 88.8, 0.62 78.48 C-0.41 68.16, 0.52 57.48, 4.53 48.18 C8.55 38.89, 16.46 29.83, 24.73 22.74 C33 15.65, 43.16 9.28, 54.18 5.64 C65.19 2, 78.98 0.54, 90.81 0.92 C102.63 1.29, 119.21 6.39, 125.12 7.91 C131.04 9.42, 126.81 8.76, 126.29 10" stroke="#ff80b3" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
<g transform="translate(254.12052980218027 128.3953436541284) rotate(0 40.54999923706055 20)">
|
||||
<text x="40.54999923706055" y="14.016" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Radicle</text>
|
||||
<text x="40.54999923706055" y="34.016" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">Seed Node</text>
|
||||
</g>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(106.7188020609808 98.0281862123361) rotate(0 43.591912538837846 16.94084967717174)">
|
||||
<path d="M-0.31 1.03 C14.36 6.77, 72.34 28.02, 87.12 33.44 M1.72 0.53 C16.31 6.52, 71.73 29.05, 86.14 34.75" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
<mask></mask>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(386.79664803349806 123.63134267198359) rotate(0 49.621984908011655 -20.2836074052625)">
|
||||
<path d="M-0.27 -0.1 C16.35 -6.81, 83.6 -34.66, 100.33 -41.22 M1.78 -1.2 C18.3 -7.68, 83.61 -33.35, 99.95 -40.03" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
<mask></mask>
|
||||
<g stroke-linecap="round">
|
||||
<g transform="translate(292.2289649290151 320.3279833495559) rotate(0 0.5967840028920364 -43.26484114071866)">
|
||||
<path d="M1.04 -0.62 C1.37 -15.25, 1.08 -72.39, 1.17 -86.62 M0.13 1.67 C0.36 -12.26, 0.06 -70.18, 0.22 -85.13" stroke="#8888ff" stroke-width="2" fill="none"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.5 KiB |
@@ -0,0 +1,92 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 584.63792804179 603.7325083107335" width="584.63792804179" height="603.7325083107335">
|
||||
<defs>
|
||||
<style>
|
||||
@import url("/assets/css/fonts.css");
|
||||
svg { font-size: 16px; font-family: "Inter", sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<g stroke-linecap="round" transform="translate(36.21399090243949 89.18033866906654) rotate(0 256.29680448850263 103.6806465444188)">
|
||||
<path d="M0 0 C204.34 -1.17, 408.16 -1.43, 512.59 0 M0 0 C131.47 1.73, 262.99 1.67, 512.59 0 M512.59 0 C513.55 77.88, 514.21 156.58, 512.59 207.36 M512.59 0 C512.53 63.71, 511.33 128.21, 512.59 207.36 M512.59 207.36 C389.22 207.63, 264.67 208.29, 0 207.36 M512.59 207.36 C313.73 206.44, 114.43 206.34, 0 207.36 M0 207.36 C0.02 156.49, 1.63 109.01, 0 0 M0 207.36 C-1.78 162.02, -0.78 117.51, 0 0" stroke="#ff80b3" stroke-width="2" fill="none"/>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(62.272004343533354 176.8903011012392) rotate(0 102.83593272276357 44.23050862605392)">
|
||||
<path d="M-1.7 -1.63 L206.13 -1.83 L206.5 90.04 L1.03 87.87" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
<path d="M0 0 C72.53 -0.56, 141.01 0.88, 205.67 0 M0 0 C48.91 -1.07, 97.31 -1.43, 205.67 0 M205.67 0 C206.69 24.06, 205.91 46.95, 205.67 88.46 M205.67 0 C205.92 35.26, 205.84 68.07, 205.67 88.46 M205.67 88.46 C134.69 87.73, 68.72 88.63, 0 88.46 M205.67 88.46 C150.02 86.32, 94.52 86.63, 0 88.46 M0 88.46 C1.12 57.81, -1.16 27.91, 0 0 M0 88.46 C1.11 58.16, 0.77 29.8, 0 0" stroke="transparent" stroke-width="2" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(126.97043630335747 202.7208097272931) rotate(0 38.13750076293945 18.400000000000006)">
|
||||
<text x="38.13750076293945" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Repository</text>
|
||||
<text x="38.13750076293945" y="18.4" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge"/>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(284.53031055079737 176.19652498675904) rotate(0 102.83593272276357 43.677627267329584)">
|
||||
<path d="M0.45 -1.83 L206.5 1.58 L206.71 86.77 L-1.89 85.44" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
<path d="M0 0 C54.43 1.47, 109.25 1.63, 205.67 0 M0 0 C82.74 -1.14, 163.84 -1.44, 205.67 0 M205.67 0 C206.23 23.64, 207.88 50.76, 205.67 87.36 M205.67 0 C204.64 24.71, 205.6 51.56, 205.67 87.36 M205.67 87.36 C158.05 89.03, 106.74 88.39, 0 87.36 M205.67 87.36 C157.94 85.08, 111.77 85.07, 0 87.36 M0 87.36 C-1.96 70.14, 0.38 49.06, 0 0 M0 87.36 C-0.22 69.5, -1.7 50.88, 0 0" stroke="transparent" stroke-width="2" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(349.2287425106215 201.4741522540886) rotate(0 38.13750076293945 18.400000000000006)">
|
||||
<text x="38.13750076293945" y="0" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Repository</text>
|
||||
<text x="38.13750076293945" y="18.4" fill="#ffffff" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge"/>
|
||||
</g>
|
||||
<g transform="translate(62.272003800575476 114.4692318608763) rotate(0 49.23749923706055 9.200000000000003)">
|
||||
<text x="0" y="0" fill="#ff80b3" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Local Storage</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(506.7886165197956 176.19652510123922) rotate(0 21.009491631532455 43.67762726732957)">
|
||||
<path d="M1.03 -0.59 L40.13 -1.91 L41.38 86.18 L1.27 88.1" stroke="none" stroke-width="0" fill="#ff80b3"/>
|
||||
<path d="M0 0 C15.3 1.23, 28.31 1.44, 42.02 0 M0 0 C14.22 0.43, 28.89 0.04, 42.02 0 M42.02 0 C42.68 21.32, 44.31 43.5, 42.02 87.36 M42.02 0 C41.73 17.01, 42.56 36.82, 42.02 87.36 M42.02 87.36 C24.98 86.71, 8.87 86.27, 0 87.36 M42.02 87.36 C31.15 87.38, 22.18 86.24, 0 87.36 M0 87.36 C-2.19 55.31, -2.23 20.62, 0 0 M0 87.36 C0.97 60.43, 1.16 36.13, 0 0" stroke="transparent" stroke-width="2" fill="none"/>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(62.27200421333055 453.0162762609689) rotate(0 102.83593272276357 49.8366924565654)">
|
||||
<path d="M0 0 C68.53 0.15, 134.87 -1.76, 205.67 0 M0 0 C63.7 -0.79, 126.89 -0.05, 205.67 0 M205.67 0 C207.11 37.21, 203.72 77.52, 205.67 99.67 M205.67 0 C205.28 33.38, 205.78 64.68, 205.67 99.67 M205.67 99.67 C134.96 97.84, 66.54 99.87, 0 99.67 M205.67 99.67 C156.95 99.44, 108.57 100.48, 0 99.67 M0 99.67 C-1 72.54, 0.91 41.16, 0 0 M0 99.67 C0.19 78.66, 0.29 55.78, 0 0" stroke="#ff80b3" stroke-width="2" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(135.98293693609412 484.4529687175343) rotate(0 29.125 18.399999999999977)">
|
||||
<text x="29.125" y="0" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Working</text>
|
||||
<text x="29.125" y="18.4" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Copy</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(284.5303112266156 453.01627687035796) rotate(0 102.83593272276357 49.8366922344419)">
|
||||
<path d="M0 0 C76.26 -1.94, 151.15 -1.76, 205.67 0 M0 0 C70.9 0.66, 143.35 -0.19, 205.67 0 M205.67 0 C204.54 25.58, 206.94 48.47, 205.67 99.67 M205.67 0 C206.61 19.98, 206.24 39.87, 205.67 99.67 M205.67 99.67 C151.1 99.47, 97.59 97.07, 0 99.67 M205.67 99.67 C138.86 98.39, 70.32 97.25, 0 99.67 M0 99.67 C0.93 58.34, -0.65 20.86, 0 0 M0 99.67 C0.11 78.62, -1.36 57.2, 0 0" stroke="#ff80b3" stroke-width="2" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(358.24124394937917 484.4529691047999) rotate(0 29.125 18.399999999999977)">
|
||||
<text x="29.125" y="0" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Working</text>
|
||||
<text x="29.125" y="18.4" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Copy</text>
|
||||
</g>
|
||||
<g mask="url(#mask-T6BDWh6j4ZmaAEnRs0YZ9)" stroke-linecap="round">
|
||||
<g transform="translate(165.10793678374694 452.0162762609689) rotate(0 0 -91.2237868536044)">
|
||||
<path d="M0 0 C-0.15 -29.73, 0.6 -58.55, 0 -77.8 M0 0 C1.2 -23.99, -0.16 -47.1, 0 -77.8 M0 -77.8 C1.51 -104.24, -0.94 -127.82, 0 -182.45 M0 -77.8 C-0.4 -119.13, -1.15 -160, 0 -182.45" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(165.10793678374694 452.0162762609689) rotate(0 0 -91.2237868536044)">
|
||||
<path d="M1.27 -181.7 L6.37 -168.72 L-6.64 -168.16 L1.48 -183.56" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M0 -182.45 C2.47 -177.53, 5.3 -171.96, 6.02 -168.71 M0 -182.45 C2.43 -178.32, 3.26 -173.49, 6.02 -168.71 M6.02 -168.71 C3.29 -169.5, -1.31 -168.53, -6.66 -169.01 M6.02 -168.71 C1.32 -169.31, -4.08 -169.58, -6.66 -169.01 M-6.66 -169.01 C-5.92 -173.48, -2.97 -175.06, 0 -182.45 M-6.66 -169.01 C-5.46 -172.63, -3.19 -175.53, 0 -182.45 M0 -182.45 C0 -182.45, 0 -182.45, 0 -182.45 M0 -182.45 C0 -182.45, 0 -182.45, 0 -182.45" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask-T6BDWh6j4ZmaAEnRs0YZ9">
|
||||
<rect x="0" y="0" fill="#fff" width="265.10793678374694" height="734.4638499681777"/>
|
||||
<rect x="147.8079375466864" y="365.0211365577122" fill="#000" width="34.599998474121094" height="18.4" opacity="1"/>
|
||||
</mask>
|
||||
<g transform="translate(147.8079375466864 365.0211365577123) rotate(0 17.245726342613352 -4.228647150347797)">
|
||||
<text x="17.299999237060547" y="0" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">push</text>
|
||||
</g>
|
||||
<g mask="url(#mask-iq1SBTW31kyu6R1UNUpVo)" stroke-linecap="round">
|
||||
<g transform="translate(387.3662432735605 263.29563731190547) rotate(0 0 92.38023798350207)">
|
||||
<path d="M0 0 C1.04 30.13, 0.26 59.1, 0 110.93 M0 0 C0.44 44.02, 0.36 85.59, 0 110.93 M0 110.93 C-1.74 136.22, 1.96 162.09, 0 184.76 M0 110.93 C-0.14 129.83, -0.35 150.02, 0 184.76" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
<g transform="translate(387.3662432735605 263.29563731190547) rotate(0 0 92.38023798350207)">
|
||||
<path d="M0.35 184.75 L-6.41 172.05 L7.73 170.02 L-1.4 184.87" stroke="none" stroke-width="0" fill="#ff80b3" fill-rule="evenodd"/>
|
||||
<path d="M0 184.76 C-1.05 181.19, -3.38 176.76, -6.43 171.21 M0 184.76 C-3 180.03, -5.57 173.48, -6.43 171.21 M-6.43 171.21 C-3.38 171.53, 3.23 172.14, 6.25 171.12 M-6.43 171.21 C-3.27 170.67, 0 170.87, 6.25 171.12 M6.25 171.12 C4.39 176.26, 0.48 182.02, 0 184.76 M6.25 171.12 C4.89 174.85, 2.56 180.09, 0 184.76 M0 184.76 C0 184.76, 0 184.76, 0 184.76 M0 184.76 C0 184.76, 0 184.76, 0 184.76" stroke="#ff80b3" stroke-width="1" fill="none"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask-iq1SBTW31kyu6R1UNUpVo">
|
||||
<rect x="0" y="0" fill="#fff" width="487.3662432735605" height="548.0561132789096"/>
|
||||
<rect x="374.9412430828256" y="365.0211365577122" fill="#000" width="24.850000381469727" height="18.4" opacity="1"/>
|
||||
</mask>
|
||||
<g transform="translate(374.9412430828256 365.0211365577123) rotate(0 12.480073795464477 -9.345261262304689)">
|
||||
<text x="12.425000190734863" y="0" fill="#ff80b3" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">pull</text>
|
||||
</g>
|
||||
<g stroke-linecap="round" transform="translate(10 10) rotate(0 282.318964020895 291.86625415536673)">
|
||||
<path d="M0.16 -1.12 C156.52 -2.38, 311.29 -1.06, 564.56 -1.52 M565.17 -1.49 C565.46 155.92, 566.57 308.73, 566.08 584.75 M564.71 585.23 C404.67 580.36, 243.62 580.64, -1.08 582.64 M0.12 585.22 C4.61 406.45, 4.88 228.03, -0.69 -0.38" stroke="#8888ff" stroke-width="2.5" fill="none" stroke-dasharray="8 10"/>
|
||||
</g>
|
||||
<g transform="translate(35.83378166044122 37.655395980126286) rotate(0 19.075000762939453 9.200000000000003)">
|
||||
<text x="0" y="0" fill="#8888ff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Node</text>
|
||||
</g>
|
||||
<g transform="translate(357.8039885008661 226.8800314407502) rotate(0 29.475000381469727 6.113551541589686)">
|
||||
<text x="0" y="0" font-size="10.63226355059077px" fill="#ffffff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Stored Copy</text>
|
||||
</g>
|
||||
<g transform="translate(135.54568208088403 226.88003164990215) rotate(0 29.475000381469727 6.113551541589686)">
|
||||
<text x="0" y="0" font-size="10.63226355059077px" fill="#ffffff" text-anchor="start" style="white-space: pre;" direction="ltr" dominant-baseline="text-before-edge">Stored Copy</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 287 KiB |
|
After Width: | Height: | Size: 300 KiB |
|
After Width: | Height: | Size: 313 KiB |
|
After Width: | Height: | Size: 178 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg width="182" height="182" viewBox="0 0 182 182" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H135.824V90.5478H90.5478V135.824H45.2758V181.099H0V0ZM45.2758 45.2758V90.5478H90.5478V45.2758H45.2758Z" fill="#0b0d12"/>
|
||||
<path d="M135.823 90.5479H181.099V181.1H135.823V90.5479Z" fill="#0b0d12"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 356 B |
|
After Width: | Height: | Size: 801 KiB |
@@ -0,0 +1,674 @@
|
||||
/*
|
||||
Everything here is scoped under the `.marketing` wrapper applied to the
|
||||
marketing layout root, so the reset, element defaults, tokens and utility
|
||||
classes never leak into the rest of the explorer app. Colour and accent
|
||||
tokens are NOT redefined — the marketing pages reuse the explorer's own
|
||||
theme-aware tokens from colors.css. Only the typography tokens, border-radius
|
||||
aliases and layout classes that radicle.dev relies on are added here.
|
||||
*/
|
||||
|
||||
.marketing {
|
||||
--border-radius-tiny: 2px;
|
||||
--border-radius-small: 4px;
|
||||
--border-radius-regular: 8px;
|
||||
--border-radius-round: 10rem;
|
||||
|
||||
--section-gap: 10rem;
|
||||
|
||||
/* Horizontal gutter shared by every marketing page's content and the
|
||||
footer, so they align regardless of which page is shown. */
|
||||
--marketing-inline-gap: 4rem;
|
||||
|
||||
/* Bold */
|
||||
--txt-bold-48: 600 48px/52px Booton, sans-serif;
|
||||
--txt-bold-32: 600 32px/40px Booton, sans-serif;
|
||||
--txt-bold-24: 600 24px/32px Booton, sans-serif;
|
||||
--txt-bold-22: 600 22px/30px Booton, sans-serif;
|
||||
--txt-bold-18: 600 18px/24px Booton, sans-serif;
|
||||
--txt-bold-16: 600 16px/22px Booton, sans-serif;
|
||||
--txt-bold-14: 600 14px/20px Booton, sans-serif;
|
||||
--txt-bold-12: 600 12px/16px Booton, sans-serif;
|
||||
|
||||
/* Medium */
|
||||
--txt-medium-32: 468 32px/40px Booton, sans-serif;
|
||||
--txt-medium-24: 468 24px/32px Booton, sans-serif;
|
||||
--txt-medium-22: 468 22px/30px Booton, sans-serif;
|
||||
--txt-medium-20: 468 20px/28px Booton, sans-serif;
|
||||
--txt-medium-18: 468 18px/24px Booton, sans-serif;
|
||||
--txt-medium-16: 468 16px/22px Booton, sans-serif;
|
||||
--txt-medium-14: 468 14px/20px Booton, sans-serif;
|
||||
--txt-medium-12: 468 12px/16px Booton, sans-serif;
|
||||
|
||||
line-height: 1.5;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
/* Reset (scoped) */
|
||||
.marketing *,
|
||||
.marketing *::before,
|
||||
.marketing *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.marketing * {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.marketing img,
|
||||
.marketing picture,
|
||||
.marketing video,
|
||||
.marketing canvas,
|
||||
.marketing svg {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.marketing input,
|
||||
.marketing button,
|
||||
.marketing textarea,
|
||||
.marketing select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.marketing p,
|
||||
.marketing h1,
|
||||
.marketing h2,
|
||||
.marketing h3,
|
||||
.marketing h4,
|
||||
.marketing h5,
|
||||
.marketing h6 {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.marketing p {
|
||||
margin: 1rem 0;
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
/* Link defaults. `.product-link` is the standard blue call-to-action link, so
|
||||
it opts out of the default dark link color. */
|
||||
.marketing a:-webkit-any-link:not(.button):not(.product-link) {
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.marketing a:-webkit-any-link:not(.button):not(.product-link):hover {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.marketing a.arrow-link,
|
||||
.marketing button.arrow-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.marketing a.arrow-link:hover,
|
||||
.marketing button.arrow-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.marketing a.arrow-link:active,
|
||||
.marketing button.arrow-link:active {
|
||||
filter: brightness(0.85);
|
||||
}
|
||||
|
||||
.marketing .link-arrow {
|
||||
display: inline-block;
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
.marketing .arrow-link:hover .link-arrow-right {
|
||||
transform: translateX(0.15rem);
|
||||
}
|
||||
|
||||
.marketing .arrow-link:hover .link-arrow-down {
|
||||
transform: translateY(0.15rem);
|
||||
}
|
||||
|
||||
.marketing .arrow-link:hover .link-arrow-up-right {
|
||||
transform: translate(0.15rem, -0.15rem);
|
||||
}
|
||||
|
||||
/* Typography utility classes */
|
||||
.marketing .txt-bold-48 {
|
||||
font: var(--txt-bold-48);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.marketing .txt-bold-32 {
|
||||
font: var(--txt-bold-32);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.marketing .txt-bold-24 {
|
||||
font: var(--txt-bold-24);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.marketing .txt-bold-22 {
|
||||
font: var(--txt-bold-22);
|
||||
}
|
||||
.marketing .txt-bold-18 {
|
||||
font: var(--txt-bold-18);
|
||||
}
|
||||
.marketing .txt-bold-16 {
|
||||
font: var(--txt-bold-16);
|
||||
}
|
||||
.marketing .txt-bold-14 {
|
||||
font: var(--txt-bold-14);
|
||||
}
|
||||
.marketing .txt-bold-12 {
|
||||
font: var(--txt-bold-12);
|
||||
}
|
||||
.marketing .txt-medium-32 {
|
||||
font: var(--txt-medium-32);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.marketing .txt-medium-24 {
|
||||
font: var(--txt-medium-24);
|
||||
}
|
||||
.marketing .txt-medium-22 {
|
||||
font: var(--txt-medium-22);
|
||||
}
|
||||
.marketing .txt-medium-20 {
|
||||
font: var(--txt-medium-20);
|
||||
}
|
||||
.marketing .txt-medium-18 {
|
||||
font: var(--txt-medium-18);
|
||||
}
|
||||
.marketing .txt-medium-16 {
|
||||
font: var(--txt-medium-16);
|
||||
}
|
||||
.marketing .txt-medium-14 {
|
||||
font: var(--txt-medium-14);
|
||||
}
|
||||
.marketing .txt-medium-12 {
|
||||
font: var(--txt-medium-12);
|
||||
}
|
||||
.marketing .txt-color-tertiary {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.marketing .global-flex {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Shared page styles */
|
||||
.marketing .page-container {
|
||||
padding: 6rem var(--marketing-inline-gap);
|
||||
}
|
||||
|
||||
@media (max-width: 90rem) {
|
||||
.marketing {
|
||||
--marketing-inline-gap: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 64rem) {
|
||||
.marketing {
|
||||
--marketing-inline-gap: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.marketing h1[id],
|
||||
.marketing h2[id],
|
||||
.marketing h3[id] {
|
||||
scroll-margin-top: 5rem;
|
||||
}
|
||||
|
||||
.marketing .page-header {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.marketing .page-label {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--color-text-tertiary);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.marketing .page-title {
|
||||
margin: 0 0 0.5rem;
|
||||
}
|
||||
|
||||
.marketing .page-subtitle {
|
||||
color: var(--color-text-secondary);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Card list styles */
|
||||
.marketing .card-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.marketing .card-link {
|
||||
display: block;
|
||||
padding: 1.5rem;
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-small);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.marketing .card-link:hover {
|
||||
border-color: var(--color-brand-hover);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.marketing .card-link strong {
|
||||
display: block;
|
||||
color: var(--color-text-primary);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.marketing .card-link span {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
/* Shared markdown/prose styles */
|
||||
.marketing .markdown-content {
|
||||
max-width: 48rem;
|
||||
font-weight: 468;
|
||||
line-height: 1.7;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.marketing .markdown-content aside {
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
margin-left: 2rem;
|
||||
width: 16rem;
|
||||
font: var(--txt-medium-14);
|
||||
line-height: 1.6;
|
||||
color: var(--color-text-tertiary);
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.marketing .markdown-content aside p {
|
||||
font: var(--txt-medium-14);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.marketing .guide-hero {
|
||||
height: 20rem;
|
||||
object-fit: cover;
|
||||
border-radius: var(--border-radius-small);
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content {
|
||||
max-width: min(66rem, 100%);
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content > :not(aside) {
|
||||
max-width: none;
|
||||
width: min(42rem, calc(100% - clamp(15rem, 26vw, 20rem) - 2rem));
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content aside {
|
||||
position: static;
|
||||
float: right;
|
||||
clear: right;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 1rem;
|
||||
margin-inline-start: 0;
|
||||
width: clamp(15rem, 26vw, 20rem);
|
||||
font: var(--txt-medium-14);
|
||||
line-height: 1.6;
|
||||
color: var(--color-text-tertiary);
|
||||
background: none !important;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
@media (max-width: 72rem) {
|
||||
.marketing .guides-markdown .markdown-content {
|
||||
max-width: min(62rem, 100%);
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content > :not(aside) {
|
||||
width: min(38rem, calc(100% - clamp(13.5rem, 30vw, 17rem) - 1.25rem));
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content aside {
|
||||
width: clamp(13.5rem, 30vw, 17rem);
|
||||
margin-inline-start: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.marketing .guides-markdown .markdown-content > :not(aside) {
|
||||
width: min(36rem, calc(100% - clamp(12rem, 32vw, 15rem) - 1rem));
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content aside {
|
||||
width: clamp(12rem, 32vw, 15rem);
|
||||
margin-inline-start: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 44rem) {
|
||||
.marketing .guides-markdown .markdown-content {
|
||||
max-width: 48rem;
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content > :not(aside) {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content aside {
|
||||
float: none;
|
||||
clear: none;
|
||||
width: auto;
|
||||
margin: 1rem 0;
|
||||
padding: 0.75rem 1rem;
|
||||
background: var(--color-surface-subtle) !important;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.marketing .guides-markdown .markdown-content aside p {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.marketing .markdown-content h1 {
|
||||
font: var(--txt-bold-48);
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.marketing .markdown-content h2 {
|
||||
font: var(--txt-bold-32);
|
||||
letter-spacing: -0.02em;
|
||||
margin-top: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.marketing .markdown-content h3 {
|
||||
font: var(--txt-bold-24);
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.marketing .markdown-content h4 {
|
||||
font: var(--txt-bold-18);
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
@media (max-width: 44rem) {
|
||||
.marketing .markdown-content h1 {
|
||||
font: var(--txt-bold-32);
|
||||
}
|
||||
|
||||
.marketing .markdown-content h2 {
|
||||
font: var(--txt-bold-24);
|
||||
}
|
||||
|
||||
.marketing .markdown-content h3 {
|
||||
font: var(--txt-bold-18);
|
||||
}
|
||||
}
|
||||
|
||||
.marketing .markdown-content p {
|
||||
font: var(--txt-medium-16);
|
||||
line-height: 1.7;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.marketing .markdown-content ul,
|
||||
.marketing .markdown-content ol {
|
||||
font: var(--txt-medium-16);
|
||||
line-height: 1.7;
|
||||
padding-left: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.marketing .markdown-content li {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.marketing .markdown-content strong {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.marketing .markdown-content code {
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-size: 0.9em;
|
||||
background: var(--color-surface-subtle);
|
||||
padding: 0.125rem 0.375rem;
|
||||
border-radius: var(--border-radius-tiny);
|
||||
}
|
||||
|
||||
.marketing .markdown-content pre {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--border-radius-tiny);
|
||||
overflow-x: auto;
|
||||
background: var(--color-surface-subtle) !important;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.marketing .markdown-content pre code {
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.marketing .markdown-content pre.shiki {
|
||||
background: var(--color-surface-subtle) !important;
|
||||
color: var(--shiki-dark) !important;
|
||||
}
|
||||
|
||||
.marketing .markdown-content pre.shiki span {
|
||||
color: var(--shiki-dark) !important;
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
:root[data-theme="light"] .marketing .markdown-content pre.shiki,
|
||||
:root[data-theme="light"] .marketing .markdown-content pre.shiki span {
|
||||
color: var(--shiki-light) !important;
|
||||
}
|
||||
|
||||
.marketing .copy-code-button {
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 0.5rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0.25rem;
|
||||
background: none;
|
||||
border: none;
|
||||
border-radius: 0.125rem;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
|
||||
.marketing .markdown-content pre:hover .copy-code-button {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.marketing .copy-code-button:hover {
|
||||
background: var(--color-surface-subtle);
|
||||
}
|
||||
|
||||
.marketing .markdown-content a {
|
||||
color: var(--color-brand-hover);
|
||||
}
|
||||
|
||||
.marketing .markdown-content a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.marketing .markdown-content blockquote {
|
||||
border-left: 3px solid var(--color-border-mid);
|
||||
padding-left: 1rem;
|
||||
margin: 1rem 0;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.marketing .markdown-content table {
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 1rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.marketing .markdown-content th,
|
||||
.marketing .markdown-content td {
|
||||
font: var(--txt-medium-14);
|
||||
line-height: 1.5;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.marketing .markdown-content th {
|
||||
font: var(--txt-bold-14);
|
||||
background: var(--color-surface-subtle);
|
||||
}
|
||||
|
||||
.marketing .markdown-content hr {
|
||||
border: none;
|
||||
border-top: 1px solid var(--color-border-subtle);
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.marketing .markdown-content figure {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.marketing .markdown-content figure img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.marketing .markdown-content figcaption {
|
||||
font: var(--txt-medium-14);
|
||||
color: var(--color-text-tertiary);
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
/* Inline link styles */
|
||||
.marketing .inline-link {
|
||||
color: var(--color-brand-hover);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.marketing .inline-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Product card styles (shared by Install and Learn pages) */
|
||||
.marketing .card-row {
|
||||
--product-card-gap: 4rem;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
row-gap: var(--product-card-gap);
|
||||
column-gap: var(--product-card-gap);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.marketing .product-card {
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.marketing .product-media {
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 10;
|
||||
object-fit: cover;
|
||||
border-radius: var(--border-radius-small);
|
||||
}
|
||||
|
||||
.marketing .product-card-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-right: 1.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.marketing .product-title {
|
||||
font: var(--txt-bold-18);
|
||||
color: var(--color-text-primary);
|
||||
padding: 0 0 0.5rem;
|
||||
}
|
||||
|
||||
.marketing .product-description {
|
||||
font: var(--txt-medium-16);
|
||||
color: var(--color-text-tertiary);
|
||||
margin: 0 0 0.75rem;
|
||||
}
|
||||
|
||||
.marketing .product-link {
|
||||
font: var(--txt-bold-16);
|
||||
color: var(--color-accent-blue-500);
|
||||
text-decoration: none;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.marketing .product-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media (max-width: 64rem) {
|
||||
.marketing .card-row {
|
||||
grid-template-columns: 1fr;
|
||||
row-gap: 1.5rem;
|
||||
column-gap: 0;
|
||||
}
|
||||
|
||||
.marketing .product-card-text {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Marketing sidebar active-indicator dot (see Sidebar.svelte). When the dot
|
||||
exists on both the outgoing and incoming page the browser morphs it between
|
||||
nav items automatically. When it only appears (enter) or disappears (exit),
|
||||
slide it in from / out to the left edge. `:only-child` singles out those
|
||||
enter/exit cases, leaving the morph untouched. */
|
||||
@keyframes sidebar-dot-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(-1.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sidebar-dot-out {
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translateX(-1.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* `both` holds the final keyframe after the 0.2s animation ends: the overall
|
||||
transition runs longer (the root fade+slide is 0.3s), and without a forwards
|
||||
fill the dot snapshot would revert to full opacity at its start position for
|
||||
the remaining time before the transition tears down. */
|
||||
::view-transition-new(sidebar-dot):only-child {
|
||||
animation: sidebar-dot-in 0.2s ease both;
|
||||
}
|
||||
|
||||
::view-transition-old(sidebar-dot):only-child {
|
||||
animation: sidebar-dot-out 0.2s ease both;
|
||||
}
|
||||
@@ -14,9 +14,12 @@
|
||||
import LoadingBar from "./App/LoadingBar.svelte";
|
||||
|
||||
import Commit from "@app/views/repos/Commit.svelte";
|
||||
import Explore from "@app/views/explore/View.svelte";
|
||||
import ExploreRepos from "@app/views/explore/ReposView.svelte";
|
||||
import History from "@app/views/repos/History.svelte";
|
||||
import Issue from "@app/views/repos/Issue.svelte";
|
||||
import Issues from "@app/views/repos/Issues.svelte";
|
||||
import Marketing from "@app/marketing/Marketing.svelte";
|
||||
import Nodes from "@app/views/nodes/View.svelte";
|
||||
import NotFound from "@app/views/NotFound.svelte";
|
||||
import Patch from "@app/views/repos/Patch.svelte";
|
||||
@@ -46,6 +49,10 @@
|
||||
|
||||
$: document.documentElement.setAttribute("data-codefont", $codeFont);
|
||||
$: document.documentElement.setAttribute("data-theme", $theme);
|
||||
$: document.documentElement.setAttribute(
|
||||
"data-repo-view",
|
||||
$activeRouteStore.resource.startsWith("repo.") ? "true" : "false",
|
||||
);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -71,6 +78,12 @@
|
||||
</div>
|
||||
{:else if $activeRouteStore.resource === "nodes"}
|
||||
<Nodes {...$activeRouteStore.params} />
|
||||
{:else if $activeRouteStore.resource === "explore"}
|
||||
<Explore {...$activeRouteStore.params} />
|
||||
{:else if $activeRouteStore.resource === "explore.repos"}
|
||||
<ExploreRepos {...$activeRouteStore.params} />
|
||||
{:else if $activeRouteStore.resource === "landing" || $activeRouteStore.resource === "learn" || $activeRouteStore.resource === "install" || $activeRouteStore.resource === "guides" || $activeRouteStore.resource === "desktop" || $activeRouteStore.resource === "cli" || $activeRouteStore.resource === "principles" || $activeRouteStore.resource === "docs"}
|
||||
<Marketing route={$activeRouteStore} />
|
||||
{:else if $activeRouteStore.resource === "users"}
|
||||
<Users {...$activeRouteStore.params} />
|
||||
{:else if $activeRouteStore.resource === "repo.source"}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script lang="ts">
|
||||
import ExternalLink from "@app/components/ExternalLink.svelte";
|
||||
import KeyHint from "@app/components/KeyHint.svelte";
|
||||
|
||||
export let hideShortcuts: boolean = false;
|
||||
@@ -20,19 +19,10 @@
|
||||
white-space: nowrap;
|
||||
gap: 2rem;
|
||||
}
|
||||
.divider {
|
||||
border-bottom: 1px solid var(--color-border-subtle);
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="help">
|
||||
<div class="item">
|
||||
About
|
||||
<ExternalLink href="https://radicle.dev">radicle.dev</ExternalLink>
|
||||
</div>
|
||||
|
||||
{#if !hideShortcuts}
|
||||
<div class="divider"></div>
|
||||
<div class="item">
|
||||
Keyboard shortcuts <KeyHint>?</KeyHint>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
<script lang="ts">
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import Link from "@app/components/Link.svelte";
|
||||
import Popover from "@app/components/Popover.svelte";
|
||||
|
||||
import Help from "./Help.svelte";
|
||||
import Settings from "./Settings.svelte";
|
||||
import { homeRoute } from "@app/lib/router";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -19,38 +15,14 @@
|
||||
border-top: 1px solid var(--color-border-subtle);
|
||||
background-color: var(--color-surface-base);
|
||||
}
|
||||
.divider {
|
||||
border-bottom: 1px solid var(--color-border-subtle);
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="mobile-footer">
|
||||
<Link
|
||||
style="width: 100%; display: flex; align-items: center; justify-content: center;"
|
||||
route={{ resource: "nodes", params: undefined }}>
|
||||
route={homeRoute()}>
|
||||
<Icon name="seed" />
|
||||
</Link>
|
||||
|
||||
<slot />
|
||||
|
||||
<div style:width="100%">
|
||||
<Popover popoverPositionBottom="3rem" popoverPositionRight="0">
|
||||
<Button
|
||||
let:expanded
|
||||
slot="toggle"
|
||||
variant={expanded ? "secondary" : "secondary-mobile-toggle"}
|
||||
styleWidth="100%"
|
||||
let:toggle
|
||||
on:click={toggle}>
|
||||
<Icon name="menu" />
|
||||
</Button>
|
||||
|
||||
<div slot="popover">
|
||||
<Help hideShortcuts />
|
||||
<div class="divider"></div>
|
||||
<Settings />
|
||||
</div>
|
||||
</Popover>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import { HttpdClient } from "@http-client";
|
||||
import {
|
||||
codeFont,
|
||||
codeFonts,
|
||||
@@ -6,8 +9,36 @@
|
||||
followSystemTheme,
|
||||
loadTheme,
|
||||
} from "@app/lib/appearance";
|
||||
import { determineSeed, selectedSeed } from "@app/views/nodes/SeedSelector";
|
||||
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import SeedPicker from "@app/views/explore/SeedPicker.svelte";
|
||||
|
||||
function seedKey(seed: BaseUrl): string {
|
||||
return `${seed.scheme}://${seed.hostname}:${seed.port}`;
|
||||
}
|
||||
|
||||
$: searchSeed = $selectedSeed ?? determineSeed();
|
||||
|
||||
// Whether the selected seed exposes the search backend (drives the callout).
|
||||
let seedSearchAvailable: boolean | undefined = undefined;
|
||||
$: void checkSeedSearch(searchSeed);
|
||||
|
||||
async function checkSeedSearch(seed: BaseUrl) {
|
||||
const key = seedKey(seed);
|
||||
seedSearchAvailable = undefined;
|
||||
try {
|
||||
const info = await new HttpdClient(seed).getInfo();
|
||||
if (seedKey(searchSeed) === key) {
|
||||
seedSearchAvailable = info.httpd.searchAvailable;
|
||||
}
|
||||
} catch {
|
||||
if (seedKey(searchSeed) === key) {
|
||||
seedSearchAvailable = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -31,9 +62,63 @@
|
||||
display: flex;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.seed-setting {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.seed-setting-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.description {
|
||||
font: var(--txt-body-s-regular);
|
||||
color: var(--color-text-tertiary);
|
||||
white-space: normal;
|
||||
max-width: 20rem;
|
||||
}
|
||||
.callout {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 0.625rem;
|
||||
border-radius: var(--border-radius-sm);
|
||||
background-color: var(--color-feedback-warning-bg);
|
||||
color: var(--color-feedback-warning-text);
|
||||
font: var(--txt-body-s-regular);
|
||||
white-space: normal;
|
||||
}
|
||||
.callout :global(svg) {
|
||||
flex-shrink: 0;
|
||||
margin-top: 0.125rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="settings">
|
||||
<div class="seed-setting">
|
||||
<div class="seed-setting-row">
|
||||
<div>Explore seed</div>
|
||||
<div class="right">
|
||||
<SeedPicker baseUrl={searchSeed} navigateOnApply={false} />
|
||||
</div>
|
||||
</div>
|
||||
<div class="description">
|
||||
The seed node used for exploring and searching the network.
|
||||
</div>
|
||||
{#if seedSearchAvailable === false}
|
||||
<div class="callout">
|
||||
<Icon name="warning" />
|
||||
<span>
|
||||
This seed doesn’t have the search backend enabled, so repository
|
||||
search is unavailable.
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>Theme</div>
|
||||
<div class="right" style:display="flex" style:gap="0.25rem">
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
</script>
|
||||
|
||||
<svg
|
||||
style:min-width="185px"
|
||||
style:min-width="130px"
|
||||
style:color={styleColor}
|
||||
viewBox="0 0 {viewBoxWidth} {heightWithPadding}"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
| "gray-white"
|
||||
| "selected"
|
||||
| "outline"
|
||||
| "foreground"
|
||||
| "secondary"
|
||||
| "secondary-toggle-off"
|
||||
| "secondary-mobile"
|
||||
@@ -36,13 +37,14 @@
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--border-radius-sm);
|
||||
font: var(--txt-body-m-medium);
|
||||
font: var(--txt-body-m-semibold);
|
||||
font-feature-settings: inherit;
|
||||
white-space: nowrap;
|
||||
gap: 0.5rem;
|
||||
touch-action: manipulation;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
@@ -161,6 +163,20 @@
|
||||
background-color: var(--color-surface-brand-secondary);
|
||||
}
|
||||
|
||||
.foreground {
|
||||
color: var(--color-surface-base);
|
||||
background-color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.foreground[disabled] {
|
||||
background-color: var(--color-surface-mid);
|
||||
color: var(--color-text-disabled);
|
||||
}
|
||||
|
||||
.foreground:not([disabled]):hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.secondary {
|
||||
color: var(--color-text-on-brand);
|
||||
background-color: var(--color-surface-brand-primary);
|
||||
@@ -270,6 +286,7 @@
|
||||
class:selected={variant === "selected"}
|
||||
class:gray={variant === "gray"}
|
||||
class:outline={variant === "outline"}
|
||||
class:foreground={variant === "foreground"}
|
||||
class:secondary-toggle-off={variant === "secondary-toggle-off"}
|
||||
class:secondary={variant === "secondary"}
|
||||
class:secondary-mobile={variant === "secondary-mobile"}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="txt-heading-m">
|
||||
{title}
|
||||
</div>
|
||||
<!-- This @html is secure since we don't allow user input -->
|
||||
<!-- description is rendered as HTML; callers must escape any interpolated user input. -->
|
||||
<div class="label">{@html description}</div>
|
||||
{#if error}
|
||||
<div class="help">
|
||||
|
||||
@@ -1,32 +1,173 @@
|
||||
<script lang="ts" context="module">
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import { HttpdClient } from "@http-client";
|
||||
|
||||
// Cache of `searchAvailable` per seed so navigating within a seed (which
|
||||
// remounts the Header) doesn't refetch /info and flicker the search bar.
|
||||
const searchAvailableCache: Record<string, boolean> = {};
|
||||
|
||||
function seedKey(baseUrl: BaseUrl): string {
|
||||
return `${baseUrl.scheme}://${baseUrl.hostname}:${baseUrl.port}`;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { activeRouteStore, homeRoute } from "@app/lib/router";
|
||||
import config from "@app/lib/config";
|
||||
import { isMobile } from "@app/lib/media";
|
||||
import { determineSeed, selectedSeed } from "@app/views/nodes/SeedSelector";
|
||||
|
||||
import Settings from "@app/App/Settings.svelte";
|
||||
import Help from "@app/App/Help.svelte";
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import IconButton from "@app/components/IconButton.svelte";
|
||||
import Link from "@app/components/Link.svelte";
|
||||
import Logo from "@app/components/Logo.svelte";
|
||||
import Popover from "@app/components/Popover.svelte";
|
||||
import HeaderSearch from "@app/views/explore/HeaderSearch.svelte";
|
||||
import MobileNav from "@app/marketing/MobileNav.svelte";
|
||||
import RepoSearch from "@app/views/explore/RepoSearch.svelte";
|
||||
import SeedPicker from "@app/views/explore/SeedPicker.svelte";
|
||||
|
||||
const isNodeHomepage = config.nodes.homepage === "node";
|
||||
const isLandingDeployment = config.nodes.homepage === "landing";
|
||||
$: hideLogo =
|
||||
isNodeHomepage && $activeRouteStore.resource.startsWith("repo.");
|
||||
$: isExplore =
|
||||
$activeRouteStore.resource === "explore" ||
|
||||
$activeRouteStore.resource === "explore.repos";
|
||||
// The marketing pages carry their own calls to action, so the header's
|
||||
// "Get started" button is hidden there.
|
||||
$: isMarketingRoute =
|
||||
$activeRouteStore.resource === "landing" ||
|
||||
$activeRouteStore.resource === "learn" ||
|
||||
$activeRouteStore.resource === "install" ||
|
||||
$activeRouteStore.resource === "guides" ||
|
||||
$activeRouteStore.resource === "desktop" ||
|
||||
$activeRouteStore.resource === "cli" ||
|
||||
$activeRouteStore.resource === "principles" ||
|
||||
$activeRouteStore.resource === "docs";
|
||||
// The explore and marketing routes both use the narrow, centered header
|
||||
// layout (fixed, constrained width, inline search) instead of the full-width
|
||||
// header used on repo and node views.
|
||||
$: isConstrainedHeader = isExplore || isMarketingRoute;
|
||||
|
||||
// Seed selection lives in Settings now, so the header no longer shows a
|
||||
// general seed picker. It's kept only on error routes as an escape hatch to
|
||||
// a working seed, using the route's seed when known and otherwise falling
|
||||
// back to the currently selected one. (The notFound view renders its own
|
||||
// inline picker, so it's excluded here.)
|
||||
$: seedPickerBaseUrl =
|
||||
$activeRouteStore.resource === "error"
|
||||
? ($activeRouteStore.params.baseUrl ?? determineSeed())
|
||||
: undefined;
|
||||
|
||||
// Search always queries the selected explore seed, regardless of which seed
|
||||
// the current page (e.g. a repo view) was served from.
|
||||
$: searchSeed = $selectedSeed ?? determineSeed();
|
||||
|
||||
// The explore routes already resolved /info during load; reuse it, but only
|
||||
// when it describes the same seed we're about to search.
|
||||
$: routeSearchAvailable =
|
||||
($activeRouteStore.resource === "explore" ||
|
||||
$activeRouteStore.resource === "explore.repos") &&
|
||||
seedKey($activeRouteStore.params.baseUrl) === seedKey(searchSeed)
|
||||
? $activeRouteStore.params.searchAvailable
|
||||
: undefined;
|
||||
|
||||
let searchAvailable = false;
|
||||
$: void resolveSearchAvailable(searchSeed, routeSearchAvailable);
|
||||
|
||||
async function resolveSearchAvailable(
|
||||
seed: BaseUrl,
|
||||
known: boolean | undefined,
|
||||
) {
|
||||
const key = seedKey(seed);
|
||||
if (known !== undefined) {
|
||||
searchAvailableCache[key] = known;
|
||||
searchAvailable = known;
|
||||
return;
|
||||
}
|
||||
if (key in searchAvailableCache) {
|
||||
searchAvailable = searchAvailableCache[key];
|
||||
return;
|
||||
}
|
||||
searchAvailable = false;
|
||||
try {
|
||||
const info = await new HttpdClient(seed).getInfo();
|
||||
searchAvailableCache[key] = info.httpd.searchAvailable;
|
||||
} catch {
|
||||
// Older nodes without /info (or an unreachable seed) have no search.
|
||||
searchAvailableCache[key] = false;
|
||||
}
|
||||
if (seedKey(searchSeed) === key) {
|
||||
searchAvailable = searchAvailableCache[key];
|
||||
}
|
||||
}
|
||||
|
||||
// Inline bar only on the explore/marketing routes at desktop widths;
|
||||
// everywhere else (mobile, or a repo/node route) the search collapses into a
|
||||
// button.
|
||||
$: collapsedSearch = $isMobile || !isConstrainedHeader;
|
||||
// Search is offered on every route whose seed exposes the search backend;
|
||||
// `booting` renders no header at all, so it needs no explicit exclusion.
|
||||
$: showSearch = searchAvailable;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.header-container {
|
||||
background-color: var(--color-surface-base);
|
||||
padding: 0 1rem;
|
||||
border-bottom: 1px solid var(--color-border-subtle);
|
||||
height: var(--global-header-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 200;
|
||||
/* Pin the header across navigations: giving it its own transition group
|
||||
lifts it out of the root snapshot so it stays put instead of fading and
|
||||
sliding with the page content (which briefly flashed the bar). Its named
|
||||
children still morph independently within it. */
|
||||
view-transition-name: header;
|
||||
}
|
||||
.header-container.fixed {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
.header-spacer {
|
||||
height: var(--global-header-height);
|
||||
}
|
||||
.header-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0 1rem;
|
||||
position: relative;
|
||||
}
|
||||
.header-inner.constrained {
|
||||
max-width: 86rem;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
}
|
||||
.left-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
height: 100%;
|
||||
}
|
||||
.left-divider {
|
||||
width: 1px;
|
||||
height: 1.25rem;
|
||||
background-color: var(--color-border-subtle);
|
||||
}
|
||||
.right-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.divider {
|
||||
@@ -34,42 +175,126 @@
|
||||
width: 100%;
|
||||
background-color: var(--color-border-subtle);
|
||||
}
|
||||
.header-logo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
view-transition-name: header-logo;
|
||||
}
|
||||
.get-started {
|
||||
text-decoration: none;
|
||||
view-transition-name: header-get-started;
|
||||
}
|
||||
.header-settings {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
view-transition-name: header-settings;
|
||||
}
|
||||
.header-search {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: clamp(18rem, 30vw, 34rem);
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.get-started {
|
||||
display: none;
|
||||
}
|
||||
.header-inner.constrained {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
/* The breadcrumbs (e.g. the node/repo trail on repo pages) are hidden on
|
||||
mobile for lack of space, so drop the divider that precedes them too. */
|
||||
.left-divider {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="header-container">
|
||||
<div class="left-section">
|
||||
{#if !$$slots.breadcrumbs}
|
||||
<Link
|
||||
ariaLabel="Home"
|
||||
route={{ resource: "nodes", params: undefined }}
|
||||
style="height: 1rem; display: flex; align-items: center;">
|
||||
<Logo />
|
||||
</Link>
|
||||
{/if}
|
||||
<slot name="breadcrumbs" />
|
||||
</div>
|
||||
<div class="header-container" class:fixed={isConstrainedHeader}>
|
||||
<div class="header-inner" class:constrained={isConstrainedHeader}>
|
||||
<div class="left-section">
|
||||
{#if !hideLogo}
|
||||
<Link
|
||||
ariaLabel="Radicle"
|
||||
route={homeRoute()}
|
||||
style="height: 1rem; display: flex; align-items: center;">
|
||||
<span class="header-logo"><Logo /></span>
|
||||
</Link>
|
||||
{/if}
|
||||
{#if $$slots.breadcrumbs && !hideLogo}
|
||||
<div class="left-divider"></div>
|
||||
{/if}
|
||||
<slot name="breadcrumbs" />
|
||||
</div>
|
||||
|
||||
<div class="right-section">
|
||||
<Popover popoverPositionTop="2.5rem" popoverPositionRight="0">
|
||||
<IconButton
|
||||
slot="toggle"
|
||||
let:toggle
|
||||
on:click={toggle}
|
||||
inline
|
||||
ariaLabel="Settings">
|
||||
<Icon name="settings" />
|
||||
</IconButton>
|
||||
|
||||
<div
|
||||
slot="popover"
|
||||
style:display="flex"
|
||||
style:flex-direction="column"
|
||||
style:gap="0.75rem"
|
||||
style:align-items="flex-start">
|
||||
<Settings />
|
||||
<div class="divider"></div>
|
||||
<Help />
|
||||
{#if showSearch && !collapsedSearch}
|
||||
<div class="header-search">
|
||||
<RepoSearch baseUrl={searchSeed} />
|
||||
</div>
|
||||
</Popover>
|
||||
{/if}
|
||||
|
||||
<div class="right-section">
|
||||
{#if showSearch && collapsedSearch}
|
||||
<HeaderSearch baseUrl={searchSeed} />
|
||||
{/if}
|
||||
{#if seedPickerBaseUrl}
|
||||
<SeedPicker baseUrl={seedPickerBaseUrl} />
|
||||
{/if}
|
||||
{#if isMarketingRoute}
|
||||
<span class="get-started">
|
||||
<Link route={{ resource: "install", params: undefined }}>
|
||||
<Button variant="foreground">Get started</Button>
|
||||
</Link>
|
||||
</span>
|
||||
{:else if isLandingDeployment}
|
||||
<span class="get-started">
|
||||
<Link route={{ resource: "install", params: undefined }}>
|
||||
<Button variant="outline">Get started</Button>
|
||||
</Link>
|
||||
</span>
|
||||
{:else}
|
||||
<a
|
||||
class="get-started"
|
||||
href="https://radicle.dev"
|
||||
target="_blank"
|
||||
rel="noreferrer">
|
||||
<Button variant="outline">Get started</Button>
|
||||
</a>
|
||||
{/if}
|
||||
<Popover
|
||||
popoverPositionTop="2.5rem"
|
||||
popoverPositionRight="0"
|
||||
popoverFullWidthOnMobile>
|
||||
<IconButton
|
||||
slot="toggle"
|
||||
let:toggle
|
||||
on:click={toggle}
|
||||
inline
|
||||
ariaLabel="Settings">
|
||||
<span class="header-settings"><Icon name="settings" /></span>
|
||||
</IconButton>
|
||||
|
||||
<div
|
||||
slot="popover"
|
||||
style:display="flex"
|
||||
style:flex-direction="column"
|
||||
style:gap="0.75rem"
|
||||
style:align-items="stretch">
|
||||
<Settings />
|
||||
<div class="divider"></div>
|
||||
<Help />
|
||||
</div>
|
||||
</Popover>
|
||||
{#if isMarketingRoute}
|
||||
<MobileNav />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{#if isConstrainedHeader}
|
||||
<div class="header-spacer"></div>
|
||||
{/if}
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
icon.setAttribute("name", "warning");
|
||||
warning.appendChild(icon);
|
||||
const text = document.createElement("span");
|
||||
text.textContent = "Couldn't render diagram";
|
||||
text.textContent = "Couldn’t render diagram";
|
||||
warning.appendChild(text);
|
||||
preWrapper.before(warning);
|
||||
}
|
||||
|
||||
@@ -1,13 +1,23 @@
|
||||
<script lang="ts" context="module">
|
||||
import { writable } from "svelte/store";
|
||||
const focused = writable<HTMLDivElement | undefined>(undefined);
|
||||
|
||||
// Stack of currently-open popovers, ordered outermost → innermost. This
|
||||
// supports nesting: a popover opened inside another's content is pushed on
|
||||
// top and both stay open. Opening an unrelated (sibling) popover drops the
|
||||
// ones that aren't its ancestors, so non-nested behaviour is unchanged —
|
||||
// only one popover per branch is ever open.
|
||||
const focusedStack = writable<HTMLDivElement[]>([]);
|
||||
|
||||
// Close the topmost open popover — what every in-popover action (selecting
|
||||
// an item, navigating) wants when it dismisses "the popover I'm in".
|
||||
export function closeFocused() {
|
||||
focused.set(undefined);
|
||||
focusedStack.update(stack => stack.slice(0, -1));
|
||||
}
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { onDestroy } from "svelte";
|
||||
|
||||
export let popoverContainerMinWidth: string | undefined = undefined;
|
||||
export let popoverBorderRadius: string | undefined = undefined;
|
||||
export let popoverPadding: string | undefined = undefined;
|
||||
@@ -15,26 +25,46 @@
|
||||
export let popoverPositionLeft: string | undefined = undefined;
|
||||
export let popoverPositionRight: string | undefined = undefined;
|
||||
export let popoverPositionTop: string | undefined = undefined;
|
||||
// On mobile, break out of the (possibly narrow, off-screen) anchored
|
||||
// position and span the viewport width, pinned below the header.
|
||||
export let popoverFullWidthOnMobile = false;
|
||||
|
||||
export let expanded = false;
|
||||
let thisComponent: HTMLDivElement;
|
||||
|
||||
function clickOutside(ev: MouseEvent | TouchEvent) {
|
||||
if ($focused && !ev.composedPath().includes($focused)) {
|
||||
closeFocused();
|
||||
}
|
||||
const path = ev.composedPath();
|
||||
focusedStack.update(stack => {
|
||||
// Pop popovers from the top while the click landed outside them. A
|
||||
// click inside a parent but outside its open child closes just the
|
||||
// child; a click outside everything closes the whole stack.
|
||||
let depth = stack.length;
|
||||
while (depth > 0 && !path.includes(stack[depth - 1])) {
|
||||
depth -= 1;
|
||||
}
|
||||
return depth === stack.length ? stack : stack.slice(0, depth);
|
||||
});
|
||||
}
|
||||
|
||||
function toggle() {
|
||||
expanded = !expanded;
|
||||
if ($focused === thisComponent) {
|
||||
closeFocused();
|
||||
} else {
|
||||
focused.set(thisComponent);
|
||||
}
|
||||
focusedStack.update(stack => {
|
||||
const index = stack.indexOf(thisComponent);
|
||||
if (index !== -1) {
|
||||
// Closing: also dismiss anything nested inside this popover.
|
||||
return stack.slice(0, index);
|
||||
}
|
||||
// Opening: keep only this popover's open ancestors (drop siblings and
|
||||
// unrelated open popovers), then push this one on top.
|
||||
const ancestors = stack.filter(c => c.contains(thisComponent));
|
||||
return [...ancestors, thisComponent];
|
||||
});
|
||||
}
|
||||
|
||||
$: expanded = $focused === thisComponent;
|
||||
$: expanded = $focusedStack.includes(thisComponent);
|
||||
|
||||
onDestroy(() => {
|
||||
focusedStack.update(stack => stack.filter(c => c !== thisComponent));
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -50,6 +80,16 @@
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.popover.full-width-mobile {
|
||||
position: fixed;
|
||||
top: var(--global-header-height) !important;
|
||||
right: 0.5rem !important;
|
||||
bottom: auto !important;
|
||||
left: 0.5rem !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:window on:click={clickOutside} on:touchstart={clickOutside} />
|
||||
@@ -63,6 +103,7 @@
|
||||
{#if expanded}
|
||||
<div
|
||||
class="popover"
|
||||
class:full-width-mobile={popoverFullWidthOnMobile}
|
||||
style:bottom={popoverPositionBottom}
|
||||
style:left={popoverPositionLeft}
|
||||
style:right={popoverPositionRight}
|
||||
|
||||
@@ -65,13 +65,13 @@
|
||||
|
||||
.activity {
|
||||
flex: 1;
|
||||
max-width: 12rem;
|
||||
max-width: 9rem;
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
.activity-shimmer {
|
||||
width: 100%;
|
||||
min-width: 185px;
|
||||
min-width: 130px;
|
||||
aspect-ratio: 493 / 116;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
@@ -144,7 +144,7 @@
|
||||
color: var(--color-text-on-brand);
|
||||
}
|
||||
|
||||
@container (max-width: 30rem) {
|
||||
@container (max-width: 22rem) {
|
||||
.activity {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
<script lang="ts"></script>
|
||||
|
||||
<style>
|
||||
.repo-card {
|
||||
container-type: inline-size;
|
||||
height: 10rem;
|
||||
background-color: var(--color-surface-canvas);
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
margin-top: -1px;
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.shimmer {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--color-surface-mid) 0%,
|
||||
var(--color-surface-strong) 50%,
|
||||
var(--color-surface-mid) 100%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.4s ease-in-out infinite;
|
||||
border-radius: var(--border-radius-sm);
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.title {
|
||||
height: 1rem;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.description {
|
||||
height: 0.875rem;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.rid {
|
||||
height: 0.875rem;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.stats-row {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.stat {
|
||||
height: 1rem;
|
||||
width: 2.5rem;
|
||||
}
|
||||
|
||||
.updated {
|
||||
height: 0.875rem;
|
||||
width: 6rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.content-and-activity {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.activity {
|
||||
flex: 1;
|
||||
max-width: 9rem;
|
||||
height: 2rem;
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
@container (max-width: 22rem) {
|
||||
.activity {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% {
|
||||
background-position: 200% 0;
|
||||
}
|
||||
100% {
|
||||
background-position: -200% 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.shimmer {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="repo-card">
|
||||
<div class="row">
|
||||
<div class="shimmer avatar"></div>
|
||||
<div class="shimmer title"></div>
|
||||
</div>
|
||||
<div class="content-and-activity">
|
||||
<div class="content">
|
||||
<div class="shimmer description"></div>
|
||||
<div class="shimmer rid"></div>
|
||||
</div>
|
||||
<div class="shimmer activity"></div>
|
||||
</div>
|
||||
<div class="stats-row">
|
||||
<div class="shimmer stat"></div>
|
||||
<div class="shimmer stat"></div>
|
||||
<div class="shimmer stat"></div>
|
||||
<div class="shimmer updated"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -422,7 +422,7 @@ export const cachedUserAvatar = cached(
|
||||
{ max: 2000 },
|
||||
);
|
||||
|
||||
function renderRepoAvatar(key: string): string {
|
||||
export function renderRepoAvatar(key: string): string {
|
||||
if (typeof window === "undefined") {
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -18,6 +18,32 @@ type Equals<X, Y> =
|
||||
* @param disableLocalStorage Skip interaction with localStorage, for example during SSR.
|
||||
* @returns A stored writable.
|
||||
*/
|
||||
function safeGetItem(key: string): string | null {
|
||||
try {
|
||||
return localStorage.getItem(key);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function safeSetItem(key: string, value: string): void {
|
||||
try {
|
||||
localStorage.setItem(key, value);
|
||||
} catch {
|
||||
// localStorage can throw on write in Safari private mode or when the
|
||||
// quota is exceeded. The in-memory store still works for this session;
|
||||
// the user just won't have persistence across reloads.
|
||||
}
|
||||
}
|
||||
|
||||
function safeRemoveItem(key: string): void {
|
||||
try {
|
||||
localStorage.removeItem(key);
|
||||
} catch {
|
||||
// See safeSetItem.
|
||||
}
|
||||
}
|
||||
|
||||
export default function storedWritable<
|
||||
S extends z.infer<T>,
|
||||
T extends z.ZodType = z.ZodType<S>,
|
||||
@@ -29,7 +55,7 @@ export default function storedWritable<
|
||||
): Writable<
|
||||
Equals<T, typeof schema> extends true ? S : z.infer<typeof schema>
|
||||
> & { clear: () => void } {
|
||||
const stored = !disableLocalStorage ? localStorage.getItem(key) : null;
|
||||
const stored = !disableLocalStorage ? safeGetItem(key) : null;
|
||||
|
||||
const parseFromJson = (content: string) => {
|
||||
return z
|
||||
@@ -74,7 +100,7 @@ export default function storedWritable<
|
||||
* */
|
||||
function set(...args: Parameters<typeof w.set>) {
|
||||
w.set(...args);
|
||||
if (!disableLocalStorage) localStorage.setItem(key, JSON.stringify(get(w)));
|
||||
if (!disableLocalStorage) safeSetItem(key, JSON.stringify(get(w)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,7 +109,7 @@ export default function storedWritable<
|
||||
* */
|
||||
function update(...args: Parameters<typeof w.update>) {
|
||||
w.update(...args);
|
||||
if (!disableLocalStorage) localStorage.setItem(key, JSON.stringify(get(w)));
|
||||
if (!disableLocalStorage) safeSetItem(key, JSON.stringify(get(w)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -91,7 +117,7 @@ export default function storedWritable<
|
||||
*/
|
||||
function clear() {
|
||||
w.set(initialValue as S);
|
||||
if (!disableLocalStorage) localStorage.removeItem(key);
|
||||
if (!disableLocalStorage) safeRemoveItem(key);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { readable } from "svelte/store";
|
||||
|
||||
// Reactive store that tracks whether a CSS media query currently matches.
|
||||
// Returns `false` during SSR / when `matchMedia` is unavailable.
|
||||
export function mediaQuery(query: string) {
|
||||
return readable(false, set => {
|
||||
if (typeof window === "undefined" || !window.matchMedia) {
|
||||
return;
|
||||
}
|
||||
const mql = window.matchMedia(query);
|
||||
set(mql.matches);
|
||||
const onChange = () => set(mql.matches);
|
||||
mql.addEventListener("change", onChange);
|
||||
return () => mql.removeEventListener("change", onChange);
|
||||
});
|
||||
}
|
||||
|
||||
// Mobile breakpoint, matching `0px - 719.98px` from public/index.css.
|
||||
export const isMobile = mediaQuery("(max-width: 719.98px)");
|
||||
@@ -2,6 +2,7 @@ import type { BaseUrl } from "@http-client";
|
||||
import type { LoadedRoute, Route } from "@app/lib/router/definitions";
|
||||
|
||||
import { get, writable } from "svelte/store";
|
||||
import { tick } from "svelte";
|
||||
|
||||
import * as mutexExecutor from "@app/lib/mutexExecutor";
|
||||
import * as utils from "@app/lib/utils";
|
||||
@@ -13,7 +14,10 @@ import {
|
||||
} from "@app/views/repos/router";
|
||||
import { loadRoute } from "@app/lib/router/definitions";
|
||||
import { nodePath } from "@app/views/nodes/router";
|
||||
import { determineSeed } from "@app/views/nodes/SeedSelector";
|
||||
import { userRouteToPath, userTitle } from "@app/views/users/router";
|
||||
import { exploreReposPath, exploreTitle } from "@app/views/explore/router";
|
||||
import { docsTitle, marketingRoute } from "@app/marketing/router";
|
||||
|
||||
export { type Route };
|
||||
|
||||
@@ -25,6 +29,55 @@ export const activeUnloadedRouteStore = writable<Route>(InitialStore);
|
||||
|
||||
let currentUrl: URL | undefined;
|
||||
|
||||
// Scroll restoration. The browser's native restoration is unreliable for a
|
||||
// client-side router whose content renders asynchronously, so we manage it
|
||||
// ourselves: every history entry carries a `scrollKey`, and we remember the
|
||||
// last scroll offset seen for each key. On a back/forward navigation we restore
|
||||
// the destination entry's offset; on a fresh navigation we scroll to the top,
|
||||
// or to the URL fragment if the destination carries one.
|
||||
const HEADER_SCROLL_OFFSET = 80;
|
||||
const scrollPositions = new Map<number, number>();
|
||||
let nextScrollKey =
|
||||
typeof window !== "undefined"
|
||||
? (readScrollKey(window.history.state) ?? 0)
|
||||
: 0;
|
||||
let pendingRestoreScrollY: number | undefined;
|
||||
|
||||
function readScrollKey(state: unknown): number | undefined {
|
||||
if (
|
||||
state &&
|
||||
typeof (state as { scrollKey?: unknown }).scrollKey === "number"
|
||||
) {
|
||||
return (state as { scrollKey: number }).scrollKey;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (typeof window !== "undefined") {
|
||||
if ("scrollRestoration" in window.history) {
|
||||
window.history.scrollRestoration = "manual";
|
||||
}
|
||||
// Continuously record the current entry's scroll offset (throttled to one
|
||||
// write per frame) so back/forward always has an up-to-date value to restore.
|
||||
let scrollFrame = 0;
|
||||
window.addEventListener(
|
||||
"scroll",
|
||||
() => {
|
||||
if (scrollFrame) {
|
||||
return;
|
||||
}
|
||||
scrollFrame = window.requestAnimationFrame(() => {
|
||||
scrollFrame = 0;
|
||||
const key = readScrollKey(window.history.state);
|
||||
if (key !== undefined) {
|
||||
scrollPositions.set(key, window.scrollY);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ passive: true },
|
||||
);
|
||||
}
|
||||
|
||||
export function useDefaultNavigation(event: MouseEvent) {
|
||||
return (
|
||||
event.button !== 0 ||
|
||||
@@ -54,6 +107,17 @@ export async function navigateToUrl(
|
||||
currentUrl.pathname === pathname &&
|
||||
currentUrl.search === url.search
|
||||
) {
|
||||
// Same path and query: the route is unchanged, so we skip reloading it. But
|
||||
// a back/forward navigation (popstate) sets `pendingRestoreScrollY`, and it
|
||||
// must be consumed here too. Otherwise it lingers and the next navigation
|
||||
// wrongly treats itself as a pop — restoring a stale offset and skipping the
|
||||
// outgoing entry's scroll save. This is reachable via native hash-only
|
||||
// history entries (in-page `#fragment` links, which bypass the router).
|
||||
// Restore the remembered offset now, matching the pop branch in `navigate`.
|
||||
if (pendingRestoreScrollY !== undefined) {
|
||||
window.scrollTo(0, pendingRestoreScrollY);
|
||||
pendingRestoreScrollY = undefined;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -62,7 +126,7 @@ export async function navigateToUrl(
|
||||
const route = urlToRoute(url);
|
||||
|
||||
if (route) {
|
||||
await navigate(action, route);
|
||||
await navigate(action, route, hash);
|
||||
} else {
|
||||
await navigate(action, {
|
||||
resource: "notFound",
|
||||
@@ -71,21 +135,56 @@ export async function navigateToUrl(
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener("popstate", () => loadFromLocation());
|
||||
window.addEventListener("popstate", event => {
|
||||
const key = readScrollKey(event.state);
|
||||
pendingRestoreScrollY =
|
||||
key !== undefined ? (scrollPositions.get(key) ?? 0) : 0;
|
||||
void loadFromLocation();
|
||||
});
|
||||
|
||||
const loadExecutor = mutexExecutor.create();
|
||||
|
||||
async function navigate(
|
||||
action: "push" | "replace",
|
||||
newRoute: Route,
|
||||
// Optional URL fragment to preserve, so links like `/faq#general` land on the
|
||||
// right section. `routeToPath` builds only the path, so the hash is appended
|
||||
// here and picked up by `restoreScroll` below once the view has rendered.
|
||||
hash: string = "",
|
||||
): Promise<void> {
|
||||
isLoading.set(true);
|
||||
const path = routeToPath(newRoute);
|
||||
const path = routeToPath(newRoute) + hash;
|
||||
|
||||
// A back/forward navigation sets `pendingRestoreScrollY` from the popstate
|
||||
// handler; consume it here so any concurrent push can't inherit it.
|
||||
const restoreScrollY = pendingRestoreScrollY;
|
||||
pendingRestoreScrollY = undefined;
|
||||
const isPop = restoreScrollY !== undefined;
|
||||
|
||||
// Remember the outgoing entry's scroll before we leave it. Skipped on pop:
|
||||
// the browser has already made the destination the active entry, so reading
|
||||
// `history.state` here would return the destination's key, not the source's.
|
||||
if (!isPop) {
|
||||
const currentKey = readScrollKey(window.history.state);
|
||||
if (currentKey !== undefined) {
|
||||
scrollPositions.set(currentKey, window.scrollY);
|
||||
}
|
||||
}
|
||||
|
||||
if (action === "push") {
|
||||
window.history.pushState(newRoute, "", path);
|
||||
nextScrollKey += 1;
|
||||
window.history.pushState(
|
||||
{ route: newRoute, scrollKey: nextScrollKey },
|
||||
"",
|
||||
path,
|
||||
);
|
||||
} else if (action === "replace") {
|
||||
window.history.replaceState(newRoute, "");
|
||||
let key = readScrollKey(window.history.state);
|
||||
if (key === undefined) {
|
||||
nextScrollKey += 1;
|
||||
key = nextScrollKey;
|
||||
}
|
||||
window.history.replaceState({ route: newRoute, scrollKey: key }, "");
|
||||
}
|
||||
currentUrl = new URL(window.location.href);
|
||||
const currentLoadedRoute = get(activeRouteStore);
|
||||
@@ -99,10 +198,81 @@ async function navigate(
|
||||
return;
|
||||
}
|
||||
|
||||
setTitle(loadedRoute);
|
||||
activeRouteStore.set(loadedRoute);
|
||||
activeUnloadedRouteStore.set(newRoute);
|
||||
isLoading.set(false);
|
||||
let applied = false;
|
||||
const apply = () => {
|
||||
if (applied) {
|
||||
return;
|
||||
}
|
||||
applied = true;
|
||||
setTitle(loadedRoute);
|
||||
activeRouteStore.set(loadedRoute);
|
||||
activeUnloadedRouteStore.set(newRoute);
|
||||
isLoading.set(false);
|
||||
};
|
||||
|
||||
// Restore the remembered offset on back/forward; otherwise scroll to the
|
||||
// destination's fragment, or to the top for a plain navigation. Runs after
|
||||
// the new view is in the DOM (post-`tick`) so the target element exists.
|
||||
const restoreScroll = () => {
|
||||
if (isPop) {
|
||||
window.scrollTo(0, restoreScrollY ?? 0);
|
||||
return;
|
||||
}
|
||||
if (hash.length > 1) {
|
||||
const el = document.querySelector(hash);
|
||||
if (el) {
|
||||
const top =
|
||||
el.getBoundingClientRect().top +
|
||||
window.scrollY -
|
||||
HEADER_SCROLL_OFFSET;
|
||||
window.scrollTo(0, Math.max(0, top));
|
||||
return;
|
||||
}
|
||||
}
|
||||
window.scrollTo(0, 0);
|
||||
};
|
||||
|
||||
if (
|
||||
shouldAnimateRouteTransition(currentLoadedRoute, loadedRoute) &&
|
||||
typeof document.startViewTransition === "function"
|
||||
) {
|
||||
const transition = document.startViewTransition(async () => {
|
||||
apply();
|
||||
await tick();
|
||||
restoreScroll();
|
||||
});
|
||||
// Safety net: the view-transition update callback can be skipped or
|
||||
// abandoned when the DOM mutates concurrently (e.g. the header search
|
||||
// closing its dropdown as it navigates). If that happens the callback
|
||||
// above never runs `apply()`, leaving the route unchanged and the loading
|
||||
// indicator stuck. Apply directly in that case so navigation always
|
||||
// completes; `apply()` is idempotent so the normal path is unaffected.
|
||||
transition.updateCallbackDone.catch(() => {
|
||||
apply();
|
||||
restoreScroll();
|
||||
});
|
||||
} else {
|
||||
apply();
|
||||
await tick();
|
||||
restoreScroll();
|
||||
}
|
||||
}
|
||||
|
||||
function shouldAnimateRouteTransition(
|
||||
previous: LoadedRoute,
|
||||
next: LoadedRoute,
|
||||
): boolean {
|
||||
const isRepo = (r: LoadedRoute) => r.resource.startsWith("repo.");
|
||||
// Run the global page transition (fade + slide, see index.css) on every
|
||||
// client-side navigation, except:
|
||||
// - the initial load, where `previous` is still the "booting" placeholder;
|
||||
// the first page should paint instantly rather than slide in.
|
||||
// - navigation between two repo pages (e.g. switching tabs within a repo),
|
||||
// where a full-page slide would be distracting.
|
||||
if (previous.resource === "booting") {
|
||||
return false;
|
||||
}
|
||||
return !(isRepo(previous) && isRepo(next));
|
||||
}
|
||||
|
||||
function setTitle(loadedRoute: LoadedRoute) {
|
||||
@@ -130,6 +300,27 @@ function setTitle(loadedRoute: LoadedRoute) {
|
||||
title.push(...repoTitle(loadedRoute));
|
||||
} else if (loadedRoute.resource === "nodes") {
|
||||
title.push(loadedRoute.params.baseUrl.hostname);
|
||||
} else if (
|
||||
loadedRoute.resource === "explore" ||
|
||||
loadedRoute.resource === "explore.repos"
|
||||
) {
|
||||
title.push(...exploreTitle(loadedRoute));
|
||||
} else if (loadedRoute.resource === "landing") {
|
||||
title.push("Radicle");
|
||||
} else if (loadedRoute.resource === "learn") {
|
||||
title.push("Learn", "Radicle");
|
||||
} else if (loadedRoute.resource === "install") {
|
||||
title.push("Install", "Radicle");
|
||||
} else if (loadedRoute.resource === "guides") {
|
||||
title.push("Guides", "Radicle");
|
||||
} else if (loadedRoute.resource === "desktop") {
|
||||
title.push("Desktop", "Radicle");
|
||||
} else if (loadedRoute.resource === "cli") {
|
||||
title.push("CLI", "Radicle");
|
||||
} else if (loadedRoute.resource === "principles") {
|
||||
title.push("How it works", "Radicle");
|
||||
} else if (loadedRoute.resource === "docs") {
|
||||
title.push(...docsTitle(loadedRoute.params.page));
|
||||
} else {
|
||||
utils.unreachable(loadedRoute);
|
||||
}
|
||||
@@ -145,6 +336,60 @@ export async function replace(newRoute: Route): Promise<void> {
|
||||
await navigate("replace", newRoute);
|
||||
}
|
||||
|
||||
// Return a copy of `route` with any baseUrl-bearing field replaced by
|
||||
// `baseUrl`. Used by the SeedPicker so that selecting a different seed
|
||||
// from e.g. an "unreachable node" error view retries the same logical
|
||||
// page (repo, user, node) on the new seed instead of looping on the
|
||||
// original bad host. A not-found page is tied to a specific node/repo, so
|
||||
// it retries the node view on the chosen seed. Error and booting routes
|
||||
// carry no logical page to preserve, so they return to the app's home
|
||||
// (the marketing landing for `homepage: "landing"`, otherwise the node page),
|
||||
// which resolves the just-selected seed via `selectedSeed`. Explore routes have
|
||||
// no baseUrl field and resolve the active seed via `selectedSeed`, so they
|
||||
// pass through unchanged.
|
||||
export function withBaseUrl(route: Route, baseUrl: BaseUrl): Route {
|
||||
switch (route.resource) {
|
||||
case "nodes":
|
||||
return {
|
||||
...route,
|
||||
params: { baseUrl, repoPageIndex: route.params?.repoPageIndex ?? 0 },
|
||||
};
|
||||
case "users":
|
||||
return { ...route, baseUrl };
|
||||
case "repo.source":
|
||||
case "repo.history":
|
||||
case "repo.commit":
|
||||
case "repo.issues":
|
||||
case "repo.issue":
|
||||
case "repo.patches":
|
||||
case "repo.patch":
|
||||
return { ...route, node: baseUrl };
|
||||
case "notFound":
|
||||
return {
|
||||
resource: "nodes",
|
||||
params: { baseUrl, repoPageIndex: 0 },
|
||||
};
|
||||
case "error":
|
||||
case "booting":
|
||||
return homeRoute();
|
||||
default:
|
||||
return route;
|
||||
}
|
||||
}
|
||||
|
||||
// Resolve the route that backs the `/` URL. Deployments default to the node
|
||||
// page for the user's selected (or default) seed; `homepage: "landing"` opts
|
||||
// into the full marketing site instead.
|
||||
export function homeRoute(): Route {
|
||||
if (config.nodes.homepage === "landing") {
|
||||
return { resource: "landing", params: undefined };
|
||||
}
|
||||
return {
|
||||
resource: "nodes",
|
||||
params: { baseUrl: determineSeed(), repoPageIndex: 0 },
|
||||
};
|
||||
}
|
||||
|
||||
export function extractBaseUrl(hostAndPort: string): BaseUrl {
|
||||
const [hostname, portString] = decodeURIComponent(hostAndPort).split(":");
|
||||
|
||||
@@ -173,7 +418,12 @@ export function extractBaseUrl(hostAndPort: string): BaseUrl {
|
||||
}
|
||||
|
||||
function urlToRoute(url: URL): Route | null {
|
||||
const segments = url.pathname.substring(1).split("/");
|
||||
// Normalize a trailing slash (`/guides/protocol/` → `/guides/protocol`) so
|
||||
// both the strict marketing resolver and the lenient repo resolver agree.
|
||||
// Without this the residual empty segment makes marketing routes 404 while
|
||||
// repo routes silently absorb it. `|| "/"` keeps the root path intact.
|
||||
const pathname = url.pathname.replace(/\/+$/, "") || "/";
|
||||
const segments = pathname.substring(1).split("/");
|
||||
|
||||
const resource = segments.shift();
|
||||
switch (resource) {
|
||||
@@ -204,8 +454,48 @@ function urlToRoute(url: URL): Route | null {
|
||||
};
|
||||
}
|
||||
}
|
||||
case "explore": {
|
||||
const sub = segments.shift();
|
||||
if (sub === undefined) {
|
||||
return { resource: "explore", params: undefined };
|
||||
}
|
||||
if (sub === "repos") {
|
||||
const page = Number(url.searchParams.get("page") ?? "0");
|
||||
const sortParam = url.searchParams.get("sort");
|
||||
const sort =
|
||||
sortParam === "activity"
|
||||
? "activity"
|
||||
: sortParam === "rid"
|
||||
? "rid"
|
||||
: "seeding";
|
||||
return {
|
||||
resource: "explore.repos",
|
||||
params: {
|
||||
page: Number.isFinite(page) && page > 0 ? page : 0,
|
||||
sort,
|
||||
},
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
case "learn":
|
||||
case "install":
|
||||
case "faq":
|
||||
case "glossary":
|
||||
case "download":
|
||||
case "guides":
|
||||
case "desktop":
|
||||
case "cli":
|
||||
case "principles": {
|
||||
// The marketing site is only served when the deployment opts in via
|
||||
// `homepage: "landing"`. On node deployments these paths are not found.
|
||||
if (config.nodes.homepage !== "landing") {
|
||||
return null;
|
||||
}
|
||||
return marketingRoute(resource, segments);
|
||||
}
|
||||
case "": {
|
||||
return { resource: "nodes", params: undefined };
|
||||
return homeRoute();
|
||||
}
|
||||
default: {
|
||||
return null;
|
||||
@@ -222,6 +512,26 @@ export function routeToPath(route: Route): string {
|
||||
}
|
||||
} else if (route.resource === "users") {
|
||||
return userRouteToPath(route);
|
||||
} else if (route.resource === "explore") {
|
||||
return "/explore";
|
||||
} else if (route.resource === "explore.repos") {
|
||||
return exploreReposPath(route.params.page, route.params.sort);
|
||||
} else if (route.resource === "landing") {
|
||||
return "/";
|
||||
} else if (route.resource === "learn") {
|
||||
return "/learn";
|
||||
} else if (route.resource === "install") {
|
||||
return "/install";
|
||||
} else if (route.resource === "guides") {
|
||||
return "/guides";
|
||||
} else if (route.resource === "desktop") {
|
||||
return "/desktop";
|
||||
} else if (route.resource === "cli") {
|
||||
return "/cli";
|
||||
} else if (route.resource === "principles") {
|
||||
return "/principles";
|
||||
} else if (route.resource === "docs") {
|
||||
return `/${route.params.page}`;
|
||||
} else if (
|
||||
route.resource === "repo.source" ||
|
||||
route.resource === "repo.history" ||
|
||||
|
||||
@@ -6,12 +6,34 @@ import type {
|
||||
import type { RepoLoadedRoute, RepoRoute } from "@app/views/repos/router";
|
||||
import type { UserLoadedRoute, UserRoute } from "@app/views/users/router";
|
||||
import type { NodesRoute, NodesLoadedRoute } from "@app/views/nodes/router";
|
||||
import type {
|
||||
ExploreLoadedRoute,
|
||||
ExploreReposLoadedRoute,
|
||||
ExploreReposRoute,
|
||||
ExploreRoute,
|
||||
} from "@app/views/explore/router";
|
||||
import type {
|
||||
CliRoute,
|
||||
DesktopRoute,
|
||||
DocsLoadedRoute,
|
||||
DocsRoute,
|
||||
GuidesRoute,
|
||||
InstallRoute,
|
||||
LandingRoute,
|
||||
LearnRoute,
|
||||
PrinciplesRoute,
|
||||
} from "@app/marketing/types";
|
||||
import type { ComponentProps } from "svelte";
|
||||
import type IconLarge from "@app/components/IconLarge.svelte";
|
||||
|
||||
import { loadRepoRoute } from "@app/views/repos/router";
|
||||
import { loadUserRoute } from "@app/views/users/router";
|
||||
import { loadNodeRoute } from "@app/views/nodes/router";
|
||||
import {
|
||||
loadExploreReposRoute,
|
||||
loadExploreRoute,
|
||||
} from "@app/views/explore/router";
|
||||
import { loadDocsRoute } from "@app/marketing/router";
|
||||
|
||||
interface BootingRoute {
|
||||
resource: "booting";
|
||||
@@ -31,6 +53,7 @@ export interface ErrorRoute {
|
||||
description: string;
|
||||
error?: ErrorParam;
|
||||
icon?: ComponentProps<IconLarge>["name"];
|
||||
baseUrl?: BaseUrl;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,7 +63,17 @@ export type Route =
|
||||
| ErrorRoute
|
||||
| NotFoundRoute
|
||||
| RepoRoute
|
||||
| NodesRoute;
|
||||
| NodesRoute
|
||||
| ExploreRoute
|
||||
| ExploreReposRoute
|
||||
| LandingRoute
|
||||
| LearnRoute
|
||||
| InstallRoute
|
||||
| GuidesRoute
|
||||
| DesktopRoute
|
||||
| CliRoute
|
||||
| PrinciplesRoute
|
||||
| DocsRoute;
|
||||
|
||||
export type LoadedRoute =
|
||||
| BootingRoute
|
||||
@@ -48,7 +81,17 @@ export type LoadedRoute =
|
||||
| ErrorRoute
|
||||
| NotFoundRoute
|
||||
| RepoLoadedRoute
|
||||
| NodesLoadedRoute;
|
||||
| NodesLoadedRoute
|
||||
| ExploreLoadedRoute
|
||||
| ExploreReposLoadedRoute
|
||||
| LandingRoute
|
||||
| LearnRoute
|
||||
| InstallRoute
|
||||
| GuidesRoute
|
||||
| DesktopRoute
|
||||
| CliRoute
|
||||
| PrinciplesRoute
|
||||
| DocsLoadedRoute;
|
||||
|
||||
export async function loadRoute(
|
||||
route: Route,
|
||||
@@ -58,6 +101,12 @@ export async function loadRoute(
|
||||
return await loadNodeRoute(route.params);
|
||||
} else if (route.resource === "users") {
|
||||
return await loadUserRoute(route);
|
||||
} else if (route.resource === "explore") {
|
||||
return await loadExploreRoute();
|
||||
} else if (route.resource === "explore.repos") {
|
||||
return await loadExploreReposRoute(route.params);
|
||||
} else if (route.resource === "docs") {
|
||||
return await loadDocsRoute(route.params);
|
||||
} else if (
|
||||
route.resource === "repo.source" ||
|
||||
route.resource === "repo.history" ||
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
<script lang="ts"></script>
|
||||
|
||||
<style>
|
||||
.product-media-pi {
|
||||
background-color: #ece9e4;
|
||||
background-image:
|
||||
linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
|
||||
background-size: 22px 22px;
|
||||
background-position: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.product-media-pi-logo {
|
||||
width: auto;
|
||||
height: 40%;
|
||||
}
|
||||
|
||||
.product-media-claude {
|
||||
background-color: #efefed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.product-media-claude-logo {
|
||||
width: auto;
|
||||
height: 40%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<article id="pi" class="product-card">
|
||||
<div class="product-media product-media-pi" aria-hidden="true">
|
||||
<img class="product-media-pi-logo" src="/marketing/images/pi.svg" alt="" />
|
||||
</div>
|
||||
<div class="product-card-text">
|
||||
<h3 class="product-title">Pi agent</h3>
|
||||
<p class="product-description">
|
||||
Run Radicle from the Pi agent. Manage issues, patches, and session context
|
||||
from your terminal-native AI assistant.
|
||||
</p>
|
||||
<a
|
||||
href="https://radicle.network/nodes/hdh.radicle.garden/rad%3AzSM6rc7C18JjDxn4tj1r7PuP9QHc"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="product-link arrow-link">
|
||||
View repo <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="product-card">
|
||||
<div class="product-media product-media-claude" aria-hidden="true">
|
||||
<img
|
||||
class="product-media-claude-logo"
|
||||
src="/marketing/images/claude-logo.svg"
|
||||
alt="" />
|
||||
</div>
|
||||
<div class="product-card-text">
|
||||
<h3 class="product-title">Claude skill</h3>
|
||||
<p class="product-description">
|
||||
Teach your AI agent to use Radicle. Break down issues into tasks, sync
|
||||
progress, and capture session context, built for Claude Code.
|
||||
</p>
|
||||
<a
|
||||
href="https://radicle.network/nodes/seed.radicle.garden/rad:zvBj4kByGeQSrSy2c4H7fyK42cS8"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="product-link arrow-link">
|
||||
View repo <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,710 @@
|
||||
<script lang="ts">
|
||||
import Meta from "@app/marketing/Meta.svelte";
|
||||
|
||||
type Principle = {
|
||||
id: string;
|
||||
kicker: string;
|
||||
kickerMuted?: boolean;
|
||||
title: string;
|
||||
};
|
||||
|
||||
const principles: Principle[] = [
|
||||
{ id: "intro", kicker: "The Radicle Protocol", title: "How it works" },
|
||||
{
|
||||
id: "status-quo",
|
||||
kicker: "The Status Quo",
|
||||
kickerMuted: true,
|
||||
title: "Code lives on someone else’s server",
|
||||
},
|
||||
{ id: "nodes", kicker: "Radicle", title: "Everyone runs a node" },
|
||||
{
|
||||
id: "identity",
|
||||
kicker: "Identity",
|
||||
title: "Your identity is a key pair",
|
||||
},
|
||||
{
|
||||
id: "networking",
|
||||
kicker: "Networking",
|
||||
title: "Gossip finds peers, Git moves the code",
|
||||
},
|
||||
{
|
||||
id: "trust",
|
||||
kicker: "Trust",
|
||||
title: "Every change is cryptographically signed",
|
||||
},
|
||||
{
|
||||
id: "collaboration",
|
||||
kicker: "Collaboration",
|
||||
title: "Issues and patches live inside the repo",
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.principles {
|
||||
--node-neutral: var(--color-text-secondary);
|
||||
--node-blue: var(--color-accent-blue-500);
|
||||
--node-green: var(--color-accent-green-600);
|
||||
--node-purple: var(--color-accent-purple-500);
|
||||
--node-amber: var(--color-semantic-amber-500);
|
||||
--mesh-line: var(--color-border-strong);
|
||||
}
|
||||
|
||||
.mono {
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.principle {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
gap: 1.5rem;
|
||||
padding: 4rem 0;
|
||||
}
|
||||
|
||||
.principle + .principle {
|
||||
border-top: 1px solid var(--color-border-subtle);
|
||||
}
|
||||
|
||||
.principle-kicker {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--color-accent-blue-500);
|
||||
}
|
||||
|
||||
.principle-kicker.muted {
|
||||
color: var(--color-text-quaternary);
|
||||
}
|
||||
|
||||
.principle-title {
|
||||
font: var(--txt-bold-24);
|
||||
margin: 0;
|
||||
max-width: 42rem;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.principle-intro .principle-title {
|
||||
font: var(--txt-bold-32);
|
||||
letter-spacing: -0.02em;
|
||||
max-width: 30rem;
|
||||
}
|
||||
|
||||
.slide-lead {
|
||||
font: var(--txt-medium-22);
|
||||
margin: 0;
|
||||
max-width: 34rem;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.slide-divider {
|
||||
width: 9rem;
|
||||
height: 2px;
|
||||
margin-top: 0.5rem;
|
||||
background: var(--color-accent-blue-500);
|
||||
border-radius: var(--border-radius-round);
|
||||
}
|
||||
|
||||
.slide-figure {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.diagram {
|
||||
width: 100%;
|
||||
max-width: 24rem;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.slide-caption {
|
||||
margin: 0;
|
||||
max-width: 38rem;
|
||||
}
|
||||
|
||||
/* Network diagram elements — theme-aware via design tokens. */
|
||||
.mesh-line {
|
||||
stroke: var(--mesh-line);
|
||||
stroke-width: 1.5;
|
||||
}
|
||||
|
||||
.hub-dot circle {
|
||||
fill: var(--node-neutral);
|
||||
}
|
||||
|
||||
.hub-chip {
|
||||
fill: var(--color-surface-subtle);
|
||||
stroke: var(--color-border-mid);
|
||||
stroke-width: 1.5;
|
||||
}
|
||||
|
||||
.hub-title {
|
||||
fill: var(--color-text-primary);
|
||||
font:
|
||||
600 15px Booton,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
.hub-sub {
|
||||
fill: var(--color-text-tertiary);
|
||||
font:
|
||||
400 12px "JetBrains Mono",
|
||||
monospace;
|
||||
}
|
||||
|
||||
.nd-blue {
|
||||
fill: var(--node-blue);
|
||||
}
|
||||
.nd-green {
|
||||
fill: var(--node-green);
|
||||
}
|
||||
.nd-purple {
|
||||
fill: var(--node-purple);
|
||||
}
|
||||
.nd-neutral {
|
||||
fill: var(--node-neutral);
|
||||
}
|
||||
|
||||
.gossip-ring {
|
||||
fill: none;
|
||||
stroke: var(--node-blue);
|
||||
stroke-width: 1.5;
|
||||
}
|
||||
.gossip-ring-inner {
|
||||
stroke-opacity: 0.5;
|
||||
}
|
||||
.gossip-ring-outer {
|
||||
stroke-opacity: 0.25;
|
||||
}
|
||||
|
||||
.id-key {
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
}
|
||||
.id-key-bg {
|
||||
fill: var(--node-blue);
|
||||
}
|
||||
.id-key-fg {
|
||||
stroke: var(--color-neutrals-opaque-light-0);
|
||||
stroke-width: 3;
|
||||
fill: none;
|
||||
stroke-linecap: round;
|
||||
}
|
||||
|
||||
/* Identity */
|
||||
.did-key {
|
||||
max-width: 100%;
|
||||
padding: 0.6rem 1rem;
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-small);
|
||||
background: var(--color-surface-subtle);
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.did-prefix {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
.did-value {
|
||||
color: var(--color-code-strings);
|
||||
}
|
||||
|
||||
.id-points {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.9rem;
|
||||
}
|
||||
.id-points li {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.6rem;
|
||||
font: var(--txt-medium-16);
|
||||
}
|
||||
.id-points strong {
|
||||
color: var(--color-text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
.id-points .muted {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.dot {
|
||||
flex: none;
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
border-radius: var(--border-radius-round);
|
||||
transform: translateY(-0.1em);
|
||||
}
|
||||
.dot-green {
|
||||
background: var(--node-green);
|
||||
}
|
||||
.dot-amber {
|
||||
background: var(--node-amber);
|
||||
}
|
||||
.dot-purple {
|
||||
background: var(--node-purple);
|
||||
}
|
||||
|
||||
/* Networking */
|
||||
.net-steps {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
font: var(--txt-medium-18);
|
||||
}
|
||||
.net-steps li {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
.net-steps .num {
|
||||
font-weight: 600;
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
.net-steps li:first-child {
|
||||
color: var(--color-accent-blue-500);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Trust */
|
||||
.trust-figure {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 30rem;
|
||||
}
|
||||
.ref-card {
|
||||
text-align: left;
|
||||
padding: 1.25rem 1.5rem;
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-regular);
|
||||
background: var(--color-surface-subtle);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
.ref-head {
|
||||
color: var(--color-code-keywords);
|
||||
font-weight: 600;
|
||||
}
|
||||
.ref-row {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
.ref-row .hash {
|
||||
color: var(--color-code-strings);
|
||||
flex: none;
|
||||
}
|
||||
.ref-row .ref-path {
|
||||
color: var(--color-text-tertiary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.signed-badge {
|
||||
position: absolute;
|
||||
right: -0.25rem;
|
||||
bottom: -1.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.35rem 0.35rem 0.35rem 0.9rem;
|
||||
border-radius: var(--border-radius-round);
|
||||
background: var(--color-surface-canvas);
|
||||
}
|
||||
.signed-check {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 50%;
|
||||
background: var(--node-green);
|
||||
color: var(--color-neutrals-opaque-light-0);
|
||||
}
|
||||
|
||||
/* Collaboration */
|
||||
.repo-card {
|
||||
width: 100%;
|
||||
max-width: 30rem;
|
||||
text-align: left;
|
||||
padding: 1.25rem 1.5rem;
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-regular);
|
||||
background: var(--color-surface-subtle);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.9rem;
|
||||
}
|
||||
.repo-head {
|
||||
color: var(--color-code-keywords);
|
||||
font-weight: 600;
|
||||
}
|
||||
.repo-rows {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
.repo-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.7rem 0.9rem;
|
||||
border-radius: var(--border-radius-small);
|
||||
background: var(--color-surface-mid);
|
||||
font: var(--txt-medium-16);
|
||||
}
|
||||
.repo-row strong {
|
||||
color: var(--color-text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
.repo-meta {
|
||||
margin-left: auto;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.principle {
|
||||
padding: 2.5rem 0;
|
||||
}
|
||||
|
||||
.diagram {
|
||||
max-width: 18rem;
|
||||
}
|
||||
|
||||
.id-points {
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>How it works | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta
|
||||
title="How it works | Radicle"
|
||||
description="The core ideas behind Radicle." />
|
||||
|
||||
<main class="page-container principles">
|
||||
<header class="page-header">
|
||||
<h1 class="txt-bold-32">
|
||||
How it works. <span class="txt-color-tertiary">
|
||||
The core ideas behind Radicle.
|
||||
</span>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
{#each principles as principle (principle.id)}
|
||||
<section class="principle" class:principle-intro={principle.id === "intro"}>
|
||||
<span
|
||||
class="principle-kicker txt-bold-14"
|
||||
class:muted={principle.kickerMuted}>
|
||||
{principle.kicker}
|
||||
</span>
|
||||
<h2 class="principle-title">{principle.title}</h2>
|
||||
|
||||
{#if principle.id === "intro"}
|
||||
<p class="slide-lead">
|
||||
A sovereign, peer-to-peer network for code collaboration
|
||||
</p>
|
||||
<span class="slide-divider"></span>
|
||||
{:else if principle.id === "status-quo"}
|
||||
<div class="slide-figure">
|
||||
<svg
|
||||
class="diagram"
|
||||
viewBox="0 0 360 300"
|
||||
fill="none"
|
||||
aria-hidden="true">
|
||||
<g class="mesh-line">
|
||||
<line x1="180" y1="150" x2="180" y2="36" />
|
||||
<line x1="180" y1="150" x2="300" y2="92" />
|
||||
<line x1="180" y1="150" x2="60" y2="92" />
|
||||
<line x1="180" y1="150" x2="300" y2="210" />
|
||||
<line x1="180" y1="150" x2="60" y2="210" />
|
||||
<line x1="180" y1="150" x2="180" y2="266" />
|
||||
</g>
|
||||
<g class="hub-dot">
|
||||
<circle cx="180" cy="36" r="9" />
|
||||
<circle cx="300" cy="92" r="9" />
|
||||
<circle cx="60" cy="92" r="9" />
|
||||
<circle cx="300" cy="210" r="9" />
|
||||
<circle cx="60" cy="210" r="9" />
|
||||
<circle cx="180" cy="266" r="9" />
|
||||
</g>
|
||||
<rect
|
||||
class="hub-chip"
|
||||
x="116"
|
||||
y="124"
|
||||
width="128"
|
||||
height="52"
|
||||
rx="10" />
|
||||
<text class="hub-title" x="180" y="147" text-anchor="middle">
|
||||
Central forge
|
||||
</text>
|
||||
<text class="hub-sub" x="180" y="166" text-anchor="middle">
|
||||
GitHub · GitLab
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
<p class="slide-caption txt-medium-18 txt-color-tertiary">
|
||||
Your issues, patches and identity are controlled by the platform.
|
||||
</p>
|
||||
{:else if principle.id === "nodes"}
|
||||
<div class="slide-figure">
|
||||
<svg
|
||||
class="diagram"
|
||||
viewBox="0 0 360 340"
|
||||
fill="none"
|
||||
aria-hidden="true">
|
||||
<g class="mesh-line">
|
||||
<line x1="180" y1="55" x2="274" y2="100" />
|
||||
<line x1="274" y1="100" x2="297" y2="202" />
|
||||
<line x1="297" y1="202" x2="232" y2="283" />
|
||||
<line x1="232" y1="283" x2="128" y2="283" />
|
||||
<line x1="128" y1="283" x2="63" y2="202" />
|
||||
<line x1="63" y1="202" x2="86" y2="100" />
|
||||
<line x1="86" y1="100" x2="180" y2="55" />
|
||||
<line x1="180" y1="55" x2="232" y2="283" />
|
||||
<line x1="274" y1="100" x2="128" y2="283" />
|
||||
<line x1="297" y1="202" x2="63" y2="202" />
|
||||
<line x1="180" y1="55" x2="297" y2="202" />
|
||||
<line x1="232" y1="283" x2="63" y2="202" />
|
||||
<line x1="128" y1="283" x2="86" y2="100" />
|
||||
</g>
|
||||
<circle
|
||||
class="nd-blue"
|
||||
cx="180"
|
||||
cy="55"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-green"
|
||||
cx="274"
|
||||
cy="100"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-purple"
|
||||
cx="297"
|
||||
cy="202"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-blue"
|
||||
cx="232"
|
||||
cy="283"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-green"
|
||||
cx="128"
|
||||
cy="283"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-purple"
|
||||
cx="63"
|
||||
cy="202"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-blue"
|
||||
cx="86"
|
||||
cy="100"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle class="nd-blue" cx="180" cy="55" r="9" />
|
||||
<circle class="nd-green" cx="274" cy="100" r="9" />
|
||||
<circle class="nd-purple" cx="297" cy="202" r="9" />
|
||||
<circle class="nd-blue" cx="232" cy="283" r="9" />
|
||||
<circle class="nd-green" cx="128" cy="283" r="9" />
|
||||
<circle class="nd-purple" cx="63" cy="202" r="9" />
|
||||
<circle class="nd-blue" cx="86" cy="100" r="9" />
|
||||
</svg>
|
||||
</div>
|
||||
<p class="slide-caption txt-medium-18 txt-color-tertiary">
|
||||
No central server. Each node hosts and shares Git repositories
|
||||
directly with peers.
|
||||
</p>
|
||||
{:else if principle.id === "identity"}
|
||||
<div class="slide-figure">
|
||||
<svg
|
||||
class="id-key"
|
||||
viewBox="0 0 64 64"
|
||||
fill="none"
|
||||
aria-hidden="true">
|
||||
<circle class="id-key-bg" cx="32" cy="32" r="24" />
|
||||
<g class="id-key-fg">
|
||||
<circle cx="26" cy="32" r="5.5" />
|
||||
<path d="M31 32 H44" />
|
||||
<path d="M40 32 V37" />
|
||||
<path d="M44 32 V37" />
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="did-key mono">
|
||||
<span class="did-prefix">did:key:</span>
|
||||
<span class="did-value">
|
||||
z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK
|
||||
</span>
|
||||
</div>
|
||||
<ul class="id-points">
|
||||
<li>
|
||||
<span class="dot dot-green"></span>
|
||||
<span>
|
||||
<strong>Generated offline</strong>
|
||||
<span class="muted">— no email, no account, no permission</span>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="dot dot-green"></span>
|
||||
<span>
|
||||
<strong>Your public key is your Node ID</strong>
|
||||
<span class="muted">— the same across every device</span>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="dot dot-green"></span>
|
||||
<span>
|
||||
<strong>Sign every action</strong>
|
||||
<span class="muted">— so peers can verify it’s really you</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
{:else if principle.id === "networking"}
|
||||
<div class="slide-figure">
|
||||
<svg
|
||||
class="diagram"
|
||||
viewBox="0 0 360 360"
|
||||
fill="none"
|
||||
aria-hidden="true">
|
||||
<g class="mesh-line">
|
||||
<line x1="239" y1="73" x2="298" y2="175" />
|
||||
<line x1="298" y1="175" x2="239" y2="277" />
|
||||
<line x1="239" y1="277" x2="121" y2="277" />
|
||||
<line x1="121" y1="277" x2="62" y2="175" />
|
||||
<line x1="62" y1="175" x2="121" y2="73" />
|
||||
<line x1="121" y1="73" x2="239" y2="73" />
|
||||
<line x1="239" y1="73" x2="239" y2="277" />
|
||||
<line x1="298" y1="175" x2="121" y2="277" />
|
||||
<line x1="298" y1="175" x2="121" y2="73" />
|
||||
<line x1="239" y1="277" x2="62" y2="175" />
|
||||
<line x1="121" y1="277" x2="121" y2="73" />
|
||||
<line x1="62" y1="175" x2="239" y2="73" />
|
||||
</g>
|
||||
<circle
|
||||
class="gossip-ring gossip-ring-outer"
|
||||
cx="180"
|
||||
cy="175"
|
||||
r="84" />
|
||||
<circle
|
||||
class="gossip-ring gossip-ring-inner"
|
||||
cx="180"
|
||||
cy="175"
|
||||
r="48" />
|
||||
<circle class="nd-neutral" cx="239" cy="73" r="10" />
|
||||
<circle class="nd-neutral" cx="298" cy="175" r="10" />
|
||||
<circle class="nd-neutral" cx="239" cy="277" r="10" />
|
||||
<circle class="nd-neutral" cx="121" cy="277" r="10" />
|
||||
<circle class="nd-neutral" cx="62" cy="175" r="10" />
|
||||
<circle class="nd-neutral" cx="121" cy="73" r="10" />
|
||||
<circle
|
||||
class="nd-blue"
|
||||
cx="180"
|
||||
cy="175"
|
||||
r="22"
|
||||
fill-opacity="0.15" />
|
||||
<circle class="nd-blue" cx="180" cy="175" r="11" />
|
||||
</svg>
|
||||
</div>
|
||||
<ol class="net-steps">
|
||||
<li>
|
||||
<span class="num">1.</span>
|
||||
Announce updates over gossip
|
||||
</li>
|
||||
<li>
|
||||
<span class="num">2.</span>
|
||||
Replicate the data with Git’s own transfer protocol
|
||||
</li>
|
||||
</ol>
|
||||
{:else if principle.id === "trust"}
|
||||
<div class="slide-figure">
|
||||
<div class="trust-figure">
|
||||
<div class="ref-card mono">
|
||||
<div class="ref-head">refs/rad/sigrefs</div>
|
||||
<div class="ref-row">
|
||||
<span class="hash">9767b485c2aad1e2</span>
|
||||
<span class="ref-path">refs/heads/master</span>
|
||||
</div>
|
||||
<div class="ref-row">
|
||||
<span class="hash">f3eaa7454e3a4714</span>
|
||||
<span class="ref-path">refs/cobs/xyz.radicle.patch/…</span>
|
||||
</div>
|
||||
<div class="ref-row">
|
||||
<span class="hash">0590b78ee42b3908</span>
|
||||
<span class="ref-path">refs/cobs/xyz.radicle.issue/…</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="signed-badge">
|
||||
<span class="signed-label txt-bold-16">Signed</span>
|
||||
<span class="signed-check">
|
||||
<svg
|
||||
width="18"
|
||||
height="18"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="3"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true">
|
||||
<path d="M20 6 9 17l-5-5" />
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="slide-caption txt-medium-18 txt-color-tertiary">
|
||||
Repositories are self-certifying — anyone can verify authenticity
|
||||
without trusting a central authority.
|
||||
</p>
|
||||
{:else if principle.id === "collaboration"}
|
||||
<div class="slide-figure">
|
||||
<div class="repo-card">
|
||||
<div class="repo-head mono">rad:z3gqcJUoA1n9…</div>
|
||||
<div class="repo-rows">
|
||||
<div class="repo-row">
|
||||
<span class="dot dot-green"></span>
|
||||
<strong>Code</strong>
|
||||
<span class="repo-meta mono">commits & branches</span>
|
||||
</div>
|
||||
<div class="repo-row">
|
||||
<span class="dot dot-amber"></span>
|
||||
<strong>Issues</strong>
|
||||
<span class="repo-meta mono">xyz.radicle.issue</span>
|
||||
</div>
|
||||
<div class="repo-row">
|
||||
<span class="dot dot-purple"></span>
|
||||
<strong>Patches</strong>
|
||||
<span class="repo-meta mono">xyz.radicle.patch</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="slide-caption txt-medium-18 txt-color-tertiary">
|
||||
Collaborative Objects are local-first, user-owned and signed — just
|
||||
like your code.
|
||||
</p>
|
||||
{/if}
|
||||
</section>
|
||||
{/each}
|
||||
</main>
|
||||
@@ -0,0 +1,68 @@
|
||||
<script lang="ts">
|
||||
export let href: string | undefined = undefined;
|
||||
export let variant: "primary" | "secondary" | "white" = "primary";
|
||||
export let target: string | undefined = undefined;
|
||||
export let rel: string | undefined = undefined;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.button {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0.375rem 0.75rem;
|
||||
gap: 0.5rem;
|
||||
height: var(--button-small-height);
|
||||
border-radius: var(--border-radius-tiny);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
font: var(--txt-bold-14);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.button.primary {
|
||||
background: var(--color-text-primary);
|
||||
color: var(--color-surface-base);
|
||||
}
|
||||
|
||||
.button.primary:hover {
|
||||
opacity: 0.9;
|
||||
color: var(--color-surface-base);
|
||||
}
|
||||
|
||||
.button.secondary {
|
||||
background: var(--color-surface-subtle);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.button.secondary:hover {
|
||||
background: var(--color-surface-mid);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.button.white {
|
||||
background: var(--color-neutrals-opaque-light-0);
|
||||
color: var(--color-neutrals-opaque-light-900);
|
||||
}
|
||||
|
||||
.button.white:hover {
|
||||
opacity: 0.85;
|
||||
color: var(--color-neutrals-opaque-light-900);
|
||||
}
|
||||
</style>
|
||||
|
||||
{#if href}
|
||||
<a {href} {target} {rel} class="button {variant}">
|
||||
<slot />
|
||||
</a>
|
||||
{:else}
|
||||
<button class="button {variant}">
|
||||
<slot />
|
||||
</button>
|
||||
{/if}
|
||||
@@ -0,0 +1,141 @@
|
||||
<script lang="ts">
|
||||
import AgentCards from "@app/marketing/AgentCards.svelte";
|
||||
import CopyCommand from "@app/marketing/CopyCommand.svelte";
|
||||
import Meta from "@app/marketing/Meta.svelte";
|
||||
import PlatformBadges from "@app/marketing/PlatformBadges.svelte";
|
||||
import { link } from "@app/marketing/link";
|
||||
|
||||
const features = [
|
||||
{
|
||||
title: "Sovereign identity",
|
||||
description:
|
||||
"A self-sovereign identity from a key pair, with no accounts and no servers.",
|
||||
},
|
||||
{
|
||||
title: "Repositories",
|
||||
description:
|
||||
"Initialize, clone, and seed Git repositories across the peer-to-peer network.",
|
||||
},
|
||||
{
|
||||
title: "Patches",
|
||||
description:
|
||||
"Open, review, update, and merge patches. Radicle’s take on pull requests.",
|
||||
},
|
||||
{
|
||||
title: "Issues",
|
||||
description:
|
||||
"Track work with issues: create, comment, assign, and close, all from your terminal.",
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.hero-image {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin: 2rem 0 var(--section-gap);
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-small);
|
||||
background: var(--color-surface-subtle);
|
||||
}
|
||||
|
||||
.features-heading {
|
||||
margin: 2rem 0 2rem;
|
||||
}
|
||||
|
||||
.features {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 2.5rem 2rem;
|
||||
}
|
||||
|
||||
.feature-title {
|
||||
margin: 0 0 0.5rem;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.feature-description {
|
||||
margin: 0;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.get-started {
|
||||
padding-top: var(--section-gap);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.get-started-heading {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.agents {
|
||||
padding-top: var(--section-gap);
|
||||
}
|
||||
|
||||
.agents-heading {
|
||||
margin: 0 0 2rem;
|
||||
max-width: 40rem;
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.features {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>CLI | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta
|
||||
title="CLI | Radicle"
|
||||
description="Work directly from your terminal to manage code, issues, patches, CI, and your sovereign identity." />
|
||||
|
||||
<main class="page-container">
|
||||
<header class="page-header">
|
||||
<h1 class="txt-bold-32">
|
||||
Radicle CLI. <span class="txt-color-tertiary">
|
||||
Own your code, identity, and your entire workflow, right from your
|
||||
terminal.
|
||||
</span>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<img class="hero-image" src="/marketing/images/cli.png" alt="Radicle CLI" />
|
||||
|
||||
<section>
|
||||
<h2 class="txt-bold-22 features-heading">Everything, from the terminal</h2>
|
||||
<div class="features">
|
||||
{#each features as feature}
|
||||
<div>
|
||||
<h3 class="txt-bold-18 feature-title">{feature.title}</h3>
|
||||
<p class="txt-medium-16 feature-description">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="get-started">
|
||||
<h2 class="txt-bold-22 get-started-heading">Get started</h2>
|
||||
<CopyCommand />
|
||||
<PlatformBadges />
|
||||
<a href="/guides/user" class="product-link arrow-link" use:link>
|
||||
Read the user guide <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<section class="agents">
|
||||
<h2 class="txt-bold-22 agents-heading">
|
||||
Don’t feel like learning the CLI? Let an agent drive it for you.
|
||||
</h2>
|
||||
<div class="card-row">
|
||||
<AgentCards />
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
@@ -0,0 +1,91 @@
|
||||
<script lang="ts">
|
||||
import { onDestroy } from "svelte";
|
||||
|
||||
export let command = "curl -sSf https://radicle.dev/install | sh";
|
||||
|
||||
let isCopied = false;
|
||||
let resetCopyStateTimeout: ReturnType<typeof setTimeout> | undefined;
|
||||
|
||||
async function copyToClipboard() {
|
||||
try {
|
||||
await navigator.clipboard.writeText(command);
|
||||
isCopied = true;
|
||||
if (resetCopyStateTimeout) clearTimeout(resetCopyStateTimeout);
|
||||
resetCopyStateTimeout = setTimeout(() => {
|
||||
isCopied = false;
|
||||
}, 2000);
|
||||
} catch (err) {
|
||||
console.error("Failed to copy to clipboard:", err);
|
||||
}
|
||||
}
|
||||
|
||||
onDestroy(() => {
|
||||
if (resetCopyStateTimeout) clearTimeout(resetCopyStateTimeout);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.wrapper {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.codeblock {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem 0.5rem 0.5rem 0.75rem;
|
||||
gap: 0.75rem;
|
||||
background: var(--color-surface-subtle);
|
||||
border-radius: 0.25rem;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
code {
|
||||
min-width: 0;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
color: var(--color-text-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
flex-shrink: 0;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
background: none;
|
||||
border: none;
|
||||
border-radius: 0.125rem;
|
||||
cursor: pointer;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.copy-button:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
</style>
|
||||
|
||||
<span class="wrapper">
|
||||
<span class="codeblock">
|
||||
<code>{command}</code>
|
||||
<button
|
||||
class="copy-button"
|
||||
aria-label={isCopied ? "Copied to clipboard" : "Copy to clipboard"}
|
||||
on:click={copyToClipboard}>
|
||||
<img
|
||||
src={isCopied ? "/icons/check.svg" : "/icons/copy.svg"}
|
||||
alt={isCopied ? "Copied" : "Copy"}
|
||||
width="16"
|
||||
height="16" />
|
||||
</button>
|
||||
</span>
|
||||
</span>
|
||||
@@ -0,0 +1,139 @@
|
||||
<script lang="ts">
|
||||
import DownloadPanel from "@app/marketing/DownloadPanel.svelte";
|
||||
import Meta from "@app/marketing/Meta.svelte";
|
||||
|
||||
const screenshots = ["01", "02", "03", "04", "05", "06", "07", "08"].map(
|
||||
n => `/marketing/images/desktop/${n}.png`,
|
||||
);
|
||||
|
||||
const features = [
|
||||
{
|
||||
title: "Code review",
|
||||
description:
|
||||
"Review patches with line-by-line comments, right inside the diff.",
|
||||
},
|
||||
{
|
||||
title: "Inbox",
|
||||
description:
|
||||
"One feed for every patch, review, and mention. Notifications worth checking.",
|
||||
},
|
||||
{
|
||||
title: "Rich text & embeds",
|
||||
description:
|
||||
"Drop screenshots, videos, and Markdown into issues, patches, and comments.",
|
||||
},
|
||||
{
|
||||
title: "Issues",
|
||||
description:
|
||||
"Open, discuss, and close issues in a full editor, with labels, assignees, and rich text.",
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.carousel-frame {
|
||||
margin: 2rem 0 var(--section-gap);
|
||||
padding: 1.5rem;
|
||||
border-radius: var(--border-radius-small);
|
||||
background: url("/marketing/images/desktop-bg.png") center / cover no-repeat;
|
||||
}
|
||||
|
||||
.carousel {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x mandatory;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.carousel-image {
|
||||
flex: 0 0 100%;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
scroll-snap-align: center;
|
||||
}
|
||||
|
||||
.features-heading {
|
||||
margin: 0 0 2rem;
|
||||
}
|
||||
|
||||
.features {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 2.5rem 2rem;
|
||||
}
|
||||
|
||||
.feature-title {
|
||||
margin: 0 0 0.5rem;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.feature-description {
|
||||
margin: 0;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.download {
|
||||
padding-top: var(--section-gap);
|
||||
}
|
||||
|
||||
.download-heading {
|
||||
margin: 0 0 2rem;
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.features {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>Desktop | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta
|
||||
title="Desktop | Radicle"
|
||||
description="Radicle Desktop is a simple, local-first desktop app that makes contributing to the Radicle network easier than ever." />
|
||||
|
||||
<main class="page-container">
|
||||
<header class="page-header">
|
||||
<h1 class="txt-bold-32">
|
||||
Radicle Desktop. <span class="txt-color-tertiary">
|
||||
A simple, local-first desktop app that makes contributing to the Radicle
|
||||
network easier than ever.
|
||||
</span>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="carousel-frame">
|
||||
<div class="carousel">
|
||||
{#each screenshots as src}
|
||||
<img
|
||||
class="carousel-image"
|
||||
{src}
|
||||
alt="Radicle Desktop screenshot"
|
||||
loading="lazy" />
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<h2 class="txt-bold-22 features-heading">Beyond the terminal</h2>
|
||||
<div class="features">
|
||||
{#each features as feature}
|
||||
<div>
|
||||
<h3 class="txt-bold-18 feature-title">{feature.title}</h3>
|
||||
<p class="txt-medium-16 feature-description">
|
||||
{feature.description}
|
||||
</p>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="download">
|
||||
<h2 class="txt-bold-22 download-heading">Download</h2>
|
||||
<DownloadPanel />
|
||||
</section>
|
||||
</main>
|
||||
@@ -0,0 +1,306 @@
|
||||
<script lang="ts">
|
||||
import type { ComponentType } from "svelte";
|
||||
import type { DocsPage } from "./types";
|
||||
|
||||
import MarkdownLayout from "./MarkdownLayout.svelte";
|
||||
|
||||
export let page: DocsPage;
|
||||
export let component: ComponentType;
|
||||
|
||||
const guideHeroes: Record<string, { src: string; alt: string }> = {
|
||||
"guides/getting-started": {
|
||||
src: "/marketing/images/learn/getting-started.jpg",
|
||||
alt: "Getting Started",
|
||||
},
|
||||
"guides/protocol": {
|
||||
src: "/marketing/images/learn/protocol.jpg",
|
||||
alt: "Protocol Guide",
|
||||
},
|
||||
"guides/seeder": {
|
||||
src: "/marketing/images/learn/seeder.jpg",
|
||||
alt: "Seeder Guide",
|
||||
},
|
||||
"guides/user": {
|
||||
src: "/marketing/images/learn/user.jpg",
|
||||
alt: "User Guide",
|
||||
},
|
||||
};
|
||||
|
||||
$: isGuide = page.startsWith("guides/");
|
||||
$: hero = guideHeroes[page];
|
||||
|
||||
$: isInlineGap = page === "faq" || page === "glossary";
|
||||
|
||||
// Copy a term's permalink to the clipboard instead of navigating to it, and
|
||||
// briefly show a checkmark as confirmation. Navigating to the link from
|
||||
// elsewhere still jumps to the term (default anchor behaviour).
|
||||
function copyTermLinks(node: HTMLElement) {
|
||||
function onClick(event: MouseEvent) {
|
||||
const target = event.target as HTMLElement | null;
|
||||
const link = target?.closest(".term-link") as HTMLAnchorElement | null;
|
||||
if (!link || !node.contains(link)) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
void navigator.clipboard?.writeText(link.href);
|
||||
// Restart the confirmation animation, which holds the checkmark and then
|
||||
// fades it out (see the `term-copied` keyframes). It is cleared on
|
||||
// animationend below.
|
||||
link.classList.remove("copied");
|
||||
void link.offsetWidth;
|
||||
link.classList.add("copied");
|
||||
}
|
||||
|
||||
// Highlight the term when arriving via its permalink. `:target` is
|
||||
// unreliable here because the term element is rendered after the URL
|
||||
// fragment is already set on a fresh load, so drive it from script.
|
||||
function highlightFromHash() {
|
||||
const id = decodeURIComponent(window.location.hash.slice(1));
|
||||
if (!id) {
|
||||
return;
|
||||
}
|
||||
const term = document.getElementById(id);
|
||||
if (!term || !node.contains(term) || !term.querySelector(".term-link")) {
|
||||
return;
|
||||
}
|
||||
term.classList.remove("arrived");
|
||||
void term.offsetWidth;
|
||||
term.classList.add("arrived");
|
||||
}
|
||||
|
||||
function onAnimationEnd(event: AnimationEvent) {
|
||||
const el = event.target as HTMLElement;
|
||||
if (event.animationName === "term-arrive") {
|
||||
el.classList.remove("arrived");
|
||||
} else if (event.animationName === "term-copied") {
|
||||
el.classList.remove("copied");
|
||||
}
|
||||
}
|
||||
|
||||
node.addEventListener("click", onClick);
|
||||
node.addEventListener("animationend", onAnimationEnd);
|
||||
window.addEventListener("hashchange", highlightFromHash);
|
||||
highlightFromHash();
|
||||
|
||||
return {
|
||||
destroy() {
|
||||
node.removeEventListener("click", onClick);
|
||||
node.removeEventListener("animationend", onAnimationEnd);
|
||||
window.removeEventListener("hashchange", highlightFromHash);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
let toc: { id: string; text: string }[] = [];
|
||||
|
||||
// Build a sidebar index from the rendered section headings, rebuilding when
|
||||
// the page changes.
|
||||
function collectToc(node: HTMLElement, _page: DocsPage) {
|
||||
function build() {
|
||||
const headings = node.querySelectorAll<HTMLElement>(
|
||||
".markdown-content h2[id]",
|
||||
);
|
||||
toc = Array.from(headings).map(heading => ({
|
||||
id: heading.id,
|
||||
text: heading.textContent?.trim() ?? "",
|
||||
}));
|
||||
}
|
||||
build();
|
||||
return {
|
||||
update() {
|
||||
build();
|
||||
},
|
||||
destroy() {
|
||||
toc = [];
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.doc-inline {
|
||||
--content-inline-gap: 4rem;
|
||||
}
|
||||
|
||||
.doc-inline :global(.page-container) {
|
||||
padding-left: var(--content-inline-gap);
|
||||
padding-right: var(--content-inline-gap);
|
||||
}
|
||||
|
||||
.doc-inline :global(.markdown-content) {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* Match the page-title size used on the other marketing pages, rather than
|
||||
the larger default markdown h1. */
|
||||
.doc-inline :global(.markdown-content h1) {
|
||||
font: var(--txt-bold-32);
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.doc-two-col {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) clamp(12rem, 18vw, 15rem);
|
||||
gap: 3rem;
|
||||
padding: 0 var(--content-inline-gap);
|
||||
}
|
||||
|
||||
.doc-two-col :global(.page-container) {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.doc-inline :global(.markdown-content h2) {
|
||||
scroll-margin-top: 6rem;
|
||||
}
|
||||
|
||||
.doc-toc {
|
||||
position: sticky;
|
||||
top: calc(var(--global-header-height) + 6rem);
|
||||
align-self: start;
|
||||
margin-top: 6rem;
|
||||
font: var(--txt-medium-14);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.doc-toc ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.doc-toc-link {
|
||||
color: var(--color-text-tertiary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.doc-toc-link:hover {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
@media (max-width: 64rem) {
|
||||
.doc-two-col {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.doc-toc {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.doc-glossary :global(.markdown-content p) {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.doc-glossary :global(.markdown-content strong) {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
/* Linkable entries: glossary term paragraphs and FAQ question headings.
|
||||
Both are tagged with the `term` class by the rehypeTermAnchors plugin. */
|
||||
.doc-inline :global(.markdown-content .term) {
|
||||
position: relative;
|
||||
padding-left: 1.5rem;
|
||||
margin-left: -1.5rem;
|
||||
scroll-margin-top: 6rem;
|
||||
}
|
||||
|
||||
.doc-inline :global(.term-link) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0.4em;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
opacity: 0;
|
||||
background-color: var(--color-text-tertiary);
|
||||
cursor: pointer;
|
||||
-webkit-mask: url("/icons/link.svg") center / 1rem 1rem no-repeat;
|
||||
mask: url("/icons/link.svg") center / 1rem 1rem no-repeat;
|
||||
}
|
||||
|
||||
.doc-inline :global(.markdown-content .term:hover .term-link) {
|
||||
opacity: 1;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
.doc-inline :global(.term-link.copied) {
|
||||
background-color: var(--color-text-primary);
|
||||
-webkit-mask-image: url("/icons/check.svg");
|
||||
mask-image: url("/icons/check.svg");
|
||||
animation: term-copied 2s ease forwards;
|
||||
}
|
||||
|
||||
@keyframes -global-term-copied {
|
||||
0%,
|
||||
80% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes -global-term-arrive {
|
||||
from {
|
||||
background-color: var(--color-surface-merged);
|
||||
}
|
||||
to {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.doc-inline :global(.markdown-content .term.arrived) {
|
||||
animation: term-arrive 2s ease-out;
|
||||
}
|
||||
|
||||
@media (max-width: 90rem) {
|
||||
.doc-inline {
|
||||
--content-inline-gap: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 64rem) {
|
||||
.doc-inline {
|
||||
--content-inline-gap: 1.5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
{#if isGuide}
|
||||
<div class="guides-markdown">
|
||||
<MarkdownLayout>
|
||||
{#if hero}
|
||||
<img class="guide-hero" src={hero.src} alt={hero.alt} />
|
||||
{/if}
|
||||
<svelte:component this={component} />
|
||||
</MarkdownLayout>
|
||||
</div>
|
||||
{:else if isInlineGap}
|
||||
<div
|
||||
class="doc-inline doc-two-col"
|
||||
class:doc-glossary={page === "glossary"}
|
||||
use:copyTermLinks
|
||||
use:collectToc={page}>
|
||||
<MarkdownLayout>
|
||||
<svelte:component this={component} />
|
||||
</MarkdownLayout>
|
||||
{#if page === "faq" && toc.length}
|
||||
<aside class="doc-toc" aria-label="On this page">
|
||||
<ul>
|
||||
{#each toc as item}
|
||||
<li>
|
||||
<a class="doc-toc-link" href={`#${item.id}`}>{item.text}</a>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
</aside>
|
||||
{/if}
|
||||
</div>
|
||||
{:else}
|
||||
<MarkdownLayout>
|
||||
<svelte:component this={component} />
|
||||
</MarkdownLayout>
|
||||
{/if}
|
||||
@@ -0,0 +1,206 @@
|
||||
<script lang="ts">
|
||||
import type { Os } from "@app/marketing/PlatformIcon.svelte";
|
||||
|
||||
import CopyCommand from "@app/marketing/CopyCommand.svelte";
|
||||
import PlatformIcon from "@app/marketing/PlatformIcon.svelte";
|
||||
|
||||
let openItem = 0;
|
||||
|
||||
const downloads: {
|
||||
name: string;
|
||||
os: Os;
|
||||
description: string;
|
||||
command: string;
|
||||
}[] = [
|
||||
{
|
||||
name: "Apple Silicon",
|
||||
os: "macos",
|
||||
description:
|
||||
"Run the command in your terminal to download and open the DMG file. Then drag the Radicle app to your Applications folder.",
|
||||
command:
|
||||
"curl --output ~/Downloads/radicle-desktop-aarch64.dmg https://files.radicle.dev/releases/radicle-desktop/latest/radicle-desktop-aarch64.dmg && open ~/Downloads/radicle-desktop-aarch64.dmg",
|
||||
},
|
||||
{
|
||||
name: "Linux AppImage",
|
||||
os: "linux",
|
||||
description:
|
||||
"Download, make the file executable with chmod +x, and run it.",
|
||||
command:
|
||||
"curl --output radicle-desktop-amd64.AppImage https://files.radicle.dev/releases/radicle-desktop/latest/radicle-desktop-amd64.AppImage",
|
||||
},
|
||||
{
|
||||
name: "Debian / Ubuntu",
|
||||
os: "linux",
|
||||
description: "Install the keyring, add the APT repository, then install.",
|
||||
command:
|
||||
'curl -LO https://radicle.dev/apt/radicle-archive-keyring.deb && chmod a+r radicle-archive-keyring.deb && sudo apt install ./radicle-archive-keyring.deb && echo "deb [signed-by=/usr/share/radicle/radicle-archive-keyring.asc] https://radicle.dev/apt release main" | sudo tee /etc/apt/sources.list.d/radicle.list && sudo apt update && sudo apt install radicle-desktop',
|
||||
},
|
||||
{
|
||||
name: "Arch Linux",
|
||||
os: "linux",
|
||||
description: "Available from the Arch User Repository.",
|
||||
command: "yay -S radicle-desktop",
|
||||
},
|
||||
{
|
||||
name: "NixOS",
|
||||
os: "linux",
|
||||
description:
|
||||
"Try it with nix run, then make it permanent with nix profile install. radicle-desktop is available in Nixpkgs.",
|
||||
command: "nix run nixpkgs#radicle-desktop",
|
||||
},
|
||||
{
|
||||
name: "Windows WSL2",
|
||||
os: "windows",
|
||||
description:
|
||||
"Use WSL2 with any of the Linux install options to run Radicle Desktop on Windows.",
|
||||
command: "",
|
||||
},
|
||||
];
|
||||
|
||||
function toggleItem(index: number) {
|
||||
openItem = openItem === index ? -1 : index;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.download-panel {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
gap: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.download-left {
|
||||
width: 20rem;
|
||||
flex-shrink: 0;
|
||||
padding: 1.25rem 1.5rem 1.25rem 0;
|
||||
}
|
||||
|
||||
.download-left h3 {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.download-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.download-divider {
|
||||
height: 1px;
|
||||
background: var(--color-border-subtle);
|
||||
}
|
||||
|
||||
.download-item {
|
||||
border-radius: 0.125rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.download-question {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1.25rem 0;
|
||||
gap: 2rem;
|
||||
width: 100%;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--color-text-primary);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.download-question:hover {
|
||||
color: var(--color-brand-hover);
|
||||
}
|
||||
|
||||
.download-name {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
}
|
||||
|
||||
.chevron {
|
||||
flex: none;
|
||||
color: var(--color-text-tertiary);
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.chevron.open {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.download-answer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
padding-bottom: 2.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.download-description {
|
||||
color: var(--color-text-tertiary);
|
||||
max-width: 45rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 64rem) {
|
||||
.download-panel {
|
||||
flex-direction: column;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.download-left {
|
||||
width: 100%;
|
||||
padding-right: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<section class="download-panel">
|
||||
<div class="download-left">
|
||||
<h3 class="txt-bold-22">Select your OS and follow the instructions</h3>
|
||||
</div>
|
||||
<div class="download-right">
|
||||
{#each downloads as dl, i}
|
||||
{#if i > 0}
|
||||
<div class="download-divider"></div>
|
||||
{/if}
|
||||
<div class="download-item">
|
||||
<button class="download-question" on:click={() => toggleItem(i)}>
|
||||
<span class="download-name txt-bold-18">
|
||||
<PlatformIcon os={dl.os} size="1.25rem" />
|
||||
{dl.name}
|
||||
</span>
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
fill="none"
|
||||
class="chevron"
|
||||
class:open={openItem === i}>
|
||||
<path
|
||||
d="M4 10L8 6L12 10"
|
||||
stroke="currentColor"
|
||||
stroke-width="1.5"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round" />
|
||||
</svg>
|
||||
</button>
|
||||
{#if openItem === i}
|
||||
<div class="download-answer">
|
||||
<p class="txt-medium-16 download-description">{dl.description}</p>
|
||||
{#if dl.command}
|
||||
<CopyCommand command={dl.command} />
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,120 @@
|
||||
<script lang="ts">
|
||||
import { link } from "@app/marketing/link";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.footer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 6rem var(--marketing-inline-gap) 1rem;
|
||||
gap: 6rem;
|
||||
margin-top: auto;
|
||||
background: var(--color-surface-base);
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.link-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.column-header {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.link-column a {
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.link-column a:hover {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
@media (max-width: 64rem) {
|
||||
.footer {
|
||||
padding: 2rem var(--marketing-inline-gap) 1.5rem;
|
||||
gap: 2.5rem;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="footer-links">
|
||||
<div class="link-column">
|
||||
<span class="column-header txt-medium-14">Learn</span>
|
||||
<a href="/guides/getting-started" class="txt-medium-14" use:link>
|
||||
Get started
|
||||
</a>
|
||||
<a href="/learn#guides" class="txt-medium-14" use:link>Guides</a>
|
||||
<a href="/faq" class="txt-medium-14" use:link>FAQ</a>
|
||||
<a href="/glossary" class="txt-medium-14" use:link>Glossary</a>
|
||||
</div>
|
||||
|
||||
<div class="link-column">
|
||||
<span class="column-header txt-medium-14">Social</span>
|
||||
<a
|
||||
href="https://bsky.app/profile/radicle.xyz"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="txt-medium-14 arrow-link">
|
||||
Bluesky <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
<a
|
||||
href="https://twitter.com/radicle"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="txt-medium-14 arrow-link">
|
||||
Twitter <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
<a
|
||||
href="https://mastodon.social/@radicle"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="txt-medium-14 arrow-link">
|
||||
Mastodon <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
<a
|
||||
href="https://radicle.zulipchat.com"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="txt-medium-14 arrow-link">
|
||||
Zulip <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer-bottom">
|
||||
<span class="copyright txt-medium-14">© 2026 The Radicle Team</span>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,147 @@
|
||||
<script lang="ts">
|
||||
import Meta from "@app/marketing/Meta.svelte";
|
||||
import { guides } from "@app/marketing/guides";
|
||||
import { link } from "@app/marketing/link";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.page-header {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.guides-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 2rem 1.5rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.guide-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.guide-thumb {
|
||||
position: relative;
|
||||
border-radius: var(--border-radius-small);
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.guide-thumb img,
|
||||
.guide-thumb-placeholder {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1.2;
|
||||
object-fit: cover;
|
||||
background: var(--color-surface-subtle);
|
||||
}
|
||||
|
||||
.guide-play {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
padding-left: 0.15rem;
|
||||
border-radius: 50%;
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--color-neutrals-opaque-dark-0) 60%,
|
||||
transparent
|
||||
);
|
||||
color: var(--color-neutrals-opaque-light-0);
|
||||
}
|
||||
|
||||
.guide-title {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.guide-description {
|
||||
margin: 0;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.guide-card:hover .link-arrow-right {
|
||||
transform: translateX(0.15rem);
|
||||
}
|
||||
|
||||
.guide-card:hover .link-arrow-up-right {
|
||||
transform: translate(0.15rem, -0.15rem);
|
||||
}
|
||||
|
||||
@media (max-width: 40rem) {
|
||||
.guides-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>Guides | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta
|
||||
title="Guides | Radicle"
|
||||
description="Step-by-step tutorials that walk you through Radicle, from your first repository to running infrastructure." />
|
||||
|
||||
<main class="page-container">
|
||||
<header class="page-header">
|
||||
<h1 class="txt-bold-32">
|
||||
Guides. <span class="txt-color-tertiary">
|
||||
Step-by-step tutorials that walk you through Radicle, from your first
|
||||
repository to running infrastructure.
|
||||
</span>
|
||||
</h1>
|
||||
</header>
|
||||
<ul class="guides-grid">
|
||||
{#each guides as guide}
|
||||
<li>
|
||||
<a
|
||||
class="guide-card"
|
||||
href={guide.href}
|
||||
target={guide.external ? "_blank" : undefined}
|
||||
rel={guide.external ? "noopener noreferrer" : undefined}
|
||||
use:link>
|
||||
<span class="guide-thumb">
|
||||
{#if guide.image}
|
||||
<img src={guide.image} alt="" />
|
||||
{:else}
|
||||
<span class="guide-thumb-placeholder" aria-hidden="true"></span>
|
||||
{/if}
|
||||
{#if guide.video}
|
||||
<span class="guide-play" aria-hidden="true">
|
||||
<svg
|
||||
width="20"
|
||||
height="20"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor">
|
||||
<path d="M8 5v14l11-7z" />
|
||||
</svg>
|
||||
</span>
|
||||
{/if}
|
||||
</span>
|
||||
<span class="guide-title txt-bold-16">
|
||||
{guide.title}
|
||||
{#if guide.external}
|
||||
<span class="link-arrow link-arrow-up-right">↗</span>
|
||||
{:else}
|
||||
<span class="link-arrow link-arrow-right">→</span>
|
||||
{/if}
|
||||
</span>
|
||||
<span class="guide-description txt-medium-14">
|
||||
{guide.description}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
</main>
|
||||
@@ -0,0 +1,130 @@
|
||||
<script lang="ts">
|
||||
export let href: string;
|
||||
export let title: string;
|
||||
export let description: string = "";
|
||||
export let image: string = "";
|
||||
export let external: boolean = false;
|
||||
export let video: boolean = false;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.howto-row {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
padding: 1.25rem 0;
|
||||
}
|
||||
|
||||
.howto-thumb {
|
||||
display: block;
|
||||
position: relative;
|
||||
border-radius: var(--border-radius-small);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.howto-play {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
padding-left: 0.15rem;
|
||||
border-radius: 50%;
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--color-neutrals-opaque-dark-0) 60%,
|
||||
transparent
|
||||
);
|
||||
color: var(--color-neutrals-opaque-light-0);
|
||||
}
|
||||
|
||||
.howto-thumb img,
|
||||
.howto-thumb-placeholder {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 10;
|
||||
object-fit: cover;
|
||||
background: var(--color-surface-subtle);
|
||||
}
|
||||
|
||||
.howto-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.howto-title {
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: none;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* Stretch the title link across the whole row so the entire block is
|
||||
clickable, while keeping a single real link for accessibility. */
|
||||
.howto-title::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.howto-row:hover .link-arrow-right {
|
||||
transform: translateX(0.15rem);
|
||||
}
|
||||
|
||||
.howto-row:hover .link-arrow-up-right {
|
||||
transform: translate(0.15rem, -0.15rem);
|
||||
}
|
||||
|
||||
.howto-description {
|
||||
margin: 0;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.howto-row {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<li class="howto-row">
|
||||
<div class="howto-thumb" aria-hidden="true">
|
||||
{#if image}
|
||||
<img src={image} alt="" />
|
||||
{:else}
|
||||
<span class="howto-thumb-placeholder" aria-hidden="true"></span>
|
||||
{/if}
|
||||
{#if video}
|
||||
<span class="howto-play" aria-hidden="true">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
|
||||
<path d="M8 5v14l11-7z" />
|
||||
</svg>
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="howto-body">
|
||||
<a
|
||||
{href}
|
||||
class="howto-title txt-bold-18 arrow-link"
|
||||
target={external ? "_blank" : undefined}
|
||||
rel={external ? "noopener noreferrer" : undefined}>
|
||||
{title}
|
||||
{#if external}
|
||||
<span class="link-arrow link-arrow-up-right">↗</span>
|
||||
{:else}
|
||||
<span class="link-arrow link-arrow-right">→</span>
|
||||
{/if}
|
||||
</a>
|
||||
{#if description}
|
||||
<p class="howto-description txt-medium-14">{description}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</li>
|
||||
@@ -0,0 +1,183 @@
|
||||
<script lang="ts">
|
||||
import AgentCards from "@app/marketing/AgentCards.svelte";
|
||||
import CopyCommand from "@app/marketing/CopyCommand.svelte";
|
||||
import DownloadPanel from "@app/marketing/DownloadPanel.svelte";
|
||||
import Meta from "@app/marketing/Meta.svelte";
|
||||
import PlatformBadges from "@app/marketing/PlatformBadges.svelte";
|
||||
import { link } from "@app/marketing/link";
|
||||
import { slide } from "svelte/transition";
|
||||
|
||||
let showDownloads = false;
|
||||
|
||||
function toggleDownloads() {
|
||||
showDownloads = !showDownloads;
|
||||
}
|
||||
|
||||
function handleDesktopAction() {
|
||||
if (window.matchMedia("(max-width: 64rem)").matches) {
|
||||
const installUrl = `${window.location.origin}/install`;
|
||||
const subject = encodeURIComponent("Install Radicle Desktop");
|
||||
const body = encodeURIComponent(
|
||||
`Open this page on your desktop:\n\n${installUrl}`,
|
||||
);
|
||||
window.location.href = `mailto:?subject=${subject}&body=${body}`;
|
||||
return;
|
||||
}
|
||||
|
||||
toggleDownloads();
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
max-width: 50rem;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.platforms {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
@media (max-width: 64rem) {
|
||||
.platforms {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.card-row {
|
||||
--product-card-gap: var(--marketing-inline-gap);
|
||||
}
|
||||
|
||||
.install-separately {
|
||||
padding-top: var(--marketing-inline-gap);
|
||||
}
|
||||
|
||||
.top-row {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.bottom-row {
|
||||
padding-top: var(--marketing-inline-gap);
|
||||
padding-bottom: var(--section-gap);
|
||||
}
|
||||
|
||||
.download-label-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
min-height: 2.25rem;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.card-actions :global(.wrapper) {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.card-actions .product-link {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 64rem) {
|
||||
.download-label-desktop {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.download-label-mobile {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>Install | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta
|
||||
title="Install | Radicle"
|
||||
description="Everything you need to collaborate on code, from the terminal, the desktop, and agent skills." />
|
||||
|
||||
<main class="page-container">
|
||||
<header class="page-header">
|
||||
<h1 class="txt-bold-32">
|
||||
Get started with Radicle. <span class="txt-color-tertiary">
|
||||
Everything you need to collaborate on code, from the terminal, the
|
||||
desktop, and agent skills.
|
||||
</span>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="platforms">
|
||||
<PlatformBadges />
|
||||
</div>
|
||||
|
||||
<section class="install-separately">
|
||||
<div class="card-row top-row">
|
||||
<article id="cli" class="product-card">
|
||||
<img class="product-media" src="/marketing/images/cli.png" alt="CLI" />
|
||||
<div class="product-card-text">
|
||||
<h3 class="product-title">CLI</h3>
|
||||
<p class="product-description">
|
||||
Work directly from your terminal to manage code, issues, patches, CI
|
||||
or even your sovereign identity.
|
||||
</p>
|
||||
<div class="card-actions">
|
||||
<CopyCommand />
|
||||
<a href="/cli" class="product-link arrow-link" use:link>
|
||||
About the CLI <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article id="desktop" class="product-card">
|
||||
<img
|
||||
class="product-media"
|
||||
src="/marketing/images/desktop.png"
|
||||
alt="Desktop" />
|
||||
<div class="product-card-text">
|
||||
<h3 class="product-title">Desktop</h3>
|
||||
<p class="product-description">
|
||||
Contribute to the network effortlessly with an intuitive visual
|
||||
interface.
|
||||
</p>
|
||||
<div class="card-actions">
|
||||
<button
|
||||
class="product-link arrow-link desktop-download-trigger"
|
||||
on:click={handleDesktopAction}>
|
||||
<span class="download-label-desktop">
|
||||
Download <span class="link-arrow link-arrow-down">↓</span>
|
||||
</span>
|
||||
<span class="download-label-mobile">
|
||||
Send to my desktop <span class="link-arrow link-arrow-up-right">
|
||||
↗
|
||||
</span>
|
||||
</span>
|
||||
</button>
|
||||
<a href="/desktop" class="product-link arrow-link" use:link>
|
||||
About Desktop <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
{#if showDownloads}
|
||||
<div transition:slide={{ duration: 300 }}>
|
||||
<DownloadPanel />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="card-row bottom-row">
|
||||
<AgentCards />
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
@@ -0,0 +1,651 @@
|
||||
<script lang="ts">
|
||||
import type { Route } from "@app/lib/router/definitions";
|
||||
import type { BaseUrl, RepoListQuery } from "@http-client";
|
||||
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { push, routeToPath, useDefaultNavigation } from "@app/lib/router";
|
||||
import { determineSeed, selectedSeed } from "@app/views/nodes/SeedSelector";
|
||||
|
||||
import CopyCommand from "@app/marketing/CopyCommand.svelte";
|
||||
import Meta from "@app/marketing/Meta.svelte";
|
||||
import Button from "@app/marketing/Button.svelte";
|
||||
import PlatformBadges from "@app/marketing/PlatformBadges.svelte";
|
||||
|
||||
import { renderRepoAvatar } from "@app/lib/avatar";
|
||||
|
||||
interface CarouselRepo {
|
||||
name: string;
|
||||
description: string;
|
||||
rid: string;
|
||||
seeding: number;
|
||||
issues: number;
|
||||
patches: number;
|
||||
route: Route;
|
||||
avatar: string;
|
||||
}
|
||||
|
||||
const exploreRoute: Route = { resource: "explore", params: undefined };
|
||||
|
||||
let carousel: HTMLDivElement | undefined;
|
||||
let repos: CarouselRepo[] = [];
|
||||
let loading = true;
|
||||
|
||||
const SKELETON_COUNT = 4;
|
||||
|
||||
// Sorted rankings ("most seeded") require the seed to run a search backend.
|
||||
// Fall back to "no search" on anything getInfo can't answer so the carousel
|
||||
// still tries to show the seed's pinned repos.
|
||||
async function detectSearchAvailable(api: HttpdClient): Promise<boolean> {
|
||||
try {
|
||||
const info = await api.getInfo();
|
||||
return info.httpd.searchAvailable;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Reload whenever the explore seed changes (e.g. picked in Settings) so the
|
||||
// carousel always reflects the currently selected seed, not just the one
|
||||
// resolved on first mount. `determineSeed()` applies the fallback logic; the
|
||||
// `$selectedSeed` reference is what makes this reactive.
|
||||
let loadToken = 0;
|
||||
|
||||
// When the selected seed exposes a search backend the carousel shows the
|
||||
// most-seeded repositories; otherwise it falls back to the repos pinned on
|
||||
// the seed. Either way, links point at the repo on the current deployment.
|
||||
async function loadCarousel(_selected: BaseUrl | undefined) {
|
||||
const token = ++loadToken;
|
||||
const seed = determineSeed();
|
||||
const api = new HttpdClient(seed);
|
||||
loading = true;
|
||||
try {
|
||||
const searchAvailable = await detectSearchAvailable(api);
|
||||
const query: RepoListQuery = searchAvailable
|
||||
? { show: "all", sort: "seeding", perPage: 12 }
|
||||
: { show: "pinned" };
|
||||
const list = await api.repo.getAll(query);
|
||||
// Ignore a response that a newer seed selection has superseded.
|
||||
if (token !== loadToken) {
|
||||
return;
|
||||
}
|
||||
repos = list
|
||||
.filter(r => r.payloads["xyz.radicle.project"])
|
||||
.map(r => {
|
||||
const project = r.payloads["xyz.radicle.project"];
|
||||
return {
|
||||
name: project.data.name,
|
||||
description: project.data.description,
|
||||
rid: r.rid,
|
||||
seeding: r.seeding,
|
||||
issues: project.meta.issues.open,
|
||||
patches: project.meta.patches.open,
|
||||
route: { resource: "repo.source", repo: r.rid, node: seed },
|
||||
avatar: renderRepoAvatar(project.data.name),
|
||||
};
|
||||
});
|
||||
} catch (error) {
|
||||
if (token === loadToken && import.meta.env.DEV) {
|
||||
console.warn(
|
||||
"Failed to load repositories for the landing page:",
|
||||
error,
|
||||
);
|
||||
}
|
||||
} finally {
|
||||
if (token === loadToken) {
|
||||
loading = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$: void loadCarousel($selectedSeed);
|
||||
|
||||
function onRepoClick(event: MouseEvent, route: Route) {
|
||||
if (useDefaultNavigation(event)) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
void push(route);
|
||||
}
|
||||
|
||||
function shortenRid(rid: string): string {
|
||||
// "rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt" → "rad:z6cF..yGt"
|
||||
const prefix = rid.slice(0, 8);
|
||||
const suffix = rid.slice(-3);
|
||||
return `${prefix}..${suffix}`;
|
||||
}
|
||||
|
||||
function scrollCarousel(direction: "prev" | "next") {
|
||||
if (!carousel) return;
|
||||
const firstCard = carousel.querySelector(
|
||||
".repo-card",
|
||||
) as HTMLElement | null;
|
||||
const delta = firstCard ? firstCard.offsetWidth + 24 : 320;
|
||||
carousel.scrollBy({
|
||||
left: direction === "next" ? delta : -delta,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* color inherited from :root, padding from .page-container */
|
||||
|
||||
h3 {
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.install-heading {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.platforms {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
margin-top: 4rem;
|
||||
margin-bottom: 2rem;
|
||||
width: 100%;
|
||||
height: 480px;
|
||||
object-fit: cover;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.features {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1.5rem;
|
||||
margin-top: 8rem;
|
||||
margin-bottom: 8rem;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-right: 2.5rem;
|
||||
}
|
||||
|
||||
.feature-card h4 {
|
||||
padding: 0 0 0.5rem;
|
||||
}
|
||||
|
||||
.feature-card p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Most Active Repos Section */
|
||||
.most-active {
|
||||
padding: 0 0 6rem 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4rem;
|
||||
}
|
||||
|
||||
.header-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.header-row h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.arrow-buttons {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.arrow-buttons button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0;
|
||||
border-radius: var(--border-radius-tiny);
|
||||
border: none;
|
||||
background: var(--color-surface-canvas);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.arrow-buttons button:hover {
|
||||
background: var(--color-surface-mid);
|
||||
}
|
||||
|
||||
.arrow-buttons button:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.carousel {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x mandatory;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.carousel::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.repo-card {
|
||||
flex: 0 0 20rem;
|
||||
height: 22.5rem;
|
||||
background: var(--color-surface-canvas);
|
||||
border-radius: var(--border-radius-tiny);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
scroll-snap-align: start;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.carousel:has(.repo-card:hover) .repo-card {
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.carousel:has(.repo-card:hover) .repo-card:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.repo-image {
|
||||
width: 100%;
|
||||
height: 12.5rem;
|
||||
flex: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.repo-avatar {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
.skeleton {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--color-surface-mid) 0%,
|
||||
var(--color-surface-strong) 50%,
|
||||
var(--color-surface-mid) 100%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.skeleton-avatar {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.skeleton-line {
|
||||
height: 0.875rem;
|
||||
border-radius: var(--border-radius-tiny);
|
||||
}
|
||||
|
||||
.skeleton-title {
|
||||
height: 1.125rem;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.skeleton-description {
|
||||
width: 85%;
|
||||
}
|
||||
|
||||
.skeleton-id {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.skeleton-stats {
|
||||
width: 8rem;
|
||||
}
|
||||
|
||||
.skeleton-seeds {
|
||||
width: 3.5rem;
|
||||
}
|
||||
|
||||
@keyframes skeleton-shimmer {
|
||||
0% {
|
||||
background-position: 200% 0;
|
||||
}
|
||||
100% {
|
||||
background-position: -200% 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.skeleton {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.repo-body {
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
flex-grow: 1;
|
||||
gap: 1.75rem;
|
||||
}
|
||||
|
||||
.repo-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.repo-body h3 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.description {
|
||||
margin: 0;
|
||||
color: var(--color-text-tertiary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.id-link {
|
||||
font: var(--txt-code-regular);
|
||||
color: var(--color-accent-blue-500);
|
||||
}
|
||||
|
||||
.meta-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.stats {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
.stat {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.time {
|
||||
color: var(--color-text-quaternary);
|
||||
}
|
||||
|
||||
.all-repos {
|
||||
display: inline-flex;
|
||||
text-decoration: none;
|
||||
color: var(--color-accent-blue-500);
|
||||
}
|
||||
|
||||
.all-repos:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.garden-promo {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
padding: 2rem;
|
||||
margin-bottom: 6rem;
|
||||
background:
|
||||
url("/marketing/images/garden.png") no-repeat right center,
|
||||
var(--color-accent-citrus-500);
|
||||
background-size: cover;
|
||||
border-radius: var(--border-radius-tiny);
|
||||
}
|
||||
|
||||
.garden-promo-text h3,
|
||||
.garden-promo-text p {
|
||||
margin: 0;
|
||||
max-width: 32rem;
|
||||
color: var(--color-neutrals-opaque-light-900);
|
||||
}
|
||||
|
||||
.garden-promo-text h3 {
|
||||
padding-top: 0;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.garden-promo-action {
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
@media (max-width: 90rem) {
|
||||
.features {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
margin-top: 5rem;
|
||||
margin-bottom: 5rem;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.features {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2rem;
|
||||
margin-top: 4rem;
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
height: auto;
|
||||
aspect-ratio: 3 / 2;
|
||||
}
|
||||
|
||||
.garden-promo {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.garden-promo-action {
|
||||
align-self: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 44rem) {
|
||||
.hero h1 {
|
||||
font-size: 2.5rem;
|
||||
line-height: 2.75rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta title="Radicle" />
|
||||
|
||||
<div class="page-container">
|
||||
<section class="hero">
|
||||
<h1 class="txt-bold-48">
|
||||
The distributed code network. <span class="txt-color-tertiary">
|
||||
For humans and machines alike.
|
||||
</span>
|
||||
</h1>
|
||||
<img
|
||||
src="/marketing/images/radicle-bg.jpg"
|
||||
alt="Radicle"
|
||||
class="hero-image" />
|
||||
<h2 class="txt-bold-32">Peer-to-peer code infrastructure, built on Git.</h2>
|
||||
<h3 class="txt-bold-22 install-heading">Install the CLI now</h3>
|
||||
<CopyCommand />
|
||||
<div class="platforms">
|
||||
<PlatformBadges />
|
||||
</div>
|
||||
</section>
|
||||
<section class="features">
|
||||
<article class="feature-card">
|
||||
<h4 class="txt-bold-18">Local-First</h4>
|
||||
<p class="txt-medium-16 txt-color-tertiary">
|
||||
Code, issues, and patches all live on your machine. No API limits, no
|
||||
latency, no outage to wait out. Your agents work offline and sync when
|
||||
ready.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article class="feature-card">
|
||||
<h4 class="txt-bold-18">Private</h4>
|
||||
<p class="txt-medium-16 txt-color-tertiary">
|
||||
Direct peer-to-peer sync and Tor integration are standard. Share what
|
||||
you want, with whom you want, without anyone watching.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article class="feature-card">
|
||||
<h4 class="txt-bold-18">Signed by Default</h4>
|
||||
<p class="txt-medium-16 txt-color-tertiary">
|
||||
Every change is cryptographically signed — commits, patches, issues,
|
||||
comments, all of it. Nothing enters your repo unverified, so the whole
|
||||
history is tamper-proof and attributable. Trust cryptography, not the
|
||||
platform.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article class="feature-card">
|
||||
<h4 class="txt-bold-18">Human-First, Agent-Scale</h4>
|
||||
<p class="txt-medium-16 txt-color-tertiary">
|
||||
One person or a thousand agents, same conflict-free workflow. Each gets
|
||||
its own namespace, and Collaborative Objects merge concurrent edits
|
||||
automatically — every one signed.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article class="feature-card">
|
||||
<h4 class="txt-bold-18">Programmable Repos</h4>
|
||||
<p class="txt-medium-16 txt-color-tertiary">
|
||||
Radicle extends Git with conflict-free, programmable data types that
|
||||
live inside your repo. Design custom workflows for humans and agents,
|
||||
and they travel with your code, not a vendor’s API.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article class="feature-card">
|
||||
<h4 class="txt-bold-18">Sovereign</h4>
|
||||
<p class="txt-medium-16 txt-color-tertiary">
|
||||
Your code. Your identity. Your infrastructure. Nobody can deplatform
|
||||
you, rate-limit you, or revoke your access.
|
||||
</p>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="most-active">
|
||||
<div class="header-row">
|
||||
<h2 class="txt-bold-32">Explore repos on the network</h2>
|
||||
|
||||
<div class="arrow-buttons">
|
||||
<button
|
||||
type="button"
|
||||
aria-label="Previous"
|
||||
on:click={() => scrollCarousel("prev")}>
|
||||
←
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
aria-label="Next"
|
||||
on:click={() => scrollCarousel("next")}>
|
||||
→
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="carousel" bind:this={carousel}>
|
||||
{#if loading}
|
||||
{#each Array.from({ length: SKELETON_COUNT }) as _}
|
||||
<div class="repo-card" aria-hidden="true">
|
||||
<div class="repo-image">
|
||||
<div class="skeleton skeleton-avatar"></div>
|
||||
</div>
|
||||
<div class="repo-body">
|
||||
<div class="repo-info">
|
||||
<div class="skeleton skeleton-line skeleton-title"></div>
|
||||
<div class="skeleton skeleton-line skeleton-description"></div>
|
||||
<div class="skeleton skeleton-line skeleton-id"></div>
|
||||
</div>
|
||||
<div class="meta-row">
|
||||
<div class="skeleton skeleton-line skeleton-stats"></div>
|
||||
<div class="skeleton skeleton-line skeleton-seeds"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/each}
|
||||
{:else}
|
||||
{#each repos as repo}
|
||||
<a
|
||||
href={routeToPath(repo.route)}
|
||||
on:click={e => onRepoClick(e, repo.route)}
|
||||
class="repo-card">
|
||||
<div class="repo-image">
|
||||
{#if repo.avatar}
|
||||
<img src={repo.avatar} alt={repo.name} class="repo-avatar" />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="repo-body">
|
||||
<div class="repo-info">
|
||||
<h3 class="txt-bold-18">{repo.name}</h3>
|
||||
<p class="description txt-medium-14">{repo.description}</p>
|
||||
<span class="id-link">{shortenRid(repo.rid)}</span>
|
||||
</div>
|
||||
|
||||
<div class="meta-row">
|
||||
<div class="stats txt-code-regular">
|
||||
<span class="stat">{repo.issues} issues</span>
|
||||
<span class="stat">{repo.patches} patches</span>
|
||||
</div>
|
||||
<span class="time txt-medium-14">{repo.seeding} seeds</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{/each}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<a
|
||||
href={routeToPath(exploreRoute)}
|
||||
on:click={e => onRepoClick(e, exploreRoute)}
|
||||
class="all-repos txt-bold-18 arrow-link">
|
||||
Explore <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<section class="garden-promo">
|
||||
<div class="garden-promo-text">
|
||||
<h3 class="txt-bold-22">Need a hosted node? Try Radicle Garden.</h3>
|
||||
<p class="txt-medium-16">
|
||||
Always-on nodes for your repositories — no infrastructure to manage.
|
||||
</p>
|
||||
</div>
|
||||
<div class="garden-promo-action">
|
||||
<Button
|
||||
href="https://radicle.garden"
|
||||
variant="white"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">
|
||||
Visit radicle.garden
|
||||
<span class="link-arrow link-arrow-up-right" aria-hidden="true">↗</span>
|
||||
</Button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@@ -0,0 +1,454 @@
|
||||
<script lang="ts">
|
||||
import Meta from "@app/marketing/Meta.svelte";
|
||||
import Button from "@app/marketing/Button.svelte";
|
||||
|
||||
import { guides } from "@app/marketing/guides";
|
||||
import { link } from "@app/marketing/link";
|
||||
|
||||
const learnGuides = [guides[0], guides[2], guides[3]];
|
||||
</script>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
max-width: 50rem;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding-top: var(--section-gap);
|
||||
}
|
||||
|
||||
/* Tighten the intro "How it works" section: its top gap (from the page
|
||||
header) and its bottom gap (the following Guides section's top padding). */
|
||||
#basics.section,
|
||||
#guides.section {
|
||||
padding-top: 4rem;
|
||||
}
|
||||
|
||||
#basics .section-header {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#basics .section-header h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#basics .section-all {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.basics-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
gap: 3rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.basics-figure {
|
||||
--node-blue: var(--color-accent-blue-500);
|
||||
--node-green: var(--color-accent-green-600);
|
||||
--node-purple: var(--color-accent-purple-500);
|
||||
--mesh-line: var(--color-border-strong);
|
||||
}
|
||||
|
||||
.basics-figure .diagram {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.basics-figure .mesh-line {
|
||||
stroke: var(--mesh-line);
|
||||
stroke-width: 1.5;
|
||||
}
|
||||
|
||||
.basics-figure .nd-blue {
|
||||
fill: var(--node-blue);
|
||||
}
|
||||
.basics-figure .nd-green {
|
||||
fill: var(--node-green);
|
||||
}
|
||||
.basics-figure .nd-purple {
|
||||
fill: var(--node-purple);
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.basics-layout {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.basics-figure {
|
||||
max-width: 16rem;
|
||||
}
|
||||
}
|
||||
|
||||
.section:last-child {
|
||||
padding-bottom: var(--section-gap);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.section-header h2 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.section-header p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.faq-row {
|
||||
--product-card-gap: 1.5rem;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.faq-row .product-card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
padding: 1.5rem;
|
||||
border-radius: var(--border-radius-small);
|
||||
background: var(--color-surface-subtle);
|
||||
}
|
||||
|
||||
.faq-row .product-card-text {
|
||||
flex: 1;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.faq-row .product-title {
|
||||
font: var(--txt-bold-16);
|
||||
}
|
||||
|
||||
.faq-row .product-description {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.faq-row .product-link {
|
||||
margin-top: auto;
|
||||
padding-top: 1.25rem;
|
||||
}
|
||||
|
||||
/* Stretch the read-more link across the card so the whole box is clickable. */
|
||||
.faq-row .product-link::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.product-link {
|
||||
font: var(--txt-bold-14);
|
||||
}
|
||||
|
||||
.guide-thumbs {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1.5rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.section-all {
|
||||
display: inline-flex;
|
||||
margin-top: 2.5rem;
|
||||
font: var(--txt-bold-18);
|
||||
}
|
||||
|
||||
.guide-thumb {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.guide-thumb-image {
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1.2;
|
||||
object-fit: cover;
|
||||
border-radius: var(--border-radius-small);
|
||||
background: var(--color-surface-subtle);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.guide-thumb-title {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.guide-thumb:hover .link-arrow-right {
|
||||
transform: translateX(0.15rem);
|
||||
}
|
||||
|
||||
.guide-thumb:hover .link-arrow-up-right {
|
||||
transform: translate(0.15rem, -0.15rem);
|
||||
}
|
||||
|
||||
.guide-thumb-description {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
|
||||
@media (max-width: 40rem) {
|
||||
.guide-thumbs {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.section-all {
|
||||
font: var(--txt-bold-16);
|
||||
}
|
||||
}
|
||||
|
||||
.garden-banner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
margin: var(--section-gap) 0;
|
||||
padding: 1.5rem;
|
||||
min-height: 25.5rem;
|
||||
background:
|
||||
url("/marketing/images/garden.png") no-repeat right center,
|
||||
var(--color-accent-citrus-500);
|
||||
background-size: cover;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.garden-title {
|
||||
max-width: 28rem;
|
||||
color: var(--color-neutrals-opaque-dark-0);
|
||||
}
|
||||
|
||||
.garden-bottom {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.garden-description {
|
||||
max-width: 25rem;
|
||||
margin: 0;
|
||||
color: var(--color-neutrals-opaque-dark-0);
|
||||
}
|
||||
|
||||
@media (max-width: 90rem) {
|
||||
#basics.section,
|
||||
#guides.section {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
}
|
||||
@media (max-width: 64rem) {
|
||||
#basics.section,
|
||||
#guides.section {
|
||||
padding-top: 1.5rem;
|
||||
}
|
||||
|
||||
.garden-banner {
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.garden-bottom {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>Learn | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta
|
||||
title="Learn | Radicle"
|
||||
description="Everything you need to understand, set up, and build on the sovereign code network." />
|
||||
|
||||
<main class="page-container">
|
||||
<h1 class="txt-bold-32">
|
||||
Learn Radicle. <span class="txt-color-tertiary">
|
||||
Everything you need to understand, set up, and build on the sovereign code
|
||||
network.
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
<section id="basics" class="section">
|
||||
<div class="basics-layout">
|
||||
<div class="basics-figure" aria-hidden="true">
|
||||
<svg
|
||||
class="diagram"
|
||||
viewBox="0 0 360 340"
|
||||
fill="none"
|
||||
aria-hidden="true">
|
||||
<g class="mesh-line">
|
||||
<line x1="180" y1="55" x2="274" y2="100" />
|
||||
<line x1="274" y1="100" x2="297" y2="202" />
|
||||
<line x1="297" y1="202" x2="232" y2="283" />
|
||||
<line x1="232" y1="283" x2="128" y2="283" />
|
||||
<line x1="128" y1="283" x2="63" y2="202" />
|
||||
<line x1="63" y1="202" x2="86" y2="100" />
|
||||
<line x1="86" y1="100" x2="180" y2="55" />
|
||||
<line x1="180" y1="55" x2="232" y2="283" />
|
||||
<line x1="274" y1="100" x2="128" y2="283" />
|
||||
<line x1="297" y1="202" x2="63" y2="202" />
|
||||
<line x1="180" y1="55" x2="297" y2="202" />
|
||||
<line x1="232" y1="283" x2="63" y2="202" />
|
||||
<line x1="128" y1="283" x2="86" y2="100" />
|
||||
</g>
|
||||
<circle class="nd-blue" cx="180" cy="55" r="20" fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-green"
|
||||
cx="274"
|
||||
cy="100"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-purple"
|
||||
cx="297"
|
||||
cy="202"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-blue"
|
||||
cx="232"
|
||||
cy="283"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-green"
|
||||
cx="128"
|
||||
cy="283"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle
|
||||
class="nd-purple"
|
||||
cx="63"
|
||||
cy="202"
|
||||
r="20"
|
||||
fill-opacity="0.13" />
|
||||
<circle class="nd-blue" cx="86" cy="100" r="20" fill-opacity="0.13" />
|
||||
<circle class="nd-blue" cx="180" cy="55" r="9" />
|
||||
<circle class="nd-green" cx="274" cy="100" r="9" />
|
||||
<circle class="nd-purple" cx="297" cy="202" r="9" />
|
||||
<circle class="nd-blue" cx="232" cy="283" r="9" />
|
||||
<circle class="nd-green" cx="128" cy="283" r="9" />
|
||||
<circle class="nd-purple" cx="63" cy="202" r="9" />
|
||||
<circle class="nd-blue" cx="86" cy="100" r="9" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="basics-text">
|
||||
<div class="section-header">
|
||||
<h2 class="txt-bold-24">How it works</h2>
|
||||
<p class="txt-bold-24 txt-color-tertiary">
|
||||
The core ideas behind Radicle.
|
||||
</p>
|
||||
</div>
|
||||
<a
|
||||
href="/principles"
|
||||
class="section-all product-link arrow-link"
|
||||
use:link>
|
||||
Learn the basics <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="guides" class="section">
|
||||
<div class="section-header">
|
||||
<h2 class="txt-bold-24">Guides</h2>
|
||||
<p class="txt-medium-16 txt-color-tertiary">
|
||||
Step-by-step tutorials that walk you through Radicle, from your first
|
||||
repository to running infrastructure.
|
||||
</p>
|
||||
</div>
|
||||
<div class="guide-thumbs">
|
||||
{#each learnGuides as guide}
|
||||
<a
|
||||
class="guide-thumb"
|
||||
href={guide.href}
|
||||
target={guide.external ? "_blank" : undefined}
|
||||
rel={guide.external ? "noopener noreferrer" : undefined}
|
||||
use:link>
|
||||
<img class="guide-thumb-image" src={guide.image} alt="" />
|
||||
<span class="guide-thumb-title txt-bold-16">
|
||||
{guide.title}
|
||||
{#if guide.external}
|
||||
<span class="link-arrow link-arrow-up-right">↗</span>
|
||||
{:else}
|
||||
<span class="link-arrow link-arrow-right">→</span>
|
||||
{/if}
|
||||
</span>
|
||||
<span class="guide-thumb-description txt-medium-14">
|
||||
{guide.description}
|
||||
</span>
|
||||
</a>
|
||||
{/each}
|
||||
</div>
|
||||
<a href="/guides" class="section-all product-link arrow-link" use:link>
|
||||
View all guides <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="section-header">
|
||||
<h2 class="txt-bold-24">FAQ</h2>
|
||||
<p class="txt-medium-16 txt-color-tertiary">
|
||||
Answers to the most common questions about Radicle. What it is, how it
|
||||
compares to GitHub, and the technical details behind the protocol.
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-row faq-row">
|
||||
<article class="product-card">
|
||||
<div class="product-card-text">
|
||||
<strong class="product-title">General Questions</strong>
|
||||
<span class="product-description">
|
||||
What is Radicle and how is it different from GitHub? Who’s building
|
||||
it, how many people use it, and what’s the project’s history.
|
||||
</span>
|
||||
<a
|
||||
href="/faq#general-questions"
|
||||
class="product-link arrow-link"
|
||||
use:link>
|
||||
Read general FAQ <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
<article class="product-card">
|
||||
<div class="product-card-text">
|
||||
<strong class="product-title">Technical Questions</strong>
|
||||
<span class="product-description">
|
||||
What does “peer-to-peer” mean in practice? Why not just use Git
|
||||
directly? How does identity work without accounts? The technical
|
||||
reasoning explained.
|
||||
</span>
|
||||
<a
|
||||
href="/faq#technical-questions"
|
||||
class="product-link arrow-link"
|
||||
use:link>
|
||||
Read technical FAQ <span class="link-arrow link-arrow-right">
|
||||
→
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
<a href="/faq" class="section-all product-link arrow-link" use:link>
|
||||
All FAQ <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<section class="garden-banner">
|
||||
<h2 class="txt-bold-32 garden-title">
|
||||
Introducing Radicle Garden. The quickest way to get started on the
|
||||
network.
|
||||
</h2>
|
||||
<div class="garden-bottom">
|
||||
<p class="txt-medium-16 garden-description">
|
||||
Get started in minutes—no servers required. Instantly share code and
|
||||
discover new projects.
|
||||
</p>
|
||||
<Button
|
||||
href="https://radicle.garden"
|
||||
variant="white"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">
|
||||
Visit radicle.garden
|
||||
<span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</Button>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
@@ -0,0 +1,54 @@
|
||||
<script lang="ts">
|
||||
import { handleDelegatedLinkClick } from "@app/marketing/link";
|
||||
|
||||
function addCopyButtons(node: HTMLElement) {
|
||||
const pres = node.querySelectorAll("pre");
|
||||
|
||||
for (const pre of pres) {
|
||||
pre.style.position = "relative";
|
||||
|
||||
const btn = document.createElement("button");
|
||||
btn.className = "copy-code-button";
|
||||
btn.setAttribute("aria-label", "Copy to clipboard");
|
||||
|
||||
const img = document.createElement("img");
|
||||
img.src = "/icons/copy.svg";
|
||||
img.alt = "Copy";
|
||||
img.width = 16;
|
||||
img.height = 16;
|
||||
btn.appendChild(img);
|
||||
|
||||
let timeout: ReturnType<typeof setTimeout> | undefined;
|
||||
btn.addEventListener("click", async () => {
|
||||
const code = pre.querySelector("code");
|
||||
const text = code ? code.innerText : pre.innerText;
|
||||
try {
|
||||
await navigator.clipboard.writeText(text);
|
||||
img.src = "/icons/check.svg";
|
||||
img.alt = "Copied";
|
||||
btn.setAttribute("aria-label", "Copied to clipboard");
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(() => {
|
||||
img.src = "/icons/copy.svg";
|
||||
img.alt = "Copy";
|
||||
btn.setAttribute("aria-label", "Copy to clipboard");
|
||||
}, 2000);
|
||||
} catch (err) {
|
||||
console.error("Failed to copy:", err);
|
||||
}
|
||||
});
|
||||
|
||||
pre.appendChild(btn);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Delegated link handling: keyboard users still activate the anchors
|
||||
directly, which dispatches the click this handler relies on. -->
|
||||
<!-- svelte-ignore a11y_no_noninteractive_element_interactions a11y_click_events_have_key_events -->
|
||||
<main
|
||||
class="page-container markdown-content"
|
||||
use:addCopyButtons
|
||||
on:click={handleDelegatedLinkClick}>
|
||||
<slot />
|
||||
</main>
|
||||
@@ -0,0 +1,101 @@
|
||||
<script lang="ts">
|
||||
import type {
|
||||
CliRoute,
|
||||
DesktopRoute,
|
||||
DocsLoadedRoute,
|
||||
GuidesRoute,
|
||||
InstallRoute,
|
||||
LandingRoute,
|
||||
LearnRoute,
|
||||
PrinciplesRoute,
|
||||
} from "./types";
|
||||
|
||||
import Header from "@app/components/Header.svelte";
|
||||
|
||||
import BasicPrinciples from "./BasicPrinciples.svelte";
|
||||
import Cli from "./Cli.svelte";
|
||||
import Desktop from "./Desktop.svelte";
|
||||
import Docs from "./Docs.svelte";
|
||||
import Footer from "./Footer.svelte";
|
||||
import Guides from "./Guides.svelte";
|
||||
import Install from "./Install.svelte";
|
||||
import Landing from "./Landing.svelte";
|
||||
import Learn from "./Learn.svelte";
|
||||
import Sidebar from "./Sidebar.svelte";
|
||||
|
||||
export let route:
|
||||
| LandingRoute
|
||||
| LearnRoute
|
||||
| InstallRoute
|
||||
| GuidesRoute
|
||||
| DesktopRoute
|
||||
| CliRoute
|
||||
| PrinciplesRoute
|
||||
| DocsLoadedRoute;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: 18rem 1fr;
|
||||
max-width: 86rem;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.layout :global(.sidebar) {
|
||||
position: sticky;
|
||||
top: var(--global-header-height);
|
||||
height: calc(100vh - var(--global-header-height));
|
||||
}
|
||||
|
||||
.main-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 90rem) {
|
||||
.layout {
|
||||
grid-template-columns: 14rem 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.layout :global(.sidebar) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<Header />
|
||||
|
||||
<div class="marketing">
|
||||
<div class="layout">
|
||||
<Sidebar />
|
||||
<div class="main-content">
|
||||
{#if route.resource === "landing"}
|
||||
<Landing />
|
||||
{:else if route.resource === "learn"}
|
||||
<Learn />
|
||||
{:else if route.resource === "install"}
|
||||
<Install />
|
||||
{:else if route.resource === "guides"}
|
||||
<Guides />
|
||||
{:else if route.resource === "desktop"}
|
||||
<Desktop />
|
||||
{:else if route.resource === "cli"}
|
||||
<Cli />
|
||||
{:else if route.resource === "principles"}
|
||||
<BasicPrinciples />
|
||||
{:else if route.resource === "docs"}
|
||||
<Docs page={route.params.page} component={route.params.component} />
|
||||
{/if}
|
||||
<Footer />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,26 @@
|
||||
<script lang="ts">
|
||||
export let title: string;
|
||||
export let description =
|
||||
"Radicle is a sovereign code forge for software communities.";
|
||||
// Canonical URL for docs copied verbatim from radicle.dev, pointing search
|
||||
// engines at the original to avoid duplicate-content penalties.
|
||||
export let canonical: string | undefined = undefined;
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<meta name="description" content={description} />
|
||||
|
||||
{#if canonical}
|
||||
<link rel="canonical" href={canonical} />
|
||||
{/if}
|
||||
|
||||
<meta property="og:url" content="https://radicle.network" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:description" content={description} />
|
||||
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta property="twitter:domain" content="radicle.network" />
|
||||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
</svelte:head>
|
||||
@@ -0,0 +1,288 @@
|
||||
<script lang="ts">
|
||||
import type { Route } from "@app/lib/router/definitions";
|
||||
|
||||
import {
|
||||
activeUnloadedRouteStore,
|
||||
push,
|
||||
routeToPath,
|
||||
useDefaultNavigation,
|
||||
} from "@app/lib/router";
|
||||
|
||||
import Footer from "./Footer.svelte";
|
||||
|
||||
const installRoute: Route = { resource: "install", params: undefined };
|
||||
const learnRoute: Route = { resource: "learn", params: undefined };
|
||||
const exploreRoute: Route = { resource: "explore", params: undefined };
|
||||
|
||||
let open = false;
|
||||
|
||||
// Close the menu whenever the active route changes (e.g. after tapping a
|
||||
// nav card). Depends only on the route store, so toggling `open` doesn't
|
||||
// retrigger it.
|
||||
$: closeOnNavigation($activeUnloadedRouteStore);
|
||||
|
||||
function closeOnNavigation(_route: Route) {
|
||||
open = false;
|
||||
}
|
||||
|
||||
function onNav(event: MouseEvent, route: Route) {
|
||||
if (useDefaultNavigation(event)) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
void push(route);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.mobile-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-menu-button {
|
||||
display: flex;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: none;
|
||||
border-radius: var(--border-radius-small);
|
||||
background: var(--color-surface-mid);
|
||||
color: var(--color-text-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mobile-menu-button:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.mobile-menu-icon {
|
||||
display: block;
|
||||
overflow: visible;
|
||||
transition: transform 0.2s ease;
|
||||
transform-origin: center;
|
||||
}
|
||||
|
||||
.mobile-menu-icon circle {
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.mobile-menu-icon.open {
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.mobile-menu-icon.open .dot-left {
|
||||
transform: translateX(-1px);
|
||||
}
|
||||
|
||||
.mobile-menu-icon.open .dot-right {
|
||||
transform: translateX(1px);
|
||||
}
|
||||
|
||||
.mobile-menu-icon.open .dot-top {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.mobile-menu-icon.open .dot-bottom {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.mobile-nav-overlay {
|
||||
position: fixed;
|
||||
top: var(--global-header-height);
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 90;
|
||||
background: var(--color-surface-base);
|
||||
padding: 1.5rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.mobile-nav-content {
|
||||
min-height: calc(100dvh - var(--global-header-height) - 3rem);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.mobile-nav-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mobile-nav-card {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
border-radius: var(--border-radius-small);
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: none;
|
||||
background: var(--color-surface-subtle);
|
||||
min-height: 7.5rem;
|
||||
}
|
||||
|
||||
.mobile-nav-card:hover {
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.mobile-nav-card.install:not(.button):not(.product-link) {
|
||||
background: var(--color-accent-green-500);
|
||||
color: #0b0d12;
|
||||
}
|
||||
|
||||
.mobile-nav-card.learn:not(.button):not(.product-link) {
|
||||
background: var(--color-accent-purple-500);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.mobile-nav-card.explore:not(.button):not(.product-link) {
|
||||
background: var(--color-accent-blue-500);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.mobile-nav-card.garden:not(.button):not(.product-link) {
|
||||
background: var(--color-accent-citrus-500);
|
||||
color: #0b0d12;
|
||||
}
|
||||
|
||||
.mobile-nav-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
.mobile-nav-title {
|
||||
font: var(--txt-bold-16);
|
||||
line-height: 1.05;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.mobile-nav-description {
|
||||
font: var(--txt-medium-16);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.mobile-nav-footer :global(.footer) {
|
||||
padding: 2rem 0 0;
|
||||
gap: 2rem;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.mobile-nav-footer :global(.footer-links) {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
@media (max-width: 56rem) {
|
||||
.mobile-menu {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
:global(body:has(.mobile-nav-overlay)) {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="marketing mobile-menu">
|
||||
<button
|
||||
class="mobile-menu-button"
|
||||
type="button"
|
||||
aria-label={open ? "Close navigation menu" : "Open navigation menu"}
|
||||
aria-expanded={open}
|
||||
on:click={() => (open = !open)}>
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
fill="none"
|
||||
aria-hidden="true"
|
||||
class="mobile-menu-icon"
|
||||
class:open>
|
||||
<circle class="dot-left" cx="2" cy="8" r="2" fill="currentColor" />
|
||||
<circle class="dot-top" cx="8" cy="2" r="2" fill="currentColor" />
|
||||
<circle class="dot-center" cx="8" cy="8" r="2" fill="currentColor" />
|
||||
<circle class="dot-bottom" cx="8" cy="14" r="2" fill="currentColor" />
|
||||
<circle class="dot-right" cx="14" cy="8" r="2" fill="currentColor" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
{#if open}
|
||||
<nav class="mobile-nav-overlay" aria-label="Mobile navigation">
|
||||
<div class="mobile-nav-content">
|
||||
<ul class="mobile-nav-main">
|
||||
<li>
|
||||
<a
|
||||
href={routeToPath(installRoute)}
|
||||
class="mobile-nav-card install"
|
||||
on:click={e => onNav(e, installRoute)}>
|
||||
<div class="mobile-nav-text">
|
||||
<span class="mobile-nav-title">Install</span>
|
||||
<span class="mobile-nav-description">
|
||||
Install Radicle CLI or download the desktop app.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a
|
||||
href={routeToPath(learnRoute)}
|
||||
class="mobile-nav-card learn"
|
||||
on:click={e => onNav(e, learnRoute)}>
|
||||
<div class="mobile-nav-text">
|
||||
<span class="mobile-nav-title">Learn</span>
|
||||
<span class="mobile-nav-description">
|
||||
Everything you need to get started with Radicle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a
|
||||
href={routeToPath(exploreRoute)}
|
||||
class="mobile-nav-card explore"
|
||||
on:click={e => onNav(e, exploreRoute)}>
|
||||
<div class="mobile-nav-text">
|
||||
<span class="mobile-nav-title">Explore</span>
|
||||
<span class="mobile-nav-description">
|
||||
Browse projects, issues, and patches on the network.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a
|
||||
href="https://radicle.garden"
|
||||
class="mobile-nav-card garden"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">
|
||||
<div class="mobile-nav-text">
|
||||
<span class="mobile-nav-title">Garden</span>
|
||||
<span class="mobile-nav-description">
|
||||
The quickest way to get started on the network.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="mobile-nav-footer">
|
||||
<Footer />
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,47 @@
|
||||
<script lang="ts">
|
||||
import PlatformIcon from "@app/marketing/PlatformIcon.svelte";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.os-badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.75rem 2rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.os-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
color: var(--color-text-primary);
|
||||
font: var(--txt-medium-16);
|
||||
}
|
||||
|
||||
.os-note {
|
||||
font: var(--txt-medium-12);
|
||||
color: var(--color-text-tertiary);
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-round);
|
||||
padding: 0.125rem 0.5rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<ul class="os-badges" aria-label="Supported platforms">
|
||||
<li class="os-badge">
|
||||
<PlatformIcon os="linux" />
|
||||
Linux
|
||||
</li>
|
||||
<li class="os-badge">
|
||||
<PlatformIcon os="macos" />
|
||||
macOS
|
||||
</li>
|
||||
<li class="os-badge">
|
||||
<PlatformIcon os="windows" />
|
||||
Windows
|
||||
<span class="os-note">via WSL2</span>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -0,0 +1,277 @@
|
||||
<script lang="ts">
|
||||
import type { Route } from "@app/lib/router/definitions";
|
||||
|
||||
import {
|
||||
activeUnloadedRouteStore,
|
||||
push,
|
||||
routeToPath,
|
||||
useDefaultNavigation,
|
||||
} from "@app/lib/router";
|
||||
|
||||
const installRoute: Route = { resource: "install", params: undefined };
|
||||
const cliRoute: Route = { resource: "cli", params: undefined };
|
||||
const desktopRoute: Route = { resource: "desktop", params: undefined };
|
||||
const learnRoute: Route = { resource: "learn", params: undefined };
|
||||
|
||||
const piRepoUrl =
|
||||
"https://radicle.network/nodes/hdh.radicle.garden/rad%3AzSM6rc7C18JjDxn4tj1r7PuP9QHc";
|
||||
const claudeRepoUrl =
|
||||
"https://radicle.network/nodes/seed.radicle.garden/rad:zvBj4kByGeQSrSy2c4H7fyK42cS8";
|
||||
const principlesRoute: Route = { resource: "principles", params: undefined };
|
||||
const guidesRoute: Route = { resource: "guides", params: undefined };
|
||||
const exploreRoute: Route = { resource: "explore", params: undefined };
|
||||
const faqRoute: Route = { resource: "docs", params: { page: "faq" } };
|
||||
const glossaryRoute: Route = {
|
||||
resource: "docs",
|
||||
params: { page: "glossary" },
|
||||
};
|
||||
|
||||
$: pathname = routeToPath($activeUnloadedRouteStore);
|
||||
|
||||
// Only show a section's sub-nav while the viewer is within that section.
|
||||
$: installOpen = ["/install", "/cli", "/desktop"].includes(pathname);
|
||||
$: learnOpen =
|
||||
["/learn", "/principles", "/faq", "/glossary"].includes(pathname) ||
|
||||
pathname.startsWith("/guides");
|
||||
|
||||
function onNav(event: MouseEvent, route: Route) {
|
||||
if (useDefaultNavigation(event)) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
void push(route);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.sidebar {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 6rem 1.5rem 1.5rem 2rem;
|
||||
gap: 1rem;
|
||||
overflow-y: auto;
|
||||
/* Pin the sidebar so it stays put while the main content fades and slides
|
||||
beneath it; only the active-indicator dot animates within it. */
|
||||
view-transition-name: marketing-sidebar;
|
||||
}
|
||||
|
||||
.top-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.nav-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
font: var(--txt-bold-16);
|
||||
letter-spacing: -0.005em;
|
||||
color: var(--color-text-tertiary);
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.section-header:hover {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.section-header.active {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
font: var(--txt-bold-16);
|
||||
letter-spacing: -0.005em;
|
||||
color: var(--color-text-tertiary);
|
||||
text-decoration: none;
|
||||
padding-left: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.nav-link.active {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.external-links {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.external-link {
|
||||
font: var(--txt-bold-16);
|
||||
letter-spacing: -0.005em;
|
||||
color: var(--color-text-tertiary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.external-link:hover {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
/* A single active-indicator dot lives inside whichever nav item is active.
|
||||
Its `view-transition-name` lets the browser morph it between positions as
|
||||
the active item changes across navigation (see marketing.css for the
|
||||
enter/exit slide). */
|
||||
.dot {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -2.5px;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--color-accent-blue-500);
|
||||
view-transition-name: sidebar-dot;
|
||||
}
|
||||
|
||||
.section-header .dot {
|
||||
left: -0.75rem;
|
||||
}
|
||||
|
||||
.nav-link .dot {
|
||||
left: -0.25rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<aside class="sidebar">
|
||||
<nav class="top-section">
|
||||
<div class="nav-section">
|
||||
<a
|
||||
href={routeToPath(installRoute)}
|
||||
class="section-header"
|
||||
class:active={pathname === "/install"}
|
||||
on:click={e => onNav(e, installRoute)}>
|
||||
{#if pathname === "/install"}
|
||||
<span class="dot"></span>
|
||||
{/if}
|
||||
Install
|
||||
</a>
|
||||
{#if installOpen}
|
||||
<div class="nav-links">
|
||||
<a
|
||||
href={routeToPath(cliRoute)}
|
||||
class="nav-link"
|
||||
class:active={pathname === "/cli"}
|
||||
on:click={e => onNav(e, cliRoute)}>
|
||||
{#if pathname === "/cli"}
|
||||
<span class="dot"></span>
|
||||
{/if}
|
||||
CLI
|
||||
</a>
|
||||
<a
|
||||
href={routeToPath(desktopRoute)}
|
||||
class="nav-link"
|
||||
class:active={pathname === "/desktop"}
|
||||
on:click={e => onNav(e, desktopRoute)}>
|
||||
{#if pathname === "/desktop"}
|
||||
<span class="dot"></span>
|
||||
{/if}
|
||||
Desktop
|
||||
</a>
|
||||
<a
|
||||
href={piRepoUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="nav-link arrow-link">
|
||||
Pi agent <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
<a
|
||||
href={claudeRepoUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="nav-link arrow-link">
|
||||
Claude skill <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="nav-section">
|
||||
<a
|
||||
href={routeToPath(learnRoute)}
|
||||
class="section-header"
|
||||
class:active={pathname === "/learn"}
|
||||
on:click={e => onNav(e, learnRoute)}>
|
||||
{#if pathname === "/learn"}
|
||||
<span class="dot"></span>
|
||||
{/if}
|
||||
Learn
|
||||
</a>
|
||||
{#if learnOpen}
|
||||
<div class="nav-links">
|
||||
<a
|
||||
href={routeToPath(principlesRoute)}
|
||||
class="nav-link"
|
||||
class:active={pathname === "/principles"}
|
||||
on:click={e => onNav(e, principlesRoute)}>
|
||||
{#if pathname === "/principles"}
|
||||
<span class="dot"></span>
|
||||
{/if}
|
||||
How it works
|
||||
</a>
|
||||
<a
|
||||
href={routeToPath(guidesRoute)}
|
||||
class="nav-link"
|
||||
class:active={pathname.startsWith("/guides")}
|
||||
on:click={e => onNav(e, guidesRoute)}>
|
||||
{#if pathname.startsWith("/guides")}
|
||||
<span class="dot"></span>
|
||||
{/if}
|
||||
Guides
|
||||
</a>
|
||||
<a
|
||||
href={routeToPath(faqRoute)}
|
||||
class="nav-link"
|
||||
class:active={pathname === "/faq"}
|
||||
on:click={e => onNav(e, faqRoute)}>
|
||||
{#if pathname === "/faq"}
|
||||
<span class="dot"></span>
|
||||
{/if}
|
||||
FAQ
|
||||
</a>
|
||||
<a
|
||||
href={routeToPath(glossaryRoute)}
|
||||
class="nav-link"
|
||||
class:active={pathname === "/glossary"}
|
||||
on:click={e => onNav(e, glossaryRoute)}>
|
||||
{#if pathname === "/glossary"}
|
||||
<span class="dot"></span>
|
||||
{/if}
|
||||
Glossary
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="external-links">
|
||||
<a
|
||||
href={routeToPath(exploreRoute)}
|
||||
class="external-link arrow-link"
|
||||
on:click={e => onNav(e, exploreRoute)}>
|
||||
Explore <span class="link-arrow link-arrow-right">→</span>
|
||||
</a>
|
||||
<a
|
||||
href="https://radicle.garden"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="external-link arrow-link">
|
||||
Garden <span class="link-arrow link-arrow-up-right">↗</span>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
</aside>
|
||||
@@ -0,0 +1,113 @@
|
||||
---
|
||||
title: Download Radicle
|
||||
subtitle: Reproducible binaries, package managers, and verification
|
||||
---
|
||||
|
||||
<script>
|
||||
import Meta from '@app/marketing/Meta.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Download | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta title="Download | Radicle" description="Reproducible binaries, package managers, and verification." canonical="https://radicle.dev/download" />
|
||||
|
||||
# Download Radicle
|
||||
|
||||
## Install script
|
||||
|
||||
The quickest way to install Radicle on any supported platform:
|
||||
|
||||
```
|
||||
curl -sSf https://radicle.dev/install | sh
|
||||
```
|
||||
|
||||
## Package managers
|
||||
|
||||
### APT (Debian / Ubuntu)
|
||||
|
||||
```
|
||||
curl -LO https://radicle.dev/apt/radicle-archive-keyring.deb
|
||||
chmod a+r radicle-archive-keyring.deb
|
||||
sudo apt install ./radicle-archive-keyring.deb
|
||||
echo "deb [signed-by=/usr/share/radicle/radicle-archive-keyring.asc] https://radicle.dev/apt release main" \
|
||||
| sudo tee /etc/apt/sources.list.d/radicle.list
|
||||
sudo apt update
|
||||
sudo apt install radicle
|
||||
```
|
||||
|
||||
### Pacman (Arch Linux)
|
||||
|
||||
Install [`radicle-bin`](https://aur.archlinux.org/packages/radicle-bin) from the AUR.
|
||||
|
||||
### Nix
|
||||
|
||||
Install `radicle-node` from [Nixpkgs](https://search.nixos.org/packages?query=radicle-node).
|
||||
|
||||
## Reproducible binaries
|
||||
|
||||
Radicle publishes reproducible builds for Linux and macOS. Each release includes binaries, SHA256 checksums, and SSH signatures.
|
||||
|
||||
### Radicle
|
||||
|
||||
Download the latest release for your platform:
|
||||
|
||||
```
|
||||
curl -O -L https://files.radicle.dev/releases/latest/radicle-$TARGET.tar.xz
|
||||
```
|
||||
|
||||
Replace `$TARGET` with one of:
|
||||
|
||||
| Platform | Target |
|
||||
|----------|--------|
|
||||
| Linux x86_64 | `x86_64-unknown-linux-musl` |
|
||||
| Linux ARM64 | `aarch64-unknown-linux-musl` |
|
||||
| macOS x86_64 | `x86_64-apple-darwin` |
|
||||
| macOS ARM64 | `aarch64-apple-darwin` |
|
||||
|
||||
### Radicle HTTP Daemon
|
||||
|
||||
```
|
||||
curl -O -L https://files.radicle.dev/releases/radicle-httpd/latest/radicle-httpd-$TARGET.tar.xz
|
||||
```
|
||||
|
||||
The same platform targets apply.
|
||||
|
||||
### Installation
|
||||
|
||||
Extract the archive to `~/.radicle/`:
|
||||
|
||||
```
|
||||
tar -xf radicle-$TARGET.tar.xz -C ~/.radicle/
|
||||
```
|
||||
|
||||
This places binaries in `~/.radicle/bin` and man pages in `~/.radicle/man`. Make sure `~/.radicle/bin` is in your `PATH`.
|
||||
|
||||
## Verification
|
||||
|
||||
Each archive is accompanied by a `.sig` (SSH signature) and `.sha256` (checksum) file.
|
||||
|
||||
### Signature verification
|
||||
|
||||
Verify the archive signature using `ssh-keygen`:
|
||||
|
||||
```
|
||||
ssh-keygen -Y check-novalidate -n file -s ARCHIVE.tar.xz.sig < ARCHIVE.tar.xz
|
||||
```
|
||||
|
||||
The following team members sign releases:
|
||||
|
||||
| Name | Public key |
|
||||
|------|-----------|
|
||||
| cloudhead@radicle.xyz | `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL460KIEccS4881p7PPpiiQBsxF+H5tgC6De6crw9rbU` |
|
||||
| erik@radicle.xyz | `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBrJyJTwj/xG7F7qY0HDFXbb8A+xNNH8eILQ8hlvKW7/` |
|
||||
| fintan@radicle.xyz | `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEFsaRqAJ1r6bBFwlcWzJKN7DdjItQDumCNc0wqw6Dvk` |
|
||||
| lorenz@radicle.xyz | `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFhK7CqgIIbSthoNn8ea32krOnMzC807Z+PpBkR2YOVj` |
|
||||
| rudolfs@osins.org | `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPueml1FxzjvwbD7vRZfwoaoyuxLy0L+WLBwSNiVoJe5` |
|
||||
|
||||
### Checksum verification
|
||||
|
||||
```
|
||||
sha256sum -c ARCHIVE.tar.xz.sha256
|
||||
```
|
||||
@@ -0,0 +1,219 @@
|
||||
---
|
||||
title: FAQ
|
||||
---
|
||||
|
||||
<script>
|
||||
import Meta from '@app/marketing/Meta.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
<title>FAQ - Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta title="FAQ | Radicle" description="Answers to the most common questions about Radicle." canonical="https://radicle.dev/faq" />
|
||||
|
||||
<h1 class="txt-bold-32">FAQ. <span class="txt-color-tertiary">Answers to common questions.</span></h1>
|
||||
|
||||
<style>
|
||||
:global(.markdown-content p),
|
||||
:global(.markdown-content li) {
|
||||
font: var(--txt-medium-16);
|
||||
line-height: 1.6;
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
</style>
|
||||
|
||||
If you can’t find an answer here, drop by our [support channel][support] and ask it there.
|
||||
|
||||
[support]: https://radicle.zulipchat.com/#narrow/stream/369873-support
|
||||
|
||||
## General Questions
|
||||
|
||||
### What is Radicle? How is it different from Git/GitHub?
|
||||
|
||||
Radicle is a peer-to-peer code collaboration platform ([“forge”][forge]) built on Git. Unlike centralized platforms like GitHub, there is no single entity controlling the network or user data. Repositories are replicated across peers in a decentralized manner. Radicle is an alternative for people and organizations who want full control of their data and user experience, without compromising on the social aspects of collaboration platforms.
|
||||
|
||||
[forge]: https://en.wikipedia.org/wiki/Forge_(software)
|
||||
|
||||
### Who is using Radicle currently? How many users does it have?
|
||||
|
||||
As of September 2024, there are around 2000 repositories hosted on the network, and a little over 200 nodes online on a weekly basis.
|
||||
|
||||
### How many people are working on it?
|
||||
|
||||
We currently have around 12 people working on Radicle, spread across the protocol, CLI, TUI, web, operations and content.
|
||||
|
||||
### How long have you been working on Radicle?
|
||||
|
||||
The current codebase is a little under 2 years old, but we’ve been working on the problem for over 4 years in total. Previous iterations of Radicle can be found online, but are considered deprecated in favor of [Heartwood][heartwood], the latest generation of the protocol.
|
||||
|
||||
[heartwood]: https://radicle.network/nodes/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
|
||||
|
||||
## Technical Questions
|
||||
|
||||
### What do you mean by “peer-to-peer”?
|
||||
|
||||
We define it the same way [Wikipedia][p2p] defines it; specifically this part: “Peers are equally privileged, equipotent participants in the network”.
|
||||
|
||||
So a peer-to-peer system is one where all participants are “equally privileged in the network”. This usually means they all run the same software as well.
|
||||
|
||||
[p2p]: https://en.wikipedia.org/wiki/Peer-to-peer
|
||||
|
||||
### Isn’t Git already peer-to-peer? Why do I need Radicle?
|
||||
|
||||
While Git is designed in some way for peer-to-peer interactions, there is no deployment of it that works that way. All deployments use the client-server model because Git lacks functionality to be deployed as-is in a peer-to-peer network.
|
||||
|
||||
For one, it has no way of verifying that the repository you downloaded after a `git clone` is the one you asked for, which means you need to clone from a trusted source (ie. a known server). This isn’t compatible with peer-to-peer in any useful way.
|
||||
|
||||
Radicle solves this by assigning stable identities to repositories that can be verified locally, allowing repositories to be served by untrusted parties.
|
||||
|
||||
### What does Radicle solve that isn’t already solved by Git commit signatures?
|
||||
|
||||
Verifying Git commit signatures, eg. via `git verify-commit` is a good security practice, however Git doesn’t solve the problem of knowing whether a signature was made by an active maintainer of the repository or not. It can only indicate whether the signature is valid or not.
|
||||
|
||||
Therefore, to ensure that the repository head was signed by one of the repository’s _current maintainers_, users would have to keep track of what the current maintainer set is at all times, getting that information from a trusted source.
|
||||
|
||||
Radicle checks this automatically, by verifying changes to the maintainer set through the repository identity document. All you need to know is that you have the correct Repository ID (RID). See [RIP-2][rip-2] for more information.
|
||||
|
||||
[rip-2]: https://radicle.network/nodes/seed.radicle.xyz/rad:z3trNYnLWS11cJWC6BbxDs5niGo82/tree/0002-identity.md
|
||||
|
||||
### Isn’t SHA-1 broken? How do you handle hash collisions?
|
||||
|
||||
SHA-1 is indeed broken, which is why Git uses a “hardened” SHA-1 hash function that can detect collisions, and generate a new “safe” hash. This process is called [counter-cryptanalysis][cc]. Radicle uses Git’s hardened SHA-1 function, since all replicated objects are stored in Git, and is therefore safe from collision attacks.
|
||||
|
||||
[cc]: https://marc-stevens.nl/research/papers/C13-S.pdf
|
||||
|
||||
### How does Radicle handle code discoverability and search, compared to centralized platforms?
|
||||
|
||||
Basic search functionality exists, but this area is still a work-in-progress. We expect more improvements in search/discovery in the future.
|
||||
|
||||
### Can Radicle handle large binary files like datasets or machine learning models?
|
||||
|
||||
Radicle uses Git internally, which can handle moderately-sized binary data relatively well. For large data however, we are considering adding support for solutions like `git-annex` or `git-lfs`. We intend for Radicle to help with the proliferation of open source AI models.
|
||||
|
||||
### How does Radicle ensure persistence and availability of repositories when nodes go offline?
|
||||
|
||||
Repositories are replicated across multiple peers on the network, so they remain available as long as at least one seeding node is online. Users have fine-grained control over which repositories they personally host and seed.
|
||||
|
||||
Additionally, certain nodes on the network act as _seed nodes_ - always-on public nodes - that ensure a certain level of data availability.
|
||||
|
||||
### How does Radicle handle issues, pull requests, code reviews etc. compared to GitHub?
|
||||
|
||||
Radicle has its own model for issues and pull requests (called “patches”), implemented via its own technology called Collaborative Objects (COBs). It supports non-destructive updates to patches and code reviews tied to patch revisions.
|
||||
|
||||
Patches and issues in Radicle are stored within Git’s object database and are therefore also available offline.
|
||||
|
||||
### Is there a way to run Radicle over Tor, I2P or other censorship-resistant networks?
|
||||
|
||||
Yes, Radicle is designed with Tor, Nym and I2P support in mind, though it’s still very early and these integrations haven’t been thoroughly tested.
|
||||
|
||||
### How does Radicle deal with NATs?
|
||||
|
||||
Radicle currently relies on seed nodes to serve data to peers behind [NATs][nat]. However, a [hole-punching][hp] protocol is currently under development, which would allow peers behind NATs to exchange data directly.
|
||||
|
||||
[hp]: https://en.wikipedia.org/wiki/Hole_punching_(networking)
|
||||
[nat]: https://en.wikipedia.org/wiki/Network_address_translation
|
||||
|
||||
### How does Radicle deal with potential abuse, illegal content sharing etc. on the network?
|
||||
|
||||
Each node is free to choose which repositories to host (_seed_) using configured policies. Nodes can block specific repositories or peers exhibiting abusive behavior.
|
||||
|
||||
### Is there a way to host private repositories on Radicle?
|
||||
|
||||
Yes, Radicle supports private repositories that are only shared among a trusted set of peers, not the entire network. These are not encrypted at rest but rely on selective replication and are thus completely invisible to the rest of the network.
|
||||
|
||||
### What is the process for migrating existing GitHub projects to Radicle?
|
||||
|
||||
There are community tools under development for migrating issues and pull-requests. We are planning full migration tooling for the future.
|
||||
|
||||
### Is there a way to easily mirror GitHub repositories on Radicle?
|
||||
|
||||
There is no built-in mirroring yet, but you can easily set up a `cron` job to pull from GitHub and push to Radicle periodically.
|
||||
|
||||
### Does Radicle have plans to support Windows?
|
||||
|
||||
Currently Radicle only supports Unix-based systems like Linux and macOS. We plan to add Windows support if there is enough demand.
|
||||
|
||||
### How does Radicle ensure consistency and prevent multiple versions of the “same” repository?
|
||||
|
||||
Radicle assigns stable identities to repositories that can be cryptographically verified. Changes in repository ownership are signed by previous owners forming a verifiable chain of provenance.
|
||||
|
||||
### Does Radicle use existing peer-to-peer technologies such as IPFS?
|
||||
|
||||
No. The first generation of Radicle protocols was built on top of IPFS, but it was too slow and impractical to use. One of the key issues Radicle needs to solve is handling mutable objects: code repositories change all the time, so a content-addressable store like IPFS is not really a solution.
|
||||
|
||||
### Does Radicle use a DHT?
|
||||
|
||||
Radicle does not use DHT technology because DHTs don’t allow nodes on the network to have much of a say in terms of what content they participate in serving.
|
||||
|
||||
Additionally, DHTs can introduce high network latency, especially in the case of permissionless networks, due to requests beyond routed across the globe.
|
||||
|
||||
## User Experience
|
||||
|
||||
### Are there plans to add multilingual/localization support to the UI?
|
||||
|
||||
We will add multilingual support if there is enough demand from the community.
|
||||
|
||||
### How does the user experience of using Radicle command line tools compare to Git?
|
||||
|
||||
Radicle is built on top of Git, so the workflow is quite similar. The `rad` CLI is provided for Radicle-specific functionality, and a Git [remote-helper][grh] is used for seamless integration with Git `push` and `pull` workflows.
|
||||
|
||||
Additionally, the `rad` CLI was designed to be as familiar as possible to Git users.
|
||||
|
||||
[grh]: https://git-scm.com/docs/gitremote-helpers
|
||||
|
||||
### What is the suggested development workflow when using Radicle?
|
||||
|
||||
The workflow is similar to using Git with a platform like GitHub. You clone a repository, make changes locally, then push to the network. Collaboration happens via issues, patches (pull requests), and code review. The difference is that Radicle doesn’t have a shared write access model like GitHub. Each user is required to push to their own namespace.
|
||||
|
||||
### How do I use Radicle with multiple devices?
|
||||
|
||||
At the moment, each device is required to be identified by a unique Radicle identity. We are currently working on proper multi-device support in Radicle, which will enable sharing a single identity across devices.
|
||||
|
||||
### Do I need to run a node to use Radicle?
|
||||
|
||||
Yes. The node is an essential part of what makes Radicle sovereign. However, you don’t have to keep your node running at all times, if you are trying to conserve bandwidth; Radicle works just as well while offline.
|
||||
|
||||
### How do you fork an abandoned repository?
|
||||
|
||||
With `rad init`.
|
||||
|
||||
When you fork an abandoned repo, you are essentially giving it a new repository identity, which is a new root of trust, with a new maintainer set. You’ll then have to communicate the new repository identifier and explain that this is a fork of the old repo.
|
||||
|
||||
### Are there plugins for code editors to work with Radicle?
|
||||
|
||||
There is a Visual Studio Code [integration][vscode] extension built by the community.
|
||||
|
||||
[vscode]: https://marketplace.visualstudio.com/items?itemName=radicle-ide-plugins-team.radicle
|
||||
|
||||
## Monetization & Funding
|
||||
|
||||
### What is the monetization strategy for Radicle? Is Radicle free software?
|
||||
|
||||
The Radicle protocol and clients are free and open source software licensed under the MIT and Apache 2.0 licenses, and will remain free software for ever.
|
||||
|
||||
Radicle is currently funded by Radworks. Radworks intends to offer hosting and retrieval services on top of the Radicle protocol. All of Radworks financials are publicly accessible [here][tally].
|
||||
|
||||
### What is the relationship between Radicle and the Radworks (`$RAD`) token?
|
||||
|
||||
Radicle is a true peer-to-peer protocol. It doesn’t use nor depend on any blockchain or cryptocurrency.
|
||||
|
||||
[Radworks][radworks], the organization that has been financing Radicle is organized around the `RAD` token which is a governance token on Ethereum.
|
||||
|
||||
### How much funding has Radicle raised?
|
||||
|
||||
The Radicle team is funded by [Radworks][radworks]. To date, around $7m has been granted towards the development of Radicle, by Radworks. Grant proposals for the last two years can be found [here][tally].
|
||||
|
||||
## Legal
|
||||
|
||||
### Am I liable as a Node Operator?
|
||||
|
||||
Node operators should consult applicable local regulations. Radicle is free and open-source software; the project does not provide legal advice.
|
||||
|
||||
[tally]: https://www.tally.xyz/gov/radworks
|
||||
[radworks]: https://radworks.org
|
||||
|
||||
---
|
||||
|
||||
If you have any other questions, feel free to drop into our [support channel](https://radicle.zulipchat.com/#narrow/stream/369873-support) on Zulip.
|
||||
@@ -0,0 +1,68 @@
|
||||
---
|
||||
title: Glossary
|
||||
---
|
||||
|
||||
<script>
|
||||
import Meta from '@app/marketing/Meta.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
<title>Glossary - Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta title="Glossary | Radicle" description="Quick definitions of the Radicle-specific terms you'll come across." />
|
||||
|
||||
<h1 class="txt-bold-32">Glossary. <span class="txt-color-tertiary">Definitions of Radicle-specific terms.</span></h1>
|
||||
|
||||
**Bootstrap node** — A well-known seed node that new nodes connect to on first startup to discover the rest of the network. Radicle ships pre-configured with `seed.radicle.garden` and `seed.radicle.xyz`.
|
||||
|
||||
**Canonical JSON** — A standardized JSON encoding with sorted keys and no unnecessary whitespace. Used for identity documents so that hashing produces deterministic results.
|
||||
|
||||
**Canonical reference** — A Git reference whose authoritative state is determined by delegate signatures meeting the threshold requirement.
|
||||
|
||||
**COB (Collaborative Object)** — A CRDT-based data structure stored as Git objects. Used to implement issues, patches, and other social features.
|
||||
|
||||
**`config.json`** — The node configuration file, typically at `~/.radicle/config.json`. Controls seeding policy, external addresses, bootstrap peers, and scope.
|
||||
|
||||
**CRDT (Conflict-Free Replicated Data Type)** — A data structure designed so that concurrent modifications by different participants always merge deterministically without conflicts. The foundation of COBs.
|
||||
|
||||
**Delegate** — A person (identified by their DID) authorized to make changes to a repository’s identity document and canonical branches.
|
||||
|
||||
**DID (Decentralized Identifier)** — A W3C standard identifier encoding a public key. In Radicle, DIDs use the `did:key` method with Ed25519 keys. Format: `did:key:z6Mk...`.
|
||||
|
||||
**Gossip protocol** — The communication mechanism by which Radicle nodes discover peers and learn about repository updates.
|
||||
|
||||
**Identity document** — A JSON document at `refs/rad/id` that defines a repository’s metadata, delegates, and threshold.
|
||||
|
||||
**Magic ref** — A special Git reference (like `refs/patches`) that Radicle intercepts during push to trigger specific actions.
|
||||
|
||||
**Namespace** — Git’s mechanism for partitioning references. Radicle uses namespaces to store each peer’s data under their Node ID.
|
||||
|
||||
**Node** — A participant in the Radicle network, running `radicle-node`. Identified by a public key (Node ID).
|
||||
|
||||
**Node ID (NID)** — The public key that identifies a node on the network. Also used as the node’s static key in NoiseXK handshakes. Retrieve yours with `rad self --nid`.
|
||||
|
||||
**NoiseXK** — The cryptographic handshake pattern used to secure peer connections. Uses Ed25519 keys and requires knowing the peer’s Node ID before connecting.
|
||||
|
||||
**Patch** — A proposed code change, stored as a COB. Radicle’s equivalent of a pull request.
|
||||
|
||||
**`rad` remote** — The Git remote configured in Radicle working copies. Handled by `git-remote-rad`.
|
||||
|
||||
**Radicle Explorer** — The web interface for browsing Radicle repositories, powered by `radicle-httpd`. Currently read-only.
|
||||
|
||||
**Reference announcement** — A gossip message that informs peers a repository has been updated. Triggers Git fetches by interested nodes.
|
||||
|
||||
**RID (Repository Identity)** — A globally unique, self-certifying identifier for a Radicle repository. Prefixed with `rad:`.
|
||||
|
||||
**Scope** — Controls which peers’ data your node synchronizes. Options are `followed` (only explicit follows) or `all`.
|
||||
|
||||
**Seed / Seed node** — An always-on server node that provides high availability for repositories. Listens on TCP port 8776 by default.
|
||||
|
||||
**Seeding** — Serving a repository to other nodes on the network. Distinct from tracking (storing locally for your own use).
|
||||
|
||||
**Seeding policy** — Configuration that determines which repositories a node will replicate. `allow` means replicate everything; `block` means only replicate explicitly allowed repos.
|
||||
|
||||
**Threshold** — The number of delegates required to agree on a change for it to be considered canonical. Defined in the identity document.
|
||||
|
||||
**Tracking** — Telling your node to store a local copy of a repository and fetch updates. Distinct from seeding (also serving it to others).
|
||||
@@ -0,0 +1,401 @@
|
||||
---
|
||||
title: Getting Started with Radicle
|
||||
subtitle: A quick start guide to getting up and running with Radicle
|
||||
---
|
||||
|
||||
<script>
|
||||
import Meta from '@app/marketing/Meta.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Getting Started | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta title="Getting Started | Radicle" description="A quick start guide to installing Radicle, creating your identity, and opening your first issue and patch." canonical="https://radicle.dev/guides/quick-start" />
|
||||
|
||||
# Getting Started with Radicle
|
||||
|
||||
This quick start guide will take you through the basic installation and usage of the Radicle toolchain.
|
||||
|
||||
## Installing the Radicle Toolchain
|
||||
|
||||
Radicle is an ecosystem for code collaboration over a decentralized network.
|
||||
You can start by installing the command-line toolchain, which includes:
|
||||
|
||||
- the Radicle CLI (`rad`): the command-line interface for managing your identity, repositories, issues, and patches
|
||||
- the Radicle node (`radicle-node`): the daemon that connects to the peer-to-peer network and replicates repositories
|
||||
- a [Git remote helper] (`git-remote-rad`): the program Git calls to push and fetch from Radicle repositories with the `rad://` URL prefix.
|
||||
|
||||
An [installation script](#install-script) is provided, or you can use your favorite package manager from the list below.
|
||||
|
||||
You can check that you have successfully installed the toolchain and see what version you are using by running:
|
||||
```
|
||||
$ rad --version
|
||||
```
|
||||
|
||||
### Install script
|
||||
|
||||
The quickest way to get started:
|
||||
|
||||
```
|
||||
$ curl -sSLf https://radicle.dev/install | sh
|
||||
```
|
||||
|
||||
This installs the toolchain into `~/.radicle/bin` and adds it to your `PATH`.
|
||||
|
||||
### From source
|
||||
|
||||
> Requires the Rust toolchain.
|
||||
|
||||
You can install the Radicle toolchain from source, by running the following
|
||||
commands from inside this repository:
|
||||
|
||||
cargo install --path crates/radicle-cli --force --locked --root ~/.radicle
|
||||
cargo install --path crates/radicle-node --force --locked --root ~/.radicle
|
||||
cargo install --path crates/radicle-remote-helper --force --locked --root ~/.radicle
|
||||
|
||||
Or directly from our seed node:
|
||||
|
||||
cargo install --force --locked --root ~/.radicle \
|
||||
--git https://seed.radicle.dev/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git \
|
||||
crates/radicle-cli crates/radicle-node crates/radicle-remote-helper
|
||||
|
||||
### Debian / Ubuntu (apt)
|
||||
|
||||
```
|
||||
curl -LO https://radicle.dev/apt/radicle-archive-keyring.deb
|
||||
sudo apt install ./radicle-archive-keyring.deb
|
||||
echo "deb [signed-by=/usr/share/radicle/radicle-archive-keyring.asc] https://radicle.dev/apt release main" \
|
||||
| sudo tee -a /etc/apt/sources.list
|
||||
sudo apt-get update && sudo apt-get install radicle
|
||||
```
|
||||
|
||||
### Homebrew
|
||||
|
||||
```
|
||||
$ brew install radicle
|
||||
```
|
||||
|
||||
### Arch Linux (pacman)
|
||||
|
||||
Install [`radicle-bin`](https://aur.archlinux.org/packages?O=0&K=radicle) from the AUR.
|
||||
|
||||
### Nix
|
||||
|
||||
Install [`radicle-node`](https://search.nixos.org/packages?show=radicle-node&query=radicle) from Nixpkgs.
|
||||
|
||||
### Windows
|
||||
|
||||
Currently, the best way to install on Windows is building it [from source](#from-source).
|
||||
|
||||
### Binary download
|
||||
|
||||
Pre-built binaries and verification instructions are available on the [download page](/download).
|
||||
|
||||
## Creating Your Radicle Identity
|
||||
|
||||
Before using Radicle, you need to create an identity — a cryptographic key pair that uniquely identifies you and your node on the network:
|
||||
|
||||
```
|
||||
$ rad auth
|
||||
```
|
||||
|
||||
You will be prompted for an **alias** (a human-readable name for your node) and a **passphrase** to protect your key pair:
|
||||
|
||||
```
|
||||
Initializing your radicle 👾 identity
|
||||
|
||||
✓ Enter your alias: alice
|
||||
✓ Enter a passphrase: ********
|
||||
✓ Creating your Ed25519 keypair...
|
||||
✓ Adding your radicle key to ssh-agent...
|
||||
✓ Your Radicle DID is did:key:z6Mkux1...
|
||||
✓ You're all set.
|
||||
```
|
||||
|
||||
Your [DID] (Decentralized Identifier) is your unique identity across the network.
|
||||
You can view it at any time with `rad self`.
|
||||
|
||||
```
|
||||
$ rad self --did
|
||||
did:key:z6Mkux1...
|
||||
```
|
||||
|
||||
> 👻
|
||||
>
|
||||
> Your passphrase and private key **cannot be recovered** if lost.
|
||||
> Store them somewhere safe.
|
||||
> Losing access to your key means losing your identity and any repositories associated with it.
|
||||
|
||||
> 🧠
|
||||
>
|
||||
> Radicle uses `ssh-agent` to cryptographically sign data that is pushed to the network.
|
||||
> After you have initialized your identity, `rad auth` will allow you to add the private key to the `ssh-agent`.
|
||||
|
||||
> 🧠
|
||||
>
|
||||
> Radicle does not currently support using a single identity across multiple devices, nor rotating keys.
|
||||
> Each device requires its own identity.
|
||||
|
||||
## Your Node and the Network
|
||||
|
||||
Radicle is a decentralized code forge — there is no central server.
|
||||
You participate in the network by running a node, which connects to other nodes to discover and replicate repositories.
|
||||
|
||||
To start your node, run:
|
||||
|
||||
```
|
||||
$ rad node start
|
||||
```
|
||||
|
||||
You can then check that it is running and connected to other nodes:
|
||||
|
||||
```
|
||||
$ rad node status
|
||||
✓ Node is running with Node ID z6Mkux1… and listening on 0.0.0.0:8776.
|
||||
|
||||
╭────────────────────────────────────────────────────────────────────────╮
|
||||
│ Node ID Address ? Since │
|
||||
├────────────────────────────────────────────────────────────────────────┤
|
||||
│ z6Mkv7G… seed.example.xyz:8776 ✓ ↗ 3m │
|
||||
│ z6MkszH… radicle.example.net:8776 ✓ ↗ 3m │
|
||||
│ z6Mko5W… garden.example.org:8776 ✗ ↗ 2m │
|
||||
╰────────────────────────────────────────────────────────────────────────╯
|
||||
```
|
||||
|
||||
The status table shows your connections to other nodes on the network.
|
||||
A `✓` indicates that your node is connected to the other node.
|
||||
Conversely, an `✗` indicates that you are disconnected from the other node.
|
||||
The arrow `↗` indicates an outbound connection (a connection that you initiated), whereas `↘` indicates an inbound connection (one that the other node initiated).
|
||||
|
||||
You can stop your node at any time by running:
|
||||
|
||||
```
|
||||
$ rad node stop
|
||||
```
|
||||
|
||||
> 🧠
|
||||
>
|
||||
> It is also possible to manage your node as a [systemd] service.
|
||||
> An example systemd user service is available in the [heartwood repository][systemd-service].
|
||||
|
||||
> 🧠
|
||||
>
|
||||
> Your node configuration lives in `~/.radicle/config.json` — see the [User Guide](/guides/user) for details on customizing your setup.
|
||||
|
||||
[systemd-service]: https://radicle.network/nodes/iris.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/tree/systemd/user/radicle-node.service
|
||||
|
||||
## Your First Repository
|
||||
|
||||
Radicle is built on top of Git, so any existing Git repository can be published to the network.
|
||||
To publish your first repository, you can navigate to the repository and run `rad init`.
|
||||
|
||||
When initializing the repository, you will have an option to choose its “Visibility”.
|
||||
A `public` repository means that this repository will be announced to the network by your node.
|
||||
Once the project has been announced and replicated, **deleting this repository is nearly impossible**.
|
||||
|
||||
Instead, if this is a repository that you do not wish to announce to the network and/or wish to test out Radicle with,
|
||||
then choose `private`.
|
||||
Note that the workflow for a `private` repository differs from `public`, and you can see how it works by [following the User Guide](/guides/user#3-selectively-revealing-repositories).
|
||||
|
||||
```
|
||||
$ cd /path/to/my-project
|
||||
$ rad init
|
||||
|
||||
Initializing radicle 👾 project in .
|
||||
|
||||
✓ Name: my-project
|
||||
✓ Description: A short description of my project
|
||||
✓ Default branch: main
|
||||
✓ Visibility: public
|
||||
✓ Project my-project created.
|
||||
|
||||
Your project's Repository ID (RID) is rad:z3gqc…
|
||||
You can show it any time by running `rad .` from this directory.
|
||||
|
||||
✓ Project successfully announced to the network.
|
||||
```
|
||||
|
||||
<aside>The <code>rad init</code> command provides a setup wizard and will prompt you for these details.</aside>
|
||||
|
||||
Your repository is now on the Radicle network!
|
||||
You can see which nodes have replicated your repository by using `rad sync status`.
|
||||
|
||||
```
|
||||
$ rad sync status
|
||||
╭──────────────────────────────────────────────────────────────────╮
|
||||
│ Node ID Alias ? SigRefs Since │
|
||||
├──────────────────────────────────────────────────────────────────┤
|
||||
│ (you) alice ✓ a1b2c3d 3m ago │
|
||||
│ z6Mkv7G… seed.example.xyz ✓ a1b2c3d 2m ago │
|
||||
│ z6MkszH… rad.example.net ✓ a1b2c3d 2m ago │
|
||||
│ z6Mko5W… garden.example.org ✗ f4e5d6c 1d ago │
|
||||
╰──────────────────────────────────────────────────────────────────╯
|
||||
```
|
||||
|
||||
A `✓` means the node is in sync with your latest changes, while `✗` means it is out of sync.
|
||||
|
||||
To push new changes, just use Git as usual:
|
||||
|
||||
```
|
||||
$ git push
|
||||
```
|
||||
|
||||
If you ever think the node has not announced changes, or that it needs to fetch changes, then you can always manually synchronize with the network:
|
||||
|
||||
```
|
||||
$ rad sync
|
||||
```
|
||||
|
||||
> 🧠
|
||||
>
|
||||
> You can also set your repository’s visibility to `private` during `rad init`.
|
||||
> Private repositories are only replicated to nodes you explicitly allow.
|
||||
> See the [User Guide](/guides/user#3-selectively-revealing-repositories) for details on managing access.
|
||||
|
||||
## Cloning a Repository
|
||||
|
||||
You can clone any repository from the network using its Repository ID (RID).
|
||||
For example, to clone Heartwood, the Radicle protocol implementation itself:
|
||||
|
||||
```
|
||||
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
|
||||
✓ Seeding policy updated for rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 with scope 'followed'
|
||||
✓ Fetching rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 from z6Mkk4R…SBiyXVM..
|
||||
✓ Fetching rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 from z6Mksmp…1DN6QSz..
|
||||
✓ Creating checkout in ./heartwood..
|
||||
✓ Repository successfully cloned under ./heartwood/
|
||||
╭────────────────────────────────────╮
|
||||
│ heartwood │
|
||||
│ Radicle Heartwood Protocol & Stack │
|
||||
│ 8 issues · 14 patches │
|
||||
╰────────────────────────────────────╯
|
||||
```
|
||||
|
||||
This fetches the repository from connected peers and creates a working copy, just like `git clone`.
|
||||
The difference is that Radicle will first ask the network for the repository, and clone it from the first available node.
|
||||
|
||||
## Your First Issue
|
||||
|
||||
Once you are working within a Radicle repository, it is easy to open an issue, whether your node is running or you are offline.
|
||||
|
||||
Running `rad issue open` will open your editor, and you will be prompted to write the title and body of the issue.
|
||||
Similar to commit messages, the first line is taken as the title of the issue, and below that is the body.
|
||||
|
||||
You can easily list issues using `rad issue list`, or show an issue with `rad issue show`.
|
||||
|
||||
Here is an example of an issue in the `heartwood` repository:
|
||||
|
||||
```
|
||||
╭───────────────────────────────────────────────────────────────────╮
|
||||
│ Title contributing: Feedback from the community │
|
||||
│ Issue b163597fae51a3f076d654294f695803dd5e221c │
|
||||
│ Author ade z6MkwGo…yS2aagA │
|
||||
│ Status open │
|
||||
│ │
|
||||
│ Derived from the Zulip conversation. │
|
||||
│ │
|
||||
│ - [ ] First contribution guide │
|
||||
│ - [ ] "good first issues" label usage │
|
||||
│ - [ ] Issue / Patch templates │
|
||||
│ - [ ] Source code overview map │
|
||||
│ - [ ] Increase time-to-first-feedback for new contributors │
|
||||
│ - [ ] Frequent and recurring open session for community to attend │
|
||||
│ - [ ] Local CI checks │
|
||||
╰───────────────────────────────────────────────────────────────────╯
|
||||
```
|
||||
|
||||
## Your First Patch
|
||||
|
||||
At this stage, you will likely want to propose changes to a repository.
|
||||
As mentioned before, Radicle is built on top of Git, which means your `git` (or `jj`) workflow does not need to change too much.
|
||||
|
||||
The `git-remote-rad` binary allows you to push changes to a special reference called `refs/patches` in the `rad` remote.
|
||||
When the remote helper sees this happening it will prompt you with your editor to write a title and body for the patch.
|
||||
Similar to commit messages, the first line is taken as the title of the issue, and below that is the body.
|
||||
|
||||
The most common Git revision to push to `refs/patches` is the `HEAD` revision.
|
||||
This will create a patch starting from the commit you are currently on, and the base of the patch will be the latest commit of your default branch (chosen during `rad init`).
|
||||
From your command line you would run:
|
||||
|
||||
```
|
||||
$ git push rad HEAD:refs/patches
|
||||
```
|
||||
|
||||
In fact, this is so common that we would recommend adding the following to your `.git/config`:
|
||||
|
||||
```
|
||||
[alias]
|
||||
patch = push self HEAD:refs/patches
|
||||
```
|
||||
|
||||
Which allows you to create a new patch by running `git patch`.
|
||||
|
||||
At any point, you can view a repository’s patches using `rad patch`, or you can show a specific one with `rad patch show`.
|
||||
|
||||
Here is an example of a patch in the `heartwood` repository:
|
||||
|
||||
```
|
||||
╭──────────────────────────────────────────────────────────────────────────╮
|
||||
│ Title fetch: Update gix packages │
|
||||
│ Patch 76f1369e7bab4126e97b175bcddea58f55f3c741 │
|
||||
│ Author fintohaps (you) │
|
||||
│ Head aed9c2603884a8cd76c433262657d72289bd36bb │
|
||||
│ Base caee776c388ffac2ea55cc9d1e3d7fa108ca6df5 │
|
||||
│ Commits ahead 1, behind 0 │
|
||||
│ Status open │
|
||||
│ │
|
||||
│ Several vulnerabilities were found in the gix packages[^1][^2][^3]. │
|
||||
│ │
|
||||
│ Update the packages to their latest versions which include the fixes. │
|
||||
│ │
|
||||
│ The only required change is in `ls_refs`. │
|
||||
│ `RefPrefixes` was introduced and this fixes the issue with `ref-prefix`. │
|
||||
│ This should now improve the ls-refs stage and only return references │
|
||||
│ that the client is asking for, as opposed to all references. │
|
||||
│ │
|
||||
│ [^1]: https://github.com/radicle-dev/heartwood/security/dependabot/38 │
|
||||
│ [^2]: https://github.com/radicle-dev/heartwood/security/dependabot/39 │
|
||||
│ [^3]: https://github.com/radicle-dev/heartwood/security/dependabot/36 │
|
||||
├──────────────────────────────────────────────────────────────────────────┤
|
||||
│ aed9c26 fetch: Update gix packages │
|
||||
├──────────────────────────────────────────────────────────────────────────┤
|
||||
│ ● Revision 76f1369 @ caee776..aed9c26 by fintohaps (you) 5 hours ago │
|
||||
╰──────────────────────────────────────────────────────────────────────────╯
|
||||
```
|
||||
|
||||
We never write the perfect set of changes the first time (or at least I do not), so you may need to update a patch after you have modified or added new commits.
|
||||
The process is similar to before; however, the reference you target with the remote helper should now contain the identifier of the patch.
|
||||
For example, to update the patch above, you would run:
|
||||
|
||||
```
|
||||
$ git push rad HEAD:patches/76f1369e7bab4126e97b175bcddea58f55f3c741
|
||||
```
|
||||
|
||||
For convenience, another way is to create a branch called `patches/76f1369e7bab4126e97b175bcddea58f55f3c741` and run:
|
||||
|
||||
```
|
||||
$ git push rad patches/76f1369e7bab4126e97b175bcddea58f55f3c741
|
||||
```
|
||||
|
||||
Alternatively, you can create an upstream branch that points to `patches/76f1369e7bab4126e97b175bcddea58f55f3c741`.
|
||||
In fact, `rad patch checkout` will do this for you.
|
||||
|
||||
## Next Steps
|
||||
|
||||
Now you know enough about Radicle to be dangerous!
|
||||
|
||||
If you want to learn more about how to collaborate, set up your own seed, or dive into the protocol details, then here are some useful links:
|
||||
|
||||
- **Collaborate** — Learn about issues and patches in the [User Guide](/guides/user#2-collaborating-the-radicle-way)
|
||||
- **Install [Radicle Desktop]** — A simple, intuitive way to interact with the Radicle network
|
||||
- **Run a seed node** — Help the network by seeding repositories with the [Seeder Guide](/guides/seeder)
|
||||
- **Understand the protocol** — Dive into how Radicle works in the [Protocol Guide](/guides/protocol)
|
||||
|
||||
We are a growing community who love to help out when we can.
|
||||
If you need help or want to chat to us further about everything Radicle, join us on [Zulip](https://radicle.zulipchat.com)!
|
||||
|
||||
[Git remote helper]: https://git-scm.com/docs/gitremote-helpers
|
||||
[DID]: https://www.w3.org/TR/did-1.0/
|
||||
[systemd]: https://systemd.io/
|
||||
[Radicle Desktop]: /install
|
||||
@@ -0,0 +1,532 @@
|
||||
---
|
||||
title: Radicle Protocol Guide
|
||||
subtitle: How Radicle works under the hood
|
||||
---
|
||||
|
||||
<script>
|
||||
import Meta from '@app/marketing/Meta.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
<title>Protocol Guide | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta title="Protocol Guide | Radicle" description="Gossip, replication, identity, and the data structures behind Radicle." canonical="https://radicle.dev/guides/protocol" />
|
||||
|
||||
# Radicle Protocol Guide
|
||||
|
||||
Heartwood, the latest generation of the [Radicle](/) protocol establishes a sovereign data network for code collaboration and publishing, built on top of [Git][git]. In Radicle, users maintain local copies of their repositories of interest and related social artifacts such as issues and patches. Instead of depending on a centralized service like GitHub, each participant in Radicle operates a node that is capable of running on a personal computer, and is connected via a peer-to-peer network.
|
||||
|
||||
Nodes, identified by [public keys][pkc], host and synchronize Git repositories across the network, using a novel gossip protocol for peer and repository discovery, alongside Git’s [protocol][git-v2] for data replication. In combination, this allows nodes to locate, replicate, and verify any repository published to the network, provided at least one other peer seeding the repository is online. Since Radicle is built on Git, it can easily interoperate with existing tools and workflows.
|
||||
|
||||
Radicle’s architecture is [local-first][local-first], ensuring continuous access to one’s repositories directly from their device, regardless of internet connectivity. Repositories have unique identifiers and are self-certifying, meaning all actions, from committing code to adding a comment to an issue, are performed locally and [cryptographically signed][signing], allowing peers to verify authenticity and data provenance once propagated to the network. This allows trust to be established without reliance on a centralized authority.
|
||||
|
||||
Radicle is designed for extensibility, allowing for diverse use cases without necessitating modifications at the protocol level. This guide delves into the capabilities of Radicle’s initial release, which has a focus on code collaboration and code publishing. Nonetheless, a range of other applications is foreseen in the future and possible today, including knowledge sharing, project coordination, and data set collaboration.
|
||||
|
||||
## Introduction
|
||||
|
||||
Git, the most widely-used distributed version control system, enables users to maintain and modify personal copies of data repositories, commonly for source code control. Its structure for direct user-to-user collaboration, while feasible, is often cumbersome since Git primarily focuses on version control rather than collaboration. As a result, users frequently opt for centralized [forges][forges] like GitHub or GitLab, which offer enhanced interfaces and collaborative tools on top of Git, such as project management and code review. This dependency, however, can result in vendor lock-in since it places a project’s social artifacts (e.g. issues, comments, pull requests) out of user control, potentially compromising data sovereignty and other user freedoms.
|
||||
|
||||
Traditional self-hosted forges like [Gitea][gitea] or [Forgejo][forgejo] provide more sovereignty but often lead to fragmented collaboration environments, as users must create separate profiles for each hosted instance. This simultaneously limits a project’s exposure to the wider open source community, a key advantage of platforms like GitHub, which have grown significantly due to network effects. This isolation can impact the visibility and collaborative potential of projects that choose traditional self-hosted solutions.
|
||||
|
||||
The Radicle protocol, in contrast, extends Git’s capabilities with a decentralized identity system, novel gossip protocol, and integrated social artifacts, forming a _self-hosted network for code collaboration_. Radicle locates, serves, and replicates Git repositories -- including artifacts -- across a [peer-to-peer][peer-to-peer] network while maintaining data authenticity via cryptographic signatures, so peers can directly exchange data without the need for a trusted third party. This enables communities to both self-host and share their repositories across a distributed protocol, contributing to the emergence of a new sovereign network for code collaboration and more.
|
||||
|
||||
## Nodes
|
||||
|
||||
Radicle is a [peer-to-peer][peer-to-peer] system, which means that there is no traditional client-server model. Peers on the Radicle network are referred to as _nodes_, and are indistinguishable from users at the protocol level. Nodes, identified by their [Node ID](#node-identifiers-nids) (NID) -- an [Ed25519][ed25519] public key -- are responsible for seeding Git repositories, each identified by a unique [Repository ID](#repository-identifier-rid) (RID). The seeding process involves both hosting the repository data and synchronizing changes with other nodes. Every Radicle user, irrespective of their role or activity, runs a node on their device. No specialized equipment is necessary for operating a node as a typical end-user; nodes can run on a personal computer without requiring a server.
|
||||
|
||||
<aside> In the peer-to-peer model, nodes act as <em>both clients and
|
||||
servers</em>. </aside>
|
||||
|
||||
### Seeding Repositories
|
||||
|
||||
Whenever a user clones, initializes, or opts to seed a repository, their node’s seeding policy is changed to reflect their choices. This policy establishes the repositories they are interested in and sets the rules for data retention, and synchronization, allowing users to have direct control over which repositories are kept on their device and offered to the network.
|
||||
|
||||
The typical end-user may choose to only seed the repositories they are actively collaborating on. However, more dedicated users may opt to run an always-on **seed node**, offering their infrastructure to the wider Radicle network or to their community. Seed nodes significantly enhance the network’s capacity to provide continuous access to a broad range of repositories. They can vary in their seeding policies, from _public seed nodes_ that openly seed all repositories to _community seed nodes_ that selectively seed repositories from a group of trusted peers.
|
||||
|
||||
<aside> For more details on how to run a seed node, refer to the <a
|
||||
href="/guides/seeder">Radicle Seeder’s Guide</a>.
|
||||
</aside>
|
||||
|
||||
### Node Identifiers (NIDs)
|
||||
|
||||
<aside class="kicker"> DIDs are a new identifier standard established by the
|
||||
W3C. </aside>
|
||||
|
||||
Radicle node identity is based on [public-key cryptography][pkc], which makes it easy to verify the authenticity of messages within the network through [digital signatures][signing]. This also allows for consistent identification even as a user’s physical address varies. When setting up a node, users generate their unique key pair, an [Ed25519][ed25519] public and private key, the public part of which is encoded and shared as a [Decentralized Identifier][did] (DID). Creating a node identity requires no permission or coordination: the key pair can be created while offline without providing an email address or any personal identifying information.
|
||||
|
||||
<aside> DIDs enable verifiable, self-sovereign digital identities that are
|
||||
fully under the control of the DID subject, independent of any centralized
|
||||
registry, identity provider, or certificate authority. </aside>
|
||||
|
||||
<figure>
|
||||
<pre class="center">did:key:<span class="highlight">z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK</span></pre>
|
||||
<figcaption>Example Node ID encoded as a DID using the <a
|
||||
href="https://w3c-ccg.github.io/did-method-key/"><code>did:key</code>
|
||||
method</a>.</figcaption>
|
||||
</figure>
|
||||
|
||||
It is important to safeguard one’s private key, as if it is either lost or compromised, one will have to generate a new node identity. A changeable, non-unique **alias** can optionally be associated to each node, for easier human identification across the network.
|
||||
|
||||
<aside> In the Radicle protocol, the terms “Node ID”, “Peer ID”, and “Public
|
||||
Key” all refer to the same thing and can be used interchangeably. </aside>
|
||||
|
||||
### Running a Node
|
||||
|
||||
To run a node and connect to the network, users install Radicle client software that is lightweight and suitable for use on both end-user devices and seed nodes. The reference implementation can be found in the Radicle [Heartwood][heartwood] repository, and is actively maintained by a small team of engineers.
|
||||
|
||||
<aside> Radicle’s reference implementation is written in <a
|
||||
href="https://www.rust-lang.org/">Rust</a>, a high-performance, memory-safe
|
||||
language. </aside>
|
||||
|
||||
The Radicle _stack_ is comprised of both the network client and a command line interface (CLI), which can be optionally supplemented with a web frontend. Radicle is released under the open source MIT and Apache 2.0 licenses, to encourage the development of diverse clients and applications. All client software adheres to the Radicle protocol specification, as outlined in the [Radicle Improvement Proposals][rips] (RIPs) repository, ensuring consistent functionality across implementations.
|
||||
|
||||
<aside> For a guided install of the Radicle stack, check out the <a
|
||||
href="/guides/user">user guide</a>. For reproducible binaries and verification, see the <a href="/download">download</a> page. </aside>
|
||||
|
||||
## Peer-to-peer Protocol
|
||||
|
||||
Radicle adopts a local-first, peer-to-peer (P2P) architecture, which draws inspiration from Secure Scuttlebutt (SSB) and Bitcoin’s [Lightning Network][ln].
|
||||
|
||||
Nodes on the Radicle network subscribe to repository data they are interested in, and peers announce updates that in turn trigger fetches for the underlying content. Just like SSB and Lightning, updates are [gossiped][gossip] on the network until they reach all interested peers.
|
||||
|
||||
Peer connections in Radicle are secured thanks to a [Noise protocol][noise] handshake. Radicle uses the [Noise XK][noise-xk] pattern specifically, just like the Lightning Network with the Node ID as the _static key_. This requires nodes to know the Node IDs of their peers before connecting to them, which takes place through the exchange of peer information over the gossip protocol.
|
||||
|
||||
Unlike SSB’s focus on social networking via append-only logs, Radicle focuses on code collaboration by incorporating Git’s [object model][git-odb] and [transfer protocol][git-pack] into a peer-to-peer context. This architecture not only leverages Git’s proven efficiency and reliability but also gives users complete autonomy over their social artifacts. Radicle’s peer-to-peer architecture, in contrast to federated systems, ensures no centralized points of failure, allowing the network to persist as long as users operate nodes.
|
||||
|
||||
<figure class="diagram">
|
||||
<img src="/marketing/images/guides/p2p-network.svg" alt="A set of connected peers forming a gossip network" />
|
||||
<figcaption>A set of connected peers forming a gossip network.</figcaption>
|
||||
</figure>
|
||||
|
||||
### Gossip Protocol
|
||||
|
||||
The Radicle networking layer is designed as a gossip protocol, where messages are relayed between peers to build routing tables that aid in repository discovery and replication. The core functionality is achieved with three message types, each fulfilling a distinct role:
|
||||
|
||||
**Node Announcements** are used for broadcasting Node IDs and physical addresses on which a node is publicly reachable, to facilitate peer discovery.
|
||||
|
||||
| Node Announcement | |
|
||||
| ----------------- | ------------------------------------- |
|
||||
| **`version`** | `u8` - Supported protocol version |
|
||||
| **`features`** | `u64` - Advertised node capabilities |
|
||||
| **`timestamp`** | `u64` - Message timestamp (unix time) |
|
||||
| **`alias`** | `u8[]` - Non-unique alias (UTF-8) |
|
||||
| **`addresses`** | `Address[]` - External addresses |
|
||||
| **`nonce`** | `u64` - Nonce used for DoS protection |
|
||||
| **`agent`** | `u8[]` - User-agent (UTF-8) |
|
||||
|
||||
**Inventory Announcements** are used for broadcasting repository inventories and constructing the routing table which maps out what repositories are hosted where.
|
||||
|
||||
| Inventory Announcement | |
|
||||
| ---------------------- | ------------------------------------- |
|
||||
| **`inventory`** | `RepoID[]` - Repository inventory |
|
||||
| **`timestamp`** | `u64` - Message timestamp (unix time) |
|
||||
|
||||
**Reference Announcements** are used for broadcasting updates to repositories, relayed only to nodes interested in the relevant repository.
|
||||
|
||||
| Refs Announcement | |
|
||||
| ----------------- | ------------------------------------------------------- |
|
||||
| **`rid`** | `RepoID` - Repository that was updated |
|
||||
| **`refs`** | `{NodeID, OID}[]` - Updated signed refs (`rad/sigrefs`) |
|
||||
| **`timestamp`** | `u64` - Message timestamp (unix time) |
|
||||
|
||||
<aside> <code>OID</code> stands for <em>Object ID</em> and represents the SHA-1
|
||||
hashes used by Git to identify objects.</aside>
|
||||
|
||||
To prevent endless propagation, nodes drop any message already encountered. However, for the sake of broadcasting messages to new nodes, gossip messages may be temporarily stored and replayed to nodes joining the network for the first time, or after a long period of being offline.
|
||||
|
||||
Each announcement includes the originating _Node ID_ along with a _cryptographic signature_ and _timestamp_, allowing network participants to verify the authenticity of messages before relaying them to peers.
|
||||
|
||||
<figure>
|
||||
<img src="/marketing/images/guides/announcement-msg.svg" alt="Announcement message structure" />
|
||||
<figcaption>Announcement message structure.</figcaption>
|
||||
</figure>
|
||||
|
||||
> **Tip**: Refer to [RIP-1][rip-1] to learn more details about Radicle’s networking protocol.
|
||||
|
||||
### Transport Encryption & Privacy
|
||||
|
||||
Connections between peers in the Radicle network are encrypted using a [Noise][noise] protocol handshake. This begins with two peers performing a [Diffie-Hellman][ecdh] key exchange to agree on a shared session key that is used for the duration of the connection.
|
||||
|
||||
Radicle uses the [XK][noise-xk] handshake pattern, which requires the connection responder’s _static key_ to be known in advance by the initiator. This _pre-sharing_ takes place over the gossip network via the `NodeAnnouncement` message, since the static key is simply the Node ID.
|
||||
|
||||
<aside> The Noise framework calls the node that is receiving an inbound
|
||||
connection the <em>responder</em>, and the node that is initiating the
|
||||
connection the <em>initiator</em>. </aside>
|
||||
|
||||
<figure class="diagram">
|
||||
<img src="/marketing/images/guides/noisexk-1.svg" alt="Noise XK handshake phase 1" />
|
||||
</figure>
|
||||
|
||||
Once the static key is known, a connection to the node can be initiated securely, by generating an ephemeral key from the static key, using Diffie-Hellman. The last step involves the initiating node sending its own static key over the secure channel.
|
||||
|
||||
<figure class="diagram">
|
||||
<img src="/marketing/images/guides/noisexk-2.svg" alt="Noise XK handshake phase 2" />
|
||||
</figure>
|
||||
|
||||
After the handshake phase is completed, all data exchanged between peers is fully encrypted and benefits from strong [forward secrecy][fs], ensuring secure and private communications across the network.
|
||||
|
||||
> **Tip**: Radicle also supports [Tor][tor] addresses. Users can leverage Tor to hide their IP address from peers, and connect to `.onion` addresses on the Tor network.
|
||||
|
||||
### Replication via Git
|
||||
|
||||
While gossip is used to exchange metadata, actual repository data is transferred via replication using the [Git protocol][git-pack]. The process begins with a node establishing a secure connection to one or more of the repository’s seeds, upon receiving a _reference_ or _inventory_ announcement of interest.
|
||||
|
||||
Once connected, the node initiates a Git _fetch_ protocol, which involves negotiating which objects should be sent or skipped by the remote node. The objects are then downloaded into the node’s storage, making them accessible to other nodes via the same process.
|
||||
|
||||
Since Radicle uses a [framing][framing] protocol for all its sessions, the fetch protocol is able to take place over the same physical connection between nodes as the gossip protocol. This allows for a more efficient use of resources and avoids certain problems with [NATs][nat]. Although Git’s protocols are typically connection-based, Radicle’s design allows for multiple concurrent Git fetches to take place over a single connection.
|
||||
|
||||
<aside> The idea of re-using a network connection for multiple concurrent
|
||||
protocols is called <a
|
||||
href="https://en.wikipedia.org/wiki/Multiplexing">multiplexing</a>. </aside>
|
||||
|
||||
<figure class="diagram">
|
||||
<img src="/marketing/images/guides/multiplexing.svg" alt="Connection multiplexing in Radicle" />
|
||||
<figcaption>Connection multiplexing in Radicle.</figcaption>
|
||||
</figure>
|
||||
|
||||
### Bootstrap Nodes
|
||||
|
||||
A node joining the network for the first time will not know any peers. Hence, it’s useful to pre-configure network clients with addresses of well-known nodes that can be used to initiate or _bootstrap_ the peer discovery process and build an address book.
|
||||
|
||||
Radicle’s reference implementation is pre-configured with two bootstrap nodes that are connected to if the address book is empty: `iris.radicle.xyz` and `rosa.radicle.xyz`. These are nodes run by the Radicle team and have large address books that are shared with connecting peers.
|
||||
|
||||
In the bootstrapping process, nodes connect to an initial set of bootstrap nodes and once they establish a connection, use the regular peer discovery mechanism to find more peers.
|
||||
|
||||
### Federation vs. Peer-to-peer
|
||||
|
||||
Federation allows for a degree of sovereignty, as each node can set its content policies, but user experience and identity are ultimately tied and mediated by these nodes’ administrators rather than by the users themselves.
|
||||
|
||||
> **federation** /ˌfɛdəˈreɪʃn/ _n._
|
||||
>
|
||||
> _(Computing)_ A system architecture where multiple independent servers or nodes operate under a common set of standards and protocols, allowing them to share data, resources, and functionalities across boundaries while maintaining autonomy. This model enables interoperability and collective services among diverse systems without fully centralizing control, thereby enhancing privacy, scalability, and resilience. Each node in a federated network can set its policies, manage its users, and control its data.
|
||||
|
||||
<aside> Examples of federated systems include <a href="https://atproto.com">AT
|
||||
Protocol</a>, <a href="https://joinmastodon.org/">Mastodon</a> and plain old
|
||||
E-mail. </aside>
|
||||
|
||||
Although federated models promote a level of decentralization, they face unique challenges, such as when node operators decide to block other nodes, taking that choice away from its users and restricting the free flow of information.
|
||||
|
||||
Federated systems also face challenges related to incentives; specifically, when the operational costs of maintaining a node exceed the perceived benefits, node operators are often compelled to shut down. This can disrupt access for users, undermining the platform’s reliability and the continuity of service.
|
||||
|
||||
While Radicle seed nodes face similar challenges, this has little bearing on the end user: seed nodes are interchangeable and offer an undifferentiated service; they are not tied to a user’s identity or access to the network.
|
||||
|
||||
<figure class="diagram">
|
||||
<img src="/marketing/images/guides/federation-vs-p2p.svg" alt="Federation vs. peer-to-peer" />
|
||||
<figcaption>Federation (left) vs. peer-to-peer (right).</figcaption>
|
||||
</figure>
|
||||
|
||||
## Repositories
|
||||
|
||||
**Repositories** are central to the Radicle network, serving as the primary data abstraction and object shared between peers. A repository in Radicle is fundamentally a Git repository, supplemented with a unique repository identifier (RID) and metadata essential for validating the authenticity of its contents.
|
||||
|
||||
Radicle repositories, which can be either public or private, can accommodate diverse content including source code, documentation, and arbitrary data sets. All repositories are initialized with an [identity document](#identity-document) from which a unique Repository ID (RID) is derived.
|
||||
|
||||
The identity document is where repository permissions and ownership are defined, as well as identifying metadata such as name and description.
|
||||
|
||||
### Delegates
|
||||
|
||||
Repositories are managed and owned by what are called _delegates_. A delegate is an individual, group, or bot, identified by a [DID][did]. Delegates are responsible for critical tasks such as merging patches, addressing issues, and modifying repository permissions. A repository always begins with one delegate, its creator, and can eventually grow to multiple delegates.
|
||||
|
||||
### Identity Document
|
||||
|
||||
Before a repository can be published on Radicle, it needs to be initialized with an _identity document_. This JSON document, stored under the `refs/rad/id` reference in Git, encapsulates key metadata such as the repository’s name, description, and default branch. It also includes the DIDs of the repository’s delegates and the _threshold_ of delegate signatures required to authorize changes to the repository’s default branch.
|
||||
|
||||
<aside> The identity document is stored in Canonical JSON form. Canonical JSON
|
||||
form standardizes JSON encoding to ensure identical byte representation for the
|
||||
same data structures, making it particularly useful for cryptographic
|
||||
operations like hashing. </aside>
|
||||
|
||||
Here’s an example of the identity document for the [heartwood][heartwood] repository:
|
||||
|
||||
```json
|
||||
{
|
||||
"delegates": ["did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi"],
|
||||
"threshold": 1,
|
||||
"payload": {
|
||||
"xyz.radicle.project": {
|
||||
"name": "heartwood",
|
||||
"description": "Radicle Heartwood Protocol & Stack",
|
||||
"defaultBranch": "master"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Private Repositories
|
||||
|
||||
Radicle supports **private repositories** where access is restricted to a designated group of trusted peers. This is achieved by setting the `visibility` attribute in the identity document. For example, the following snippet sets the visibility to _private_, while also allowing a specific peer to have access to the repository.
|
||||
|
||||
```json
|
||||
{
|
||||
...
|
||||
"visibility": {
|
||||
"type": "private",
|
||||
"allow": ["did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This ensures only nodes in the privacy set can replicate and access the data, maintaining confidentiality. While the data is not encrypted at rest, these repositories rely on selective replication through the _allow list_ for privacy, which renders them invisible and inaccessible to other nodes in the Radicle network.
|
||||
|
||||
Note that repository delegates _always_ have access to their private repositories.
|
||||
|
||||
### Repository Identifier (RID)
|
||||
|
||||
To ensure uniqueness and easy identification of repositories, a stable and globally unique identifier, known as the Repository Identifier (RID), is assigned to each repository. The RID is deterministically derived from the initial version of the repository’s identity document. This process involves using Git’s `hash-object` function to produce a 160-bit SHA-1 digest of the document. This is then encoded using [multibase][mb] encoding with the `base-58-btc` alphabet, and prefixed with `rad:`, making it a valid [URN][urn]:
|
||||
|
||||
<figure>
|
||||
<pre class="center">rad:<span class="highlight">z3gqcJUoA1n9HaHKufZs5FCSGazv5</span></pre>
|
||||
<figcaption>Example Repository ID for the heartwood project.</figcaption>
|
||||
</figure>
|
||||
|
||||
Since the RID is derived from the _initial_ version of the repository’s identity document, the document is able to change while the RID remains the same.
|
||||
|
||||
[urn]: https://datatracker.ietf.org/doc/html/rfc8141
|
||||
[mb]: https://w3c-ccg.github.io/multibase/
|
||||
|
||||
> **Tip**: Refer to [RIP-2][rip-2] for more details about how repository identity works in the Radicle protocol.
|
||||
|
||||
## Local-First Storage
|
||||
|
||||
Storage is designed in such a way that it’s easy to transfer data between peers over the network using an unmodified Git protocol. Radicle repositories are simply Git repositories stored in a special location on disk. Peer data is stored within the same repository using Git [namespaces][gns], where Node IDs are used as the namespace. This allows storage to be managed through a partitioned approach where each user maintains their own _namespace_ of a repository, as well as namespaces of other users they have an interest in, all within the same Git repository. These copies are then shared among users across the network.
|
||||
|
||||
We can view a peer’s namespace as their “soft-fork” of the repository. It is their own space for making changes to the repository without affecting other namespaces. The peer is the _sole owner and writer_ of this namespace, identified, and verified, by their Node ID.
|
||||
|
||||
### Working vs. Stored Copy
|
||||
|
||||
Storage is accessed directly by the node to report its inventory to other nodes, and by the end user through either specialized tooling or the `git` command line tool. Users are typically interacting with two repository copies: the _working copy_, and a remote _stored copy_ that is interacted with via `git push` and `git fetch`, using Radicle’s [git-remote-helper][grh].
|
||||
|
||||
This workflow is akin to what most developers are used to, when synchronizing changes between their working copy, and the `origin` remote, which is typically a repository on a hosted Git forge.
|
||||
|
||||
Changes to the stored copy are automatically propagated to the network when the user is connected to the internet, but can also be made while offline. This local-first design not only enhances the user experience by making offline work frictionless, but also eliminates the need for centralized servers.
|
||||
|
||||
<figure class="diagram">
|
||||
<img src="/marketing/images/guides/working-vs-stored.svg" alt="Synchronizing the working copy with the stored copy of a repository" />
|
||||
<figcaption>Synchronizing the working copy with the stored copy of a repository.</figcaption>
|
||||
</figure>
|
||||
|
||||
### Storage Layout
|
||||
|
||||
Radicle’s storage layout is designed to support multiple repositories and multiple peers per repository. Each repository is a _bare_ Git repository, stored under a common base directory, identified uniquely with its Repository ID or RID. Instead of each of the repository’s peers storing data in a separate Git repository with a separate [object database][git-odb] (ODB), peer data is stored within the same Git repository using Git [namespaces][gns].
|
||||
|
||||
<aside> A <em>bare</em> Git repository is a repository stripped of its working
|
||||
directory, containing only the version history (the contents of the
|
||||
<code>.git</code> directory). It’s used primarily as a remote repository that
|
||||
developers can push to and pull from, but cannot directly edit files or commit
|
||||
changes in. </aside>
|
||||
|
||||
For each peer, including the local peer, their unique Node ID (NID) is used as the namespace. Thus, each peer has its own namespaced references (eg. `refs/heads`, and `refs/tags`), while sharing the underlying objects (i.e. commits and blobs) with other namespaces via a shared object database. This design ensures only one copy of each object is stored across all repository namespaces.
|
||||
|
||||
Since the underlying storage uses Git, the storage layout below is represented as a file tree on the file-system, with `<storage>` representing the storage root, or top-level directory under which all repositories are stored on a user’s device. For every repository, each peer associated with that repository must have a separate, logical Git source tree -- which contains all the usual reference categories. This _logical repository_ is also known as the repository _namespace_ or _view_, and allows nodes to maintain local data for all peers in the same physical repository.
|
||||
|
||||
```
|
||||
<storage> # Storage root containing all repositories
|
||||
├─ <rid> # Storage for first repository
|
||||
│ └─ refs # All Git references locally stored
|
||||
│ └─ namespaces # All peer source trees or "namespaces"
|
||||
│ ├─ <nid> # First node's source tree
|
||||
│ │ └─ refs # First node's Git references
|
||||
│ │ ├─ heads # First node's branches
|
||||
│ │ │ └─ master # First node's master branch
|
||||
│ │ └─ tags # First node's tags
|
||||
│ │
|
||||
│ └─ <nid> # Second node's source tree
|
||||
│ ├─ refs # Second node's references
|
||||
│ └─ ...
|
||||
├─ <rid> # Storage for second repository
|
||||
│ ...
|
||||
└─ <rid> # etc.
|
||||
...
|
||||
```
|
||||
|
||||
Though this storage tree is browsable by the user with standard file system commands, it is not meant to be interacted with directly by users, for risk of corrupting the data. Additionally, Git is free to pack the objects, which means they may not always appear as individual files.
|
||||
|
||||
> **Tip**: Refer to [RIP-3][rip-3] to learn more about storage in the Radicle protocol.
|
||||
|
||||
### Git URL Scheme
|
||||
|
||||
The Radicle protocol uses its own URL scheme to point to specific repository namespaces in the network. This allows the Git `fetch` and `push` commands to operate on the correct namespace when fetching or pushing code.
|
||||
|
||||
<figure>
|
||||
<pre class="center">rad://<span class="highlight">z42hL2jL4XNk6K8oHQaSWfMgCL7ji</span>/<span class="highlight-secondary">z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi</span></pre>
|
||||
<figcaption> Example URL for repository <code>z42hL2jL4XNk6K8oHQaSWfMgCL7ji</code> and
|
||||
peer <code>z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi</code>. </figcaption>
|
||||
</figure>
|
||||
|
||||
The Radicle [remote helper][grh] is what allows Git to interpret URLs with the `rad://` scheme. By using this scheme, the user instructs Git to invoke the `git-remote-rad` executable during `git push` or `git fetch`, which allows the user to interact with the network through the storage layer.
|
||||
|
||||
For example, the above URL would map a push to the `master` branch to the following path under the local storage root:
|
||||
|
||||
```
|
||||
/<rid>/refs/namespaces/<nid>/refs/heads/master
|
||||
```
|
||||
|
||||
If a Node ID is not specified in the URL, Git will interact with the repository’s canonical references, also know as the authoritative repository state. This is the state agreed on by the repository [delegates](#delegates).
|
||||
|
||||
<figure>
|
||||
<pre class="center">rad://<span class="highlight">z42hL2jL4XNk6K8oHQaSWfMgCL7ji</span></pre>
|
||||
<figcaption> Example URL for repository
|
||||
<code>z42hL2jL4XNk6K8oHQaSWfMgCL7ji</code>’s canonical
|
||||
references.</figcaption>
|
||||
</figure>
|
||||
|
||||
## Trust through Self-Certification
|
||||
|
||||
Unlike centralized forges such as GitHub, where repositories are deemed authentic based on their location (e.g. `https://github.com/bitcoin/bitcoin`), in a decentralized network like Radicle, location is not enough. Instead, we need a way to automatically verify the data we get from _any given location_. This is because peers in a decentralized network may be dishonest. Radicle’s approach hinges on the self-certifying nature of its repositories, anchored in the repository [identity document](#identity-document).
|
||||
|
||||
### Canonical Branches
|
||||
|
||||
When repositories are hosted in a known, trusted location, updating the repository’s canonical branch (eg. `master`) is simply a matter of pushing to that repository’s branch. Permission to push is granted to a small set of maintainers, and any one maintainer is allowed to update the branch.
|
||||
|
||||
In Radicle, lacking a central location where repositories are hosted, the canonical branch is established _dynamically_ based on the signature **threshold** defined in the repository’s identity document. For example, if a threshold of two out of three delegates is set, with the default branch set to `master`, and two delegates have pushed the same commit to their `master` branches, that commit is recognized as the authoritative, canonical state of the repository.
|
||||
|
||||
> **Note**: Currently, only the branch specified under the `defaultBranch` attribute of the identity document is set automatically based on a signature threshold. In the future, additional branches may be supported.
|
||||
|
||||
### Self-certifying Repositories
|
||||
|
||||
Together, a repository’s RID and its identity document create a cryptographic proof that serves as the basis for verifying all repository states leading up to its current state. For this reason, we say that Radicle repositories are _self-certifying_: the process of verification doesn’t require any inputs other than the repository itself.
|
||||
|
||||
For repositories to be self-certifying, delegates authenticate every change to the repository data and metadata via cryptographic signatures. This includes all Git references published to the network.
|
||||
|
||||
#### Signed Refs
|
||||
|
||||
To enable the verification of Git references beyond commits to the source code, Radicle automatically signs the entirety of a node’s references every time they change. This signature is then placed in a Git blob under a special branch referenced under `refs/rad/sigrefs`, along with the references that were signed.
|
||||
|
||||
<figure>
|
||||
<pre>9767b485c2aad1e23097d2b5165287ba84cfa452 refs/heads/master
|
||||
f3eaa7454e3a4714885905ae99f616fc7895b5fa refs/cobs/xyz.radicle.patch/fe31d5b6049583a42c21a543545d182b893aa4a0
|
||||
0590b78ee42b39087983e4de04164065e5aa11bc refs/cobs/xyz.radicle.patch/ffbb812ad6e7fe1c5c610b1246ca5ca9d7d16027</pre>
|
||||
<figcaption>Example <code>refs</code> blob under a user’s <code>refs/rad/sigrefs</code> branch.
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
||||
<aside> The signed references are in the same format as the <code>git
|
||||
show-ref</code> command. </aside>
|
||||
|
||||
Signed refs are key to establishing a repository’s canonical state and are updated whenever there are changes to a repository.
|
||||
|
||||
Given an RID and a Radicle repository clone, anyone can retrieve the initial identity document and authenticate all subsequent repository updates without a trusted third party. This verification model draws inspiration from [The Update Framework][tuf] (TUF), a framework designed to secure software update systems.
|
||||
|
||||
## Collaborative Objects
|
||||
|
||||
In the Radicle protocol, Collaborative Objects (COBs) play an important role in supplementing Git with social artifacts such as issues, code reviews and discussions, which are not inherently supported by Git. Typically, these artifacts are only found on centralized platforms like GitHub or GitLab, or their self-hosted counterparts.
|
||||
|
||||
In Radicle, COBs allow for social artifacts to be stored directly inside a repository, and replicated between peers. This means that social artifacts inherit the same properties as source code: they are local-first, user-owned, and cryptographically signed.
|
||||
|
||||
Radicle includes three predefined collaborative object types to support code collaboration: _Issues_, _Patches_, and _Identities_, but users have full control to customize them or extend Radicle with entirely new COB types.
|
||||
|
||||
- **Issues** (`xyz.radicle.issue`) are used for tracking bugs or feature requests, and support discussions, labeling and assigning.
|
||||
- **Patches** (`xyz.radicle.patch`) are used to propose changes to a branch, and support reviews, versioning of changes and discussions.
|
||||
- **Identities** (`xyz.radicle.id`) are used to represent identity documents.
|
||||
|
||||
<aside> The repository’s identity document is entirely defined and managed
|
||||
through an <em>id</em> COB. </aside>
|
||||
|
||||
COBs are identified by a unique type name in [reverse domain name notation][reverse-dns] and a unique Object ID.
|
||||
|
||||
### Concurrency & Consistency
|
||||
|
||||
In a system with no central server, operation concurrency is the norm. If two users comment on an issue at the same time, those comments will reach peers in the network at different times and in different orders. To maintain a good user experience, it’s important that these factors don’t determine the issue’s final state. All users must eventually converge to the same exact state and see the same thing.
|
||||
|
||||
To achieve this, Radicle makes use of Git’s native synchronization primitives, and encodes COBs as a set of commits in a [directed acyclic graph][dag] (DAG). The identity document is represented by one such commit graph that is disjoint from any other COB or source code branch. Issues are represented as a graph that points to the identity document graph – allowing for inspection of the document at evaluation. Patches are a graph that combines pointing to both the identity document and source code commits. This combination allows for checking if the patch is merged, for example.
|
||||
|
||||
This representation gives Radicle a few things for free:
|
||||
|
||||
1. Data integrity is guaranteed by Git.
|
||||
2. Synchronization is handled by Git.
|
||||
3. Causal dependencies can be modeled as commit parent-child relationships.
|
||||
|
||||
It may be useful to think of Radicle’s usage of Git commit histories as a form of [conflict-free replicated data type][crdt] (CRDT). When the histories of two peers are synchronized, the commit graphs are simply _unioned_ with each other in a non-destructive, idempotent way.
|
||||
|
||||
<aside> <strong>Idempotence</strong> is the property of certain operations in
|
||||
mathematics and computer science whereby they can be applied multiple times
|
||||
without changing the result. </aside>
|
||||
|
||||
<figure class="diagram">
|
||||
<img src="/marketing/images/guides/cob-dag.svg" alt="Git DAG representing an Issue COB" />
|
||||
</figure>
|
||||
|
||||
Then, to materialize the state that is displayed to the user, this new graph is _reduced_ in [topological order][topo], starting from the root of the graph and going up to the tips. This ordering happens to be [causally consistent][causality], ensuring that changes that have observed other changes are traversed in causal order. Since topological ordering may yield _partial_ orders in the face of concurrency, a merge function is also defined, the simplest of which is to traverse the partially-ordered graph vertices sorted by their commit hash. If a merge function cannot be defined, a COB may be configured to treat this as a _conflict_ which can be bubbled up to the user.
|
||||
|
||||
<aside> A <em>reduce</em> or <em>fold</em> operation is a way of getting a
|
||||
single value by applying a function to a list of values. </aside>
|
||||
|
||||
In summary, this mechanism supports multiple users independently interacting without coordination. Each COB records the initial version of an object and tracks all subsequent modifications made across the network. Each modification is stored as a separate Git _commit_ object to ensure that the CRDT change graph is compatible with Git’s fetch protocol. To retrieve the current state of an object, the system replays all the changes to the object in a deterministic and causally-consistent order.
|
||||
|
||||
### Extending COBs
|
||||
|
||||
Radicle’s predefined COB types are stored under the `refs/cobs` hierarchy. These are associated with unique namespaces, such as `xyz.radicle.issue` and `xyz.radicle.patch`, to prevent naming collisions.
|
||||
|
||||
This hierarchical arrangement under `refs/cobs` not only houses Radicle’s predefined COBs but also accommodates user-defined ones. For example, if a user or organization were to define a new COB type under their domain, it might look something like `com.acme.task`, for some hypothetical “task” COB under the `acme.com` domain.
|
||||
|
||||
This extensibility allows for an unlimited set of new collaboration primitives to be defined by users, without requiring coordination with the broader network or user-base.
|
||||
|
||||
## Conclusion
|
||||
|
||||
The Radicle Heartwood protocol introduces a new approach to code collaboration and hosting rooted in sovereignty. Built upon Git’s well-established protocol, Radicle can easily interoperate with existing systems and workflows that are already familiar. Users have full control and ownership over their identity and data. Repositories are self-certifying data structures, meaning updates are cryptographically signed and can be verified by anyone, without needing a trusted third party. Every user in Radicle is self-hosting while remaining connected to a wider network. Radicle is highly extensible with its Collaborative Objects that enable full control and customization over workflows and datatypes, while also opening the possibility for Radicle to support a wider range of functionalities, potentially extending far beyond code collaboration.
|
||||
|
||||
<!-- References -->
|
||||
|
||||
[gitea]: https://about.gitea.com/
|
||||
[forgejo]: https://forgejo.org/
|
||||
[git]: https://git-scm.com/
|
||||
[gns]: https://git-scm.com/docs/gitnamespaces
|
||||
[grh]: https://git-scm.com/docs/gitremote-helpers
|
||||
[git-pack]: https://git-scm.com/docs/pack-protocol
|
||||
[git-odb]: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
|
||||
[git-v2]: https://git-scm.com/docs/protocol-v2
|
||||
[tor]: https://torproject.org/
|
||||
[ed25519]: https://ed25519.cr.yp.to/
|
||||
[reverse-dns]: https://en.wikipedia.org/wiki/Reverse_domain_name_notation
|
||||
[tuf]: https://theupdateframework.github.io/specification/latest/
|
||||
[noise]: http://www.noiseprotocol.org/noise.html
|
||||
[noise-xk]: https://noiseexplorer.com/patterns/XK/
|
||||
[ssb]: https://en.wikipedia.org/wiki/Secure_Scuttlebutt
|
||||
[ln]: https://en.wikipedia.org/wiki/Lightning_Network
|
||||
[gossip]: https://en.wikipedia.org/wiki/Gossip_protocol
|
||||
[causality]: https://en.wikipedia.org/wiki/Causal_consistency
|
||||
[dag]: https://en.wikipedia.org/wiki/Directed_acyclic_graph
|
||||
[topo]: https://en.wikipedia.org/wiki/Topological_sorting
|
||||
[rip-1]: https://radicle.network/nodes/seed.radicle.xyz/rad:z3trNYnLWS11cJWC6BbxDs5niGo82/tree/0001-heartwood.md
|
||||
[rip-2]: https://radicle.network/nodes/seed.radicle.xyz/rad:z3trNYnLWS11cJWC6BbxDs5niGo82/tree/0002-identity.md
|
||||
[rip-3]: https://radicle.network/nodes/seed.radicle.xyz/rad:z3trNYnLWS11cJWC6BbxDs5niGo82/tree/0003-storage-layout.md
|
||||
[nat]: https://en.wikipedia.org/wiki/Network_address_translation
|
||||
[framing]: https://en.wikipedia.org/wiki/Frame_(networking)
|
||||
[fs]: https://en.wikipedia.org/wiki/Forward_secrecy
|
||||
[ecdh]: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
|
||||
[rips]: https://radicle.network/nodes/seed.radicle.xyz/rad:z3trNYnLWS11cJWC6BbxDs5niGo82
|
||||
[heartwood]: https://radicle.network/nodes/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
|
||||
[did]: https://www.w3.org/TR/did-core/
|
||||
[seed]: /guides/seeder
|
||||
[peer-to-peer]: https://en.wikipedia.org/wiki/Peer-to-peer
|
||||
[forges]: https://en.wikipedia.org/wiki/Forge_(software)
|
||||
[local-first]: https://www.inkandswitch.com/local-first/
|
||||
[signing]: https://en.wikipedia.org/wiki/Digital_signature
|
||||
[pkc]: https://en.wikipedia.org/wiki/Public-key_cryptography
|
||||
[crdt]: https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type
|
||||
|
||||
<style>
|
||||
:global(.markdown-content figure) {
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
:global(.markdown-content figcaption) {
|
||||
font-size: 0.85em;
|
||||
color: var(--color-text-muted, #666);
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
:global(.markdown-content .center) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:global(.markdown-content .highlight) {
|
||||
color: var(--color-primary, #4ade80) !important;
|
||||
}
|
||||
|
||||
:global(.markdown-content .highlight-secondary) {
|
||||
color: var(--color-secondary, #60a5fa) !important;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,528 @@
|
||||
---
|
||||
title: Radicle Seeder Guide
|
||||
subtitle: How to run a Radicle seed node
|
||||
---
|
||||
|
||||
<script>
|
||||
import Meta from '@app/marketing/Meta.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
<title>Seeder Guide | Radicle</title>
|
||||
</svelte:head>
|
||||
|
||||
<Meta title="Seeder Guide | Radicle" description="Run a public seed node to keep repositories available 24/7." canonical="https://radicle.dev/guides/seeder" />
|
||||
|
||||
# Radicle Seeder Guide
|
||||
|
||||
To seed is to give back. By seeding repositories on the Radicle network, you offer bandwidth, storage, and data availability to Radicle users.
|
||||
|
||||
In this guide, we’ll go through the various steps required to set up a Radicle _seed node_ on a Linux system. Seeding only requires an internet connection, a public, static IP address, and modest hardware.
|
||||
|
||||
We’ll cover public seed nodes with an _open_ seeding policy, as well as community seed nodes with more _selective_ policies.
|
||||
|
||||
## Introduction
|
||||
|
||||
The term _seed node_ originally comes from [BitTorrent][bittorrent]. In the BitTorrent protocol, nodes that possess the data for a given torrent file and begin uploading it to peers are called _seeders_.
|
||||
|
||||
In Radicle, while all users contribute to the network by seeding data, the term _seed node_ specifically refers to a server that is accessible through the internet and hosts content for peers. Seed nodes need to remain online and accessible to provide their service to the network.
|
||||
|
||||
### The need for seed nodes
|
||||
|
||||
While a peer-to-peer network without seed nodes is feasible, it is impractical. This is because regular “user” nodes go online and offline all the time, so finding a user from which to download a certain piece of content can be challenging, or even impossible if all users with that content are offline.
|
||||
|
||||
Therefore, a healthy peer-to-peer network necessitates at least _some_ highly available nodes that participate in the network like regular peers, but seldom go offline. These are called seed nodes.
|
||||
|
||||
> By running a _permissive_ node (see below for further explanation), you are contributing to the growth and resilience of the Radicle network, but it is important to be aware of the potential implications of hosting data in a permissionless network. Use your best judgment. If you have any concerns, consider starting with the selective seeding policy, described in the following section, and expanding as you become more comfortable with the network.
|
||||
|
||||
## Getting Started
|
||||
|
||||
For this guide, we’ll focus on setting up a seed node using `systemd`. If you’re running a different service manager, you should be able to follow along just fine, as we’ll be explaining the steps. Using a service manager is not required, but highly recommended.
|
||||
|
||||
### What you will need
|
||||
|
||||
To run a Radicle seed node, you will need a server with:
|
||||
|
||||
- `curl`
|
||||
- `git`
|
||||
- `systemctl` version `232` or newer
|
||||
- `sudo` privileges
|
||||
- A DNS name pointing to your server
|
||||
|
||||
### Server
|
||||
|
||||
If you already have a VPS (Virtual Private Server) or home server running a Linux distribution, you should be all set. If not, any VPS will do. Between 1-2GB of RAM with a shared CPU and 10GB of disk space should be enough to get started. Once you’ve logged into your server, proceed with user setup and installation. For this setup process, you’ll need `sudo` capabilities.
|
||||
|
||||
> **Tip**: If you have trouble choosing a VPS, we recommend getting a small instance on [Hetzner][hetzner] or [Digital Ocean][do]. These are priced fairly and have good documentation and support.
|
||||
|
||||
[hetzner]: https://www.hetzner.com/
|
||||
[do]: https://www.digitalocean.com/
|
||||
|
||||
### User setup
|
||||
|
||||
If you wish to create a new user under which to run the seed node services, this is the time. In this guide, we’ve chosen to run our services under a user called `seed`. Radicle data and configuration will be stored under this user’s home folder. This ensures that if your Radicle services were to be compromised, the attacker would have very limited access to your system.
|
||||
|
||||
Here’s an example user setup with `seed` as the user and group name:
|
||||
|
||||
```bash
|
||||
sudo groupadd --system seed
|
||||
sudo useradd --system --gid seed --create-home seed
|
||||
```
|
||||
|
||||
If you’re administering your server via a non-root account, you’ll want to add it to the `seed` group as well:
|
||||
|
||||
```bash
|
||||
sudo usermod -a -G seed $(whoami)
|
||||
```
|
||||
|
||||
### Installation
|
||||
|
||||
For a seed node, you will need to install at minimum the Radicle CLI (`rad`), and network daemon (`radicle-node`).
|
||||
|
||||
To install these, head over to the [download](/install#cli) page and follow the instructions there. You will have to download, verify and extract the binaries and manuals to your preferred location.
|
||||
|
||||
For this guide, we recommend installing Radicle under `/usr/local`. This will require you to have write permissions to `/usr/local/bin` and `/usr/local/man`. You can give yourself these permission by changing ownership of these directories to the current user and group:
|
||||
|
||||
```bash
|
||||
sudo chown $(whoami): /usr/local/{bin,man,man/man1}
|
||||
```
|
||||
|
||||
You should then be able to extract the archive you downloaded and verified with:
|
||||
|
||||
```bash
|
||||
tar -xvJf <archive> --strip-components=1 -C /usr/local/
|
||||
```
|
||||
|
||||
Finally, login as the `seed` user and proceed with installation:
|
||||
|
||||
```bash
|
||||
sudo su seed
|
||||
```
|
||||
|
||||
To check your installation, run the `rad` command, and confirm where your Radicle home is with the `rad path` command.
|
||||
|
||||
To offer web browsing and HTTP access to your seed node, you will additionally need to run `radicle-httpd`, the HTTP daemon. We’ll cover this after we’ve set up our basic node.
|
||||
|
||||
### Creating a profile
|
||||
|
||||
Once the Radicle binaries are installed, we can create a Radicle _profile_. This consists of an Ed25519 key pair and a directory under which Radicle stores user data.
|
||||
|
||||
```bash
|
||||
rad auth --alias seed.radicle.example
|
||||
```
|
||||
|
||||
The above command will create a profile with the given node _alias_ in `~/.radicle`, or `$RAD_HOME` if set. We recommend setting your alias to the domain name that points to your node’s host.
|
||||
|
||||
For seed nodes, it’s not generally necessary to set up a passphrase for your key, so you can simply skip that prompt by pressing _enter_.
|
||||
|
||||
<aside>
|
||||
Seed nodes do not typically sign any permanent artifacts with their key. It
|
||||
is mainly used for securing connections with peers.
|
||||
</aside>
|
||||
|
||||
> **Tip**: If you wish to set a passphrase anyway, you will have to set the `RAD_PASSPHRASE` environment variable in your node’s `systemd` unit file.
|
||||
|
||||
Once your profile is initialized, a decentralized identifier (DID) will be output. The part after the `did:key:` prefix is your Node ID. This is how your seed node will be identified on the network. The Node ID is the public part of the Ed25519 key pair generated above, via `rad auth`.
|
||||
|
||||
You can view information about your Radicle profile by running `rad self`. The `--nid` and `--alias` flags can be used to return the Node ID and alias.
|
||||
|
||||
## Configuring Your Node
|
||||
|
||||
There are a couple of things we need to set up a seed node.
|
||||
|
||||
First, we must set the node’s default _seeding policy_.
|
||||
|
||||
The seeding policy tells the node which repositories and reference namespaces to fetch and offer to the network. For _public seed nodes_, a _permissive_ seeding policy is often set, such that _all data_ on the network is stored and replicated.
|
||||
|
||||
Second, we must set an _External Address_ for the node to be reached on the network. This address will be advertised to peers, allowing them to connect to your seed node. Generally, this will be a DNS name with port `8776`, for example `seed.radicle.example:8776`.
|
||||
|
||||
Here’s an example minimal configuration file with a permissive seeding policy and an external address set:
|
||||
|
||||
```json
|
||||
{
|
||||
"node": {
|
||||
"alias": "seed.radicle.example",
|
||||
"listen": ["0.0.0.0:8776"],
|
||||
"externalAddresses": ["seed.radicle.example:8776"],
|
||||
"seedingPolicy": {
|
||||
"default": "allow",
|
||||
"scope": "all"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
> In the above example the server listen to any IPv4 interface. If your host supports only IPv6 or if you want to support both IPv4 and IPv6, replace `0.0.0.0` with `[::]`.
|
||||
|
||||
Your node is configured with a file named `config.json` in your Radicle home directory. You can get the full path of the config file with the `rad self --config` command. Additionally, you can output the current configuration with `rad config`. Attributes that aren’t set in `config.json` will take on default values. You can open your configuration file for editing with `rad config edit`.
|
||||
|
||||
Let’s start by configuring your seeding policy.
|
||||
|
||||
### Seeding policies
|
||||
|
||||
The most important setting when it comes to seeding is your _default seeding policy_. This setting will determine what content your seed node fetches and replicates on the network when it encounters a repository it doesn’t know or hasn’t been given special instructions for.
|
||||
|
||||
The setting is configured under the `node.seedingPolicy` field in your configuration (`~/.radicle/config.json`). You can open your configuration file directly using the `rad config edit` command, or use your preferred editor. You can also enter the following command to display your current default policy:
|
||||
|
||||
```bash
|
||||
rad config get node.seedingPolicy
|
||||
```
|
||||
|
||||
When a seeding policy is _not set_ for a specific repository or node, the default policy is applied, hence the importance of this setting.
|
||||
|
||||
Broadly, there are two options for the default policy.
|
||||
|
||||
#### A _permissive_ seeding policy
|
||||
|
||||
A _permissive_ or “open” policy is said to be _fully-replicating_, meaning your seed will try to have a full copy of all repository data available on the network.
|
||||
|
||||
An example of a node with this policy is `iris.radicle.xyz`, a node operated by the Radicle team, for the Radicle community.
|
||||
|
||||
This is a good default for seeders who want to support the network without having to think about it too much.
|
||||
|
||||
Set `node.seedingPolicy.default` to `allow` and `node.seedingPolicy.scope` to `all` to configure your node this way.
|
||||
|
||||
```json
|
||||
{
|
||||
"node": {
|
||||
...
|
||||
"seedingPolicy": {
|
||||
"default": "allow",
|
||||
"scope": "all"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### A _selective_ seeding policy
|
||||
|
||||
A _selective_ or “restricted” policy requires you, the operator, to _manually allow repositories to be seeded_. This means that the node will ignore all repositories, except the ones that are pre-configured to allow seeding.
|
||||
|
||||
An example is the `seed.radicle.xyz` node, which only seeds Radicle team repositories.
|
||||
|
||||
This is a good policy for communities, teams, companies and individuals who want to limit the data hosted by their seed, or node operators who want to require some form of authentication or payment for seeding.
|
||||
|
||||
Set `node.seedingPolicy.default` to `block` to enable this, and call `rad seed` to configure `allow` policies for specific repositories you want to seed. Your seed node won’t seed anything until you explicitly allow it to.
|
||||
|
||||
```json
|
||||
{
|
||||
"node": {
|
||||
...
|
||||
"seedingPolicy": {
|
||||
"default": "block"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### Setting a repository’s seeding policy
|
||||
|
||||
To override the default policy for a specific repository, the `seed` or `block` commands are used.
|
||||
|
||||
For example, in the case of a _permissive_ seeding policy, where the default is `allow`, we can explicitly _block_ certain repositories from being seeded:
|
||||
|
||||
```bash
|
||||
rad block rad:z9DV738hJpCa6aQXqvQC4SjaZvsi
|
||||
```
|
||||
|
||||
This will override the default policy and ensure that this repository is never replicated on your node.
|
||||
|
||||
On the other hand, in the case of a _selective_ seeding policy, where the default policy is `block`, we can decide to _allow_ a repository to be seeded by calling `rad seed`. For example:
|
||||
|
||||
```bash
|
||||
rad seed rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
|
||||
```
|
||||
|
||||
This will override the default `block` rule for this one specific repository.
|
||||
|
||||
To remove an override configured for a repository in either case, `unseed` can be used:
|
||||
|
||||
```bash
|
||||
rad unseed rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
|
||||
```
|
||||
|
||||
For both cases, the default policy will apply if a seeding policy is not defined for a repository.
|
||||
|
||||
#### Viewing seeding policies
|
||||
|
||||
You can view your node’s _default policy_ by entering `rad config get node.seedingPolicy`.
|
||||
|
||||
To view the policy of a specific repository, use the `rad inspect` command. For example:
|
||||
|
||||
```bash
|
||||
rad inspect rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 --policy
|
||||
```
|
||||
|
||||
This will return the default policy if you haven’t set a specific policy for that repository.
|
||||
|
||||
Finally, to view all seeding policies that have been configured on repositories, simply enter `rad seed` with no options.
|
||||
|
||||
### Addressing
|
||||
|
||||
Now that you’ve configured your seeding policy, it’s time to consider how your node is addressed on the network.
|
||||
|
||||
#### Your external address
|
||||
|
||||
You should set your node’s external address. This is a public address, typically a DNS name that points to your node. Though a single external address is sufficient, you are free to set up to 16 external addresses.
|
||||
|
||||
You’ll find this setting in your configuration file, under `node.externalAddresses`. External addresses are JSON strings of the form `<host>:<port>`, for example `seed.radicle.example:8776`, where `<host>` is a DNS name, and `<port>` is usually `8776`.
|
||||
|
||||
```json
|
||||
{
|
||||
"node": {
|
||||
...
|
||||
"externalAddresses": ["seed.radicle.example:8776"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Once at least one external address is set, you’re ready to start your node for the first time.
|
||||
|
||||
#### Your node address
|
||||
|
||||
For others to be able to connect to your node directly, they need your _Node Address_. This is a combination of your Node ID and your External Address.
|
||||
|
||||
If you’ve configured one or more external addresses, simply entering the following command from the `seed` user will output your node addresses:
|
||||
|
||||
```bash
|
||||
rad node config --addresses
|
||||
```
|
||||
|
||||
Share this with others, and they will be able to connect to your node using `rad node connect <address>`, or by adding your address to their configuration, under the `node.connect` field.
|
||||
|
||||
#### DNS-Based Service Discovery
|
||||
|
||||
If you would like to facilitate discovery of your node via DNS, you can do so via [DNS-Based Service Discovery (DNS-SD)][dnssd]. This requires you to set three DNS records per node you are running.
|
||||
|
||||
1. A `SRV` record, which communicates the external address of your node (DNS name and TCP port number).
|
||||
2. A `TXT` record, which communicates the Node ID of your node.
|
||||
3. A `PTR` record, which makes the other two records discoverable.
|
||||
|
||||
Taken together, the `SRV` and `TXT` records contain all the information required to reconstruct your node address.
|
||||
|
||||
Suppose the node address you want others to discover is `z6MkXB…Z6sTAz@seed.radicle.example:58776` and the domain name you want it to be discovered for is `radicle.example`, then the three DNS records required are:
|
||||
|
||||
```
|
||||
seed._radicle-node._tcp.radicle.example. 3600 IN SRV 32767 32767 58776 seed.radicle.example.
|
||||
seed._radicle-node._tcp.radicle.example. 3600 IN TXT "nid=z6MkXB…Z6sTAz"
|
||||
_radicle-node._tcp.radicle.example. 3600 IN PTR seed._radicle-node._tcp.radicle.example.
|
||||
```
|
||||
|
||||
With most nameservers, there are shorter versions to denote these records, like dropping TTL and record class, as well as abbreviating names by omitting the origin. The variant above is purposely verbose to avoid ambiguity. Of course, you may choose different values for the TTL.
|
||||
|
||||
With these records set, anyone can discover your nodes from the domain name `radicle.example`. This method of discovery is ideal if you maintain a set of nodes, and want to have them discovered by a group of people, such as your collaborators or coworkers. It also works if your nodes addresses and/or ports change frequently.
|
||||
|
||||
To find out more about the the interpretation of `SRV` records, refer to [RFC 2782][srv].
|
||||
|
||||
## Running Your Node
|
||||
|
||||
Before setting up your node as a system service, it’s a good idea to run it once to make sure everything is working properly. Enter the following command to start your node in the foreground:
|
||||
|
||||
```bash
|
||||
rad node start --foreground
|
||||
```
|
||||
|
||||
You should see log output as your node starts to sync with the network. If there are any errors or issues connecting to the network, you should see errors in the output.
|
||||
|
||||
If the node started without problem, stop it with `Ctrl-C`, and exit the `seed` session by entering:
|
||||
|
||||
```bash
|
||||
exit
|
||||
```
|
||||
|
||||
This should return you to the original session you opened via SSH.
|
||||
|
||||
### Configuring your node’s system service
|
||||
|
||||
Though it’s possible to simply run the Radicle node as a background process, it’s recommended to set up a service to ensure the node is started on boot.
|
||||
|
||||
In this guide, we will only cover setup using `systemd`, but the process is fairly similar for other service managers.
|
||||
|
||||
The first thing to do is to get a copy of the [`radicle-node.service`][radicle-node] unit file. Place it in `/etc/systemd/system/radicle-node.service` for it to be found by `systemctl`:
|
||||
|
||||
```bash
|
||||
curl -sSL https://seed.radicle.xyz/raw/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/570a7eb141b6ba001713c46345d79b6fead1ca15/systemd/radicle-node.service -o /etc/systemd/system/radicle-node.service
|
||||
```
|
||||
|
||||
Make sure it fits your needs by editing the file directly, or creating an override using `systemctl edit`.
|
||||
|
||||
> The downloaded `systemd` unit file is configured to run your node process as the `seed` user and group, for security reasons. If you set up a different user or group name, or set a passphrase during `rad auth`, or if you want to listen on an IPv6 interface, you will have to make edits to this file before proceeding.
|
||||
|
||||
When you’re ready, you can **enable** and **run** the service:
|
||||
|
||||
```bash
|
||||
systemctl enable --now radicle-node
|
||||
```
|
||||
|
||||
### Checking your node status
|
||||
|
||||
To check the service status of your node, run:
|
||||
|
||||
```bash
|
||||
systemctl status radicle-node
|
||||
```
|
||||
|
||||
Besides using `systemctl status`, you can also check your node’s status using `rad node status`. This will give you information on the peers connected to your node. You’ll have to run this as the `seed` user, like so:
|
||||
|
||||
```bash
|
||||
sudo -u seed -- rad node status
|
||||
```
|
||||
|
||||
To tail your node’s logs, use:
|
||||
|
||||
```bash
|
||||
journalctl --unit radicle-node --follow
|
||||
```
|
||||
|
||||
### Changing your node’s configuration
|
||||
|
||||
If you change your node’s configuration while the node is running, you’ll need to restart your node for the changes to take effect.
|
||||
|
||||
First, verify that the new configuration is valid by running `rad config`, then restart your node with:
|
||||
|
||||
```bash
|
||||
systemctl restart radicle-node
|
||||
```
|
||||
|
||||
### Securing the `seed` user
|
||||
|
||||
Now that your node is configured and working, you can secure the `seed` user by disabling shell access. This is optional, though recommended.
|
||||
|
||||
```bash
|
||||
chsh -s /usr/sbin/nologin seed
|
||||
```
|
||||
|
||||
This will prevent anyone from logging in as the `seed` user. Note that from this point onwards, if you chose to disable the `seed` user’s shell, you’ll have to run all commands via `sudo`, like we’ve been doing so far.
|
||||
|
||||
> To facilitate running commands as the `seed` user by simply using `rad` as usual, add this alias to your admin shell’s init scripts:
|
||||
>
|
||||
> ```bash
|
||||
> alias rad='sudo -u seed -- rad'
|
||||
> ```
|
||||
|
||||
### Firewalls
|
||||
|
||||
If you are running a firewall, ensure that port `8776` is open for TCP connections. This will allow inbound connections to your node.
|
||||
|
||||
> It’s recommended to run a basic firewall to further lock down your server, using something like `iptables`, though this is out of scope for this guide.
|
||||
|
||||
## Running the HTTP Daemon
|
||||
|
||||
In the prior sections, we set up `radicle-node`, a background process that actively and continuously discovers and replicates repositories on the network, based on your seeding policy. This node allows users to collaborate, host, share, and publish repositories on the network via the Radicle CLI or any compatible application. However, at this stage, the repositories on your seed node cannot be browsed or viewed without cloning them first, using the Radicle CLI. To enable web browsing of the content of your seed node, the Radicle HTTP Daemon `radicle-httpd` needs to be deployed alongside `radicle-node`.
|
||||
|
||||
The HTTP Daemon is a background process that functions as a _gateway_ between the Radicle protocol and the HTTP protocol. It is configured to have direct read-only access to the node’s storage and database and expose this data via an HTTP JSON API. For seed nodes, the HTTP Daemon is always configured as a _read-only_ service over the node’s state.
|
||||
|
||||
### Installation
|
||||
|
||||
Head over to the [download](/install#cli) page, and follow the instructions there. The process is the same as for the Radicle Node. You will have to download, verify and extract the binary (`radicle-httpd`) and manuals to your preferred location.
|
||||
|
||||
We recommend installing the daemon under `/usr/local`, just as we did for the node.
|
||||
|
||||
### Configuring your HTTP daemon’s system service
|
||||
|
||||
As with `radicle-node`, we can start by downloading an example `systemd` unit file for the daemon:
|
||||
|
||||
```bash
|
||||
curl -sSL https://seed.radicle.xyz/raw/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/570a7eb141b6ba001713c46345d79b6fead1ca15/systemd/radicle-httpd.service -o /etc/systemd/system/radicle-httpd.service
|
||||
```
|
||||
|
||||
Make sure it fits your needs by editing the file directly, or creating an override using `systemctl edit`.
|
||||
|
||||
> In this guide, all `systemd` unit files are configured to run the process as the `seed` user and group, for security reasons. If you set up a different user or group name, you will have to make edits to these files before running the services.
|
||||
|
||||
Then, **enable** and **run** the service:
|
||||
|
||||
```bash
|
||||
systemctl enable --now radicle-httpd
|
||||
```
|
||||
|
||||
You can check that your node service is running with:
|
||||
|
||||
```bash
|
||||
systemctl status radicle-httpd
|
||||
```
|
||||
|
||||
You can query the API with `curl` to ensure everything is working properly:
|
||||
|
||||
```bash
|
||||
curl http://127.0.0.1:8080/api/v1
|
||||
```
|
||||
|
||||
### Adding support for HTTPS
|
||||
|
||||
For your HTTP Daemon to be accessible from a frontend such as <https://radicle.network>, it needs to respond to HTTPS requests. To do this, we recommend using [Caddy][caddy].
|
||||
|
||||
Start by installing `caddy`; most Linux distributions have a package you can install. If you are using Debian or Ubuntu, you can run:
|
||||
|
||||
```bash
|
||||
apt-get install caddy
|
||||
```
|
||||
|
||||
If you’re having trouble installing Caddy, check the [installation guide][caddy-install]. Once installed, run `caddy version` to ensure that everything was installed correctly.
|
||||
|
||||
```
|
||||
caddy version
|
||||
v2.6.4 h1:2hwYqiRwk1tf3VruhMpLcYTg+11fCdr8S3jhNAdnPy8=
|
||||
```
|
||||
|
||||
Then, download the `caddy` unit file from Caddy’s GitHub repository:
|
||||
|
||||
```bash
|
||||
curl https://raw.githubusercontent.com/caddyserver/dist/master/init/caddy.service -o /etc/systemd/system/caddy.service
|
||||
```
|
||||
|
||||
Edit the file and change the `User` and `Group` attributes to `seed`, as we have for the other services. Also ensure that `ExecStart` and `ExecReload` are set to the correct path. You can find the path under which `caddy` is installed by running the `which caddy` command.
|
||||
|
||||
Finally, edit or create the `Caddyfile` at `/etc/caddy/Caddyfile`, and _replace_ its contents with the following configuration, using the correct domain name for your seed:
|
||||
|
||||
```
|
||||
seed.radicle.example {
|
||||
reverse_proxy 127.0.0.1:8080
|
||||
}
|
||||
```
|
||||
|
||||
This will proxy all HTTPS requests from port `443` to your HTTP daemon running on port `8080`. Make sure your firewall has port `443` open for incomning TCP connections.
|
||||
|
||||
Finally, enable and start the Caddy service:
|
||||
|
||||
```bash
|
||||
systemctl enable --now caddy
|
||||
```
|
||||
|
||||
If you encounter issues setting up Caddy, you can try following their [guide][caddy-guide] instead.
|
||||
|
||||
If everything worked, you should now have HTTPS support for your daemon. To check, run the following command, replacing `seed.radicle.example` with your seed’s domain:
|
||||
|
||||
```bash
|
||||
curl https://seed.radicle.example/api/v1
|
||||
```
|
||||
|
||||
You should now be able to visit your seed node via any Radicle web frontend as well. For example, <https://radicle.network/nodes/seed.radicle.example>.
|
||||
|
||||
> On some distributions, installing `caddy` will start the system service automatically. If you’re not able to connect to your HTTP daemon from the outside, try running `systemctl reload caddy` after you’ve updated the configuration.
|
||||
|
||||
## You’re All Set
|
||||
|
||||
If you got this far, congratulations, you now have a Radicle seed node up and running!
|
||||
|
||||
Come join us on our community chat and tell us about your seed node on the [#seeds][zulip] channel.
|
||||
|
||||
[radicle-node]: https://seed.radicle.xyz/raw/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/570a7eb141b6ba001713c46345d79b6fead1ca15/systemd/radicle-node.service
|
||||
[caddy]: https://caddyserver.com/
|
||||
[caddy-guide]: https://caddyserver.com/docs/running#linux-service
|
||||
[caddy-install]: https://caddyserver.com/docs/install
|
||||
[zulip]: https://radicle.zulipchat.com/#narrow/stream/384534-seeds
|
||||
[bittorrent]: https://en.wikipedia.org/wiki/BitTorrent
|
||||
[dnssd]: https://datatracker.ietf.org/doc/html/rfc6763
|
||||
[srv]: https://datatracker.ietf.org/doc/html/rfc2782
|
||||
|
||||
<style>
|
||||
aside {
|
||||
background: var(--color-background-alt, #f5f5f5);
|
||||
padding: 1rem;
|
||||
border-radius: 0.5rem;
|
||||
margin: 1rem 0;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,66 @@
|
||||
export interface Guide {
|
||||
title: string;
|
||||
description: string;
|
||||
href: string;
|
||||
image: string;
|
||||
external: boolean;
|
||||
video: boolean;
|
||||
}
|
||||
|
||||
// Ordered newest first; the first entry is featured as the latest guide on the
|
||||
// Learn page, and the next entries fill the small guide grid beneath it.
|
||||
export const guides: Guide[] = [
|
||||
{
|
||||
title: "Getting Started",
|
||||
description:
|
||||
"New to Radicle? This quick-start walks you through installing the stack, creating your identity, and opening your first patch.",
|
||||
href: "/guides/getting-started",
|
||||
image: "/marketing/images/learn/getting-started.jpg",
|
||||
external: false,
|
||||
video: false,
|
||||
},
|
||||
{
|
||||
title: "Protocol Guide",
|
||||
description:
|
||||
"Gossip, replication, identity, and the data structures behind it all.",
|
||||
href: "/guides/protocol",
|
||||
image: "/marketing/images/learn/protocol.jpg",
|
||||
external: false,
|
||||
video: false,
|
||||
},
|
||||
{
|
||||
title: "Seeder Guide",
|
||||
description: "Run a public seed node to keep repositories available 24/7.",
|
||||
href: "/guides/seeder",
|
||||
image: "/marketing/images/learn/seeder.jpg",
|
||||
external: false,
|
||||
video: false,
|
||||
},
|
||||
{
|
||||
title: "User Guide",
|
||||
description:
|
||||
"Create an identity, open patches, manage issues, and collaborate from the CLI.",
|
||||
href: "/guides/user",
|
||||
image: "/marketing/images/learn/user.jpg",
|
||||
external: false,
|
||||
video: false,
|
||||
},
|
||||
{
|
||||
title: "Private collaboration over Radicle Garden",
|
||||
description:
|
||||
"Collaborate on a private repository from behind NAT firewalls, using Garden as an always-on relay.",
|
||||
href: "https://radicle.garden/blog/private-collaboration-powered-by-garden",
|
||||
image: "/marketing/images/garden-bg.png",
|
||||
external: true,
|
||||
video: false,
|
||||
},
|
||||
{
|
||||
title: "Custom Domains on Radicle Garden",
|
||||
description:
|
||||
"Set up a custom domain for your repositories on Radicle Garden.",
|
||||
href: "https://www.youtube.com/watch?v=KDbajeSTtjk",
|
||||
image: "https://img.youtube.com/vi/KDbajeSTtjk/maxresdefault.jpg",
|
||||
external: true,
|
||||
video: true,
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,76 @@
|
||||
import { navigateToUrl, useDefaultNavigation } from "@app/lib/router";
|
||||
|
||||
// Resolve the URL an anchor click should client-navigate to, or `undefined`
|
||||
// when the browser should handle it natively: modified clicks, new-tab or
|
||||
// download links, cross-origin links, and in-page fragment links (which scroll
|
||||
// natively).
|
||||
function clientNavigationTarget(
|
||||
event: MouseEvent,
|
||||
anchor: HTMLAnchorElement,
|
||||
): URL | undefined {
|
||||
if (useDefaultNavigation(event)) {
|
||||
return undefined;
|
||||
}
|
||||
const href = anchor.getAttribute("href");
|
||||
if (!href || href.startsWith("#")) {
|
||||
return undefined;
|
||||
}
|
||||
if (
|
||||
(anchor.target && anchor.target !== "_self") ||
|
||||
anchor.hasAttribute("download")
|
||||
) {
|
||||
return undefined;
|
||||
}
|
||||
let url: URL;
|
||||
try {
|
||||
url = new URL(href, window.location.href);
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
if (
|
||||
url.origin !== window.location.origin ||
|
||||
(url.pathname === window.location.pathname &&
|
||||
url.search === window.location.search)
|
||||
) {
|
||||
return undefined;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
// Svelte action: route an internal `<a>`'s clicks through the client-side
|
||||
// router so they navigate in place and run the page transition, instead of
|
||||
// triggering a full document load. Applied directly to marketing anchors, it
|
||||
// keeps them in their component's style scope. External, new-tab, download and
|
||||
// in-page links keep their native behaviour.
|
||||
export function link(node: HTMLAnchorElement) {
|
||||
function onClick(event: MouseEvent) {
|
||||
const url = clientNavigationTarget(event, node);
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
void navigateToUrl("push", url);
|
||||
}
|
||||
|
||||
node.addEventListener("click", onClick);
|
||||
return {
|
||||
destroy() {
|
||||
node.removeEventListener("click", onClick);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
// Delegated variant for containers of rendered HTML (compiled markdown), where
|
||||
// individual anchors can't carry a `use:` directive.
|
||||
export function handleDelegatedLinkClick(event: MouseEvent) {
|
||||
const anchor = (event.target as HTMLElement | null)?.closest("a");
|
||||
if (!anchor) {
|
||||
return;
|
||||
}
|
||||
const url = clientNavigationTarget(event, anchor);
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
void navigateToUrl("push", url);
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
import type { ComponentType } from "svelte";
|
||||
import type { DocsLoadedRoute, DocsPage, DocsRoute } from "./types";
|
||||
|
||||
import { isDocsPage } from "./types";
|
||||
|
||||
export type {
|
||||
CliRoute,
|
||||
DesktopRoute,
|
||||
DocsLoadedRoute,
|
||||
DocsPage,
|
||||
DocsRoute,
|
||||
GuidesRoute,
|
||||
InstallRoute,
|
||||
LandingRoute,
|
||||
LearnRoute,
|
||||
PrinciplesRoute,
|
||||
} from "./types";
|
||||
|
||||
// Dynamic imports use static specifiers so Vite can bundle each doc as its own
|
||||
// chunk. The `.md` files are compiled to Svelte components by mdsvex.
|
||||
const docsLoaders = new Map<
|
||||
DocsPage,
|
||||
() => Promise<{ default: ComponentType }>
|
||||
>([
|
||||
["faq", () => import("./docs/faq.md")],
|
||||
["glossary", () => import("./docs/glossary.md")],
|
||||
["download", () => import("./docs/download.md")],
|
||||
["guides/getting-started", () => import("./docs/guides/getting-started.md")],
|
||||
["guides/protocol", () => import("./docs/guides/protocol.md")],
|
||||
["guides/seeder", () => import("./docs/guides/seeder.md")],
|
||||
["guides/user", () => import("./docs/guides/user.md")],
|
||||
]);
|
||||
|
||||
const docsTitles = new Map<DocsPage, string>([
|
||||
["faq", "FAQ"],
|
||||
["glossary", "Glossary"],
|
||||
["download", "Download"],
|
||||
["guides/getting-started", "Getting Started"],
|
||||
["guides/protocol", "Protocol Guide"],
|
||||
["guides/seeder", "Seeder Guide"],
|
||||
["guides/user", "User Guide"],
|
||||
]);
|
||||
|
||||
export function docsTitle(page: DocsPage): string[] {
|
||||
return [docsTitles.get(page) ?? "Docs", "Radicle"];
|
||||
}
|
||||
|
||||
// Resolve a marketing sub-route from its leading path segment and remainder.
|
||||
// Gating (only available when `homepage === "landing"`) is enforced by the
|
||||
// caller in the core router.
|
||||
export function marketingRoute(
|
||||
resource: string,
|
||||
segments: string[],
|
||||
):
|
||||
| { resource: "learn"; params: undefined }
|
||||
| { resource: "install"; params: undefined }
|
||||
| { resource: "guides"; params: undefined }
|
||||
| { resource: "desktop"; params: undefined }
|
||||
| { resource: "cli"; params: undefined }
|
||||
| { resource: "principles"; params: undefined }
|
||||
| DocsRoute
|
||||
| null {
|
||||
switch (resource) {
|
||||
case "learn":
|
||||
return segments.length === 0
|
||||
? { resource: "learn", params: undefined }
|
||||
: null;
|
||||
case "install":
|
||||
return segments.length === 0
|
||||
? { resource: "install", params: undefined }
|
||||
: null;
|
||||
case "desktop":
|
||||
return segments.length === 0
|
||||
? { resource: "desktop", params: undefined }
|
||||
: null;
|
||||
case "cli":
|
||||
return segments.length === 0
|
||||
? { resource: "cli", params: undefined }
|
||||
: null;
|
||||
case "principles":
|
||||
return segments.length === 0
|
||||
? { resource: "principles", params: undefined }
|
||||
: null;
|
||||
case "faq":
|
||||
case "glossary":
|
||||
case "download":
|
||||
return segments.length === 0
|
||||
? { resource: "docs", params: { page: resource } }
|
||||
: null;
|
||||
case "guides": {
|
||||
// Bare `/guides` is the all-guides index; `/guides/<page>` is a doc.
|
||||
if (segments.length === 0) {
|
||||
return { resource: "guides", params: undefined };
|
||||
}
|
||||
const guide = segments.shift();
|
||||
const page = guide ? `guides/${guide}` : undefined;
|
||||
if (page && isDocsPage(page) && segments.length === 0) {
|
||||
return { resource: "docs", params: { page } };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export async function loadDocsRoute(
|
||||
params: DocsRoute["params"],
|
||||
): Promise<DocsLoadedRoute> {
|
||||
const loader = docsLoaders.get(params.page);
|
||||
if (!loader) {
|
||||
throw new Error(`Unknown docs page: ${params.page}`);
|
||||
}
|
||||
const mod = await loader();
|
||||
return {
|
||||
resource: "docs",
|
||||
params: { page: params.page, component: mod.default },
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
import type { ComponentType } from "svelte";
|
||||
|
||||
export interface LandingRoute {
|
||||
resource: "landing";
|
||||
params: undefined;
|
||||
}
|
||||
|
||||
export interface LearnRoute {
|
||||
resource: "learn";
|
||||
params: undefined;
|
||||
}
|
||||
|
||||
export interface InstallRoute {
|
||||
resource: "install";
|
||||
params: undefined;
|
||||
}
|
||||
|
||||
export interface GuidesRoute {
|
||||
resource: "guides";
|
||||
params: undefined;
|
||||
}
|
||||
|
||||
export interface DesktopRoute {
|
||||
resource: "desktop";
|
||||
params: undefined;
|
||||
}
|
||||
|
||||
export interface CliRoute {
|
||||
resource: "cli";
|
||||
params: undefined;
|
||||
}
|
||||
|
||||
export interface PrinciplesRoute {
|
||||
resource: "principles";
|
||||
params: undefined;
|
||||
}
|
||||
|
||||
export type DocsPage =
|
||||
| "faq"
|
||||
| "glossary"
|
||||
| "download"
|
||||
| "guides/getting-started"
|
||||
| "guides/protocol"
|
||||
| "guides/seeder"
|
||||
| "guides/user";
|
||||
|
||||
const docsPages: DocsPage[] = [
|
||||
"faq",
|
||||
"glossary",
|
||||
"download",
|
||||
"guides/getting-started",
|
||||
"guides/protocol",
|
||||
"guides/seeder",
|
||||
"guides/user",
|
||||
];
|
||||
|
||||
export function isDocsPage(page: string): page is DocsPage {
|
||||
return (docsPages as string[]).includes(page);
|
||||
}
|
||||
|
||||
export interface DocsRoute {
|
||||
resource: "docs";
|
||||
params: { page: DocsPage };
|
||||
}
|
||||
|
||||
export interface DocsLoadedRoute {
|
||||
resource: "docs";
|
||||
params: { page: DocsPage; component: ComponentType };
|
||||
}
|
||||
@@ -3,6 +3,13 @@
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import KeyHint from "@app/components/KeyHint.svelte";
|
||||
import Modal from "@app/components/Modal.svelte";
|
||||
|
||||
// Show the platform's search modifier: ⌘ on macOS, Ctrl elsewhere. The
|
||||
// handler itself accepts either (`metaKey || ctrlKey`), this only labels it.
|
||||
const searchModifier =
|
||||
typeof navigator !== "undefined" && /Mac/i.test(navigator.userAgent)
|
||||
? "⌘"
|
||||
: "Ctrl";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -31,6 +38,15 @@
|
||||
|
||||
<div slot="body">
|
||||
<div class="hotkeys">
|
||||
<div class="pair">
|
||||
<span>Search</span>
|
||||
<div class="keys">
|
||||
<KeyHint>{searchModifier}</KeyHint>
|
||||
+
|
||||
<KeyHint>K</KeyHint>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pair">
|
||||
<span>Submit</span>
|
||||
<KeyHint>⏎</KeyHint>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import Layout from "@app/App/Layout.svelte";
|
||||
import IconLarge from "@app/components/IconLarge.svelte";
|
||||
import SeedSelector from "@app/views/nodes/SeedSelector.svelte";
|
||||
import SeedPicker from "@app/views/explore/SeedPicker.svelte";
|
||||
|
||||
export let title: string;
|
||||
export let description: string | undefined = undefined;
|
||||
@@ -33,7 +33,7 @@
|
||||
<div class="title-row txt-heading-m">
|
||||
<span>{title}</span>
|
||||
{#if baseUrl}
|
||||
<SeedSelector {baseUrl} compact />
|
||||
<SeedPicker {baseUrl} />
|
||||
{/if}
|
||||
</div>
|
||||
{#if description}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import { onDestroy } from "svelte";
|
||||
import { quadInOut, sineInOut } from "svelte/easing";
|
||||
import { fade, fly } from "svelte/transition";
|
||||
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import IconButton from "@app/components/IconButton.svelte";
|
||||
import RepoSearch from "./RepoSearch.svelte";
|
||||
|
||||
export let baseUrl: BaseUrl;
|
||||
|
||||
let open = false;
|
||||
|
||||
function openSearch() {
|
||||
open = true;
|
||||
}
|
||||
|
||||
function closeSearch() {
|
||||
open = false;
|
||||
}
|
||||
|
||||
function handleKeydown(event: KeyboardEvent) {
|
||||
if ((event.metaKey || event.ctrlKey) && event.key === "k") {
|
||||
event.preventDefault();
|
||||
open = true;
|
||||
} else if (event.key === "Escape" && open) {
|
||||
closeSearch();
|
||||
}
|
||||
}
|
||||
|
||||
// Lock background scrolling while the overlay is open.
|
||||
$: if (typeof document !== "undefined") {
|
||||
document.body.style.overflow = open ? "hidden" : "";
|
||||
}
|
||||
|
||||
onDestroy(() => {
|
||||
if (typeof document !== "undefined") {
|
||||
document.body.style.overflow = "";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.trigger {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 400;
|
||||
background-color: var(--color-surface-base);
|
||||
opacity: 0.7;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: default;
|
||||
}
|
||||
.overlay {
|
||||
position: fixed;
|
||||
top: 0.5rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 401;
|
||||
width: calc(100vw - 1rem);
|
||||
max-width: 36rem;
|
||||
}
|
||||
.overlay :global(.input-wrapper) {
|
||||
box-shadow: var(--elevation-low);
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:window on:keydown={handleKeydown} />
|
||||
|
||||
{#if !open}
|
||||
<div
|
||||
class="trigger"
|
||||
transition:fly={{ duration: 225, x: -44, easing: quadInOut }}>
|
||||
<IconButton inline ariaLabel="Search repositories" on:click={openSearch}>
|
||||
<Icon name="search" />
|
||||
</IconButton>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if open}
|
||||
<button
|
||||
class="backdrop"
|
||||
aria-label="Close search"
|
||||
transition:fade={{ duration: 160 }}
|
||||
on:click={closeSearch}>
|
||||
</button>
|
||||
<div
|
||||
class="overlay"
|
||||
transition:fly={{ duration: 225, x: 44, easing: sineInOut }}>
|
||||
<RepoSearch {baseUrl} autofocus showClose on:close={closeSearch} />
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,360 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, SearchResult } from "@http-client";
|
||||
|
||||
import debounce from "lodash/debounce";
|
||||
import { createEventDispatcher, onDestroy, onMount, tick } from "svelte";
|
||||
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { push } from "@app/lib/router";
|
||||
import { formatRepositoryId, twemoji } from "@app/lib/utils";
|
||||
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import IconButton from "@app/components/IconButton.svelte";
|
||||
import Link from "@app/components/Link.svelte";
|
||||
import Loading from "@app/components/Loading.svelte";
|
||||
import RepoAvatar from "@app/components/RepoAvatar.svelte";
|
||||
|
||||
export let baseUrl: BaseUrl;
|
||||
export let autofocus = false;
|
||||
export let showClose = false;
|
||||
|
||||
const dispatch = createEventDispatcher<{ close: null }>();
|
||||
|
||||
let query = "";
|
||||
let results: SearchResult[] = [];
|
||||
let loading = false;
|
||||
let open = false;
|
||||
let failed = false;
|
||||
// Index of the keyboard/hover-highlighted result; -1 means none.
|
||||
let activeIndex = -1;
|
||||
let containerEl: HTMLDivElement;
|
||||
let inputEl: HTMLInputElement | undefined = undefined;
|
||||
let controller: AbortController | undefined;
|
||||
|
||||
$: api = new HttpdClient(baseUrl);
|
||||
|
||||
onMount(() => {
|
||||
if (autofocus) inputEl?.focus({ preventScroll: true });
|
||||
});
|
||||
|
||||
// The inline instance unmounts on every explore→repo navigation, so make
|
||||
// sure a pending debounce or in-flight request can't resolve after teardown.
|
||||
onDestroy(() => {
|
||||
runSearch.cancel();
|
||||
controller?.abort();
|
||||
});
|
||||
|
||||
// Drop stale state when the active seed changes.
|
||||
$: if (baseUrl) reset();
|
||||
|
||||
function reset() {
|
||||
runSearch.cancel();
|
||||
controller?.abort();
|
||||
controller = undefined;
|
||||
query = "";
|
||||
results = [];
|
||||
loading = false;
|
||||
open = false;
|
||||
failed = false;
|
||||
activeIndex = -1;
|
||||
}
|
||||
|
||||
const runSearch = debounce((q: string) => {
|
||||
controller?.abort();
|
||||
const current = new AbortController();
|
||||
controller = current;
|
||||
api.repo
|
||||
.search(q, { abort: current.signal })
|
||||
.then(found => {
|
||||
if (current.signal.aborted) return;
|
||||
results = found.filter(r => r.payloads["xyz.radicle.project"]);
|
||||
failed = false;
|
||||
loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
if (current.signal.aborted) return;
|
||||
results = [];
|
||||
failed = true;
|
||||
loading = false;
|
||||
});
|
||||
}, 200);
|
||||
|
||||
function handleInput() {
|
||||
activeIndex = -1;
|
||||
const q = query.trim();
|
||||
if (q.length === 0) {
|
||||
runSearch.cancel();
|
||||
controller?.abort();
|
||||
controller = undefined;
|
||||
results = [];
|
||||
loading = false;
|
||||
failed = false;
|
||||
open = false;
|
||||
return;
|
||||
}
|
||||
loading = true;
|
||||
open = true;
|
||||
void runSearch(q);
|
||||
}
|
||||
|
||||
function handleFocus() {
|
||||
if (query.trim().length > 0) open = true;
|
||||
}
|
||||
|
||||
function handleKeydown(event: KeyboardEvent) {
|
||||
if (event.key === "Escape") {
|
||||
if (open) {
|
||||
open = false;
|
||||
} else {
|
||||
dispatch("close");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (!open || results.length === 0) return;
|
||||
|
||||
if (event.key === "ArrowDown") {
|
||||
event.preventDefault();
|
||||
activeIndex = Math.min(activeIndex + 1, results.length - 1);
|
||||
void scrollActiveIntoView();
|
||||
} else if (event.key === "ArrowUp") {
|
||||
event.preventDefault();
|
||||
activeIndex = activeIndex <= 0 ? -1 : activeIndex - 1;
|
||||
void scrollActiveIntoView();
|
||||
} else if (event.key === "Enter" && activeIndex >= 0) {
|
||||
event.preventDefault();
|
||||
selectResult(results[activeIndex]);
|
||||
}
|
||||
}
|
||||
|
||||
function selectResult(result: SearchResult) {
|
||||
void push({ resource: "repo.source", repo: result.rid, node: baseUrl });
|
||||
open = false;
|
||||
dispatch("close");
|
||||
}
|
||||
|
||||
async function scrollActiveIntoView() {
|
||||
await tick();
|
||||
containerEl
|
||||
?.querySelector(".result.active")
|
||||
?.scrollIntoView({ block: "nearest" });
|
||||
}
|
||||
|
||||
function handleWindowClick(event: MouseEvent | TouchEvent) {
|
||||
if (open && containerEl && !event.composedPath().includes(containerEl)) {
|
||||
open = false;
|
||||
}
|
||||
}
|
||||
|
||||
function handleWindowKeydown(event: KeyboardEvent) {
|
||||
if ((event.metaKey || event.ctrlKey) && event.key === "k") {
|
||||
event.preventDefault();
|
||||
inputEl?.focus();
|
||||
inputEl?.select();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.search {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.input-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
height: var(--button-regular-height);
|
||||
padding: 0 0.75rem;
|
||||
background: var(--color-surface-base);
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-sm);
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
.input-wrapper:hover {
|
||||
border-color: var(--color-border-mid);
|
||||
}
|
||||
.input-wrapper:focus-within {
|
||||
border-color: var(--color-border-brand);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
.search-input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
font: var(--txt-body-m-regular);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
.search-input::placeholder {
|
||||
color: var(--color-text-tertiary);
|
||||
opacity: 1;
|
||||
}
|
||||
.dropdown {
|
||||
position: absolute;
|
||||
top: calc(100% + 0.25rem);
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
background: var(--color-surface-canvas);
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-md);
|
||||
box-shadow: var(--elevation-low);
|
||||
padding: 0.25rem;
|
||||
max-height: 24rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.dropdown :global(a) {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
.result {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
padding: 0.5rem;
|
||||
border-radius: var(--border-radius-sm);
|
||||
}
|
||||
.result.active {
|
||||
background-color: var(--color-surface-subtle);
|
||||
}
|
||||
.result-avatar {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--color-brand-bg);
|
||||
color: var(--color-text-on-brand);
|
||||
overflow: hidden;
|
||||
}
|
||||
.result-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.result-name {
|
||||
font: var(--txt-body-m-semibold);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
.result-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
font: var(--txt-body-s-regular);
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
.result-description {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.result-rid {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.result-seeds {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.message {
|
||||
padding: 0.75rem 0.5rem;
|
||||
font: var(--txt-body-m-regular);
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:window
|
||||
on:click={handleWindowClick}
|
||||
on:touchstart={handleWindowClick}
|
||||
on:keydown={handleWindowKeydown} />
|
||||
|
||||
<div class="search" bind:this={containerEl}>
|
||||
<div class="input-wrapper">
|
||||
<Icon name="search" />
|
||||
<input
|
||||
class="search-input"
|
||||
type="text"
|
||||
placeholder="Search repositories…"
|
||||
aria-label="Search repositories"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
bind:this={inputEl}
|
||||
bind:value={query}
|
||||
on:input={handleInput}
|
||||
on:focus={handleFocus}
|
||||
on:keydown|stopPropagation={handleKeydown} />
|
||||
{#if loading}
|
||||
<Loading small noDelay />
|
||||
{/if}
|
||||
{#if showClose}
|
||||
<IconButton ariaLabel="Close search" on:click={() => dispatch("close")}>
|
||||
<Icon name="close" />
|
||||
</IconButton>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if open}
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<div class="dropdown" on:mouseleave={() => (activeIndex = -1)}>
|
||||
{#if results.length > 0}
|
||||
{#each results as result, i (result.rid)}
|
||||
{@const project = result.payloads["xyz.radicle.project"]}
|
||||
{#if project}
|
||||
<Link
|
||||
route={{
|
||||
resource: "repo.source",
|
||||
repo: result.rid,
|
||||
node: baseUrl,
|
||||
}}
|
||||
on:afterNavigate={() => {
|
||||
open = false;
|
||||
dispatch("close");
|
||||
}}>
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<div
|
||||
class="result"
|
||||
class:active={i === activeIndex}
|
||||
on:mouseenter={() => (activeIndex = i)}>
|
||||
<div class="result-avatar">
|
||||
<RepoAvatar
|
||||
rid={result.rid}
|
||||
name={project.name}
|
||||
styleWidth="1.5rem" />
|
||||
</div>
|
||||
<div class="result-body">
|
||||
<div class="result-name txt-overflow" use:twemoji>
|
||||
{project.name}
|
||||
</div>
|
||||
<div class="result-meta">
|
||||
{#if project.description}
|
||||
<span class="result-description" use:twemoji>
|
||||
{project.description}
|
||||
</span>
|
||||
{/if}
|
||||
<span class="result-rid" title={result.rid}>
|
||||
{formatRepositoryId(result.rid)}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="result-seeds txt-body-s-regular">
|
||||
<Icon name="seed" />
|
||||
{result.seeds}
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
{/if}
|
||||
{/each}
|
||||
{:else if loading}
|
||||
<div class="message">Searching…</div>
|
||||
{:else if failed}
|
||||
<div class="message">Search is unavailable on this seed.</div>
|
||||
{:else}
|
||||
<div class="message">No repositories found.</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,298 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, NodeStats } from "@http-client";
|
||||
import type { ExploreReposSort } from "./router";
|
||||
|
||||
import * as router from "@app/lib/router";
|
||||
import { fetchRepoInfos } from "@app/components/RepoCard";
|
||||
import { handleError } from "@app/views/nodes/error";
|
||||
|
||||
import DropdownList from "@app/components/DropdownList.svelte";
|
||||
import DropdownListItem from "@app/components/DropdownList/DropdownListItem.svelte";
|
||||
import Header from "@app/components/Header.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import Link from "@app/components/Link.svelte";
|
||||
import Loading from "@app/components/Loading.svelte";
|
||||
import Placeholder from "@app/components/Placeholder.svelte";
|
||||
import Popover, { closeFocused } from "@app/components/Popover.svelte";
|
||||
import RepoCard from "@app/components/RepoCard.svelte";
|
||||
import Separator from "@app/views/repos/Separator.svelte";
|
||||
|
||||
export let baseUrl: BaseUrl;
|
||||
export let stats: NodeStats;
|
||||
export let page: number;
|
||||
export let sort: ExploreReposSort;
|
||||
export let searchAvailable: boolean;
|
||||
|
||||
const perPage = 24;
|
||||
|
||||
const sortOptions: { value: ExploreReposSort; label: string }[] = [
|
||||
{ value: "activity", label: "Recently active" },
|
||||
{ value: "seeding", label: "Most seeded" },
|
||||
];
|
||||
|
||||
const allLabels: Record<ExploreReposSort, string> = {
|
||||
rid: "All repos",
|
||||
activity: "Recently active",
|
||||
seeding: "Most seeded",
|
||||
};
|
||||
|
||||
// When the seed has no search backend, activity/seeding sorts hit the
|
||||
// slow storage-walk path on httpd, so the dropdown is hidden and we
|
||||
// force the listing back to rid order. The URL's `sort` is left as-is
|
||||
// so the preference resumes if the user picks a search-capable seed.
|
||||
$: effectiveSort = searchAvailable ? sort : "rid";
|
||||
$: totalPages = Math.max(1, Math.ceil(stats.repos.total / perPage));
|
||||
$: subtitle = allLabels[effectiveSort];
|
||||
|
||||
// Re-evaluates whenever baseUrl, page, or sort change so switching seeds
|
||||
// (which only changes baseUrl) refetches.
|
||||
$: reposPromise = fetchRepos(baseUrl, page, effectiveSort);
|
||||
|
||||
async function fetchRepos(
|
||||
currentBaseUrl: BaseUrl,
|
||||
currentPage: number,
|
||||
currentSort: ExploreReposSort,
|
||||
) {
|
||||
return fetchRepoInfos(currentBaseUrl, {
|
||||
show: "all",
|
||||
sort: currentSort,
|
||||
perPage,
|
||||
page: currentPage,
|
||||
});
|
||||
}
|
||||
|
||||
function goToPage(target: number) {
|
||||
void router.push({
|
||||
resource: "explore.repos",
|
||||
params: { page: target, sort },
|
||||
});
|
||||
}
|
||||
|
||||
function selectSort(value: ExploreReposSort) {
|
||||
closeFocused();
|
||||
if (value === sort) return;
|
||||
void router.push({
|
||||
resource: "explore.repos",
|
||||
params: { page: 0, sort: value },
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: calc(100vh - var(--global-header-height));
|
||||
}
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: 86rem;
|
||||
margin: 0 auto;
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
.breadcrumbs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
column-gap: 0.25rem;
|
||||
font: var(--txt-body-m-regular);
|
||||
white-space: nowrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
.breadcrumb :global(a:hover) {
|
||||
color: var(--color-text-brand);
|
||||
}
|
||||
.breadcrumb-current {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 0 1rem;
|
||||
font: var(--txt-body-m-regular);
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
.sort-trigger {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.375rem 0.5rem 0.375rem 0.75rem;
|
||||
background: transparent;
|
||||
border: 1px solid var(--color-border-subtle);
|
||||
border-radius: var(--border-radius-sm);
|
||||
color: var(--color-text-primary);
|
||||
font: var(--txt-body-m-regular);
|
||||
cursor: pointer;
|
||||
}
|
||||
.sort-trigger:hover {
|
||||
background-color: var(--color-surface-mid);
|
||||
}
|
||||
.sort-label-muted {
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
.repo-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
|
||||
gap: 0;
|
||||
}
|
||||
.loading {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 12rem;
|
||||
}
|
||||
.footer {
|
||||
display: flex;
|
||||
gap: 0.5rem 1rem;
|
||||
margin-top: 1rem;
|
||||
padding: 0 1rem;
|
||||
font: var(--txt-body-m-regular);
|
||||
color: var(--color-text-tertiary);
|
||||
}
|
||||
.pagination {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
.text-button {
|
||||
background: none;
|
||||
border: none;
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.text-button:not(:disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
.text-button:hover:not(:disabled) {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.current-page {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media (max-width: 1010.98px) {
|
||||
.repo-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.footer {
|
||||
flex-direction: column;
|
||||
}
|
||||
.pagination {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.toolbar,
|
||||
.footer {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<Header />
|
||||
|
||||
<div class="page">
|
||||
<div class="container">
|
||||
<div class="toolbar">
|
||||
<nav class="breadcrumbs" aria-label="Breadcrumb">
|
||||
<span class="breadcrumb">
|
||||
<Link route={{ resource: "explore", params: undefined }}>
|
||||
Explore
|
||||
</Link>
|
||||
</span>
|
||||
<Separator />
|
||||
<span class="breadcrumb breadcrumb-current">{subtitle}</span>
|
||||
</nav>
|
||||
{#if searchAvailable}
|
||||
<Popover popoverPositionTop="2.5rem" popoverPositionRight="0">
|
||||
<button
|
||||
slot="toggle"
|
||||
let:toggle
|
||||
on:click={toggle}
|
||||
class="sort-trigger"
|
||||
aria-label="Sort">
|
||||
<span class="sort-label-muted">Sort:</span>
|
||||
{subtitle}
|
||||
<Icon name="chevron-down" />
|
||||
</button>
|
||||
<svelte:fragment slot="popover">
|
||||
<DropdownList items={sortOptions} styleDropdownMinWidth="12rem">
|
||||
<DropdownListItem
|
||||
slot="item"
|
||||
let:item
|
||||
on:click={() => selectSort(item.value)}
|
||||
selected={item.value === sort}>
|
||||
{item.label}
|
||||
</DropdownListItem>
|
||||
</DropdownList>
|
||||
</svelte:fragment>
|
||||
</Popover>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#await reposPromise}
|
||||
<div class="loading">
|
||||
<Loading small center />
|
||||
</div>
|
||||
{:then repoInfos}
|
||||
{#if repoInfos.length > 0}
|
||||
<div class="repo-grid">
|
||||
{#each repoInfos as repoInfo (repoInfo.repo.rid)}
|
||||
<RepoCard {baseUrl} {repoInfo} />
|
||||
{/each}
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div>
|
||||
{stats.repos.total.toLocaleString()}
|
||||
{stats.repos.total === 1 ? "repository" : "repositories"}
|
||||
</div>
|
||||
{#if totalPages > 1}
|
||||
<div class="pagination">
|
||||
{#if page !== 0}
|
||||
<button class="text-button" on:click={() => goToPage(page - 1)}>
|
||||
Previous
|
||||
</button>
|
||||
·
|
||||
{/if}
|
||||
|
||||
{#each Array.from({ length: Math.min(totalPages, 7) }) as _, i}
|
||||
{@const startPage = Math.max(page - 3, 0)}
|
||||
{@const pageNumber = startPage + i}
|
||||
{#if pageNumber < totalPages}
|
||||
<button
|
||||
class="text-button"
|
||||
class:current-page={page === pageNumber}
|
||||
on:click={() => goToPage(pageNumber)}
|
||||
disabled={page === pageNumber}>
|
||||
{pageNumber + 1}
|
||||
</button>
|
||||
{/if}
|
||||
{/each}
|
||||
|
||||
{#if page !== totalPages - 1}
|
||||
·
|
||||
<button class="text-button" on:click={() => goToPage(page + 1)}>
|
||||
Next
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{:else}
|
||||
<div class="loading">
|
||||
<Placeholder iconName="desert" caption="No repositories to show." />
|
||||
</div>
|
||||
{/if}
|
||||
{:catch error}
|
||||
{router.push(handleError(error, baseUrl))}
|
||||
{/await}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,204 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Repo } from "@http-client";
|
||||
import type { RepoInfo } from "@app/components/RepoCard";
|
||||
import type { ExploreSection } from "./sections";
|
||||
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { fetchRepoInfos } from "@app/components/RepoCard";
|
||||
import { loadRepoActivity } from "@app/lib/commit";
|
||||
import * as router from "@app/lib/router";
|
||||
import { handleError } from "@app/views/nodes/error";
|
||||
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import Link from "@app/components/Link.svelte";
|
||||
import RepoCard from "@app/components/RepoCard.svelte";
|
||||
import RepoCardSkeleton from "@app/components/RepoCardSkeleton.svelte";
|
||||
|
||||
export let baseUrl: BaseUrl;
|
||||
export let section: ExploreSection;
|
||||
|
||||
const MAX_STATIC_RIDS = 9;
|
||||
|
||||
$: skeletonCount =
|
||||
section.kind === "static"
|
||||
? Math.min(section.rids.length, MAX_STATIC_RIDS)
|
||||
: section.limit;
|
||||
|
||||
async function fetchStaticRepos(
|
||||
url: BaseUrl,
|
||||
rids: string[],
|
||||
): Promise<RepoInfo[]> {
|
||||
const api = new HttpdClient(url);
|
||||
const limited = rids.slice(0, MAX_STATIC_RIDS);
|
||||
|
||||
const results = await Promise.allSettled(
|
||||
limited.map(rid => api.repo.getByRid(rid)),
|
||||
);
|
||||
|
||||
const repos: Repo[] = results
|
||||
.filter(
|
||||
(r): r is PromiseFulfilledResult<Repo> => r.status === "fulfilled",
|
||||
)
|
||||
.map(r => r.value)
|
||||
.filter(r => Boolean(r.payloads["xyz.radicle.project"]));
|
||||
|
||||
return repos.map(repo => ({
|
||||
repo,
|
||||
baseUrl: url,
|
||||
activity: loadRepoActivity(repo.rid, url).catch(() => []),
|
||||
}));
|
||||
}
|
||||
|
||||
async function fetchSectionRepos(
|
||||
url: BaseUrl,
|
||||
sec: ExploreSection,
|
||||
): Promise<RepoInfo[]> {
|
||||
if (sec.kind === "static") {
|
||||
return fetchStaticRepos(url, sec.rids);
|
||||
}
|
||||
if (sec.kind === "pinned") {
|
||||
// Omit perPage so httpd defaults to "all configured pinned repos".
|
||||
return fetchRepoInfos(url, {
|
||||
show: "pinned",
|
||||
page: 0,
|
||||
});
|
||||
}
|
||||
const sort = sec.kind === "recentlyActive" ? "activity" : "seeding";
|
||||
return fetchRepoInfos(url, {
|
||||
show: "all",
|
||||
sort,
|
||||
perPage: sec.limit,
|
||||
page: 0,
|
||||
});
|
||||
}
|
||||
|
||||
$: dataPromise = fetchSectionRepos(baseUrl, section);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.section {
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
.section:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.25rem 1rem;
|
||||
margin-bottom: 1rem;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
.title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font: var(--txt-header-medium);
|
||||
}
|
||||
.title-icon {
|
||||
color: var(--color-text-tertiary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.view-all {
|
||||
font: var(--txt-body-m-regular);
|
||||
color: var(--color-text-tertiary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.view-all:hover {
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: underline;
|
||||
}
|
||||
.repo-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
|
||||
gap: 0;
|
||||
}
|
||||
.card-fade-in {
|
||||
animation: card-fade-in 280ms ease-out;
|
||||
}
|
||||
.empty {
|
||||
font: var(--txt-body-m-regular);
|
||||
color: var(--color-text-tertiary);
|
||||
padding: 1rem;
|
||||
}
|
||||
@keyframes card-fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.card-fade-in {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1010.98px) {
|
||||
.repo-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.header {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="section">
|
||||
<div class="header">
|
||||
<div class="title">
|
||||
<span class="title-icon"><Icon name={section.icon} /></span>
|
||||
{section.title}
|
||||
</div>
|
||||
{#if section.kind === "pinned"}
|
||||
<Link
|
||||
route={{
|
||||
resource: "explore.repos",
|
||||
params: { page: 0, sort: "rid" },
|
||||
}}>
|
||||
<span class="view-all">View all repositories →</span>
|
||||
</Link>
|
||||
{:else}
|
||||
<Link
|
||||
route={{
|
||||
resource: "explore.repos",
|
||||
params: {
|
||||
page: 0,
|
||||
sort: section.kind === "recentlyActive" ? "activity" : "seeding",
|
||||
},
|
||||
}}>
|
||||
<span class="view-all">View all →</span>
|
||||
</Link>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#await dataPromise}
|
||||
<div class="repo-grid">
|
||||
{#each Array.from({ length: skeletonCount }) as _}
|
||||
<RepoCardSkeleton />
|
||||
{/each}
|
||||
</div>
|
||||
{:then repoInfos}
|
||||
{#if repoInfos.length > 0}
|
||||
<div class="repo-grid">
|
||||
{#each repoInfos as repoInfo (repoInfo.repo.rid)}
|
||||
<div class="card-fade-in">
|
||||
<RepoCard {baseUrl} {repoInfo} />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{:else}
|
||||
<div class="empty">No repos to show.</div>
|
||||
{/if}
|
||||
{:catch error}
|
||||
{router.push(handleError(error, baseUrl))}
|
||||
{/await}
|
||||
</div>
|
||||
@@ -0,0 +1,421 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import isEqual from "lodash/isEqual";
|
||||
import { get } from "svelte/store";
|
||||
|
||||
import config from "@app/lib/config";
|
||||
import { HttpdClient, ResponseError } from "@http-client";
|
||||
import {
|
||||
activeRouteStore,
|
||||
activeUnloadedRouteStore,
|
||||
push,
|
||||
withBaseUrl,
|
||||
} from "@app/lib/router";
|
||||
import { isLocal, isOnion } from "@app/lib/utils";
|
||||
import {
|
||||
addBookmark,
|
||||
bookmarkedSeeds,
|
||||
clearSeedFailure,
|
||||
failedSeeds,
|
||||
removeBookmark,
|
||||
selectedSeed,
|
||||
} from "@app/views/nodes/SeedSelector";
|
||||
import { closeFocused } from "@app/components/Popover.svelte";
|
||||
|
||||
import DropdownList from "@app/components/DropdownList.svelte";
|
||||
import DropdownListItem from "@app/components/DropdownList/DropdownListItem.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import IconButton from "@app/components/IconButton.svelte";
|
||||
import Popover from "@app/components/Popover.svelte";
|
||||
import TextInput from "@app/components/TextInput.svelte";
|
||||
|
||||
export let baseUrl: BaseUrl;
|
||||
// When false (e.g. used in global settings), picking a seed updates the
|
||||
// explore/search seed without navigating the current page onto it — only
|
||||
// the explore listing reloads. The default navigates like a seed switch.
|
||||
export let navigateOnApply = true;
|
||||
|
||||
const VALIDATION_TIMEOUT_MS = 10000;
|
||||
|
||||
let expanded: boolean = false;
|
||||
let loading = false;
|
||||
let addingNew = false;
|
||||
let seedAddressInput: string = "";
|
||||
let validationMessage: string | undefined = undefined;
|
||||
|
||||
$: if (expanded === false) {
|
||||
validationMessage = "";
|
||||
addingNew = false;
|
||||
seedAddressInput = "";
|
||||
}
|
||||
|
||||
function beginAdd() {
|
||||
validationMessage = undefined;
|
||||
seedAddressInput = "";
|
||||
addingNew = true;
|
||||
}
|
||||
|
||||
async function validateInput(seed: BaseUrl): Promise<string | undefined> {
|
||||
const api = new HttpdClient(seed);
|
||||
const controller = new AbortController();
|
||||
const timer = setTimeout(() => controller.abort(), VALIDATION_TIMEOUT_MS);
|
||||
try {
|
||||
await api.getNode({ abort: controller.signal });
|
||||
} catch (e) {
|
||||
console.warn(e);
|
||||
return "Seed node isn’t reachable";
|
||||
} finally {
|
||||
clearTimeout(timer);
|
||||
}
|
||||
}
|
||||
|
||||
// Probe a seed to decide if it's reachable. Mirrors the reachability
|
||||
// check in `tryWithFailover`: prefer `/info`, only swallow 404/405 (older
|
||||
// httpd) and try `/node` instead. Any other error → not reachable.
|
||||
async function probeSeed(seed: BaseUrl): Promise<boolean> {
|
||||
const api = new HttpdClient(seed);
|
||||
const controller = new AbortController();
|
||||
const timer = setTimeout(() => controller.abort(), VALIDATION_TIMEOUT_MS);
|
||||
try {
|
||||
try {
|
||||
await api.getInfo({ abort: controller.signal });
|
||||
return true;
|
||||
} catch (error) {
|
||||
if (
|
||||
error instanceof ResponseError &&
|
||||
(error.status === 404 || error.status === 405)
|
||||
) {
|
||||
await api.getNode({ abort: controller.signal });
|
||||
return true;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn(`Probe for seed ${seed.hostname} failed:`, e);
|
||||
return false;
|
||||
} finally {
|
||||
clearTimeout(timer);
|
||||
}
|
||||
}
|
||||
|
||||
function parseInputToBaseUrl(input: string): BaseUrl | undefined {
|
||||
if (!input) return undefined;
|
||||
const [hostname, portString] = input.split(":");
|
||||
if (!hostname) return undefined;
|
||||
let port: number;
|
||||
if (portString !== undefined) {
|
||||
const parsed = Number(portString);
|
||||
if (!Number.isInteger(parsed) || parsed < 1 || parsed > 65535) {
|
||||
return undefined;
|
||||
}
|
||||
port = parsed;
|
||||
} else {
|
||||
port = isLocal(hostname)
|
||||
? config.nodes.defaultLocalHttpdPort
|
||||
: config.nodes.defaultHttpdPort;
|
||||
}
|
||||
const scheme =
|
||||
isLocal(hostname) || isOnion(hostname)
|
||||
? "http"
|
||||
: config.nodes.defaultHttpdScheme;
|
||||
return { hostname, port, scheme };
|
||||
}
|
||||
|
||||
async function applySeed(seed: BaseUrl) {
|
||||
selectedSeed.set(seed);
|
||||
const isDefault = config.preferredSeeds.some(s => isEqual(s, seed));
|
||||
const isBookmarked = get(bookmarkedSeeds).some(s => isEqual(s, seed));
|
||||
if (!isDefault && !isBookmarked) {
|
||||
addBookmark(seed);
|
||||
}
|
||||
closeFocused();
|
||||
if (navigateOnApply) {
|
||||
// Rewrite the route's baseUrl-bearing field so we retry the same
|
||||
// logical page (repo, user, node) on the new seed — important for
|
||||
// pages opened via a hardcoded seed URL such as the "node
|
||||
// unreachable" error view. Routes without a baseUrl field
|
||||
// (explore) pass through unchanged and rely on the updated
|
||||
// `selectedSeed` store; transient routes (notFound, error,
|
||||
// booting) fall back to the new seed's node view.
|
||||
const route = withBaseUrl(get(activeUnloadedRouteStore), seed);
|
||||
await push(route);
|
||||
} else {
|
||||
// Settings context: don't move the current page onto the new seed;
|
||||
// just reload the explore listing when that's what's on screen.
|
||||
const resource = get(activeRouteStore).resource;
|
||||
if (resource === "explore" || resource === "explore.repos") {
|
||||
await push(get(activeUnloadedRouteStore));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function submitSeed() {
|
||||
loading = true;
|
||||
const seed = parseInputToBaseUrl(seedAddressInput.trim());
|
||||
if (!seed) {
|
||||
validationMessage = "Enter a valid hostname or hostname:port";
|
||||
loading = false;
|
||||
return;
|
||||
}
|
||||
validationMessage = await validateInput(seed);
|
||||
if (validationMessage === undefined) {
|
||||
if (!isEqual(baseUrl, seed)) {
|
||||
await applySeed(seed);
|
||||
} else {
|
||||
closeFocused();
|
||||
}
|
||||
}
|
||||
loading = false;
|
||||
}
|
||||
|
||||
async function selectSeed(seed: BaseUrl) {
|
||||
if (isEqual(baseUrl, seed)) {
|
||||
closeFocused();
|
||||
return;
|
||||
}
|
||||
// If the clicked seed is currently marked unreachable, give it a fresh
|
||||
// probe before navigating. On success the mark is cleared so the route
|
||||
// loader treats it as the primary; on failure the mark stays in place
|
||||
// and the loader's failover picks a reachable seed instead.
|
||||
if (get(failedSeeds).some(s => isEqual(s, seed))) {
|
||||
if (await probeSeed(seed)) {
|
||||
clearSeedFailure(seed);
|
||||
}
|
||||
}
|
||||
await applySeed(seed);
|
||||
}
|
||||
|
||||
function openNodeView(seed: BaseUrl) {
|
||||
closeFocused();
|
||||
void push({
|
||||
resource: "nodes",
|
||||
params: { baseUrl: seed, repoPageIndex: 0 },
|
||||
});
|
||||
}
|
||||
|
||||
function isSeedFailed(seed: BaseUrl, failed: BaseUrl[]) {
|
||||
return failed.some(s => isEqual(s, seed));
|
||||
}
|
||||
|
||||
function handleEscape(event: KeyboardEvent) {
|
||||
if (expanded && event.key === "Escape") {
|
||||
closeFocused();
|
||||
}
|
||||
}
|
||||
|
||||
function handleRemoveBookmark(item: BaseUrl) {
|
||||
const wasActive = isEqual(baseUrl, item);
|
||||
removeBookmark(item);
|
||||
if (wasActive) {
|
||||
// Clear the explicit pick so `determineSeed()` falls back through
|
||||
// its normal resolution path (bucket-pick a preferred seed, or the
|
||||
// hardcoded fallback). Setting it to the first remaining bookmark
|
||||
// or preferred seed would orphan the store when neither exists, and
|
||||
// would also bypass the bucket-based load balancing.
|
||||
selectedSeed.set(undefined);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.target {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
max-width: 14rem;
|
||||
padding: 0.375rem 0.5rem;
|
||||
border-radius: var(--border-radius-sm);
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
.target:hover {
|
||||
background-color: var(--color-surface-mid);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
.hostname {
|
||||
font: var(--txt-body-m-regular);
|
||||
}
|
||||
.validation-message {
|
||||
color: var(--color-feedback-error-text);
|
||||
margin: 0.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
.popover-content {
|
||||
min-width: 16rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.section-label {
|
||||
font: var(--txt-body-s-regular);
|
||||
color: var(--color-text-tertiary);
|
||||
margin: 0.5rem 0.5rem 0.25rem;
|
||||
}
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
}
|
||||
.actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.125rem;
|
||||
}
|
||||
.add-new-row {
|
||||
padding: 0.25rem 0.25rem 0 0.25rem;
|
||||
}
|
||||
.add-new {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
width: 100%;
|
||||
height: 2.5rem;
|
||||
padding: 0.5rem 0.375rem;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-secondary);
|
||||
cursor: pointer;
|
||||
border-radius: var(--border-radius-sm);
|
||||
font: var(--txt-body-m-regular);
|
||||
text-align: left;
|
||||
}
|
||||
.add-new:hover {
|
||||
background-color: var(--color-surface-mid);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
.add-new-input {
|
||||
padding: 0.25rem 0.25rem 0 0.25rem;
|
||||
}
|
||||
.failed-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: var(--color-feedback-warning-text);
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:window on:keydown={handleEscape} />
|
||||
|
||||
<Popover
|
||||
bind:expanded
|
||||
popoverPositionTop="2.5rem"
|
||||
popoverPositionRight="0"
|
||||
popoverPadding="0.25rem"
|
||||
popoverBorderRadius="var(--border-radius-md)">
|
||||
<div
|
||||
slot="toggle"
|
||||
let:toggle
|
||||
class="target"
|
||||
title="Switch seed used for explore"
|
||||
aria-label="Seed selector"
|
||||
on:click={toggle}
|
||||
on:keydown={e => e.key === "Enter" && toggle()}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={expanded}>
|
||||
<Icon name="seed" />
|
||||
<div class="hostname txt-overflow">{baseUrl.hostname}</div>
|
||||
<Icon name={expanded ? "chevron-up" : "chevron-down"} />
|
||||
</div>
|
||||
|
||||
<svelte:fragment slot="popover">
|
||||
<div class="popover-content">
|
||||
<div class="section-label">Custom seeds</div>
|
||||
{#if $bookmarkedSeeds.length > 0}
|
||||
<DropdownList items={$bookmarkedSeeds} styleDropdownPadding="0">
|
||||
<DropdownListItem
|
||||
slot="item"
|
||||
let:item
|
||||
style="height: 2.5rem"
|
||||
on:click={() => void selectSeed(item)}
|
||||
selected={isEqual(baseUrl, item)}>
|
||||
<div class="item">
|
||||
<Icon name="seed" />
|
||||
<div class="txt-overflow" style:flex="1">{item.hostname}</div>
|
||||
{#if isSeedFailed(item, $failedSeeds)}
|
||||
<span class="failed-icon" title="Unable to reach seed">
|
||||
<Icon name="warning" />
|
||||
</span>
|
||||
{/if}
|
||||
<div class="actions">
|
||||
<IconButton
|
||||
ariaLabel="Open node view"
|
||||
title="Open node view"
|
||||
stopPropagation
|
||||
on:click={() => openNodeView(item)}>
|
||||
<Icon name="open-external" />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
ariaLabel="Remove bookmark"
|
||||
stopPropagation
|
||||
on:click={() => handleRemoveBookmark(item)}>
|
||||
<Icon name="close" />
|
||||
</IconButton>
|
||||
</div>
|
||||
</div>
|
||||
</DropdownListItem>
|
||||
</DropdownList>
|
||||
{/if}
|
||||
|
||||
{#if addingNew}
|
||||
<div class="add-new-input">
|
||||
<TextInput
|
||||
autofocus
|
||||
autoselect
|
||||
bind:value={seedAddressInput}
|
||||
name="seed"
|
||||
placeholder="seed.radicle.example"
|
||||
{loading}
|
||||
on:submit={submitSeed} />
|
||||
</div>
|
||||
{#if validationMessage}
|
||||
<span class="validation-message txt-body-s-regular">
|
||||
{validationMessage}
|
||||
</span>
|
||||
{/if}
|
||||
{:else}
|
||||
<div class="add-new-row">
|
||||
<button type="button" class="add-new" on:click={beginAdd}>
|
||||
<Icon name="plus" />
|
||||
<span>Add new</span>
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div style:padding-top="0.5rem">
|
||||
{#if config.preferredSeeds.length > 0}
|
||||
<div class="section-label">Default seeds</div>
|
||||
<DropdownList items={config.preferredSeeds}>
|
||||
<DropdownListItem
|
||||
style="height: 2.5rem"
|
||||
on:click={() => void selectSeed(item)}
|
||||
slot="item"
|
||||
selected={isEqual(baseUrl, item)}
|
||||
let:item>
|
||||
<div class="item">
|
||||
<Icon name="seed" />
|
||||
<div class="txt-overflow" style:flex="1">{item.hostname}</div>
|
||||
{#if isSeedFailed(item, $failedSeeds)}
|
||||
<span class="failed-icon" title="Unable to reach seed">
|
||||
<Icon name="warning" />
|
||||
</span>
|
||||
{/if}
|
||||
<IconButton
|
||||
ariaLabel="Open node view"
|
||||
title="Open node view"
|
||||
stopPropagation
|
||||
on:click={() => openNodeView(item)}>
|
||||
<Icon name="open-external" />
|
||||
</IconButton>
|
||||
</div>
|
||||
</DropdownListItem>
|
||||
</DropdownList>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</svelte:fragment>
|
||||
</Popover>
|
||||