@awes-io/nuxt-admin 2.3.33 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.4.0](https://github.com/awes-io/client/compare/@awes-io/nuxt-admin@2.3.35...@awes-io/nuxt-admin@2.4.0) (2022-05-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * translation system updated ([2827c0e](https://github.com/awes-io/client/commit/2827c0e6108523aa26e3f5af10478be23cace54f))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.3.35](https://github.com/awes-io/client/compare/@awes-io/nuxt-admin@2.3.34...@awes-io/nuxt-admin@2.3.35) (2022-05-16)
18
+
19
+ **Note:** Version bump only for package @awes-io/nuxt-admin
20
+
21
+
22
+
23
+
24
+
25
+ ## [2.3.34](https://github.com/awes-io/client/compare/@awes-io/nuxt-admin@2.3.33...@awes-io/nuxt-admin@2.3.34) (2022-05-16)
26
+
27
+ **Note:** Version bump only for package @awes-io/nuxt-admin
28
+
29
+
30
+
31
+
32
+
6
33
  ## [2.3.33](https://github.com/awes-io/client/compare/@awes-io/nuxt-admin@2.3.32...@awes-io/nuxt-admin@2.3.33) (2022-04-29)
7
34
 
8
35
  **Note:** Version bump only for package @awes-io/nuxt-admin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/nuxt-admin",
3
- "version": "2.3.33",
3
+ "version": "2.4.0",
4
4
  "description": "Administration of roles and permissions for Awes.io v1",
5
5
  "homepage": "https://awes.io",
6
6
  "bugs": {
@@ -25,8 +25,7 @@
25
25
  ],
26
26
  "main": "src/index.js",
27
27
  "files": [
28
- "src/*",
29
- "lang/*"
28
+ "src/*"
30
29
  ],
31
30
  "release": {
32
31
  "extends": "@semantic-release/gitlab-config",
@@ -55,8 +54,8 @@
55
54
  ]
56
55
  },
57
56
  "dependencies": {
58
- "@awes-io/nuxt-auth": "^2.7.0",
59
- "@awes-io/ui": "^2.47.3",
57
+ "@awes-io/nuxt-auth": "^2.8.0",
58
+ "@awes-io/ui": "^2.49.0",
60
59
  "@awes-io/vue-mc": "^0.6.0",
61
60
  "rambdax": "^7.2.0"
62
61
  },
@@ -92,5 +91,5 @@
92
91
  "vue-jest": "^3.0.4",
93
92
  "vue-template-compiler": "^2.6.10"
94
93
  },
95
- "gitHead": "07f3c9a0ff24a32db1b0a06adc6dd2b9571a7a7e"
94
+ "gitHead": "ca752831e302a933c88be74727976986d0215ec2"
96
95
  }
package/src/index.js CHANGED
@@ -78,28 +78,6 @@ function AwesIoNuxtAdmin() {
78
78
  }
79
79
  ])
80
80
  })
81
-
82
- this.nuxt.hook('awesIo:staticTranslations', async () => {
83
- for (const locale of this.options.awesIo.lang.locales) {
84
- const code = locale.code || locale
85
-
86
- try {
87
- const { default: translation } = await import(
88
- '@awes-io/nuxt-admin/lang/' + code
89
- )
90
-
91
- for (const key in translation) {
92
- this.options.awesIo.langStatic[code][key] = translation[key]
93
- }
94
- } catch (e) {
95
- console.warn(
96
- 'Awes.io/NuxtAdmin: No default translation for ' +
97
- code +
98
- ' locale'
99
- )
100
- }
101
- }
102
- })
103
81
  }
104
82
 
105
83
  AwesIoNuxtAdmin.meta = meta
@@ -9,7 +9,7 @@
9
9
  v-if="!role.isNew()"
10
10
  :items="[
