Skip to content

Commit

Permalink
Fix(App): Remove deprecated components
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
  • Loading branch information
DorraJaouad committed Feb 5, 2024
1 parent 23f61ed commit cbff8f5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
-
-->
<template>
<SettingsSection :title="t('bruteforcesettings', 'Brute-force IP whitelist')"
<NcSettingsSection :title="t('bruteforcesettings', 'Brute-force IP whitelist')"
doc-url="https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/bruteforce_configuration.html">
<p class="settings-hint">
{{ t('bruteforcesettings', 'To whitelist IP ranges from the brute-force protection specify them below. Note that any whitelisted IP can perform authentication attempts without any throttling. For security reasons, it is recommended to whitelist as few hosts as possible or ideally even none at all.') }}
Expand Down Expand Up @@ -51,32 +51,32 @@
max="128"
maxlength="2"
placeholder="64">
<Button native-type="submit">
<NcButton type="secondary">
<template #icon>
<Plus />
<PlusIcon />
</template>
{{ t('bruteforcesettings', 'Add') }}
</Button>
</NcButton>
</form>
</SettingsSection>
</NcSettingsSection>
</template>

<script>
import { generateUrl } from '@nextcloud/router'
import axios from '@nextcloud/axios'
import Button from '@nextcloud/vue/dist/Components/Button'
import SettingsSection from '@nextcloud/vue/dist/Components/SettingsSection'
import Plus from 'vue-material-design-icons/Plus'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
import PlusIcon from 'vue-material-design-icons/Plus.vue'

import BruteForceItem from './components/BruteForceItem'
import BruteForceItem from './components/BruteForceItem.vue'

export default {
name: 'App',
components: {
Button,
NcButton,
BruteForceItem,
Plus,
SettingsSection,
PlusIcon,
NcSettingsSection,
},
data() {
return {
Expand Down

0 comments on commit cbff8f5

Please sign in to comment.