Browse Source

chore: i18n front end JSON based updates

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/1339/head
Raju Udava 3 years ago
parent
commit
66843c037a
  1. 3
      packages/nc-gui/components/auth/apiTokens.vue
  2. 6
      packages/nc-gui/components/auth/authHooks.vue
  3. 3
      packages/nc-gui/components/auth/roles.vue
  4. 3
      packages/nc-gui/components/changeEnv.vue
  5. 3
      packages/nc-gui/components/environment.vue
  6. 6
      packages/nc-gui/components/globalAcl.vue
  7. 3
      packages/nc-gui/components/project/apiClientSwagger.vue
  8. 3
      packages/nc-gui/components/project/auditTab/audit.vue
  9. 3
      packages/nc-gui/components/project/auditTab/db.vue
  10. 6
      packages/nc-gui/components/project/cronJobs.vue
  11. 3
      packages/nc-gui/components/project/dlgs/dlgAddRelation.vue
  12. 3
      packages/nc-gui/components/project/dlgs/dlgTriggerAddEdit.vue
  13. 6
      packages/nc-gui/components/project/functionTab/functionAcl.vue
  14. 3
      packages/nc-gui/components/project/functionTab/functionQuery.vue
  15. 6
      packages/nc-gui/components/project/gqlHandlerCodeEditor.vue
  16. 3
      packages/nc-gui/components/project/grpcClient.vue
  17. 6
      packages/nc-gui/components/project/grpcHandlerCodeEditor.vue
  18. 3
      packages/nc-gui/components/project/procedureTab/procedureAcl.vue
  19. 3
      packages/nc-gui/components/project/procedureTab/procedureQuery.vue
  20. 11
      packages/nc-gui/components/project/projectMetadata/disableOrEnableModels.vue
  21. 3
      packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableFunctions.vue
  22. 3
      packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableProcedures.vue
  23. 6
      packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableRelations.vue
  24. 5
      packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableTables.vue
  25. 6
      packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableViews.vue
  26. 6
      packages/nc-gui/components/project/projectMetadata/uiAcl/toggleFunctionUIAcl.vue
  27. 6
      packages/nc-gui/components/project/projectMetadata/uiAcl/toggleProcedureUIAcl.vue
  28. 6
      packages/nc-gui/components/project/projectMetadata/uiAcl/toggleRelationsUIAcl.vue
  29. 6
      packages/nc-gui/components/project/projectMetadata/uiAcl/toggleTableUIAcl.vue
  30. 6
      packages/nc-gui/components/project/projectMetadata/uiAcl/toggleViewUIAcl.vue
  31. 6
      packages/nc-gui/components/project/restHandlerCodeEditor.vue
  32. 6
      packages/nc-gui/components/project/sequence.vue
  33. 3
      packages/nc-gui/components/project/settings/env.vue
  34. 6
      packages/nc-gui/components/project/settings/logs.vue
  35. 27
      packages/nc-gui/components/project/settings/xcMeta.vue
  36. 6
      packages/nc-gui/components/project/spreadsheet/components/editColumn.vue
  37. 6
      packages/nc-gui/components/project/spreadsheet/components/editVirtualColumn.vue
  38. 9
      packages/nc-gui/components/project/spreadsheet/components/editableCell/jsonEditableCell.vue
  39. 6
      packages/nc-gui/components/project/spreadsheet/components/editableCell/textAreaCellOld.vue
  40. 3
      packages/nc-gui/components/project/spreadsheet/components/editableCell/timePickerCell.vue
  41. 3
      packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue
  42. 3
      packages/nc-gui/components/project/spreadsheet/components/headerCell.vue
  43. 3
      packages/nc-gui/components/project/spreadsheet/components/virtualHeaderCell.vue
  44. 3
      packages/nc-gui/components/project/spreadsheet/public/xcKanban.vue
  45. 2
      packages/nc-gui/components/project/spreadsheet/public/xcTable.vue
  46. 6
      packages/nc-gui/components/project/tableTabs/aclGql.vue
  47. 3
      packages/nc-gui/components/project/tableTabs/aclGrpcDb.vue
  48. 6
      packages/nc-gui/components/project/tableTabs/aclJs.vue
  49. 6
      packages/nc-gui/components/project/tableTabs/aclTsFile.vue
  50. 6
      packages/nc-gui/components/project/tableTabs/aclTsFileDb.vue
  51. 6
      packages/nc-gui/components/project/tableTabs/aclTsFileDbGql.vue
  52. 6
      packages/nc-gui/components/project/tableTabs/aclTsFileGql.vue
  53. 3
      packages/nc-gui/components/project/tableTabs/columnsMock.vue
  54. 3
      packages/nc-gui/components/project/tableTabs/indexes.vue
  55. 6
      packages/nc-gui/components/project/tableTabs/logicGql.vue
  56. 6
      packages/nc-gui/components/project/tableTabs/logicGrpc.vue
  57. 6
      packages/nc-gui/components/project/tableTabs/logicRest.vue
  58. 6
      packages/nc-gui/components/project/tableTabs/mocks.vue
  59. 3
      packages/nc-gui/components/project/tableTabs/relations.vue
  60. 6
      packages/nc-gui/components/project/tableTabs/rows.vue
  61. 12
      packages/nc-gui/components/project/tableTabs/tableAcl.vue
  62. 3
      packages/nc-gui/components/project/tableTabs/triggers.vue
  63. 12
      packages/nc-gui/components/project/tableTabs/validation.vue
  64. 3
      packages/nc-gui/components/project/tableTabs/webhooks-old.vue
  65. 11
      packages/nc-gui/components/project/tableTabs/webhooks.vue
  66. 6
      packages/nc-gui/components/project/viewTabs/viewQuery.vue
  67. 6
      packages/nc-gui/components/project/xcInfo.vue
  68. 3
      packages/nc-gui/components/snackbar.vue
  69. 12
      packages/nc-gui/components/templates/editor.vue
  70. 3
      packages/nc-gui/components/utils/dlgProjectCreate.vue
  71. 6
      packages/nc-gui/layouts/default.vue
  72. 6
      packages/nc-gui/pages/project/id.vue
  73. 3
      packages/nc-gui/pages/project/name.vue
  74. 15
      packages/nc-gui/pages/project/xcdb.vue
  75. 14
      packages/nc-gui/pages/projects/index.vue
  76. 3
      packages/nc-gui/pages/user/settings/picture.vue
  77. 3
      packages/nc-gui/pages/user/settings/profile.vue

