Skip to content

Commit 9ebc9fb

Browse files
authored
Merge pull request #5624 from henmohr/support-icon
Add suport message and button
2 parents c864f24 + 4ea10f5 commit 9ebc9fb

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

src/views/Settings/Settings.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
<template>
77
<NcSettingsSection :name="name">
8+
<SupportProject />
89
<CertificateEngine />
910
<DownloadBinaries />
1011
<ConfigureCheck />
@@ -43,6 +44,7 @@ import RootCertificateCfssl from './RootCertificateCfssl.vue'
4344
import RootCertificateOpenSsl from './RootCertificateOpenSsl.vue'
4445
import SignatureHashAlgorithm from './SignatureHashAlgorithm.vue'
4546
import SignatureStamp from './SignatureStamp.vue'
47+
import SupportProject from './SupportProject.vue'
4648
import TSA from './TSA.vue'
4749
import Validation from './Validation.vue'
4850
@@ -64,6 +66,7 @@ export default {
6466
RootCertificateOpenSsl,
6567
SignatureHashAlgorithm,
6668
SignatureStamp,
69+
SupportProject,
6770
TSA,
6871
Validation,
6972
Reminders,
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!--
2+
- SPDX-FileCopyrightText: 2025 LibreCode coop and LibreCode contributors
3+
- SPDX-License-Identifier: AGPL-3.0-or-later
4+
-->
5+
<template>
6+
<NcSettingsSection :name="name" :description="description">
7+
<div class="support-project-content">
8+
<p class="support-message">
9+
{{ t('libresign', 'LibreSign is developed with ❤️ by LibreCode coop. Your support helps us maintain and improve this free and open-source project.') }}
10+
</p>
11+
<div class="support-buttons">
12+
<NcButton type="primary"
13+
href="https://github.com/sponsors/libresign"
14+
target="_blank"
15+
rel="noopener noreferrer">
16+
<template #icon>
17+
<HeartIcon :size="20" />
18+
</template>
19+
{{ t('libresign', 'Sponsor on GitHub') }}
20+
</NcButton>
21+
<NcButton href="https://buy.stripe.com/eVqfZibhx8QO3LseWc2kw00"
22+
target="_blank"
23+
rel="noopener noreferrer">
24+
<template #icon>
25+
<CurrencyUsdIcon :size="20" />
26+
</template>
27+
{{ t('libresign', 'Donate via Stripe') }}
28+
</NcButton>
29+
<NcButton href="https://libresign.coop"
30+
target="_blank"
31+
rel="noopener noreferrer">
32+
<template #icon>
33+
<InformationIcon :size="20" />
34+
</template>
35+
{{ t('libresign', 'Learn more') }}
36+
</NcButton>
37+
</div>
38+
</div>
39+
</NcSettingsSection>
40+
</template>
41+
42+
<script>
43+
import CurrencyUsdIcon from 'vue-material-design-icons/CurrencyUsd.vue'
44+
import HeartIcon from 'vue-material-design-icons/Heart.vue'
45+
import InformationIcon from 'vue-material-design-icons/Information.vue'
46+
47+
import { translate as t } from '@nextcloud/l10n'
48+
49+
import NcButton from '@nextcloud/vue/components/NcButton'
50+
import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection'
51+
52+
export default {
53+
name: 'SupportProject',
54+
components: {
55+
CurrencyUsdIcon,
56+
HeartIcon,
57+
InformationIcon,
58+
NcButton,
59+
NcSettingsSection,
60+
},
61+
data() {
62+
return {
63+
name: t('libresign', 'Support LibreSign'),
64+
description: t('libresign', 'Help us continue developing and maintaining LibreSign'),
65+
}
66+
},
67+
}
68+
</script>
69+
70+
<style scoped>
71+
.support-project-content {
72+
display: flex;
73+
flex-direction: column;
74+
gap: 16px;
75+
max-width: 600px;
76+
}
77+
78+
.support-message {
79+
margin: 0;
80+
color: var(--color-text-lighter);
81+
line-height: 1.5;
82+
}
83+
84+
.support-buttons {
85+
display: flex;
86+
gap: 12px;
87+
flex-wrap: wrap;
88+
}
89+
</style>

0 commit comments

Comments
 (0)