2020-05-08 18:02:18 +02:00
|
|
|
<template>
|
|
|
|
<div id="footer" class="text-light">
|
|
|
|
<div class="footer-left-elements">
|
|
|
|
<ul class="footer-elements">
|
2021-02-01 16:31:48 +01:00
|
|
|
<li class="footer-element">
|
|
|
|
<i class="mdi mdi-18px mdi-database mr-1" />
|
|
|
|
<small>{{ versionString }}</small>
|
2020-05-08 18:02:18 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="footer-right-elements">
|
|
|
|
<ul class="footer-elements">
|
2022-02-11 23:19:43 +01:00
|
|
|
<li class="footer-element footer-link" @click="openOutside('https://www.paypal.com/paypalme/fabiodistasio')">
|
|
|
|
<i class="mdi mdi-18px mdi-coffee mr-1" />
|
|
|
|
<small>{{ $t('word.donate') }}</small>
|
2020-05-08 18:02:18 +02:00
|
|
|
</li>
|
2020-12-11 16:05:32 +01:00
|
|
|
<li class="footer-element footer-link" @click="openOutside('https://github.com/Fabio286/antares/issues')">
|
2020-08-12 10:48:18 +02:00
|
|
|
<i class="mdi mdi-18px mdi-bug" />
|
2020-05-31 17:56:33 +02:00
|
|
|
</li>
|
|
|
|
<li class="footer-element footer-link" @click="showSettingModal('about')">
|
2020-08-12 10:48:18 +02:00
|
|
|
<i class="mdi mdi-18px mdi-information-outline" />
|
2020-05-08 18:02:18 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-05-31 17:56:33 +02:00
|
|
|
import { mapActions, mapGetters } from 'vuex';
|
2020-06-27 15:14:08 +02:00
|
|
|
const { shell } = require('electron');
|
2020-05-08 18:02:18 +02:00
|
|
|
|
|
|
|
export default {
|
2020-05-31 17:56:33 +02:00
|
|
|
name: 'TheFooter',
|
|
|
|
computed: {
|
|
|
|
...mapGetters({
|
2021-02-01 16:31:48 +01:00
|
|
|
workspace: 'workspaces/getSelected',
|
|
|
|
getWorkspace: 'workspaces/getWorkspace',
|
2020-05-31 17:56:33 +02:00
|
|
|
appVersion: 'application/appVersion'
|
2021-02-01 16:31:48 +01:00
|
|
|
}),
|
|
|
|
version () {
|
|
|
|
return this.getWorkspace(this.workspace) ? this.getWorkspace(this.workspace).version : null;
|
|
|
|
},
|
|
|
|
versionString () {
|
|
|
|
if (this.version)
|
|
|
|
return `${this.version.name} ${this.version.number} (${this.version.arch} ${this.version.os})`;
|
|
|
|
return '';
|
|
|
|
}
|
2020-05-31 17:56:33 +02:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
...mapActions({
|
|
|
|
showSettingModal: 'application/showSettingModal'
|
2020-06-27 15:14:08 +02:00
|
|
|
}),
|
|
|
|
openOutside (link) {
|
|
|
|
shell.openExternal(link);
|
|
|
|
}
|
2020-05-31 17:56:33 +02:00
|
|
|
}
|
2020-05-08 18:02:18 +02:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2020-07-31 18:16:28 +02:00
|
|
|
#footer {
|
|
|
|
height: $footer-height;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 0.2rem;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
.footer-elements {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
2020-05-08 18:02:18 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-07-31 18:16:28 +02:00
|
|
|
.footer-element {
|
|
|
|
height: $footer-height;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 0.4rem;
|
|
|
|
margin: 0;
|
2020-05-31 17:56:33 +02:00
|
|
|
|
2020-07-31 18:16:28 +02:00
|
|
|
&.footer-link {
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background 0.2s;
|
|
|
|
}
|
2020-05-08 18:02:18 +02:00
|
|
|
}
|
2020-07-31 18:16:28 +02:00
|
|
|
}
|
|
|
|
}
|
2020-05-08 18:02:18 +02:00
|
|
|
</style>
|