3
packages/nc-gui/components/auth/apiTokens.vue

@ -16,7 +16,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-if="_isUIAllowed('newUser')" v-if="_isUIAllowed('newUser')"

6
packages/nc-gui/components/auth/authHooks.vue

@ -11,7 +11,8 @@
<v-icon small class="mr-1" color="primary"> <v-icon small class="mr-1" color="primary">
mdi-reload mdi-reload
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</v-btn> </v-btn>
<v-btn <v-btn
color="primary" color="primary"
@ -22,7 +23,8 @@
<v-icon small class="mr-1" color="primary"> <v-icon small class="mr-1" color="primary">
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-toolbar> </v-toolbar>
<v-container fluid> <v-container fluid>

3
packages/nc-gui/components/auth/roles.vue

@ -67,7 +67,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
<div class="" style="width: 100%"> <div class="" style="width: 100%">

3
packages/nc-gui/components/changeEnv.vue

@ -25,7 +25,8 @@
<v-card-actions> <v-card-actions>
<v-spacer /> <v-spacer />
<v-btn small :disabled="progressbar" @click="dialogShow = false"> <v-btn small :disabled="progressbar" @click="dialogShow = false">
Close <!-- Close -->
{{ $t('general.close') }}
</v-btn> </v-btn>
<v-btn color="primary" small :disabled="progressbar" @click="changeEnv"> <v-btn color="primary" small :disabled="progressbar" @click="changeEnv">
Change Change

3
packages/nc-gui/components/environment.vue

@ -147,7 +147,8 @@
text text
@click="addNewEnvDialog = false" @click="addNewEnvDialog = false"
> >
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn <v-btn

6
packages/nc-gui/components/globalAcl.vue

@ -36,7 +36,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
@ -51,7 +52,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

3
packages/nc-gui/components/project/apiClientSwagger.vue

@ -595,7 +595,8 @@
</v-card-text> </v-card-text>
<v-card-actions class="justify-center pb-5"> <v-card-actions class="justify-center pb-5">
<v-btn v-ge="['api-client','bookmark']" small @click="bookmarkApiDialog = false"> <v-btn v-ge="['api-client','bookmark']" small @click="bookmarkApiDialog = false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn <v-btn
small small

3
packages/nc-gui/components/project/auditTab/audit.vue

@ -6,7 +6,8 @@
<v-icon small class="mr-2"> <v-icon small class="mr-2">
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</v-btn> </v-btn>
</v-toolbar> </v-toolbar>
<v-container class="h-100 d-flex flex-column"> <v-container class="h-100 d-flex flex-column">

3
packages/nc-gui/components/project/auditTab/db.vue

@ -47,7 +47,8 @@
<v-icon left small> <v-icon left small>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<div <div

6
packages/nc-gui/components/project/cronJobs.vue

@ -52,7 +52,8 @@
icon="refresh" icon="refresh"
@click="loadCrons()" @click="loadCrons()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -154,7 +155,8 @@
icon="save" icon="save"
@click="saveCron()" @click="saveCron()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</div> </div>
<v-switch <v-switch

3
packages/nc-gui/components/project/dlgs/dlgAddRelation.vue

@ -97,7 +97,8 @@
<v-card-actions class="pa-4"> <v-card-actions class="pa-4">
<v-spacer /> <v-spacer />
<v-btn class="" @click="mtdDialogCancel()"> <v-btn class="" @click="mtdDialogCancel()">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn <v-btn
class="primary " class="primary "

3
packages/nc-gui/components/project/dlgs/dlgTriggerAddEdit.vue

@ -73,7 +73,8 @@
<v-card-actions class="pa-4"> <v-card-actions class="pa-4">
<v-spacer /> <v-spacer />
<v-btn class="" @click="mtdDialogCancel()"> <v-btn class="" @click="mtdDialogCancel()">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn <v-btn
class="primary " class="primary "

6
packages/nc-gui/components/project/functionTab/functionAcl.vue

@ -39,7 +39,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
@ -55,7 +56,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

3
packages/nc-gui/components/project/functionTab/functionQuery.vue

@ -39,7 +39,8 @@
icon="save" icon="save"
@click="applyChanges()" @click="applyChanges()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined

6
packages/nc-gui/components/project/gqlHandlerCodeEditor.vue

@ -11,13 +11,15 @@
Instant API Editor Instant API Editor
<v-spacer /> <v-spacer />
<v-btn small :disabled="progressbar" @click="dialogShow = false"> <v-btn small :disabled="progressbar" @click="dialogShow = false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn color="primary" small :disabled="progressbar" @click="saveCode"> <v-btn color="primary" small :disabled="progressbar" @click="saveCode">
<v-icon small class="mr-1"> <v-icon small class="mr-1">
mdi-content-save mdi-content-save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-card-title> </v-card-title>

3
packages/nc-gui/components/project/grpcClient.vue

