the name is lowercase everywhere: In becomes in — the wordmark, the monogram's label, the tab title, the welcome title in both languages, the package descriptions, the config file and its template, and every comment that names the app; the English preposition in the licence and the workflow is the only capital In left
Browse files at this commit465a24b4c123c47ff63492aa9809b605094d33f1Parent: 512975715 changed files +44 -44
- config/in.toml +6 -6
- crates/in-core/Cargo.toml +1 -1
- crates/in-core/migrations/0001_init.sql +1 -1
- crates/in-core/src/config.rs +15 -15
- crates/in-core/src/lib.rs +1 -1
- crates/in-core/src/store/reconcile.rs +2 -2
- crates/in-core/tests/store.rs +2 -2
- crates/in-web/Cargo.toml +1 -1
- crates/in-web/src/files.rs +1 -1
- crates/in-web/src/i18n.rs +2 -2
- crates/in-web/src/layout.rs +6 -6
- crates/in-web/src/main.rs +1 -1
- crates/in-web/src/server.rs +3 -3
- style/_instrument.scss +1 -1
- style/main.scss +1 -1
config/in.tomlmodified+6 -6
| @@ -1,7 +1,7 @@ | |||
| 1 | # Where the one database file lives. One process holds it. | 1 | # Where the one database file lives. One process holds it. |
| 2 | database = "in.db" | 2 | database = "in.db" |
| 3 | # The address the server listens on. Environment variables are ignored — | 3 | # The address the server listens on. Environment variables are ignored — |
| 4 | -# this is the only thing that decides where In binds. | 4 | +# this is the only thing that decides where in binds. |
| 5 | listen = "127.0.0.1:7655" | 5 | listen = "127.0.0.1:7655" |
| 6 | # How long a live-update connection is held before the browser is asked to | 6 | # How long a live-update connection is held before the browser is asked to |
| 7 | # reconnect, in seconds. The reconnect is what re-checks the session, so a | 7 | # reconnect, in seconds. The reconnect is what re-checks the session, so a |
| @@ -12,7 +12,7 @@ live_seconds = 300 | |||
| 12 | purge_after_days = 30 | 12 | purge_after_days = 30 |
| 13 | # The quota a newly provisioned account starts on, in bytes. 10 GiB. | 13 | # The quota a newly provisioned account starts on, in bytes. 10 GiB. |
| 14 | default_quota_bytes = 10737418240 | 14 | default_quota_bytes = 10737418240 |
| 15 | -# The base of the share links In hands out. Set it when In answers on a | 15 | +# The base of the share links in hands out. Set it when in answers on a |
| 16 | # different address than it binds — a domain, or a proxy in front. Left | 16 | # different address than it binds — a domain, or a proxy in front. Left |
| 17 | # empty, links follow the listen address. | 17 | # empty, links follow the listen address. |
| 18 | base_url = "" | 18 | base_url = "" |
| @@ -21,8 +21,8 @@ base_url = "" | |||
| 21 | # and the boot completes this file with the value it resolved. | 21 | # and the boot completes this file with the value it resolved. |
| 22 | 22 | ||
| 23 | # The suite the switcher's wordmarks link to is im's to keep — im's admin | 23 | # The suite the switcher's wordmarks link to is im's to keep — im's admin |
| 24 | -# panel owns the list, and In fetches it from im and keeps a mirror. On | 24 | +# panel owns the list, and in fetches it from im and keeps a mirror. On |
| 25 | -# every beat In also announces itself to im under the key "in" at the | 25 | +# every beat in also announces itself to im under the key "in" at the |
| 26 | # address `base_url` gives, so the suite lists it without anyone typing it. | 26 | # address `base_url` gives, so the suite lists it without anyone typing it. |
| 27 | # This file no longer names the suite; a `[[services]]` block left behind by an | 27 | # This file no longer names the suite; a `[[services]]` block left behind by an |
| 28 | # older file is reported as ignored and then passed over. | 28 | # older file is reported as ignored and then passed over. |
| @@ -32,9 +32,9 @@ storage = "/home/tahinli/Documents/Code/Rust/in/storage" | |||
| 32 | [oidc] | 32 | [oidc] |
| 33 | # The provider that signs people in. Required: no default is guessed. | 33 | # The provider that signs people in. Required: no default is guessed. |
| 34 | issuer = "http://127.0.0.1:7650" | 34 | issuer = "http://127.0.0.1:7650" |
| 35 | -# The client id In presents to the provider. Required. | 35 | +# The client id in presents to the provider. Required. |
| 36 | client_id = "in-dev-capture" | 36 | client_id = "in-dev-capture" |
| 37 | -# The client secret In presents to the provider. Required. Filled in only on | 37 | +# The client secret in presents to the provider. Required. Filled in only on |
| 38 | # the machine that runs the server — the committed copy stays empty. | 38 | # the machine that runs the server — the committed copy stays empty. |
| 39 | client_secret = "in-dev-secret" | 39 | client_secret = "in-dev-secret" |
| 40 | # Where the provider sends the browser back after sign-in. Not written here: | 40 | # Where the provider sends the browser back after sign-in. Not written here: |
crates/in-core/Cargo.tomlmodified+1 -1
| @@ -4,7 +4,7 @@ version.workspace = true | |||
| 4 | edition.workspace = true | 4 | edition.workspace = true |
| 5 | license.workspace = true | 5 | license.workspace = true |
| 6 | repository.workspace = true | 6 | repository.workspace = true |
| 7 | -description = "Domain model and storage for In" | 7 | +description = "Domain model and storage for in" |
| 8 | 8 | ||
| 9 | [features] | 9 | [features] |
| 10 | # The domain vocabulary (record shapes) compiles anywhere, including the wasm | 10 | # The domain vocabulary (record shapes) compiles anywhere, including the wasm |
crates/in-core/migrations/0001_init.sqlmodified+1 -1
| @@ -1,4 +1,4 @@ | |||
| 1 | --- In's schema, whole, in one file. | 1 | +-- in's schema, whole, in one file. |
| 2 | -- | 2 | -- |
| 3 | -- One plain SQL file, applied at boot to an empty database: Turso has no | 3 | -- One plain SQL file, applied at boot to an empty database: Turso has no |
| 4 | -- migration runner of its own, and keeping the schema as SQL is what makes | 4 | -- migration runner of its own, and keeping the schema as SQL is what makes |
crates/in-core/src/config.rsmodified+15 -15
| @@ -1,9 +1,9 @@ | |||
| 1 | -//! Everything In reads from `config/in.toml`, in one place. | 1 | +//! Everything in reads from `config/in.toml`, in one place. |
| 2 | //! | 2 | //! |
| 3 | //! Nothing here has a silent default once the file exists. A key that is | 3 | //! Nothing here has a silent default once the file exists. A key that is |
| 4 | //! missing, empty or unusable stops the boot and says which key and which | 4 | //! missing, empty or unusable stops the boot and says which key and which |
| 5 | //! file, because the alternative is worse than not starting: a wrong | 5 | //! file, because the alternative is worse than not starting: a wrong |
| 6 | -//! `database` does not mean "no data", it means a second In quietly | 6 | +//! `database` does not mean "no data", it means a second in quietly |
| 7 | //! writing a different file while everyone believes they are looking at the | 7 | //! writing a different file while everyone believes they are looking at the |
| 8 | //! same drive — and Turso is single-writer, so the two are not even | 8 | //! same drive — and Turso is single-writer, so the two are not even |
| 9 | //! reconcilable afterwards. | 9 | //! reconcilable afterwards. |
| @@ -49,7 +49,7 @@ const FILE_NAME: &str = "config/in.toml"; | |||
| 49 | const DEVELOPMENT_DEFAULTS: &str = r#"# Where the one database file lives. One process holds it. | 49 | const DEVELOPMENT_DEFAULTS: &str = r#"# Where the one database file lives. One process holds it. |
| 50 | database = "in.db" | 50 | database = "in.db" |
| 51 | # The address the server listens on. Environment variables are ignored — | 51 | # The address the server listens on. Environment variables are ignored — |
| 52 | -# this is the only thing that decides where In binds. | 52 | +# this is the only thing that decides where in binds. |
| 53 | listen = "127.0.0.1:7655" | 53 | listen = "127.0.0.1:7655" |
| 54 | # How long a live-update connection is held before the browser is asked to | 54 | # How long a live-update connection is held before the browser is asked to |
| 55 | # reconnect, in seconds. The reconnect is what re-checks the session, so a | 55 | # reconnect, in seconds. The reconnect is what re-checks the session, so a |
| @@ -60,7 +60,7 @@ live_seconds = 300 | |||
| 60 | purge_after_days = 30 | 60 | purge_after_days = 30 |
| 61 | # The quota a newly provisioned account starts on, in bytes. 10 GiB. | 61 | # The quota a newly provisioned account starts on, in bytes. 10 GiB. |
| 62 | default_quota_bytes = 10737418240 | 62 | default_quota_bytes = 10737418240 |
| 63 | -# The base of the share links In hands out. Set it when In answers on a | 63 | +# The base of the share links in hands out. Set it when in answers on a |
| 64 | # different address than it binds — a domain, or a proxy in front. Left | 64 | # different address than it binds — a domain, or a proxy in front. Left |
| 65 | # empty, links follow the listen address. | 65 | # empty, links follow the listen address. |
| 66 | base_url = "" | 66 | base_url = "" |
| @@ -70,9 +70,9 @@ base_url = "" | |||
| 70 | [oidc] | 70 | [oidc] |
| 71 | # The provider that signs people in. Required: no default is guessed. | 71 | # The provider that signs people in. Required: no default is guessed. |
| 72 | issuer = "" | 72 | issuer = "" |
| 73 | -# The client id In presents to the provider. Required. | 73 | +# The client id in presents to the provider. Required. |
| 74 | client_id = "" | 74 | client_id = "" |
| 75 | -# The client secret In presents to the provider. Required. The file holds a | 75 | +# The client secret in presents to the provider. Required. The file holds a |
| 76 | # live credential once this is filled in, so it is created mode 0600. | 76 | # live credential once this is filled in, so it is created mode 0600. |
| 77 | client_secret = "" | 77 | client_secret = "" |
| 78 | # Where the provider sends the browser back after sign-in. Not written here: | 78 | # Where the provider sends the browser back after sign-in. Not written here: |
| @@ -116,7 +116,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[ | |||
| 116 | "listen", | 116 | "listen", |
| 117 | concat!( | 117 | concat!( |
| 118 | "# The address the server listens on. Environment variables are ignored —\n", | 118 | "# The address the server listens on. Environment variables are ignored —\n", |
| 119 | - "# this is the only thing that decides where In binds.\n", | 119 | + "# this is the only thing that decides where in binds.\n", |
| 120 | "listen = \"127.0.0.1:7655\"\n" | 120 | "listen = \"127.0.0.1:7655\"\n" |
| 121 | ), | 121 | ), |
| 122 | ), | 122 | ), |
| @@ -147,7 +147,7 @@ const OPTIONAL_KEYS: &[(&str, &str)] = &[ | |||
| 147 | ( | 147 | ( |
| 148 | "base_url", | 148 | "base_url", |
| 149 | concat!( | 149 | concat!( |
| 150 | - "# The base of the share links In hands out. Set it when In answers on a\n", | 150 | + "# The base of the share links in hands out. Set it when in answers on a\n", |
| 151 | "# different address than it binds — a domain, or a proxy in front. Left\n", | 151 | "# different address than it binds — a domain, or a proxy in front. Left\n", |
| 152 | "# empty, links follow the listen address.\n", | 152 | "# empty, links follow the listen address.\n", |
| 153 | "base_url = \"\"\n" | 153 | "base_url = \"\"\n" |
| @@ -219,14 +219,14 @@ struct Toml { | |||
| 219 | other: std::collections::BTreeMap<String, toml::Value>, | 219 | other: std::collections::BTreeMap<String, toml::Value>, |
| 220 | } | 220 | } |
| 221 | 221 | ||
| 222 | -/// The OIDC provider In trusts, and how In presents itself to it. | 222 | +/// The OIDC provider in trusts, and how in presents itself to it. |
| 223 | #[derive(Clone, Debug, PartialEq, Eq)] | 223 | #[derive(Clone, Debug, PartialEq, Eq)] |
| 224 | pub struct OidcConfig { | 224 | pub struct OidcConfig { |
| 225 | /// The provider's issuer URL. Sign-ins from anywhere else are refused. | 225 | /// The provider's issuer URL. Sign-ins from anywhere else are refused. |
| 226 | pub issuer: String, | 226 | pub issuer: String, |
| 227 | - /// The client id In presents to the provider. | 227 | + /// The client id in presents to the provider. |
| 228 | pub client_id: String, | 228 | pub client_id: String, |
| 229 | - /// The client secret In presents to the provider. Never printed. | 229 | + /// The client secret in presents to the provider. Never printed. |
| 230 | pub client_secret: String, | 230 | pub client_secret: String, |
| 231 | /// Where the provider sends the browser after sign-in. Defaults from | 231 | /// Where the provider sends the browser after sign-in. Defaults from |
| 232 | /// `listen` when the file is silent about it. | 232 | /// `listen` when the file is silent about it. |
| @@ -278,7 +278,7 @@ pub struct Config { | |||
| 278 | /// banners that mint them — when the file sets one. `None` follows the | 278 | /// banners that mint them — when the file sets one. `None` follows the |
| 279 | /// address bound. | 279 | /// address bound. |
| 280 | pub base_url: Option<String>, | 280 | pub base_url: Option<String>, |
| 281 | - /// The OIDC provider In trusts. | 281 | + /// The OIDC provider in trusts. |
| 282 | pub oidc: OidcConfig, | 282 | pub oidc: OidcConfig, |
| 283 | /// Keys the file sets that nothing here reads, in the order the file | 283 | /// Keys the file sets that nothing here reads, in the order the file |
| 284 | /// gives them. Named at startup so a typo is visible. | 284 | /// gives them. Named at startup so a typo is visible. |
| @@ -493,7 +493,7 @@ impl Config { | |||
| 493 | /// A bind that names no interface — `0.0.0.0`, `::` — answers everywhere | 493 | /// A bind that names no interface — `0.0.0.0`, `::` — answers everywhere |
| 494 | /// and is reachable at none of it by name, so the loopback stands in: a | 494 | /// and is reachable at none of it by name, so the loopback stands in: a |
| 495 | /// link somebody on the box can click beats a link nobody can. Whoever | 495 | /// link somebody on the box can click beats a link nobody can. Whoever |
| 496 | - /// puts In behind a proxy sets the real address where it is needed — | 496 | + /// puts in behind a proxy sets the real address where it is needed — |
| 497 | /// `base_url` for the public links, `redirect_uri` in `[oidc]` for | 497 | /// `base_url` for the public links, `redirect_uri` in `[oidc]` for |
| 498 | /// sign-ins — which is the only thing this defers to. | 498 | /// sign-ins — which is the only thing this defers to. |
| 499 | pub fn listen_url(&self) -> String { | 499 | pub fn listen_url(&self) -> String { |
| @@ -570,7 +570,7 @@ impl Config { | |||
| 570 | } | 570 | } |
| 571 | if value.ends_with('/') { | 571 | if value.ends_with('/') { |
| 572 | return Err(format!( | 572 | return Err(format!( |
| 573 | - "{value:?} ends in a slash — set the bare origin; In joins the /s/ path itself" | 573 | + "{value:?} ends in a slash — set the bare origin; in joins the /s/ path itself" |
| 574 | )); | 574 | )); |
| 575 | } | 575 | } |
| 576 | Ok(()) | 576 | Ok(()) |
| @@ -839,7 +839,7 @@ redirect_uri = "https://files.example.com/auth/callback" | |||
| 839 | ); | 839 | ); |
| 840 | } | 840 | } |
| 841 | 841 | ||
| 842 | - /// The links In hands out follow `listen` unless the file says a public | 842 | + /// The links in hands out follow `listen` unless the file says a public |
| 843 | /// base — the mirror of `redirect_uri`, which is why the tests read the | 843 | /// base — the mirror of `redirect_uri`, which is why the tests read the |
| 844 | /// same way. | 844 | /// same way. |
| 845 | #[test] | 845 | #[test] |
crates/in-core/src/lib.rsmodified+1 -1
| @@ -1,4 +1,4 @@ | |||
| 1 | -//! Domain model and storage for In. | 1 | +//! Domain model and storage for in. |
| 2 | //! | 2 | //! |
| 3 | //! The vocabulary — the account, folder, file, share and upload shapes — | 3 | //! The vocabulary — the account, folder, file, share and upload shapes — |
| 4 | //! compiles everywhere, so the UI and the server speak the same types. The | 4 | //! compiles everywhere, so the UI and the server speak the same types. The |
crates/in-core/src/store/reconcile.rsmodified+2 -2
| @@ -5,7 +5,7 @@ | |||
| 5 | //! column map, the copy is verified, and only then the files are swapped. The | 5 | //! column map, the copy is verified, and only then the files are swapped. The |
| 6 | //! original file is kept as a timestamped backup and is never deleted. | 6 | //! original file is kept as a timestamped backup and is never deleted. |
| 7 | //! | 7 | //! |
| 8 | -//! Binary is the one thing that needs no extraction here: In never kept | 8 | +//! Binary is the one thing that needs no extraction here: in never kept |
| 9 | //! bytes in its tables — files, thumbnails and chunks live under the storage | 9 | //! bytes in its tables — files, thumbnails and chunks live under the storage |
| 10 | //! directory from the first schema, keyed by row id — so the copy moves rows | 10 | //! directory from the first schema, keyed by row id — so the copy moves rows |
| 11 | //! only, and the tree beside the database is untouched throughout. | 11 | //! only, and the tree beside the database is untouched throughout. |
| @@ -29,7 +29,7 @@ pub struct ReconcileOptions { | |||
| 29 | /// - A differing database is backed up, rebuilt, verified and swapped into | 29 | /// - A differing database is backed up, rebuilt, verified and swapped into |
| 30 | /// place. | 30 | /// place. |
| 31 | /// - `storage` is accepted for the call shape the boot path shares with | 31 | /// - `storage` is accepted for the call shape the boot path shares with |
| 32 | -/// databases that once kept binary in their tables; In never did, so the | 32 | +/// databases that once kept binary in their tables; in never did, so the |
| 33 | /// tree beside the database is left exactly as it was. | 33 | /// tree beside the database is left exactly as it was. |
| 34 | /// - A rebuild that fails verification deletes the `.rebuilt` file and leaves | 34 | /// - A rebuild that fails verification deletes the `.rebuilt` file and leaves |
| 35 | /// the original untouched. | 35 | /// the original untouched. |
crates/in-core/tests/store.rsmodified+2 -2
| @@ -840,7 +840,7 @@ async fn a_password_link_round_trips_its_hash() { | |||
| 840 | } | 840 | } |
| 841 | #[tokio::test] | 841 | #[tokio::test] |
| 842 | async fn a_pre_password_link_reconciles_to_no_password_and_a_new_one_survives_reopen() { | 842 | async fn a_pre_password_link_reconciles_to_no_password_and_a_new_one_survives_reopen() { |
| 843 | - // A database built from 0001+0004 — the shape In ran with before links | 843 | + // A database built from 0001+0004 — the shape in ran with before links |
| 844 | // could carry passwords — has a share_link table with no | 844 | // could carry passwords — has a share_link table with no |
| 845 | // `password_hash` column. Opening it with the current code reconciles | 845 | // `password_hash` column. Opening it with the current code reconciles |
| 846 | // it onto the declared schema: the link row is carried across and wears | 846 | // 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() { | |||
| 1627 | 1627 | ||
| 1628 | #[tokio::test] | 1628 | #[tokio::test] |
| 1629 | async fn a_second_migration_database_gains_the_preference_columns_on_open() { | 1629 | async fn a_second_migration_database_gains_the_preference_columns_on_open() { |
| 1630 | - // A database built from 0001+0002 — the shape In ran with an interface | 1630 | + // A database built from 0001+0002 — the shape in ran with an interface |
| 1631 | // picker and no theme or language — carries no `theme` or `language` | 1631 | // picker and no theme or language — carries no `theme` or `language` |
| 1632 | // column. Opening it with the current code reconciles it onto the | 1632 | // column. Opening it with the current code reconciles it onto the |
| 1633 | // declared schema: its interface choice is carried across, and the two | 1633 | // declared schema: its interface choice is carried across, and the two |
crates/in-web/Cargo.tomlmodified+1 -1
| @@ -4,7 +4,7 @@ version.workspace = true | |||
| 4 | edition.workspace = true | 4 | edition.workspace = true |
| 5 | license.workspace = true | 5 | license.workspace = true |
| 6 | repository.workspace = true | 6 | repository.workspace = true |
| 7 | -description = "In web app: topcoat UI, routes and the server" | 7 | +description = "in web app: topcoat UI, routes and the server" |
| 8 | 8 | ||
| 9 | [dependencies] | 9 | [dependencies] |
| 10 | topcoat = { version = "0.6.2", default-features = false, features = [ | 10 | topcoat = { version = "0.6.2", default-features = false, features = [ |
crates/in-web/src/files.rsmodified+1 -1
| @@ -90,7 +90,7 @@ fn renders_inline(mime: &str) -> bool { | |||
| 90 | 90 | ||
| 91 | /// Whether `inline` disposition is safe for this mime: an uploaded HTML or | 91 | /// Whether `inline` disposition is safe for this mime: an uploaded HTML or |
| 92 | /// SVG file stays `attachment` either way, so it is offered to save rather | 92 | /// SVG file stays `attachment` either way, so it is offered to save rather |
| 93 | -/// than run on In's origin. | 93 | +/// than run on in's origin. |
| 94 | fn inline_ok(mime: &str) -> bool { | 94 | fn inline_ok(mime: &str) -> bool { |
| 95 | renders_inline(mime) && mime != "image/svg+xml" && mime != "text/html" | 95 | renders_inline(mime) && mime != "image/svg+xml" && mime != "text/html" |
| 96 | } | 96 | } |
crates/in-web/src/i18n.rsmodified+2 -2
| @@ -259,7 +259,7 @@ pub fn t(lang: Lang, key: Key) -> &'static str { | |||
| 259 | BackToDrive => "Back to the drive", | 259 | BackToDrive => "Back to the drive", |
| 260 | BackToShared => "Back to shared", | 260 | BackToShared => "Back to shared", |
| 261 | BackToTrash => "Back to trash", | 261 | BackToTrash => "Back to trash", |
| 262 | - WelcomeTitle => "In: your files", | 262 | + WelcomeTitle => "in: your files", |
| 263 | WelcomeBlurb => "Your folders and files, shared on your terms.", | 263 | WelcomeBlurb => "Your folders and files, shared on your terms.", |
| 264 | SignIn => "Sign in", | 264 | SignIn => "Sign in", |
| 265 | NavDrive => "Drive", | 265 | NavDrive => "Drive", |
| @@ -419,7 +419,7 @@ pub fn t(lang: Lang, key: Key) -> &'static str { | |||
| 419 | BackToDrive => "Sürücüye dön", | 419 | BackToDrive => "Sürücüye dön", |
| 420 | BackToShared => "Paylaşılanlara dön", | 420 | BackToShared => "Paylaşılanlara dön", |
| 421 | BackToTrash => "Çöpe dön", | 421 | BackToTrash => "Çöpe dön", |
| 422 | - WelcomeTitle => "In: dosyaların", | 422 | + WelcomeTitle => "in: dosyaların", |
| 423 | WelcomeBlurb => "Klasörlerin ve dosyaların, senin kurallarınla.", | 423 | WelcomeBlurb => "Klasörlerin ve dosyaların, senin kurallarınla.", |
| 424 | SignIn => "Oturum aç", | 424 | SignIn => "Oturum aç", |
| 425 | NavDrive => "Sürücü", | 425 | NavDrive => "Sürücü", |
crates/in-web/src/layout.rsmodified+6 -6
| @@ -23,7 +23,7 @@ use in_core::store::User; | |||
| 23 | use crate::i18n::{Key, Lang, t}; | 23 | use crate::i18n::{Key, Lang, t}; |
| 24 | use crate::server::{app, current_user}; | 24 | use crate::server::{app, current_user}; |
| 25 | 25 | ||
| 26 | -/// The In monogram again, as the tab icon: the same drawing as `mark`, | 26 | +/// The in monogram again, as the tab icon: the same drawing as `mark`, |
| 27 | /// inlined because it must carry its own colours — a data URI has no page to | 27 | /// inlined because it must carry its own colours — a data URI has no page to |
| 28 | /// inherit `currentColor` or the accent token from, so the two themes are | 28 | /// inherit `currentColor` or the accent token from, so the two themes are |
| 29 | /// spelled out in a media query inside the SVG. | 29 | /// spelled out in a media query inside the SVG. |
| @@ -37,7 +37,7 @@ const FAVICON: &str = "data:image/svg+xml,\ | |||
| 37 | <path class='s' d='M11.4 19.8V10.6h2.4c2.6 0 4.2 1.7 4.2 4.3v4.9' fill='none' \ | 37 | <path class='s' d='M11.4 19.8V10.6h2.4c2.6 0 4.2 1.7 4.2 4.3v4.9' fill='none' \ |
| 38 | stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>"; | 38 | stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>"; |
| 39 | 39 | ||
| 40 | -/// The In monogram — a dotted `i` beside a stroked `n`. It takes | 40 | +/// The in monogram — a dotted `i` beside a stroked `n`. It takes |
| 41 | /// `currentColor` for its strokes and the accent for its tittle, so one | 41 | /// `currentColor` for its strokes and the accent for its tittle, so one |
| 42 | /// drawing serves both skins and both themes. | 42 | /// drawing serves both skins and both themes. |
| 43 | /// | 43 | /// |
| @@ -49,7 +49,7 @@ const FAVICON: &str = "data:image/svg+xml,\ | |||
| 49 | pub(crate) async fn mark(cx: &Cx) -> Result { | 49 | pub(crate) async fn mark(cx: &Cx) -> Result { |
| 50 | view! { | 50 | view! { |
| 51 | cx => | 51 | cx => |
| 52 | - <a class="wordmark" href="/" aria-label="In"> | 52 | + <a class="wordmark" href="/" aria-label="in"> |
| 53 | <svg class="wordmark-mark" width="24" height="24" viewBox="0 0 24 24" | 53 | <svg class="wordmark-mark" width="24" height="24" viewBox="0 0 24 24" |
| 54 | aria-hidden="true"> | 54 | aria-hidden="true"> |
| 55 | <rect x="3.1" y="9.4" width="4.4" height="11.6" rx="2.2" | 55 | <rect x="3.1" y="9.4" width="4.4" height="11.6" rx="2.2" |
| @@ -69,7 +69,7 @@ pub(crate) async fn wordmark(cx: &Cx) -> Result { | |||
| 69 | view! { | 69 | view! { |
| 70 | cx => | 70 | cx => |
| 71 | <a class="wordmark wordmark-lone" href="/"> | 71 | <a class="wordmark wordmark-lone" href="/"> |
| 72 | - <span class="wordmark-text">"In"</span> | 72 | + <span class="wordmark-text">"in"</span> |
| 73 | </a> | 73 | </a> |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| @@ -236,7 +236,7 @@ async fn family_of(cx: &Cx) -> Vec<in_client::ServiceJson> { | |||
| 236 | } | 236 | } |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | -/// The monogram with the family behind it: the In mark as ever, and the | 239 | +/// The monogram with the family behind it: the in mark as ever, and the |
| 240 | /// sibling services' wordmarks in a flyout that opens under it on hover | 240 | /// sibling services' wordmarks in a flyout that opens under it on hover |
| 241 | /// and on keyboard focus — the mark is an `<a href="/">`, so it is already | 241 | /// and on keyboard focus — the mark is an `<a href="/">`, so it is already |
| 242 | /// focusable and `:focus-within` needs nothing added. Middots between, | 242 | /// focusable and `:focus-within` needs nothing added. Middots between, |
| @@ -1102,7 +1102,7 @@ pub(crate) async fn document_shell(cx: &Cx, slot: Result) -> Result { | |||
| 1102 | rel="stylesheet" | 1102 | rel="stylesheet" |
| 1103 | 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" | 1103 | 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" |
| 1104 | > | 1104 | > |
| 1105 | - <title>"In"</title> | 1105 | + <title>"in"</title> |
| 1106 | <link rel="icon" href=(FAVICON)> | 1106 | <link rel="icon" href=(FAVICON)> |
| 1107 | <link rel="stylesheet" href=(STYLE)> | 1107 | <link rel="stylesheet" href=(STYLE)> |
| 1108 | topcoat::runtime::script() | 1108 | topcoat::runtime::script() |
crates/in-web/src/main.rsmodified+1 -1
| @@ -60,7 +60,7 @@ async fn main() { | |||
| 60 | // config/in.toml is read here, before anything is opened, and written with | 60 | // config/in.toml is read here, before anything is opened, and written with |
| 61 | // development defaults if it is not there yet. A broken key stops the | 61 | // development defaults if it is not there yet. A broken key stops the |
| 62 | // boot with its name in the message: the failure this prevents is not an | 62 | // boot with its name in the message: the failure this prevents is not an |
| 63 | - // empty database, it is a second In writing a different file while | 63 | + // empty database, it is a second in writing a different file while |
| 64 | // everyone believes they share a drive. | 64 | // everyone believes they share a drive. |
| 65 | let config = match Config::load() { | 65 | let config = match Config::load() { |
| 66 | Ok(config) => config, | 66 | Ok(config) => config, |
crates/in-web/src/server.rsmodified+3 -3
| @@ -80,7 +80,7 @@ pub async fn share_link_url(cx: &Cx, link: &in_core::store::ShareLink) -> Option | |||
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | /// A stable-enough label for the client, for rate limiting. A proxy header is | 82 | /// A stable-enough label for the client, for rate limiting. A proxy header is |
| 83 | -/// only trusted because In is meant to sit behind one; the address bucket is | 83 | +/// only trusted because in is meant to sit behind one; the address bucket is |
| 84 | /// the limit that actually protects the login round-trip either way. | 84 | /// the limit that actually protects the login round-trip either way. |
| 85 | /// | 85 | /// |
| 86 | /// topcoat 0.6.2 exposes no peer address; x-forwarded-for or nothing. | 86 | /// 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 { | |||
| 445 | /// function handler answers with a redirect back to the page it came from, and | 445 | /// function handler answers with a redirect back to the page it came from, and |
| 446 | /// the value — the whole refusal — sits in a body nobody will ever look at. | 446 | /// the value — the whole refusal — sits in a body nobody will ever look at. |
| 447 | /// The click then looks like nothing happening, which is the worst answer | 447 | /// The click then looks like nothing happening, which is the worst answer |
| 448 | -/// In can give. | 448 | +/// in can give. |
| 449 | /// | 449 | /// |
| 450 | /// So the refusal is copied onto the `Location`, as `?refusal=<code>&on=<call>`, | 450 | /// So the refusal is copied onto the `Location`, as `?refusal=<code>&on=<call>`, |
| 451 | /// and the page renders it from the query. This is one place rather than a | 451 | /// 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<String> { | |||
| 523 | } | 523 | } |
| 524 | // The Location we are rewriting came from the form post's Referer, and on a | 524 | // The Location we are rewriting came from the form post's Referer, and on a |
| 525 | // cross-origin post the Referer is whatever the other site is. Sending the | 525 | // cross-origin post the Referer is whatever the other site is. Sending the |
| 526 | - // browser back there would make In an open redirect, so the address is | 526 | + // browser back there would make in an open redirect, so the address is |
| 527 | // rebuilt from its path and query alone and anything that is not a plain | 527 | // rebuilt from its path and query alone and anything that is not a plain |
| 528 | // absolute path is answered with the drive. | 528 | // absolute path is answered with the drive. |
| 529 | let here = same_origin(location); | 529 | let here = same_origin(location); |
style/_instrument.scssmodified+1 -1
| @@ -16,7 +16,7 @@ | |||
| 16 | height: 44px; | 16 | height: 44px; |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | - // In's drive filterbar carries a full create-folder form (iz's only holds | 19 | + // in's drive filterbar carries a full create-folder form (iz's only holds |
| 20 | // chips), so the skin's fixed 40px clips it: 40px is the floor, not the | 20 | // chips), so the skin's fixed 40px clips it: 40px is the floor, not the |
| 21 | // ceiling. | 21 | // ceiling. |
| 22 | .filterbar { | 22 | .filterbar { |
style/main.scssmodified+1 -1
| @@ -1940,7 +1940,7 @@ img.avatar { | |||
| 1940 | overflow-y: auto; | 1940 | overflow-y: auto; |
| 1941 | } | 1941 | } |
| 1942 | 1942 | ||
| 1943 | -// In's rows pair a dropdown with its submit (move), so the form is a row of | 1943 | +// in's rows pair a dropdown with its submit (move), so the form is a row of |
| 1944 | // controls, not a block — iz's pop-rows only ever hold one. | 1944 | // controls, not a block — iz's pop-rows only ever hold one. |
| 1945 | .pop-row-form { display: flex; align-items: center; gap: 8px; } | 1945 | .pop-row-form { display: flex; align-items: center; gap: 8px; } |
| 1946 | 1946 | ||