summaryrefslogtreecommitdiffstats
path: root/core/src/components
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-22 14:29:58 +0200
committerVincent Petry <vincent@nextcloud.com>2022-08-25 08:38:00 +0200
commitd0473214cd2582ec63f4a5021a8f5927f67bc98f (patch)
tree455708226929d13d55e24bde90833e1508a38714 /core/src/components
parent708018795863999b674d1e3e900313785893d6a8 (diff)
downloadnextcloud-server-d0473214cd2582ec63f4a5021a8f5927f67bc98f.tar.gz
nextcloud-server-d0473214cd2582ec63f4a5021a8f5927f67bc98f.zip
Add Nc prefix to Nc vue component names
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'core/src/components')
-rw-r--r--core/src/components/UnifiedSearch/SearchResult.vue6
-rw-r--r--core/src/components/login/LoginButton.vue8
-rw-r--r--core/src/components/login/LoginForm.vue8
-rw-r--r--core/src/components/setup/RecommendedApps.vue12
4 files changed, 17 insertions, 17 deletions
diff --git a/core/src/components/UnifiedSearch/SearchResult.vue b/core/src/components/UnifiedSearch/SearchResult.vue
index 2df3123f8fe..dfd20868480 100644
--- a/core/src/components/UnifiedSearch/SearchResult.vue
+++ b/core/src/components/UnifiedSearch/SearchResult.vue
@@ -52,7 +52,7 @@
<!-- Title and sub-title -->
<span class="unified-search__result-content">
<h3 class="unified-search__result-line-one" :title="title">
- <Highlight :text="title" :search="query" />
+ <NcHighlight :text="title" :search="query" />
</h3>
<h4 v-if="subline" class="unified-search__result-line-two" :title="subline">{{ subline }}</h4>
</span>
@@ -60,13 +60,13 @@
</template>
<script>
-import Highlight from '@nextcloud/vue/dist/Components/Highlight'
+import NcHighlight from '@nextcloud/vue/dist/Components/NcHighlight'
export default {
name: 'SearchResult',
components: {
- Highlight,
+ NcHighlight,
},
props: {
diff --git a/core/src/components/login/LoginButton.vue b/core/src/components/login/LoginButton.vue
index a29314beb2f..c9aaa2522c6 100644
--- a/core/src/components/login/LoginButton.vue
+++ b/core/src/components/login/LoginButton.vue
@@ -20,7 +20,7 @@
-->
<template>
- <ButtonVue type="primary"
+ <NcButton type="primary"
native-type="submit"
:wide="true"
@click="$emit('click')">
@@ -29,18 +29,18 @@
<div v-if="loading" class="submit-wrapper__icon icon-loading-small-dark" />
<ArrowRight v-else class="submit-wrapper__icon" />
</template>
- </ButtonVue>
+ </NcButton>
</template>
<script>
-import ButtonVue from '@nextcloud/vue/dist/Components/ButtonVue'
+import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import ArrowRight from 'vue-material-design-icons/ArrowRight.vue'
export default {
name: 'LoginButton',
components: {
ArrowRight,
- ButtonVue,
+ NcButton,
},
props: {
value: {
diff --git a/core/src/components/login/LoginForm.vue b/core/src/components/login/LoginForm.vue
index 5bea7df40d3..e05fa4c17ea 100644
--- a/core/src/components/login/LoginForm.vue
+++ b/core/src/components/login/LoginForm.vue
@@ -84,7 +84,7 @@
required>
<label for="password"
class="infield">{{ t('core', 'Password') }}</label>
- <ButtonVue class="toggle-password"
+ <NcButton class="toggle-password"
type="tertiary-no-background"
:aria-label="isPasswordHidden ? t('core', 'Show password') : t('core', 'Hide password')"
@click.stop.prevent="togglePassword">
@@ -92,7 +92,7 @@
<Eye v-if="isPasswordHidden" :size="20" />
<EyeOff v-else :size="20" />
</template>
- </ButtonVue>
+ </NcButton>
</p>
<LoginButton :loading="loading" />
@@ -136,7 +136,7 @@
import jstz from 'jstimezonedetect'
import { generateUrl, imagePath } from '@nextcloud/router'
-import ButtonVue from '@nextcloud/vue/dist/Components/ButtonVue'
+import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import Eye from 'vue-material-design-icons/Eye'
import EyeOff from 'vue-material-design-icons/EyeOff'
@@ -146,7 +146,7 @@ export default {
name: 'LoginForm',
components: {
- ButtonVue,
+ NcButton,
Eye,
EyeOff,
LoginButton,
diff --git a/core/src/components/setup/RecommendedApps.vue b/core/src/components/setup/RecommendedApps.vue
index 3bc046c89a6..1582658d37e 100644
--- a/core/src/components/setup/RecommendedApps.vue
+++ b/core/src/components/setup/RecommendedApps.vue
@@ -54,19 +54,19 @@
</div>
<div class="dialog-row">
- <ButtonVue v-if="showInstallButton"
+ <NcButton v-if="showInstallButton"
type="tertiary"
role="link"
href="defaultPageUrl"
@click="goTo(defaultPageUrl)">
{{ t('core', 'Skip') }}
- </ButtonVue>
+ </NcButton>
- <ButtonVue v-if="showInstallButton"
+ <NcButton v-if="showInstallButton"
type="primary"
@click.stop.prevent="installApps">
{{ t('core', 'Install recommended apps') }}
- </ButtonVue>
+ </NcButton>
</div>
</div>
</template>
@@ -78,7 +78,7 @@ import { loadState } from '@nextcloud/initial-state'
import pLimit from 'p-limit'
import { translate as t } from '@nextcloud/l10n'
-import ButtonVue from '@nextcloud/vue/dist/Components/ButtonVue'
+import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import logger from '../../logger'
@@ -114,7 +114,7 @@ const defaultPageUrl = loadState('core', 'defaultPageUrl')
export default {
name: 'RecommendedApps',
components: {
- ButtonVue,
+ NcButton,
},
data() {
return {