From 8cd16982b15c04c8eb5afa5a111d28147fa287a8 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 17 Sep 2021 14:59:02 -0400 Subject: [PATCH] add releases page --- server/src/releases.rs | 48 ++++++++++++++++++++++++++++++++--- server/static/prose.css | 5 +++- server/static/prose.css.map | 2 +- server/static/prose.scss | 5 +++- server/templates/releases.hbs | 45 +++++++++++++++++--------------- server/templates/updates.hbs | 11 +++++--- 6 files changed, 85 insertions(+), 31 deletions(-) diff --git a/server/src/releases.rs b/server/src/releases.rs index c4de9347ac..f1f3410577 100644 --- a/server/src/releases.rs +++ b/server/src/releases.rs @@ -1,15 +1,55 @@ -use crate::{AppState, Request, RequestExt}; +use crate::{ + auth::RequestExt as _, github::Release, AppState, LayoutData, Request, RequestExt as _, +}; +use comrak::ComrakOptions; +use serde::{Serialize}; use std::sync::Arc; -use tide::http::mime; +use tide::{http::mime}; pub fn add_routes(releases: &mut tide::Server>) { releases.at("/releases").get(get_releases); } async fn get_releases(mut request: Request) -> tide::Result { - let data = request.layout_data().await?; + + #[derive(Serialize)] + struct ReleasesData { + #[serde(flatten)] + layout: Arc, + releases: Option>, + } + + let mut data = ReleasesData { + layout: request.layout_data().await?, + releases: None, + }; + + if let Some(user) = request.current_user().await? { + if user.is_insider { + data.releases = Some( + request + .state() + .repo_client + .releases() + .await? + .into_iter() + .filter_map(|mut release| { + if release.draft { + None + } else { + let mut options = ComrakOptions::default(); + options.render.unsafe_ = true; // Allow raw HTML in the markup. We control these release notes anyway. + release.body = comrak::markdown_to_html(&release.body, &options); + Some(release) + } + }) + .collect(), + ); + } + } + Ok(tide::Response::builder(200) .body(request.state().render_template("releases.hbs", &data)?) .content_type(mime::HTML) .build()) -} +} \ No newline at end of file diff --git a/server/static/prose.css b/server/static/prose.css index 6d57b2258f..68da971491 100644 --- a/server/static/prose.css +++ b/server/static/prose.css @@ -1,7 +1,10 @@ +article.prose { + margin-bottom: 2.5rem; +} + article.prose, .type-prose { font-family: "Spectral", "Constantia", "Lucida Bright", "Lucidabright", "Lucida Serif", "Lucida", "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", "Georgia", "serif", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", serif; - margin-bottom: 2.5rem; letter-spacing: -0.05rem; } diff --git a/server/static/prose.css.map b/server/static/prose.css.map index 2f1572df0e..5864e22ace 100644 --- a/server/static/prose.css.map +++ b/server/static/prose.css.map @@ -1,6 +1,6 @@ { "version": 3, - "mappings": "AAIA,AAAA,OAAO,AAAA,MAAM;AACb,WAAW,CAAC;EACV,WAAW,EAAE,wPAGmD;EAChE,aAAa,EAAE,MAAM;EACrB,cAAc,EAAE,QAAQ;CA0FzB;;AAjGD,AASE,OATK,AAAA,MAAM,CASX,EAAE;AATJ,OAAO,AAAA,MAAM,CAUX,EAAE;AAVJ,OAAO,AAAA,MAAM,CAWX,EAAE;AAXJ,OAAO,AAAA,MAAM,CAYX,EAAE;AAXJ,WAAW,CAQT,EAAE;AARJ,WAAW,CAST,EAAE;AATJ,WAAW,CAUT,EAAE;AAVJ,WAAW,CAWT,EAAE,CAAC;EACD,MAAM,EAAE,aAAa;CACtB;;AAdH,AAgBE,OAhBK,AAAA,MAAM,CAgBX,EAAE;AAfJ,WAAW,CAeT,EAAE,CAAC;EACD,SAAS,EAAE,OAAO;EAClB,WAAW,EAAE,MAAM;CACpB;;AAnBH,AAqBE,OArBK,AAAA,MAAM,CAqBX,EAAE;AApBJ,WAAW,CAoBT,EAAE,CAAC;EACD,SAAS,EAAE,QAAQ;EACnB,WAAW,EAAE,OAAO;CACrB;;AAxBH,AA0BE,OA1BK,AAAA,MAAM,CA0BX,EAAE;AAzBJ,WAAW,CAyBT,EAAE,CAAC;EACD,SAAS,EAAE,MAAM;EACjB,WAAW,EAAE,IAAI;CAClB;;AA7BH,AA+BE,OA/BK,AAAA,MAAM,CA+BX,EAAE;AA9BJ,WAAW,CA8BT,EAAE,CAAC;EACD,SAAS,EAAE,MAAM;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,EAAE,CAAC;CACX", "sources": [ "prose.scss" ], diff --git a/server/static/prose.scss b/server/static/prose.scss index b0d05338ee..9abd5bc729 100644 --- a/server/static/prose.scss +++ b/server/static/prose.scss @@ -2,13 +2,16 @@ // add .prose to any
to activate prose styles // or .type-prose to any element +article.prose { + margin-bottom: 2.5rem; +} + article.prose, .type-prose { font-family: "Spectral", "Constantia", "Lucida Bright", "Lucidabright", "Lucida Serif", "Lucida", "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", "Georgia", "serif", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", serif; - margin-bottom: 2.5rem; letter-spacing: -0.05rem; h1, diff --git a/server/templates/releases.hbs b/server/templates/releases.hbs index 93167fc906..0073b8f6e2 100644 --- a/server/templates/releases.hbs +++ b/server/templates/releases.hbs @@ -1,31 +1,34 @@ {{#> layout }} -
-

Releases

+
+ {{#if current_user}} + +

Releases

+

Currently Zed we are only shipping OS X builds of Zed.

+

We are frequently shipping new versions, check back reguarly to get the most recent version. If you run into an issue you think we might not know about use the "new issue" links by the appropriate version to let us know about it.

{{#if releases}} -
+ +
+ + + {{/if}} + {{else}} -

You can't access this without logging in.

- +

Hold it!

+

You can't access this without logging in.

+

Try joining our community to get access to updates & releases.

+ {{/if}}
diff --git a/server/templates/updates.hbs b/server/templates/updates.hbs index b78dd4b6fa..e1788dbbe8 100644 --- a/server/templates/updates.hbs +++ b/server/templates/updates.hbs @@ -2,8 +2,11 @@
+ {{#if current_user}} + {{#if releases}}

Updates

+ {{#each releases}}

{{name}}—Download

@@ -15,11 +18,13 @@
{{/each}} + {{/if}} + {{else}} -

Hey!

-

You can't access this without logging in.

- +

Hold it!

+

You can't access this without logging in.

+

Try joining our community to get access to updates & releases.

{{/if}}