0
2
next/ and ios/: the next grain.social and the iOS app, drawn by HUD
Only what this pull adds. It is built on The next grain.social and grain-ios, drawn by HUD.
.knotless/workflows/next-deploy.ymlnew+36−0
| @@ -0,0 +1,36 @@ | ||
# Deploys the next grain.social's web shell, next/, to next.grain.social on | ||
# each push to feature/hud touching it: built here (npm ci, npm run build), | ||
# then next/dist sent to grain's box by deploy/next-deploy.sh, where | ||
# grain-next-deploy (hetzner-infra's services/grain-next) puts it up as a | ||
# release and swaps it in in one rename. The HUD it calls on that origin, | ||
# the instance hud-next, is deployed from hetzner-infra's services/hud. | ||
# | ||
# It runs on ci.knotless.dev alone, the runner on knotless.dev's own host, | ||
# so the key never reaches the hosted runner that checks pulls. There | ||
# GRAIN_NEXT_DEPLOY_KEY is sealed to pushes to feature/hud alone | ||
# (`knotless secret set knotless://grain.social/grain GRAIN_NEXT_DEPLOY_KEY | ||
# --runner ci.knotless.dev --ref refs/heads/feature/hud < <key>`). The box | ||
# takes it only for grain-next-deploy's forced command: it puts the shell's | ||
# files up and does nothing else. Once a deploy starts it finishes; a newer | ||
# one waits for it, so the newest push is the one served. | ||
on: | ||
push: | ||
refs: [refs/heads/feature/hud] | ||
paths: [next/**, vendor/hud/**, deploy/next-deploy.sh, .knotless/workflows/next-deploy.yml] | ||
superseded: finish | ||
image: node:25-slim | ||
runners: [ci.knotless.dev] | ||
secrets: [GRAIN_NEXT_DEPLOY_KEY] | ||
env: | ||
GRAIN_HOST: root@167.233.237.163 | ||
steps: | ||
- name: tools | ||
run: | | ||
apt-get update -qq | ||
apt-get install -y -qq --no-install-recommends openssh-client >/dev/null | ||
- name: build | ||
timeout: 15 | ||
run: cd next && npm ci && npm run build | ||
- name: deploy | ||
timeout: 5 | ||
run: deploy/next-deploy.sh | ||
.knotless/workflows/next.ymlnew+30−0
| @@ -0,0 +1,30 @@ | ||
# The next grain.social, next/: svelte-check, then vite build, as `just | ||
# next-build` runs them. It builds HUD's renderer from the copy in | ||
# vendor/hud, so a pull moving that copy (`just vendor-hud <commit>`) is | ||
# checked here too. Its packages are kept between runs and installed again | ||
# only when next/package-lock.json changes (the npm-ci shared step). | ||
# | ||
# ios/ is not checked: an iOS app builds only on macOS, with Xcode, and | ||
# these runners are Linux. Build it on a Mac (ios/README.md), or with Xcode | ||
# Cloud (ios/ci_scripts). | ||
image: node:25-slim | ||
runners: [runner.knotless.dev] | ||
# A pre-flight: the merge queue takes a pull into a batch only once this | ||
# has passed at its head, so one that does not build fails no batch. | ||
queue: first | ||
# Pushes to main and to a feature/ branch, which keep the caches for the | ||
# pulls into them, and pulls into either that change the shell, HUD's copy | ||
# or this file. A pull changing none passes at once, noted as skipped. | ||
on: | ||
push: { refs: [refs/heads/main, refs/heads/feature/*] } | ||
pull: | ||
base: [refs/heads/main, refs/heads/feature/*] | ||
paths: [next/**, vendor/**, .knotless/workflows/next.yml] | ||
cache: [next/node_modules] | ||
steps: | ||
- uses: chadtmiller.com/steps/npm-ci@1 | ||
with: { dir: next } | ||
- name: svelte-check | ||
run: cd next && npm run check | ||
- name: vite build | ||
run: cd next && npm run build | ||
deploy/next-deploy.shnew+31−0
| @@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
# Sends next/dist, built, to grain's box, where grain-next-deploy | ||
# (hetzner-infra's services/grain-next) unpacks it as a release and swaps it | ||
# in at next.grain.social, the next grain.social's preview, in one rename. | ||
# Build first: | ||
# | ||
# (cd next && npm ci && npm run build) | ||
# GRAIN_HOST=root@<box> deploy/next-deploy.sh | ||
# | ||
# .knotless/workflows/next-deploy.yml runs it on each push to feature/hud, | ||
# with GRAIN_NEXT_DEPLOY_KEY, a key the box takes only for | ||
# grain-next-deploy. Without it, ssh uses one's own key to root. | ||
set -eu | ||
cd "$(dirname "$0")/.." | ||
| ||
: "${GRAIN_HOST:?GRAIN_HOST: root@<grain box>}" | ||
sha=${KNOTLESS_RUN_SHA:-$(git rev-parse HEAD)} | ||
[ -f next/dist/index.html ] || { echo "no next/dist/index.html: build next/ first" >&2; exit 1; } | ||
| ||
set -- -o StrictHostKeyChecking=accept-new | ||
if [ -n "${GRAIN_NEXT_DEPLOY_KEY:-}" ]; then | ||
key=$(mktemp) | ||
trap 'rm -f "$key"' EXIT | ||
printf '%s\n' "$GRAIN_NEXT_DEPLOY_KEY" > "$key" | ||
chmod 600 "$key" | ||
set -- "$@" -i "$key" -o IdentitiesOnly=yes | ||
fi | ||
| ||
echo "→ next/dist at $(echo "$sha" | cut -c1-12) to $GRAIN_HOST" | ||
# COPYFILE_DISABLE: no macOS ._ files from a deploy off one's own Mac. | ||
COPYFILE_DISABLE=1 tar -C next/dist -czf - . | ssh "$@" "$GRAIN_HOST" grain-next-deploy "$sha" | ||
ios/ci_scripts/ci_post_clone.shnew+19−0
| @@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
# Xcode Cloud hook: runs after the repository is cloned, before Xcode Cloud | ||
# looks for the project, which it finds beside this directory, in ios/. | ||
# Grain.xcodeproj is XcodeGen output and isn't committed, so it is | ||
# generated here, as `just ios` does. HUDKit is vendored (vendor/hud), a | ||
# local package, so there are no package pins to copy in. | ||
set -ex | ||
| ||
brew install xcodegen | ||
| ||
cd "$CI_PRIMARY_REPOSITORY_PATH/ios" | ||
| ||
# project.yml interpolates both, as grain-ios's does. Build numbers are | ||
# Xcode Cloud's: it writes its run counter into CFBundleVersion when it | ||
# archives, whatever CURRENT_PROJECT_VERSION says. | ||
export APPLE_TEAM_ID="${APPLE_TEAM_ID:-YN68LN9T7Z}" | ||
export BUNDLE_ID="${BUNDLE_ID:-social.grain.grain}" | ||
| ||
xcodegen generate | ||
ios/Grain/Assets.xcassets/AppIcon.appiconset/29.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/40.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/58.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/60.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/80.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/87.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/120.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/152.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/167.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/180.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/1024.pngnew+0−0
A binary file, not shown.
ios/Grain/Assets.xcassets/AppIcon.appiconset/Contents.jsonnew+104−0
| @@ -0,0 +1,104 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "120.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"filename" : "180.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"filename" : "80.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "120.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "58.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "87.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "40.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "60.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "152.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "76x76" | ||
}, | ||
{ | ||
"filename" : "167.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "83.5x83.5" | ||
}, | ||
{ | ||
"filename" : "80.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "40.png", | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "58.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "29.png", | ||
"idiom" : "ipad", | ||
"scale" : "1x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "40.png", | ||
"idiom" : "ipad", | ||
"scale" : "2x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "1024.png", | ||
"idiom" : "ios-marketing", | ||
"scale" : "1x", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} | ||
ios/Grain/Assets.xcassets/Contents.jsonnew+6−0
| @@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} | ||
ios/Grain/Fonts/PlusJakartaSans-OFL.txtnew+93−0
| @@ -0,0 +1,93 @@ | ||
Copyright 2020 The Plus Jakarta Sans Project Authors (https://github.com/tokotype/PlusJakartaSans) | ||
| ||
This Font Software is licensed under the SIL Open Font License, Version 1.1. | ||
This license is copied below, and is also available with a FAQ at: | ||
http://scripts.sil.org/OFL | ||
| ||
| ||
----------------------------------------------------------- | ||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 | ||
----------------------------------------------------------- | ||
| ||
PREAMBLE | ||
The goals of the Open Font License (OFL) are to stimulate worldwide | ||
development of collaborative font projects, to support the font creation | ||
efforts of academic and linguistic communities, and to provide a free and | ||
open framework in which fonts may be shared and improved in partnership | ||
with others. | ||
| ||
The OFL allows the licensed fonts to be used, studied, modified and | ||
redistributed freely as long as they are not sold by themselves. The | ||
fonts, including any derivative works, can be bundled, embedded, | ||
redistributed and/or sold with any software provided that any reserved | ||
names are not used by derivative works. The fonts and derivatives, | ||
however, cannot be released under any other type of license. The | ||
requirement for fonts to remain under this license does not apply | ||
to any document created using the fonts or their derivatives. | ||
| ||
DEFINITIONS | ||
"Font Software" refers to the set of files released by the Copyright | ||
Holder(s) under this license and clearly marked as such. This may | ||
include source files, build scripts and documentation. | ||
| ||
"Reserved Font Name" refers to any names specified as such after the | ||
copyright statement(s). | ||
| ||
"Original Version" refers to the collection of Font Software components as | ||
distributed by the Copyright Holder(s). | ||
| ||
"Modified Version" refers to any derivative made by adding to, deleting, | ||
or substituting -- in part or in whole -- any of the components of the | ||
Original Version, by changing formats or by porting the Font Software to a | ||
new environment. | ||
| ||
"Author" refers to any designer, engineer, programmer, technical | ||
writer or other person who contributed to the Font Software. | ||
| ||
PERMISSION & CONDITIONS | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of the Font Software, to use, study, copy, merge, embed, modify, | ||
redistribute, and sell modified and unmodified copies of the Font | ||
Software, subject to the following conditions: | ||
| ||
1) Neither the Font Software nor any of its individual components, | ||
in Original or Modified Versions, may be sold by itself. | ||
| ||
2) Original or Modified Versions of the Font Software may be bundled, | ||
redistributed and/or sold with any software, provided that each copy | ||
contains the above copyright notice and this license. These can be | ||
included either as stand-alone text files, human-readable headers or | ||
in the appropriate machine-readable metadata fields within text or | ||
binary files as long as those fields can be easily viewed by the user. | ||
| ||
3) No Modified Version of the Font Software may use the Reserved Font | ||
Name(s) unless explicit written permission is granted by the corresponding | ||
Copyright Holder. This restriction only applies to the primary font name as | ||
presented to the users. | ||
| ||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font | ||
Software shall not be used to promote, endorse or advertise any | ||
Modified Version, except to acknowledge the contribution(s) of the | ||
Copyright Holder(s) and the Author(s) or with their explicit written | ||
permission. | ||
| ||
5) The Font Software, modified or unmodified, in part or in whole, | ||
must be distributed entirely under this license, and must not be | ||
distributed under any other license. The requirement for fonts to | ||
remain under this license does not apply to any document created | ||
using the Font Software. | ||
| ||
TERMINATION | ||
This license becomes null and void if any of the above conditions are | ||
not met. | ||
| ||
DISCLAIMER | ||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT | ||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE | ||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL | ||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM | ||
OTHER DEALINGS IN THE FONT SOFTWARE. | ||
ios/Grain/Fonts/PlusJakartaSans.ttfnew+0−0
A binary file, not shown.
ios/Grain/Fonts/Syne-OFL.txtnew+93−0
| @@ -0,0 +1,93 @@ | ||
Copyright 2017 The Syne Project Authors (https://gitlab.com/bonjour-monde/fonderie/syne-typeface) | ||
| ||
This Font Software is licensed under the SIL Open Font License, Version 1.1. | ||
This license is copied below, and is also available with a FAQ at: | ||
https://scripts.sil.org/OFL | ||
| ||
| ||
----------------------------------------------------------- | ||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 | ||
----------------------------------------------------------- | ||
| ||
PREAMBLE | ||
The goals of the Open Font License (OFL) are to stimulate worldwide | ||
development of collaborative font projects, to support the font creation | ||
efforts of academic and linguistic communities, and to provide a free and | ||
open framework in which fonts may be shared and improved in partnership | ||
with others. | ||
| ||
The OFL allows the licensed fonts to be used, studied, modified and | ||
redistributed freely as long as they are not sold by themselves. The | ||
fonts, including any derivative works, can be bundled, embedded, | ||
redistributed and/or sold with any software provided that any reserved | ||
names are not used by derivative works. The fonts and derivatives, | ||
however, cannot be released under any other type of license. The | ||
requirement for fonts to remain under this license does not apply | ||
to any document created using the fonts or their derivatives. | ||
| ||
DEFINITIONS | ||
"Font Software" refers to the set of files released by the Copyright | ||
Holder(s) under this license and clearly marked as such. This may | ||
include source files, build scripts and documentation. | ||
| ||
"Reserved Font Name" refers to any names specified as such after the | ||
copyright statement(s). | ||
| ||
"Original Version" refers to the collection of Font Software components as | ||
distributed by the Copyright Holder(s). | ||
| ||
"Modified Version" refers to any derivative made by adding to, deleting, | ||
or substituting -- in part or in whole -- any of the components of the | ||
Original Version, by changing formats or by porting the Font Software to a | ||
new environment. | ||
| ||
"Author" refers to any designer, engineer, programmer, technical | ||
writer or other person who contributed to the Font Software. | ||
| ||
PERMISSION & CONDITIONS | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of the Font Software, to use, study, copy, merge, embed, modify, | ||
redistribute, and sell modified and unmodified copies of the Font | ||
Software, subject to the following conditions: | ||
| ||
1) Neither the Font Software nor any of its individual components, | ||
in Original or Modified Versions, may be sold by itself. | ||
| ||
2) Original or Modified Versions of the Font Software may be bundled, | ||
redistributed and/or sold with any software, provided that each copy | ||
contains the above copyright notice and this license. These can be | ||
included either as stand-alone text files, human-readable headers or | ||
in the appropriate machine-readable metadata fields within text or | ||
binary files as long as those fields can be easily viewed by the user. | ||
| ||
3) No Modified Version of the Font Software may use the Reserved Font | ||
Name(s) unless explicit written permission is granted by the corresponding | ||
Copyright Holder. This restriction only applies to the primary font name as | ||
presented to the users. | ||
| ||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font | ||
Software shall not be used to promote, endorse or advertise any | ||
Modified Version, except to acknowledge the contribution(s) of the | ||
Copyright Holder(s) and the Author(s) or with their explicit written | ||
permission. | ||
| ||
5) The Font Software, modified or unmodified, in part or in whole, | ||
must be distributed entirely under this license, and must not be | ||
distributed under any other license. The requirement for fonts to | ||
remain under this license does not apply to any document created | ||
using the Font Software. | ||
| ||
TERMINATION | ||
This license becomes null and void if any of the above conditions are | ||
not met. | ||
| ||
DISCLAIMER | ||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT | ||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE | ||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL | ||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM | ||
OTHER DEALINGS IN THE FONT SOFTWARE. | ||
ios/Grain/Fonts/Syne.ttfnew+0−0
A binary file, not shown.
ios/Grain/Config.swiftnew+147−0
| @@ -0,0 +1,147 @@ | ||
import HUDKit | ||
import SwiftUI | ||
| ||
/// The app as next/grain.social.json says it is, as the web shell reads it | ||
/// (next/src/apps.ts): its name, its tabs, each a tool call drawn as the root | ||
/// of its own navigation stack, and its look, a palette for light and one for | ||
/// dark. Signed out, a tab draws its `guest` call instead: another call, or | ||
/// "call" for the same one; a tab without one asks to sign in. | ||
struct GrainConfig: Sendable { | ||
struct Tab: Sendable, Identifiable { | ||
let label: String | ||
let icon: String | ||
/// The word its root screen is titled with, drawn as the app's logo, in place of `label`. | ||
let wordmark: String? | ||
let call: Call | ||
/// The call signed out; nil where it needs an account. | ||
let guest: Call? | ||
var id: String { label } | ||
| ||
/// The call it draws, signed in or not; nil where it needs an account. | ||
func root(signedIn: Bool) -> Call? { | ||
signedIn ? call : guest | ||
} | ||
| ||
/// Whether its root screen has a title: not one's own profile (an | ||
/// app's view of an actor, `describe_app`), which heads itself with its | ||
/// avatar and name, as Grain's iOS app's has an empty inline one. | ||
var titled: Bool { call.name != "describe_app" } | ||
| ||
/// Its icon as Grain's iOS app draws it, an SF Symbol. | ||
var symbol: String { | ||
switch icon { | ||
case "feed": "photo.on.rectangle" | ||
case "search": "magnifyingglass" | ||
case "notification": "bell" | ||
case "people": "person" | ||
default: "square" | ||
} | ||
} | ||
} | ||
| ||
let domain: String | ||
let name: String | ||
let tabs: [Tab] | ||
/// Its look's palettes as HUDKit themes, by scheme. | ||
let light: Theme? | ||
let dark: Theme? | ||
/// Where the account chose light or dark, signed in: a call, the path to | ||
/// the choice in its answer (in a query's `response`), and the procedure | ||
/// after which it is asked again, as the web shell's `scheme` (theme.ts). | ||
let scheme: (call: Call, at: String, after: String?)? | ||
| ||
/// The one bundled with the app. | ||
static let bundled: GrainConfig = { | ||
guard let url = Bundle.main.url(forResource: "grain.social", withExtension: "json"), | ||
let data = try? Data(contentsOf: url), | ||
let json = try? JSONDecoder().decode(JSON.self, from: data) | ||
else { fatalError("grain.social.json is missing from the bundle.") } | ||
return GrainConfig(json) | ||
}() | ||
| ||
init(_ json: JSON) { | ||
domain = json.str("domain") ?? "grain.social" | ||
name = json.str("name") ?? domain | ||
tabs = (json["tabs"]?.array ?? []).compactMap { tab in | ||
guard let label = tab.str("label"), let call = Self.call(tab["call"]) else { return nil } | ||
let guest: Call? = tab["guest"]?.string == "call" ? call : Self.call(tab["guest"]) | ||
return Tab(label: label, icon: tab.str("icon") ?? "", wordmark: tab.str("wordmark"), call: call, guest: guest) | ||
} | ||
let look = json["look"] | ||
let faces = Typefaces(body: Self.family(look?["fonts"]?.str("sans")), display: Self.family(look?["fonts"]?.str("display"))) | ||
light = Self.theme(look?["light"], scheme: "light", name: name, faces: faces) | ||
dark = Self.theme(look?["dark"], scheme: "dark", name: name, faces: faces) | ||
scheme = Self.call(json["scheme"]?["call"]).flatMap { call in | ||
json["scheme"]?.str("at").map { (call, $0, json["scheme"]?.str("after")) } | ||
} | ||
} | ||
| ||
/// A `{name, args}`. | ||
private static func call(_ json: JSON?) -> Call? { | ||
guard let name = json?.str("name") else { return nil } | ||
return Call(name, json?["args"]?.object ?? [:]) | ||
} | ||
| ||
/// The family a CSS font list names first (`"Plus Jakarta Sans", -apple-system, …`), | ||
/// where the app bundles it (Fonts/, `UIAppFonts`); else nil, the system's. | ||
private static func family(_ list: String?) -> String? { | ||
guard let first = list?.split(separator: ",").first else { return nil } | ||
let family = first.trimmingCharacters(in: CharacterSet(charactersIn: "\"' ").union(.whitespaces)) | ||
return UIFont.familyNames.contains(family) ? family : nil | ||
} | ||
| ||
/// A palette as a HUDKit theme, as `place.hud.defs#theme` has one, its text in `faces`. | ||
private static func theme(_ palette: JSON?, scheme: String, name: String, faces: Typefaces) -> Theme? { | ||
guard let palette else { return nil } | ||
var theme = Theme(["key": .string("grain-\(scheme)"), "name": .string(name), "colorScheme": .string(scheme), "palette": palette]) | ||
theme?.typefaces = faces | ||
return theme | ||
} | ||
| ||
/// A palette colour for both schemes, following the system's. | ||
func color(_ role: Palette.Role) -> Color { | ||
let light = light?.palette?.colors[role] | ||
let dark = dark?.palette?.colors[role] | ||
return Color(UIColor { traits in | ||
let rgb = traits.userInterfaceStyle == .dark ? dark ?? light : light ?? dark | ||
guard let rgb else { return .label } | ||
return UIColor(red: CGFloat(rgb.red) / 255, green: CGFloat(rgb.green) / 255, blue: CGFloat(rgb.blue) / 255, alpha: 1) | ||
}) | ||
} | ||
| ||
/// The theme for `scheme`. | ||
func theme(_ scheme: ColorScheme) -> Theme? { | ||
scheme == .dark ? dark ?? light : light ?? dark | ||
} | ||
} | ||
| ||
/// Titles in Syne ExtraBold, as the web shell sets its (`look.fonts.display`): | ||
/// the bundled variable Syne (Fonts/Syne.ttf, `UIAppFonts`) at weight 800. | ||
/// Without it, the system's, heavy and wide. | ||
@MainActor | ||
enum Titles { | ||
static func apply(_ config: GrainConfig) { | ||
let text = UIColor(config.color(.text)) | ||
let bar = UINavigationBar.appearance() | ||
bar.largeTitleTextAttributes = [ | ||
.font: display(size: 34), | ||
.foregroundColor: text, | ||
] | ||
bar.titleTextAttributes = [ | ||
.font: display(size: 18), | ||
.foregroundColor: text, | ||
] | ||
} | ||
| ||
/// The variable font's weight axis, `wght`. | ||
private static let weightAxis = 0x7767_6874 | ||
| ||
/// Syne at weight 800, `size` points. | ||
static func display(size: CGFloat) -> UIFont { | ||
guard let syne = UIFont(name: "Syne-Regular", size: size) else { | ||
return .systemFont(ofSize: size, weight: .heavy, width: .expanded) | ||
} | ||
let variation = UIFontDescriptor.AttributeName(rawValue: kCTFontVariationAttribute as String) | ||
return UIFont(descriptor: syne.fontDescriptor.addingAttributes([variation: [weightAxis: 800]]), size: size) | ||
} | ||
} | ||
ios/Grain/GrainApp.swiftnew+133−0
| @@ -0,0 +1,133 @@ | ||
import HUDKit | ||
import SafariServices | ||
import SwiftUI | ||
| ||
/// Grain on iOS: the iOS counterpart of the web shell in next/ | ||
/// (next/src/App.svelte), next/grain.social.json's tabs along the foot, each | ||
/// a navigation stack of HUD's server-resolved views drawn by HUDKit, its | ||
/// tool calls made on the HUD server's /mcp, signed in or as a guest. | ||
/// Launched with `-server <url>`, it calls that server. | ||
@main | ||
struct GrainApp: App { | ||
@State private var shell = Shell() | ||
| ||
init() { | ||
Titles.apply(GrainConfig.bundled) | ||
} | ||
| ||
var body: some Scene { | ||
WindowGroup { | ||
ShellView(shell: shell) | ||
} | ||
} | ||
} | ||
| ||
/// The tab bar, each tab its own stack, drawn in the app's look, in the | ||
/// scheme the account chose (light or dark), else the device's; the | ||
/// notifications tab badged with how many came since they were last seen, | ||
/// asked at launch, as the app comes to the front, and every minute. | ||
struct ShellView: View { | ||
@Bindable var shell: Shell | ||
@Environment(\.colorScheme) private var scheme | ||
@Environment(\.scenePhase) private var phase | ||
| ||
var body: some View { | ||
let tabs = shell.config.tabs | ||
TabView(selection: Binding(get: { shell.selected }, set: { shell.choose($0) })) { | ||
ForEach(tabs.indices, id: \.self) { i in | ||
TabStack(shell: shell, tab: i) | ||
.tabItem { Label(tabs[i].label, systemImage: tabs[i].symbol) } | ||
.badge(i == shell.notificationsTab ? shell.unread : 0) | ||
.tag(i) | ||
} | ||
} | ||
.tint(shell.config.color(.primary)) | ||
.environment(\.hudTheme, shell.config.theme(shell.preferredScheme ?? scheme)) | ||
.preferredColorScheme(shell.preferredScheme) | ||
.sheet(item: $shell.page) { page in | ||
SafariView(url: page.url).ignoresSafeArea() | ||
} | ||
.fullScreenCover(item: $shell.stories) { stories in | ||
StoryPager(stories: stories, shell: shell) | ||
} | ||
.sheet(item: Binding(get: { shell.sheet?.overStories == false ? shell.sheet : nil }, set: { if $0 == nil { shell.sheet = nil } })) { sheet in | ||
SheetScreen(shell: shell, sheet: sheet) | ||
} | ||
.sheet(isPresented: $shell.askingSignIn) { | ||
SignInSheet(shell: shell) | ||
} | ||
.onChange(of: phase) { _, now in | ||
if now == .active { Task { await shell.refreshUnread() } } | ||
} | ||
.task { | ||
while !Task.isCancelled { | ||
try? await Task.sleep(for: .seconds(60)) | ||
await shell.refreshUnread() | ||
} | ||
} | ||
} | ||
} | ||
| ||
/// A call shown as a sheet over what is open, as Grain's story comments: | ||
/// full height, its grabber showing, in the app's look (a sheet takes none | ||
/// from what it is over: over the stories, dark); what opens from it opens | ||
/// on the tab. | ||
struct SheetScreen: View { | ||
let shell: Shell | ||
let sheet: SheetLevel | ||
@Environment(\.colorScheme) private var scheme | ||
| ||
var body: some View { | ||
NavigationStack { | ||
LevelScreen(level: sheet.level, shell: shell, tab: sheet.tab, inSheet: true) | ||
.navigationBarTitleDisplayMode(.inline) | ||
} | ||
.environment(\.hudTheme, sheet.overStories ? shell.config.dark : shell.config.theme(scheme)) | ||
.presentationDetents([.large]) | ||
.presentationDragIndicator(.visible) | ||
} | ||
} | ||
| ||
/// One tab's navigation stack: its root, titled by the tab, and what opened over it. | ||
struct TabStack: View { | ||
let shell: Shell | ||
let tab: Int | ||
| ||
var body: some View { | ||
@Bindable var shell = shell | ||
let config = shell.config.tabs[tab] | ||
// One's own profile heads itself: no title over it, the bar inline. | ||
let titled = config.titled || shell.roots[tab] == nil | ||
NavigationStack(path: $shell.paths[tab]) { | ||
Group { | ||
if let root = shell.roots[tab] { | ||
LevelScreen(level: root, shell: shell, tab: tab) | ||
} else { | ||
ScrollView { | ||
SignInAsk(shell: shell, words: "Sign in to see your \(config.label.lowercased())") | ||
} | ||
.background(.tileSurface) | ||
} | ||
} | ||
// A wordmark (Home's "grain") in place of the label, in the display face titles take. | ||
.navigationTitle(titled ? config.wordmark ?? config.label : "") | ||
.navigationBarTitleDisplayMode(titled ? .large : .inline) | ||
.navigationDestination(for: Level.self) { level in | ||
LevelScreen(level: level, shell: shell, tab: tab) | ||
// No title past the root, as the web shell's levels have none: a back button and the view's bar. | ||
.navigationTitle("") | ||
.navigationBarTitleDisplayMode(.inline) | ||
} | ||
} | ||
} | ||
} | ||
| ||
struct SafariView: UIViewControllerRepresentable { | ||
let url: URL | ||
| ||
func makeUIViewController(context: Context) -> SFSafariViewController { | ||
SFSafariViewController(url: url) | ||
} | ||
| ||
func updateUIViewController(_ controller: SFSafariViewController, context: Context) {} | ||
} | ||
ios/Grain/LevelScreen.swiftnew+257−0
ios/Grain/Shell.swiftnew+357−0
ios/Grain/SignInSheet.swiftnew+76−0
ios/Grain/StoryPager.swiftnew+331−0
ios/GrainUITests/GrainUITests.swiftnew+761−0
761 lines changed: not loaded until asked for.
ios/GrainUITests/LocationsTests.swiftnew+118−0
ios/.gitignorenew+2−0
ios/project.ymlnew+82−0
ios/README.mdnew+65−0
next/src/app.cssnew+47−0
next/src/App.sveltenew+418−0
418 lines changed: not loaded until asked for.
next/src/apps.tsnew+32−0
next/src/main.tsnew+7−0
next/src/mcp.tsnew+88−0
next/src/oauth.tsnew+261−0
next/src/Pager.sveltenew+359−0
next/src/routes.tsnew+196−0
next/src/Sheet.sveltenew+228−0
next/src/Stack.sveltenew+536−0
536 lines changed: not loaded until asked for.
next/src/theme.tsnew+105−0
next/grain.social.jsonnew+348−0
next/index.htmlnew+13−0
next/package-lock.jsonnew+1476−0
1476 lines changed: not loaded until asked for.
next/package.jsonnew+25−0
next/svelte.config.jsnew+5−0
next/tsconfig.jsonnew+26−0
next/vite.config.tsnew+64−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/git-merge.symbolset/Contents.jsonnew+12−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/git-merge.symbolset/git-merge.svgnew+46−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/git-pull-request-closed.symbolset/Contents.jsonnew+12−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/git-pull-request-closed.symbolset/git-pull-request-closed.svgnew+46−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/git-pull-request-draft.symbolset/Contents.jsonnew+12−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/git-pull-request-draft.symbolset/git-pull-request-draft.svgnew+46−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/git-pull-request.symbolset/Contents.jsonnew+12−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/git-pull-request.symbolset/git-pull-request.svgnew+46−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/issue-closed.symbolset/Contents.jsonnew+12−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/issue-closed.symbolset/issue-closed.svgnew+49−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/issue-opened.symbolset/Contents.jsonnew+12−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/issue-opened.symbolset/issue-opened.svgnew+49−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/repo-forked.symbolset/Contents.jsonnew+12−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/repo-forked.symbolset/repo-forked.svgnew+46−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/repo.symbolset/Contents.jsonnew+12−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/repo.symbolset/repo.svgnew+46−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Assets.xcassets/Contents.jsonnew+6−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Data/Client.swiftnew+91−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Data/Compose.swiftnew+296−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Data/Interactions.swiftnew+99−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Data/JSON.swiftnew+170−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Data/Keychain.swiftnew+45−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Data/Result.swiftnew+194−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Data/SchemeChoice.swiftnew+29−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Data/SignIn.swiftnew+553−0
553 lines changed: not loaded until asked for.
vendor/hud/ios/HUDKit/Sources/HUDKit/Embed/EmbedCard.swiftnew+63−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Embed/EmbedExternal.swiftnew+130−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Embed/EmbedImages.swiftnew+168−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Embed/EmbedRules.swiftnew+47−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Embed/EmbedVideo.swiftnew+96−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Embed/QuoteCard.swiftnew+84−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ActionButton.swiftnew+387−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/CameraPicker.swiftnew+42−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ChainLayout.swiftnew+29−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ComposeFields.swiftnew+877−0
877 lines changed: not loaded until asked for.
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ComposeForm.swiftnew+332−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ComposeSheet.swiftnew+180−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/FeedContextView.swiftnew+166−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ImageBox.swiftnew+146−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/Lightbox.swiftnew+191−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/LinkLabel.swiftnew+73−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ListLayout.swiftnew+150−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/PhotoBadges.swiftnew+108−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ProfileCard.swiftnew+54−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/RowLayout.swiftnew+99−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/TextBody.swiftnew+94−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/ThreadItem.swiftnew+105−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Parts/TreeLevel.swiftnew+25−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Controls.swiftnew+59−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Flow.swiftnew+57−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Format.swiftnew+109−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Glass.swiftnew+90−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Glyph.swiftnew+21−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/NowPlaying.swiftnew+90−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Picture.swiftnew+134−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/RichText.swiftnew+48−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Space.swiftnew+21−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Surface.swiftnew+112−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Support/Typefaces.swiftnew+189−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedBar.swiftnew+117−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedBlocks.swiftnew+441−0
441 lines changed: not loaded until asked for.
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedChoice.swiftnew+128−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedCompose.swiftnew+95−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedDiff.swiftnew+220−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedEmbed.swiftnew+95−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedFaces.swiftnew+194−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedFeedContext.swiftnew+50−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedFields.swiftnew+214−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedHeader.swiftnew+20−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedList.swiftnew+114−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedMap.swiftnew+298−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedMarks.swiftnew+194−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedMedia.swiftnew+1186−0
1186 lines changed: not loaded until asked for.
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedMenu.swiftnew+166−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedMessages.swiftnew+388−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedPanes.swiftnew+155−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedProfile.swiftnew+24−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedSearch.swiftnew+69−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedSlides.swiftnew+378−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedTabs.swiftnew+98−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedThread.swiftnew+62−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/ResolvedToggle.swiftnew+85−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Tree/TreeView.swiftnew+568−0
568 lines changed: not loaded until asked for.
vendor/hud/ios/HUDKit/Sources/HUDKit/View/Context.swiftnew+287−0
vendor/hud/ios/HUDKit/Sources/HUDKit/View/ResultView.swiftnew+103−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Workspace/Model.swiftnew+263−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Workspace/Theme.swiftnew+105−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Workspace/TileNames.swiftnew+210−0
vendor/hud/ios/HUDKit/Sources/HUDKit/Workspace/Workspace.swiftnew+544−0
544 lines changed: not loaded until asked for.
vendor/hud/ios/HUDKit/Sources/HUDKit/Workspace/WorkspaceClient.swiftnew+202−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/Fixtures/ui-feed.jsonnew+1−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/Fixtures/ui-messages.jsonnew+85−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/ChoiceTests.swiftnew+29−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/ComposeTests.swiftnew+356−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/HUDKitTests.swiftnew+883−0
883 lines changed: not loaded until asked for.
vendor/hud/ios/HUDKit/Tests/HUDKitTests/LookTests.swiftnew+107−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/MapTests.swiftnew+53−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/NotificationTests.swiftnew+74−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/PhotoBadgesTests.swiftnew+24−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/PinnedFeedsTests.swiftnew+47−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/SchemeChoiceTests.swiftnew+29−0
vendor/hud/ios/HUDKit/Tests/HUDKitTests/WorkspaceTests.swiftnew+246−0
vendor/hud/ios/HUDKit/Package.swiftnew+17−0
vendor/hud/web/renderer/src/document/DocumentView.sveltenew+144−0
vendor/hud/web/renderer/src/document/LinkCard.sveltenew+95−0
vendor/hud/web/renderer/src/embed/context.tsnew+8−0
vendor/hud/web/renderer/src/embed/EmbedCard.sveltenew+99−0
vendor/hud/web/renderer/src/embed/EmbedGone.sveltenew+19−0
vendor/hud/web/renderer/src/embed/ExternalView.sveltenew+131−0
vendor/hud/web/renderer/src/embed/ImagesView.sveltenew+112−0
vendor/hud/web/renderer/src/embed/QuoteView.sveltenew+153−0
vendor/hud/web/renderer/src/embed/VideoView.sveltenew+77−0
vendor/hud/web/renderer/src/tree/compose/CardField.sveltenew+152−0
vendor/hud/web/renderer/src/tree/compose/fields.tsnew+124−0
vendor/hud/web/renderer/src/tree/compose/LangsField.sveltenew+124−0
vendor/hud/web/renderer/src/tree/compose/LineField.sveltenew+88−0
vendor/hud/web/renderer/src/tree/compose/lookup.svelte.tsnew+78−0
vendor/hud/web/renderer/src/tree/compose/photos.tsnew+214−0
vendor/hud/web/renderer/src/tree/compose/PhotosField.sveltenew+565−0
565 lines changed: not loaded until asked for.
vendor/hud/web/renderer/src/tree/compose/Pills.sveltenew+89−0
vendor/hud/web/renderer/src/tree/compose/PlaceField.sveltenew+341−0
vendor/hud/web/renderer/src/tree/compose/text.tsnew+75−0
vendor/hud/web/renderer/src/tree/compose/TextField.sveltenew+304−0
vendor/hud/web/renderer/src/tree/Action.sveltenew+323−0
vendor/hud/web/renderer/src/tree/ActionButton.sveltenew+195−0
vendor/hud/web/renderer/src/tree/Badge.sveltenew+11−0
vendor/hud/web/renderer/src/tree/Bar.sveltenew+72−0
vendor/hud/web/renderer/src/tree/Barred.sveltenew+11−0
vendor/hud/web/renderer/src/tree/Blocks.sveltenew+156−0
vendor/hud/web/renderer/src/tree/Chain.sveltenew+25−0
vendor/hud/web/renderer/src/tree/Choice.sveltenew+170−0
vendor/hud/web/renderer/src/tree/Compose.sveltenew+241−0
vendor/hud/web/renderer/src/tree/Composer.sveltenew+312−0
vendor/hud/web/renderer/src/tree/ContentWarning.sveltenew+34−0
vendor/hud/web/renderer/src/tree/context.tsnew+136−0
vendor/hud/web/renderer/src/tree/Covers.sveltenew+307−0
vendor/hud/web/renderer/src/tree/Diff.sveltenew+23−0
vendor/hud/web/renderer/src/tree/Document.sveltenew+22−0
vendor/hud/web/renderer/src/tree/Embed.sveltenew+87−0
vendor/hud/web/renderer/src/tree/Error.sveltenew+12−0
vendor/hud/web/renderer/src/tree/Faces.sveltenew+264−0
vendor/hud/web/renderer/src/tree/FeedContext.sveltenew+44−0
vendor/hud/web/renderer/src/tree/Field.sveltenew+55−0
vendor/hud/web/renderer/src/tree/Fields.sveltenew+34−0
vendor/hud/web/renderer/src/tree/Gallery.sveltenew+16−0
vendor/hud/web/renderer/src/tree/Header.sveltenew+24−0
vendor/hud/web/renderer/src/tree/Icon.sveltenew+131−0
vendor/hud/web/renderer/src/tree/Image.sveltenew+179−0
vendor/hud/web/renderer/src/tree/Json.sveltenew+12−0
vendor/hud/web/renderer/src/tree/Label.sveltenew+12−0
vendor/hud/web/renderer/src/tree/Link.sveltenew+234−0
vendor/hud/web/renderer/src/tree/List.sveltenew+351−0
vendor/hud/web/renderer/src/tree/Map.sveltenew+204−0
vendor/hud/web/renderer/src/tree/Menu.sveltenew+126−0
vendor/hud/web/renderer/src/tree/Messages.sveltenew+428−0
428 lines changed: not loaded until asked for.
vendor/hud/web/renderer/src/tree/Node.sveltenew+106−0
vendor/hud/web/renderer/src/tree/Panes.sveltenew+180−0
vendor/hud/web/renderer/src/tree/Player.sveltenew+27−0
vendor/hud/web/renderer/src/tree/Profile.sveltenew+28−0
vendor/hud/web/renderer/src/tree/RichText.sveltenew+98−0
vendor/hud/web/renderer/src/tree/Row.sveltenew+146−0
vendor/hud/web/renderer/src/tree/Search.sveltenew+79−0
vendor/hud/web/renderer/src/tree/Slides.sveltenew+297−0
vendor/hud/web/renderer/src/tree/Stack.sveltenew+49−0
vendor/hud/web/renderer/src/tree/Stat.sveltenew+12−0
vendor/hud/web/renderer/src/tree/State.sveltenew+13−0
vendor/hud/web/renderer/src/tree/Tabs.sveltenew+110−0
vendor/hud/web/renderer/src/tree/Text.sveltenew+85−0
vendor/hud/web/renderer/src/tree/Time.sveltenew+26−0
vendor/hud/web/renderer/src/tree/Toggle.sveltenew+133−0
vendor/hud/web/renderer/src/tree/Tree.sveltenew+169−0
vendor/hud/web/renderer/src/tree/TreeList.sveltenew+32−0
vendor/hud/web/renderer/src/tree/types.tsnew+470−0
470 lines changed: not loaded until asked for.
vendor/hud/web/renderer/src/view/BadgeView.sveltenew+25−0
vendor/hud/web/renderer/src/view/DiffView.sveltenew+263−0
vendor/hud/web/renderer/src/view/FeedContextView.sveltenew+197−0
vendor/hud/web/renderer/src/view/HeaderView.sveltenew+103−0
vendor/hud/web/renderer/src/view/LabelView.sveltenew+25−0
vendor/hud/web/renderer/src/view/ProfileView.sveltenew+113−0
vendor/hud/web/renderer/src/view/remember.svelte.tsnew+27−0
vendor/hud/web/renderer/src/view/seen.tsnew+58−0
vendor/hud/web/renderer/src/view/StateView.sveltenew+116−0
vendor/hud/web/renderer/src/view/ThreadChain.sveltenew+60−0
vendor/hud/web/renderer/src/view/ThreadItem.sveltenew+101−0
vendor/hud/web/renderer/src/view/ThreadTree.sveltenew+60−0
vendor/hud/web/renderer/src/view/ViewError.sveltenew+29−0
vendor/hud/web/renderer/src/view/window.tsnew+232−0
vendor/hud/web/renderer/src/AltBadge.sveltenew+51−0
vendor/hud/web/renderer/src/ArrayValue.sveltenew+85−0
vendor/hud/web/renderer/src/ClampedText.sveltenew+82−0
vendor/hud/web/renderer/src/ContentWarning.sveltenew+53−0
vendor/hud/web/renderer/src/CoverCard.sveltenew+170−0
vendor/hud/web/renderer/src/Covers.sveltenew+107−0
vendor/hud/web/renderer/src/CoverTile.sveltenew+147−0
vendor/hud/web/renderer/src/ErrorMessage.sveltenew+58−0
vendor/hud/web/renderer/src/FacetText.sveltenew+20−0
vendor/hud/web/renderer/src/FieldLeaf.sveltenew+106−0
vendor/hud/web/renderer/src/FieldRow.sveltenew+65−0
vendor/hud/web/renderer/src/format.tsnew+79−0
vendor/hud/web/renderer/src/Gallery.sveltenew+363−0
vendor/hud/web/renderer/src/Glyph.sveltenew+18−0
vendor/hud/web/renderer/src/GroupValue.sveltenew+38−0
vendor/hud/web/renderer/src/icons.tsnew+76−0
vendor/hud/web/renderer/src/index.tsnew+16−0
vendor/hud/web/renderer/src/InfoBadge.sveltenew+70−0
vendor/hud/web/renderer/src/JsonTree.sveltenew+147−0
vendor/hud/web/renderer/src/lexicon.tsnew+38−0
vendor/hud/web/renderer/src/Lightbox.sveltenew+248−0
vendor/hud/web/renderer/src/LinkButton.sveltenew+47−0
vendor/hud/web/renderer/src/Loading.sveltenew+44−0
vendor/hud/web/renderer/src/LoadMore.sveltenew+57−0
vendor/hud/web/renderer/src/MarkdownProse.sveltenew+178−0
vendor/hud/web/renderer/src/Marked.sveltenew+57−0
vendor/hud/web/renderer/src/PickMark.sveltenew+46−0
vendor/hud/web/renderer/src/Picture.sveltenew+83−0
vendor/hud/web/renderer/src/player-host.svelte.tsnew+214−0
vendor/hud/web/renderer/src/Player.sveltenew+471−0
471 lines changed: not loaded until asked for.