2022-09-09 18:13:56 +00:00
|
|
|
<template>
|
2023-08-13 17:31:57 +00:00
|
|
|
<footer class="mt-10 w-full rounded-xl py-4 text-center children:(mx-3)">
|
2022-11-14 01:55:53 +00:00
|
|
|
<a aria-label="GitHub" href="https://github.com/TeamPiped/Piped" target="_blank">
|
2024-03-06 19:45:31 +00:00
|
|
|
<i class="i-fa6-brands:github" />
|
2023-07-27 11:46:05 +00:00
|
|
|
<span v-t="'actions.source_code'" class="ml-2" />
|
2022-11-14 01:55:53 +00:00
|
|
|
</a>
|
|
|
|
<a href="https://docs.piped.video/" target="_blank">
|
2024-03-06 19:45:31 +00:00
|
|
|
<i class="i-fa6-solid:book" />
|
2023-07-27 11:46:05 +00:00
|
|
|
<span v-t="'actions.documentation'" class="ml-2" />
|
2022-11-14 01:55:53 +00:00
|
|
|
</a>
|
|
|
|
<a href="https://github.com/TeamPiped/Piped#donations" target="_blank">
|
2024-03-06 19:45:31 +00:00
|
|
|
<i class="i-fa6-brands:bitcoin" />
|
2023-07-27 11:46:05 +00:00
|
|
|
<span v-t="'actions.donations'" class="ml-2" />
|
2022-11-14 01:55:53 +00:00
|
|
|
</a>
|
|
|
|
<a v-if="statusPageHref" :href="statusPageHref">
|
2024-03-06 19:45:31 +00:00
|
|
|
<i class="i-fa6-solid:server" />
|
2023-07-27 11:46:05 +00:00
|
|
|
<span v-t="'actions.status_page'" class="ml-2" />
|
2022-11-14 01:55:53 +00:00
|
|
|
</a>
|
|
|
|
<a v-if="donationHref" :href="donationHref">
|
2024-05-04 14:11:49 +00:00
|
|
|
<i class="i-fa6-solid:money-check" />
|
2023-07-27 11:46:05 +00:00
|
|
|
<span v-t="'actions.instance_donations'" class="ml-2" />
|
2022-11-14 01:55:53 +00:00
|
|
|
</a>
|
2023-09-07 21:38:37 +00:00
|
|
|
<a v-if="privacyPolicyHref" :href="privacyPolicyHref" target="_blank">
|
2024-03-06 19:45:31 +00:00
|
|
|
<i class="i-fa6-solid:eye" />
|
2023-09-07 21:38:37 +00:00
|
|
|
<span v-t="'actions.instance_privacy_policy'" class="ml-2" />
|
|
|
|
</a>
|
2022-11-14 01:55:53 +00:00
|
|
|
</footer>
|
2022-09-09 18:13:56 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-11-14 01:55:53 +00:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
donationHref: null,
|
|
|
|
statusPageHref: null,
|
2023-09-07 21:38:37 +00:00
|
|
|
privacyPolicyHref: null,
|
2022-11-14 01:55:53 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.fetchConfig();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
async fetchConfig() {
|
|
|
|
this.fetchJson(this.apiUrl() + "/config").then(config => {
|
|
|
|
this.donationHref = config?.donationUrl;
|
|
|
|
this.statusPageHref = config?.statusPageUrl;
|
2023-09-07 21:38:37 +00:00
|
|
|
this.privacyPolicyHref = config?.privacyPolicyUrl;
|
2022-11-14 01:55:53 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2022-09-09 18:13:56 +00:00
|
|
|
</script>
|
|
|
|
|
2022-09-10 09:09:54 +00:00
|
|
|
<style>
|
2022-11-14 01:55:53 +00:00
|
|
|
footer {
|
|
|
|
@apply bg-light-900;
|
|
|
|
}
|
|
|
|
.dark footer {
|
|
|
|
@apply bg-dark-800;
|
|
|
|
}
|
2022-09-09 18:13:56 +00:00
|
|
|
</style>
|