diff --git a/.circleci/config.yml b/.circleci/config.yml index 00b77c19..3dab247b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -216,6 +216,9 @@ jobs: - store_artifacts: path: plume.tar.gz destination: plume.tar.gz + - store_artifacts: + path: wasm.tar.gz + destination: wasm.tar.gz push translations: executor: diff --git a/script/generate_artifact.sh b/script/generate_artifact.sh index fabbd19d..c61087c7 100755 --- a/script/generate_artifact.sh +++ b/script/generate_artifact.sh @@ -2,4 +2,5 @@ mkdir bin cp target/release/{plume,plm} bin strip -s bin/* -tar -cvzf plume.tar.gz bin/ static/ migrations/$FEATURES +tar -cvzf plume.tar.gz bin/ static/ +tar -cvzf wasm.tar.gz static/plume-front.{js,wasm} diff --git a/static/css/_article.scss b/static/css/_article.scss index a8d33e42..ab4ea12c 100644 --- a/static/css/_article.scss +++ b/static/css/_article.scss @@ -312,7 +312,6 @@ main .article-meta { .popup:not(.show), .popup-bg:not(.show) { display: none; - appearance: none; } .popup-bg { @@ -333,7 +332,6 @@ main .article-meta { .cw-text { display: none; - appearance: none; } input[type="checkbox"].cw-checkbox { diff --git a/static/css/_forms.scss b/static/css/_forms.scss index b785db41..a87ccf08 100644 --- a/static/css/_forms.scss +++ b/static/css/_forms.scss @@ -10,7 +10,6 @@ input, textarea, select { margin: auto; padding: 1em; box-sizing: border-box; - -webkit-appearance: textarea; background: $form-input-background; color: $black; @@ -24,10 +23,7 @@ input, textarea, select { border-color: $purple; } } -form input[type="submit"] { - margin: 2em auto; - -webkit-appearance: none; -} +form input[type="submit"] { margin: 2em auto; } textarea { resize: vertical; @@ -42,7 +38,6 @@ input[type="checkbox"] { margin: initial; min-width: initial; width: initial; - -webkit-appearance: checkbox; } /** Inline forms (containing only CSRF token and a , for protected links) **/ @@ -59,7 +54,7 @@ form.inline { cursor: pointer; font-size: 1em; width: auto; - -webkit-appearance: none; + -webkit-appearance: none; &:not(.button) { margin: 0; @@ -101,10 +96,7 @@ form.inline { } } } -input[type="submit"] { - display: block; - -webkit-appearance: none; -} +input[type="submit"] { display: block; } // Writing page form.new-post { @@ -124,7 +116,6 @@ form.new-post { min-height: 20em; overflow-y: hidden; resize: none; - -webkit-appearance: textarea; } input[type="submit"] { background: $lightgray; @@ -135,9 +126,8 @@ form.new-post { font-family: $playfair; font-size: 1.5em; } - input[type="submit"]:hover { - background: $lightgray;} - -webkit-appearance: none; + input[type="submit"]:hover { background: $lightgray; } + -webkit-appearance: none; } .button + .button { @@ -167,4 +157,4 @@ header.center { margin-left: 0; margin-right: 0; } -} +} \ No newline at end of file diff --git a/static/css/_global.scss b/static/css/_global.scss index e684ddd4..18284b19 100644 --- a/static/css/_global.scss +++ b/static/css/_global.scss @@ -54,7 +54,6 @@ small { .hidden { display: none; - appearance: none; } /// Main @@ -110,7 +109,7 @@ main { margin-bottom: 0.5em; } } - + .cover { padding: 0px; margin: 0px; @@ -401,5 +400,5 @@ figure { color: $purple; border-bottom: 1px solid $purple; } - } + } } diff --git a/static/css/_header.scss b/static/css/_header.scss index 76560474..5a5335d8 100644 --- a/static/css/_header.scss +++ b/static/css/_header.scss @@ -10,7 +10,6 @@ header { nav#menu { position: relative; display: none; - appearance: none; transform: skewX(-15deg); left: -1em; padding: 1em 1em 1em 2em; diff --git a/static/css/main.scss b/static/css/main.scss index 280aa38c..a9028797 100644 --- a/static/css/main.scss +++ b/static/css/main.scss @@ -41,7 +41,6 @@ html { #content { display: none; - appearance: none; text-align: center; } } diff --git a/templates/search/index.rs.html b/templates/search/index.rs.html index a10a72ae..54614547 100644 --- a/templates/search/index.rs.html +++ b/templates/search/index.rs.html @@ -6,7 +6,7 @@ @:base(ctx, i18n!(ctx.1, "Search"), {}, {}, {

@i18n!(ctx.1, "Search")

- +
@i18n!(ctx.1, "Advanced search") @input!(ctx.1, title (text), "Article title matching these words", &format!("placeholder=\"{}\"", i18n!(ctx.1, "Title"))) @@ -17,7 +17,7 @@ @input!(ctx.1, tag (text), "Containing these tags", &format!("placeholder=\"{}\"", i18n!(ctx.1, "Tags"))) @input!(ctx.1, instance (text), "Posted on one of these instances", &format!("placeholder=\"{}\"", i18n!(ctx.1, "Instance domain"))) - @input!(ctx.1, author (text), "Posted by one of these authors", &format!("placeholder=\"{}\"", i18n!(ctx.1, "Author(s)"))) + @input!(ctx.1, author (text), "Posted by one of these authors", &format!("placeholder=\"{}\"", i18n!(ctx.1, "Authors"))) @input!(ctx.1, blog (text), "Posted on one of these blogs", &format!("placeholder=\"{}\"", i18n!(ctx.1, "Blog title"))) @input!(ctx.1, lang (text), "Written in this language", &format!("placeholder=\"{}\"", i18n!(ctx.1, "Language"))) @input!(ctx.1, license (text), "Published under this license", &format!("placeholder=\"{}\"", i18n!(ctx.1, "Article license"))) diff --git a/templates/search/result.rs.html b/templates/search/result.rs.html index 7490bd6a..759ac203 100644 --- a/templates/search/result.rs.html +++ b/templates/search/result.rs.html @@ -4,14 +4,14 @@ @(ctx: BaseContext, query_str: &str, articles: Vec, page: i32, n_pages: i32) -@:base(ctx, i18n!(ctx.1, "Search result(s) for \"{0}\""; query_str), {}, {}, { -

@i18n!(ctx.1, "Search result(s)")

+@:base(ctx, i18n!(ctx.1, "Search result for \"{0}\""; query_str), {}, {}, { +

@i18n!(ctx.1, "Search result")

@query_str

@if articles.is_empty() {
@if page == 1 { -

@i18n!(ctx.1, "No results for your query")

+

@i18n!(ctx.1, "No result for your query")

} else {

@i18n!(ctx.1, "No more results for your query")

}