@ -33,7 +33,8 @@ export default {
link.setAttribute('download', 'proto.zip') // or any other extension link.setAttribute('download', 'proto.zip') // or any other extension
document.body.appendChild(link) document.body.appendChild(link)
link.click() link.click()
this.$toast.success('Successfully exported metadata').goAway(3000) // this.$toast.success('Successfully exported metadata').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.exportMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error('Some internal error occurred').goAway(3000) this.$toast.error('Some internal error occurred').goAway(3000)
} }

6
packages/nc-gui/components/project/grpcHandlerCodeEditor.vue

@ -11,13 +11,15 @@
Instant API Editor Instant API Editor
<v-spacer /> <v-spacer />
<v-btn small :disabled="progressbar" @click="dialogShow = false"> <v-btn small :disabled="progressbar" @click="dialogShow = false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn color="primary" small :disabled="progressbar" @click="saveCode"> <v-btn color="primary" small :disabled="progressbar" @click="saveCode">
<v-icon small class="mr-1"> <v-icon small class="mr-1">
mdi-content-save mdi-content-save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-card-title> </v-card-title>

3
packages/nc-gui/components/project/procedureTab/procedureAcl.vue

@ -55,7 +55,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

3
packages/nc-gui/components/project/procedureTab/procedureQuery.vue

@ -36,7 +36,8 @@
icon="save" icon="save"
@click="applyChanges()" @click="applyChanges()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined

11
packages/nc-gui/components/project/projectMetadata/disableOrEnableModels.vue

@ -5,7 +5,10 @@
<v-icon icon x-small class="mr-2"> <v-icon icon x-small class="mr-2">
mdi-file-table-box-multiple-outline mdi-file-table-box-multiple-outline
</v-icon> </v-icon>
<span class="caption text-capitalize nc-exp-imp-metadata"> Export/Import Metadata</span> <span class="caption text-capitalize nc-exp-imp-metadata">
<!-- Export/Import Metadata -->
{{ $t('title.exportImportMeta') }}
</span>
</v-tab> </v-tab>
<v-tab-item value="xc-project-meta"> <v-tab-item value="xc-project-meta">
<div class="d-flex justify-center d-100"> <div class="d-flex justify-center d-100">
@ -16,7 +19,8 @@
<template v-for="(db,i) in dbAliasList"> <template v-for="(db,i) in dbAliasList">
<v-tab :key="db.meta.dbAlias + i" :href="'#' + db.meta.dbAlias" class="text-capitalize caption nc-meta-mgmt-metadata-tab"> <v-tab :key="db.meta.dbAlias + i" :href="'#' + db.meta.dbAlias" class="text-capitalize caption nc-meta-mgmt-metadata-tab">
<!-- {{ db.connection.database | extractDbName }} {{ db.meta.dbAlias }} --> <!-- {{ db.connection.database | extractDbName }} {{ db.meta.dbAlias }} -->
Metadata <!-- Metadata -->
{{ $t('title.metadata') }}
</v-tab> </v-tab>
<v-tab-item :key="db.meta.dbAlias + 't' + i" :value=" db.meta.dbAlias"> <v-tab-item :key="db.meta.dbAlias + 't' + i" :value=" db.meta.dbAlias">
<disable-or-enable-tables <disable-or-enable-tables
@ -73,7 +77,8 @@
<v-tab-item :key="db.meta.dbAlias + 'aclt'" :value=" db.meta.dbAlias + 'acl'"> <v-tab-item :key="db.meta.dbAlias + 'aclt'" :value=" db.meta.dbAlias + 'acl'">
<v-tabs color="x-active" height="28"> <v-tabs color="x-active" height="28">
<v-tab class="text-capitalize caption"> <v-tab class="text-capitalize caption">
Tables <!-- Tables -->
{{ $t('objects.tables') }}
</v-tab> </v-tab>
<v-tab-item> <v-tab-item>
<toggle-table-ui-acl <toggle-table-ui-acl

3
packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableFunctions.vue

@ -41,7 +41,8 @@
icon="save" icon="save"
@click="saveModels()" @click="saveModels()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

3
packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableProcedures.vue

@ -41,7 +41,8 @@
icon="save" icon="save"
@click="saveModels()" @click="saveModels()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableRelations.vue

@ -21,7 +21,8 @@
btn.class="text-capitalize" btn.class="text-capitalize"
@click="loadRelations" @click="loadRelations"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<!-- <x-btn <!-- <x-btn
outlined outlined
@ -45,7 +46,8 @@
icon="save" icon="save"
@click="save" @click="save"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
<div class="d-flex justify-center"> <div class="d-flex justify-center">

5
packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableTables.vue

@ -30,7 +30,8 @@
icon="refresh" icon="refresh"
@click="loadXcDiff()" @click="loadXcDiff()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<!-- <x-btn <!-- <x-btn
outlined outlined
@ -40,7 +41,7 @@
icon="refresh" icon="refresh"
@click="loadModels();loadTableList()" @click="loadModels();loadTableList()"
> >
Reload {{ $t('general.reload') }}
</x-btn>--> </x-btn>-->
<!--x-btn <!--x-btn
outlined outlined

6
packages/nc-gui/components/project/projectMetadata/sync/disableOrEnableViews.vue

@ -29,7 +29,8 @@
icon="refresh" icon="refresh"
@click="loadModels();loadTableList()" @click="loadModels();loadTableList()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -41,7 +42,8 @@
icon="save" icon="save"
@click="saveModels()" @click="saveModels()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/projectMetadata/uiAcl/toggleFunctionUIAcl.vue

