Skip to content

Commit

Permalink
move services
Browse files Browse the repository at this point in the history
  • Loading branch information
satkunas committed Dec 8, 2022
1 parent f82d5de commit b5c93bb
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</b-dropdown>
</template>
<script>
import BaseService from '@/views/Status/services/_components/BaseService'
import BaseService from './BaseService'
const components = {
BaseService
Expand All @@ -74,7 +74,7 @@ const components = {
import { computed, nextTick, ref, toRefs, watch } from '@vue/composition-api'
import acl from '@/utils/acl'
import i18n from '@/utils/locale'
import { localeStrings } from '@/views/Status/services/config'
import { localeStrings } from '@/globals/pfLocales'
const props = {
service: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</b-dropdown>
</template>
<script>
import BaseSystemService from '@/views/Status/services/_components/BaseSystemService'
import BaseSystemService from './BaseSystemService'
const components = {
BaseSystemService
Expand All @@ -66,7 +66,7 @@ const components = {
import { computed, nextTick, ref, toRefs, watch } from '@vue/composition-api'
import acl from '@/utils/acl'
import i18n from '@/utils/locale'
import { localeStrings } from '@/views/Status/services/config'
import { localeStrings } from '@/globals/pfLocales'
const props = {
service: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ import { computed, toRefs, watch } from '@vue/composition-api'
import { protectedServices } from '@/store/modules/cluster'
import acl from '@/utils/acl'
import i18n from '@/utils/locale'
import { localeStrings } from '../config'
import { localeStrings } from '@/globals/pfLocales'
const setup = (props, context) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const props = {
import { computed, toRefs, watch } from '@vue/composition-api'
import acl from '@/utils/acl'
import i18n from '@/utils/locale'
import { localeStrings } from '../config'
import { localeStrings } from '@/globals/pfLocales'
const setup = (props, context) => {
Expand Down
6 changes: 6 additions & 0 deletions html/pfappserver/root/src/components/new/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ import BaseSearchInputAdvanced from './BaseSearchInputAdvanced'
import BaseSearchInputColumns from './BaseSearchInputColumns'
import BaseSearchInputLimit from './BaseSearchInputLimit'
import BaseSearchInputPage from './BaseSearchInputPage'
import BaseService from './BaseService'
import BaseSystemService from './BaseSystemService'
import BaseTableEmpty from './BaseTableEmpty'
import BaseTableSortable from './BaseTableSortable'
import BaseUpload from './BaseUpload'
Expand Down Expand Up @@ -165,6 +167,10 @@ export {
BaseSearchInputLimit,
BaseSearchInputPage,

// services
BaseService,
BaseSystemService,

// tables
BaseTableEmpty,
BaseTableSortable,
Expand Down
22 changes: 21 additions & 1 deletion html/pfappserver/root/src/globals/pfLocales.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,30 @@ export const pfLocales = [
'fr_FR',
'he_IL',
'it_IT',
'nb_NO',
'nb_NO',
'nl_NL',
'pl_PL',
'pt_BR'
]

export const pfLocalesList = pfLocales.map(locale => { return { text: locale, value: locale } })

export const localeStrings = {
SERVICES_DISABLED_SUCCESS: 'Disabled services {services}.', // i18n defer
SERVICES_DISABLED_ERROR: 'Failed to disable services {services}. See the server error logs for more information.', // i18n defer
SERVICES_PROTECTED_DISABLED_ERROR: 'Failed to disable services {services}. This service is required for this page to function and CLI access may be required to remediate any issues caused by the failure. See the server error logs for more information.', // i18n defer

SERVICES_ENABLED_SUCCESS: 'Enabled services {services}.', // i18n defer
SERVICES_ENABLED_ERROR: 'Failed to enable services {services}. See the server error logs for more information.', // i18n defer
SERVICES_PROTECTED_ENABLED_ERROR: 'Failed to enable services {services}. This service is required for this page to function and CLI access may be required to remediate any issues caused by the failure. See the server error logs for more information.', // i18n defer

SERVICES_RESTARTED_SUCCESS: 'Restarted services {services}.', // i18n defer
SERVICES_RESTARTED_ERROR: 'Failed to restart services {services}. See the server error logs for more information.', // i18n defer
SERVICES_PROTECTED_RESTARTED_ERROR: 'Failed to restart services {services}. This service is required for this page to function and CLI access may be required to remediate any issues caused by the failure. See the server error logs for more information.', // i18n defer

SERVICES_STARTED_SUCCESS: 'Started services {services}.', // i18n defer
SERVICES_STARTED_ERROR: 'Failed to start services {services}. See the server error logs for more information.', // i18n defer

SERVICES_STOPPED_SUCCESS: 'Stopped services {services}.', // i18n defer
SERVICES_STOPPED_ERROR: 'Failed to stop services {services}. See the server error logs for more information.', // i18n defer
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const props = {
import { computed, nextTick, ref, toRefs } from '@vue/composition-api'
import i18n from '@/utils/locale'
import { localeStrings } from '../config'
import { localeStrings } from '@/globals/pfLocales'
const setup = (props, context) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@

<script>
import {
BaseService,
BaseTableEmpty
} from '@/components/new/'
import BaseButtonBulkActions from './BaseButtonBulkActions'
import BaseService from './BaseService'
const components = {
BaseButtonBulkActions,
Expand All @@ -109,7 +109,7 @@ const components = {
import { computed, customRef, onMounted, ref } from '@vue/composition-api'
import { useBootstrapTableSelected } from '@/composables/useBootstrap'
import i18n from '@/utils/locale'
import { localeStrings } from '../config'
import { localeStrings } from '@/globals/pfLocales'
const setup = (props, context) => {
Expand Down
19 changes: 0 additions & 19 deletions html/pfappserver/root/src/views/Status/services/config.js

This file was deleted.

0 comments on commit b5c93bb

Please sign in to comment.