Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix(App): Remove deprecated components
Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Feb 5, 2024
commit cbff8f5abf31f14d3b26247de6213fe220fc3ffa
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