diff --git a/config/in.toml b/config/in.toml index 8fafe9b..a3a0585 100644 --- a/config/in.toml +++ b/config/in.toml @@ -1,7 +1,7 @@ # Where the one database file lives. One process holds it. database = "in.db" # The address the server listens on. Environment variables are ignored — -# this is the only thing that decides where In binds. +# this is the only thing that decides where in binds. listen = "127.0.0.1:7655" # How long a live-update connection is held before the browser is asked to # reconnect, in seconds. The reconnect is what re-checks the session, so a @@ -12,7 +12,7 @@ live_seconds = 300 purge_after_days = 30 # The quota a newly provisioned account starts on, in bytes. 10 GiB. default_quota_bytes = 10737418240 -# The base of the share links In hands out. Set it when In answers on a +# The base of the share links in hands out. Set it when in answers on a # different address than it binds — a domain, or a proxy in front. Left # empty, links follow the listen address. base_url = "" @@ -21,8 +21,8 @@ base_url = "" # and the boot completes this file with the value it resolved. # The suite the switcher's wordmarks link to is im's to keep — im's admin -# panel owns the list, and In fetches it from im and keeps a mirror. On -# every beat In also announces itself to im under the key "in" at the +# panel owns the list, and in fetches it from im and keeps a mirror. On +# every beat in also announces itself to im under the key "in" at the # address `base_url` gives, so the suite lists it without anyone typing it. # This file no longer names the suite; a `[[services]]` block left behind by an # older file is reported as ignored and then passed over. @@ -32,9 +32,9 @@ storage = "/home/tahinli/Documents/Code/Rust/in/storage" [oidc] # The provider that signs people in. Required: no default is guessed. issuer = "http://127.0.0.1:7650" -# The client id In presents to the provider. Required. +# The client id in presents to the provider. Required. client_id = "in-dev-capture" -# The client secret In presents to the provider. Required. Filled in only on +# The client secret in presents to the provider. Required. Filled in only on # the machine that runs the server — the committed copy stays empty. client_secret = "in-dev-secret" # Where the provider sends the browser back after sign-in. Not written here: diff --git a/crates/in-core/Cargo.toml b/crates/in-core/Cargo.toml index 12de1ed..d27e4c3 100644 --- a/crates/in-core/Cargo.toml +++ b/crates/in-core/Cargo.toml @@ -4,7 +4,7 @@ version.workspace = true edition.workspace = true license.workspace = true repository.workspace = true -description = "Domain model and storage for In" +description = "Domain model and storage for in" [features] # The domain vocabulary (record shapes) compiles anywhere, including the wasm diff --git a/crates/in-core/migrations/0001_init.sql b/crates/in-core/migrations/0001_init.sql index 27eb0e3..9499a9e 100644 --- a/crates/in-core/migrations/0001_init.sql +++ b/crates/in-core/migrations/0001_init.sql @@ -1,4 +1,4 @@ --- In's schema, whole, in one file. +-- in's schema, whole, in one file. -- -- One plain SQL file, applied at boot to an empty database: Turso has no -- migration runner of its own, and keeping the schema as SQL is what makes diff --git a/crates/in-core/src/config.rs b/crates/in-core/src/config.rs index 21e78f6..90b1ce2 100644 --- a/crates/in-core/src/config.rs +++ b/crates/in-core/src/config.rs @@ -1,9 +1,9 @@ -//! Everything In reads from `config/in.toml`, in one place. +//! Everything in reads from `config/in.toml`, in one place. //! //! Nothing here has a silent default once the file exists. A key that is //! missing, empty or unusable stops the boot and says which key and which //! file, because the alternative is worse than not starting: a wrong -//! `database` does not mean "no data", it means a second In quietly +//! `database` does not mean "no data", it means a second in quietly //! writing a different file while everyone believes they are looking at the //! same drive — and Turso is single-writer, so the two are not even //! reconcilable afterwards. @@ -49,7 +49,7 @@ const FILE_NAME: &str = "config/in.toml"; const DEVELOPMENT_DEFAULTS: &str = r#"# Where the one database file lives. One process holds it. database = "in.db" # The address the server listens on. Environment variables are ignored — -# this is the only thing that decides where In binds. +# this is the only thing that decides where in binds. listen = "127.0.0.1:7655" # How long a live-update connection is held before the browser is asked to # reconnect, in seconds. The reconnect is what re-checks the session, so a @@ -60,7 +60,7 @@ live_seconds = 300 purge_after_days = 30 # The quota a newly provisioned account starts on, in bytes. 10 GiB. default_quota_bytes = 10737418240 -# The base of the share links In hands out. Set it when In answers on a +# The base of the share links in hands out. Set it when in answers on a # different address than it binds — a domain, or a proxy in front. Left # empty, links follow the listen address. base_url = "" @@ -70,9 +70,9 @@ base_url = "" [oidc] # The provider that signs people in. Required: no default is guessed. issuer = "" -# The client id In presents to the provider. Required. +# The client id in presents to the provider. Required. client_id = "" -# The client secret In presents to the provider. Required. The file holds a +# The client secret in presents to the provider. Required. The file holds a # live credential once this is filled in, so it is created mode 0600. client_secret = "" # Where the provider sends the browser back after sign-in. Not written here: @@ -116,7 +116,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[ "listen", concat!( "# The address the server listens on. Environment variables are ignored —\n", - "# this is the only thing that decides where In binds.\n", + "# this is the only thing that decides where in binds.\n", "listen = \"127.0.0.1:7655\"\n" ), ), @@ -147,7 +147,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[ ( "base_url", concat!( - "# The base of the share links In hands out. Set it when In answers on a\n", + "# The base of the share links in hands out. Set it when in answers on a\n", "# different address than it binds — a domain, or a proxy in front. Left\n", "# empty, links follow the listen address.\n", "base_url = \"\"\n" @@ -219,14 +219,14 @@ struct Toml { other: std::collections::BTreeMap, } -/// The OIDC provider In trusts, and how In presents itself to it. +/// The OIDC provider in trusts, and how in presents itself to it. #[derive(Clone, Debug, PartialEq, Eq)] pub struct OidcConfig { /// The provider's issuer URL. Sign-ins from anywhere else are refused. pub issuer: String, - /// The client id In presents to the provider. + /// The client id in presents to the provider. pub client_id: String, - /// The client secret In presents to the provider. Never printed. + /// The client secret in presents to the provider. Never printed. pub client_secret: String, /// Where the provider sends the browser after sign-in. Defaults from /// `listen` when the file is silent about it. @@ -278,7 +278,7 @@ pub struct Config { /// banners that mint them — when the file sets one. `None` follows the /// address bound. pub base_url: Option, - /// The OIDC provider In trusts. + /// The OIDC provider in trusts. pub oidc: OidcConfig, /// Keys the file sets that nothing here reads, in the order the file /// gives them. Named at startup so a typo is visible. @@ -493,7 +493,7 @@ impl Config { /// A bind that names no interface — `0.0.0.0`, `::` — answers everywhere /// and is reachable at none of it by name, so the loopback stands in: a /// link somebody on the box can click beats a link nobody can. Whoever - /// puts In behind a proxy sets the real address where it is needed — + /// puts in behind a proxy sets the real address where it is needed — /// `base_url` for the public links, `redirect_uri` in `[oidc]` for /// sign-ins — which is the only thing this defers to. pub fn listen_url(&self) -> String { @@ -570,7 +570,7 @@ impl Config { } if value.ends_with('/') { return Err(format!( - "{value:?} ends in a slash — set the bare origin; In joins the /s/ path itself" + "{value:?} ends in a slash — set the bare origin; in joins the /s/ path itself" )); } Ok(()) @@ -839,7 +839,7 @@ redirect_uri = "https://files.example.com/auth/callback" ); } - /// The links In hands out follow `listen` unless the file says a public + /// The links in hands out follow `listen` unless the file says a public /// base — the mirror of `redirect_uri`, which is why the tests read the /// same way. #[test] diff --git a/crates/in-core/src/lib.rs b/crates/in-core/src/lib.rs index 771c786..1d2e783 100644 --- a/crates/in-core/src/lib.rs +++ b/crates/in-core/src/lib.rs @@ -1,4 +1,4 @@ -//! Domain model and storage for In. +//! Domain model and storage for in. //! //! The vocabulary — the account, folder, file, share and upload shapes — //! compiles everywhere, so the UI and the server speak the same types. The diff --git a/crates/in-core/src/store/reconcile.rs b/crates/in-core/src/store/reconcile.rs index bebc38a..c6be40b 100644 --- a/crates/in-core/src/store/reconcile.rs +++ b/crates/in-core/src/store/reconcile.rs @@ -5,7 +5,7 @@ //! column map, the copy is verified, and only then the files are swapped. The //! original file is kept as a timestamped backup and is never deleted. //! -//! Binary is the one thing that needs no extraction here: In never kept +//! Binary is the one thing that needs no extraction here: in never kept //! bytes in its tables — files, thumbnails and chunks live under the storage //! directory from the first schema, keyed by row id — so the copy moves rows //! only, and the tree beside the database is untouched throughout. @@ -29,7 +29,7 @@ pub struct ReconcileOptions { /// - A differing database is backed up, rebuilt, verified and swapped into /// place. /// - `storage` is accepted for the call shape the boot path shares with -/// databases that once kept binary in their tables; In never did, so the +/// databases that once kept binary in their tables; in never did, so the /// tree beside the database is left exactly as it was. /// - A rebuild that fails verification deletes the `.rebuilt` file and leaves /// the original untouched. diff --git a/crates/in-core/tests/store.rs b/crates/in-core/tests/store.rs index 800ecf8..80fad34 100644 --- a/crates/in-core/tests/store.rs +++ b/crates/in-core/tests/store.rs @@ -840,7 +840,7 @@ async fn a_password_link_round_trips_its_hash() { } #[tokio::test] async fn a_pre_password_link_reconciles_to_no_password_and_a_new_one_survives_reopen() { - // A database built from 0001+0004 — the shape In ran with before links + // A database built from 0001+0004 — the shape in ran with before links // could carry passwords — has a share_link table with no // `password_hash` column. Opening it with the current code reconciles // it onto the declared schema: the link row is carried across and wears @@ -1627,7 +1627,7 @@ async fn preferences_round_trip_and_refuse_what_is_not_offered() { #[tokio::test] async fn a_second_migration_database_gains_the_preference_columns_on_open() { - // A database built from 0001+0002 — the shape In ran with an interface + // A database built from 0001+0002 — the shape in ran with an interface // picker and no theme or language — carries no `theme` or `language` // column. Opening it with the current code reconciles it onto the // declared schema: its interface choice is carried across, and the two diff --git a/crates/in-web/Cargo.toml b/crates/in-web/Cargo.toml index e92336f..c6a6e7f 100644 --- a/crates/in-web/Cargo.toml +++ b/crates/in-web/Cargo.toml @@ -4,7 +4,7 @@ version.workspace = true edition.workspace = true license.workspace = true repository.workspace = true -description = "In web app: topcoat UI, routes and the server" +description = "in web app: topcoat UI, routes and the server" [dependencies] topcoat = { version = "0.6.2", default-features = false, features = [ diff --git a/crates/in-web/src/files.rs b/crates/in-web/src/files.rs index dcf53b3..dd3ec19 100644 --- a/crates/in-web/src/files.rs +++ b/crates/in-web/src/files.rs @@ -90,7 +90,7 @@ fn renders_inline(mime: &str) -> bool { /// Whether `inline` disposition is safe for this mime: an uploaded HTML or /// SVG file stays `attachment` either way, so it is offered to save rather -/// than run on In's origin. +/// than run on in's origin. fn inline_ok(mime: &str) -> bool { renders_inline(mime) && mime != "image/svg+xml" && mime != "text/html" } diff --git a/crates/in-web/src/i18n.rs b/crates/in-web/src/i18n.rs index a395b4c..899d3cc 100644 --- a/crates/in-web/src/i18n.rs +++ b/crates/in-web/src/i18n.rs @@ -259,7 +259,7 @@ pub fn t(lang: Lang, key: Key) -> &'static str { BackToDrive => "Back to the drive", BackToShared => "Back to shared", BackToTrash => "Back to trash", - WelcomeTitle => "In: your files", + WelcomeTitle => "in: your files", WelcomeBlurb => "Your folders and files, shared on your terms.", SignIn => "Sign in", NavDrive => "Drive", @@ -419,7 +419,7 @@ pub fn t(lang: Lang, key: Key) -> &'static str { BackToDrive => "Sürücüye dön", BackToShared => "Paylaşılanlara dön", BackToTrash => "Çöpe dön", - WelcomeTitle => "In: dosyaların", + WelcomeTitle => "in: dosyaların", WelcomeBlurb => "Klasörlerin ve dosyaların, senin kurallarınla.", SignIn => "Oturum aç", NavDrive => "Sürücü", diff --git a/crates/in-web/src/layout.rs b/crates/in-web/src/layout.rs index fc29f79..2909600 100644 --- a/crates/in-web/src/layout.rs +++ b/crates/in-web/src/layout.rs @@ -23,7 +23,7 @@ use in_core::store::User; use crate::i18n::{Key, Lang, t}; use crate::server::{app, current_user}; -/// The In monogram again, as the tab icon: the same drawing as `mark`, +/// The in monogram again, as the tab icon: the same drawing as `mark`, /// inlined because it must carry its own colours — a data URI has no page to /// inherit `currentColor` or the accent token from, so the two themes are /// spelled out in a media query inside the SVG. @@ -37,7 +37,7 @@ const FAVICON: &str = "data:image/svg+xml,\ "; -/// The In monogram — a dotted `i` beside a stroked `n`. It takes +/// The in monogram — a dotted `i` beside a stroked `n`. It takes /// `currentColor` for its strokes and the accent for its tittle, so one /// drawing serves both skins and both themes. /// @@ -49,7 +49,7 @@ const FAVICON: &str = "data:image/svg+xml,\ pub(crate) async fn mark(cx: &Cx) -> Result { view! { cx => - + "In" + "in" } } @@ -236,7 +236,7 @@ async fn family_of(cx: &Cx) -> Vec { } } -/// The monogram with the family behind it: the In mark as ever, and the +/// The monogram with the family behind it: the in mark as ever, and the /// sibling services' wordmarks in a flyout that opens under it on hover /// and on keyboard focus — the mark is an ``, so it is already /// focusable and `:focus-within` needs nothing added. Middots between, @@ -1102,7 +1102,7 @@ pub(crate) async fn document_shell(cx: &Cx, slot: Result) -> Result { rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,wght@0,400;0,600;1,400;1,600&display=swap" > - "In" + "in" topcoat::runtime::script() diff --git a/crates/in-web/src/main.rs b/crates/in-web/src/main.rs index 102a71f..847cf50 100644 --- a/crates/in-web/src/main.rs +++ b/crates/in-web/src/main.rs @@ -60,7 +60,7 @@ async fn main() { // config/in.toml is read here, before anything is opened, and written with // development defaults if it is not there yet. A broken key stops the // boot with its name in the message: the failure this prevents is not an - // empty database, it is a second In writing a different file while + // empty database, it is a second in writing a different file while // everyone believes they share a drive. let config = match Config::load() { Ok(config) => config, diff --git a/crates/in-web/src/server.rs b/crates/in-web/src/server.rs index d9efe5a..d317f29 100644 --- a/crates/in-web/src/server.rs +++ b/crates/in-web/src/server.rs @@ -80,7 +80,7 @@ pub async fn share_link_url(cx: &Cx, link: &in_core::store::ShareLink) -> Option } /// A stable-enough label for the client, for rate limiting. A proxy header is -/// only trusted because In is meant to sit behind one; the address bucket is +/// only trusted because in is meant to sit behind one; the address bucket is /// the limit that actually protects the login round-trip either way. /// /// topcoat 0.6.2 exposes no peer address; x-forwarded-for or nothing. @@ -445,7 +445,7 @@ pub fn back_to(cx: &Cx, nowhere: &str) -> String { /// function handler answers with a redirect back to the page it came from, and /// the value — the whole refusal — sits in a body nobody will ever look at. /// The click then looks like nothing happening, which is the worst answer -/// In can give. +/// in can give. /// /// So the refusal is copied onto the `Location`, as `?refusal=&on=`, /// and the page renders it from the query. This is one place rather than a @@ -523,7 +523,7 @@ fn carrying(location: &str, code: &str, called: &str) -> Option { } // The Location we are rewriting came from the form post's Referer, and on a // cross-origin post the Referer is whatever the other site is. Sending the - // browser back there would make In an open redirect, so the address is + // browser back there would make in an open redirect, so the address is // rebuilt from its path and query alone and anything that is not a plain // absolute path is answered with the drive. let here = same_origin(location); diff --git a/style/_instrument.scss b/style/_instrument.scss index a50768e..fb2c9a7 100644 --- a/style/_instrument.scss +++ b/style/_instrument.scss @@ -16,7 +16,7 @@ height: 44px; } - // In's drive filterbar carries a full create-folder form (iz's only holds + // in's drive filterbar carries a full create-folder form (iz's only holds // chips), so the skin's fixed 40px clips it: 40px is the floor, not the // ceiling. .filterbar { diff --git a/style/main.scss b/style/main.scss index 3ea88e0..bf254fc 100644 --- a/style/main.scss +++ b/style/main.scss @@ -1940,7 +1940,7 @@ img.avatar { overflow-y: auto; } -// In's rows pair a dropdown with its submit (move), so the form is a row of +// in's rows pair a dropdown with its submit (move), so the form is a row of // controls, not a block — iz's pop-rows only ever hold one. .pop-row-form { display: flex; align-items: center; gap: 8px; }