@ -29,7 +29,8 @@
icon="refresh" icon="refresh"
@click="loadFunctionList()" @click="loadFunctionList()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -41,7 +42,8 @@
icon="save" icon="save"
@click="save()" @click="save()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/projectMetadata/uiAcl/toggleProcedureUIAcl.vue

@ -29,7 +29,8 @@
icon="refresh" icon="refresh"
@click="loadFunctionList()" @click="loadFunctionList()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -41,7 +42,8 @@
icon="save" icon="save"
@click="save()" @click="save()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/projectMetadata/uiAcl/toggleRelationsUIAcl.vue

@ -29,7 +29,8 @@
icon="refresh" icon="refresh"
@click="loadViewList()" @click="loadViewList()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -41,7 +42,8 @@
icon="save" icon="save"
@click="save()" @click="save()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/projectMetadata/uiAcl/toggleTableUIAcl.vue

@ -30,7 +30,8 @@
class="nc-acl-reload" class="nc-acl-reload"
@click="loadTableList()" @click="loadTableList()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -43,7 +44,8 @@
class="nc-acl-save" class="nc-acl-save"
@click="save()" @click="save()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/projectMetadata/uiAcl/toggleViewUIAcl.vue

@ -29,7 +29,8 @@
icon="refresh" icon="refresh"
@click="loadViewList()" @click="loadViewList()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -41,7 +42,8 @@
icon="save" icon="save"
@click="save()" @click="save()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/restHandlerCodeEditor.vue

@ -11,13 +11,15 @@
Instant API Editor Instant API Editor
<v-spacer /> <v-spacer />
<v-btn small :disabled="progressbar" @click="dialogShow = false"> <v-btn small :disabled="progressbar" @click="dialogShow = false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn color="primary" small :disabled="progressbar" @click="saveCode"> <v-btn color="primary" small :disabled="progressbar" @click="saveCode">
<v-icon small class="mr-1"> <v-icon small class="mr-1">
mdi-content-save mdi-content-save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-card-title> </v-card-title>

6
packages/nc-gui/components/project/sequence.vue

@ -37,7 +37,8 @@
:disabled="newSequence" :disabled="newSequence"
@click="loadSequences()" @click="loadSequences()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -48,7 +49,8 @@
:disabled="!(newSequence || edited)" :disabled="!(newSequence || edited)"
@click="applyChanges()" @click="applyChanges()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined

3
packages/nc-gui/components/project/settings/env.vue

@ -23,7 +23,8 @@
<div class="mt-4 d-flex d-100"> <div class="mt-4 d-flex d-100">
<v-spacer /> <v-spacer />
<v-btn small :disabled="progressbar" @click="dialogShow = false"> <v-btn small :disabled="progressbar" @click="dialogShow = false">
Close <!-- Close -->
{{ $t('general.close') }}
</v-btn> </v-btn>
<v-btn color="primary" small :disabled="progressbar" @click="changeEnv"> <v-btn color="primary" small :disabled="progressbar" @click="changeEnv">
Change Change

6
packages/nc-gui/components/project/settings/logs.vue

@ -16,7 +16,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['roles','add new']" v-ge="['roles','add new']"
@ -47,7 +48,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
<div class="d-flex justify-center pa-2"> <div class="d-flex justify-center pa-2">

27
packages/nc-gui/components/project/settings/xcMeta.vue

@ -170,7 +170,8 @@ export default {
methods: { methods: {
async exportMeta() { async exportMeta() {
this.dialogShow = true this.dialogShow = true
this.confirmMessage = 'Do you want to export metadata from meta tables?' // this.confirmMessage = 'Do you want to export metadata from meta tables?'
this.confirmMessage = `${this.$t('msg.info.exportMetadata')}`
this.confirmAction = async(act) => { this.confirmAction = async(act) => {
if (act === 'hideDialog') { if (act === 'hideDialog') {
this.dialogShow = false this.dialogShow = false
@ -185,7 +186,8 @@ export default {
}, },
'xcMetaTablesExportDbToLocalFs' 'xcMetaTablesExportDbToLocalFs'
]) ])
this.$toast.success('Successfully exported metadata').goAway(3000) // this.$toast.success('Successfully exported metadata').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.exportMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error(e.message).goAway(3000) this.$toast.error(e.message).goAway(3000)
} }
@ -196,7 +198,8 @@ export default {
}, },
async exportMetaZip() { async exportMetaZip() {
this.dialogShow = true this.dialogShow = true
this.confirmMessage = 'Do you want to export metadata from meta tables?' // this.confirmMessage = 'Do you want to export metadata from meta tables?'
this.confirmMessage = `${this.$t('msg.info.exportMetadata')}`
this.confirmAction = async(act) => { this.confirmAction = async(act) => {
if (act === 'hideDialog') { if (act === 'hideDialog') {
this.dialogShow = false this.dialogShow = false
@ -222,7 +225,8 @@ export default {
link.setAttribute('download', 'meta.zip') // or any other extension link.setAttribute('download', 'meta.zip') // or any other extension
document.body.appendChild(link) document.body.appendChild(link)
link.click() link.click()
this.$toast.success('Successfully exported metadata').goAway(3000) // this.$toast.success('Successfully exported metadata').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.exportMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error(e.message).goAway(3000) this.$toast.error(e.message).goAway(3000)
} }
@ -233,7 +237,8 @@ export default {
}, },
async resetMeta() { async resetMeta() {
this.dialogShow = true this.dialogShow = true
this.confirmMessage = 'Do you want to clear metadata from meta tables?' // this.confirmMessage = 'Do you want to clear metadata from meta tables?'
this.confirmMessage = `${this.$t('msg.info.clearMetadata')}`
this.confirmAction = async(act) => { this.confirmAction = async(act) => {
if (act === 'hideDialog') { if (act === 'hideDialog') {
this.dialogShow = false this.dialogShow = false
@ -247,7 +252,8 @@ export default {
}, },
'xcMetaTablesReset' 'xcMetaTablesReset'
]) ])
this.$toast.success('Metadata cleared successfully').goAway(3000) // this.$toast.success('Metadata cleared successfully').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.clearMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error(e.message).goAway(3000) this.$toast.error(e.message).goAway(3000)
} }
@ -259,7 +265,8 @@ export default {
async importMeta() { async importMeta() {
this.dialogShow = true this.dialogShow = true
this.confirmMessage = 'Do you want to import metadata from meta directory?' // this.confirmMessage = 'Do you want to import metadata from meta directory?'
this.confirmMessage = `${this.$t('msg.info.importMetadata')}`
this.confirmAction = async(act) => { this.confirmAction = async(act) => {
if (act === 'hideDialog') { if (act === 'hideDialog') {
this.dialogShow = false this.dialogShow = false
@ -273,7 +280,8 @@ export default {
'xcMetaTablesImportLocalFsToDb' 'xcMetaTablesImportLocalFsToDb'
]) ])
this.$toast.success('Metadata imported successfully').goAway(3000) // this.$toast.success('Metadata imported successfully').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.importMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error(e.message).goAway(3000) this.$toast.error(e.message).goAway(3000)
} }
@ -298,7 +306,8 @@ export default {
}, },
zipFile zipFile
]) ])
this.$toast.success('Successfully imported metadata').goAway(3000) // this.$toast.success('Successfully imported metadata').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.importMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error(e.message).goAway(3000) this.$toast.error(e.message).goAway(3000)
} }

