mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +00:00
style(docsync): drop dash punctuation from the added comments and test titles
The lines this branch adds used em and en dashes as sentence punctuation across comments, JSDoc, CSS comments and test titles. Each one is rewritten with a comma, a colon, parentheses or a second sentence, keeping what the sentence said. Only lines this branch adds are touched; everything that already exists on dev stays as it is. No logic, error code or logged message changes. The only string literals affected are describe and it titles, which now read "X: topic" like the rest of the provider tests.
This commit is contained in:
@@ -8,7 +8,7 @@ import type Database from 'better-sqlite3';
|
||||
* use INSERT OR IGNORE, which is what lets an operator rename or re-sort a row
|
||||
* without a later boot undoing it.
|
||||
*
|
||||
* `label` and `hint` are i18n key suffixes, never display text — the client
|
||||
* `label` and `hint` are i18n key suffixes, never display text: the client
|
||||
* resolves them as `docsync.<label>`, the same way the photo provider form
|
||||
* resolves `memories.<label>`.
|
||||
*
|
||||
@@ -77,7 +77,7 @@ const PROVIDERS: ProviderRow[] = [
|
||||
];
|
||||
|
||||
/**
|
||||
* `allow_insecure_tls` defaults to 0 on every provider — unlike the Synology
|
||||
* `allow_insecure_tls` defaults to 0 on every provider, unlike the Synology
|
||||
* photo provider, where skipping verification is the stored default. A LAN
|
||||
* instance with a self-signed certificate is common enough to need the switch
|
||||
* and not common enough to justify shipping it on.
|
||||
@@ -94,7 +94,7 @@ const FIELDS: ProviderFieldRow[] = [
|
||||
{ provider_id: 'papra', field_key: 'organization_id', label: 'providerOrganization', input_type: 'text', placeholder: 'org_…', hint: 'hintPapraOrg', required: 1, secret: 0, sort_order: 2 },
|
||||
{ provider_id: 'papra', field_key: 'allow_insecure_tls', label: 'allowInsecureTls', input_type: 'checkbox', placeholder: null, hint: null, required: 0, secret: 0, sort_order: 3 },
|
||||
|
||||
// Nextcloud: an app password, never the account password — the latter breaks
|
||||
// Nextcloud: an app password, never the account password. The latter breaks
|
||||
// the moment the account turns on 2FA or logs in through OIDC.
|
||||
{ provider_id: 'nextcloud', field_key: 'base_url', label: 'providerUrl', input_type: 'url', placeholder: 'https://cloud.example.com', hint: null, required: 1, secret: 0, sort_order: 0 },
|
||||
{ provider_id: 'nextcloud', field_key: 'login_name', label: 'providerUsername', input_type: 'text', placeholder: 'username', hint: 'hintNextcloudLogin', required: 1, secret: 0, sort_order: 1 },
|
||||
|
||||
@@ -4957,7 +4957,7 @@ function runMigrations(db: Database.Database): void {
|
||||
* Deliberately its own pair of tables rather than a `kind` column on
|
||||
* `photo_providers`. The client filters on `type === 'photo_provider'`, the
|
||||
* Journey cascade runs `UPDATE photo_providers SET enabled = 0` with no
|
||||
* WHERE clause, and migrations are append-only — reusing those tables would
|
||||
* WHERE clause, and migrations are append-only. Reusing those tables would
|
||||
* change the behaviour of three existing paths, which is exactly what the
|
||||
* no-breaking-changes rule forbids. The field columns follow
|
||||
* `photo_provider_fields` except for `settings_key` and `payload_key`.
|
||||
@@ -5002,7 +5002,7 @@ function runMigrations(db: Database.Database): void {
|
||||
* Photos, AirTrail and Dawarich all hang off a user, and even
|
||||
* `trip_album_links` carries a `user_id`; photos become visible to the rest
|
||||
* of a trip only through an opt-in `shared` flag. None of that can satisfy
|
||||
* "everyone on the trip sees the same documents" — it would make a
|
||||
* "everyone on the trip sees the same documents": it would make a
|
||||
* document's visibility depend on whose credentials fetched it. So the trip
|
||||
* admin binds the trip once, the server talks to the provider under that
|
||||
* single identity, and TREK's own membership decides who sees what.
|
||||
@@ -5014,7 +5014,7 @@ function runMigrations(db: Database.Database): void {
|
||||
* Secrets live in one encrypted JSON blob instead of per-provider columns:
|
||||
* a sixth provider then needs no migration, and the key rotation in
|
||||
* scripts/migrate-encryption.ts stays one line instead of a field list that
|
||||
* someone will forget — and a forgotten column does not survive a rotation.
|
||||
* someone will forget, and a forgotten column does not survive a rotation.
|
||||
*/
|
||||
() => {
|
||||
db.exec(`
|
||||
@@ -5082,7 +5082,7 @@ function runMigrations(db: Database.Database): void {
|
||||
* cannot tell it from a stranger's edit, and the file bounces.
|
||||
*
|
||||
* `remote_missing_at` records that something vanished upstream instead of
|
||||
* acting on it — the rule Dawarich already follows with `source_missing_at`.
|
||||
* acting on it, the rule Dawarich already follows with `source_missing_at`.
|
||||
* An unmounted share answers with an empty listing, and reading that as
|
||||
* "everything was deleted" would empty a trip.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user