-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdabd98
commit a74d8ff
Showing
3 changed files
with
150 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<template> | ||
<footer> | ||
<nav> | ||
<ul v-for="item in navigation" :key="item.title" :data-label="item.title"> | ||
<li v-for="link in item.links" :key="link.title"> | ||
<router-link :to="link.link" exact>{{link.title}}</router-link> | ||
</li> | ||
</ul> | ||
</nav> | ||
</footer> | ||
</template> | ||
|
||
<script setup> | ||
const navigation = [ | ||
{ | ||
title: "Services", | ||
links: [ | ||
{ | ||
title: "Sensors map", | ||
link: "https://sensors.robonomics.network", | ||
} | ||
] | ||
}, | ||
{ | ||
title: "Tokenomics", | ||
links: [ | ||
{ | ||
title: "About XRT", | ||
link: "https://robonomics.network/xrt/", | ||
}, | ||
{ | ||
title: "Uniswap", | ||
link: "https://app.uniswap.org/#/swap?inputCurrency=0x7de91b204c1c737bcee6f000aaa6569cf7061cb7&outputCurrency=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", | ||
}, | ||
{ | ||
title: "Basilisk", | ||
link: "https://app.basilisk.cloud/pools-and-farms", | ||
} | ||
] | ||
}, | ||
{ | ||
title: "Tools", | ||
links: [ | ||
{ | ||
title: "Substrate Portal", | ||
link: "https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama.rpc.robonomics.network%2F#/explorer", | ||
}, | ||
{ | ||
title: "Subscan", | ||
link: "https://robonomics.subscan.io/", | ||
}, | ||
{ | ||
title: "Polkassembly", | ||
link: "https://robonomics.polkassembly.io/", | ||
} | ||
] | ||
}, | ||
{ | ||
title: "Help", | ||
links: [ | ||
{ | ||
title: "Wiki", | ||
link: "https://wiki.robonomics.network/", | ||
}, | ||
{ | ||
title: "Academy", | ||
link: "https://robonomics.academy/", | ||
}, | ||
{ | ||
title: "Contacts", | ||
link: "https://robonomics.network/contact/", | ||
}, | ||
] | ||
} | ||
]; | ||
</script> | ||
|
||
<style scoped> | ||
footer { | ||
border-top: 1px solid var(--robo-color-text); | ||
margin: var(--robo-layout-padding); | ||
padding-top: var(--robo-layout-padding); | ||
} | ||
footer nav { | ||
display: flex; | ||
gap: calc(var(--robo-layout-padding) * 2); | ||
justify-content: center; | ||
} | ||
footer nav ul:before { | ||
content: attr(data-label); | ||
display: block; | ||
font-weight: bold; | ||
margin-bottom: var(--robo-space); | ||
} | ||
@media screen and (width < 700px) { | ||
footer nav { | ||
font-size: 90%; | ||
gap: var(--robo-layout-padding); | ||
} | ||
} | ||
@media screen and (width < 500px) { | ||
footer nav { | ||
flex-direction: column; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,49 @@ | ||
<template> | ||
<robo-layout> | ||
<dapp-header :title="pagetitle" /> | ||
<dapp-header :title="props.pagetitle" /> | ||
<slot /> | ||
<dapp-footer /> | ||
</robo-layout> | ||
</template> | ||
|
||
<script> | ||
import DappHeader from "@/components/Header"; | ||
<script setup> | ||
import DappHeader from '@/components/Header'; | ||
import DappFooter from '@/components/Footer'; | ||
import { useSubscription } from "@/hooks/useSubscription"; | ||
import { watch } from "vue"; | ||
import { defineProps, watch } from 'vue' | ||
import { useStore } from "vuex"; | ||
export default { | ||
components: { | ||
DappHeader | ||
}, | ||
props: ["pagetitle"], | ||
setup() { | ||
const store = useStore(); | ||
const subscription = useSubscription(); | ||
const props = defineProps({ | ||
pagetitle: { | ||
type: String | ||
} | ||
}); | ||
const store = useStore(); | ||
const subscription = useSubscription(); | ||
watch( | ||
() => store.state.robonomicsUIvue.rws.active, | ||
(v) => { | ||
subscription.owner.value = v; | ||
}, | ||
{ immediate: true } | ||
); | ||
watch( | ||
() => store.state.robonomicsUIvue.rws.active, | ||
(v) => { | ||
subscription.owner.value = v; | ||
}, | ||
{ immediate: true } | ||
); | ||
watch( | ||
[subscription.owner, subscription.validUntil], | ||
() => { | ||
store.commit("rws/setExpiredate", subscription.validUntil); | ||
}, | ||
{ immediate: true } | ||
); | ||
watch( | ||
[subscription.owner, subscription.validUntil], | ||
() => { | ||
store.commit("rws/setExpiredate", subscription.validUntil); | ||
}, | ||
{ immediate: true } | ||
); | ||
watch( | ||
subscription.devices, | ||
(devices) => { | ||
store.commit("rws/setUsers", devices); | ||
}, | ||
{ immediate: true } | ||
); | ||
} | ||
}; | ||
watch( | ||
subscription.devices, | ||
(devices) => { | ||
store.commit("rws/setUsers", devices); | ||
}, | ||
{ immediate: true } | ||
); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters