Website: clear macOS first-launch instructions; no /donate for now
The macOS download section and the "download started" panel explain in advance that macOS warns about every app not signed by Apple, quote what it says, and give both ways to allow ChessPenguin once (System Settings step by step, or one Terminal command with a copy button); Mac visitors get a link to it under the hero button. The /donate redirect is removed until a donation service is chosen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6168210112
commit
148a02f308
12 changed files with 107 additions and 83 deletions
|
|
@ -58,9 +58,6 @@ struct Config {
|
|||
stats_password: String,
|
||||
/// Take the client address from `X-Forwarded-For` / `X-Real-IP` (behind nginx).
|
||||
trust_proxy: bool,
|
||||
/// Where `/donate` (the program's "Support the project") leads; the support
|
||||
/// section of the page while it is empty.
|
||||
donate_url: String,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
|
|
@ -81,7 +78,6 @@ impl Config {
|
|||
stats_user: var("STATS_USER", "admin"),
|
||||
stats_password: var("STATS_PASSWORD", ""),
|
||||
trust_proxy: var("TRUST_PROXY", "1") != "0",
|
||||
donate_url: var("DONATE_URL", ""),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -211,7 +207,6 @@ async fn main() {
|
|||
.route("/api/release", get(api_release))
|
||||
.route("/download/{platform}", get(download))
|
||||
.route("/hit", post(hit))
|
||||
.route("/donate", get(donate))
|
||||
.route("/stats", get(stats))
|
||||
.route("/stats.csv", get(stats_csv))
|
||||
.route("/healthz", get(|| async { "ok" }))
|
||||
|
|
@ -410,15 +405,6 @@ async fn hit(
|
|||
StatusCode::NO_CONTENT
|
||||
}
|
||||
|
||||
/// `/donate`: the current donation page, so the program's link never has to change.
|
||||
async fn donate(State(state): State<Shared>) -> Redirect {
|
||||
if state.config.donate_url.is_empty() {
|
||||
Redirect::temporary("/#support")
|
||||
} else {
|
||||
Redirect::temporary(&state.config.donate_url)
|
||||
}
|
||||
}
|
||||
|
||||
/// `/`: English, or `?lang=xx` → `/xx/`.
|
||||
async fn home(state: State<Shared>, Query(q): Query<HashMap<String, String>>) -> Response {
|
||||
if let Some(lang) = q.get("lang")
|
||||
|
|
|
|||
|
|
@ -54,12 +54,16 @@ const CLIENT_KEYS: &[&str] = &[
|
|||
"close",
|
||||
"next_windows",
|
||||
"next_macos_title",
|
||||
"next_macos15",
|
||||
"mac_step1",
|
||||
"mac_step2",
|
||||
"mac15_step1",
|
||||
"mac_warn_title",
|
||||
"mac_warn_text",
|
||||
"mac_way1",
|
||||
"mac_open1",
|
||||
"mac15_step2",
|
||||
"mac15_step3",
|
||||
"mac_open4",
|
||||
"mac_way2",
|
||||
"mac_way2_text",
|
||||
"next_linux",
|
||||
"copy",
|
||||
"copied",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue