From: Tan Kian-ting Date: Wed, 12 Jul 2023 17:04:04 +0000 (+0800) Subject: error point while adding type X-Git-Url: https://git.kianting.info/?a=commitdiff_plain;h=aa9b6d6ed87898067d329870dfb03d2fa9990270;p=taikoothong error point while adding type --- diff --git a/Cargo.toml b/Cargo.toml index 55f708e..cda1f8c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ rocket = "0.5.0-rc.2" round = "0.1.0" num-format = "0.4.4" rss = "1.9.0" +feed-rs = "1.3.0" [dependencies.rocket_dyn_templates] rocket_dyn_templates = "0.5.0-rc.3-2023-06-09" diff --git a/templates/tw_stock.html.hbs b/templates/tw_stock.html.hbs index 180de4a..d08f199 100644 --- a/templates/tw_stock.html.hbs +++ b/templates/tw_stock.html.hbs @@ -35,6 +35,7 @@ text { fill: #000; + font-size: 14px; } button { @@ -62,6 +63,45 @@ stroke: #007d30; } + path.volume.up { + fill: #dc3526; + stroke: #dc3526; + } + path.volume.equal { + fill: #dc3526; + stroke: #dc3526; + } + + path.volume.down { + fill: #007d30; + stroke: #007d30; + } + + .indicator.ma-0{ + stroke:blue; + } + + .text.ma-0{ + fill:blue; + } + + .indicator.ma-1{ + stroke:orange; + } + + .text.ma-1{ + fill:orange; + } + + .indicator.ma-2{ + stroke:green; + } + + .text.ma-2{ + fill:green; + } + + @@ -101,29 +141,58 @@
-
{{news.0}}
+
{{#each news}}foo:{{/each}}