6
packages/nc-gui/components/project/spreadsheet/components/editColumn.vue

@ -403,10 +403,12 @@
<v-col cols="12" class="d-flex pt-0"> <v-col cols="12" class="d-flex pt-0">
<v-spacer /> <v-spacer />
<v-btn small outlined @click="close"> <v-btn small outlined @click="close">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn small color="primary" :disabled="!valid" @click="save"> <v-btn small color="primary" :disabled="!valid" @click="save">
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-col> </v-col>
</v-row> </v-row>

6
packages/nc-gui/components/project/spreadsheet/components/editVirtualColumn.vue

@ -42,10 +42,12 @@
<v-col cols="12" class="d-flex pt-0"> <v-col cols="12" class="d-flex pt-0">
<v-spacer /> <v-spacer />
<v-btn x-small outlined @click="close"> <v-btn x-small outlined @click="close">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn x-small color="primary" :disabled="!valid" @click="save"> <v-btn x-small color="primary" :disabled="!valid" @click="save">
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-col> </v-col>
</v-row> </v-row>

9
packages/nc-gui/components/project/spreadsheet/components/editableCell/jsonEditableCell.vue

@ -7,14 +7,17 @@
</v-icon> </v-icon>
<template v-if="!isForm"> <template v-if="!isForm">
<v-btn outlined x-small class="mr-1" @click="$emit('cancel')"> <v-btn outlined x-small class="mr-1" @click="$emit('cancel')">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn x-small color="primary" @click="save"> <v-btn x-small color="primary" @click="save">
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</template> </template>
<v-btn v-else-if="expand" x-small @click="expand=false"> <v-btn v-else-if="expand" x-small @click="expand=false">
Close <!-- Close -->
{{ $t('general.close') }}
</v-btn> </v-btn>
</div> </div>
<monaco-json-object-editor <monaco-json-object-editor

6
packages/nc-gui/components/project/spreadsheet/components/editableCell/textAreaCellOld.vue

@ -3,10 +3,12 @@
<div v-if="!isForm" class="d-flex ma-1"> <div v-if="!isForm" class="d-flex ma-1">
<v-spacer /> <v-spacer />
<v-btn v-if="!isForm" outlined x-small class="mr-1" @click="$emit('cancel')"> <v-btn v-if="!isForm" outlined x-small class="mr-1" @click="$emit('cancel')">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn v-if="!isForm" x-small color="primary" @click="save"> <v-btn v-if="!isForm" x-small color="primary" @click="save">
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</div> </div>
<textarea <textarea

3
packages/nc-gui/components/project/spreadsheet/components/editableCell/timePickerCell.vue

@ -6,7 +6,8 @@
<div class="d-flex flex-column justify-center" @click.stop> <div class="d-flex flex-column justify-center" @click.stop>
<v-time-picker v-model="localState" v-on="parentListeners" /> <v-time-picker v-model="localState" v-on="parentListeners" />
<v-btn small color="primary" @click="$emit('update')"> <v-btn small color="primary" @click="$emit('update')">
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</div> </div>
</v-menu> </v-menu>

3
packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue

@ -43,7 +43,8 @@
</x-icon> </x-icon>
<v-btn small @click="$emit('cancel')"> <v-btn small @click="$emit('cancel')">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn :disabled="!_isUIAllowed('tableRowUpdate')" small color="primary" @click="save"> <v-btn :disabled="!_isUIAllowed('tableRowUpdate')" small color="primary" @click="save">
Save Row Save Row

3
packages/nc-gui/components/project/spreadsheet/components/headerCell.vue

@ -124,7 +124,8 @@
<v-card-actions class="d-flex pa-4"> <v-card-actions class="d-flex pa-4">
<v-spacer /> <v-spacer />
<v-btn small @click="columnDeleteDialog = false"> <v-btn small @click="columnDeleteDialog = false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn small color="error" @click="deleteColumn"> <v-btn small color="error" @click="deleteColumn">
Confirm Confirm

3
packages/nc-gui/components/project/spreadsheet/components/virtualHeaderCell.vue

