use external link component for links

This commit is contained in:
Simon Vieille
2025-04-16 12:17:40 +02:00
parent 51233920f9
commit 4de7c72b1e
3 changed files with 47 additions and 65 deletions
+5 -18
View File
@@ -69,7 +69,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
label="Open apps in new tab"
:middle="true"
/>
<SettingValue>
<SettingValue class="cm-settings-children-inline">
<FormSelect
v-model="config['target-blank-mode']"
:options="[
@@ -103,13 +103,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
:middle="true"
/>
<SettingValue>
<a
target="_blank"
href="https://www.buymeacoffee.com/deblan"
rel="noopener"
>
<ExternalLink href="https://www.buymeacoffee.com/deblan">
<NcButton variant="secondary">{{ trans('Buy me a coffee ☕') }}</NcButton>
</a>
</ExternalLink>
</SettingValue>
</SettingItem>
@@ -123,17 +119,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import { NcContent, NcAppContent, NcButton } from '@nextcloud/vue'
import { ref, onMounted } from 'vue'
import { useConfigStore } from '../store/config.js'
import SettingsSection from '../components/settings/SettingsSection'
import SettingItem from '../components/settings/SettingItem'
import SettingLabel from '../components/settings/SettingLabel'
import SettingValue from '../components/settings/SettingValue'
import SectionTitle from '../components/settings/SectionTitle'
import UserSaveButton from '../components/settings/UserSaveButton'
import FormYesNo from '../components/settings/form/FormYesNo'
import FormAppPicker from '../components/settings/form/FormAppPicker'
import FormAppSort from '../components/settings/form/FormAppSort'
import FormSelect from '../components/settings/form/FormSelect'
import { FormSelect, FormYesNo, FormAppPicker, FormAppSort } from '../components/settings/form'
import { SettingsSection, SettingItem, SettingLabel, SettingValue, SectionTitle, ExternalLink, UserSaveButton } from '../components/settings'
const config = ref(null)
const configStore = useConfigStore()