diff options
| author | Fuwn <[email protected]> | 2022-10-01 22:08:49 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-10-01 22:08:49 -0700 |
| commit | 499a458ce152f37f0404516fad84314c55456b8c (patch) | |
| tree | 92d68fff0bee92b7bf04e95eecd417c5835b4295 | |
| parent | docs(README.md): text to markdown (diff) | |
| download | locus-499a458ce152f37f0404516fad84314c55456b8c.tar.xz locus-499a458ce152f37f0404516fad84314c55456b8c.zip | |
feat(static): telegram groups page
| -rw-r--r-- | content/blogs/news/20221001.gmi | 4 | ||||
| -rw-r--r-- | content/static/stocks_telegram.gmi | 11 | ||||
| -rw-r--r-- | src/modules/static.rs | 5 | ||||
| -rw-r--r-- | src/modules/stocks.rs | 14 |
4 files changed, 28 insertions, 6 deletions
diff --git a/content/blogs/news/20221001.gmi b/content/blogs/news/20221001.gmi new file mode 100644 index 0000000..19b3e26 --- /dev/null +++ b/content/blogs/news/20221001.gmi @@ -0,0 +1,4 @@ +## Stocks Dashboard + +* Replace links that direct to the direct search action with links that direct to the search page. +* Add a Telegram groups page
\ No newline at end of file diff --git a/content/static/stocks_telegram.gmi b/content/static/stocks_telegram.gmi new file mode 100644 index 0000000..bb3ad16 --- /dev/null +++ b/content/static/stocks_telegram.gmi @@ -0,0 +1,11 @@ +# Telegram Groups + +=> /stocks Dashboard +=> /cryptocurrency Cryptocurrency Dashboard +=> /stocks/search Search + +## Links + +=> https://t.me/financialnews Financial Markets News +=> https://t.me/trader_joes Trader Joe's +=> https://t.me/investingStock Investing in the Stock Market
\ No newline at end of file diff --git a/src/modules/static.rs b/src/modules/static.rs index 47b7494..b829b44 100644 --- a/src/modules/static.rs +++ b/src/modules/static.rs @@ -56,5 +56,10 @@ pub fn module(router: &mut windmark::Router) { "Information and resources for The Tor Project", "tor" ), + ( + "/stocks/telegram", + "Stock Market Related Telegram Groups", + "stocks_telegram" + ) ); } diff --git a/src/modules/stocks.rs b/src/modules/stocks.rs index 8de72c6..51fcc48 100644 --- a/src/modules/stocks.rs +++ b/src/modules/stocks.rs @@ -111,9 +111,10 @@ pub fn module(router: &mut windmark::Router) { Box::new(|context| { success!( format!( - "# Referrals\n\n=> /stocks Home\n=> /cryptocurrency Cryptocurrency \ - Dashboard\n=> /stocks/search?action=go Search!\n\nWant to start \ - investing? Support me by using one of my referral links!\n\n{}", + "# Referrals\n\n=> /stocks Dashboard\n=> /cryptocurrency \ + Cryptocurrency Dashboard\n=> /stocks/telegram Telegram Groups\n=> \ + /stocks/search Search\n\nWant to start investing? \ + Support me by using one of my referral links!\n\n{}", REFERRALS .iter() .map(|r| { @@ -134,7 +135,7 @@ pub fn module(router: &mut windmark::Router) { Box::new(|context| { success!( format!( - "# The Stock Market\n\n=> /stocks/search Symbol Search\n=> /stocks/referrals Referrals\n=> /cryptocurrency Cryptocurrency Dashboard\n\n## Popular \ + "# The Stock Market\n\n=> /stocks/search Symbol Search\n=> /stocks/referrals Referrals\n=> /cryptocurrency Cryptocurrency Dashboard\n=> /stocks/telegram Telegram Groups\n\n## Popular \ Symbols\n\n### AAPL\n\n{}\n\n### TSLA\n\n{}\n\n## Credits\n\nFinancial data provided by\n\n=> https://finnhub.io/ Finnhub", symbol_to_string("AAPL"), symbol_to_string("TSLA") @@ -156,8 +157,9 @@ pub fn module(router: &mut windmark::Router) { } let mut response = format!( - "# {}\n\n=> /stocks Home\n=> /cryptocurrency Cryptocurrency \ - Dashboard\n=> /stocks/search?action=go Search!", + "# {}\n\n=> /stocks Dashboard\n=> /cryptocurrency Cryptocurrency \ + Dashboard\n=> /stocks/telegram Telegram Groups\n=> \ + /stocks/search Search", symbol ); |