11
11
  {
12
- text: $t('AwesIoNuxtAdmin.delete'),
12
+ text: $t('aw.nuxt_admin.delete'),
13
13
  color: 'error',
14
14
  listeners: {
15
15
  click: deleteRole
@@ -22,19 +22,19 @@
22
22
  <AwModelEdit :model="role">
23
23
  <AwGrid>
24
24
  <AwCard
25
- :title="$t('AwesIoNuxtAdmin.information')"
25
+ :title="$t('aw.nuxt_admin.information')"
26
26
  :model="role"
27
27
  >
28
28
  <AwGrid>
29
29
  <AwInput
30
- :label="$t('AwesIoNuxtAdmin.role_name')"
30
+ :label="$t('aw.nuxt_admin.role_name')"
31
31
  v-model="role.name"
32
32
  name="name"
33
33
  :error="role.errors.name"
34
34
  />
35
35
  <!-- <AwInput
36
36
  v-model="role.priority"
37
- :label="$t('AwesIoNuxtAdmin.priority')"
37
+ :label="$t('aw.nuxt_admin.priority')"
38
38
  name="priority"
39
39
  :error="role.errors.priority"
40
40
  type="number"
@@ -42,23 +42,23 @@
42
42
  /> -->
43
43
  <AwTextarea
44
44
  v-model="role.description"
45
- :label="$t('AwesIoNuxtAdmin.description')"
45
+ :label="$t('aw.nuxt_admin.description')"
46
46
  name="description"
47
47
  :error="role.errors.description"
48
48
  />
49
- <!-- <AwInfo :label="$t('AwesIoNuxtAdmin.default_role_title')">
49
+ <!-- <AwInfo :label="$t('aw.nuxt_admin.default_role_title')">
50
50
  <AwSwitcher
51
51
  v-model="role.default_new"
52
- :label="$t('AwesIoNuxtAdmin.default_role')"
52
+ :label="$t('aw.nuxt_admin.default_role')"
53
53
  />
54
54
  </AwInfo> -->
55
55
  </AwGrid>
56
56
  </AwCard>
57
57
 
58
- <AwCard :title="$t('AwesIoNuxtAdmin.permissions_title')">
58
+ <AwCard :title="$t('aw.nuxt_admin.permissions_title')">
59
59
  <template #badge>
60
60
  <AwLink
61
- :text="$t('AwesIoNuxtAdmin.all')"
61
+ :text="$t('aw.nuxt_admin.all')"
62
62
  @click.stop="toggleAllRoles"
63
63
  />
64
64
  </template>
@@ -113,7 +113,7 @@ export default {
113
113
  computed: {
114
114
  title() {
115
115
  return this.role.isNew()
116
- ? this.$t('AwesIoNuxtAdmin.create_role')
116
+ ? this.$t('aw.nuxt_admin.create_role')
117
117
  : this.role.$.name
118
118
  }
119
119
  },
@@ -135,7 +135,7 @@ export default {
135
135
  async deleteRole() {
136
136
  try {
137
137
  await this.$confirm(
138
- this.$t('AwesIoNuxtAdmin.confirm_role_delete')
138
+ this.$t('aw.nuxt_admin.confirm_role_delete')
139
139
  )
140
140
  await this.role.delete()
141
141
  await this.$router.replace('/admin/roles')
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <AwPage
3
- :title="$t('AwesIoNuxtAdmin.roles')"
3
+ :title="$t('aw.nuxt_admin.roles')"
4
4
  :breadcrumb="{ href: '/admin/users' }"
5
5
  >
6
6
  <template #buttons>
7
7
  <AwPageMenuButtons
8
8
  :items="[
9
9
  {
10
- text: $t('AwesIoNuxtAdmin.create_role'),
10
+ text: $t('aw.nuxt_admin.create_role'),
11
11
  icon: 'plus',
12
12
  href: '/admin/roles/add',
13
13
  cta: true
@@ -17,29 +17,29 @@
17
17
  </template>
18
18
 
19
19
  <AwTableBuilder :collection="roles" @click:row="showRole">
20
- <AwTableCol :title="$t('AwesIoNuxtAdmin.role')">
20
+ <AwTableCol :title="$t('aw.nuxt_admin.role')">
21
21
  <template #default="{ cell }">
22
22
  {{ cell.name }}
23
23
  <span class="text-mono-400">
24
24
  {{
25
25
  cell.default_new
26
- ? '(' + $t('AwesIoNuxtAdmin.default_new') + ')'
26
+ ? '(' + $t('aw.nuxt_admin.default_new') + ')'
27
27
  : ''
28
28
  }}
29
29
  </span>
30
30
  </template>
31
31
  </AwTableCol>
32
- <AwTableCol :title="$t('AwesIoNuxtAdmin.permissions_title')">
32
+ <AwTableCol :title="$t('aw.nuxt_admin.permissions_title')">
33
33
  <template #default="{ cell }">
34
34
  {{ cell.permissions.length }}
35
- {{ $t('AwesIoNuxtAdmin.from') }}
35
+ {{ $t('aw.nuxt_admin.from') }}
36
36
  {{ cell.permissions_total }}
37
- {{ $t('AwesIoNuxtAdmin.permissions') }}
37
+ {{ $t('aw.nuxt_admin.permissions') }}
38
38
  </template>
39
39
  </AwTableCol>
40
40
  <AwTableCol
41
41
  field="users.count"
42
- :title="$t('AwesIoNuxtAdmin.employees')"
42
+ :title="$t('aw.nuxt_admin.employees')"
43
43
  >
44
44
  <template #default="{ cell }">
45
45
  {{ $tc('AwesIoNuxtAdmin.user_count', cell) }}
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <AwPage
3
- :title="$t('AwesIoNuxtAdmin.twoFactorAuth')"
3
+ :title="$t('aw.nuxt_admin.two_factor_auth')"
4
4
  :breadcrumb="{ href: `/admin/users/${model.id}` }"
5
5
  container="small"
6
6
  >
7
7
  <AwSwitcher
8
8
  v-model="switcher"
9
9
  :disabled="switcherDisabled"
10
- :label="$t('AwesIoNuxtAdmin.twoFactorAuth')"
10
+ :label="$t('aw.nuxt_admin.two_factor_auth')"
11
11
  />
12
12
 
13
13
  <!-- two factor form -->
@@ -21,7 +21,7 @@
21
21
  <AwGrid>
22
22
  <AwTel
23
23
  :value="phone"
24
- :label="$t('AwesIoNuxtAdmin.phone')"
24
+ :label="$t('aw.nuxt_admin.phone')"
25
25
  name="phone"
26
26
  autocomplete="tel"
27
27
  required
@@ -29,8 +29,8 @@
29
29
  />
30
30
  <AwButton
31
31
  type="submit"
32
- :text="$t('AwesIoNuxtAdmin.enable')"
33
- :data-loading="$t('AwesIoNuxtAdmin.loading')"
32
+ :text="$t('aw.nuxt_admin.enable')"
33
+ :data-loading="$t('aw.nuxt_admin.loading')"
34
34
  />
35
35
  </AwGrid>
36
36
  </AwForm>
@@ -39,7 +39,7 @@
39
39
  <!-- verify -->
40
40
  <template v-if="twoFactorEnabled && !twoFactorVerified">
41
41
  <AwButton
42
- :text="$t('AwesIoNuxtAdmin.showInfo')"
42
+ :text="$t('aw.nuxt_admin.show_info')"
43
43
  @click="$refs.infoModal.open()"
44
44
  />
45
45
 
@@ -48,14 +48,14 @@
48
48
  theme="fullscreen"
49
49
  ref="infoModal"
50
50
  name="info"
51
- :title="$t('AwesIoNuxtAdmin.showInfo')"
51
+ :title="$t('aw.nuxt_admin.show_info')"
52
52
  >
53
53
  <div class="max-w-sm mx-auto text-center">
54
54
  <p class="text-xl">
55
- {{ $t('AwesIoNuxtAdmin.infoTitle') }}
55
+ {{ $t('aw.nuxt_admin.info_title') }}
56
56
  </p>
57
57
  <p class="mt-6">
58
- {{ $t('AwesIoNuxtAdmin.infoText') }}
58
+ {{ $t('aw.nuxt_admin.info_text') }}
59
59
  </p>
60
60
  <img
61
61
  class="inline-block mt-6"
@@ -70,20 +70,20 @@
70
70
  @sended="$auth.fetchUser()"
71
71
  >
72
72
  <AwCode
73
- :label="$t('AwesIoNuxtAdmin.verifyToken')"
73
+ :label="$t('aw.nuxt_admin.verify_token')"
74
74
  name="token"
75
75
  @change="$nextTick(() => $refs.submit.$el.click())"
76
76
  />
77
77
  <AwButton
78
78
  ref="submit"
79
79
  type="submit"
80
- :text="$t('AwesIoNuxtAdmin.enable')"
80
+ :text="$t('aw.nuxt_admin.enable')"
81
81
  class="sr-only"
82
82
  />
83
83
  </AwForm>
84
84
 
85
85
  <p class="mt-12 mb-6 text-center">
86
- {{ $t('AwesIoNuxtAdmin.infoInstall') }}
86
+ {{ $t('aw.nuxt_admin.info_install') }}
87
87
  </p>
88
88
 
89
89
  <div class="flex justify-center items-center -mx-2">
@@ -119,7 +119,7 @@
119
119
  <!-- verified -->
120
120
  <AwButton
121
121
  v-if="twoFactorVerified"
122
- :text="$t('AwesIoNuxtAdmin.disable')"
122
+ :text="$t('aw.nuxt_admin.disable')"
123
123
  @click="twoFactorDisable()"
124
124
  />
125
125
  </AwPage>
@@ -2,7 +2,7 @@
2
2
  <AwPage :title="title" :breadcrumb="breadcrumb" container="small">
3
3
  <AwModelEdit :model="model">
4
4
  <AwGrid>
5
- <AwIsland :title="$t('AwesIoNuxtAdmin.information')" expanded>
5
+ <AwIsland :title="$t('aw.nuxt_admin.information')" expanded>
6
6
  <template v-if="!model.isNew() && isRolesEditable" #options>
7
7
  <AwSwitcher
8
8
  v-model="model.statusBoolean"
@@ -14,24 +14,24 @@
14
14
  </template>
15
15
 
16
16
  <AwGrid>
17
- <AwInfo :label="$t('AwesIoNuxtAdmin.gender')">
17
+ <AwInfo :label="$t('aw.nuxt_admin.gender')">
18
18
  <AwRadio
19
19
  class="inline-block"
20
20
  v-model="model.profile.sex"
21
- :label="$t('AwesIoNuxtAdmin.male')"
21
+ :label="$t('aw.nuxt_admin.male')"
22
22
  value="male"
23
23
  :error="model.errors['profile.sex']"
24
24
  />
25
25
  <AwRadio
26
26
  class="inline-block ml-3"
27
27
  v-model="model.profile.sex"
28
- :label="$t('AwesIoNuxtAdmin.female')"
28
+ :label="$t('aw.nuxt_admin.female')"
29
29
  value="female"
30
30
  />
31
31
  <AwRadio
32
32
  class="inline-block ml-3"
33
33
  v-model="model.profile.sex"
34
- :label="$t('AwesIoNuxtAdmin.divers')"
34
+ :label="$t('aw.nuxt_admin.divers')"
35
35
  value="divers"
36
36
  />
37
37
  </AwInfo>
@@ -39,20 +39,20 @@
39
39
  <AwInput
40
40
  v-model="model.profile.first_name"
41
41
  name="first_name"
42
- :label="$t('AwesIoNuxtAdmin.first_name')"
42
+ :label="$t('aw.nuxt_admin.first_name')"
43
43
  :error="model.errors['profile.first_name']"
44
44
  autocomplete="given-name"
45
45
  />
46
46
  <AwInput
47
47
  v-model="model.profile.last_name"
48
- :label="$t('AwesIoNuxtAdmin.last_name')"
48
+ :label="$t('aw.nuxt_admin.last_name')"
49
49
  name="last_name"
50
50
  :error="model.errors['profile.last_name']"
51
51
  autocomplete="family-name"
52
52
  />
53
53
 
54
54
  <AwInput
55
- :label="$t('AwesIoNuxtAdmin.email')"
55
+ :label="$t('aw.nuxt_admin.email')"
56
56
  v-model="model.email"
57
57
  name="email"
58
58
  :error="model.errors.email"
@@ -61,7 +61,7 @@
61
61
 
62
62
  <template v-if="model.isNew()">
63
63
  <AwPassword
64
- :label="$t('AwesIoNuxtAdmin.password')"
64
+ :label="$t('aw.nuxt_admin.password')"
65
65
  v-model="model.password"
66
66
  name="email"
67
67
  :error="model.errors.password"
@@ -71,7 +71,7 @@
71
71
  <AwPassword
72
72
  v-if="model.isNew()"
73
73
  :label="
74
- $t('AwesIoNuxtAdmin.password_confirmation')
74
+ $t('aw.nuxt_admin.password_confirmation')
75
75
  "
76
76
  v-model="model.password_confirmation"
77
77
  name="email"
@@ -81,7 +81,7 @@
81
81
  </template>
82
82
 
83
83
  <AwTel
84
- :label="$t('AwesIoNuxtAdmin.phone')"
84
+ :label="$t('aw.nuxt_admin.phone')"
85
85
  v-model="model.profile.phone"
86
86
  name="phone"
87
87
  :error="model.errors['profile.phone']"
@@ -89,7 +89,7 @@
89
89
  />
90
90
 
91
91
  <AwInput
92
- :label="$t('AwesIoNuxtAdmin.position')"
92
+ :label="$t('aw.nuxt_admin.position')"
93
93
  v-model="model.profile.position"
94
94
  name="position"
95
95
  :error="model.errors['profile.position']"
@@ -99,12 +99,12 @@
99
99
 
100
100
  <AwIsland
101
101
  v-if="isRolesEditable"
102
- :title="$t('AwesIoNuxtAdmin.permissions_title')"
102
+ :title="$t('aw.nuxt_admin.permissions_title')"
103
103
  expanded
104
104
  >
105
105
  <AwSelect
106
106
  v-model="model.role.id"
107
- :label="$t('AwesIoNuxtAdmin.role')"
107
+ :label="$t('aw.nuxt_admin.role')"
108
108
  :options="
109
109
  (text) => `/api/admin/roles?name=${text}&limit=100`
110
110
  "
@@ -114,9 +114,9 @@
114
114
  />
115
115
  </AwIsland>
116
116
 
117
- <AwIsland :title="$t('AwesIoNuxtAdmin.details_title')" expanded>
117
+ <AwIsland :title="$t('aw.nuxt_admin.details_title')" expanded>
118
118
  <AwTextarea
119
- :label="$t('AwesIoNuxtAdmin.description')"
119
+ :label="$t('aw.nuxt_admin.description')"
120
120
  v-model="model.profile.description"
121
121
  name="description"
122
122
  :error="model.errors['profile.description']"
@@ -132,8 +132,8 @@
132
132
  >
133
133
  {{
134
134
  model.isNew()
135
- ? $t('AwesIoNuxtAdmin.create')
136
- : $t('AwesIoNuxtAdmin.update')
135
+ ? $t('aw.nuxt_admin.create')
136
+ : $t('aw.nuxt_admin.update')
137
137
  }}
138
138
  </AwButton>
139
139
 
@@ -145,7 +145,7 @@
145
145
  @click="model.reset()"
146
146
  :disabled="!model.changed()"
147
147
  >
148
- {{ $t('AwesIoNuxtAdmin.reset') }}
148
+ {{ $t('aw.nuxt_admin.reset') }}
149
149
  </AwButton>
150
150
  </div> -->
151
151
  </AwGrid>
@@ -173,7 +173,7 @@ export default {
173
173
  computed: {
174
174
  title() {
175
175
  return this.model.isNew()
176
- ? this.$t('AwesIoNuxtAdmin.create_user')
176
+ ? this.$t('aw.nuxt_admin.create_user')
177
177
  : this.model.full_name
178
178
  },
179
179
 
@@ -199,8 +199,8 @@ export default {
199
199
  await this.model.save()
200
200
 
201
201
  this.$notify({
202
- title: this.$t('AwesIoNuxtAdmin.user_edit.popup.header'),
203
- text: this.$t('AwesIoNuxtAdmin.user_edit.popup.text'),
202
+ title: this.$t('aw.nuxt_admin.user_edit.popup.header'),
203
+ text: this.$t('aw.nuxt_admin.user_edit.popup.text'),
204
204
  type: 'success'
205
205
  })
206
206
 
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <AwPage
3
- :title="$t('AwesIoNuxtAdmin.title')"
3
+ :title="$t('aw.nuxt_admin.title')"
4
4
  :breadcrumb="{ href: '/admin/users' }"
5
5
  >
6
6
  <template #buttons>
7
7
  <AwPageMenuButtons
8
8
  :items="[
9
9
  {
10
- text: $t('AwesIoNuxtAdmin.edit'),
10
+ text: $t('aw.nuxt_admin.edit'),
11
11
  icon: 'edit',
12
12
  href: `/admin/users/${model.id}/edit`,
13
13
  cta: true,
@@ -29,7 +29,7 @@
29
29
  <AwBadge
30
30
  v-if="$auth.user.id === model.id"
31
31
  color="mono-400"
32
- :text="$t('AwesIoNuxtAdmin.you')"
32
+ :text="$t('aw.nuxt_admin.you')"
33
33
  />
34
34
  </template>
35
35
  <template #options>
@@ -39,28 +39,28 @@
39
39
  />
40
40
  </template>
41
41
  <AwGrid>
42
- <AwInfo :label="$t('AwesIoNuxtAdmin.gender')">
42
+ <AwInfo :label="$t('aw.nuxt_admin.gender')">
43
43
  {{ model.$.profile.sex }}
44
44
  </AwInfo>
45
- <AwInfo :label="$t('AwesIoNuxtAdmin.first_name')">
45
+ <AwInfo :label="$t('aw.nuxt_admin.first_name')">
46
46
  {{ model.$.profile.first_name }}
47
47
  </AwInfo>
48
- <AwInfo :label="$t('AwesIoNuxtAdmin.last_name')">
48
+ <AwInfo :label="$t('aw.nuxt_admin.last_name')">
49
49
  {{ model.$.profile.last_name }}
50
50
  </AwInfo>
51
- <AwInfo :label="$t('AwesIoNuxtAdmin.email')">
51
+ <AwInfo :label="$t('aw.nuxt_admin.email')">
52
52
  {{ model.$.email }}
53
53
  </AwInfo>
54
- <AwInfo :label="$t('AwesIoNuxtAdmin.phone')">
54
+ <AwInfo :label="$t('aw.nuxt_admin.phone')">
55
55
  {{ model.$.profile.phone }}
56
56
  </AwInfo>
57
- <AwInfo :label="$t('AwesIoNuxtAdmin.position')">
57
+ <AwInfo :label="$t('aw.nuxt_admin.position')">
58
58
  {{ model.$.profile.position }}
59
59
  </AwInfo>
60
- <AwInfo :label="$t('AwesIoNuxtAdmin.role')">
60
+ <AwInfo :label="$t('aw.nuxt_admin.role')">
61
61
  {{ model.$.role.name }}
62
62
  </AwInfo>
63
- <AwInfo :label="$t('AwesIoNuxtAdmin.description')">
63
+ <AwInfo :label="$t('aw.nuxt_admin.description')">
64
64
  {{ model.$.profile.description }}
65
65
  </AwInfo>
66
66
  </AwGrid>
@@ -69,19 +69,19 @@
69
69
  <template #aside v-if="isCurrentUser">
70
70
  <AwGrid>
71
71
  <AwIsland
72
- :title="$t('AwesIoNuxtAdmin.changePassword')"
72
+ :title="$t('aw.nuxt_admin.change_password')"
73
73
  tag="NLink"
74
74
  :to="`/admin/users/${model.id}/security`"
75
75
  show-arrow
76
76
  />
77
77
  <AwIsland
78
- :title="$t('AwesIoNuxtAdmin.twoFactorAuth')"
78
+ :title="$t('aw.nuxt_admin.two_factor_auth')"
79
79
  tag="NLink"
80
80
  :to="`/admin/users/${model.id}/2fa`"
81
81
  show-arrow
82
82
  />
83
83
  <!-- <AwIsland
84
- :title="$t('AwesIoNuxtAdmin.socialAuth')"
84
+ :title="$t('aw.nuxt_admin.social_auth')"
85
85
  tag="NLink"
86
86
  :to="`/admin/users/${model.id}/social`"
87
87
  show-arrow
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <AwPage
3
- :title="$t('AwesIoNuxtAdmin.set_password')"
3
+ :title="$t('aw.nuxt_admin.set_password')"
4
4
  container="small"
5
5
  :breadcrumb="{ href: `/admin/users/${model.id}` }"
6
6
  >
@@ -10,14 +10,14 @@
10
10
  type="password"
11
11
  v-model="model.password"
12
12
  name="password"
13
- :label="$t('AwesIoNuxtAdmin.password')"
13
+ :label="$t('aw.nuxt_admin.password')"
14
14
  :error="model.errors.password"
15
15
  />
16
16
  <AwPassword
17
17
  type="password"
18
18
  v-model="model.password_confirmation"
19
19
  name="password_confirmation"
20
- :label="$t('AwesIoNuxtAdmin.password_confirmation')"
20
+ :label="$t('aw.nuxt_admin.password_confirmation')"
21
21
  :error="model.errors.password"
22
22
  />
23
23
  <AwButton
@@ -25,7 +25,7 @@
25
25
  :loading="model.saving"
26
26
  :disabled="!model.changed()"
27
27
  >
28
- {{ $t('AwesIoNuxtAdmin.update') }}
28
+ {{ $t('aw.nuxt_admin.update') }}
29
29
  </AwButton>
30
30
  </AwGrid>
31
31
  </AwCard>
@@ -5,7 +5,7 @@
5
5
  >
6
6
  <AwChip class="bg-mono-300">
7
7
  <AwIconSystemColor name="spinner" slot="left" class="h-5 w-5" />
8
- {{ $t('AwesIoNuxtAdmin.loading') }}
8
+ {{ $t('aw.nuxt_admin.loading') }}
9
9
  </AwChip>
10
10
  </div>
11
11
  <NuxtChild v-else :model="user" />
@@ -1,16 +1,16 @@
1
1
  <template>
2
- <AwPage :title="$t('AwesIoNuxtAdmin.employees')">
2
+ <AwPage :title="$t('aw.nuxt_admin.employees')">
3
3
  <template #buttons>
4
4
  <AwPageMenuButtons
5
5
  :items="[
6
6
  {
7
- text: $t('AwesIoNuxtAdmin.create_user'),
7
+ text: $t('aw.nuxt_admin.create_user'),
8
8
  href: '/admin/users/add',
9
9
  icon: 'plus',
10
10
  cta: true
11
11
  },
12
12
  {
13
- text: $t('AwesIoNuxtAdmin.roles'),
13
+ text: $t('aw.nuxt_admin.roles'),
14
14
  href: '/admin/roles'
15
15
  }
16
16
  ]"
@@ -30,7 +30,7 @@
30
30
  :watch-params="['status', 'search']"
31
31
  class="mt-8"
32
32
  >
33
- <AwTableCol :title="$t('AwesIoNuxtAdmin.employee')">
33
+ <AwTableCol :title="$t('aw.nuxt_admin.employee')">
34
34
  <template #default="{ cell }">
35
35
  <AwUserpic
36
36
  :src="cell.avatar"
@@ -42,7 +42,7 @@
42
42
  <AwBadge
43
43
  v-if="$auth.user.id === cell.id"
44
44
  color="mono-400"
45
- :text="$t('AwesIoNuxtAdmin.you')"
45
+ :text="$t('aw.nuxt_admin.you')"
46
46
  />
47
47
  </template>
48
48
  </AwUserpic>
@@ -50,7 +50,7 @@
50
50
  </AwTableCol>
51
51
  <AwTableCol
52
52
  field="status"
53
- :title="$t('AwesIoNuxtAdmin.status')"
53
+ :title="$t('aw.nuxt_admin.status')"
54
54
  :orderable="{ templateValue: 'status' }"
55
55
  >
56
56
  <template #default="{ cell }">
@@ -63,11 +63,11 @@
63
63
  <AwTableCol
64
64
  field="role.name"
65
65
  :orderable="{ templateValue: 'role_name' }"
66
- :title="$t('AwesIoNuxtAdmin.role')"
66
+ :title="$t('aw.nuxt_admin.role')"
67
67
  />
68
68
  <AwTableCol
69
69
  field="last_activity"
70
- :title="$t('AwesIoNuxtAdmin.last_activity')"
70
+ :title="$t('aw.nuxt_admin.last_activity')"
71
71
  :orderable="{ templateValue: 'last_login_at' }"
72
72
  >
73
73
  <template #default="{ cell }">
@@ -94,11 +94,11 @@ export default {
94
94
  filters() {
95
95
  return [
96
96
  {
97
- text: this.$t('AwesIoNuxtAdmin.active'),
97
+ text: this.$t('aw.nuxt_admin.active'),
98
98
  href: { query: { status: 'active' } }
99
99
  },
100
100
  {
101
- text: this.$t('AwesIoNuxtAdmin.all'),
101
+ text: this.$t('aw.nuxt_admin.all'),
102
102
  href: { query: {} }
103
103
  }
104
104
  ]
package/lang/de.js DELETED
@@ -1,83 +0,0 @@
1
- export default {
2
- AwesIoNuxtAdmin: {
3
- admin: 'Benutzer',
4
- roles: 'Rollen',
5
- create_role: 'Rolle erstellen',
6
- role: 'Rolle',
7
- description: 'Beschreibung',
8
- priority: 'Priorität',
9
- from: 'von',
10
- permissions: 'Berechtigungen',
11
- permissions_title: 'Berechtigungen',
12
- role_name: 'Rolle',
13
- default_role_title: 'Möchten Sie diese Rolle standardmäßig verwenden?',
14
- default_role: 'Ja, ich möchte die Standardeinstellung verwenden.',
15
- information: 'Informationen',
16
- you: 'Sie',
17
- gender: 'Geschlecht',
18
- create: 'Erstellen',
19
- create_user: 'Neuer Benutzer',
20
- update: 'Aktualisieren',
21
- employees: 'Benutzer',
22
- employee: 'Benutzer',
23
- status: 'Status',
24
- status_active: 'Aktiv',
25
- status_blocked: 'Blockiert',
26
- last_activity: 'Letzte Aktivität',
27
- edit: 'Bearbeiten',
28
- block: 'Deaktivieren',
29
- activate: 'Aktivieren',
30
- all: 'Alle',
31
- active: 'Aktiv',
32
- blocked: 'Blockiert',
33
- first_name: 'Vorname',
34
- last_name: 'Nachname',
35
- male: 'Männlich',
36
- female: 'Weiblich',
37
- divers: 'Divers',
38
- email: 'E-Mail',
39
- phone: 'Telefon',
40
- position: 'Position',
41
- password: 'Passwort',
42
- password_confirmation: 'Passwort bestätigen',
43
- default_new: 'Standard ist neu',
44
- name: 'Name',
45
- reset: 'Zurücksetzen',
46
- user_edit: {
47
- popup: {
48
- header: 'Erfolg!',
49
- text: 'Sie haben das Benutzerprofil erfolgreich aktualisiert.'
50
- }
51
- },
52
- user_count: '{count} Benutzer|{count} Benutzer|{count} Benutzer',
53
- delete: 'Löschen',
54
- reset_password: 'Passwort zurücksetzen',
55
- set_password: 'Passwort setzen',
56
- confirm_role_delete: 'Möchten Sie diese Rolle wirklich löschen?',
57
- confirm_reset_password:
58
- 'Möchten Sie das Benutzerkennwort wirklich zurücksetzen?',
59
- confirm_user_delete: 'Möchten Sie diesen Benutzer wirklich löschen?',
60
- title: 'Einstellungen',
61
- profileTab: 'Profil',
62
- securityTab: 'Sicherheit',
63
- changeAvatar: 'Änderung',
64
- removeAvatar: 'Löschen',
65
- changePassword: 'Passwort ändern',
66
- oldPassword: 'Altes Passwort',
67
- newPassword: 'Neues Passwort',
68
- passwordConfirm: 'Passwort bestätigen',
69
- submitPassword: 'Speichern',
70
- twoFactorAuth: 'Zwei-Faktor-Authentifizierung',
71
- enable: 'Aktivieren',
72
- verifyToken: 'Bitte Autorisierungstoken eingeben',
73
- showInfo: 'Aktivierungsinfo',
74
- disable: 'Deaktivieren',
75
- infoTitle: 'QR Code scannen',
76
- infoText:
77
- 'Um die Methode zu aktivieren, scannen Sie bitte den QR-Code mit dem Google Authenticator.',
78
- infoInstall:
79
- 'Wenn Sie nicht über Google Authenticator verfügen, können Sie es einfach installieren, indem Sie auf den unten stehenden Link klicken.',
80
- loading: 'Laden...',
81
- details_title: 'Über'
82
- }
83
- }
package/lang/en.js DELETED
@@ -1,83 +0,0 @@
1
- export default {
2
- AwesIoNuxtAdmin: {
3
- admin: 'Admin',
4
- roles: 'Roles',
5
- create_role: 'Create role',
6
- role: 'Role',
7
- description: 'Description',
8
- priority: 'Priority',
9
- from: 'from',
10
- permissions: 'permissions',
11
- permissions_title: 'Permissions',
12
- role_name: 'Role name',
13
- default_role_title: 'Do you want to use this role by default?',
14
- default_role: 'Yes, I want to use by default.',
15
- information: 'Information',
16
- you: 'You',
17
- gender: 'Gender',
18
- create: 'Create',
19
- create_user: 'New user',
20
- update: 'Update',
21
- employees: 'Users',
22
- employee: 'User',
23
- status: 'Status',
24
- status_active: 'Active',
25
- status_blocked: 'Blocked',
26
- last_activity: 'Last activity',
27
- edit: 'Edit',
28
- block: 'Deactivate',
29
- activate: 'Activate',
30
- all: 'All',
31
- active: 'Active',
32
- blocked: 'Blocked',
33
- first_name: 'First name',
34
- last_name: 'Last name',
35
- male: 'Male',
36
- female: 'Female',
37
- divers: 'Divers',
38
- email: 'Email',
39
- phone: 'Phone',
40
- position: 'Position',
41
- password: 'Password',
42
- password_confirmation: 'Password confirmation',
43
- default_new: 'default new',
44
- name: 'Name',
45
- reset: 'Reset',
46
- user_edit: {
47
- popup: {
48
- header: 'Well Done!',
49
- text: 'You have successfully updated the user profile.'
50
- }
51
- },
52
- user_count: '{count} users|{count} user|{count} users',
53
- delete: 'Delete',
54
- reset_password: 'Reset password',
55
- set_password: 'Set password',
56
- confirm_role_delete: 'Are you sure, you want to delete this role?',
57
- confirm_reset_password:
58
- 'Are you sure, you want to reset user password?',
59
- confirm_user_delete: 'Are you sure, you want to delete this user?',
60
- title: 'Settings',
61
- profileTab: 'Profile',
62
- securityTab: 'Security',
63
- changeAvatar: 'Change',
64
- removeAvatar: 'Remove',
65
- changePassword: 'Change password',
66
- oldPassword: 'Old password',
67
- newPassword: 'New password',
68
- passwordConfirm: 'Confirm password',
69
- submitPassword: 'Save',
70
- twoFactorAuth: 'Two-factor authentication',
71
- enable: 'Enable',
72
- verifyToken: 'Please enter authorization token',
73
- showInfo: 'Activation info',
74
- disable: 'Disable',
75
- infoTitle: 'Scan QR Code',
76
- infoText:
77
- 'To enable the method please to scan the QR code using the Google Authenticator',
78
- infoInstall:
79
- 'If you do not have Google Authenticator, you can easily install it by clicking on the link below',
80
- loading: 'Loading...',
81
- details_title: 'About'
82
- }
83
- }
package/lang/ru.js DELETED
@@ -1,85 +0,0 @@
1
- export default {
2
- AwesIoNuxtAdmin: {
3
- admin: 'Пользователи',
4
- roles: 'Роли',
5
- create_role: 'Создать роль',
6
- role: 'Роль',
7
- description: 'Описание',
8
- priority: 'Приоритет',
9
- from: 'от',
10
- permissions: 'Pазрешения',
11
- permissions_title: 'Разрешения',
12
- role_name: 'Роль',
13
- default_role_title: 'Вы хотите использовать эту роль по умолчанию?',
14
- default_role: 'Да, я хочу использовать по умолчанию.',
15
- information: 'Информация',
16
- you: 'Вы',
17
- gender: 'Пол',
18
- create: 'Создать',
19
- create_user: 'Новый пользователь',
20
- update: 'Обновить',
21
- employees: 'Пользователи',
22
- employee: 'Пользователь',
23
- status: 'Статус',
24
- status_active: 'Активный',
25
- status_blocked: 'Заблокирован',
26
- last_activity: 'Последняя активность',
27
- edit: 'Редактировать',
28
- block: 'Деактивировать',
29
- activate: 'Активировать',
30
- all: 'Все',
31
- active: 'Активные',
32
- blocked: 'Заблокированные',
33
- first_name: 'Имя',
34
- last_name: 'Фамилия',
35
- male: 'Мужской',
36
- female: 'Женский',
37
- divers: 'Разный',
38
- email: 'Емайл',
39
- phone: 'Телефон',
40
- position: 'Должность',
41
- password: 'Пароль',
42
- password_confirmation: 'Подтвердите пароль',
43
- default_new: 'по умолчанию новый',
44
- name: 'Название',
45
- reset: 'Сбросить',
46
- user_edit: {
47
- popup: {
48
- header: 'Успех!',
49
- text: 'Вы успешно обновили профиль пользователя.'
50
- }
51
- },
52
- user_count:
53
- '{count} пользователей|{count} пользователь|{count} пользователя|{count} пользователей',
54
- delete: 'Удалить',
55
- reset_password: 'Сбросить пароль',
56
- set_password: 'Установить пароль',
57
- confirm_role_delete: 'Вы уверены, что хотите удалить эту роль?',
58
- confirm_reset_password:
59
- 'Вы уверены, что хотите сбросить пароль пользователя?',
60
- confirm_user_delete:
61
- 'Вы уверены, что хотите удалить этого пользователя?',
62
- title: 'Настройки',
63
- profileTab: 'Профиль',
64
- securityTab: 'Безопасность',
65
- changeAvatar: 'Изменить',
66
- removeAvatar: 'Удалить',
67
- changePassword: 'Изменить пароль',
68
- oldPassword: 'Старый пароль',
69
- newPassword: 'Новый пароль',
70
- passwordConfirm: 'Подтвердить пароль',
71
- submitPassword: 'Сохранить',
72
- twoFactorAuth: 'Двухфакторная аутентификация',
73
- enable: 'Активировать',
74
- verifyToken: 'Пожалуйста, введите код авторизации',
75
- showInfo: 'Информация об активации',
76
- disable: 'Отключить',
77
- infoTitle: 'Сканировать QR-код',
78
- infoText:
79
- 'Чтобы включить метод, просканируйте QR-код с помощью Google Authenticator.',
80
- infoInstall:
81
- 'Если у вас нет Google Authenticator, вы можете легко установить его, нажав на ссылку ниже.',
82
- loading: 'Загрузка...',
83
- details_title: 'О пользователе'
84
- }
85
- }
package/lang/uk.js DELETED
@@ -1,86 +0,0 @@
1
- export default {
2
- AwesIoNuxtAdmin: {
3
- admin: 'Користувачі',
4
- roles: 'Ролі',
5
- create_role: 'Створити роль',
6
- role: 'Роль',
7
- description: 'Опис',
8
- priority: 'Пріоритет',
9
- from: 'від',
10
- permissions: 'Дозволи',
11
- permissions_title: 'Дозволи',
12
- role_name: 'Роль',
13
- default_role_title:
14
- 'Ви хочете використовувати цю роль за замовчуванням?',
15
- default_role: 'Так, я хочу використовувати за замовчуванням.',
16
- information: 'Інформація',
17
- you: 'Ви',
18
- gender: 'Пол',
19
- create: 'Створити',
20
- create_user: 'Новий користувач',
21
- update: 'Оновити',
22
- employees: 'Користувачі',
23
- employee: 'Користувач',
24
- status: 'Статус',
25
- status_active: 'Активний',
26
- status_blocked: 'Заблокований',
27
- last_activity: 'Остання активність',
28
- edit: 'Редагувати',
29
- block: 'Деактивувати',
30
- activate: 'Активувати',
31
- all: 'Все',
32
- active: 'Активні',
33
- blocked: 'Заблоковані',
34
- first_name: "Ім'я",
35
- last_name: 'Прізвище',
36
- male: 'Чоловік',
37
- female: 'Жіночий',
38
- divers: 'Різний',
39
- email: 'Емайл',
40
- phone: 'Телефон',
41
- position: 'Посада',
42
- password: 'Пароль',
43
- password_confirmation: 'Підтвердіть пароль',
44
- default_new: 'за замовчуванням новий',
45
- name: 'Назва',
46
- reset: 'Скинути',
47
- user_edit: {
48
- popup: {
49
- header: 'Успіх!',
50
- text: 'Ви успішно оновили профіль користувача.'
51
- }
52
- },
53
- user_count:
54
- '{count} користувачів|{count} користувачів|{count} користувачів|{count} користувачів',
55
- delete: 'Видалити',
56
- reset_password: 'Скинути пароль',
57
- set_password: 'Встановити пароль',
58
- confirm_role_delete: 'Ви впевнені, що хочете видалити цю роль?',
59
- confirm_reset_password:
60
- 'Ви впевнені, що хочете скинути пароль користувача?',
61
- confirm_user_delete:
62
- 'Ви впевнені, що хочете видалити цього користувача?',
63
- title: 'Налаштування',
64
- profileTab: 'Профіль',
65
- securityTab: 'Безпека',
66
- changeAvatar: 'Змінити',
67
- removeAvatar: 'Видалити',
68
- changePassword: 'Змінити пароль',
69
- oldPassword: 'Старий пароль',
70
- newPassword: 'Новий пароль',
71
- passwordConfirm: 'Підтвердити пароль',
72
- submitPassword: 'Зберегти',
73
- twoFactorAuth: 'Двухфакторная аутентифікація',
74
- enable: 'Активувати',
75
- verifyToken: 'Будь ласка, введіть код авторизації',
76
- showInfo: 'Інформація про активацію',
77
- disable: 'Відключити',
78
- infoTitle: 'Сканувати QR-код',
79
- infoText:
80
- 'Щоб включити метод, проскануйте QR-код за допомогою Google Authenticator.',
81
- infoInstall:
82
- 'Якщо у вас немає Google Authenticator, ви можете легко встановити його, натиснувши на посилання нижче.',
83
- loading: 'Завантаження...',
84
- details_title: 'Про користувача'
85
- }
86
- }