@ -100,7 +100,8 @@
<v-card-actions class="d-flex pa-4"> <v-card-actions class="d-flex pa-4">
<v-spacer /> <v-spacer />
<v-btn small @click="columnDeleteDialog = false"> <v-btn small @click="columnDeleteDialog = false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn small color="error" @click="deleteColumn"> <v-btn small color="error" @click="deleteColumn">
Confirm Confirm

3
packages/nc-gui/components/project/spreadsheet/public/xcKanban.vue

@ -19,7 +19,8 @@
<v-icon small class="mr-1" color="grey darken-3"> <v-icon small class="mr-1" color="grey darken-3">
mdi-reload mdi-reload
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</v-btn> </v-btn>
<fields-menu v-model="showFields" :field-list="fieldList" is-public /> <fields-menu v-model="showFields" :field-list="fieldList" is-public />
<sort-list-menu v-model="sortList" :field-list="realFieldList" /> <sort-list-menu v-model="sortList" :field-list="realFieldList" />

2
packages/nc-gui/components/project/spreadsheet/public/xcTable.vue

@ -86,7 +86,7 @@
<v-icon small class="mr-1" color="grey darken-3"> <v-icon small class="mr-1" color="grey darken-3">
mdi-reload mdi-reload
</v-icon> </v-icon>
Reload {{ $t('general.reload') }}
</v-btn> --> </v-btn> -->
<fields-menu v-model="showFields" :field-list="fieldList" is-public /> <fields-menu v-model="showFields" :field-list="fieldList" is-public />

6
packages/nc-gui/components/project/tableTabs/aclGql.vue

@ -41,7 +41,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['acl-gql','open-folder']" v-ge="['acl-gql','open-folder']"
@ -67,7 +68,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

3
packages/nc-gui/components/project/tableTabs/aclGrpcDb.vue

@ -67,7 +67,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/tableTabs/aclJs.vue

@ -41,7 +41,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['acl','open-folder']" v-ge="['acl','open-folder']"
@ -67,7 +68,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/tableTabs/aclTsFile.vue

@ -41,7 +41,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['acl','open-folder']" v-ge="['acl','open-folder']"
@ -68,7 +69,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/tableTabs/aclTsFileDb.vue

@ -40,7 +40,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['acl','open-folder']" v-ge="['acl','open-folder']"
@ -67,7 +68,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/tableTabs/aclTsFileDbGql.vue

@ -41,7 +41,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['acl-gql','open-folder']" v-ge="['acl-gql','open-folder']"
@ -67,7 +68,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

6
packages/nc-gui/components/project/tableTabs/aclTsFileGql.vue

@ -41,7 +41,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['acl-gql','open-folder']" v-ge="['acl-gql','open-folder']"
@ -67,7 +68,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

3
packages/nc-gui/components/project/tableTabs/columnsMock.vue

@ -55,7 +55,8 @@
:disabled="!edited && !newTable" :disabled="!edited && !newTable"
@click="applyChanges" @click="applyChanges"
> >
Save &nbsp; <!-- Save &nbsp; -->
{{ $t('general.save') }}
<v-progress-circular <v-progress-circular
v-if="progress.save" v-if="progress.save"
:indeterminate="progress.save" :indeterminate="progress.save"

3
packages/nc-gui/components/project/tableTabs/indexes.vue

@ -47,7 +47,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-if="indexCreationAllowed" v-if="indexCreationAllowed"

6
packages/nc-gui/components/project/tableTabs/logicGql.vue

@ -46,7 +46,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
@ -84,7 +85,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</div> </div>
<monaco-editor <monaco-editor

6
packages/nc-gui/components/project/tableTabs/logicGrpc.vue

@ -47,7 +47,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
@ -85,7 +86,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</div> </div>
<p class="caption pa-1"> <p class="caption pa-1">

6
packages/nc-gui/components/project/tableTabs/logicRest.vue

@ -51,7 +51,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
@ -102,7 +103,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</div> </div>
<monaco-json-editor <monaco-json-editor

6
packages/nc-gui/components/project/tableTabs/mocks.vue

@ -41,7 +41,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
@ -75,7 +76,8 @@
> >
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

3
packages/nc-gui/components/project/tableTabs/relations.vue

@ -8,7 +8,8 @@
<v-icon left> <v-icon left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</v-btn> </v-btn>
<v-btn <v-btn
small small

6
packages/nc-gui/components/project/tableTabs/rows.vue

@ -40,7 +40,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-if="!isView" v-if="!isView"
@ -56,7 +57,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-if="!isView" v-if="!isView"

12
packages/nc-gui/components/project/tableTabs/tableAcl.vue

@ -40,7 +40,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
@ -56,7 +57,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
@ -88,7 +90,8 @@
small small
@click="showCustomAcl=false" @click="showCustomAcl=false"
> >
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn <v-btn
outlined outlined
@ -96,7 +99,8 @@
small small
@click="save" @click="save"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
<v-card-text> <v-card-text>

3
packages/nc-gui/components/project/tableTabs/triggers.vue

@ -48,7 +48,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['triggers','new']" v-ge="['triggers','new']"

12
packages/nc-gui/components/project/tableTabs/validation.vue

@ -25,7 +25,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -38,7 +39,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
<template v-if="columns"> <template v-if="columns">
@ -210,7 +212,8 @@
<v-spacer /> <v-spacer />
<v-btn outlined x-small @click="validatorEditDialog = false"> <v-btn outlined x-small @click="validatorEditDialog = false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<x-btn <x-btn
outlined outlined
@ -225,7 +228,8 @@
Add Validation Add Validation
</x-btn> </x-btn>
<v-btn outlined color="primary" x-small @click.prevent="saveValidationForColumn(clickedItem)"> <v-btn outlined color="primary" x-small @click.prevent="saveValidationForColumn(clickedItem)">
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</div> </div>
<v-simple-table v-if="clickedItem.validate.func && clickedItem.validate.func.length" dense> <v-simple-table v-if="clickedItem.validate.func && clickedItem.validate.func.length" dense>

