refactor: turn all components/views to compat 3

This commit is contained in:
axolotle 2024-03-08 03:02:25 +01:00
parent 37cc90dffd
commit f1cbc360c7
83 changed files with 83 additions and 0 deletions

View file

@ -101,6 +101,7 @@ import { mapGetters } from 'vuex'
import { HistoryConsole, ViewLockOverlay } from '@/views/_partials' import { HistoryConsole, ViewLockOverlay } from '@/views/_partials'
export default { export default {
compatConfig: { MODE: 3 },
name: 'App', name: 'App',
components: { components: {

View file

@ -39,6 +39,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'AdressInputSelect', name: 'AdressInputSelect',
inheritAttrs: false, inheritAttrs: false,

View file

@ -23,6 +23,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'CardCollapse', name: 'CardCollapse',
props: { props: {

View file

@ -3,6 +3,7 @@
// https://www.w3.org/WAI/ARIA/apg/patterns/feed/ // https://www.w3.org/WAI/ARIA/apg/patterns/feed/
export default { export default {
compatConfig: { MODE: 3 },
name: 'CardDeckFeed', name: 'CardDeckFeed',
props: { props: {

View file

@ -54,6 +54,7 @@
import { filterObject } from '@/helpers/commons' import { filterObject } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ConfigPanel', name: 'ConfigPanel',
props: { props: {

View file

@ -30,6 +30,7 @@ import { toRef } from 'vue'
import { useVuelidate } from '@vuelidate/core' import { useVuelidate } from '@vuelidate/core'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ConfigPanels', name: 'ConfigPanels',
inheritAttrs: false, inheritAttrs: false,

View file

@ -6,6 +6,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'LazyRenderer', name: 'LazyRenderer',
props: { props: {

View file

@ -24,6 +24,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'MessageListGroup', name: 'MessageListGroup',
props: { props: {

View file

@ -49,6 +49,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'QueryHeader', name: 'QueryHeader',
props: { props: {

View file

@ -45,6 +45,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'RecursiveListGroup', name: 'RecursiveListGroup',
props: { props: {

View file

@ -33,6 +33,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'RoutableTabs', name: 'RoutableTabs',
// Thanks to `v-bind="$attrs"` and `inheritAttrs: false`, this component can forward // Thanks to `v-bind="$attrs"` and `inheritAttrs: false`, this component can forward

View file

@ -32,6 +32,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'AbstractForm', name: 'AbstractForm',
props: { props: {

View file

@ -37,6 +37,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'CardForm', name: 'CardForm',
props: { props: {

View file

@ -16,6 +16,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'DescriptionRow', name: 'DescriptionRow',
props: { props: {

View file

@ -24,6 +24,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'ExplainWhat', name: 'ExplainWhat',
props: { props: {

View file

@ -49,6 +49,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'FormField', name: 'FormField',
inheritAttrs: false, inheritAttrs: false,

View file

@ -13,6 +13,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'ReadOnlyField', name: 'ReadOnlyField',
inheritAttrs: false, inheritAttrs: false,

View file

@ -16,6 +16,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'TopBar', name: 'TopBar',
props: { props: {

View file

@ -33,6 +33,7 @@
import api from '@/api' import api from '@/api'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ViewBase', name: 'ViewBase',
props: { props: {

View file

@ -57,6 +57,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'ViewSearch', name: 'ViewSearch',
props: { props: {

View file

@ -18,6 +18,7 @@
import { DEFAULT_STATUS_ICON } from '@/helpers/yunohostArguments' import { DEFAULT_STATUS_ICON } from '@/helpers/yunohostArguments'
export default { export default {
compatConfig: { MODE: 3 },
name: 'YAlert', name: 'YAlert',
props: { props: {

View file

@ -20,6 +20,7 @@
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
compatConfig: { MODE: 3 },
name: 'YBreadcrumb', name: 'YBreadcrumb',
computed: { computed: {

View file

@ -56,6 +56,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'YCard', name: 'YCard',
props: { props: {

View file

@ -7,6 +7,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'YIcon', name: 'YIcon',
props: { props: {
iname: { type: String, required: true }, iname: { type: String, required: true },

View file

@ -14,6 +14,7 @@
import { DEFAULT_STATUS_ICON } from '@/helpers/yunohostArguments' import { DEFAULT_STATUS_ICON } from '@/helpers/yunohostArguments'
export default { export default {
compatConfig: { MODE: 3 },
name: 'YListGroupItem', name: 'YListGroupItem',
props: { props: {

View file

@ -6,6 +6,7 @@
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
compatConfig: { MODE: 3 },
name: 'YSpinner', name: 'YSpinner',
computed: { computed: {

View file

@ -13,6 +13,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'ButtonItem', name: 'ButtonItem',
props: { props: {

View file

@ -12,6 +12,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'CheckboxItem', name: 'CheckboxItem',
props: { props: {

View file

@ -6,6 +6,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'DisplayTextItem', name: 'DisplayTextItem',
props: { props: {

View file

@ -30,6 +30,7 @@
import { getFileContent } from '@/helpers/commons' import { getFileContent } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'FileItem', name: 'FileItem',
props: { props: {

View file

@ -18,6 +18,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'InputItem', name: 'InputItem',
props: { props: {

View file

@ -4,6 +4,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'MarkdownItem', name: 'MarkdownItem',
props: { props: {

View file

@ -12,6 +12,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'ReadOnlyAlertItem', name: 'ReadOnlyAlertItem',
props: { props: {

View file

@ -11,6 +11,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'SelectItem', name: 'SelectItem',
props: { props: {

View file

@ -16,6 +16,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'TagsItem', name: 'TagsItem',
data() { data() {

View file

@ -93,6 +93,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'TagsSelectizeItem', name: 'TagsSelectizeItem',
inheritAttrs: false, inheritAttrs: false,

View file

@ -13,6 +13,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'TextAreaItem', name: 'TextAreaItem',
props: { props: {

View file

@ -21,6 +21,7 @@
import { randint } from '@/helpers/commons' import { randint } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'CardButtonsSkeleton', name: 'CardButtonsSkeleton',
props: { props: {

View file

@ -47,6 +47,7 @@
import { randint } from '@/helpers/commons' import { randint } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'CardFormSkeleton', name: 'CardFormSkeleton',
props: { props: {

View file

@ -19,6 +19,7 @@
import { randint } from '@/helpers/commons' import { randint } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'CardInfoSkeleton', name: 'CardInfoSkeleton',
props: { props: {

View file

@ -23,6 +23,7 @@
import { randint } from '@/helpers/commons' import { randint } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'CardListSkeleton', name: 'CardListSkeleton',
props: { props: {

View file

@ -11,6 +11,7 @@
import { randint } from '@/helpers/commons' import { randint } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ListGroupSkeleton', name: 'ListGroupSkeleton',
props: { props: {

View file

@ -16,6 +16,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'HomeView', name: 'HomeView',
data() { data() {

View file

@ -39,6 +39,7 @@ import { useVuelidate } from '@vuelidate/core'
import { alphalownumdot_, required, minLength } from '@/helpers/validators' import { alphalownumdot_, required, minLength } from '@/helpers/validators'
export default { export default {
compatConfig: { MODE: 3 },
name: 'LoginView', name: 'LoginView',
props: { props: {

View file

@ -104,6 +104,7 @@ import {
} from '@/helpers/validators' } from '@/helpers/validators'
export default { export default {
compatConfig: { MODE: 3 },
name: 'PostInstall', name: 'PostInstall',
components: { components: {

View file

@ -129,6 +129,7 @@ import {
} from '@/helpers/validators' } from '@/helpers/validators'
export default { export default {
compatConfig: { MODE: 3 },
name: 'DomainForm', name: 'DomainForm',
props: { props: {

View file

@ -54,6 +54,7 @@
import MessageListGroup from '@/components/MessageListGroup.vue' import MessageListGroup from '@/components/MessageListGroup.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ErrorDisplay', name: 'ErrorDisplay',
components: { components: {

View file

@ -94,6 +94,7 @@ import QueryHeader from '@/components/QueryHeader.vue'
import MessageListGroup from '@/components/MessageListGroup.vue' import MessageListGroup from '@/components/MessageListGroup.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'HistoryConsole', name: 'HistoryConsole',
components: { components: {

View file

@ -43,6 +43,7 @@ import api from '@/api'
import LoginView from '@/views/LoginView.vue' import LoginView from '@/views/LoginView.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ReconnectingDisplay', name: 'ReconnectingDisplay',
components: { components: {

View file

@ -30,6 +30,7 @@ import {
import QueryHeader from '@/components/QueryHeader.vue' import QueryHeader from '@/components/QueryHeader.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ViewLockOverlay', name: 'ViewLockOverlay',
components: { components: {

View file

@ -30,6 +30,7 @@
import MessageListGroup from '@/components/MessageListGroup.vue' import MessageListGroup from '@/components/MessageListGroup.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'WaitingDisplay', name: 'WaitingDisplay',
components: { components: {

View file

@ -13,6 +13,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'WarningDisplay', name: 'WarningDisplay',
props: { props: {

View file

@ -227,6 +227,7 @@ import { required, appRepoUrl } from '@/helpers/validators'
import { randint } from '@/helpers/commons' import { randint } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'AppCatalog', name: 'AppCatalog',
components: { components: {

View file

@ -377,6 +377,7 @@ import {
import ConfigPanels from '@/components/ConfigPanels.vue' import ConfigPanels from '@/components/ConfigPanels.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'AppInfo', name: 'AppInfo',
components: { components: {

View file

@ -217,6 +217,7 @@ import {
import CardCollapse from '@/components/CardCollapse.vue' import CardCollapse from '@/components/CardCollapse.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'AppInstall', name: 'AppInstall',
components: { components: {

View file

@ -39,6 +39,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'AppList', name: 'AppList',
data() { data() {

View file

@ -127,6 +127,7 @@
import api from '@/api' import api from '@/api'
export default { export default {
compatConfig: { MODE: 3 },
name: 'BackupCreate', name: 'BackupCreate',
props: { props: {

View file

@ -142,6 +142,7 @@ import { humanSize } from '@/helpers/filters/human'
import { isEmptyValue } from '@/helpers/commons' import { isEmptyValue } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'BackupInfo', name: 'BackupInfo',
props: { props: {

View file

@ -49,6 +49,7 @@ import { distanceToNow, readableDate } from '@/helpers/filters/date'
import { humanSize } from '@/helpers/filters/human' import { humanSize } from '@/helpers/filters/human'
export default { export default {
compatConfig: { MODE: 3 },
name: 'BackupList', name: 'BackupList',
props: { props: {

View file

@ -24,6 +24,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'BackupView', name: 'BackupView',
data() { data() {

View file

@ -153,6 +153,7 @@ import { distanceToNow } from '@/helpers/filters/date'
import { DEFAULT_STATUS_ICON } from '@/helpers/yunohostArguments' import { DEFAULT_STATUS_ICON } from '@/helpers/yunohostArguments'
export default { export default {
compatConfig: { MODE: 3 },
name: 'DiagnosisView', name: 'DiagnosisView',
data() { data() {

View file

@ -14,6 +14,7 @@ import api from '@/api'
import { DomainForm } from '@/views/_partials' import { DomainForm } from '@/views/_partials'
export default { export default {
compatConfig: { MODE: 3 },
name: 'DomainAdd', name: 'DomainAdd',
data() { data() {

View file

@ -148,6 +148,7 @@ import api from '@/api'
import { isEmptyValue } from '@/helpers/commons' import { isEmptyValue } from '@/helpers/commons'
export default { export default {
compatConfig: { MODE: 3 },
name: 'DomainDns', name: 'DomainDns',
props: { props: {

View file

@ -149,6 +149,7 @@ import ConfigPanels from '@/components/ConfigPanels.vue'
import DomainDns from './DomainDns.vue' import DomainDns from './DomainDns.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'DomainInfo', name: 'DomainInfo',
components: { components: {

View file

@ -53,6 +53,7 @@ import { mapGetters } from 'vuex'
import RecursiveListGroup from '@/components/RecursiveListGroup.vue' import RecursiveListGroup from '@/components/RecursiveListGroup.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'DomainList', name: 'DomainList',
components: { components: {

View file

@ -22,6 +22,7 @@ import api from '@/api'
import { required, alphalownumdot_ } from '@/helpers/validators' import { required, alphalownumdot_ } from '@/helpers/validators'
export default { export default {
compatConfig: { MODE: 3 },
name: 'GroupCreate', name: 'GroupCreate',
setup() { setup() {

View file

@ -142,6 +142,7 @@ import TagsSelectizeItem from '@/components/globals/formItems/TagsSelectizeItem.
// TODO add global search with type (search by: group, user, permission) // TODO add global search with type (search by: group, user, permission)
// TODO add vuex store update on inputs ? // TODO add vuex store update on inputs ?
export default { export default {
compatConfig: { MODE: 3 },
name: 'GroupList', name: 'GroupList',
components: { components: {

View file

@ -86,6 +86,7 @@ import api from '@/api'
import { distanceToNow } from '@/helpers/filters/date' import { distanceToNow } from '@/helpers/filters/date'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ServiceInfo', name: 'ServiceInfo',
props: { props: {

View file

@ -46,6 +46,7 @@
import { distanceToNow } from '@/helpers/filters/date' import { distanceToNow } from '@/helpers/filters/date'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ServiceList', name: 'ServiceList',
data() { data() {

View file

@ -125,6 +125,7 @@ import api from '@/api'
import { required, integer, between } from '@/helpers/validators' import { required, integer, between } from '@/helpers/validators'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ToolFirewall', name: 'ToolFirewall',
setup() { setup() {

View file

@ -15,6 +15,7 @@
<script> <script>
export default { export default {
compatConfig: { MODE: 3 },
name: 'ToolList', name: 'ToolList',
data() { data() {

View file

@ -78,6 +78,7 @@ import { escapeHtml } from '@/helpers/commons'
import { readableDate } from '@/helpers/filters/date' import { readableDate } from '@/helpers/filters/date'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ToolLog', name: 'ToolLog',
props: { props: {

View file

@ -29,6 +29,7 @@
import { distanceToNow, readableDate } from '@/helpers/filters/date' import { distanceToNow, readableDate } from '@/helpers/filters/date'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ToolLogs', name: 'ToolLogs',
data() { data() {

View file

@ -91,6 +91,7 @@ import api from '@/api'
// FIXME not tested with pending migrations (disclaimer and stuff) // FIXME not tested with pending migrations (disclaimer and stuff)
export default { export default {
compatConfig: { MODE: 3 },
name: 'ToolMigrations', name: 'ToolMigrations',
data() { data() {

View file

@ -37,6 +37,7 @@
import api from '@/api' import api from '@/api'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ToolPower', name: 'ToolPower',
methods: { methods: {

View file

@ -23,6 +23,7 @@ import {
import ConfigPanels from '@/components/ConfigPanels.vue' import ConfigPanels from '@/components/ConfigPanels.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'ToolSettingsConfig', name: 'ToolSettingsConfig',
components: { components: {

View file

@ -27,6 +27,7 @@ function mapStoreGetSet(props = [], action = 'commit') {
} }
export default { export default {
compatConfig: { MODE: 3 },
name: 'ToolWebadmin', name: 'ToolWebadmin',
data() { data() {

View file

@ -144,6 +144,7 @@ import { mapGetters } from 'vuex'
import CardCollapse from '@/components/CardCollapse.vue' import CardCollapse from '@/components/CardCollapse.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'SystemUpdate', name: 'SystemUpdate',
components: { components: {

View file

@ -84,6 +84,7 @@ import {
} from '@/helpers/validators' } from '@/helpers/validators'
export default { export default {
compatConfig: { MODE: 3 },
name: 'UserCreate', name: 'UserCreate',
setup() { setup() {

View file

@ -134,6 +134,7 @@ import {
import AdressInputSelect from '@/components/AdressInputSelect.vue' import AdressInputSelect from '@/components/AdressInputSelect.vue'
export default { export default {
compatConfig: { MODE: 3 },
name: 'UserEdit', name: 'UserEdit',
props: { props: {

View file

@ -29,6 +29,7 @@ import { formatFormData } from '@/helpers/yunohostArguments'
import { required } from '@/helpers/validators' import { required } from '@/helpers/validators'
export default { export default {
compatConfig: { MODE: 3 },
name: 'UserImport', name: 'UserImport',
setup() { setup() {

View file

@ -106,6 +106,7 @@
import api from '@/api' import api from '@/api'
export default { export default {
compatConfig: { MODE: 3 },
name: 'UserInfo', name: 'UserInfo',
props: { props: {

View file

@ -56,6 +56,7 @@
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
compatConfig: { MODE: 3 },
name: 'UserList', name: 'UserList',
data() { data() {