Skip to content

Commit

Permalink
feat: Add DEX link in header (#79)
Browse files Browse the repository at this point in the history
* feat: Add DEX link in header

* add beam dex in mobile menus

* move dex link to config

* Update deploy_cf.yml

add corepack enable
  • Loading branch information
m4gicpotato authored Dec 4, 2023
1 parent 2fece7f commit 66177c5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy_cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
shell: bash
run: git submodule sync && git submodule update --remote --force

- name: Enable Corepack
shell: bash
run: corepack enable

- name: Install packages
run: yarn install

Expand Down
1 change: 1 addition & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export enum ExternalLinks {

// Other links
DOCS_SOURCES = "https://github.com/BeamMW/docs-gitbook",
DEX = "https://dex.beam.mw",
EXPLORER = "https://explorer.beam.mw",
MINING_SUPPORT = "https://t.me/BeamMiners",
MINING_CALCULATOR = "https://whattomine.com/coins?aq_3070=3&a_3070=true&aq_69xt=0&aq_68xt=0&aq_68=0&aq_67xt=0&aq_66xt=0&aq_vii=0&aq_5700xt=0&aq_5700=0&aq_5600xt=0&aq_vega64=0&aq_vega56=0&aq_4090=0&aq_4080=0&aq_47Ti=0&aq_39Ti=0&aq_3090=0&aq_38Ti=0&aq_3080=0&aq_37Ti=0&aq_3060Ti=0&aq_3060=0&aq_66=0&aq_55xt8=0&aq_580=0&aq_570=0&aq_480=0&aq_470=0&aq_fury=0&aq_380=0&aq_a5=0&aq_a45=0&aq_a4=0&aq_a2=0&aq_2080Ti=0&aq_2080=0&aq_2070=0&aq_2060=0&aq_166s=0&aq_1660Ti=0&aq_1660=0&aq_1080Ti=0&aq_1080=0&aq_1070Ti=0&aq_1070=0&aq_10606=0&aq_1050Ti=0&factor[eth_hr]=180.0&factor[eth_p]=390.0&factor[e4g_hr]=180.0&factor[e4g_p]=390.0&factor[zh_hr]=300.0&factor[zh_p]=540.0&factor[cnh_hr]=5250.0&factor[cnh_p]=540.0&factor[cng_hr]=8700.0&factor[cng_p]=540.0&factor[s5r_hr]=2.22&factor[s5r_p]=300.0&factor[cx_hr]=10.8&factor[cx_p]=510.0&factor[eqa_hr]=1170.0&factor[eqa_p]=540.0&factor[cc_hr]=30.6&factor[cc_p]=540.0&factor[cr29_hr]=30.9&factor[cr29_p]=540.0&factor[hh_hr]=1530.0&factor[hh_p]=240.0&factor[ct32_hr]=2.1&factor[ct32_p]=540.0&eqb=true&factor[eqb_hr]=102.0&factor[eqb_p]=540.0&factor[b3_hr]=3.6&factor[b3_p]=330.0&factor[ns_hr]=0.0&factor[ns_p]=0.0&factor[al_hr]=480.0&factor[al_p]=390.0&factor[ops_hr]=158.1&factor[ops_p]=540.0&factor[eqz_hr]=165.0&factor[eqz_p]=540.0&factor[zlh_hr]=204.0&factor[zlh_p]=450.0&factor[kpw_hr]=82.8&factor[kpw_p]=540.0&factor[ppw_hr]=82.2&factor[ppw_p]=540.0&factor[nx_hr]=219.0&factor[nx_p]=390.0&factor[fpw_hr]=75.0&factor[fpw_p]=450.0&factor[vh_hr]=3.57&factor[vh_p]=420.0&factor[cost]=0.1&factor[cost_currency]=USD&sort=Profitability24&volume=0&revenue=24h&factor[exchanges][]=&factor[exchanges][]=binance&factor[exchanges][]=bitfinex&factor[exchanges][]=bitforex&factor[exchanges][]=bittrex&factor[exchanges][]=coinex&factor[exchanges][]=exmo&factor[exchanges][]=gate&factor[exchanges][]=graviex&factor[exchanges][]=hitbtc&factor[exchanges][]=ogre&factor[exchanges][]=poloniex&factor[exchanges][]=stex&dataset=beam&commit=Calculate",
Expand Down
11 changes: 11 additions & 0 deletions components/header-component.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts" setup>
import { ExternalLinks } from "@/app.config";
const localePath = useLocalePath();
</script>
<template>
Expand Down Expand Up @@ -32,6 +34,15 @@ const localePath = useLocalePath();
>{{ $t("header.nav.downloads") }}</HeaderNavigationItem
>
</li>
<li class="hidden md:block">
<HeaderNavigationItem
name="dex"
:to="ExternalLinks.DEX"
target="_blank"
rel="noopener noreferrer"
>DEX</HeaderNavigationItem
>
</li>
<li class="hidden md:block">
<HeaderNavigationItem
name="docs|docs/.*"
Expand Down
5 changes: 5 additions & 0 deletions components/header/resources-dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ const menus = computed(() => [
href: localePath("downloads"),
class: "block md:hidden",
},
{
text: "Beam DEX",
href: ExternalLinks.DEX,
class: "block md:hidden",
},
{
text: t("head.title.documentation"),
href: localePath("docs"),
Expand Down

0 comments on commit 66177c5

Please sign in to comment.