3
packages/nc-gui/components/project/tableTabs/webhooks-old.vue

@ -42,7 +42,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>

11
packages/nc-gui/components/project/tableTabs/webhooks.vue

@ -38,7 +38,8 @@
<v-icon small left> <v-icon small left>
mdi-close-circle-outline mdi-close-circle-outline
</v-icon> </v-icon>
Close <!-- Close -->
{{ $t('general.close') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['hooks','reload']" v-ge="['hooks','reload']"
@ -51,7 +52,8 @@
<v-icon small left> <v-icon small left>
mdi-reload mdi-reload
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
@ -76,7 +78,7 @@
v-ge="['hooks','save']" v-ge="['hooks','save']"
@click.prevent="saveHooks"> @click.prevent="saveHooks">
<v-icon small left>save</v-icon> <v-icon small left>save</v-icon>
Save {{ $t('general.save') }}
</x-btn>--> </x-btn>-->
</v-toolbar> </v-toolbar>
@ -169,7 +171,8 @@
<v-icon small left> <v-icon small left>
save save
</v-icon> </v-icon>
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
</v-card-title> </v-card-title>
<v-card-text> <v-card-text>

6
packages/nc-gui/components/project/viewTabs/viewQuery.vue

@ -36,7 +36,8 @@
icon="refresh" icon="refresh"
@click="loadEnv()" @click="loadEnv()"
> >
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined
@ -47,7 +48,8 @@
icon="save" icon="save"
@click="applyChanges()" @click="applyChanges()"
> >
Save <!-- Save -->
{{ $t('general.save') }}
</x-btn> </x-btn>
<x-btn <x-btn
outlined outlined

6
packages/nc-gui/components/project/xcInfo.vue

@ -13,7 +13,8 @@
<v-icon small left> <v-icon small left>
refresh refresh
</v-icon> </v-icon>
Reload <!-- Reload -->
{{ $t('general.reload') }}
</x-btn> </x-btn>
</v-toolbar> </v-toolbar>
@ -339,7 +340,8 @@ export default {
link.setAttribute('download', 'proto.zip') // or any other extension link.setAttribute('download', 'proto.zip') // or any other extension
document.body.appendChild(link) document.body.appendChild(link)
link.click() link.click()
this.$toast.success('Successfully exported metadata').goAway(3000) // this.$toast.success('Successfully exported metadata').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.exportMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error('Some internal error occurred').goAway(3000) this.$toast.error('Some internal error occurred').goAway(3000)
} }

3
packages/nc-gui/components/snackbar.vue

@ -3,7 +3,8 @@
<v-snackbar v-model="show" :top="true" color="info"> <v-snackbar v-model="show" :top="true" color="info">
<p ref="message" class="title" v-html="message" /> <p ref="message" class="title" v-html="message" />
<v-btn @click.native="show = false"> <v-btn @click.native="show = false">
Close <!-- Close -->
{{ $t('general.close') }}
</v-btn> </v-btn>
</v-snackbar> </v-snackbar>
</div> </div>

12
packages/nc-gui/components/templates/editor.vue

@ -527,10 +527,12 @@
<v-card-actions> <v-card-actions>
<v-spacer /> <v-spacer />
<v-btn outlined small @click="createTablesDialog=false"> <v-btn outlined small @click="createTablesDialog=false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn outlined color="primary" small @click="addTables"> <v-btn outlined color="primary" small @click="addTables">
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
@ -552,10 +554,12 @@
<v-card-actions> <v-card-actions>
<v-spacer /> <v-spacer />
<v-btn outlined small @click="createTableColumnsDialog=false"> <v-btn outlined small @click="createTableColumnsDialog=false">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</v-btn> </v-btn>
<v-btn outlined color="primary" small @click="addColumns"> <v-btn outlined color="primary" small @click="addColumns">
Save <!-- Save -->
{{ $t('general.save') }}
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>

3
packages/nc-gui/components/utils/dlgProjectCreate.vue

@ -47,6 +47,7 @@
</v-select>--> </v-select>-->
<!-- Create Project -->
<div class="text-center"> <div class="text-center">
<v-btn <v-btn
:loading="loading" :loading="loading"
@ -54,7 +55,7 @@
color="primary" color="primary"
@click="createProject" @click="createProject"
> >
Create Project {{ $t('activity.createProject') }}
</v-btn> </v-btn>
</div> </div>
</div> </div>

6
packages/nc-gui/layouts/default.vue

@ -553,7 +553,8 @@
Update & Restart Update & Restart
</v-btn> </v-btn>
<v-btn @click.native="releaseDownloadedSnackbar = false"> <v-btn @click.native="releaseDownloadedSnackbar = false">
Close <!-- Close -->
{{ $t('general.close') }}
</v-btn> </v-btn>
</v-snackbar> </v-snackbar>
@ -563,7 +564,8 @@
Upgrade Upgrade
</v-btn> </v-btn>
<v-btn @click.native="downloadAvailSnackbar = false"> <v-btn @click.native="downloadAvailSnackbar = false">
Close <!-- Close -->
{{ $t('general.close') }}
</v-btn> </v-btn>
</v-snackbar> </v-snackbar>
<change-env v-model="showChangeEnv" /> <change-env v-model="showChangeEnv" />

6
packages/nc-gui/pages/project/id.vue

@ -27,9 +27,10 @@
:src="require('~/assets/img/icons/512x512-trans.png')" :src="require('~/assets/img/icons/512x512-trans.png')"
/> />
</div> </div>
<!-- Create Project -->
<v-toolbar flat color="" class="mb-3" style="width: 100%; border-bottom: 1px solid grey"> <v-toolbar flat color="" class="mb-3" style="width: 100%; border-bottom: 1px solid grey">
<v-toolbar-title class="display-1 "> <v-toolbar-title class="display-1 ">
Create Project {{ $t('activity.createProject') }}
</v-toolbar-title> </v-toolbar-title>
<v-spacer /> <v-spacer />
<x-btn <x-btn
@ -38,7 +39,8 @@
to="/" to="/"
class="elevation-20" class="elevation-20"
> >
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</x-btn> </x-btn>
<x-btn <x-btn
v-ge="['project','save']" v-ge="['project','save']"

3
packages/nc-gui/pages/project/name.vue

@ -42,6 +42,7 @@
</template> </template>
</v-select> </v-select>
<!-- Create Project -->
<div class="text-center"> <div class="text-center">
<v-btn <v-btn
:loading="loading" :loading="loading"
@ -50,7 +51,7 @@
color="primary" color="primary"
@click="createProject" @click="createProject"
> >
Create Project {{ $t('activity.createProject') }}
</v-btn> </v-btn>
</div> </div>
</div> </div>

15
packages/nc-gui/pages/project/xcdb.vue

@ -24,24 +24,28 @@
/> />
</div> </div>
<!-- Create Project -->
<v-container fluid class="pb-10 px-12" style="padding-top: 43px !important;"> <v-container fluid class="pb-10 px-12" style="padding-top: 43px !important;">
<h1 class="mt-4 mb-4 text-center"> <h1 class="mt-4 mb-4 text-center">
Create Project {{ $t('activity.createProject') }}
</h1> </h1>
<div class="mx-auto" style="width:350px"> <div class="mx-auto" style="width:350px">
<!-- label="Enter Project Name" -->
<!-- rule text: Required -->
<v-text-field <v-text-field
ref="name" ref="name"
v-model="name" v-model="name"
autofocus autofocus
:full-width="false" :full-width="false"
class="nc-metadb-project-name" class="nc-metadb-project-name"
label="Enter Project Name" :label="$t('placeholder.projName')"
:rules="[v => !!v || 'Project name required']" :rules="[v => !!v || $t('general.required')]"
/> />
<div class="wrapper mb-5 mt-5"> <div class="wrapper mb-5 mt-5">
<v-container fluid> <v-container fluid>
<label class="grey--text ml-1 d-block my-2">Access Project Via</label> <!-- Access Project Via -->
<label class="grey--text ml-1 d-block my-2">{{ $t('msg.info.apiOptions') }}</label>
<v-radio-group v-model="projectType" hide-details dense class="mb-0 mt-0"> <v-radio-group v-model="projectType" hide-details dense class="mb-0 mt-0">
<v-radio <v-radio
@ -92,7 +96,8 @@
<v-icon class="mr-1 mt-n1"> <v-icon class="mr-1 mt-n1">
mdi-rocket-launch-outline mdi-rocket-launch-outline
</v-icon> </v-icon>
<span class="mr-1">Create</span> <!-- Create -->
<span class="mr-1">{{ $t('general.create') }}</span>
</v-btn> </v-btn>
</div> </div>
</v-container> </v-container>

14
packages/nc-gui/pages/projects/index.vue

@ -1162,9 +1162,11 @@ export default {
link.setAttribute('download', 'meta.zip') // or any other extension link.setAttribute('download', 'meta.zip') // or any other extension
document.body.appendChild(link) document.body.appendChild(link)
link.click() link.click()
this.$toast // this.$toast
.success('Successfully exported metadata') // .success('Successfully exported metadata')
.goAway(3000) // .goAway(3000)
this.$toast.success(`${this.$t('msg.toast.exportMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error(e.message).goAway(3000) this.$toast.error(e.message).goAway(3000)
} }
@ -1190,7 +1192,8 @@ export default {
}, },
'xcMetaTablesReset' 'xcMetaTablesReset'
]) ])
this.$toast.success('Metadata cleared successfully').goAway(3000) // this.$toast.success('Metadata cleared successfully').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.clearMetadata')}`).goAway(3000)
} catch (e) { } catch (e) {
this.$toast.error(e.message).goAway(3000) this.$toast.error(e.message).goAway(3000)
} }
@ -1220,7 +1223,8 @@ export default {
{}, {},
zipFile zipFile
]) ])
this.$toast.success('Successfully imported metadata').goAway(3000) // this.$toast.success('Successfully imported metadata').goAway(3000)
this.$toast.success(`${this.$t('msg.toast.importMetadata')}`).goAway(3000)
await this.projectsLoad() await this.projectsLoad()
} catch (e) { } catch (e) {
this.$toast.error(e.message).goAway(3000) this.$toast.error(e.message).goAway(3000)

3
packages/nc-gui/pages/user/settings/picture.vue

@ -18,7 +18,8 @@
Upload Upload
</button> </button>
<button class="btn btn-default btn-raised" @click="cancelUpload()"> <button class="btn btn-default btn-raised" @click="cancelUpload()">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</button> </button>
</div> </div>
<!--<div ng-show="success" class="text-center text-success">--> <!--<div ng-show="success" class="text-center text-success">-->

3
packages/nc-gui/pages/user/settings/profile.vue

@ -23,7 +23,8 @@
</div> </div>
<div class="control"> <div class="control">
<button class="button is-text"> <button class="button is-text">
Cancel <!-- Cancel -->
{{ $t('general.cancel') }}
</button> </button>
</div> </div>
</div> </div>

Loading…
Cancel
Save