mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-11-24 07:48:01 -06:00
Compare commits
2 Commits
master
...
rest-api/p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
007b601876 | ||
|
|
6be40ce218 |
@@ -472,6 +472,10 @@ export type XoApp = EventEmitter & {
|
||||
getPlugin(id: XoPlugin['id']): Promise<XoPlugin>
|
||||
getPlugins(): Promise<XoPlugin[]>
|
||||
getProxy(id: XoProxy['id']): Promise<XoProxy>
|
||||
updateProxy(
|
||||
id: XoProxy['id'],
|
||||
updates: { address?: string | null; authenticationToken?: string; name?: string; vmUuid?: XoVm['id'] | null }
|
||||
): Promise<XoProxy>
|
||||
getRemote(id: XoBackupRepository['id']): Promise<XoBackupRepository>
|
||||
getAllRemotes(): Promise<XoBackupRepository[]>
|
||||
removeRemote(id: XoBackupRepository['id']): Promise<void>
|
||||
@@ -503,10 +507,7 @@ export type XoApp = EventEmitter & {
|
||||
* `assertBrowserMediaInsertable` reports the predictable failures synchronously, e.g. before
|
||||
* starting a task.
|
||||
*/
|
||||
insertBrowserMedia(params: {
|
||||
id: XoBrowserMediaSession['id']
|
||||
vmId: XoVm['id']
|
||||
}): Promise<{ vdiId: XoVdi['id'] }>
|
||||
insertBrowserMedia(params: { id: XoBrowserMediaSession['id']; vmId: XoVm['id'] }): Promise<{ vdiId: XoVdi['id'] }>
|
||||
assertBrowserMediaInsertable(params: { id: XoBrowserMediaSession['id']; vmId: XoVm['id'] }): void
|
||||
/** Eject the ISO of a browser media session, release its storage, and disconnect the browser */
|
||||
ejectBrowserMedia(id: XoBrowserMediaSession['id']): Promise<void>
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
export default {
|
||||
read: true,
|
||||
update: {
|
||||
name: true,
|
||||
},
|
||||
}
|
||||
|
||||
26
@xen-orchestra/lite/src/route-map.d.ts
vendored
26
@xen-orchestra/lite/src/route-map.d.ts
vendored
@@ -653,13 +653,6 @@ declare module 'vue-router/auto-routes' {
|
||||
Record<never, never>,
|
||||
| never
|
||||
>,
|
||||
'/story/web-core/task/vts-task-list': RouteRecordInfo<
|
||||
'/story/web-core/task/vts-task-list',
|
||||
'/story/web-core/task/vts-task-list',
|
||||
Record<never, never>,
|
||||
Record<never, never>,
|
||||
| never
|
||||
>,
|
||||
'/story/web-core/tree/vts-tree-item': RouteRecordInfo<
|
||||
'/story/web-core/tree/vts-tree-item',
|
||||
'/story/web-core/tree/vts-tree-item',
|
||||
@@ -1143,6 +1136,13 @@ declare module 'vue-router/auto-routes' {
|
||||
Record<never, never>,
|
||||
| never
|
||||
>,
|
||||
'/story/web-core/ui/task-list/ui-task-list': RouteRecordInfo<
|
||||
'/story/web-core/ui/task-list/ui-task-list',
|
||||
'/story/web-core/ui/task-list/ui-task-list',
|
||||
Record<never, never>,
|
||||
Record<never, never>,
|
||||
| never
|
||||
>,
|
||||
'/story/web-core/ui/title/ui-title': RouteRecordInfo<
|
||||
'/story/web-core/ui/title/ui-title',
|
||||
'/story/web-core/ui/title/ui-title',
|
||||
@@ -1834,12 +1834,6 @@ declare module 'vue-router/auto-routes' {
|
||||
views:
|
||||
| never
|
||||
}
|
||||
'src/stories/web-core/task/vts-task-list.story.vue': {
|
||||
routes:
|
||||
| '/story/web-core/task/vts-task-list'
|
||||
views:
|
||||
| never
|
||||
}
|
||||
'src/stories/web-core/tree/vts-tree-item.story.vue': {
|
||||
routes:
|
||||
| '/story/web-core/tree/vts-tree-item'
|
||||
@@ -2254,6 +2248,12 @@ declare module 'vue-router/auto-routes' {
|
||||
views:
|
||||
| never
|
||||
}
|
||||
'src/stories/web-core/ui/task-list/ui-task-list.story.vue': {
|
||||
routes:
|
||||
| '/story/web-core/ui/task-list/ui-task-list'
|
||||
views:
|
||||
| never
|
||||
}
|
||||
'src/stories/web-core/ui/title/ui-title.story.vue': {
|
||||
routes:
|
||||
| '/story/web-core/ui/title/ui-title'
|
||||
|
||||
@@ -2,32 +2,36 @@
|
||||
<ComponentStory
|
||||
v-slot="{ properties }"
|
||||
:params="[
|
||||
prop('accent').required().enum('neutral', 'success', 'warning', 'danger').preset('neutral').widget(),
|
||||
prop('id').required().obj('FormSelectId').preset(id),
|
||||
prop('accent').required().enum('neutral', 'warning', 'danger').preset('neutral').widget(),
|
||||
prop('options').required().arr('FormOption<TEntry, TValue>').widget().preset(options),
|
||||
prop('selectedLabel').str(),
|
||||
prop('required').bool().widget(),
|
||||
prop('placeholder').str().widget().preset('Choose colors'),
|
||||
prop('searchPlaceholder').str().widget().preset('Search colors'),
|
||||
prop('loading').bool().widget(),
|
||||
model('search'),
|
||||
slot(),
|
||||
]"
|
||||
>
|
||||
<VtsSelect v-bind="properties" />
|
||||
<VtsSelect v-bind="properties" v-model:search="searchTerm" :selected-label />
|
||||
</ComponentStory>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import ComponentStory from '@/components/component-story/ComponentStory.vue'
|
||||
import { prop, slot } from '@/libs/story/story-param.ts'
|
||||
import { model, prop, slot } from '@/libs/story/story-param.ts'
|
||||
import VtsSelect from '@core/components/select/VtsSelect.vue'
|
||||
import { useFormSelect } from '@core/packages/form-select'
|
||||
import { upperFirst } from 'lodash-es'
|
||||
|
||||
const colors = ['blue', 'yellow', 'red', 'green', 'orange', 'purple', 'white', 'grey', 'black']
|
||||
|
||||
const { id } = useFormSelect(colors, {
|
||||
option: {
|
||||
label: color => `${upperFirst(color)} color`,
|
||||
disabled: color => color === 'blue' || color === 'orange' || color === 'black',
|
||||
},
|
||||
const { options, searchTerm, selectedLabel } = useFormSelect(colors, {
|
||||
properties: color => ({
|
||||
value: color,
|
||||
label: `${upperFirst(color)} color`,
|
||||
disabled: color === 'blue' || color === 'orange' || color === 'black',
|
||||
}),
|
||||
multiple: true,
|
||||
searchable: true,
|
||||
placeholder: 'Choose colors',
|
||||
searchPlaceholder: 'Search colors',
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
<template>
|
||||
<ComponentStory
|
||||
v-slot="{ properties }"
|
||||
:params="[
|
||||
prop('tasks').type('Task[]').required().preset(allTasks),
|
||||
prop('selectedTaskId').str().widget(),
|
||||
prop('showEyeIcon').bool().widget(),
|
||||
prop('autoCollapseCompleted').bool().widget(),
|
||||
prop('expandAll')
|
||||
.bool()
|
||||
.widget()
|
||||
.help('Shows every task expanded; turning it off restores the tasks expanded before'),
|
||||
prop('unreadTaskIds').type('ReadonlySet<string>').help('Shows an unread dot column, with a dot for these tasks'),
|
||||
event('select').args({ id: 'string' }),
|
||||
]"
|
||||
:presets="{
|
||||
'Unread tasks': {
|
||||
props: {
|
||||
unreadTaskIds: new Set(['1', '1-2', '4', '9', '9-2', '9-2-1']),
|
||||
},
|
||||
},
|
||||
}"
|
||||
>
|
||||
<VtsTaskList v-bind="properties" />
|
||||
</ComponentStory>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import ComponentStory from '@/components/component-story/ComponentStory.vue'
|
||||
import { event, prop } from '@/libs/story/story-param.ts'
|
||||
import { allTasks } from '@/stories/web-core/ui/task-item/mock-tasks.ts'
|
||||
import VtsTaskList from '@core/components/task/VtsTaskList.vue'
|
||||
</script>
|
||||
@@ -67,107 +67,10 @@ export const deepNestedTask: Task = {
|
||||
],
|
||||
}
|
||||
|
||||
export const pendingWithoutProgressTask: Task = {
|
||||
id: '6',
|
||||
name: 'Queued replication',
|
||||
status: 'pending',
|
||||
start: Date.now() - 2 * 60_000,
|
||||
}
|
||||
|
||||
export const pendingFullProgressTask: Task = {
|
||||
id: '7',
|
||||
name: 'Finalize export',
|
||||
status: 'pending',
|
||||
progress: 100,
|
||||
start: Date.now() - 60_000,
|
||||
infos: [{ message: 'Waiting for cleanup', data: null }],
|
||||
}
|
||||
|
||||
export const infosAndWarningsTask: Task = {
|
||||
id: '8',
|
||||
name: 'Rolling pool update',
|
||||
status: 'pending',
|
||||
progress: 50,
|
||||
start: Date.now() - 3 * 60 * 60_000,
|
||||
infos: [{ message: 'Hosts updated', data: { hosts: 4, done: 2 } }],
|
||||
warnings: [{ message: 'Reboot required after update', data: { host: 'host-3' } }],
|
||||
subtasks: [
|
||||
{ id: '8-1', name: 'host-1', status: 'success', progress: 100, end: Date.now() - 2 * 60 * 60_000 },
|
||||
{ id: '8-2', name: 'host-2', status: 'success', progress: 100, end: Date.now() - 60 * 60_000 },
|
||||
{ id: '8-3', name: 'host-3', status: 'pending', progress: 30, start: Date.now() - 15 * 60_000 },
|
||||
],
|
||||
}
|
||||
|
||||
export const failedNestedTask: Task = {
|
||||
id: '9',
|
||||
name: 'Disaster recovery drill',
|
||||
status: 'failure',
|
||||
progress: 100,
|
||||
start: Date.now() - 8 * 60 * 60_000,
|
||||
end: Date.now() - 7 * 60 * 60_000,
|
||||
subtasks: [
|
||||
{ id: '9-1', name: 'Provision VM', status: 'success', progress: 100, end: Date.now() - 7.5 * 60 * 60_000 },
|
||||
{
|
||||
id: '9-2',
|
||||
name: 'Restore data',
|
||||
status: 'failure',
|
||||
progress: 100,
|
||||
end: Date.now() - 7 * 60 * 60_000,
|
||||
warnings: [{ message: 'Missing backup files', data: { missing: 3 } }],
|
||||
subtasks: [
|
||||
{ id: '9-2-1', name: 'Mount SR', status: 'failure', progress: 100, end: Date.now() - 7.1 * 60 * 60_000 },
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
export const interruptedTask: Task = {
|
||||
id: '10',
|
||||
name: 'Storage migration',
|
||||
status: 'interrupted',
|
||||
progress: 10,
|
||||
start: Date.now() - 2 * 60 * 60_000,
|
||||
infos: [
|
||||
{ message: 'Rows migrated before interruption', data: { rows: 1200 } },
|
||||
{ message: 'Task manually aborted', data: null },
|
||||
],
|
||||
}
|
||||
|
||||
export const longNameTask: Task = {
|
||||
id: '11',
|
||||
name: 'Very long task name that should wrap gracefully in the task list UI when space is limited',
|
||||
status: 'pending',
|
||||
progress: 8,
|
||||
start: Date.now() - 2 * 60 * 60_000,
|
||||
}
|
||||
|
||||
export const longNameWithEverythingTask: Task = {
|
||||
id: '12',
|
||||
name: 'Very long task name for a full backup job that also has subtasks, infos, warnings and an end time to display',
|
||||
to: '#',
|
||||
status: 'failure',
|
||||
progress: 100,
|
||||
start: Date.now() - 5 * 60 * 60_000,
|
||||
end: Date.now() - 4 * 60 * 60_000,
|
||||
infos: [{ message: 'Transferred 120 GiB', data: { size: 120 } }],
|
||||
warnings: [{ message: 'Some VDIs were skipped', data: { skipped: 2 } }],
|
||||
subtasks: [
|
||||
{ id: '12-1', name: 'Snapshot', status: 'success', progress: 100, end: Date.now() - 4.5 * 60 * 60_000 },
|
||||
{ id: '12-2', name: 'Transfer', status: 'failure', progress: 100, end: Date.now() - 4 * 60 * 60_000 },
|
||||
],
|
||||
}
|
||||
|
||||
export const allTasks: Task[] = [
|
||||
pendingBackupTask,
|
||||
completedWithRootLinkTask,
|
||||
failedWithWarningsTask,
|
||||
migrationNamePartsTask,
|
||||
deepNestedTask,
|
||||
pendingWithoutProgressTask,
|
||||
pendingFullProgressTask,
|
||||
infosAndWarningsTask,
|
||||
failedNestedTask,
|
||||
interruptedTask,
|
||||
longNameTask,
|
||||
longNameWithEverythingTask,
|
||||
]
|
||||
|
||||
@@ -4,22 +4,27 @@
|
||||
:presets
|
||||
:params="[
|
||||
prop('task').type('object').required().widget().preset(pendingBackupTask),
|
||||
prop('depth').type('number').required().preset(1),
|
||||
model('expanded').prop(p => p.type('boolean').widget(boolean()).preset(false)),
|
||||
prop('selected').type('boolean').widget(boolean()).preset(false),
|
||||
prop('showEyeIcon').type('boolean').widget(boolean()).preset(true),
|
||||
prop('showUnread').bool().widget().help('Reserves the unread dot column'),
|
||||
prop('unread').bool().widget(),
|
||||
event('expand'),
|
||||
event('select').args({ id: 'string' }),
|
||||
]"
|
||||
>
|
||||
<UiTaskItem v-bind="properties" />
|
||||
<ul>
|
||||
<UiTaskItem v-bind="properties" @expand="properties['onUpdate:expanded']?.(!properties.expanded)" />
|
||||
</ul>
|
||||
</ComponentStory>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import ComponentStory from '@/components/component-story/ComponentStory.vue'
|
||||
import { event, prop } from '@/libs/story/story-param.ts'
|
||||
import { event, model, prop } from '@/libs/story/story-param.ts'
|
||||
import { boolean } from '@/libs/story/story-widget.ts'
|
||||
import {
|
||||
completedWithRootLinkTask,
|
||||
deepNestedTask,
|
||||
failedWithWarningsTask,
|
||||
migrationNamePartsTask,
|
||||
pendingBackupTask,
|
||||
@@ -35,24 +40,45 @@ const presets: Record<
|
||||
'Pending backup': {
|
||||
props: {
|
||||
task: pendingBackupTask,
|
||||
depth: 1,
|
||||
expanded: false,
|
||||
selected: false,
|
||||
showEyeIcon: true,
|
||||
},
|
||||
},
|
||||
'Completed + root link': {
|
||||
props: {
|
||||
task: completedWithRootLinkTask,
|
||||
depth: 1,
|
||||
expanded: false,
|
||||
selected: false,
|
||||
showEyeIcon: true,
|
||||
},
|
||||
},
|
||||
'Failed + warnings': {
|
||||
props: {
|
||||
task: failedWithWarningsTask,
|
||||
depth: 1,
|
||||
expanded: false,
|
||||
selected: false,
|
||||
showEyeIcon: true,
|
||||
},
|
||||
},
|
||||
'Migration (nameParts)': {
|
||||
props: {
|
||||
task: migrationNamePartsTask,
|
||||
depth: 1,
|
||||
expanded: false,
|
||||
selected: false,
|
||||
showEyeIcon: true,
|
||||
},
|
||||
},
|
||||
'Deep nested': {
|
||||
props: {
|
||||
task: deepNestedTask,
|
||||
depth: 1,
|
||||
expanded: true,
|
||||
selected: false,
|
||||
showEyeIcon: true,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<ComponentStory
|
||||
v-slot="{ properties }"
|
||||
:params="[prop('tasks').type('Task[]').required().preset(allTasks), event('select')]"
|
||||
>
|
||||
<UiTaskList v-bind="properties" />
|
||||
</ComponentStory>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import ComponentStory from '@/components/component-story/ComponentStory.vue'
|
||||
import { event, prop } from '@/libs/story/story-param.ts'
|
||||
import { allTasks } from '@/stories/web-core/ui/task-item/mock-tasks.ts'
|
||||
import UiTaskList from '@core/components/ui/task-list/UiTaskList.vue'
|
||||
</script>
|
||||
@@ -1,8 +1,10 @@
|
||||
import {
|
||||
Body,
|
||||
Example,
|
||||
Extension,
|
||||
Get,
|
||||
Middlewares,
|
||||
Patch,
|
||||
Path,
|
||||
Query,
|
||||
Request,
|
||||
@@ -13,16 +15,20 @@ import {
|
||||
Tags,
|
||||
} from 'tsoa'
|
||||
import { inject } from 'inversify'
|
||||
import { json } from 'express'
|
||||
import { provide } from 'inversify-binding-decorators'
|
||||
import type { Request as ExRequest } from 'express'
|
||||
import type { XoProxy } from '@vates/types'
|
||||
import type { XoProxy, XoVm } from '@vates/types'
|
||||
import { forbiddenOperation } from 'xo-common/api-errors.js'
|
||||
|
||||
import { acl } from '../middlewares/acl.middleware.mjs'
|
||||
import { acl, actionFromBody } from '../middlewares/acl.middleware.mjs'
|
||||
import { ApiError } from '../helpers/error.helper.mjs'
|
||||
import {
|
||||
badRequestResp,
|
||||
forbiddenOperationResp,
|
||||
internalServerErrorResp,
|
||||
invalidParameters,
|
||||
noContentResp,
|
||||
notFoundResp,
|
||||
proxyUnreachableResp,
|
||||
unauthorizedResp,
|
||||
@@ -146,4 +152,53 @@ export class ProxyController extends XoController<XoProxy> {
|
||||
|
||||
return { success: true }
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a proxy
|
||||
*
|
||||
* Set `address` or `vmUuid` to `null` to remove it.
|
||||
*
|
||||
* Only an administrator can change `address` or `vmUuid`
|
||||
*
|
||||
* Required privileges:
|
||||
* - resource: proxy, action: update (grants all fields)
|
||||
* - resource: proxy, action: update:name (if name is passed)
|
||||
*
|
||||
* @example id "e625ea0c-a876-405a-b838-109d762efe88"
|
||||
* @example body { "name": "My proxy" }
|
||||
*/
|
||||
@Extension('x-mcp-exposure', 'confirm')
|
||||
@Patch('{id}')
|
||||
@Middlewares([
|
||||
json(),
|
||||
acl({
|
||||
resource: 'proxy',
|
||||
action: actionFromBody<'proxy'>('update:name'),
|
||||
objectId: 'params.id',
|
||||
getObject: ({ restApi }) => restApi.xoApp.getProxy,
|
||||
}),
|
||||
])
|
||||
@SuccessResponse(noContentResp.status, noContentResp.description)
|
||||
@Response(forbiddenOperationResp.status, forbiddenOperationResp.description)
|
||||
@Response(notFoundResp.status, notFoundResp.description)
|
||||
@Response(invalidParameters.status, invalidParameters.description)
|
||||
@Response(internalServerErrorResp.status, internalServerErrorResp.description)
|
||||
async updateProxy(
|
||||
@Path() id: string,
|
||||
@Body() body: { address?: string | null; name?: string; vmUuid?: string | null }
|
||||
): Promise<void> {
|
||||
const user = this.restApi.getCurrentUser()
|
||||
if (user.permission !== 'admin' && (body.address !== undefined || body.vmUuid !== undefined)) {
|
||||
throw forbiddenOperation('update proxy', 'only an administrator can change address or vmUuid')
|
||||
}
|
||||
|
||||
if (typeof body.vmUuid === 'string') {
|
||||
this.restApi.getObject<XoVm>(body.vmUuid as XoVm['id'], 'VM')
|
||||
}
|
||||
|
||||
await this.restApi.xoApp.updateProxy(id as XoProxy['id'], {
|
||||
...body,
|
||||
vmUuid: body.vmUuid as XoVm['id'] | null | undefined,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import { describe, it } from 'node:test'
|
||||
import { forbiddenOperation } from 'xo-common/api-errors.js'
|
||||
|
||||
import { ApiError } from '../helpers/error.helper.mjs'
|
||||
import { ProxyController } from './proxy.controller.mjs'
|
||||
@@ -49,3 +50,63 @@ describe('ProxyController.getProxyHealth', () => {
|
||||
await assert.rejects(controller.getProxyHealth(proxyId), error => error === unrelatedError)
|
||||
})
|
||||
})
|
||||
|
||||
const vmUuid = '3d0c7bd6-8b7e-4b2a-9c1f-6f0e5d4c3b2a'
|
||||
|
||||
function createUpdateController({ permission = 'admin' }: { permission?: string } = {}) {
|
||||
const calls: unknown[] = []
|
||||
const restApi = {
|
||||
getCurrentUser: () => ({ id: 'user-id', permission }),
|
||||
getObject: (...args: unknown[]) => {
|
||||
calls.push(['getObject', ...args])
|
||||
},
|
||||
xoApp: {
|
||||
updateProxy: async (...args: unknown[]) => {
|
||||
calls.push(['updateProxy', ...args])
|
||||
},
|
||||
},
|
||||
} as unknown as RestApi
|
||||
const controller = new ProxyController(restApi)
|
||||
return { calls, controller }
|
||||
}
|
||||
|
||||
describe('ProxyController.updateProxy', () => {
|
||||
it('forwards the body to updateProxy after checking the VM exists', async () => {
|
||||
const { calls, controller } = createUpdateController()
|
||||
const body = { address: '192.168.1.10:443', name: 'My proxy', vmUuid }
|
||||
|
||||
await controller.updateProxy(proxyId, body)
|
||||
|
||||
assert.deepEqual(calls, [
|
||||
['getObject', vmUuid, 'VM'],
|
||||
['updateProxy', proxyId, body],
|
||||
])
|
||||
})
|
||||
|
||||
it('forwards null to remove address or vmUuid', async () => {
|
||||
const { calls, controller } = createUpdateController()
|
||||
|
||||
await controller.updateProxy(proxyId, { address: null, vmUuid: null })
|
||||
|
||||
assert.deepEqual(calls, [['updateProxy', proxyId, { address: null, vmUuid: null }]])
|
||||
})
|
||||
|
||||
it('lets a non-admin change the name', async () => {
|
||||
const { calls, controller } = createUpdateController({ permission: 'none' })
|
||||
|
||||
await controller.updateProxy(proxyId, { name: 'My proxy' })
|
||||
|
||||
assert.deepEqual(calls, [['updateProxy', proxyId, { name: 'My proxy', vmUuid: undefined }]])
|
||||
})
|
||||
|
||||
for (const body of [{ address: 'attacker:443' }, { address: null }, { vmUuid }, { vmUuid: null }]) {
|
||||
it(`refuses ${JSON.stringify(body)} to a non-admin`, async () => {
|
||||
const { calls, controller } = createUpdateController({ permission: 'none' })
|
||||
|
||||
await assert.rejects(controller.updateProxy(proxyId, { name: 'My proxy', ...body }), error =>
|
||||
forbiddenOperation.is(error)
|
||||
)
|
||||
assert.deepEqual(calls, [])
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -42,30 +42,24 @@ XO 6 tests import the generic helpers through `@core-test` too, so a helper exis
|
||||
|
||||
Testing uses **Vitest 4** with a single `unit` project (see `vitest.config.ts`): every test matches `**/*.unit.test.ts` and runs on `happy-dom`, CLI-only, no browser.
|
||||
|
||||
| Path | Role |
|
||||
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `vitest.config.ts` | Runner config: `vue` + `vue-i18n` plugins, `@core` / `@core-test` aliases, `globals: true` |
|
||||
| `test/setup.ts` | Global setup: auto-unmounts every mounted wrapper after each test |
|
||||
| `test/create-global-test-config.ts` | `global` mount options: the real `vue-i18n`, a Pinia and a router (needed by `useUiStore`); optional `provide` |
|
||||
| `test/i18n.ts` | The `t` of that `vue-i18n` instance, to build expected texts from their translation key |
|
||||
| `test/find-accented-labels.ts` | `findAccentedTags` / `findAccentedInfos`: each `UiTag` / `UiInfo` a wrapper renders, as `{ label, accent }`, in order; `findInfoLabels`: the `UiInfo` messages alone (also used by XO 6) |
|
||||
| `test/field-events.ts` | `setFieldValue` / `blurField`: sets a field's value or moves the focus out of it as the user would, returns the `update:modelValue` / `blur` events emitted (also used by XO 6) |
|
||||
| `test/read-forwarded-flag.ts` | `readForwardedFlag`: the value a child component receives for a boolean prop, mounted with it then without it (`[true, false]` when forwarded) (also used by XO 6) |
|
||||
| `test/mount-field.ts` | `mountField`: mounts a text field component with a `neutral` accent and a `'Value'` model, attached to the document; optional slots and attributes |
|
||||
| `test/submit-confirmation-text.ts` | `submitConfirmationText(wrapper, text)`: types and submits the confirmation text of a modal, returns `{ isConfirmed, errors }` |
|
||||
| `test/mount-composable.ts` | `mountComposable`: runs a composable inside a mounted component, its result read through `wrapper.vm`; takes the `global` options, `createGlobalTestConfig()` by default |
|
||||
| `test/get-success-state.ts` | `getSuccessState`: the title, the message and the link of the `VtsSuccessStateHero` a wrapper renders, `undefined` without a title or a link (also used by XO 6) |
|
||||
| `test/find-links.ts` | `findLinks(wrapper, selector?)`: every `UiLink` of a wrapper (or every plain link matching `selector`) as its `[text, href]`, in order (also used by XO 6) |
|
||||
| `test/expect-loader.ts` | `hasLoader(wrapper)`: whether a `UiLoader` is rendered; `expectLoaderInsteadOf(wrapper, findContent)`: a `UiLoader` shown and the content it stands for empty (also used by XO 6) |
|
||||
| `test/select.ts` | `openSelect`, `findShownSelections`, `findSelectOptionLabels`, `pickSelectOption(wrapper, label, { detailed? })`: opens a `VtsSelect`, reads the selection it shows, reads or picks its options (`detailed`: the option shows details after its label); `chooseSelectOption(wrapper, label, { container?, detailed? })`: opens the select inside `container`, then picks the option (also used by XO 6) |
|
||||
| `test/is-placeholder-shown.ts` | `isPlaceholderShown(field)`: whether a readonly input shows its placeholder in place of its value |
|
||||
| `test/inject-or-throw.ts` | `injectOrThrow(key)`: `inject(key)`, throwing when nothing provides it |
|
||||
| `test/mount-with-setup.ts` | `mountWithSetup(setup, { global?, attachTo? })`: mounts a component whose `setup` sets up what its render needs below it (a select, a provided context) and returns that render (XO 6 wraps it with its config); `mountWithSetupResult(setup, options)`: the same, keeping what `setup` builds (a form, a composable's return), `setup` returning `{ result, render }`, returns `{ wrapper, result }`; `mountComposableUnderSetup(setup, composable, options)`: runs `composable` (given what `setup` returned) in a child of the component whose `setup` provides what it injects, returns `{ provided, result }` |
|
||||
| `test/mount-with-select.ts` | `renderSelect(id, { accent?, ref? }, slots?)`: renders the `VtsSelect` of a select id, `neutral` accent by default; `mountSelect`: a `VtsSelect` of string sources, its config, accent, wrapper message, option slot and a callback receiving the mounted select |
|
||||
| `test/find-title.ts` | `findTitle`: the `.title` of a `VtsSuccessStateHero` or a list item, `undefined` without one (also used by XO 6) |
|
||||
| `test/create-task-item.ts` | `createTaskItem`: a `Task` as the task lists display it, with the given overrides (also used by XO 6) |
|
||||
| `tsconfig.vitest.json` | Type-checks test files with the Vitest globals and the `@core-test` alias |
|
||||
| `tsconfig.app.json` | Type-checks the library, test files excluded |
|
||||
| Path | Role |
|
||||
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `vitest.config.ts` | Runner config: `vue` + `vue-i18n` plugins, `@core` / `@core-test` aliases, `globals: true` |
|
||||
| `test/setup.ts` | Global setup: auto-unmounts every mounted wrapper after each test |
|
||||
| `test/create-global-test-config.ts` | `global` mount options: the real `vue-i18n`, a Pinia and a router (needed by `useUiStore`); optional `provide` |
|
||||
| `test/i18n.ts` | The `t` of that `vue-i18n` instance, to build expected texts from their translation key |
|
||||
| `test/find-accented-labels.ts` | `findAccentedTags` / `findAccentedInfos`: each `UiTag` / `UiInfo` a wrapper renders, as `{ label, accent }`, in order; `findInfoLabels`: the `UiInfo` messages alone (also used by XO 6) |
|
||||
| `test/field-events.ts` | `setFieldValue` / `blurField`: sets a field's value or moves the focus out of it as the user would, returns the `update:modelValue` / `blur` events emitted (also used by XO 6) |
|
||||
| `test/read-forwarded-flag.ts` | `readForwardedFlag`: the value a child component receives for a boolean prop, mounted with it then without it (`[true, false]` when forwarded) (also used by XO 6) |
|
||||
| `test/mount-field.ts` | `mountField`: mounts a text field component with a `neutral` accent and a `'Value'` model, attached to the document; optional slots and attributes |
|
||||
| `test/submit-confirmation-text.ts` | `submitConfirmationText(wrapper, text)`: types and submits the confirmation text of a modal, returns `{ isConfirmed, errors }` |
|
||||
| `test/mount-composable.ts` | `mountComposable`: runs a composable inside a mounted component, its result read through `wrapper.vm`; takes the `global` options, `createGlobalTestConfig()` by default |
|
||||
| `test/get-success-state.ts` | `getSuccessState`: the title, the message and the link of the `VtsSuccessStateHero` a wrapper renders, `undefined` without a title or a link (also used by XO 6) |
|
||||
| `test/find-links.ts` | `findLinks(wrapper, selector?)`: every `UiLink` of a wrapper (or every plain link matching `selector`) as its `[text, href]`, in order (also used by XO 6) |
|
||||
| `test/expect-loader.ts` | `hasLoader(wrapper)`: whether a `UiLoader` is rendered; `expectLoaderInsteadOf(wrapper, findContent)`: a `UiLoader` shown and the content it stands for empty (also used by XO 6) |
|
||||
| `test/find-title.ts` | `findTitle`: the `.title` of a `VtsSuccessStateHero` or a list item, `undefined` without one (also used by XO 6) |
|
||||
| `tsconfig.vitest.json` | Type-checks test files with the Vitest globals and the `@core-test` alias |
|
||||
| `tsconfig.app.json` | Type-checks the library, test files excluded |
|
||||
|
||||
Test files sit next to the code they test, as `lib/**/*.unit.test.ts`. Shared test infrastructure lives in `test/`, outside `lib/`. The shared `scripts/npmignore` keeps all of it out of the published package.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Testing composables
|
||||
|
||||
A composable that relies on a Vue context (`useI18n`, `inject`, an effect scope, plugins) must run **inside a mounted component**: a throwaway component whose `setup` calls it, mounted with the package's global test config. `mountComposable` (`@core-test/mount-composable.ts`) does it and returns `{ wrapper }`; XO 6 wraps it with its own global test config (see [XO 6 composables](../../../web/docs/tests/testing-composables.md)). `mountComposable` renders nothing, so a composable needing rendered elements (a `useTemplateRef` target, as `useMenuPopup`) is mounted with `mountWithSetupResult` (`@core-test/mount-with-setup.ts`): its `setup` calls the composable and returns it as `result`, with a render of those elements. A composable needing no Vue context is called directly, like a [utility](./testing-utilities.md).
|
||||
A composable that relies on a Vue context (`useI18n`, `inject`, an effect scope, plugins) must run **inside a mounted component**: a throwaway component whose `setup` calls it, mounted with the package's global test config. `mountComposable` (`@core-test/mount-composable.ts`) does it and returns `{ wrapper }`; XO 6 wraps it with its own global test config (see [XO 6 composables](../../../web/docs/tests/testing-composables.md)). `mountComposable` renders nothing, so a composable needing rendered elements (a `useTemplateRef` target, as `useMenuPopup`) is the one case mounted by hand, with a component rendering them. A composable needing no Vue context is called directly, like a [utility](./testing-utilities.md).
|
||||
|
||||
Because the real i18n instance is installed, translations resolve to actual strings, and the assertion builds its expected label with `t` instead of hard-coding the wording — see [Assert behavior](./assert-behavior.md).
|
||||
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
<template>
|
||||
<div class="vts-query-builder-preview">
|
||||
<UiLabel accent="neutral">{{ t('query-preview') }}</UiLabel>
|
||||
|
||||
<UiCard class="card">
|
||||
<div class="row">
|
||||
<span class="row-label typo-body-regular">{{ t('scope') }}</span>
|
||||
<VtsQueryBuilderPreviewGroup v-if="isUsable" :group="rootGroup" :prefix="t('query-preview:where')" />
|
||||
<span v-else class="typo-body-regular">{{ t('query-preview:unable-to-display-scope') }}</span>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<span class="row-label typo-body-regular">{{ t('selector') }}</span>
|
||||
<div class="selector">
|
||||
<code class="selector-code typo-form-value-small">{{ selector }}</code>
|
||||
<div class="selector-actions">
|
||||
<VtsCopyButton :value="selector" />
|
||||
<UiButtonIcon
|
||||
icon="fa:arrow-up-right-from-square"
|
||||
size="small"
|
||||
accent="brand"
|
||||
:disabled="selector === ''"
|
||||
@click="openSelectorInNewTab()"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<span class="row-label typo-body-regular">{{ t('scope-preview') }}</span>
|
||||
<span v-if="!isUsable" class="typo-body-regular">{{ t('query-preview:unable-to-preview-scope') }}</span>
|
||||
<span v-else-if="items.length === 0" class="typo-body-regular">{{ t('query-preview:no-match') }}</span>
|
||||
<div v-else class="items">
|
||||
<span class="count typo-body-regular-small">{{ countLabel }}</span>
|
||||
<UiCollapsibleList tag="div" :total-items="items.length">
|
||||
<UiObjectLink v-for="item of items" :key="item.id" :route="item.route" :icon="item.icon">
|
||||
{{ item.label }}
|
||||
</UiObjectLink>
|
||||
</UiCollapsibleList>
|
||||
</div>
|
||||
</div>
|
||||
</UiCard>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsCopyButton from '@core/components/copy-button/VtsCopyButton.vue'
|
||||
import VtsQueryBuilderPreviewGroup from '@core/components/query-builder/VtsQueryBuilderPreviewGroup.vue'
|
||||
import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue'
|
||||
import UiCard from '@core/components/ui/card/UiCard.vue'
|
||||
import UiCollapsibleList from '@core/components/ui/collapsible-list/UiCollapsibleList.vue'
|
||||
import UiLabel from '@core/components/ui/label/UiLabel.vue'
|
||||
import UiObjectLink from '@core/components/ui/object-link/UiObjectLink.vue'
|
||||
import type { IconName } from '@core/icons'
|
||||
import type { QueryBuilderSchema } from '@core/packages/query-builder/types.ts'
|
||||
import { useQueryBuilder } from '@core/packages/query-builder/use-query-builder.ts'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import type { RouteLocationRaw } from 'vue-router'
|
||||
|
||||
export type QueryBuilderPreviewItem = {
|
||||
id: string
|
||||
label: string
|
||||
icon: IconName
|
||||
route: RouteLocationRaw
|
||||
}
|
||||
|
||||
const { filter, schema, items } = defineProps<{
|
||||
filter: string
|
||||
schema: QueryBuilderSchema
|
||||
items: QueryBuilderPreviewItem[]
|
||||
countLabel: string
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const filterModel = ref(filter)
|
||||
|
||||
watch(
|
||||
() => filter,
|
||||
value => (filterModel.value = value)
|
||||
)
|
||||
|
||||
const { rootGroup, isUsable } = useQueryBuilder(filterModel, () => schema)
|
||||
|
||||
const selector = computed(() => {
|
||||
if (!isUsable.value || items.length === 0) {
|
||||
return ''
|
||||
}
|
||||
|
||||
const uuids = items.map(item => `uuid:${item.id}`)
|
||||
|
||||
return uuids.length === 1 ? uuids[0] : `|(${uuids.join('\n')})`
|
||||
})
|
||||
|
||||
function openSelectorInNewTab() {
|
||||
const pre = document.createElement('pre')
|
||||
pre.textContent = selector.value
|
||||
window.open('', '_blank')?.document.body.appendChild(pre)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.vts-query-builder-preview {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.8rem;
|
||||
|
||||
.card {
|
||||
padding: 1.6rem 2.4rem;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: grid;
|
||||
grid-template-columns: 16rem 1fr;
|
||||
align-items: start;
|
||||
gap: 1.6rem;
|
||||
}
|
||||
|
||||
.row-label {
|
||||
color: var(--color-neutral-txt-secondary);
|
||||
}
|
||||
|
||||
.selector {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.selector-code {
|
||||
flex: 1;
|
||||
min-height: 3.2rem;
|
||||
max-height: 16rem;
|
||||
overflow-y: auto;
|
||||
padding: 0.8rem 1.2rem;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
border-inline-start: 0.2rem solid var(--color-info-item-base);
|
||||
background-color: var(--color-neutral-background-disabled);
|
||||
}
|
||||
|
||||
.selector-actions {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.count {
|
||||
color: var(--color-neutral-txt-secondary);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,120 +0,0 @@
|
||||
<template>
|
||||
<div class="vts-query-builder-preview-group">
|
||||
<template v-for="(child, index) of children" :key="child.id">
|
||||
<VtsQueryBuilderPreviewGroup
|
||||
v-if="child.isGroup"
|
||||
:group="child.group"
|
||||
:prefix="child.prefix"
|
||||
:class="{ nested: index > 0 }"
|
||||
/>
|
||||
<div v-else class="line typo-body-regular">
|
||||
<span class="prefix">{{ child.prefix }}</span>
|
||||
<UiTag accent="neutral" variant="primary">{{ child.propertyLabel }}</UiTag>
|
||||
<span>{{ child.operatorLabel }}</span>
|
||||
<template v-if="child.value !== undefined">
|
||||
<UiTag v-if="child.value.isEnum" accent="neutral" variant="primary">{{ child.value.label }}</UiTag>
|
||||
<span v-else>{{ child.value.label }}</span>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import UiTag from '@core/components/ui/tag/UiTag.vue'
|
||||
import type { QueryBuilderFilter, QueryBuilderGroup } from '@core/packages/query-builder/types.ts'
|
||||
import { computed } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const { group, prefix } = defineProps<{
|
||||
group: QueryBuilderGroup
|
||||
prefix: string
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
function getChildPrefix(index: number, isGroup: boolean): string {
|
||||
if (index === 0) {
|
||||
return prefix
|
||||
}
|
||||
|
||||
if (group.operator === 'or') {
|
||||
return isGroup ? t('query-preview:or-where') : t('query-preview:or')
|
||||
}
|
||||
|
||||
return t('query-preview:and')
|
||||
}
|
||||
|
||||
function getPropertyLabel(filter: QueryBuilderFilter): string {
|
||||
return filter.property !== undefined ? (group.schema[filter.property]?.label ?? filter.property) : ''
|
||||
}
|
||||
|
||||
function getOperatorLabel(filter: QueryBuilderFilter): string {
|
||||
if (filter.property === undefined || filter.operator === undefined) {
|
||||
return ''
|
||||
}
|
||||
|
||||
const label = group.schema[filter.property]?.operators[filter.operator]?.label ?? filter.operator
|
||||
|
||||
return label.toLowerCase()
|
||||
}
|
||||
|
||||
function getValue(filter: QueryBuilderFilter): { label: string; isEnum: boolean } | undefined {
|
||||
if (filter.value === undefined || filter.value === '') {
|
||||
return undefined
|
||||
}
|
||||
|
||||
const values =
|
||||
filter.property !== undefined && filter.operator !== undefined
|
||||
? group.schema[filter.property]?.operators[filter.operator]?.values
|
||||
: undefined
|
||||
|
||||
const enumValue = values?.[filter.value]
|
||||
|
||||
if (enumValue !== undefined) {
|
||||
return { label: enumValue.label, isEnum: true }
|
||||
}
|
||||
|
||||
const rawValue = String(filter.value)
|
||||
|
||||
return { label: Number.isNaN(Number(rawValue)) ? `"${rawValue}"` : rawValue, isEnum: false }
|
||||
}
|
||||
|
||||
const children = computed(() =>
|
||||
group.children.map((child, index) =>
|
||||
child.isGroup
|
||||
? { id: child.id, isGroup: true as const, group: child, prefix: getChildPrefix(index, true) }
|
||||
: {
|
||||
id: child.id,
|
||||
isGroup: false as const,
|
||||
prefix: getChildPrefix(index, false),
|
||||
propertyLabel: getPropertyLabel(child),
|
||||
operatorLabel: getOperatorLabel(child),
|
||||
value: getValue(child),
|
||||
}
|
||||
)
|
||||
)
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.vts-query-builder-preview-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.8rem;
|
||||
|
||||
&.nested {
|
||||
margin-block-start: 0.8rem;
|
||||
}
|
||||
|
||||
.line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.prefix {
|
||||
min-width: 4.8rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,10 +1,11 @@
|
||||
import VtsIcon from '@core/components/icon/VtsIcon.vue'
|
||||
import VtsDetailedOption from '@core/components/select/VtsDetailedOption.vue'
|
||||
import VtsSelect from '@core/components/select/VtsSelect.vue'
|
||||
import type { IconName } from '@core/icons'
|
||||
import { mountSelect } from '@core-test/mount-with-select.ts'
|
||||
import { openSelect } from '@core-test/select.ts'
|
||||
import type { VueWrapper } from '@vue/test-utils'
|
||||
import { h } from 'vue'
|
||||
import { type FormOption, useFormSelect } from '@core/packages/form-select'
|
||||
import { createGlobalTestConfig } from '@core-test/create-global-test-config.ts'
|
||||
import { flushPromises, mount, type VueWrapper } from '@vue/test-utils'
|
||||
import { defineComponent, h } from 'vue'
|
||||
|
||||
type DetailedOptionProps = {
|
||||
icon?: IconName
|
||||
@@ -14,9 +15,25 @@ type DetailedOptionProps = {
|
||||
|
||||
// An option only renders inside an open select, which provides it its controller
|
||||
async function mountDetailedOption(props: DetailedOptionProps = {}) {
|
||||
const wrapper = mountSelect({ sources: ['Network'], option: option => h(VtsDetailedOption, { option, ...props }) })
|
||||
const wrapper = mount(
|
||||
defineComponent({
|
||||
setup() {
|
||||
const { id } = useFormSelect(['Network'])
|
||||
|
||||
await openSelect(wrapper)
|
||||
return () =>
|
||||
h(
|
||||
VtsSelect,
|
||||
{ id, accent: 'neutral' },
|
||||
{ default: ({ option }: { option: FormOption }) => h(VtsDetailedOption, { option, ...props }) }
|
||||
)
|
||||
},
|
||||
}),
|
||||
{ global: createGlobalTestConfig() }
|
||||
)
|
||||
|
||||
await flushPromises()
|
||||
await wrapper.get('.vts-select .ui-input').trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
return wrapper.getComponent(VtsDetailedOption)
|
||||
}
|
||||
|
||||
@@ -1,143 +0,0 @@
|
||||
import VtsIcon from '@core/components/icon/VtsIcon.vue'
|
||||
import VtsSelect from '@core/components/select/VtsSelect.vue'
|
||||
import UiInput from '@core/components/ui/input/UiInput.vue'
|
||||
import type { IconName } from '@core/icons'
|
||||
import { t } from '@core-test/i18n.ts'
|
||||
import { mountSelect, renderSelect } from '@core-test/mount-with-select.ts'
|
||||
import { mountWithSetup } from '@core-test/mount-with-setup.ts'
|
||||
import { readForwardedFlag } from '@core-test/read-forwarded-flag.ts'
|
||||
import { findSelectOptionLabels, findShownSelections, openSelect } from '@core-test/select.ts'
|
||||
import type { VueWrapper } from '@vue/test-utils'
|
||||
import { h, ref } from 'vue'
|
||||
|
||||
const SUCCESS_ICON: IconName = 'status:success-circle'
|
||||
|
||||
const CHEVRON_ICON: IconName = 'fa:angle-down'
|
||||
|
||||
function findTriggerIconNames(wrapper: VueWrapper) {
|
||||
return wrapper
|
||||
.getComponent(UiInput)
|
||||
.findAllComponents(VtsIcon)
|
||||
.map(icon => icon.props('name'))
|
||||
}
|
||||
|
||||
describe('VtsSelect', () => {
|
||||
it.each(['neutral', 'success', 'warning', 'danger'] as const)('applies the %s accent to the trigger', accent => {
|
||||
const wrapper = mountSelect({ accent })
|
||||
|
||||
expect(wrapper.getComponent(VtsSelect).classes()).toContain(`accent--${accent}`)
|
||||
expect(wrapper.getComponent(UiInput).props('accent')).toBe(accent)
|
||||
})
|
||||
|
||||
it('shows the success icon before the chevron with the success accent', () => {
|
||||
expect(findTriggerIconNames(mountSelect({ accent: 'success' }))).toEqual([SUCCESS_ICON, CHEVRON_ICON])
|
||||
})
|
||||
|
||||
it('shows the success icon with a success message from its wrapper', () => {
|
||||
const wrapper = mountSelect({ message: { content: 'Valid', accent: 'success' } })
|
||||
|
||||
expect(findTriggerIconNames(wrapper)).toEqual([SUCCESS_ICON, CHEVRON_ICON])
|
||||
})
|
||||
|
||||
it.each([
|
||||
{ label: 'the neutral accent', options: { accent: 'neutral' } },
|
||||
{ label: 'the warning accent', options: { accent: 'warning' } },
|
||||
{ label: 'the danger accent', options: { accent: 'danger' } },
|
||||
{ label: 'disabled', options: { accent: 'success', config: { disabled: true } } },
|
||||
] as const)('shows the chevron alone with $label', ({ options }) => {
|
||||
expect(findTriggerIconNames(mountSelect(options))).toEqual([CHEVRON_ICON])
|
||||
})
|
||||
|
||||
it.each(['disabled', 'required'] as const)('forwards the %s state to the trigger', state => {
|
||||
expect(readForwardedFlag(config => mountSelect({ config }), UiInput, state)).toEqual([true, false])
|
||||
})
|
||||
|
||||
it('renders a readonly trigger', () => {
|
||||
expect(mountSelect().getComponent(UiInput).props('readonly')).toBe(true)
|
||||
})
|
||||
|
||||
it('shows the label of the selected option', () => {
|
||||
const wrapper = mountSelect({ sources: ['First', 'Second'], config: { model: ref('Second') } })
|
||||
|
||||
expect(findShownSelections(wrapper)).toEqual(['Second'])
|
||||
})
|
||||
|
||||
it('shows the placeholder without selection', () => {
|
||||
const wrapper = mountSelect({ config: { placeholder: 'Choose an option' } })
|
||||
|
||||
expect(wrapper.getComponent(UiInput).text()).toBe('Choose an option')
|
||||
})
|
||||
|
||||
it('renders no option while closed', () => {
|
||||
expect(findSelectOptionLabels(mountSelect())).toEqual([])
|
||||
})
|
||||
|
||||
it('renders the options once open', async () => {
|
||||
const wrapper = mountSelect({ sources: ['First', 'Second'] })
|
||||
|
||||
await openSelect(wrapper)
|
||||
|
||||
expect(findSelectOptionLabels(wrapper)).toEqual(['First', 'Second'])
|
||||
})
|
||||
|
||||
it('renders each option through the default slot', async () => {
|
||||
const wrapper = mountSelect({
|
||||
sources: ['First', 'Second'],
|
||||
option: option => h('span', { class: 'custom-option' }, option.properties.label),
|
||||
})
|
||||
|
||||
await openSelect(wrapper)
|
||||
|
||||
expect(wrapper.findAll('.custom-option').map(option => option.text())).toEqual(['First', 'Second'])
|
||||
})
|
||||
|
||||
it.each([
|
||||
{ label: 'a loading message alone', sources: [], loading: true, expected: [t('loading')] },
|
||||
{
|
||||
label: 'a loading message before the options',
|
||||
sources: ['First'],
|
||||
loading: true,
|
||||
expected: [t('loading'), 'First'],
|
||||
},
|
||||
{ label: 'a no result message without option', sources: [], loading: false, expected: [t('no-result')] },
|
||||
])('renders $label', async ({ sources, loading, expected }) => {
|
||||
const wrapper = mountSelect({ sources, config: { loading } })
|
||||
|
||||
await openSelect(wrapper)
|
||||
|
||||
expect(findSelectOptionLabels(wrapper)).toEqual(expected)
|
||||
})
|
||||
|
||||
it('renders a search input with its placeholder when searchable', async () => {
|
||||
const wrapper = mountSelect({ config: { searchable: true, searchPlaceholder: 'Search' } })
|
||||
|
||||
await openSelect(wrapper)
|
||||
|
||||
expect(wrapper.get('.dropdown-list input').attributes('placeholder')).toBe('Search')
|
||||
})
|
||||
|
||||
it('renders no search input when not searchable', async () => {
|
||||
const wrapper = mountSelect()
|
||||
|
||||
await openSelect(wrapper)
|
||||
|
||||
expect(wrapper.find('.dropdown-list input').exists()).toBe(false)
|
||||
})
|
||||
|
||||
it('throws when no select is defined for its id', () => {
|
||||
expect(() => mountWithSetup(() => () => renderSelect(Symbol('unknown')))).toThrow()
|
||||
})
|
||||
|
||||
it('exposes focus', () => {
|
||||
let focusSelect = () => {}
|
||||
const wrapper = mountSelect({
|
||||
selectRef: select => {
|
||||
focusSelect = select.focus
|
||||
},
|
||||
})
|
||||
|
||||
focusSelect()
|
||||
|
||||
expect(document.activeElement).toBe(wrapper.getComponent(UiInput).get('input').element)
|
||||
})
|
||||
})
|
||||
@@ -7,13 +7,9 @@
|
||||
:model-value="selectedLabel"
|
||||
:placeholder
|
||||
:required="isRequired"
|
||||
right-icon="fa:angle-down"
|
||||
readonly
|
||||
>
|
||||
<template #right-icon>
|
||||
<VtsIcon v-if="isSuccessIconVisible" name="status:success-circle" size="medium" />
|
||||
<VtsIcon name="fa:angle-down" size="medium" class="right-icon" />
|
||||
</template>
|
||||
</UiInput>
|
||||
/>
|
||||
|
||||
<template v-if="isOpen">
|
||||
<VtsBackdrop />
|
||||
@@ -46,15 +42,10 @@
|
||||
|
||||
<script generic="TSelectId extends FormSelectId" lang="ts" setup>
|
||||
import VtsBackdrop from '@core/components/backdrop/VtsBackdrop.vue'
|
||||
import VtsIcon from '@core/components/icon/VtsIcon.vue'
|
||||
import VtsOption from '@core/components/select/VtsOption.vue'
|
||||
import UiDropdown from '@core/components/ui/dropdown/UiDropdown.vue'
|
||||
import UiDropdownList from '@core/components/ui/dropdown/UiDropdownList.vue'
|
||||
import UiInput, { type InputAccent } from '@core/components/ui/input/UiInput.vue'
|
||||
import {
|
||||
INPUT_WRAPPER_ACCENTS,
|
||||
useInputWrapperController,
|
||||
} from '@core/composables/input-wrapper-controller.composable.ts'
|
||||
import UiInput from '@core/components/ui/input/UiInput.vue'
|
||||
import {
|
||||
type FormSelect,
|
||||
type FormSelectId,
|
||||
@@ -67,7 +58,7 @@ import { computed, inject } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const { accent, id } = defineProps<{
|
||||
accent: InputAccent
|
||||
accent: 'neutral' | 'warning' | 'danger'
|
||||
id: TSelectId
|
||||
}>()
|
||||
|
||||
@@ -101,14 +92,6 @@ const { rootRef, triggerRef, dropdownRef, searchRef, isOpen, floatingStyles } =
|
||||
|
||||
const className = computed(() => toVariants({ accent }))
|
||||
|
||||
// The trigger is a readonly input, which hides its own success icon: the select shows it instead
|
||||
const { accent: resolvedAccent } = useInputWrapperController({
|
||||
accent: () => accent,
|
||||
accents: INPUT_WRAPPER_ACCENTS,
|
||||
})
|
||||
|
||||
const isSuccessIconVisible = computed(() => resolvedAccent.value === 'success' && !isDisabled.value)
|
||||
|
||||
const { width } = useElementSize(rootRef)
|
||||
|
||||
const minWidth = computed(() => `${width.value}px`)
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<UiButtonIcon
|
||||
ref="buttonRef"
|
||||
v-tooltip="{ content: t('tasks:overview'), placement: 'bottom-end' }"
|
||||
accent="brand"
|
||||
:counter="newTasksCount || undefined"
|
||||
icon="fa:bars-progress"
|
||||
size="medium"
|
||||
@click="isPanelOpen = true"
|
||||
/>
|
||||
<Teleport v-if="isPanelOpen" to="body">
|
||||
<VtsBackdrop @click.self="isPanelOpen = false">
|
||||
<UiQuickTaskPanel ref="panelRef" :loading :tasks />
|
||||
</VtsBackdrop>
|
||||
</Teleport>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsBackdrop from '@core/components/backdrop/VtsBackdrop.vue'
|
||||
import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue'
|
||||
import UiQuickTaskPanel from '@core/components/ui/quick-task-panel/UiQuickTaskPanel.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { vTooltip } from '@core/directives/tooltip.directive.ts'
|
||||
import { placeOverlay } from '@core/utils/placement.util.ts'
|
||||
import { unrefElement, watchArray, whenever } from '@vueuse/core'
|
||||
import { computed, nextTick, ref } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const props = defineProps<{
|
||||
tasks: Task[]
|
||||
loading?: boolean
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const ids = computed(() => props.tasks.map(task => task.id))
|
||||
|
||||
const isPanelOpen = ref(false)
|
||||
const newTasksCount = ref(0)
|
||||
|
||||
watchArray(ids, (_newList, _oldList, addedIds) => {
|
||||
if (!isPanelOpen.value) {
|
||||
newTasksCount.value += addedIds.length
|
||||
}
|
||||
})
|
||||
|
||||
const buttonRef = ref<HTMLButtonElement | null>(null)
|
||||
const panelRef = ref<HTMLDivElement | null>(null)
|
||||
|
||||
whenever(isPanelOpen, async () => {
|
||||
await nextTick()
|
||||
|
||||
const button = unrefElement(buttonRef)
|
||||
const panel = unrefElement(panelRef)
|
||||
|
||||
if (!button || !panel) {
|
||||
return
|
||||
}
|
||||
|
||||
placeOverlay(button, panel, {
|
||||
placement: 'bottom-end',
|
||||
})
|
||||
|
||||
newTasksCount.value = 0
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,63 @@
|
||||
<template>
|
||||
<DynamicScroller
|
||||
v-if="!loading && tasks.length > 0"
|
||||
:items="tasks"
|
||||
:min-item-size="83"
|
||||
class="vts-quick-task-list"
|
||||
list-tag="ul"
|
||||
item-tag="li"
|
||||
>
|
||||
<template #default="{ item: task, active }">
|
||||
<DynamicScrollerItem :item="task" :active :size-dependencies="[task.subtasks]">
|
||||
<UiQuickTaskItem :task />
|
||||
</DynamicScrollerItem>
|
||||
</template>
|
||||
</DynamicScroller>
|
||||
<ul v-else class="vts-quick-task-list">
|
||||
<li v-if="loading">
|
||||
<div class="loading">
|
||||
<UiLoader />
|
||||
<div>{{ t('loading') }}</div>
|
||||
</div>
|
||||
</li>
|
||||
<li v-else-if="tasks.length === 0" class="typo-body-bold">{{ t('no-task') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import UiLoader from '@core/components/ui/loader/UiLoader.vue'
|
||||
import UiQuickTaskItem from '@core/components/ui/quick-task-item/UiQuickTaskItem.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { DynamicScroller, DynamicScrollerItem } from 'vue-virtual-scroller'
|
||||
|
||||
defineProps<{
|
||||
tasks: Task[]
|
||||
sublist?: boolean
|
||||
loading?: boolean
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.vts-quick-task-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--color-neutral-background-primary);
|
||||
padding: 1rem 0;
|
||||
|
||||
&:not(.sublist) {
|
||||
padding: 1.6rem 2rem;
|
||||
max-height: 40rem;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.loading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,69 @@
|
||||
<template>
|
||||
<TabList :label="t('tasks')" :disabled="loading">
|
||||
<UiTabItem v-bind="tabs.pending.bindings">
|
||||
{{ t('in-progress') }}
|
||||
<UiCounter
|
||||
v-if="pendingCount !== undefined"
|
||||
:value="pendingCount"
|
||||
accent="warning"
|
||||
variant="primary"
|
||||
size="small"
|
||||
/>
|
||||
</UiTabItem>
|
||||
<UiTabItem v-bind="tabs.success.bindings">
|
||||
{{ t('done') }}
|
||||
<UiCounter
|
||||
v-if="successCount !== undefined"
|
||||
:value="successCount"
|
||||
accent="success"
|
||||
variant="primary"
|
||||
size="small"
|
||||
/>
|
||||
</UiTabItem>
|
||||
<UiTabItem v-bind="tabs.failure.bindings">
|
||||
{{ t('failed') }}
|
||||
<UiCounter
|
||||
v-if="failureCount !== undefined"
|
||||
:value="failureCount"
|
||||
accent="danger"
|
||||
variant="primary"
|
||||
size="small"
|
||||
/>
|
||||
</UiTabItem>
|
||||
<VtsDivider type="tab" />
|
||||
<UiTabItem v-bind="tabs.all.bindings">
|
||||
{{ t('all') }}
|
||||
</UiTabItem>
|
||||
<!--
|
||||
TODO
|
||||
<UiButton :right-icon="faAngleRight" class="see-all" level="tertiary" size="extra-small">
|
||||
{{ t('action:see-all') }}
|
||||
</UiButton>
|
||||
-->
|
||||
</TabList>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsDivider from '@core/components/divider/VtsDivider.vue'
|
||||
import TabList from '@core/components/tab-list/TabList.vue'
|
||||
import UiCounter from '@core/components/ui/counter/UiCounter.vue'
|
||||
import UiTabItem from '@core/components/ui/tab-item/UiTabItem.vue'
|
||||
import type { TaskStatus } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { useTabList } from '@core/composables/tab-list.composable.ts'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
export type TaskTab = TaskStatus | 'all'
|
||||
|
||||
defineProps<{
|
||||
loading?: boolean
|
||||
pendingCount?: number
|
||||
successCount?: number
|
||||
failureCount?: number
|
||||
}>()
|
||||
|
||||
const currentTab = defineModel<TaskTab>({ required: true })
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const { tabs } = useTabList<TaskTab>(['pending', 'success', 'failure', 'all'], currentTab)
|
||||
</script>
|
||||
@@ -1,40 +0,0 @@
|
||||
<template>
|
||||
<VtsTreeItem :expanded :node-id="task.id" :has-children="hasSubTasks">
|
||||
<VtsTaskItemLabel :selected="isSelected" @toggle="emit('toggle')">
|
||||
<UiTaskItem :task :show-eye-icon :show-unread :unread="isUnread" @select="id => select(id)" />
|
||||
</VtsTaskItemLabel>
|
||||
<template v-if="hasSubTasks" #sublist>
|
||||
<VtsTaskListLevel :tasks="subTasks" />
|
||||
</template>
|
||||
</VtsTreeItem>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsTaskItemLabel from '@core/components/task/VtsTaskItemLabel.vue'
|
||||
import VtsTaskListLevel from '@core/components/task/VtsTaskListLevel.vue'
|
||||
import VtsTreeItem from '@core/components/tree/VtsTreeItem.vue'
|
||||
import UiTaskItem, { type Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { useTaskListContext } from '@core/composables/task-list-context.composable.ts'
|
||||
import { computed } from 'vue'
|
||||
|
||||
const { task } = defineProps<{
|
||||
task: Task
|
||||
expanded?: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
toggle: []
|
||||
}>()
|
||||
|
||||
const { selectedTaskId, showEyeIcon, unreadTaskIds, select } = useTaskListContext()
|
||||
|
||||
const subTasks = computed(() => task.subtasks ?? [])
|
||||
|
||||
const hasSubTasks = computed(() => subTasks.value.length > 0)
|
||||
|
||||
const isSelected = computed(() => selectedTaskId.value === task.id)
|
||||
|
||||
const showUnread = computed(() => unreadTaskIds.value !== undefined)
|
||||
|
||||
const isUnread = computed(() => unreadTaskIds.value?.has(task.id) ?? false)
|
||||
</script>
|
||||
@@ -1,45 +0,0 @@
|
||||
<template>
|
||||
<div class="vts-task-item-label" :class="{ selected }">
|
||||
<VtsTreeItemToggle size="small" @toggle="emit('toggle')" />
|
||||
<div class="content">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsTreeItemToggle from '@core/components/tree/VtsTreeItemToggle.vue'
|
||||
|
||||
const { selected } = defineProps<{
|
||||
selected?: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
toggle: []
|
||||
}>()
|
||||
|
||||
defineSlots<{
|
||||
default(): any
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.vts-task-item-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
background-color: var(--color-neutral-background-primary);
|
||||
|
||||
&.selected {
|
||||
background-color: var(--color-brand-background-selected);
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
align-self: stretch;
|
||||
border-block-end: 0.1rem solid var(--color-neutral-border);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,183 +0,0 @@
|
||||
import VtsTaskItem from '@core/components/task/VtsTaskItem.vue'
|
||||
import VtsTaskList from '@core/components/task/VtsTaskList.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { createGlobalTestConfig } from '@core-test/create-global-test-config.ts'
|
||||
import { createTaskItem } from '@core-test/create-task-item.ts'
|
||||
import { mount } from '@vue/test-utils'
|
||||
|
||||
// root > child > grandchild, and other > other-child
|
||||
function createTasks(rootOverrides: Partial<Task> = {}) {
|
||||
return [
|
||||
createTaskItem({
|
||||
id: 'root',
|
||||
subtasks: [createTaskItem({ id: 'child', subtasks: [createTaskItem({ id: 'grandchild' })] })],
|
||||
...rootOverrides,
|
||||
}),
|
||||
createTaskItem({ id: 'other', subtasks: [createTaskItem({ id: 'other-child' })] }),
|
||||
]
|
||||
}
|
||||
|
||||
function mountTaskList(props: { selectedTaskId?: string; autoCollapseCompleted?: boolean; expandAll?: boolean } = {}) {
|
||||
return mount(VtsTaskList, { props: { tasks: createTasks(), ...props }, global: createGlobalTestConfig() })
|
||||
}
|
||||
|
||||
type TaskListWrapper = ReturnType<typeof mountTaskList>
|
||||
|
||||
// The subtasks of a collapsed task are not rendered
|
||||
function getShownTaskIds(wrapper: TaskListWrapper) {
|
||||
return wrapper.findAllComponents(VtsTaskItem).map(item => item.props('task').id)
|
||||
}
|
||||
|
||||
async function toggleTask(wrapper: TaskListWrapper, id: string) {
|
||||
const item = wrapper.findAllComponents(VtsTaskItem).find(candidate => candidate.props('task').id === id)
|
||||
|
||||
if (item === undefined) {
|
||||
throw new Error(`Task "${id}" not shown`)
|
||||
}
|
||||
|
||||
await item.get('.toggle').trigger('click')
|
||||
}
|
||||
|
||||
it('shows only the top-level tasks by default', () => {
|
||||
expect(getShownTaskIds(mountTaskList())).toEqual(['root', 'other'])
|
||||
})
|
||||
|
||||
it('shows the subtasks of a task once expanded', async () => {
|
||||
const wrapper = mountTaskList()
|
||||
|
||||
await toggleTask(wrapper, 'root')
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'child', 'other'])
|
||||
})
|
||||
|
||||
describe('expandAll', () => {
|
||||
it('expands every task', () => {
|
||||
expect(getShownTaskIds(mountTaskList({ expandAll: true }))).toEqual([
|
||||
'root',
|
||||
'child',
|
||||
'grandchild',
|
||||
'other',
|
||||
'other-child',
|
||||
])
|
||||
})
|
||||
|
||||
it('expands the tasks added while on', async () => {
|
||||
const wrapper = mountTaskList({ expandAll: true })
|
||||
|
||||
await wrapper.setProps({
|
||||
tasks: [...createTasks(), createTaskItem({ id: 'new', subtasks: [createTaskItem({ id: 'new-child' })] })],
|
||||
})
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toContain('new-child')
|
||||
})
|
||||
|
||||
it('collapses back the tasks it expanded when turned off', async () => {
|
||||
const wrapper = mountTaskList({ expandAll: true })
|
||||
|
||||
await wrapper.setProps({ expandAll: false })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'other'])
|
||||
})
|
||||
|
||||
it('keeps the tasks expanded before it was turned on', async () => {
|
||||
const wrapper = mountTaskList()
|
||||
|
||||
await toggleTask(wrapper, 'root')
|
||||
await wrapper.setProps({ expandAll: true })
|
||||
await wrapper.setProps({ expandAll: false })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'child', 'other'])
|
||||
})
|
||||
|
||||
it('expands back a task collapsed while on once turned off', async () => {
|
||||
const wrapper = mountTaskList()
|
||||
|
||||
await toggleTask(wrapper, 'root')
|
||||
await wrapper.setProps({ expandAll: true })
|
||||
await toggleTask(wrapper, 'root')
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'other', 'other-child'])
|
||||
|
||||
await wrapper.setProps({ expandAll: false })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'child', 'other'])
|
||||
})
|
||||
|
||||
it('expands every task again each time it is turned on', async () => {
|
||||
const wrapper = mountTaskList({ expandAll: true })
|
||||
|
||||
await toggleTask(wrapper, 'root')
|
||||
await wrapper.setProps({ expandAll: false })
|
||||
await wrapper.setProps({ expandAll: true })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'child', 'grandchild', 'other', 'other-child'])
|
||||
})
|
||||
})
|
||||
|
||||
describe('selectedTaskId', () => {
|
||||
it('expands the parents of the selected task', () => {
|
||||
expect(getShownTaskIds(mountTaskList({ selectedTaskId: 'grandchild' }))).toEqual([
|
||||
'root',
|
||||
'child',
|
||||
'grandchild',
|
||||
'other',
|
||||
])
|
||||
})
|
||||
|
||||
it('expands a parent collapsed by the user again when another of its subtasks is selected', async () => {
|
||||
const wrapper = mountTaskList({ selectedTaskId: 'grandchild' })
|
||||
|
||||
await toggleTask(wrapper, 'root')
|
||||
await wrapper.setProps({ selectedTaskId: 'child' })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'child', 'other'])
|
||||
})
|
||||
|
||||
it('keeps the parents of a task selected while expandAll is on expanded once it turns off', async () => {
|
||||
const wrapper = mountTaskList({ expandAll: true })
|
||||
|
||||
await wrapper.setProps({ selectedTaskId: 'grandchild' })
|
||||
await wrapper.setProps({ expandAll: false })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'child', 'grandchild', 'other'])
|
||||
})
|
||||
|
||||
it('expands a parent collapsed while expandAll is on again when one of its subtasks is selected', async () => {
|
||||
const wrapper = mountTaskList({ expandAll: true })
|
||||
|
||||
await toggleTask(wrapper, 'root')
|
||||
await wrapper.setProps({ selectedTaskId: 'child' })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toContain('child')
|
||||
})
|
||||
})
|
||||
|
||||
describe('autoCollapseCompleted', () => {
|
||||
it('collapses a task when it completes', async () => {
|
||||
const wrapper = mountTaskList({ autoCollapseCompleted: true })
|
||||
|
||||
await toggleTask(wrapper, 'root')
|
||||
await wrapper.setProps({ tasks: createTasks({ status: 'success', end: 100 }) })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'other'])
|
||||
})
|
||||
|
||||
it('collapses a completed task only once, so it stays expanded when expanded again', async () => {
|
||||
const wrapper = mountTaskList({ autoCollapseCompleted: true })
|
||||
|
||||
await wrapper.setProps({ tasks: createTasks({ status: 'success', end: 100 }) })
|
||||
await toggleTask(wrapper, 'root')
|
||||
await wrapper.setProps({ tasks: createTasks({ status: 'success', end: 100 }) })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'child', 'other'])
|
||||
})
|
||||
|
||||
it('collapses nothing while off', async () => {
|
||||
const wrapper = mountTaskList()
|
||||
|
||||
await toggleTask(wrapper, 'root')
|
||||
await wrapper.setProps({ tasks: createTasks({ status: 'success', end: 100 }) })
|
||||
|
||||
expect(getShownTaskIds(wrapper)).toEqual(['root', 'child', 'other'])
|
||||
})
|
||||
})
|
||||
@@ -1,56 +0,0 @@
|
||||
<template>
|
||||
<VtsTaskListLevel class="vts-task-list" :tasks />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsTaskListLevel from '@core/components/task/VtsTaskListLevel.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { IK_TASK_LIST_CONTEXT } from '@core/utils/injection-keys.util.ts'
|
||||
import { provide, type Ref, toRef } from 'vue'
|
||||
|
||||
export type TaskListContext = {
|
||||
selectedTaskId: Readonly<Ref<string | undefined>>
|
||||
showEyeIcon: Readonly<Ref<boolean>>
|
||||
autoCollapseCompleted: Readonly<Ref<boolean>>
|
||||
expandAll: Readonly<Ref<boolean>>
|
||||
unreadTaskIds: Readonly<Ref<ReadonlySet<string> | undefined>>
|
||||
select: (id: string) => void
|
||||
}
|
||||
|
||||
const {
|
||||
tasks,
|
||||
selectedTaskId,
|
||||
showEyeIcon = false,
|
||||
autoCollapseCompleted = false,
|
||||
expandAll = false,
|
||||
unreadTaskIds,
|
||||
} = defineProps<{
|
||||
tasks: Task[]
|
||||
selectedTaskId?: string
|
||||
showEyeIcon?: boolean
|
||||
autoCollapseCompleted?: boolean
|
||||
expandAll?: boolean
|
||||
unreadTaskIds?: ReadonlySet<string>
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
select: [id: string]
|
||||
}>()
|
||||
|
||||
provide(IK_TASK_LIST_CONTEXT, {
|
||||
selectedTaskId: toRef(() => selectedTaskId),
|
||||
showEyeIcon: toRef(() => showEyeIcon),
|
||||
autoCollapseCompleted: toRef(() => autoCollapseCompleted),
|
||||
expandAll: toRef(() => expandAll),
|
||||
unreadTaskIds: toRef(() => unreadTaskIds),
|
||||
select: id => emit('select', id),
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.vts-task-list {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
padding-inline: 0.4rem 0.8rem;
|
||||
}
|
||||
</style>
|
||||
@@ -1,72 +0,0 @@
|
||||
<template>
|
||||
<VtsTreeList>
|
||||
<VtsTaskItem
|
||||
v-for="task of tasksItems"
|
||||
:key="task.id"
|
||||
:task="task.source"
|
||||
:expanded="expandAll ? !task.flags.searchCollapsed : task.flags.expanded"
|
||||
@toggle="task.toggleFlag(expandAll ? 'searchCollapsed' : 'expanded')"
|
||||
/>
|
||||
</VtsTreeList>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsTaskItem from '@core/components/task/VtsTaskItem.vue'
|
||||
import VtsTreeList from '@core/components/tree/VtsTreeList.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { useTaskListContext } from '@core/composables/task-list-context.composable.ts'
|
||||
import { useCollection } from '@core/packages/collection'
|
||||
import { hasSubtask } from '@core/utils/task.util.ts'
|
||||
import { computed, watch } from 'vue'
|
||||
|
||||
const { tasks } = defineProps<{
|
||||
tasks: Task[]
|
||||
}>()
|
||||
|
||||
const { selectedTaskId, autoCollapseCompleted, expandAll } = useTaskListContext()
|
||||
|
||||
// While expandAll is on, the tasks follow `searchCollapsed` instead of `expanded`, which keeps the state to restore
|
||||
const {
|
||||
items: tasksItems,
|
||||
toggleFlag,
|
||||
clearFlag,
|
||||
} = useCollection(() => tasks, {
|
||||
flags: { expanded: true, searchCollapsed: true },
|
||||
})
|
||||
|
||||
// Collapse tasks once, when they complete, so a task expanded manually stays expanded
|
||||
watch(
|
||||
() =>
|
||||
autoCollapseCompleted.value
|
||||
? tasksItems.value.filter(task => task.source.end !== undefined).map(task => task.id)
|
||||
: [],
|
||||
(completedTaskIds, previousCompletedTaskIds = []) => {
|
||||
tasksItems.value
|
||||
.filter(task => completedTaskIds.includes(task.id) && !previousCompletedTaskIds.includes(task.id))
|
||||
.forEach(task => task.toggleFlag('expanded', false))
|
||||
}
|
||||
)
|
||||
|
||||
const selectedTaskParentId = computed(() => {
|
||||
const taskId = selectedTaskId.value
|
||||
|
||||
return taskId ? tasksItems.value.find(item => hasSubtask(item.source, taskId))?.id : undefined
|
||||
})
|
||||
|
||||
// Each expandAll starts with every task expanded
|
||||
watch(expandAll, () => clearFlag('searchCollapsed'))
|
||||
|
||||
// Expand the selected task's parent, in both states so it stays expanded once expandAll turns off.
|
||||
// Watch the id, not the item: items are rebuilt on every update, which would unfold it again.
|
||||
// selectedTaskId is also a source so selecting another subtask of a manually collapsed parent unfolds it again
|
||||
watch(
|
||||
[selectedTaskId, selectedTaskParentId],
|
||||
([, id]) => {
|
||||
if (id !== undefined) {
|
||||
toggleFlag(id, 'expanded', true)
|
||||
toggleFlag(id, 'searchCollapsed', false)
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
</script>
|
||||
@@ -13,7 +13,6 @@
|
||||
<script lang="ts" setup>
|
||||
import UiLink from '@core/components/ui/link/UiLink.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { getTaskLabel } from '@core/utils/task.util.ts'
|
||||
import { computed } from 'vue'
|
||||
|
||||
const { task, size } = defineProps<{
|
||||
@@ -21,7 +20,7 @@ const { task, size } = defineProps<{
|
||||
size: 'small' | 'medium'
|
||||
}>()
|
||||
|
||||
const fullName = computed(() => getTaskLabel(task))
|
||||
const fullName = computed(() => task.nameParts?.map(part => part.text).join('') ?? task.name)
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
<template>
|
||||
<div :class="className" class="vts-tree-item-toggle">
|
||||
<template v-if="depth > 1">
|
||||
<VtsTreeLine v-for="i in depth - 1" :key="i" :size />
|
||||
</template>
|
||||
<div class="toggle-wrapper">
|
||||
<UiButtonIcon
|
||||
v-if="hasToggle"
|
||||
v-tooltip="toggleLabel"
|
||||
:aria-label="toggleLabel"
|
||||
class="toggle"
|
||||
accent="brand"
|
||||
:icon="isExpanded ? 'fa:angle-down' : 'fa:angle-right'"
|
||||
size="small"
|
||||
:target-scale="{ x: 1.5, y: 2 }"
|
||||
@click.stop="emit('toggle')"
|
||||
/>
|
||||
<div v-else class="h-line" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsTreeLine from '@core/components/tree/VtsTreeLine.vue'
|
||||
import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue'
|
||||
import type { TreeItemLabelSize } from '@core/components/ui/tree-item-label/UiTreeItemLabel.vue'
|
||||
import { vTooltip } from '@core/directives/tooltip.directive.ts'
|
||||
import {
|
||||
IK_TREE_ITEM_EXPANDED,
|
||||
IK_TREE_ITEM_HAS_CHILDREN,
|
||||
IK_TREE_LIST_DEPTH,
|
||||
} from '@core/utils/injection-keys.util.ts'
|
||||
import { toVariants } from '@core/utils/to-variants.util.ts'
|
||||
import { computed, inject, ref } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const { size } = defineProps<{
|
||||
size: TreeItemLabelSize
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
toggle: []
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const hasToggle = inject(IK_TREE_ITEM_HAS_CHILDREN, ref(false))
|
||||
|
||||
const isExpanded = inject(IK_TREE_ITEM_EXPANDED, ref(true))
|
||||
|
||||
const depth = inject(IK_TREE_LIST_DEPTH, ref(0))
|
||||
|
||||
const toggleLabel = computed(() => (isExpanded.value ? t('action:close') : t('action:open')))
|
||||
|
||||
const className = computed(() => toVariants({ size }))
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.vts-tree-item-toggle {
|
||||
display: contents;
|
||||
|
||||
.toggle-wrapper {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.toggle,
|
||||
.h-line {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* SIZE VARIANTS */
|
||||
|
||||
&.size--small .toggle-wrapper {
|
||||
width: 1.6rem;
|
||||
}
|
||||
|
||||
&.size--medium .toggle-wrapper {
|
||||
width: 2.4rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -90,8 +90,7 @@ const dashOffset = computed(() => {
|
||||
return circumference.value * (1 - valuePercent.value / 100)
|
||||
})
|
||||
|
||||
// Floor (not round) so an unfinished value never displays as "100 %"
|
||||
const percentValue = computed(() => n(Math.floor(valuePercent.value) / 100, 'percent'))
|
||||
const percentValue = computed(() => n(valuePercent.value / 100, 'percent'))
|
||||
|
||||
const icon = computed<IconName>(() => (accent === 'warning' || accent === 'danger' ? 'fa:exclamation' : 'fa:check'))
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import UiInput from '@core/components/ui/input/UiInput.vue'
|
||||
import UiLoader from '@core/components/ui/loader/UiLoader.vue'
|
||||
import type { IconName } from '@core/icons'
|
||||
import { setFieldValue } from '@core-test/field-events.ts'
|
||||
import { isPlaceholderShown } from '@core-test/is-placeholder-shown.ts'
|
||||
import { mountField } from '@core-test/mount-field.ts'
|
||||
import type { VueWrapper } from '@vue/test-utils'
|
||||
|
||||
@@ -94,60 +93,6 @@ describe('UiInput', () => {
|
||||
expect(wrapper.get('input').attributes('readonly')).toBeDefined()
|
||||
})
|
||||
|
||||
it.each([
|
||||
{
|
||||
label: 'the placeholder without value',
|
||||
modelValue: '',
|
||||
placeholder: 'Name',
|
||||
expected: 'Name',
|
||||
placeholderShown: true,
|
||||
},
|
||||
{
|
||||
label: 'the placeholder with an undefined value',
|
||||
modelValue: undefined,
|
||||
placeholder: 'Name',
|
||||
expected: 'Name',
|
||||
placeholderShown: true,
|
||||
},
|
||||
{
|
||||
label: 'nothing without value nor placeholder',
|
||||
modelValue: '',
|
||||
placeholder: undefined,
|
||||
expected: '',
|
||||
placeholderShown: false,
|
||||
},
|
||||
{
|
||||
label: 'nothing with an empty placeholder',
|
||||
modelValue: '',
|
||||
placeholder: '',
|
||||
expected: '',
|
||||
placeholderShown: false,
|
||||
},
|
||||
{
|
||||
label: 'a zero value instead of the placeholder',
|
||||
modelValue: 0,
|
||||
placeholder: 'Name',
|
||||
expected: '0',
|
||||
placeholderShown: false,
|
||||
},
|
||||
{
|
||||
label: 'the value instead of the placeholder',
|
||||
modelValue: 'Value',
|
||||
placeholder: 'Name',
|
||||
expected: 'Value',
|
||||
placeholderShown: false,
|
||||
},
|
||||
])('renders $label when readonly', ({ modelValue, placeholder, expected, placeholderShown }) => {
|
||||
const wrapper = mountField(
|
||||
UiInput,
|
||||
{ readonly: true, modelValue },
|
||||
{ attrs: placeholder === undefined ? {} : { placeholder } }
|
||||
)
|
||||
|
||||
expect(wrapper.text()).toBe(expected)
|
||||
expect(isPlaceholderShown(wrapper)).toBe(placeholderShown)
|
||||
})
|
||||
|
||||
it('renders an editable input when not readonly', () => {
|
||||
expect(mountField(UiInput).get('input').attributes('readonly')).toBeUndefined()
|
||||
})
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
</span>
|
||||
<span v-if="readonly" class="typo-body-regular input text-ellipsis">
|
||||
<input ref="inputRef" class="readonly-input" readonly type="text" />
|
||||
<span v-if="isPlaceholderVisible" class="placeholder">{{ attrs.placeholder }}</span>
|
||||
<template v-else>{{ modelValue }}</template>
|
||||
{{ modelValue }}
|
||||
</span>
|
||||
<input
|
||||
v-else
|
||||
@@ -50,15 +49,12 @@
|
||||
import VtsIcon from '@core/components/icon/VtsIcon.vue'
|
||||
import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue'
|
||||
import UiLoader from '@core/components/ui/loader/UiLoader.vue'
|
||||
import {
|
||||
INPUT_WRAPPER_ACCENTS,
|
||||
useInputWrapperController,
|
||||
} from '@core/composables/input-wrapper-controller.composable.ts'
|
||||
import { useInputWrapperController } from '@core/composables/input-wrapper-controller.composable.ts'
|
||||
import type { IconName } from '@core/icons'
|
||||
import { toVariants } from '@core/utils/to-variants.util.ts'
|
||||
import { computed, ref, useAttrs } from 'vue'
|
||||
|
||||
export type InputAccent = (typeof INPUT_WRAPPER_ACCENTS)[number]
|
||||
export type InputAccent = 'neutral' | 'success' | 'warning' | 'danger'
|
||||
|
||||
export type InputType = 'text' | 'number' | 'password' | 'search'
|
||||
|
||||
@@ -112,16 +108,11 @@ const inputRef = ref<HTMLInputElement>()
|
||||
|
||||
const { wrapperController, accent } = useInputWrapperController({
|
||||
accent: () => rawAccent,
|
||||
accents: INPUT_WRAPPER_ACCENTS,
|
||||
accents: ['neutral', 'success', 'warning', 'danger'],
|
||||
required: () => required,
|
||||
detached,
|
||||
})
|
||||
|
||||
// A readonly input renders its value as text: the placeholder attribute of an input would not show
|
||||
const isPlaceholderVisible = computed(
|
||||
() => (modelValue.value === undefined || modelValue.value === '') && Boolean(attrs.placeholder)
|
||||
)
|
||||
|
||||
const isClearButtonVisible = computed(() => clearable && !disabled && !readonly && Boolean(modelValue.value))
|
||||
|
||||
const isSuccessIconVisible = computed(() => accent.value === 'success' && !disabled && !busy && !readonly)
|
||||
@@ -157,7 +148,6 @@ defineExpose({ focus })
|
||||
padding-inline: var(--padding-inline);
|
||||
|
||||
.right-icon,
|
||||
:slotted(.right-icon),
|
||||
.loader {
|
||||
pointer-events: none;
|
||||
color: var(--color-brand-txt-base);
|
||||
@@ -192,8 +182,7 @@ defineExpose({ focus })
|
||||
margin-inline-end: calc(-1 * var(--padding-inline));
|
||||
}
|
||||
|
||||
&.disabled .right-icon,
|
||||
&.disabled :slotted(.right-icon) {
|
||||
&.disabled .right-icon {
|
||||
color: var(--color-neutral-txt-secondary);
|
||||
}
|
||||
|
||||
@@ -210,8 +199,7 @@ defineExpose({ focus })
|
||||
outline: none;
|
||||
flex: 1;
|
||||
|
||||
&::placeholder,
|
||||
.placeholder {
|
||||
&::placeholder {
|
||||
color: var(--color-neutral-txt-secondary);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
<!-- WIP - Will be removed in one of the following stacked PRs -->
|
||||
<template>
|
||||
<div class="ui-quick-task-item">
|
||||
<div v-if="hasSubTasks" class="toggle" @click="toggleExpand()">
|
||||
<UiButtonIcon accent="brand" :icon="isExpanded ? 'fa:angle-down' : 'fa:angle-right'" size="small" />
|
||||
</div>
|
||||
<div class="content">
|
||||
<VtsTaskName :task size="medium" />
|
||||
<div class="informations">
|
||||
<div class="line-1">
|
||||
<UiTag v-if="task.tag" accent="neutral" variant="primary">{{ task.tag }}</UiTag>
|
||||
<div v-if="hasSubTasks" class="subtasks">
|
||||
<VtsIcon name="fa:circle-notch" size="medium" />
|
||||
<span class="typo-body-regular-small">{{ t('n-subtasks', { n: subTasksCount }) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="task.start" class="line-2 typo-body-regular-small">
|
||||
{{ formattedStartDate }}
|
||||
<template v-if="task.end">
|
||||
<VtsIcon name="fa:arrow-right" size="medium" />
|
||||
{{ formattedEndDate }}
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<VtsQuickTaskList v-if="hasSubTasks && isExpanded" :tasks="subTasks" sublist />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsIcon from '@core/components/icon/VtsIcon.vue'
|
||||
import VtsQuickTaskList from '@core/components/task/VtsQuickTaskList.vue'
|
||||
import VtsTaskName from '@core/components/task/VtsTaskName.vue'
|
||||
import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue'
|
||||
import UiTag from '@core/components/ui/tag/UiTag.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { formatDateTime } from '@core/utils/time.util.ts'
|
||||
import { useToggle } from '@vueuse/core'
|
||||
import { computed } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const props = defineProps<{
|
||||
task: Task
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const [isExpanded, toggleExpand] = useToggle()
|
||||
|
||||
const subTasks = computed(() => props.task.subtasks ?? [])
|
||||
const subTasksCount = computed(() => subTasks.value.length)
|
||||
const hasSubTasks = computed(() => subTasksCount.value > 0)
|
||||
|
||||
const formattedStartDate = computed(() => (props.task.start ? formatDateTime(props.task.start) : undefined))
|
||||
const formattedEndDate = computed(() => (props.task.end ? formatDateTime(props.task.end) : undefined))
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.ui-quick-task-item {
|
||||
display: flex;
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 0.1rem solid var(--color-neutral-border);
|
||||
}
|
||||
|
||||
.toggle {
|
||||
padding: 0.4rem 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
padding: 0.4rem 0.4rem 0.4rem 0.8rem;
|
||||
}
|
||||
|
||||
.informations {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.line-1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.2rem 0.8rem;
|
||||
}
|
||||
|
||||
.line-2 {
|
||||
color: var(--color-neutral-txt-secondary);
|
||||
}
|
||||
|
||||
.subtasks {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,66 @@
|
||||
<!-- WIP -->
|
||||
<template>
|
||||
<div :class="{ mobile: uiStore.isSmall }" class="ui-quick-task-panel">
|
||||
<VtsQuickTaskTabBar
|
||||
v-model="currentTab"
|
||||
:failure-count="failureTasks.length"
|
||||
:loading
|
||||
:pending-count="pendingTasks.length"
|
||||
:success-count="successTasks.length"
|
||||
/>
|
||||
<VtsQuickTaskList :loading :tasks="currentTasks" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsQuickTaskList from '@core/components/task/VtsQuickTaskList.vue'
|
||||
import VtsQuickTaskTabBar, { type TaskTab } from '@core/components/task/VtsQuickTaskTabBar.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { useUiStore } from '@core/stores/ui.store.ts'
|
||||
import { computed, ref } from 'vue'
|
||||
|
||||
const props = defineProps<{
|
||||
tasks: Task[]
|
||||
loading?: boolean
|
||||
}>()
|
||||
|
||||
const uiStore = useUiStore()
|
||||
|
||||
const currentTab = ref<TaskTab>('pending')
|
||||
|
||||
const pendingTasks = computed(() => props.tasks.filter(task => task.status === 'pending'))
|
||||
const successTasks = computed(() => props.tasks.filter(task => task.status === 'success'))
|
||||
const failureTasks = computed(() => props.tasks.filter(task => task.status === 'failure'))
|
||||
|
||||
const currentTasks = computed(() => {
|
||||
switch (currentTab.value) {
|
||||
case 'pending':
|
||||
return pendingTasks.value
|
||||
case 'success':
|
||||
return successTasks.value
|
||||
case 'failure':
|
||||
return failureTasks.value
|
||||
case 'all':
|
||||
return props.tasks
|
||||
default:
|
||||
return []
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.ui-quick-task-panel {
|
||||
width: fit-content;
|
||||
min-width: 65rem;
|
||||
border-radius: 0.8rem;
|
||||
overflow: hidden;
|
||||
border: 0.1rem solid var(--color-neutral-border);
|
||||
z-index: 1001;
|
||||
|
||||
&.mobile {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,52 +1,69 @@
|
||||
<!-- v10 -->
|
||||
<template>
|
||||
<div class="ui-task-item">
|
||||
<div class="layout">
|
||||
<VtsTaskName class="name" :task size="small" />
|
||||
|
||||
<div class="meta">
|
||||
<div v-if="shouldShowInfos || hasSubTasks" class="infos">
|
||||
<UiCounter v-if="hasSubTasks" :value="subTasksCount" accent="brand" variant="secondary" size="small" />
|
||||
<UiInfo v-if="hasInfos" accent="info" />
|
||||
<UiInfo v-if="hasWarnings" accent="warning" />
|
||||
<UiInfo v-if="isError" accent="danger" />
|
||||
<li class="ui-task-item" :data-depth="depth" :class="{ selected }">
|
||||
<div class="container">
|
||||
<div class="tree-section">
|
||||
<div class="tree-lines">
|
||||
<div v-for="index in depth - 1" :key="index" class="tree-line">
|
||||
<div class="tree-line-vertical" />
|
||||
</div>
|
||||
</div>
|
||||
<span v-if="task.end" class="time typo-body-regular-small">
|
||||
{{ `${t('task:ended')} ${end}` }}
|
||||
</span>
|
||||
<UiButtonIcon
|
||||
v-if="hasSubTasks"
|
||||
v-tooltip="expanded ? t('action:close') : t('action:open')"
|
||||
accent="brand"
|
||||
:icon="expanded ? 'fa:angle-down' : 'fa:angle-right'"
|
||||
size="small"
|
||||
:target-scale="{ x: 1.5, y: 2 }"
|
||||
@click="emit('expand')"
|
||||
/>
|
||||
<div v-else class="h-space" />
|
||||
</div>
|
||||
|
||||
<div class="progress">
|
||||
<UiCircleProgressBar :accent="progressAccent" size="small" :value="progress" />
|
||||
</div>
|
||||
<div v-if="showEyeIcon || showUnread" class="actions">
|
||||
<UiButtonIcon
|
||||
v-if="showEyeIcon"
|
||||
v-tooltip="t('action:see-task')"
|
||||
icon="fa:eye"
|
||||
size="small"
|
||||
accent="brand"
|
||||
:aria-label="t('action:see-task')"
|
||||
@click="emit('select', task.id)"
|
||||
/>
|
||||
<span v-if="showUnread" class="unread">
|
||||
<template v-if="unread">
|
||||
<VtsIcon name="fa:circle" size="current" />
|
||||
<span class="visually-hidden">{{ t('task:unread') }}</span>
|
||||
</template>
|
||||
</span>
|
||||
<div class="main-content">
|
||||
<div class="content-left">
|
||||
<VtsTaskName :task size="small" />
|
||||
|
||||
<div v-if="shouldShowInfos || hasSubTasks" class="infos">
|
||||
<UiCounter v-if="hasSubTasks" :value="subTasksCount" accent="brand" variant="secondary" size="small" />
|
||||
<UiInfo v-if="hasInfos" accent="info" />
|
||||
<UiInfo v-if="hasWarnings" accent="warning" />
|
||||
<UiInfo v-if="isError" accent="danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-right typo-body-regular-small">
|
||||
<span v-if="task.end">
|
||||
{{ `${t('task:ended')} ${end}` }}
|
||||
</span>
|
||||
<div class="progress">
|
||||
<UiCircleProgressBar :accent="progressAccent" size="small" :value="progress" />
|
||||
</div>
|
||||
<div v-if="showEyeIcon" class="actions">
|
||||
<UiButtonIcon icon="fa:eye" size="small" accent="brand" @click="emit('select', task.id)" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<template v-if="hasSubTasks && expanded">
|
||||
<UiTaskList
|
||||
:tasks="subTasks"
|
||||
:depth
|
||||
:selected-task-id="selectedTaskId"
|
||||
:auto-collapse-completed
|
||||
@select="id => emit('select', id)"
|
||||
/>
|
||||
</template>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsIcon from '@core/components/icon/VtsIcon.vue'
|
||||
import VtsTaskName from '@core/components/task/VtsTaskName.vue'
|
||||
import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue'
|
||||
import UiCircleProgressBar from '@core/components/ui/circle-progress-bar/UiCircleProgressBar.vue'
|
||||
import UiCounter from '@core/components/ui/counter/UiCounter.vue'
|
||||
import UiInfo from '@core/components/ui/info/UiInfo.vue'
|
||||
import UiTaskList from '@core/components/ui/task-list/UiTaskList.vue'
|
||||
import type { LinkOptions } from '@core/composables/link-component.composable.ts'
|
||||
import { useTimeAgo } from '@core/composables/locale-time-ago.composable.ts'
|
||||
import { vTooltip } from '@core/directives/tooltip.directive.ts'
|
||||
@@ -80,18 +97,24 @@ export type Task = {
|
||||
|
||||
const { task, showEyeIcon = false } = defineProps<{
|
||||
task: Task
|
||||
depth: number
|
||||
expanded?: boolean
|
||||
selected?: boolean
|
||||
selectedTaskId?: string
|
||||
showEyeIcon?: boolean
|
||||
showUnread?: boolean
|
||||
unread?: boolean
|
||||
autoCollapseCompleted?: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
expand: []
|
||||
select: [id: string]
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const subTasksCount = computed(() => task.subtasks?.length ?? 0)
|
||||
const subTasks = computed(() => task.subtasks ?? [])
|
||||
|
||||
const subTasksCount = computed(() => subTasks.value.length)
|
||||
|
||||
const hasSubTasks = computed(() => subTasksCount.value > 0)
|
||||
|
||||
@@ -119,91 +142,124 @@ const progress = computed(() => {
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
.ui-task-item {
|
||||
container: ui-task-item / inline-size;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding-block: 0.4rem;
|
||||
padding-inline: 0.4rem;
|
||||
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-areas: 'name infos . time progress actions';
|
||||
grid-template-columns: auto auto 1fr auto auto auto;
|
||||
align-items: center;
|
||||
gap: 1.6rem;
|
||||
min-height: 3.2rem;
|
||||
color: var(--color-neutral-txt-secondary);
|
||||
&[data-depth='1']:last-child {
|
||||
border-bottom: 0.1rem solid var(--color-neutral-border);
|
||||
}
|
||||
|
||||
.name {
|
||||
grid-area: name;
|
||||
min-width: 0;
|
||||
word-break: break-word;
|
||||
&.selected {
|
||||
background-color: var(--color-brand-background-selected);
|
||||
}
|
||||
|
||||
.meta {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.infos {
|
||||
grid-area: infos;
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
min-height: 4.8rem;
|
||||
position: relative;
|
||||
|
||||
.time {
|
||||
grid-area: time;
|
||||
}
|
||||
|
||||
.progress {
|
||||
grid-area: progress;
|
||||
display: flex;
|
||||
width: 4rem;
|
||||
}
|
||||
|
||||
.actions {
|
||||
grid-area: actions;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.unread {
|
||||
display: flex;
|
||||
width: 0.8rem;
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-info-item-base);
|
||||
}
|
||||
|
||||
.progress:not(:has(+ .actions)) {
|
||||
margin-inline-end: 2.4rem;
|
||||
}
|
||||
|
||||
@container ui-task-item (max-width: 50rem) {
|
||||
.layout {
|
||||
grid-template-areas:
|
||||
'name progress actions'
|
||||
'meta progress actions';
|
||||
grid-template-columns: minmax(0, 1fr) auto auto;
|
||||
gap: 0.4rem 0.8rem;
|
||||
min-height: 5rem;
|
||||
&::after {
|
||||
content: '';
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
clip-path: inset(0 0 0 calc(4rem * v-bind(depth - 1)));
|
||||
height: 0.1rem;
|
||||
background: var(--color-neutral-border);
|
||||
}
|
||||
|
||||
.meta {
|
||||
grid-area: meta;
|
||||
.tree-section {
|
||||
--line-container-base-width: 2.8rem;
|
||||
--line-width: 0.1rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
gap: 0.4rem;
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
.tree-lines {
|
||||
display: flex;
|
||||
align-self: stretch;
|
||||
min-width: calc(var(--line-container-base-width) * v-bind(depth - 1));
|
||||
}
|
||||
|
||||
.tree-line {
|
||||
flex: 0 0 calc(var(--line-container-base-width) + var(--line-width));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.tree-line-vertical {
|
||||
width: 0.1rem;
|
||||
background: var(--color-brand-txt-base);
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.h-space {
|
||||
width: 2.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.progress:not(:has(+ .actions)) {
|
||||
margin-inline-end: 0;
|
||||
.main-content {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
gap: 1.6rem;
|
||||
padding: 0.4rem 1.6rem 0.4rem 0.8rem;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.content-left {
|
||||
display: flex;
|
||||
gap: 1.6rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
color: var(--color-neutral-txt-secondary);
|
||||
word-break: break-word;
|
||||
|
||||
.infos {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
.content-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.6rem;
|
||||
color: var(--color-neutral-txt-secondary);
|
||||
flex-shrink: 0;
|
||||
|
||||
.progress {
|
||||
display: flex;
|
||||
width: 4rem;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 1.6rem;
|
||||
}
|
||||
|
||||
.progress:not(:has(+ .actions)) {
|
||||
margin-inline-end: 4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
.main-content {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.8rem;
|
||||
padding: 0.8rem;
|
||||
}
|
||||
|
||||
.content-right {
|
||||
gap: 0.8rem;
|
||||
|
||||
.actions {
|
||||
gap: 0.8rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<template>
|
||||
<ul class="ui-task-list">
|
||||
<UiTaskItem
|
||||
v-for="task of tasksItems"
|
||||
:key="task.id"
|
||||
:task="task.source"
|
||||
show-eye-icon
|
||||
:expanded="task.flags.expanded"
|
||||
:depth="depth + 1"
|
||||
:selected="selectedTaskId === task.id"
|
||||
:selected-task-id="selectedTaskId"
|
||||
:auto-collapse-completed
|
||||
@select="emit('select', $event)"
|
||||
@expand="task.toggleFlag('expanded')"
|
||||
/>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import UiTaskItem from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
import { useCollection } from '@core/packages/collection'
|
||||
import { watch } from 'vue'
|
||||
|
||||
const {
|
||||
tasks,
|
||||
depth = 0,
|
||||
autoCollapseCompleted,
|
||||
} = defineProps<{
|
||||
tasks: Task[]
|
||||
depth?: number
|
||||
selectedTaskId?: string
|
||||
autoCollapseCompleted?: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
select: [id: string]
|
||||
}>()
|
||||
|
||||
const { items: tasksItems } = useCollection(() => tasks, {
|
||||
flags: { expanded: true },
|
||||
})
|
||||
|
||||
watch(
|
||||
() =>
|
||||
autoCollapseCompleted ? tasksItems.value.filter(task => task.source.end !== undefined).map(task => task.id) : [],
|
||||
(completedTaskIds, previousCompletedTaskIds = []) => {
|
||||
tasksItems.value
|
||||
.filter(task => completedTaskIds.includes(task.id) && !previousCompletedTaskIds.includes(task.id))
|
||||
.forEach(task => task.toggleFlag('expanded', false))
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
<style scoped lang="postcss">
|
||||
.ui-task-list {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
</style>
|
||||
@@ -6,7 +6,23 @@
|
||||
class="ui-tree-item-label"
|
||||
v-bind="attrs"
|
||||
>
|
||||
<VtsTreeItemToggle :size="resolvedSize" @toggle="emit('toggle')" />
|
||||
<template v-if="depth > 1">
|
||||
<VtsTreeLine v-for="i in depth - 1" :key="i" :size="resolvedSize" />
|
||||
</template>
|
||||
<div class="toggle-wrapper">
|
||||
<UiButtonIcon
|
||||
v-if="hasToggle"
|
||||
v-tooltip="isExpanded ? t('action:close') : t('action:open')"
|
||||
:aria-label="isExpanded ? t('action:close') : t('action:open')"
|
||||
class="toggle"
|
||||
accent="brand"
|
||||
:icon="isExpanded ? 'fa:angle-down' : 'fa:angle-right'"
|
||||
size="small"
|
||||
:target-scale="{ x: 1.5, y: 2 }"
|
||||
@click.stop="emit('toggle')"
|
||||
/>
|
||||
<div v-else class="h-line" />
|
||||
</div>
|
||||
<a :href class="link typo-body-bold-small" @click="navigate">
|
||||
<slot name="icon">
|
||||
<VtsIcon :name="icon" size="medium" class="icon" />
|
||||
@@ -24,13 +40,20 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VtsIcon from '@core/components/icon/VtsIcon.vue'
|
||||
import VtsTreeItemToggle from '@core/components/tree/VtsTreeItemToggle.vue'
|
||||
import VtsTreeLine from '@core/components/tree/VtsTreeLine.vue'
|
||||
import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue'
|
||||
import { vTooltip } from '@core/directives/tooltip.directive.ts'
|
||||
import type { IconName } from '@core/icons'
|
||||
import { TREE_ITEM_SMALL_HEIGHT } from '@core/packages/tree/types.ts'
|
||||
import { IK_TREE_ITEM_LABEL_SIZE } from '@core/utils/injection-keys.util.ts'
|
||||
import {
|
||||
IK_TREE_ITEM_EXPANDED,
|
||||
IK_TREE_ITEM_HAS_CHILDREN,
|
||||
IK_TREE_ITEM_LABEL_SIZE,
|
||||
IK_TREE_LIST_DEPTH,
|
||||
} from '@core/utils/injection-keys.util.ts'
|
||||
import { toVariants } from '@core/utils/to-variants.util.ts'
|
||||
import { computed, inject, useAttrs } from 'vue'
|
||||
import { computed, inject, ref, useAttrs } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import type { RouteLocationRaw } from 'vue-router'
|
||||
|
||||
export type TreeItemLabelSize = 'small' | 'medium'
|
||||
@@ -56,8 +79,16 @@ defineSlots<{
|
||||
addons?(): any
|
||||
}>()
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const attrs = useAttrs()
|
||||
|
||||
const hasToggle = inject(IK_TREE_ITEM_HAS_CHILDREN, ref(false))
|
||||
|
||||
const isExpanded = inject(IK_TREE_ITEM_EXPANDED, ref(true))
|
||||
|
||||
const depth = inject(IK_TREE_LIST_DEPTH, ref(0))
|
||||
|
||||
const contextSize = inject(IK_TREE_ITEM_LABEL_SIZE, undefined)
|
||||
|
||||
const resolvedSize = computed(() => size ?? contextSize ?? 'medium')
|
||||
@@ -76,6 +107,12 @@ const smallHeight = `${TREE_ITEM_SMALL_HEIGHT}px`
|
||||
gap: 0.4rem;
|
||||
padding: 0 0.8rem;
|
||||
|
||||
.toggle-wrapper {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -100,11 +137,23 @@ const smallHeight = `${TREE_ITEM_SMALL_HEIGHT}px`
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.toggle {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.h-line {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* SIZE VARIANTS */
|
||||
|
||||
&.size--small {
|
||||
height: v-bind(smallHeight);
|
||||
|
||||
.toggle-wrapper {
|
||||
width: 1.6rem;
|
||||
}
|
||||
|
||||
.link {
|
||||
gap: 0.8rem;
|
||||
}
|
||||
@@ -114,6 +163,10 @@ const smallHeight = `${TREE_ITEM_SMALL_HEIGHT}px`
|
||||
border-radius: 0.8rem;
|
||||
margin-bottom: 0.2rem;
|
||||
|
||||
.toggle-wrapper {
|
||||
width: 2.4rem;
|
||||
}
|
||||
|
||||
.link {
|
||||
padding: 0.8rem 0;
|
||||
gap: 1.2rem;
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import type { InputWrapperAccent } from '@core/components/input-wrapper/VtsInputWrapper.vue'
|
||||
import { IK_INPUT_WRAPPER_CONTROLLER } from '@core/utils/injection-keys.util.ts'
|
||||
import { computed, inject, type MaybeRefOrGetter, toValue, watchEffect } from 'vue'
|
||||
|
||||
export const INPUT_WRAPPER_ACCENTS = ['neutral', 'success', 'warning', 'danger'] as const satisfies InputWrapperAccent[]
|
||||
|
||||
export function useInputWrapperController<TAccent extends string>({
|
||||
accent,
|
||||
accents,
|
||||
@@ -12,7 +9,7 @@ export function useInputWrapperController<TAccent extends string>({
|
||||
}: {
|
||||
accent: MaybeRefOrGetter<TAccent>
|
||||
accents: readonly NoInfer<TAccent>[]
|
||||
required?: MaybeRefOrGetter<boolean>
|
||||
required: MaybeRefOrGetter<boolean>
|
||||
detached?: boolean
|
||||
}) {
|
||||
const wrapperController = detached ? undefined : inject(IK_INPUT_WRAPPER_CONTROLLER, undefined)
|
||||
@@ -24,7 +21,7 @@ export function useInputWrapperController<TAccent extends string>({
|
||||
return accents.find(supportedAccent => supportedAccent === wrapperAccent) ?? toValue(accent)
|
||||
})
|
||||
|
||||
if (wrapperController && required !== undefined) {
|
||||
if (wrapperController) {
|
||||
watchEffect(() => {
|
||||
wrapperController.required = toValue(required)
|
||||
})
|
||||
|
||||
@@ -21,7 +21,7 @@ function createWrapperController(accent: InputWrapperAccent = 'neutral') {
|
||||
|
||||
function mountController({
|
||||
accent = ref<Accent>('neutral'),
|
||||
required,
|
||||
required = ref(false),
|
||||
detached = false,
|
||||
wrapperController,
|
||||
}: {
|
||||
@@ -120,16 +120,12 @@ describe('useInputWrapperController', () => {
|
||||
expect(wrapperController.required).toBe(false)
|
||||
})
|
||||
|
||||
it.each([
|
||||
{ label: 'when detached', options: { required: ref(true), detached: true }, wrapperRequired: false },
|
||||
{ label: 'without a required state of its own', options: {}, wrapperRequired: true },
|
||||
])('leaves the wrapper untouched $label', ({ options, wrapperRequired }) => {
|
||||
it('leaves the wrapper untouched when detached', () => {
|
||||
const wrapperController = createWrapperController()
|
||||
wrapperController.required = wrapperRequired
|
||||
|
||||
mountController({ ...options, wrapperController })
|
||||
mountController({ required: ref(true), detached: true, wrapperController })
|
||||
|
||||
expect(wrapperController.required).toBe(wrapperRequired)
|
||||
expect(wrapperController.required).toBe(false)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useMenuListNavigation } from '@core/composables/menu-list-navigation.composable.ts'
|
||||
import { mountWithSetupResult } from '@core-test/mount-with-setup.ts'
|
||||
import { h, nextTick, ref } from 'vue'
|
||||
import { mount } from '@vue/test-utils'
|
||||
import { defineComponent, h, nextTick, ref } from 'vue'
|
||||
|
||||
async function mountMenuListNavigation({
|
||||
isHorizontal = false,
|
||||
@@ -16,21 +16,22 @@ async function mountMenuListNavigation({
|
||||
const onItemClick = vi.fn()
|
||||
const onButtonClick = vi.fn()
|
||||
|
||||
const {
|
||||
result: { focusFirstItem },
|
||||
} = mountWithSetupResult(
|
||||
() => {
|
||||
const menu = ref<HTMLElement>()
|
||||
let focusFirstItem = () => {}
|
||||
|
||||
return {
|
||||
result: useMenuListNavigation({
|
||||
mount(
|
||||
defineComponent({
|
||||
setup() {
|
||||
const menu = ref<HTMLElement>()
|
||||
|
||||
focusFirstItem = useMenuListNavigation({
|
||||
target: () => (hasTarget ? menu.value : undefined),
|
||||
isHorizontal,
|
||||
canCloseWithArrowLeft,
|
||||
onClose,
|
||||
onLeave,
|
||||
}),
|
||||
render: () =>
|
||||
}).focusFirstItem
|
||||
|
||||
return () =>
|
||||
h('ul', { ref: menu, class: 'menu-list' }, [
|
||||
h('li', [h('div', { class: 'menu-trigger', tabindex: -1, onClick: onItemClick }, 'One')]),
|
||||
h('li', [
|
||||
@@ -40,9 +41,9 @@ async function mountMenuListNavigation({
|
||||
h('div', { class: 'menu-trigger', tabindex: -1 }, 'Three'),
|
||||
h('ul', { class: 'menu-list' }, [h('li', [h('div', { class: 'menu-trigger', tabindex: -1 }, 'Nested')])]),
|
||||
]),
|
||||
]),
|
||||
}
|
||||
},
|
||||
])
|
||||
},
|
||||
}),
|
||||
{ attachTo: document.body }
|
||||
)
|
||||
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
import { useMenuPopup } from '@core/composables/menu-popup.composable.ts'
|
||||
import { useOverlayStore } from '@core/packages/overlay/use-overlay-store.ts'
|
||||
import { mountWithSetupResult } from '@core-test/mount-with-setup.ts'
|
||||
import { h, nextTick, ref, useTemplateRef } from 'vue'
|
||||
import { createGlobalTestConfig } from '@core-test/create-global-test-config.ts'
|
||||
import { mount } from '@vue/test-utils'
|
||||
import { defineComponent, h, nextTick, ref, useTemplateRef } from 'vue'
|
||||
|
||||
type PopupOptions = Partial<Pick<Parameters<typeof useMenuPopup>[1], 'closesOnClickOutside' | 'hasOpenSubmenu'>>
|
||||
|
||||
async function mountOpenPopup(options: PopupOptions = {}) {
|
||||
const onClosed = vi.fn()
|
||||
const isOpen = ref(false)
|
||||
|
||||
const { wrapper, result: popup } = mountWithSetupResult(
|
||||
() => {
|
||||
const anchor = useTemplateRef<HTMLElement>('anchor')
|
||||
const wrapper = mount(
|
||||
defineComponent({
|
||||
setup: () => {
|
||||
const isOpen = ref(false)
|
||||
const anchor = useTemplateRef<HTMLElement>('anchor')
|
||||
|
||||
return {
|
||||
result: useMenuPopup(useTemplateRef<HTMLElement>('menu'), {
|
||||
const popup = useMenuPopup(useTemplateRef<HTMLElement>('menu'), {
|
||||
isOpen,
|
||||
anchor: () => anchor.value ?? undefined,
|
||||
placement: 'right-start',
|
||||
@@ -22,22 +23,25 @@ async function mountOpenPopup(options: PopupOptions = {}) {
|
||||
hasOpenSubmenu: false,
|
||||
onClosed,
|
||||
...options,
|
||||
}),
|
||||
render: () =>
|
||||
h('div', [
|
||||
h('button', { ref: 'anchor', class: 'anchor' }, 'Actions'),
|
||||
h('button', { class: 'outside' }, 'Outside'),
|
||||
isOpen.value ? h('ul', { ref: 'menu', class: 'menu-list' }, [h('li', [h('button', 'Item')])]) : null,
|
||||
]),
|
||||
}
|
||||
},
|
||||
{ attachTo: document.body }
|
||||
})
|
||||
|
||||
return { isOpen, ...popup }
|
||||
},
|
||||
render() {
|
||||
return h('div', [
|
||||
h('button', { ref: 'anchor', class: 'anchor' }, 'Actions'),
|
||||
h('button', { class: 'outside' }, 'Outside'),
|
||||
this.isOpen ? h('ul', { ref: 'menu', class: 'menu-list' }, [h('li', [h('button', 'Item')])]) : null,
|
||||
])
|
||||
},
|
||||
}),
|
||||
{ attachTo: document.body, global: createGlobalTestConfig() }
|
||||
)
|
||||
|
||||
isOpen.value = true
|
||||
wrapper.vm.isOpen = true
|
||||
await nextTick()
|
||||
|
||||
return { wrapper, onClosed, isOpen, popup }
|
||||
return { wrapper, onClosed }
|
||||
}
|
||||
|
||||
function pressEscape() {
|
||||
@@ -62,49 +66,49 @@ function registerModal() {
|
||||
|
||||
describe('useMenuPopup', () => {
|
||||
it('places the menu against its anchor and exposes the side it ends up on', async () => {
|
||||
const { popup } = await mountOpenPopup()
|
||||
const { wrapper } = await mountOpenPopup()
|
||||
|
||||
expect(popup.placementSide.value).toBe('right')
|
||||
expect(wrapper.vm.placementSide).toBe('right')
|
||||
})
|
||||
|
||||
it('closes on Escape and gives the focus back to its anchor', async () => {
|
||||
const { wrapper, onClosed, isOpen } = await mountOpenPopup()
|
||||
const { wrapper, onClosed } = await mountOpenPopup()
|
||||
|
||||
const event = pressEscape()
|
||||
await nextTick()
|
||||
|
||||
expect(isOpen.value).toBe(false)
|
||||
expect(wrapper.vm.isOpen).toBe(false)
|
||||
expect(event.defaultPrevented).toBe(true)
|
||||
expect(document.activeElement).toBe(wrapper.get('.anchor').element)
|
||||
expect(onClosed).toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('leaves Escape to its open submenu', async () => {
|
||||
const { isOpen } = await mountOpenPopup({ hasOpenSubmenu: true })
|
||||
const { wrapper } = await mountOpenPopup({ hasOpenSubmenu: true })
|
||||
|
||||
pressEscape()
|
||||
await nextTick()
|
||||
|
||||
expect(isOpen.value).toBe(true)
|
||||
expect(wrapper.vm.isOpen).toBe(true)
|
||||
})
|
||||
|
||||
it('leaves Escape to a modal opened after it', async () => {
|
||||
const { isOpen } = await mountOpenPopup()
|
||||
const { wrapper } = await mountOpenPopup()
|
||||
|
||||
registerModal()
|
||||
|
||||
const event = pressEscape()
|
||||
await nextTick()
|
||||
|
||||
expect(isOpen.value).toBe(true)
|
||||
expect(wrapper.vm.isOpen).toBe(true)
|
||||
expect(event.defaultPrevented).toBe(false)
|
||||
})
|
||||
|
||||
it('gives the focus back to its anchor when it closes with the focus inside', async () => {
|
||||
const { wrapper, popup } = await mountOpenPopup()
|
||||
const { wrapper } = await mountOpenPopup()
|
||||
|
||||
wrapper.get<HTMLElement>('.menu-list button').element.focus()
|
||||
popup.close()
|
||||
wrapper.vm.close()
|
||||
await nextTick()
|
||||
|
||||
expect(document.activeElement).toBe(wrapper.get('.anchor').element)
|
||||
@@ -116,14 +120,14 @@ describe('useMenuPopup', () => {
|
||||
])(
|
||||
'stays open after a click outside: $expected, when closesOnClickOutside is $closesOnClickOutside',
|
||||
async ({ closesOnClickOutside, expected }) => {
|
||||
const { wrapper, isOpen } = await mountOpenPopup({ closesOnClickOutside })
|
||||
const { wrapper } = await mountOpenPopup({ closesOnClickOutside })
|
||||
|
||||
const outside = wrapper.get('.outside')
|
||||
|
||||
await outside.trigger('pointerdown')
|
||||
await outside.trigger('click')
|
||||
|
||||
expect(isOpen.value).toBe(expected)
|
||||
expect(wrapper.vm.isOpen).toBe(expected)
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useTagSelectKeyboard } from '@core/composables/tag-select-keyboard.composable.ts'
|
||||
import { mountWithSetup } from '@core-test/mount-with-setup.ts'
|
||||
import { h, nextTick, ref } from 'vue'
|
||||
import { mount } from '@vue/test-utils'
|
||||
import { defineComponent, h, nextTick, ref } from 'vue'
|
||||
|
||||
async function mountTagSelectKeyboard({ hasTarget = true }: { hasTarget?: boolean } = {}) {
|
||||
const onCancel = vi.fn()
|
||||
@@ -27,43 +27,45 @@ async function mountTagSelectKeyboard({ hasTarget = true }: { hasTarget?: boolea
|
||||
)
|
||||
}
|
||||
|
||||
mountWithSetup(
|
||||
() => {
|
||||
const dropdown = ref<HTMLElement>()
|
||||
mount(
|
||||
defineComponent({
|
||||
setup() {
|
||||
const dropdown = ref<HTMLElement>()
|
||||
|
||||
useTagSelectKeyboard({
|
||||
target: () => (hasTarget ? dropdown.value : undefined),
|
||||
itemSelector: '.item',
|
||||
onCancel,
|
||||
onFocusLost,
|
||||
})
|
||||
useTagSelectKeyboard({
|
||||
target: () => (hasTarget ? dropdown.value : undefined),
|
||||
itemSelector: '.item',
|
||||
onCancel,
|
||||
onFocusLost,
|
||||
})
|
||||
|
||||
return () =>
|
||||
h('div', { onKeydown: onParentKeydown }, [
|
||||
h('div', { ref: dropdown }, [
|
||||
isRemoveVisible.value
|
||||
? h(
|
||||
'button',
|
||||
{
|
||||
// Like the tag remove button, which stops the click propagation
|
||||
onClick: (event: MouseEvent) => {
|
||||
event.stopPropagation()
|
||||
isRemoveVisible.value = false
|
||||
return () =>
|
||||
h('div', { onKeydown: onParentKeydown }, [
|
||||
h('div', { ref: dropdown }, [
|
||||
isRemoveVisible.value
|
||||
? h(
|
||||
'button',
|
||||
{
|
||||
// Like the tag remove button, which stops the click propagation
|
||||
onClick: (event: MouseEvent) => {
|
||||
event.stopPropagation()
|
||||
isRemoveVisible.value = false
|
||||
},
|
||||
},
|
||||
},
|
||||
'Remove'
|
||||
)
|
||||
: undefined,
|
||||
h('input', { 'aria-label': 'Search' }),
|
||||
h('button', { disabled: isSelectAllDisabled.value, onClick: () => (isSelectAllDisabled.value = true) }, [
|
||||
'Select all',
|
||||
'Remove'
|
||||
)
|
||||
: undefined,
|
||||
h('input', { 'aria-label': 'Search' }),
|
||||
h('button', { disabled: isSelectAllDisabled.value, onClick: () => (isSelectAllDisabled.value = true) }, [
|
||||
'Select all',
|
||||
]),
|
||||
renderItem('Option A'),
|
||||
renderItem('Option B'),
|
||||
h('button', 'Save'),
|
||||
]),
|
||||
renderItem('Option A'),
|
||||
renderItem('Option B'),
|
||||
h('button', 'Save'),
|
||||
]),
|
||||
])
|
||||
},
|
||||
])
|
||||
},
|
||||
}),
|
||||
{ attachTo: document.body }
|
||||
)
|
||||
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import type { TaskListContext } from '@core/components/task/VtsTaskList.vue'
|
||||
import { IK_TASK_LIST_CONTEXT } from '@core/utils/injection-keys.util.ts'
|
||||
import { inject } from 'vue'
|
||||
|
||||
export function useTaskListContext(): TaskListContext {
|
||||
const context = inject(IK_TASK_LIST_CONTEXT, undefined)
|
||||
|
||||
if (context === undefined) {
|
||||
throw new Error('useTaskListContext needs a VtsTaskList parent')
|
||||
}
|
||||
|
||||
return context
|
||||
}
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
faBars,
|
||||
faBolt,
|
||||
faCamera,
|
||||
faCheckDouble,
|
||||
faCircle,
|
||||
faClone,
|
||||
faClose,
|
||||
@@ -212,5 +211,4 @@ export const actionIcons = defineIconPack({
|
||||
size: 10,
|
||||
},
|
||||
],
|
||||
read: constructIcon(faCheckDouble),
|
||||
})
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "إغلاق",
|
||||
"action:confirm": "تأكيد",
|
||||
"action:connect": "توصيل",
|
||||
"action:connect-another-pool": "توصيل تجمع آخر",
|
||||
"action:connect-n": "توصيل {n}",
|
||||
"action:connect-n-srs": "توصيل SR واحد | توصيل {n} SR",
|
||||
"action:connect-n-vbds": "توصيل VBD واحد | توصيل {n} VBD",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "تحويل إلى مجموعة",
|
||||
"action:update": "تحديث",
|
||||
"action:use-query-builder": "استخدام منشئ الاستعلامات",
|
||||
"action:visit-pool-dashboard": "زيارة لوحة معلومات التجمع",
|
||||
"add-or": "+أو",
|
||||
"admin-login": "اسم دخول المسؤول",
|
||||
"admin-password": "كلمة مرور المسؤول",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "مسار التنقل",
|
||||
"ascending": "تصاعدي",
|
||||
"attach-vdi": "إرفاق VDI موجود",
|
||||
"attach-vdi:error-message": "حدث خطأ أثناء إرفاق VDI. يرجى مراجعة إعدادات التكوين (SR، VDI، الوضع)، والتحقق من حالة VM، ثم المحاولة مرة أخرى.",
|
||||
"attaching-vdi": "إرفاق VDI",
|
||||
"auto-generated": "مُنشأ تلقائيًا",
|
||||
"auto-power": "التشغيل التلقائي",
|
||||
"available": "متاح",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "توصيل",
|
||||
"connected": "متصل",
|
||||
"connected-srs": "SR المتصلة",
|
||||
"connected-to-ip": "متصل بـ {ip}",
|
||||
"connecting": "جارٍ الاتصال",
|
||||
"connection": "الاتصال",
|
||||
"connection-failed": "فشل الاتصال",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "أنشأه",
|
||||
"created-on": "تاريخ الإنشاء",
|
||||
"creating-new-network": "إنشاء شبكة جديدة",
|
||||
"creating-new-traffic-rule": "إنشاء قاعدة حركة مرور جديدة",
|
||||
"creating-new-vdi": "إنشاء VDI جديد",
|
||||
"creating-new-vif": "إنشاء VIF جديد",
|
||||
"creation-date": "تاريخ الإنشاء",
|
||||
"cron-pattern": "نمط Cron",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "الخروج من ملء الشاشة",
|
||||
"expiration-date": "تاريخ انتهاء الصلاحية",
|
||||
"export-vms-manually-information": "تعذّر بدء بعض عمليات تصدير VM تلقائيًا، على الأرجح بسبب إعدادات متصفحك. لتصديرها، يجب النقر على كل منها. (بدلًا من ذلك، يمكنك نسخ الرابط أيضًا.)",
|
||||
"failed": "فشل",
|
||||
"failure": "إخفاق",
|
||||
"fast-clone": "استنساخ سريع",
|
||||
"fast-clone-available": "الاستنساخ السريع متاح فقط لـ VM المتوقفة.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "لقطة واحدة | {n} لقطات",
|
||||
"n-srs": "SR واحد | {n} SR",
|
||||
"n-subtasks": "مهمة فرعية واحدة | {n} مهام فرعية",
|
||||
"n-traffic-rules": "قاعدة حركة مرور واحدة | {n} قواعد حركة مرور",
|
||||
"n-vbds": "VBD واحد | {n} VBD",
|
||||
"n-vcpus": "vCPU واحد | {n} vCPU",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "حدث خطأ أثناء إنشاء الشبكة. يرجى مراجعة إعدادات التكوين (الاسم، النوع، VLAN)، والتحقق من توفر المضيف، ثم المحاولة مرة أخرى.",
|
||||
"new-network:select-interface": "اختيار واجهة",
|
||||
"new-traffic-rule:add": "إضافة قاعدة حركة مرور جديدة",
|
||||
"new-traffic-rule:error-message": "حدث خطأ أثناء إنشاء قاعدة حركة المرور. يرجى مراجعة إعدادات التكوين ثم المحاولة مرة أخرى.",
|
||||
"new-vdi:accepted-formats": "التنسيقات المقبولة: {formats}",
|
||||
"new-vdi:add": "إضافة VDI جديد",
|
||||
"new-vdi:error-message": "حدث خطأ أثناء إنشاء VDI. يرجى مراجعة إعدادات التكوين (الاسم، مستودع التخزين، المساحة المخصصة) ثم المحاولة مرة أخرى.",
|
||||
"new-vif": "VIF جديد",
|
||||
"new-vif:add": "إضافة VIF جديد",
|
||||
"new-vif:error-message": "حدث خطأ أثناء إنشاء VIF. يرجى مراجعة إعدادات التكوين ثم المحاولة مرة أخرى.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "يرجى الانتظار",
|
||||
"policy": "السياسة",
|
||||
"pool": "التجمع",
|
||||
"pool-connection-error-auth-failed": "حدث خطأ أثناء الاتصال بالتجمع. يبدو أن اسم المستخدم أو كلمة المرور غير صحيحة.",
|
||||
"pool-connection-error-duplicate": "حدث خطأ أثناء الاتصال بالتجمع. يبدو أن هذا التجمع متصل بالفعل.",
|
||||
"pool-connection-error-host-not-found": "حدث خطأ أثناء الاتصال بالتجمع. يبدو أن عنوان هذا التجمع غير موجود. يرجى تغيير IP ثم المحاولة مرة أخرى.",
|
||||
"pool-connection-error-invalid-parameters": "حدث خطأ أثناء الاتصال بالتجمع. يبدو أن المعلمات المقدمة غير صالحة. يرجى التحقق من عنوان IP وبيانات الاعتماد، ثم المحاولة مرة أخرى.",
|
||||
"pool-connection-ip-info": "أدخل عنوان المضيف الأساسي للتجمع الذي تريد الاتصال به.",
|
||||
"pool-connection-success": "لقد اتصلت بالتجمع بنجاح. يمكنك الآن العثور عليه في عرض الشجرة والبدء في إدارة المضيفات وVM الخاصة بك.",
|
||||
"pool-cpu-usage": "استخدام CPU للتجمع",
|
||||
"pool-disconnect-info": "لن تتمكن بعد الآن من إدارة هذا التجمع من XO. يمكنك إعادة توصيله لاحقًا.",
|
||||
"pool-forget-confirm-info": "سيؤدي هذا إلى إزالة هذا المضيف نهائيًا من XO. لإعادة الاتصال، ستحتاج إلى إضافته مرة أخرى.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "المهام",
|
||||
"tasks-page": "صفحة المهام",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "نظرة عامة على المهام",
|
||||
"template": "القالب",
|
||||
"template-has-bios-strings": "يحتوي القالب بالفعل على سلاسل BIOS",
|
||||
"theme": "السمة",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "عرض الشجرة",
|
||||
"trigger": "المُحفِّز",
|
||||
"type": "النوع",
|
||||
"unable-to-attach-vdi": "تعذّر إرفاق VDI",
|
||||
"unable-to-connect": "تعذّر الاتصال",
|
||||
"unable-to-connect-to": "تعذّر الاتصال بـ {ip}",
|
||||
"unable-to-connect-to-the-pool": "تعذّر الاتصال بالتجمع",
|
||||
"unable-to-connect-to-xo-server": "تعذّر الاتصال بخادم XO.",
|
||||
"unable-to-create-new-bonded-network": "تعذّر إنشاء شبكة مجمّعة جديدة",
|
||||
"unable-to-create-new-internal-network": "تعذّر إنشاء شبكة داخلية جديدة",
|
||||
"unable-to-create-new-network": "تعذّر إنشاء شبكة جديدة",
|
||||
"unable-to-create-new-traffic-rule": "تعذّر إنشاء قاعدة حركة مرور جديدة",
|
||||
"unable-to-create-new-vdi": "تعذّر إنشاء VDI جديد",
|
||||
"unable-to-create-new-vif": "تعذّر إنشاء VIF جديد",
|
||||
"unable-to-delete-network": "تعذّر حذف الشبكة",
|
||||
"unable-to-duplicate-vm": "تعذّر تكرار VM",
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"action:close": "Zavřít",
|
||||
"action:confirm": "Potvrdit",
|
||||
"action:connect": "Připojit",
|
||||
"action:connect-another-pool": "Připojit další fond",
|
||||
"action:connect-n": "Připojit {n}",
|
||||
"action:connect-n-srs": "Připojit 1 repozitář úložiště | Připojit {n} repozitáře úložiště | Připojit {n} repozitářů úložiště",
|
||||
"action:connect-n-vbds": "Připojit 1 virtuální blokové zařízení | Připojit {n} bloková zařízení | Připojit {n} blokových zařízení",
|
||||
@@ -155,6 +156,7 @@
|
||||
"action:turn-into-group": "Přeměnit na skupinu",
|
||||
"action:update": "Aktualizovat",
|
||||
"action:use-query-builder": "Použít nástroj pro sestavování dotazů",
|
||||
"action:visit-pool-dashboard": "Přejít na přehled fondu",
|
||||
"add-or": "+NEBO",
|
||||
"admin-login": "Přihlašovací jméno správce",
|
||||
"admin-password": "Heslo správce",
|
||||
@@ -192,6 +194,8 @@
|
||||
"aria:breadcrumb:label": "Drobečková navigace",
|
||||
"ascending": "vzestupně",
|
||||
"attach-vdi": "Připojit existující obraz virt. disku",
|
||||
"attach-vdi:error-message": "Došlo k chybě při připojování obrazu virt. disku. Zkontrolujte nastavení (repozitář úložiště, obraz virt. disku, režim), ověřte stav virt. stroje a zkuste to znovu.",
|
||||
"attaching-vdi": "Připojuje se obraz virt. disku",
|
||||
"auto-generated": "Automaticky vytvořeno",
|
||||
"auto-power": "Automatické zapínání",
|
||||
"available": "K dispozici",
|
||||
@@ -278,6 +282,7 @@
|
||||
"connect": "Připojit",
|
||||
"connected": "Připojeno",
|
||||
"connected-srs": "Připojené repozitáře úložiště",
|
||||
"connected-to-ip": "Připojeno k {ip}",
|
||||
"connecting": "Připojuje se",
|
||||
"connection": "Připojení",
|
||||
"connection-failed": "Připojení se nezdařilo",
|
||||
@@ -309,6 +314,8 @@
|
||||
"created-by": "Vytvořil/a",
|
||||
"created-on": "Vytvořeno",
|
||||
"creating-new-network": "Vytváření nové sítě",
|
||||
"creating-new-traffic-rule": "Vytvořit nové pravidlo pro provoz",
|
||||
"creating-new-vdi": "Vytváří se nový obraz virt. disku",
|
||||
"creating-new-vif": "Vytváření nového virt. síťového rozhraní",
|
||||
"creation-date": "Datum vytvoření",
|
||||
"cron-pattern": "Vzorec plánování (cron)",
|
||||
@@ -384,6 +391,7 @@
|
||||
"exit-fullscreen": "Opustit režim na celou obrazovku",
|
||||
"expiration-date": "Datum skončení platnosti",
|
||||
"export-vms-manually-information": "Některé exporty virt. strojů nebylo možné spustit automaticky – nejspíš kvůli nastavení vámi využívaného prohlížeče. Pokud je chcete exportovat, klikněte na každý z nich. (Případně zkopírujte také odkaz.)",
|
||||
"failed": "Nezdařilo se",
|
||||
"failure": "Selhání",
|
||||
"fast-clone": "Rychlý klon",
|
||||
"fast-clone-available": "Rychlý klon je k dispozici pouze pro zastavené virt. stroje.",
|
||||
@@ -740,6 +748,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 zachycený stav | {n} zachycené stavy | {n} zachycených stavů",
|
||||
"n-srs": "1 repozitář úložiště | {n} repozitáře úložiště | {n} repozitářů úložiště",
|
||||
"n-subtasks": "1 podúloha | {n} podúlohy | {n} podúloh",
|
||||
"n-traffic-rules": "1 pravidlo pro provoz | {n} pravidla pro provoz | {n} pravidel pro provoz",
|
||||
"n-vbds": "1 virt. blokové zařízení | {n} virt. bloková zařízení | {n} virt. blokových zařízení",
|
||||
"n-vcpus": "1 virt. procesor | {n} virt. procesory | {n} virt. procesorů",
|
||||
@@ -772,8 +781,10 @@
|
||||
"new-network:error-message": "Při vytváření síťě došlo k chybě. Zkontrolujte vámi provedená nastavení (název, typ, VLAN), ověřte zda je hostitel dosažitelný a zkuste to znovu.",
|
||||
"new-network:select-interface": "Vyberte rozhraní",
|
||||
"new-traffic-rule:add": "Přidat nové pravidlo pro provoz",
|
||||
"new-traffic-rule:error-message": "Při vytváření pravidla pro provoz došlo k chybě. Zkontrolujte nastavení a zkuste to znovu.",
|
||||
"new-vdi:accepted-formats": "Přijímané formáty: {formats}",
|
||||
"new-vdi:add": "Přidat nový obraz virt. disku",
|
||||
"new-vdi:error-message": "Při přidávání obrazu virt. disku došlo k chybě. Zkontrolujte nastavení (název, repozitář úložiště, přidělený prostor) a zkuste to znovu.",
|
||||
"new-vif": "Nové virt. rozhraní",
|
||||
"new-vif:add": "Přidat nové virt. síťové rozhraní",
|
||||
"new-vif:error-message": "Došlo k chybě při vytváření nového virt. síťového rozhraní. Zkontrolujte nastavení a zkuste to znovu.",
|
||||
@@ -904,7 +915,12 @@
|
||||
"please-wait": "Čekejte prosím",
|
||||
"policy": "Zásada",
|
||||
"pool": "Fond",
|
||||
"pool-connection-error-auth-failed": "Při připojování k fondu došlo k chybě. Zdá se, že uživatelské jméno nebo heslo není správné.",
|
||||
"pool-connection-error-duplicate": "Při připojování k fondu došlo k chybě. Zdá se, že už je připojený.",
|
||||
"pool-connection-error-host-not-found": "Při připojování k fondu došlo k chybě. Zdá se, že adresa tohoto fondu neexistuje. Zadejte jinou a zkuste to znovu.",
|
||||
"pool-connection-error-invalid-parameters": "Při připojování k fondu došlo k chybě. Zdá se, že zadané parametry nejsou platné. Zkontrolujte IP adresu a přihlašovací údaje a pak to zkuste znovu.",
|
||||
"pool-connection-ip-info": "Zadejte adresu hlavního hostitele fondu, ke kterému se chcete připojit.",
|
||||
"pool-connection-success": "Úspěšně jste připojili fond. Naleznete ho ve stromovém pohledu a můžete začít spravovat hostitele a virt. stroje v něm.",
|
||||
"pool-cpu-usage": "Využití procesorů fondu",
|
||||
"pool-disconnect-info": "Tento fond už nebudete moci spravovat z Xen Orchestra. Je možné ho později znovu připojit.",
|
||||
"pool-forget-confirm-info": "Toto hostitele nevratně odebere z Xen Orchestra. Pro opětovné připojení bude třeba ho přidat odznovu.",
|
||||
@@ -1132,6 +1148,10 @@
|
||||
"task:started": "Spuštěno",
|
||||
"tasks": "Úlohy",
|
||||
"tasks-page": "Stránka Úkoly",
|
||||
"tasks:all": "Vše",
|
||||
"tasks:done": "Hotovo",
|
||||
"tasks:failed": "Nezdařilo se",
|
||||
"tasks:overview": "Rychlý přehled úloh",
|
||||
"template": "Šablona",
|
||||
"template-has-bios-strings": "Šablona už obsahuje řetězec BIOS",
|
||||
"theme": "Motiv vzhledu",
|
||||
@@ -1180,12 +1200,16 @@
|
||||
"treeview": "Stromové zobrazení",
|
||||
"trigger": "Spouštěč",
|
||||
"type": "Typ",
|
||||
"unable-to-attach-vdi": "Obraz virt. disku nebylo možné připojit",
|
||||
"unable-to-connect": "Nebylo možné se připojit",
|
||||
"unable-to-connect-to": "Nebylo možné se připojit k {ip}",
|
||||
"unable-to-connect-to-the-pool": "Nebylo možné se připojit k fondu",
|
||||
"unable-to-connect-to-xo-server": "Nebylo možné se připojit k XO serveru.",
|
||||
"unable-to-create-new-bonded-network": "Nebylo možné vytvořit novou spřaženou síť",
|
||||
"unable-to-create-new-internal-network": "Nebylo možné vytvořit novou interní síť",
|
||||
"unable-to-create-new-network": "Nebylo možné vytvořit novou síť",
|
||||
"unable-to-create-new-traffic-rule": "Nebylo možné vytvořit nové pravidlo pro provoz",
|
||||
"unable-to-create-new-vdi": "Nebylo možné vytvořit nový obraz virt. disku",
|
||||
"unable-to-create-new-vif": "Nebylo možné vytvořit nové virt. síťové rozhraní",
|
||||
"unable-to-delete-network": "Síť nebylo možné smazat",
|
||||
"unable-to-duplicate-vm": "Nebylo možné zduplikovat virt. stroj",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "Luk",
|
||||
"action:confirm": "Bekræft",
|
||||
"action:connect": "Forbind",
|
||||
"action:connect-another-pool": "Forbind til en anden pool",
|
||||
"action:connect-n": "Forbind {n}",
|
||||
"action:connect-n-srs": "Forbind 1 SR | Forbind {n} SR'er",
|
||||
"action:connect-n-vbds": "Forbind 1 VBD | Forbind {n} VBD'er",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "Lav om til gruppe",
|
||||
"action:update": "Opdater",
|
||||
"action:use-query-builder": "Brug forespørgselsbygger",
|
||||
"action:visit-pool-dashboard": "Besøg pool oversigtspanel",
|
||||
"add-or": "+ELLER",
|
||||
"admin-login": "Admin login",
|
||||
"admin-password": "Admin password",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "Brødkrumme",
|
||||
"ascending": "stigende",
|
||||
"attach-vdi": "Tilknyt eksisterende VDI",
|
||||
"attach-vdi:error-message": "Der opstod en fejl under tilknytning af VDI'en. Gennemgå dine konfigurationsindstillinger (SR, VDI, tilstand), kontroller VM'ens tilstand, og prøv igen.",
|
||||
"attaching-vdi": "Tilknytter VDI",
|
||||
"auto-generated": "Automatisk genereret",
|
||||
"auto-power": "Automatisk tænd",
|
||||
"available": "Tilgængelig",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "Forbind",
|
||||
"connected": "Forbundet",
|
||||
"connected-srs": "Forbundne SR'er",
|
||||
"connected-to-ip": "Forbundet til {ip}",
|
||||
"connecting": "Forbinder",
|
||||
"connection": "Forbindelse",
|
||||
"connection-failed": "Forbindelse fejlede",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "Oprettet af",
|
||||
"created-on": "Oprettet den",
|
||||
"creating-new-network": "Opretter nyt netværk",
|
||||
"creating-new-traffic-rule": "Opretter ny trafikregel",
|
||||
"creating-new-vdi": "Opretter ny VDI",
|
||||
"creating-new-vif": "Opretter ny VIF",
|
||||
"creation-date": "Oprettelsesdato",
|
||||
"cron-pattern": "Cron mønster",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "Forlad fuldskærm",
|
||||
"expiration-date": "Udløbsdato",
|
||||
"export-vms-manually-information": "Nogle VM-eksporter kunne ikke starte automatisk, sandsynligvis på grund af dine browserindstillinger. For at eksportere dem skal du klikke på hver enkelt. (Alternativt kan du også kopiere linket.)",
|
||||
"failed": "Mislykkedes",
|
||||
"failure": "Fejl",
|
||||
"fast-clone": "Hurtig kloning",
|
||||
"fast-clone-available": "Hurtig kloning er kun tilgængelig for stoppede VM'er.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 snapshot | {n} snapshots",
|
||||
"n-srs": "1 SR | {n} SR'er",
|
||||
"n-subtasks": "1 underopgave | {n} underopgaver",
|
||||
"n-traffic-rules": "1 trafikregel | {n} trafikregler",
|
||||
"n-vbds": "1 VBD | {n} VBD'er",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU'er",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "Der opstod en fejl under oprettelse af netværket. Gennemgå dine konfigurationsindstillinger (navn, type, VLAN), kontroller hostens tilgængelighed, og prøv igen.",
|
||||
"new-network:select-interface": "Vælg en grænseflade",
|
||||
"new-traffic-rule:add": "Tilføj ny trafikregel",
|
||||
"new-traffic-rule:error-message": "Der opstod en fejl under oprettelse af trafikreglen. Gennemgå dine konfigurationsindstillinger, og prøv igen.",
|
||||
"new-vdi:accepted-formats": "Accepterede formater: {formats}",
|
||||
"new-vdi:add": "Tilføj ny VDI",
|
||||
"new-vdi:error-message": "Der opstod en fejl under oprettelse af VDI'en. Gennemgå dine konfigurationsindstillinger (navn, storage repository, allokeret plads), og prøv igen.",
|
||||
"new-vif": "Ny VIF",
|
||||
"new-vif:add": "Tilføj ny VIF",
|
||||
"new-vif:error-message": "Der opstod en fejl under oprettelse af VIF'en. Gennemgå dine konfigurationsindstillinger, og prøv igen.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "Vent venligst",
|
||||
"policy": "Politik",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Der opstod en fejl under forbindelse til poolen. Brugernavnet eller passwordet ser ud til at være forkert.",
|
||||
"pool-connection-error-duplicate": "Der opstod en fejl under forbindelse til poolen. Denne pool ser ud til allerede at være forbundet.",
|
||||
"pool-connection-error-host-not-found": "Der opstod en fejl under forbindelse til poolen. Adressen på denne pool ser ikke ud til at eksistere. Ændr IP-adressen, og prøv igen.",
|
||||
"pool-connection-error-invalid-parameters": "Der opstod en fejl under forbindelse til poolen. De angivne parametre ser ikke ud til at være gyldige. Kontroller IP-adressen og legitimationsoplysningerne, og prøv igen.",
|
||||
"pool-connection-ip-info": "Angiv adressen på den primære host i den pool, du vil forbinde til.",
|
||||
"pool-connection-success": "Du har forbundet til poolen. Du kan nu finde den i din træstruktur og begynde at administrere dine hosts og VM'er.",
|
||||
"pool-cpu-usage": "Pool CPU forbrug",
|
||||
"pool-disconnect-info": "Du vil ikke længere kunne administrere denne pool fra XO. Du kan forbinde den igen senere.",
|
||||
"pool-forget-confirm-info": "Dette vil permanent fjerne denne host fra XO. For at forbinde igen skal du tilføje den igen.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Opgaver",
|
||||
"tasks-page": "Opgavesiden",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Opgaveoversigt",
|
||||
"template": "Skabelon",
|
||||
"template-has-bios-strings": "Skabelonen indeholder allerede BIOS-strengene",
|
||||
"theme": "Tema",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "Træstruktur",
|
||||
"trigger": "Udløser",
|
||||
"type": "Type",
|
||||
"unable-to-attach-vdi": "Kan ikke tilknytte VDI",
|
||||
"unable-to-connect": "Kan ikke forbinde",
|
||||
"unable-to-connect-to": "Kan ikke foirbinde til {ip}",
|
||||
"unable-to-connect-to-the-pool": "Kan ikke oprette forbindelse til poolen",
|
||||
"unable-to-connect-to-xo-server": "Kan ikke forbinde til XO-server.",
|
||||
"unable-to-create-new-bonded-network": "Kan ikke oprette nyt bonded netværk",
|
||||
"unable-to-create-new-internal-network": "Kan ikke oprette nyt internt netværk",
|
||||
"unable-to-create-new-network": "Kan ikke oprette nyt netværk",
|
||||
"unable-to-create-new-traffic-rule": "Kan ikke oprette ny trafikregel",
|
||||
"unable-to-create-new-vdi": "Kan ikke oprette ny VDI",
|
||||
"unable-to-create-new-vif": "Kan ikke oprette ny VIF",
|
||||
"unable-to-delete-network": "Kan ikke slette netværk",
|
||||
"unable-to-duplicate-vm": "Kan ikke duplikere VM",
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
"action:change-state": "Energiezustand ändern",
|
||||
"action:close": "Schließen",
|
||||
"action:connect": "Verbinden",
|
||||
"action:connect-another-pool": "Mit anderem Pool verbinden",
|
||||
"action:connect-n-vbds": "1 VBD verbinden | {n} VBDs verbinden",
|
||||
"action:connect-n-vifs": "1 VIF verbinden | {n} VIFs verbinden",
|
||||
"action:connect-pool": "Mit Pool verbinden",
|
||||
@@ -111,6 +112,7 @@
|
||||
"action:turn-into-group": "In Gruppe umwandeln",
|
||||
"action:update": "Update",
|
||||
"action:use-query-builder": "Nutze den Query Builder",
|
||||
"action:visit-pool-dashboard": "Pool Dashboard anzeigen",
|
||||
"add-or": "+Oder",
|
||||
"admin-login": "Administrator Login",
|
||||
"admin-password": "Administrator Passwort",
|
||||
@@ -214,6 +216,7 @@
|
||||
"confirm-delete": "Du bist dabei {name} zu löschen",
|
||||
"connect": "Verbinden",
|
||||
"connected": "Verbunden",
|
||||
"connected-to-ip": "Mit {ip} verbunden",
|
||||
"connecting": "Verbindung wird hergestellt",
|
||||
"connection": "Verbindung",
|
||||
"connection-failed": "Verbindung fehlgeschlagen",
|
||||
@@ -298,6 +301,7 @@
|
||||
"exit-fullscreen": "Vollbild verlassen",
|
||||
"expiration-date": "Gültigkeitsende",
|
||||
"export-vms-manually-information": "Einige VM-Exporte konnten nicht automatisch gestartet werden, was wahrscheinlich an deinen Browsereinstellungen liegt. Um sie zu exportieren, solltest du jede einzeln anklicken. (Alternativ kannst du auch den Link kopieren.)",
|
||||
"failed": "Fehlgeschlagen",
|
||||
"failure": "Fehler",
|
||||
"fast-clone": "Schneller Klon",
|
||||
"fetching-fresh-data": "Rufe neue Daten ab",
|
||||
@@ -517,6 +521,7 @@
|
||||
"n-networks": "Einen Netzwerk | {n} Netzwerke",
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "Einen Snapshot | {n} Snapshots",
|
||||
"n-subtasks": "1 Unteraufgabe | {n} Unteraufgaben",
|
||||
"n-vbds": "1 VBD | {n} VBDs",
|
||||
"n-vdis": "1 VDI | {n} VDIs",
|
||||
"n-vifs": "1 VIF | {n} VIFs",
|
||||
@@ -645,7 +650,12 @@
|
||||
"please-wait": "Bitte warten",
|
||||
"policy": "Policy",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Ein Fehler beim Verbinden des Pools ist aufgetreten. Der Username oder das Passwort scheint nicht korrekt zu sein.",
|
||||
"pool-connection-error-duplicate": "Beim Verbinden mit dem Pool ist ein Fehler aufgetreten. Dieser Pool scheint bereits verbunden zu sein.",
|
||||
"pool-connection-error-host-not-found": "Beim Verbinden mit dem Pool ist ein Fehler aufgetreten. Die Adresse dieses Pools scheint nicht zu existieren. Bitte ändern Sie die IP und versuchen Sie es erneut.",
|
||||
"pool-connection-error-invalid-parameters": "Beim Verbinden mit dem Pool ist ein Fehler aufgetreten. Die angegebenen Parameter scheinen ungültig zu sein. Bitte überprüfen Sie die IP-Adresse und die Anmeldeinformationen und versuchen Sie es erneut.",
|
||||
"pool-connection-ip-info": "Geben Sie die Adresse des primären Hosts des Pools an, mit dem Sie eine Verbindung herstellen möchten.",
|
||||
"pool-connection-success": "Sie haben sich erfolgreich mit dem Pool verbunden. Sie können ihn jetzt in Ihrer Baumansicht finden und mit der Verwaltung Ihrer Hosts und VMs beginnen.",
|
||||
"pool-cpu-usage": "Pool Prozessorauslastung",
|
||||
"pool-management": "Pool Verwaltung",
|
||||
"pool-ram-usage": "Pool Arbeitsspeicherbelegung",
|
||||
@@ -827,6 +837,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Aufgaben",
|
||||
"tasks-page": "Aufgabenseite",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Schnellansicht der Aufgaben",
|
||||
"template": "Vorlage",
|
||||
"template-has-bios-strings": "Die Vorlage enthält bereits die BIOS-Strings",
|
||||
"theme": "Style",
|
||||
@@ -867,6 +881,7 @@
|
||||
"translation-tool": "Übersetzungstool",
|
||||
"trigger": "Trigger",
|
||||
"type": "Typ",
|
||||
"unable-to-connect-to": "Verbindung zu {ip} fehlgeschlagen",
|
||||
"unable-to-connect-to-the-pool": "Konnte keine Verbindung zum Pool herstellen",
|
||||
"unable-to-connect-to-xo-server": "Verbindung zum XO Server konnte nicht hergestellt werden.",
|
||||
"unable-to-create-new-bonded-network": "Es konnte keinen gebündelten Netzwerk erstellt werden",
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
"action:configure": "Configure",
|
||||
"action:confirm": "Confirm",
|
||||
"action:connect": "Connect",
|
||||
"action:connect-another-pool": "Connect another pool",
|
||||
"action:connect-n": "Connect {n}",
|
||||
"action:connect-n-srs": "Connect 1 SR | Connect {n} SRs",
|
||||
"action:connect-n-vbds": "Connect 1 VBD | Connect {n} VBDs",
|
||||
@@ -215,6 +216,7 @@
|
||||
"action:unload": "Unload",
|
||||
"action:update": "Update",
|
||||
"action:use-query-builder": "Use query builder",
|
||||
"action:visit-pool-dashboard": "Visit pool dashboard",
|
||||
"actions": "Actions",
|
||||
"active-mapping": "Active mapping",
|
||||
"adapter": "Adapter",
|
||||
@@ -246,7 +248,6 @@
|
||||
"all-vifs-follow-vm": "All VIFs follow the VM to its new host: within the pool, their networks don't change.",
|
||||
"all-vms": "All VMs",
|
||||
"allocated-space": "Allocated space",
|
||||
"allocated-space-required": "Allocated space is required.",
|
||||
"allow": "Allow",
|
||||
"allow-self-signed-ssl": "You may need to allow self-signed SSL certificates in your browser",
|
||||
"allow-unauthorized": "Allow unauthorized",
|
||||
@@ -265,6 +266,8 @@
|
||||
"ascending": "ascending",
|
||||
"at-least-one-enabled": "At least one enabled",
|
||||
"attach-vdi": "Attach existing VDI",
|
||||
"attach-vdi:error-message": "An error occurred while attaching the VDI. Please review your configuration settings (SR, VDI, mode), verify the VM state, and try again.",
|
||||
"attaching-vdi": "Attaching VDI",
|
||||
"auto-collapse-completed-tasks": "Auto-collapse completed tasks",
|
||||
"auto-generated": "Automatically generated",
|
||||
"auto-power": "Auto power",
|
||||
@@ -368,6 +371,7 @@
|
||||
"connect": "Connect",
|
||||
"connected": "Connected",
|
||||
"connected-srs": "Connected SRs",
|
||||
"connected-to-ip": "Connected to {ip}",
|
||||
"connecting": "Connecting",
|
||||
"connection": "Connection",
|
||||
"connection-failed": "Connection failed",
|
||||
@@ -402,13 +406,11 @@
|
||||
"created-by": "Created by",
|
||||
"created-on": "Created on",
|
||||
"creating-new-network": "Creating new network",
|
||||
"creating-new-traffic-rule": "Creating new traffic rule",
|
||||
"creating-new-vdi": "Creating new VDI",
|
||||
"creating-new-vif": "Creating new VIF",
|
||||
"creation-date": "Creation date",
|
||||
"cron-pattern": "Cron pattern",
|
||||
"cron:unit:day": "days",
|
||||
"cron:unit:hour": "hours",
|
||||
"cron:unit:minute": "minutes",
|
||||
"cron:unit:month": "months",
|
||||
"current": "Current",
|
||||
"current-attach": "Current attach",
|
||||
"custom-fields": "Custom fields",
|
||||
@@ -420,8 +422,6 @@
|
||||
"datastore": "Datastore",
|
||||
"datastores": "Datastores",
|
||||
"date": "Date",
|
||||
"day": "Day",
|
||||
"days-of-the-week": "Days of the week",
|
||||
"default-behavior": "Default behavior",
|
||||
"default-locking-mode": "Default locking mode",
|
||||
"default-network": "Default network",
|
||||
@@ -508,13 +508,13 @@
|
||||
"error-occurred": "An error has occurred",
|
||||
"errors": "Errors",
|
||||
"estimated-end": "Estimated end",
|
||||
"every": "Every",
|
||||
"excluded-vms-tags": "Excluded VMs tags",
|
||||
"existing-host": "Existing @.lower:host",
|
||||
"exit-fullscreen": "Exit fullscreen",
|
||||
"expiration-date": "Expiration date",
|
||||
"export-vms-manually-information": "Some VM exports were not able to start automatically, probably due to your browser settings. To export them, you should click on each one. (Alternatively, copy the link as well.)",
|
||||
"ext": "ext",
|
||||
"failed": "Failed",
|
||||
"failure": "Failure",
|
||||
"fast-clone": "Fast clone",
|
||||
"fast-clone-available": "Fast clone is available only for halted VMs.",
|
||||
@@ -596,8 +596,6 @@
|
||||
"host:status:unknown": "@:status:unknown",
|
||||
"hosts": "Hosts",
|
||||
"hosts-status": "Hosts status",
|
||||
"hour": "Hour",
|
||||
"hours": "Hours",
|
||||
"https": "HTTPS",
|
||||
"hyper-threading": "Hyper threading (SMT)",
|
||||
"id": "ID",
|
||||
@@ -943,7 +941,6 @@
|
||||
"migration-network": "Migration network",
|
||||
"minimum-dynamic-memory": "Minimum dynamic memory",
|
||||
"minimum-static-memory": "Minimum static memory",
|
||||
"minute": "Minute",
|
||||
"missing-patches": "Missing patches",
|
||||
"missing-translations?": "Missing or incorrect translations?",
|
||||
"mixed-value": "[Mixed]",
|
||||
@@ -992,7 +989,6 @@
|
||||
"modal:vm-shutdown-title": "You are about to shut down a VM | You are about to shut down {n} VMs",
|
||||
"modal:vms-delete-message": "Deleting {n} VMs at once risks data loss, service disruption, and system overload, with no rollback option.",
|
||||
"mode": "Mode",
|
||||
"month": "Month",
|
||||
"more-actions": "More actions",
|
||||
"more-information": "More information",
|
||||
"mtu": "MTU",
|
||||
@@ -1029,6 +1025,7 @@
|
||||
"n-ready": "1 ready | {n} ready",
|
||||
"n-snapshots": "1 snapshot | {n} snapshots",
|
||||
"n-srs": "1 SR | {n} SRs",
|
||||
"n-subtasks": "1 subtask | {n} subtasks",
|
||||
"n-traffic-rules": "1 traffic rule | {n} traffic rules",
|
||||
"n-vbds": "1 VBD | {n} VBDs",
|
||||
"n-vcpus": "1 vCPU | {n} vCPUs",
|
||||
@@ -1079,8 +1076,10 @@
|
||||
"new-network:preferred-center-info": "The host to try first to elect as center of the network",
|
||||
"new-network:select-interface": "Select an interface",
|
||||
"new-traffic-rule:add": "Add new traffic rule",
|
||||
"new-traffic-rule:error-message": "An error occurred while creating the traffic rule. Please review your configuration settings and try again.",
|
||||
"new-vdi:accepted-formats": "Accepted formats: {formats}",
|
||||
"new-vdi:add": "Add new VDI",
|
||||
"new-vdi:error-message": "An error occurred while creating the VDI. Please review your configuration settings (name, storage repository, allocated space) and try again.",
|
||||
"new-vif": "New VIF",
|
||||
"new-vif:add": "Add new VIF",
|
||||
"new-vif:error-message": "An error occurred while creating the VIF. Please review your configuration settings and try again.",
|
||||
@@ -1130,7 +1129,6 @@
|
||||
"news": "News",
|
||||
"news-name": "{name} news",
|
||||
"next-run": "Next run",
|
||||
"next-runs": "Next runs",
|
||||
"nfs": "NFS",
|
||||
"nic-type": "NIC type",
|
||||
"no-active-backup-jobs": "There are no active backup jobs on this site.",
|
||||
@@ -1277,7 +1275,12 @@
|
||||
"policy": "Policy",
|
||||
"pool": "Pool",
|
||||
"pool-add-host:ip-info": "Provide the address of the host you want to add to the pool.",
|
||||
"pool-connection-error-auth-failed": "An error occurred while connecting to the pool. The username or password appears to be incorrect.",
|
||||
"pool-connection-error-duplicate": "An error occurred while connecting to the pool. This pool seems to be already connected.",
|
||||
"pool-connection-error-host-not-found": "An error occurred while connecting to the pool. The address of this pool does not seem to exist. Please change the IP and try again.",
|
||||
"pool-connection-error-invalid-parameters": "An error occurred while connecting to the pool. The parameters provided do not seem valid. Please check the IP address and credentials, then try again.",
|
||||
"pool-connection-ip-info": "Provide the primary host’s address of the pool you want to connect to.",
|
||||
"pool-connection-success": "You have successfully connected to the pool. You can now find it in your treeview and start managing your hosts and VMs.",
|
||||
"pool-cpu-usage": "Pool CPU Usage",
|
||||
"pool-disconnect-info": "You will no longer be able to manage this pool from XO. You can reconnect it later.",
|
||||
"pool-forget-confirm-info": "This will permanently remove this host from XO. To reconnect, you will need to add it again.",
|
||||
@@ -1355,14 +1358,6 @@
|
||||
"query-builder:operator:not-start-with": "Doesn't start with",
|
||||
"query-builder:operator:starts-with": "Starts with",
|
||||
"query-builder:placeholder": "Build your query…",
|
||||
"query-preview": "Query preview",
|
||||
"query-preview:and": "@.lower:and",
|
||||
"query-preview:no-match": "No match at the moment.",
|
||||
"query-preview:or": "@.lower:or",
|
||||
"query-preview:or-where": "or where",
|
||||
"query-preview:unable-to-display-scope": "Unable to display scope.",
|
||||
"query-preview:unable-to-preview-scope": "Unable to preview scope.",
|
||||
"query-preview:where": "Where",
|
||||
"query-search-bar:label": "@:query-builder:label",
|
||||
"query-search-bar:placeholder": "@:query-builder:placeholder",
|
||||
"query-search-bar:use-query-builder": "@:query-builder",
|
||||
@@ -1404,7 +1399,6 @@
|
||||
"resources": "Resources",
|
||||
"resources-overview": "Resources overview",
|
||||
"rest-api": "REST API",
|
||||
"resulting-expression": "Resulting expression",
|
||||
"resume": "Resume",
|
||||
"retry": "Retry",
|
||||
"review": "Review",
|
||||
@@ -1423,8 +1417,6 @@
|
||||
"scan-pifs": "Scan PIFs",
|
||||
"schedule": "Schedule",
|
||||
"schedules": "Schedules",
|
||||
"scope": "Scope",
|
||||
"scope-preview": "Scope preview",
|
||||
"scoped-tag-hint": "Add “=” to create a scoped tag.",
|
||||
"sdn-controller-plugin-required": "Requires SDN Controller plugin",
|
||||
"search-or-create-tag": "Search or create a tag",
|
||||
@@ -1441,7 +1433,6 @@
|
||||
"selected-vms": "Selected VMs",
|
||||
"selected-vms-in-execution": "Some selected VMs are running",
|
||||
"selected-vms-n": "Selected VMs ({n})",
|
||||
"selector": "Selector",
|
||||
"self-signed-certificates": "Self-signed certificates",
|
||||
"send-us-feedback": "Send us feedback",
|
||||
"server": "Server",
|
||||
@@ -1571,19 +1562,12 @@
|
||||
"task-type": "Task type",
|
||||
"task:ended": "@:ended",
|
||||
"task:started": "@:started",
|
||||
"task:unread": "Unread",
|
||||
"tasks": "Tasks",
|
||||
"tasks-page": "Tasks page",
|
||||
"tasks:mark-all-as-read": "Mark all as read",
|
||||
"tasks:my-tasks": "My tasks",
|
||||
"tasks:my-tasks-n-pending": "@:{'tasks:my-tasks'}, 1 pending | @:{'tasks:my-tasks'}, {n} pending",
|
||||
"tasks:my-tasks-n-pending-with-failures": "@:{'tasks:my-tasks'}, 1 pending and some failures | @:{'tasks:my-tasks'}, {n} pending and some failures",
|
||||
"tasks:my-tasks-n-pending-with-warnings": "@:{'tasks:my-tasks'}, 1 pending and some warnings | @:{'tasks:my-tasks'}, {n} pending and some warnings",
|
||||
"tasks:my-tasks-n-unread": "@:{'tasks:my-tasks'}, 1 unread | @:{'tasks:my-tasks'}, {n} unread",
|
||||
"tasks:my-tasks-n-unread-with-failures": "@:{'tasks:my-tasks'}, 1 unread with failure | @:{'tasks:my-tasks'}, {n} unread including failures",
|
||||
"tasks:my-tasks-n-unread-with-warnings": "@:{'tasks:my-tasks'}, 1 unread with warning | @:{'tasks:my-tasks'}, {n} unread including warnings",
|
||||
"tasks:search-in-my-tasks": "Search in my tasks",
|
||||
"tasks:see-all": "See all tasks",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Tasks overview",
|
||||
"template": "Template",
|
||||
"template-has-bios-strings": "The template already contains the BIOS strings",
|
||||
"template-required": "Template is required.",
|
||||
@@ -1649,12 +1633,16 @@
|
||||
"trigger": "Trigger",
|
||||
"type": "Type",
|
||||
"type-x-to-confirm": "Type “{text}” to confirm",
|
||||
"unable-to-attach-vdi": "Unable to attach VDI",
|
||||
"unable-to-connect": "Unable to connect",
|
||||
"unable-to-connect-to": "Unable to connect to {ip}",
|
||||
"unable-to-connect-to-the-pool": "Unable to connect to the pool",
|
||||
"unable-to-connect-to-xo-server": "Unable to connect to XO server.",
|
||||
"unable-to-create-new-bonded-network": "Unable to create new bonded network",
|
||||
"unable-to-create-new-internal-network": "Unable to create new internal network",
|
||||
"unable-to-create-new-network": "Unable to create new network",
|
||||
"unable-to-create-new-traffic-rule": "Unable to create new traffic rule",
|
||||
"unable-to-create-new-vdi": "Unable to create new VDI",
|
||||
"unable-to-create-new-vif": "Unable to create new VIF",
|
||||
"unable-to-delete-network": "Unable to delete network",
|
||||
"unable-to-duplicate-vm": "Unable to duplicate VM",
|
||||
@@ -1772,7 +1760,6 @@
|
||||
"vdi-name": "VDI name",
|
||||
"vdi-not-attached-to-vm": "No VM attached",
|
||||
"vdi-on-different-sr-warning": "This SR is local to a host that doesn't hold the VM's other disks. The VM won't be able to start until all its disks are on the same host or on shared storage.",
|
||||
"vdi-required": "VDI is required.",
|
||||
"vdi-snapshot-source": "VDI source",
|
||||
"vdi-snpashot-time": "Snapshot date",
|
||||
"vdi-throughput": "VDI throughput",
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
"action:close": "Cerrar",
|
||||
"action:confirm": "Confirmar",
|
||||
"action:connect": "Conectar",
|
||||
"action:connect-another-pool": "Conectar a otro pool",
|
||||
"action:connect-n": "Conectar {n}",
|
||||
"action:connect-n-srs": "Conectar 1 SR | Conectar {n} SRs",
|
||||
"action:connect-n-vbds": "Conectar 1 VBD | Conectar {n} VBDs",
|
||||
@@ -153,6 +154,7 @@
|
||||
"action:turn-into-group": "Convertir en grupo",
|
||||
"action:update": "Actualizar",
|
||||
"action:use-query-builder": "Usar el generador de consultas",
|
||||
"action:visit-pool-dashboard": "Visitar el panel de estado del conjunto de servidores",
|
||||
"add-or": "+O",
|
||||
"admin-login": "Acceso del administrador",
|
||||
"admin-password": "Contraseña del administrador",
|
||||
@@ -189,6 +191,8 @@
|
||||
"aria:breadcrumb:label": "Ruta de navegación",
|
||||
"ascending": "ascendente",
|
||||
"attach-vdi": "Adjuntar VDI existente",
|
||||
"attach-vdi:error-message": "Ocurrió un error mientras se adjuntaba el VDI. Por favor, verise sus opciones de configuración (SR, VDI, modo), verifique el estado de la VM, y vuelva a intentarlo.",
|
||||
"attaching-vdi": "Adjuntando VDI",
|
||||
"auto-generated": "Generado automáticamente",
|
||||
"auto-power": "Auto arranque",
|
||||
"available": "Disponible",
|
||||
@@ -269,6 +273,7 @@
|
||||
"connect": "Conectar",
|
||||
"connected": "Conectado",
|
||||
"connected-srs": "SRs conectadas",
|
||||
"connected-to-ip": "Conectado a {ip}",
|
||||
"connecting": "Conexión en curso",
|
||||
"connection": "Conexión",
|
||||
"connection-failed": "Conexión fallida",
|
||||
@@ -299,6 +304,8 @@
|
||||
"created-by": "Creado por",
|
||||
"created-on": "Creado el",
|
||||
"creating-new-network": "Crear red nueva",
|
||||
"creating-new-traffic-rule": "Creando nueva regla de tráfico",
|
||||
"creating-new-vdi": "Creando nueva VDI",
|
||||
"creating-new-vif": "Creando nuevo VIF",
|
||||
"creation-date": "Fecha de creación",
|
||||
"cron-pattern": "Patrón de Cron",
|
||||
@@ -370,6 +377,7 @@
|
||||
"exit-fullscreen": "Salir de pantalla completa",
|
||||
"expiration-date": "Fecha de expiración",
|
||||
"export-vms-manually-information": "Algunas exportaciones de VM no pudieron iniciarse automáticamente, posiblemente debido a la configuración de su navegador. Para exportarlos, tendrá que hacer clic en cada uno de ellos. (Alternativamente, puede copiar el enlace.)",
|
||||
"failed": "Fallido",
|
||||
"failure": "Fallo",
|
||||
"fast-clone": "Clonado rápido",
|
||||
"fast-clone-available": "El clonado rápido solo está disponible para las VM apagadas.",
|
||||
@@ -585,6 +593,7 @@
|
||||
"n-hosts-awaiting-patch": "{n} servidor falta este parche | {n} servidores faltan este parche",
|
||||
"n-missing": "Falta {n}",
|
||||
"n-percent": "{n}%",
|
||||
"n-subtasks": "1 subtarea | {n} subtareas",
|
||||
"n-vms": "1 VM | {n} VMs",
|
||||
"name": "Nombre",
|
||||
"nested-virtualization": "Virtualización anidada",
|
||||
@@ -701,7 +710,12 @@
|
||||
"please-confirm-to-continue": "Esta acción no se puede deshacer. ¿Seguro que desea continuar?",
|
||||
"please-wait": "Por favor, espera",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Se produjo un error al intentar conectarse al pool. Es posible que el nombre de usuario o el clave de acceso sean incorrectos.",
|
||||
"pool-connection-error-duplicate": "Error al conectar con el pool. Este pool parece estar ya conectado.",
|
||||
"pool-connection-error-host-not-found": "Ocurrió un error al conectarse al pool. La dirección de este pool parece no existir. Por favor, cambia la IP e intenta de nuevo.",
|
||||
"pool-connection-error-invalid-parameters": "Ocurrió un error al conectarse al pool. Los parámetros proporcionados parecen no ser válidos. Por favor, verifica la dirección IP y las credenciales, y luego intenta de nuevo.",
|
||||
"pool-connection-ip-info": "Ingresa la dirección del equipo principal del pool al que quieres conectarte.",
|
||||
"pool-connection-success": "Conexión al pool exitosa. Ya puedes verlo en la vista de árbol y empezar a gestionar tus equipos y VMs.",
|
||||
"pool-cpu-usage": "Uso de CPU del pool",
|
||||
"pool-management": "Gestión del pool",
|
||||
"pool-ram-usage": "Uso de RAM del pool",
|
||||
@@ -877,6 +891,10 @@
|
||||
"task:ended": "Finalizada",
|
||||
"task:started": "Iniciada",
|
||||
"tasks": "Tareas",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "Finalizadas",
|
||||
"tasks:failed": "Fallidas",
|
||||
"tasks:overview": "Vista rápida de tareas",
|
||||
"template": "Plantilla",
|
||||
"template-has-bios-strings": "La plantilla ya contiene las cadenas de la BIOS",
|
||||
"theme": "Tema",
|
||||
@@ -913,6 +931,7 @@
|
||||
"total-used:": "Total usado:",
|
||||
"translation-tool": "Herramienta de traducción",
|
||||
"trigger": "Disparador",
|
||||
"unable-to-connect-to": "Imposible conectarse al {ip}",
|
||||
"unable-to-connect-to-the-pool": "No se puede conectar al pool",
|
||||
"unable-to-connect-to-xo-server": "No fue posible conectarse al servidor XO.",
|
||||
"unable-to-create-new-network": "Imposible crear nueva red",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "بستن",
|
||||
"action:confirm": "تأیید",
|
||||
"action:connect": "اتصال",
|
||||
"action:connect-another-pool": "اتصال استخر دیگر",
|
||||
"action:connect-n": "اتصال {n}",
|
||||
"action:connect-n-srs": "اتصال 1 SR | اتصال {n} SR",
|
||||
"action:connect-n-vbds": "اتصال 1 VBD | اتصال {n} VBD",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "تبدیل به گروه",
|
||||
"action:update": "بهروزرسانی",
|
||||
"action:use-query-builder": "استفاده از سازنده پرسوجو",
|
||||
"action:visit-pool-dashboard": "مشاهده داشبورد استخر",
|
||||
"add-or": "+یا",
|
||||
"admin-login": "ورود ادمین",
|
||||
"admin-password": "کلمه عبور ادمین",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "مسیر راهنما",
|
||||
"ascending": "صعودی",
|
||||
"attach-vdi": "متصل کردن VDI موجود",
|
||||
"attach-vdi:error-message": "هنگام متصل کردن VDI خطایی رخ داد. لطفاً تنظیمات پیکربندی خود (SR، VDI، حالت) را بررسی کنید، وضعیت ماشین مجازی را تأیید کنید و دوباره تلاش کنید.",
|
||||
"attaching-vdi": "در حال متصل کردن VDI",
|
||||
"auto-generated": "ساخته شده به صورت خودکار",
|
||||
"auto-power": "راه اندازی خودکار",
|
||||
"available": "موجود",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "اتصال",
|
||||
"connected": "متصل شد",
|
||||
"connected-srs": "SRهای متصل",
|
||||
"connected-to-ip": "متصل به {ip}",
|
||||
"connecting": "در حال اتصال",
|
||||
"connection": "اتصال",
|
||||
"connection-failed": "اتصال ناموفق بود",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "ایجاد شده توسط",
|
||||
"created-on": "ایجاد شده در",
|
||||
"creating-new-network": "در حال ایجاد شبکه جدید",
|
||||
"creating-new-traffic-rule": "در حال ایجاد قانون ترافیک جدید",
|
||||
"creating-new-vdi": "در حال ایجاد VDI جدید",
|
||||
"creating-new-vif": "در حال ایجاد VIF جدید",
|
||||
"creation-date": "تاریخ ایجاد",
|
||||
"cron-pattern": "الگوی Cron",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "خروج از حالت تمام صفحه",
|
||||
"expiration-date": "تاریخ انقضا",
|
||||
"export-vms-manually-information": "برخی از ماشین های مجازی صادر شده قادر به شروع خودکار نیستند، احتمالاً به دلیل تنظیمات مرورگر شماست. برای صادر کردن آنها باید روی هر کدام کلیک کنید. (در عوض، لینک را کپی کنید.)",
|
||||
"failed": "ناموفق",
|
||||
"failure": "شکست",
|
||||
"fast-clone": "همانند سازی سریع",
|
||||
"fast-clone-available": "همانند سازی سریع فقط برای ماشینهای مجازی متوقف شده در دسترس است.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 اسنپ شات | {n} اسنپ شات",
|
||||
"n-srs": "1 SR | {n} SR",
|
||||
"n-subtasks": "1 کار فرعی | {n} کارهای فرعی",
|
||||
"n-traffic-rules": "1 قانون ترافیک | {n} قانون ترافیک",
|
||||
"n-vbds": "1 VBD | {n} VBD",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "هنگام ایجاد شبکه خطایی رخ داد. لطفاً تنظیمات پیکربندی خود (نام، نوع، VLAN) را بررسی کنید، در دسترس بودن میزبان را تأیید کنید و دوباره تلاش کنید.",
|
||||
"new-network:select-interface": "یک رابط انتخاب کنید",
|
||||
"new-traffic-rule:add": "اضافه کردن قانون ترافیک جدید",
|
||||
"new-traffic-rule:error-message": "هنگام ایجاد قانون ترافیک خطایی رخ داد. لطفاً تنظیمات پیکربندی خود را بررسی کنید و دوباره تلاش کنید.",
|
||||
"new-vdi:accepted-formats": "فرمتهای پذیرفته شده: {formats}",
|
||||
"new-vdi:add": "اضافه کردن VDI جدید",
|
||||
"new-vdi:error-message": "هنگام ایجاد VDI خطایی رخ داد. لطفاً تنظیمات پیکربندی خود (نام، مخزن ذخیره سازی، فضای اختصاص داده شده) را بررسی کنید و دوباره تلاش کنید.",
|
||||
"new-vif": "VIF جدید",
|
||||
"new-vif:add": "اضافه کردن VIF جدید",
|
||||
"new-vif:error-message": "هنگام ایجاد VIF خطایی رخ داد. لطفاً تنظیمات پیکربندی خود را بررسی کنید و دوباره تلاش کنید.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "لطفاً صبر کنید",
|
||||
"policy": "سیاست",
|
||||
"pool": "استخرها",
|
||||
"pool-connection-error-auth-failed": "هنگام اتصال به استخر خطایی رخ داد. به نظر میرسد نام کاربری یا کلمه عبور نادرست است.",
|
||||
"pool-connection-error-duplicate": "هنگام اتصال به استخر خطایی رخ داد. به نظر میرسد این استخر از قبل متصل است.",
|
||||
"pool-connection-error-host-not-found": "هنگام اتصال به استخر خطایی رخ داد. به نظر میرسد آدرس این استخر وجود ندارد. لطفاً IP را تغییر دهید و دوباره تلاش کنید.",
|
||||
"pool-connection-error-invalid-parameters": "هنگام اتصال به استخر خطایی رخ داد. به نظر میرسد پارامترهای ارائه شده معتبر نیستند. لطفاً آدرس IP و اطلاعات احراز هویت را بررسی کنید، سپس دوباره تلاش کنید.",
|
||||
"pool-connection-ip-info": "آدرس میزبان اصلی استخری که میخواهید به آن متصل شوید را وارد کنید.",
|
||||
"pool-connection-success": "شما با موفقیت به استخر متصل شدید. اکنون میتوانید آن را در نمای درختی خود پیدا کرده و مدیریت میزبانها و ماشینهای مجازی خود را آغاز کنید.",
|
||||
"pool-cpu-usage": "استفاده از Pool CPU",
|
||||
"pool-disconnect-info": "دیگر نمیتوانید این استخر را از XO مدیریت کنید. میتوانید بعداً دوباره آن را متصل کنید.",
|
||||
"pool-forget-confirm-info": "این کار این میزبان را برای همیشه از XO حذف میکند. برای اتصال مجدد، باید دوباره آن را اضافه کنید.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "کارها",
|
||||
"tasks-page": "صفحه وظایف",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "نمای سریع کارها",
|
||||
"template": "قالب",
|
||||
"template-has-bios-strings": "این قالب درحال حاضر شامل اطلاعات بایوس هست",
|
||||
"theme": "زمینه",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "نمای درختی",
|
||||
"trigger": "محرک",
|
||||
"type": "نوع",
|
||||
"unable-to-attach-vdi": "متصل کردن VDI ممکن نیست",
|
||||
"unable-to-connect": "اتصال ممکن نیست",
|
||||
"unable-to-connect-to": "اتصال به {ip} ممکن نیست",
|
||||
"unable-to-connect-to-the-pool": "اتصال به استخر ممکن نیست",
|
||||
"unable-to-connect-to-xo-server": "اتصال به سرور XO ممکن نیست.",
|
||||
"unable-to-create-new-bonded-network": "ایجاد شبکه bond شده جدید ممکن نیست",
|
||||
"unable-to-create-new-internal-network": "ایجاد شبکه داخلی جدید ممکن نیست",
|
||||
"unable-to-create-new-network": "ایجاد شبکه جدید ممکن نیست",
|
||||
"unable-to-create-new-traffic-rule": "ایجاد قانون ترافیک جدید ممکن نیست",
|
||||
"unable-to-create-new-vdi": "ایجاد VDI جدید ممکن نیست",
|
||||
"unable-to-create-new-vif": "ایجاد VIF جدید ممکن نیست",
|
||||
"unable-to-delete-network": "حذف شبکه ممکن نیست",
|
||||
"unable-to-duplicate-vm": "ایجاد نسخه مشابه ماشین مجازی ممکن نیست",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "Sulje",
|
||||
"action:confirm": "Vahvista",
|
||||
"action:connect": "Yhdistä",
|
||||
"action:connect-another-pool": "Yhdistä toinen pooli",
|
||||
"action:connect-n": "Yhdistä {n}",
|
||||
"action:connect-n-srs": "Yhdistä 1 SR | Yhdistä {n} SR:ää",
|
||||
"action:connect-n-vbds": "Yhdistä 1 VBD | Yhdistä {n} VBD:tä",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "Muuta ryhmäksi",
|
||||
"action:update": "Päivitä",
|
||||
"action:use-query-builder": "Käytä kyselyn muodostinta",
|
||||
"action:visit-pool-dashboard": "Siirry poolin kojelautaan",
|
||||
"add-or": "+TAI",
|
||||
"admin-login": "Ylläpitäjän käyttäjätunnus",
|
||||
"admin-password": "Ylläpitäjän salasana",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "Murupolku",
|
||||
"ascending": "nouseva",
|
||||
"attach-vdi": "Liitä olemassa oleva VDI",
|
||||
"attach-vdi:error-message": "VDI:n liittämisessä tapahtui virhe. Tarkista määritykset (SR, VDI, tila), varmista VM:n tila ja yritä uudelleen.",
|
||||
"attaching-vdi": "Liitetään VDI",
|
||||
"auto-generated": "Automaattisesti luotu",
|
||||
"auto-power": "Automaattinen käynnistys",
|
||||
"available": "Saatavilla",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "Yhdistä",
|
||||
"connected": "Yhdistetty",
|
||||
"connected-srs": "Yhdistetyt SR:t",
|
||||
"connected-to-ip": "Yhdistetty osoitteeseen {ip}",
|
||||
"connecting": "Yhdistetään",
|
||||
"connection": "Yhteys",
|
||||
"connection-failed": "Yhteys epäonnistui",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "Luonut",
|
||||
"created-on": "Luotu",
|
||||
"creating-new-network": "Luodaan uutta verkkoa",
|
||||
"creating-new-traffic-rule": "Luodaan uutta liikennesääntöä",
|
||||
"creating-new-vdi": "Luodaan uutta VDI:tä",
|
||||
"creating-new-vif": "Luodaan uutta VIF:iä",
|
||||
"creation-date": "Luontipäivä",
|
||||
"cron-pattern": "Cron-lauseke",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "Poistu kokonäyttötilasta",
|
||||
"expiration-date": "Voimassaolopäivä",
|
||||
"export-vms-manually-information": "Joidenkin VM:ien vientiä ei voitu käynnistää automaattisesti, luultavasti selaimesi asetusten vuoksi. Vie ne napsauttamalla kutakin. (Vaihtoehtoisesti kopioi myös linkki.)",
|
||||
"failed": "Epäonnistui",
|
||||
"failure": "Epäonnistuminen",
|
||||
"fast-clone": "Pikakloonaus",
|
||||
"fast-clone-available": "Pikakloonaus on käytettävissä vain pysäytetyille VM:ille.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 tilannevedos | {n} tilannevedosta",
|
||||
"n-srs": "1 SR | {n} SR:ää",
|
||||
"n-subtasks": "1 alitehtävä | {n} alitehtävää",
|
||||
"n-traffic-rules": "1 liikennesääntö | {n} liikennesääntöä",
|
||||
"n-vbds": "1 VBD | {n} VBD:tä",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU:ta",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "Verkon luomisessa tapahtui virhe. Tarkista määritykset (nimi, tyyppi, VLAN), varmista isännän saatavuus ja yritä uudelleen.",
|
||||
"new-network:select-interface": "Valitse liitäntä",
|
||||
"new-traffic-rule:add": "Lisää uusi liikennesääntö",
|
||||
"new-traffic-rule:error-message": "Liikennesäännön luomisessa tapahtui virhe. Tarkista määritykset ja yritä uudelleen.",
|
||||
"new-vdi:accepted-formats": "Hyväksytyt muodot: {formats}",
|
||||
"new-vdi:add": "Lisää uusi VDI",
|
||||
"new-vdi:error-message": "VDI:n luomisessa tapahtui virhe. Tarkista määritykset (nimi, tallennusvarasto, varattu tila) ja yritä uudelleen.",
|
||||
"new-vif": "Uusi VIF",
|
||||
"new-vif:add": "Lisää uusi VIF",
|
||||
"new-vif:error-message": "VIF:n luomisessa tapahtui virhe. Tarkista määritykset ja yritä uudelleen.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "Odota",
|
||||
"policy": "Käytäntö",
|
||||
"pool": "Pooli",
|
||||
"pool-connection-error-auth-failed": "Pooliin yhdistämisessä tapahtui virhe. Käyttäjätunnus tai salasana näyttää olevan virheellinen.",
|
||||
"pool-connection-error-duplicate": "Pooliin yhdistämisessä tapahtui virhe. Tämä pooli näyttää olevan jo yhdistetty.",
|
||||
"pool-connection-error-host-not-found": "Pooliin yhdistämisessä tapahtui virhe. Tämän poolin osoitetta ei näytä olevan olemassa. Vaihda IP ja yritä uudelleen.",
|
||||
"pool-connection-error-invalid-parameters": "Pooliin yhdistämisessä tapahtui virhe. Annetut parametrit eivät näytä kelvollisilta. Tarkista IP-osoite ja tunnistetiedot ja yritä sitten uudelleen.",
|
||||
"pool-connection-ip-info": "Anna sen poolin ensisijaisen isännän osoite, johon haluat yhdistää.",
|
||||
"pool-connection-success": "Olet yhdistänyt pooliin onnistuneesti. Löydät sen nyt puunäkymästä ja voit aloittaa isäntien ja VM:ien hallinnan.",
|
||||
"pool-cpu-usage": "Poolin CPU:n käyttö",
|
||||
"pool-disconnect-info": "Et voi enää hallita tätä poolia XO:sta. Voit yhdistää sen myöhemmin uudelleen.",
|
||||
"pool-forget-confirm-info": "Tämä poistaa tämän isännän pysyvästi XO:sta. Yhdistääksesi uudelleen sinun on lisättävä se uudelleen.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Tehtävät",
|
||||
"tasks-page": "Tehtävät-sivu",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Tehtävien yleiskatsaus",
|
||||
"template": "Malli",
|
||||
"template-has-bios-strings": "Malli sisältää jo BIOS-merkkijonot",
|
||||
"theme": "Teema",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "Puunäkymä",
|
||||
"trigger": "Laukaisin",
|
||||
"type": "Tyyppi",
|
||||
"unable-to-attach-vdi": "VDI:tä ei voi liittää",
|
||||
"unable-to-connect": "Yhteyttä ei voi muodostaa",
|
||||
"unable-to-connect-to": "Yhteyttä kohteeseen {ip} ei voi muodostaa",
|
||||
"unable-to-connect-to-the-pool": "Yhteyttä pooliin ei voi muodostaa",
|
||||
"unable-to-connect-to-xo-server": "Yhteyttä XO-palvelimeen ei voi muodostaa.",
|
||||
"unable-to-create-new-bonded-network": "Uutta bond-verkkoa ei voi luoda",
|
||||
"unable-to-create-new-internal-network": "Uutta sisäistä verkkoa ei voi luoda",
|
||||
"unable-to-create-new-network": "Uutta verkkoa ei voi luoda",
|
||||
"unable-to-create-new-traffic-rule": "Uutta liikennesääntöä ei voi luoda",
|
||||
"unable-to-create-new-vdi": "Uutta VDI:tä ei voi luoda",
|
||||
"unable-to-create-new-vif": "Uutta VIF:iä ei voi luoda",
|
||||
"unable-to-delete-network": "Verkkoa ei voi poistaa",
|
||||
"unable-to-duplicate-vm": "VM:ää ei voi monistaa",
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
"action:configure": "Configurer",
|
||||
"action:confirm": "Confirmer",
|
||||
"action:connect": "Connecter",
|
||||
"action:connect-another-pool": "Connecter un autre pool",
|
||||
"action:connect-n": "Connecter {n}",
|
||||
"action:connect-n-srs": "Connecter 1 SR | Connecter {n} SRs",
|
||||
"action:connect-n-vbds": "Connecter 1 VBD | Connecter {n} VBDs",
|
||||
@@ -215,6 +216,7 @@
|
||||
"action:unload": "Décharger",
|
||||
"action:update": "Mettre à jour",
|
||||
"action:use-query-builder": "Constructeur de requête",
|
||||
"action:visit-pool-dashboard": "Visiter le tableau de bord du pool",
|
||||
"actions": "Actions",
|
||||
"active-mapping": "Correspondance active",
|
||||
"adapter": "Carte",
|
||||
@@ -246,7 +248,6 @@
|
||||
"all-vifs-follow-vm": "Toutes les VIFs suivent la VM vers son nouvel hôte : au sein du pool, leurs réseaux ne changent pas.",
|
||||
"all-vms": "Toutes les VMs",
|
||||
"allocated-space": "Espace alloué",
|
||||
"allocated-space-required": "L'espace alloué est requis.",
|
||||
"allow": "Autoriser",
|
||||
"allow-self-signed-ssl": "Vous devrez peut-être autoriser les certificats SSL auto-signés depuis votre navigateur",
|
||||
"allow-unauthorized": "Autoriser les connexions non vérifiées",
|
||||
@@ -265,6 +266,8 @@
|
||||
"ascending": "ascendant",
|
||||
"at-least-one-enabled": "Au moins un activé",
|
||||
"attach-vdi": "Attacher un VDI existant",
|
||||
"attach-vdi:error-message": "Une erreur est survenue lors de l'attachement du VDI. Veuillez vérifier votre configuration (SR, VDI, mode), l'état de la VM, puis réessayer.",
|
||||
"attaching-vdi": "Attachement du VDI en cours",
|
||||
"auto-collapse-completed-tasks": "Replier automatiquement les tâches terminées",
|
||||
"auto-generated": "Généré automatiquement",
|
||||
"auto-power": "Démarrage automatique",
|
||||
@@ -368,6 +371,7 @@
|
||||
"connect": "Se connecter",
|
||||
"connected": "Connecté",
|
||||
"connected-srs": "SRs connectés",
|
||||
"connected-to-ip": "Connecté à {ip}",
|
||||
"connecting": "Connexion en cours",
|
||||
"connection": "Connexion",
|
||||
"connection-failed": "Échec de la connexion",
|
||||
@@ -402,13 +406,11 @@
|
||||
"created-by": "Créé par",
|
||||
"created-on": "Créé le",
|
||||
"creating-new-network": "Création du nouveau réseau",
|
||||
"creating-new-traffic-rule": "Création de la nouvelle règle de trafic",
|
||||
"creating-new-vdi": "Création du nouveau VDI",
|
||||
"creating-new-vif": "Création du nouveau VIF",
|
||||
"creation-date": "Date de création",
|
||||
"cron-pattern": "Pattern cron",
|
||||
"cron:unit:day": "jours",
|
||||
"cron:unit:hour": "heures",
|
||||
"cron:unit:minute": "minutes",
|
||||
"cron:unit:month": "mois",
|
||||
"current": "Actuel",
|
||||
"current-attach": "Attachement actuel",
|
||||
"custom-fields": "Champs personnalisés",
|
||||
@@ -420,8 +422,6 @@
|
||||
"datastore": "Banque de données",
|
||||
"datastores": "Banques de données",
|
||||
"date": "Date",
|
||||
"day": "Jour",
|
||||
"days-of-the-week": "Jours de la semaine",
|
||||
"default-behavior": "Comportement par défaut",
|
||||
"default-locking-mode": "Mode de verrouillage par défaut",
|
||||
"default-network": "Réseau par défaut",
|
||||
@@ -508,13 +508,13 @@
|
||||
"error-occurred": "Une erreur est survenue",
|
||||
"errors": "Erreurs",
|
||||
"estimated-end": "Fin estimée",
|
||||
"every": "Tous les",
|
||||
"excluded-vms-tags": "Tags des VMs exclus",
|
||||
"existing-host": "@:host existant",
|
||||
"exit-fullscreen": "Quitter le plein écran",
|
||||
"expiration-date": "Date d'expiration",
|
||||
"export-vms-manually-information": "Certaines exportations de VMs n'ont pas pu démarrer automatiquement, peut-être en raison des paramètres du navigateur. Pour les exporter, vous devrez cliquer sur chacune d'entre elles. (Ou copier le lien.)",
|
||||
"ext": "ext",
|
||||
"failed": "Échoué",
|
||||
"failure": "Échec",
|
||||
"fast-clone": "Clonage rapide",
|
||||
"fast-clone-available": "Clonage rapide disponible uniquement pour les VMs arrêtées.",
|
||||
@@ -596,8 +596,6 @@
|
||||
"host:status:unknown": "@:status:unknown",
|
||||
"hosts": "Hôtes",
|
||||
"hosts-status": "Statut des hôtes",
|
||||
"hour": "Heure",
|
||||
"hours": "Heures",
|
||||
"https": "HTTPS",
|
||||
"hyper-threading": "Hyper-threading (SMT)",
|
||||
"id": "ID",
|
||||
@@ -943,7 +941,6 @@
|
||||
"migration-network": "Réseau de migration",
|
||||
"minimum-dynamic-memory": "Mémoire dynamique minimale",
|
||||
"minimum-static-memory": "Mémoire statique minimale",
|
||||
"minute": "Minute",
|
||||
"missing-patches": "Patches manquants",
|
||||
"missing-translations?": "Traductions manquantes ou incorrectes ?",
|
||||
"mixed-value": "[Mixte]",
|
||||
@@ -992,7 +989,6 @@
|
||||
"modal:vm-shutdown-title": "Vous êtes sur le point d'arrêter une VM | Vous êtes sur le point d'arrêter {n} VMs",
|
||||
"modal:vms-delete-message": "Supprimer {n} VMs en une seule fois risque d'entraîner une perte de données, une interruption de service et une surcharge du système, sans retour en arrière possible.",
|
||||
"mode": "Mode",
|
||||
"month": "Mois",
|
||||
"more-actions": "Plus d'actions",
|
||||
"more-information": "Plus d'informations",
|
||||
"mtu": "MTU",
|
||||
@@ -1029,6 +1025,7 @@
|
||||
"n-ready": "0 prête | 1 prête | {n} prêtes",
|
||||
"n-snapshots": "0 instantané | 1 instantané | {n} instantanés",
|
||||
"n-srs": "0 SR | 1 SR | {n} SRs",
|
||||
"n-subtasks": "0 sous-tâche | 1 sous-tâche | {n} sous-tâches",
|
||||
"n-traffic-rules": "1 règle de trafic | {n} règles de trafic",
|
||||
"n-vbds": "0 VBD | 1 VBD | {n} VBDs",
|
||||
"n-vcpus": "0 vCPU | 1 vCPU | {n} vCPUs",
|
||||
@@ -1079,8 +1076,10 @@
|
||||
"new-network:preferred-center-info": "L’hôte à essayer en premier pour être élu centre du réseau",
|
||||
"new-network:select-interface": "Sélectionner une interface",
|
||||
"new-traffic-rule:add": "Ajouter une nouvelle règle de trafic",
|
||||
"new-traffic-rule:error-message": "Une erreur s'est produite lors de la création de la règle de trafic. Veuillez vérifier vos paramètres de configuration et réessayer.",
|
||||
"new-vdi:accepted-formats": "Formats acceptés : {formats}",
|
||||
"new-vdi:add": "Ajouter un nouveau VDI",
|
||||
"new-vdi:error-message": "Une erreur s'est produite lors de la création du VDI. Veuillez vérifier vos paramètres (nom, dépôt de stockage, espace alloué) et réessayer.",
|
||||
"new-vif": "Nouveau VIF",
|
||||
"new-vif:add": "Ajouter un nouveau VIF",
|
||||
"new-vif:error-message": "Une erreur s'est produite lors de la création du VIF. Veuillez vérifier vos paramètres et réessayer.",
|
||||
@@ -1130,7 +1129,6 @@
|
||||
"news": "Actualités",
|
||||
"news-name": "Actualités {name}",
|
||||
"next-run": "Prochain run",
|
||||
"next-runs": "Prochaines exécutions",
|
||||
"nfs": "NFS",
|
||||
"nic-type": "Type de carte réseau (NIC)",
|
||||
"no-active-backup-jobs": "Il n'y a aucune tâche de sauvegarde active sur ce site.",
|
||||
@@ -1277,7 +1275,12 @@
|
||||
"policy": "Politique",
|
||||
"pool": "Pool",
|
||||
"pool-add-host:ip-info": "Entrez l’adresse de l’hôte que vous souhaitez ajouter au pool.",
|
||||
"pool-connection-error-auth-failed": "Une erreur s'est produite lors de la connexion au pool. Le nom d'utilisateur ou le mot de passe semble incorrect.",
|
||||
"pool-connection-error-duplicate": "Une erreur s'est produite lors de la connexion au pool, il semble déjà être connecté.",
|
||||
"pool-connection-error-host-not-found": "Une erreur s'est produite lors de la connexion au pool. L'adresse de ce pool semble inexistante. Modifiez l'adresse IP et réessayez.",
|
||||
"pool-connection-error-invalid-parameters": "Une erreur s'est produite lors de la connexion au pool. Les paramètres fournis semblent incorrects. Veuillez les vérifier et réessayer.",
|
||||
"pool-connection-ip-info": "Entrez l’adresse de l’hôte primaire du pool auquel vous souhaitez vous connecter.",
|
||||
"pool-connection-success": "Vous êtes connecté au pool. Vous pouvez désormais le retrouver dans votre arborescence et commencer à gérer vos hôtes et vos machines virtuelles.",
|
||||
"pool-cpu-usage": "Utilisation CPU du Pool",
|
||||
"pool-disconnect-info": "Vous ne pourrez plus gérer ce pool depuis XO. Vous pourrez le reconnecter ultérieurement.",
|
||||
"pool-forget-confirm-info": "Cela supprimera définitivement cet hôte de XO. Pour vous reconnecter, vous devrez l'ajouter à nouveau.",
|
||||
@@ -1355,14 +1358,6 @@
|
||||
"query-builder:operator:not-start-with": "Ne commence pas par",
|
||||
"query-builder:operator:starts-with": "Commence par",
|
||||
"query-builder:placeholder": "Construisez votre requête…",
|
||||
"query-preview": "Aperçu de la requête",
|
||||
"query-preview:and": "@.lower:and",
|
||||
"query-preview:no-match": "Aucune correspondance pour le moment.",
|
||||
"query-preview:or": "@.lower:or",
|
||||
"query-preview:or-where": "ou où",
|
||||
"query-preview:unable-to-display-scope": "Impossible d’afficher le périmètre.",
|
||||
"query-preview:unable-to-preview-scope": "Impossible de prévisualiser le périmètre.",
|
||||
"query-preview:where": "Où",
|
||||
"query-search-bar:label": "@:query-builder:label",
|
||||
"query-search-bar:placeholder": "@:query-builder:placeholder",
|
||||
"query-search-bar:use-query-builder": "@:query-builder",
|
||||
@@ -1404,7 +1399,6 @@
|
||||
"resources": "Ressources",
|
||||
"resources-overview": "Vue d'ensemble des ressources",
|
||||
"rest-api": "API REST",
|
||||
"resulting-expression": "Expression résultante",
|
||||
"resume": "Reprise",
|
||||
"retry": "Réessayer",
|
||||
"review": "Revue",
|
||||
@@ -1423,8 +1417,6 @@
|
||||
"scan-pifs": "Scan PIFs",
|
||||
"schedule": "Planification",
|
||||
"schedules": "Planifications",
|
||||
"scope": "Périmètre",
|
||||
"scope-preview": "Aperçu du périmètre",
|
||||
"scoped-tag-hint": "Ajoutez « = » pour créer un tag typé.",
|
||||
"sdn-controller-plugin-required": "Nécessite le plugin SDN Controller",
|
||||
"search-or-create-tag": "Rechercher ou créer un tag",
|
||||
@@ -1441,7 +1433,6 @@
|
||||
"selected-vms": "VMs sélectionnées",
|
||||
"selected-vms-in-execution": "Certaines VMs sélectionnées sont en cours d'exécution",
|
||||
"selected-vms-n": "VMs sélectionnées ({n})",
|
||||
"selector": "Sélecteur",
|
||||
"self-signed-certificates": "Certificats auto-signés",
|
||||
"send-us-feedback": "Envoyez-nous vos commentaires",
|
||||
"server": "Serveur",
|
||||
@@ -1571,19 +1562,12 @@
|
||||
"task-type": "Type de tâche",
|
||||
"task:ended": "Terminée",
|
||||
"task:started": "Démarrée",
|
||||
"task:unread": "Non lue",
|
||||
"tasks": "Tâches",
|
||||
"tasks-page": "page des Tâches",
|
||||
"tasks:mark-all-as-read": "Tout marquer comme lu",
|
||||
"tasks:my-tasks": "Mes tâches",
|
||||
"tasks:my-tasks-n-pending": "@:{'tasks:my-tasks'}, 1 en cours | @:{'tasks:my-tasks'}, {n} en cours",
|
||||
"tasks:my-tasks-n-pending-with-failures": "@:{'tasks:my-tasks'}, 1 en cours et un ou plusieurs échecs | @:{'tasks:my-tasks'}, {n} en cours et un ou plusieurs échecs",
|
||||
"tasks:my-tasks-n-pending-with-warnings": "@:{'tasks:my-tasks'}, 1 en cours et un ou plusieurs avertissements | @:{'tasks:my-tasks'}, {n} en cours et un ou plusieurs avertissements",
|
||||
"tasks:my-tasks-n-unread": "@:{'tasks:my-tasks'}, 1 non lue | @:{'tasks:my-tasks'}, {n} non lues",
|
||||
"tasks:my-tasks-n-unread-with-failures": "@:{'tasks:my-tasks'}, 1 non lue en échec | @:{'tasks:my-tasks'}, {n} non lues dont un ou plusieurs échecs",
|
||||
"tasks:my-tasks-n-unread-with-warnings": "@:{'tasks:my-tasks'}, 1 non lue avec avertissement | @:{'tasks:my-tasks'}, {n} non lues dont un ou plusieurs avertissements",
|
||||
"tasks:search-in-my-tasks": "Rechercher dans mes tâches",
|
||||
"tasks:see-all": "Voir toutes les tâches",
|
||||
"tasks:all": "Toutes",
|
||||
"tasks:done": "Terminées",
|
||||
"tasks:failed": "Échouées",
|
||||
"tasks:overview": "Vue d'ensemble des tâches",
|
||||
"template": "Modèle",
|
||||
"template-has-bios-strings": "Le modèle contient déjà les BIOS strings",
|
||||
"template-required": "Le modèle est requis.",
|
||||
@@ -1649,12 +1633,16 @@
|
||||
"trigger": "Déclencheur",
|
||||
"type": "Type",
|
||||
"type-x-to-confirm": "Saisissez « {text} » pour confirmer",
|
||||
"unable-to-attach-vdi": "Impossible d'attacher le VDI",
|
||||
"unable-to-connect": "Impossible de se connecter",
|
||||
"unable-to-connect-to": "Impossible de se connecter à {ip}",
|
||||
"unable-to-connect-to-the-pool": "Impossible de se connecter au Pool",
|
||||
"unable-to-connect-to-xo-server": "Impossible de se connecter au serveur XO.",
|
||||
"unable-to-create-new-bonded-network": "Impossible de créer un nouveau réseau lié",
|
||||
"unable-to-create-new-internal-network": "Impossible de créer un nouveau réseau interne",
|
||||
"unable-to-create-new-network": "Impossible de créer un nouveau réseau",
|
||||
"unable-to-create-new-traffic-rule": "Impossible de créer une nouvelle règle de trafic",
|
||||
"unable-to-create-new-vdi": "Impossible de créer un nouveau VDI",
|
||||
"unable-to-create-new-vif": "Impossible de créer un nouveau VIF",
|
||||
"unable-to-delete-network": "Impossible de supprimer le réseau",
|
||||
"unable-to-duplicate-vm": "Impossible de dupliquer la VM",
|
||||
@@ -1772,7 +1760,6 @@
|
||||
"vdi-name": "Nom du VDI",
|
||||
"vdi-not-attached-to-vm": "Aucune VM attachée",
|
||||
"vdi-on-different-sr-warning": "Ce SR est local sur un hôte qui n'héberge pas les autres disques de la VM. La VM ne pourra pas démarrer tant que tous ses disques ne se trouveront pas sur le même hôte ou sur un stockage partagé.",
|
||||
"vdi-required": "Le VDI est requis.",
|
||||
"vdi-snapshot-source": "VDI source",
|
||||
"vdi-snpashot-time": "Date du snapshot",
|
||||
"vdi-throughput": "Débit du VDI",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "Chiudi",
|
||||
"action:confirm": "Conferma",
|
||||
"action:connect": "Connetti",
|
||||
"action:connect-another-pool": "Connetti un altro pool",
|
||||
"action:connect-n": "Connetti {n}",
|
||||
"action:connect-n-srs": "Connetti 1 SR | Connetti {n} SR",
|
||||
"action:connect-n-vbds": "Connetti 1 VBD | Connetti {n} VBD",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "Trasforma in gruppo",
|
||||
"action:update": "Aggiorna",
|
||||
"action:use-query-builder": "Usa il generatore di query",
|
||||
"action:visit-pool-dashboard": "Visita la dashboard della pool",
|
||||
"add-or": "+O",
|
||||
"admin-login": "Login amministratore",
|
||||
"admin-password": "Password amministratore",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "Percorso di navigazione",
|
||||
"ascending": "crescente",
|
||||
"attach-vdi": "Collega VDI esistente",
|
||||
"attach-vdi:error-message": "Si è verificato un errore durante il collegamento della VDI. Verifica le impostazioni di configurazione (SR, VDI, modalità), controlla lo stato della VM e riprova.",
|
||||
"attaching-vdi": "Collegamento VDI",
|
||||
"auto-generated": "Generate automaticamente",
|
||||
"auto-power": "Avvio automatico",
|
||||
"available": "Disponibile",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "Connetta",
|
||||
"connected": "Connesso",
|
||||
"connected-srs": "SR connessi",
|
||||
"connected-to-ip": "Connesso a {ip}",
|
||||
"connecting": "Connessione in corso",
|
||||
"connection": "Connessione",
|
||||
"connection-failed": "Connessione fallita",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "Creato per",
|
||||
"created-on": "Creato a",
|
||||
"creating-new-network": "Creazione nuova rete",
|
||||
"creating-new-traffic-rule": "Creazione nuova regola di traffico",
|
||||
"creating-new-vdi": "Creazione nuova VDI",
|
||||
"creating-new-vif": "Creazione nuova VIF",
|
||||
"creation-date": "Data di creazione",
|
||||
"cron-pattern": "Pattern cron",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "Esci da schermo pieno",
|
||||
"expiration-date": "Data di scadenza",
|
||||
"export-vms-manually-information": "Alcune VM esportate non sono state avviate automaticamente, probabilmente a causa delle impostazioni del browser. Per esportarle clicca su ciascuna. (Altrimenti puoi copiare il link)",
|
||||
"failed": "Fallito",
|
||||
"failure": "Fallimento",
|
||||
"fast-clone": "Clone rapido",
|
||||
"fast-clone-available": "Il clone rapido è disponibile solo per le VM spente.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 snapshot | {n} snapshot",
|
||||
"n-srs": "1 SR | {n} SR",
|
||||
"n-subtasks": "1 sottoattività | {n} sottoattività",
|
||||
"n-traffic-rules": "1 regola di traffico | {n} regole di traffico",
|
||||
"n-vbds": "1 VBD | {n} VBD",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "Si è verificato un errore durante la creazione della rete. Verifica le impostazioni di configurazione (nome, tipo, VLAN), controlla la disponibilità dell'host e riprova.",
|
||||
"new-network:select-interface": "Seleziona un'interfaccia",
|
||||
"new-traffic-rule:add": "Aggiungi nuova regola di traffico",
|
||||
"new-traffic-rule:error-message": "Si è verificato un errore durante la creazione della regola di traffico. Verifica le impostazioni di configurazione e riprova.",
|
||||
"new-vdi:accepted-formats": "Formati accettati: {formats}",
|
||||
"new-vdi:add": "Aggiungi nuova VDI",
|
||||
"new-vdi:error-message": "Si è verificato un errore durante la creazione della VDI. Verifica le impostazioni di configurazione (nome, storage repository, spazio allocato) e riprova.",
|
||||
"new-vif": "Nuova VIF",
|
||||
"new-vif:add": "Aggiungi nuova VIF",
|
||||
"new-vif:error-message": "Si è verificato un errore durante la creazione della VIF. Verifica le impostazioni di configurazione e riprova.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "Attendere prego",
|
||||
"policy": "Policy",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Si è verificato un errore durante la connessione alla pool. Il nome utente o la password sembrano errati.",
|
||||
"pool-connection-error-duplicate": "Si è verificato un errore durante la connessione alla pool. Questa pool sembra essere già connessa.",
|
||||
"pool-connection-error-host-not-found": "Si è verificato un errore durante la connessione alla pool. L'indirizzo di questa pool non sembra esistere. Modifica l'IP e riprova.",
|
||||
"pool-connection-error-invalid-parameters": "Si è verificato un errore durante la connessione alla pool. I parametri forniti non sembrano validi. Controlla l'indirizzo IP e le credenziali, quindi riprova.",
|
||||
"pool-connection-ip-info": "Fornisci l'indirizzo dell'host primario della pool a cui vuoi connetterti.",
|
||||
"pool-connection-success": "Ti sei connesso correttamente alla pool. Ora puoi trovarla nella vista ad albero e iniziare a gestire i tuoi host e le tue VM.",
|
||||
"pool-cpu-usage": "Utilizzo CPU della pool",
|
||||
"pool-disconnect-info": "Non potrai più gestire questa pool da XO. Potrai riconnetterla in seguito.",
|
||||
"pool-forget-confirm-info": "Questo rimuoverà definitivamente questo host da XO. Per riconnetterlo, dovrai aggiungerlo di nuovo.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Attività",
|
||||
"tasks-page": "Pagina delle attività",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Panoramica delle attività",
|
||||
"template": "Template",
|
||||
"template-has-bios-strings": "Il template contiene già le stringhe BIOS",
|
||||
"theme": "Tema",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "Vista ad albero",
|
||||
"trigger": "Attivazione",
|
||||
"type": "Tipo",
|
||||
"unable-to-attach-vdi": "Impossibile collegare la VDI",
|
||||
"unable-to-connect": "Impossibile connettersi",
|
||||
"unable-to-connect-to": "Impossibile connettersi a {ip}",
|
||||
"unable-to-connect-to-the-pool": "Impossibile connettersi alla pool",
|
||||
"unable-to-connect-to-xo-server": "Impossibile connettersi al server XO.",
|
||||
"unable-to-create-new-bonded-network": "Impossibile creare una nuova rete in bond",
|
||||
"unable-to-create-new-internal-network": "Impossibile creare una nuova rete interna",
|
||||
"unable-to-create-new-network": "Impossibile creare una nuova rete",
|
||||
"unable-to-create-new-traffic-rule": "Impossibile creare una nuova regola di traffico",
|
||||
"unable-to-create-new-vdi": "Impossibile creare una nuova VDI",
|
||||
"unable-to-create-new-vif": "Impossibile creare una nuova VIF",
|
||||
"unable-to-delete-network": "Impossibile cancellare la rete",
|
||||
"unable-to-duplicate-vm": "Impossibile duplicare la VM",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "閉じる",
|
||||
"action:confirm": "確認",
|
||||
"action:connect": "接続",
|
||||
"action:connect-another-pool": "別のプールを接続",
|
||||
"action:connect-n": "{n} 件を接続",
|
||||
"action:connect-n-srs": "SR 1 個を接続 | SR {n} 個を接続",
|
||||
"action:connect-n-vbds": "VBD 1 個を接続 | VBD {n} 個を接続",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "グループに変換",
|
||||
"action:update": "更新",
|
||||
"action:use-query-builder": "クエリビルダーを使用",
|
||||
"action:visit-pool-dashboard": "プールのダッシュボードを表示",
|
||||
"add-or": "+OR",
|
||||
"admin-login": "管理者ログイン",
|
||||
"admin-password": "管理者パスワード",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "パンくずリスト",
|
||||
"ascending": "昇順",
|
||||
"attach-vdi": "既存の VDI をアタッチ",
|
||||
"attach-vdi:error-message": "VDI のアタッチ中にエラーが発生しました。設定 (SR、VDI、モード) を確認し、VM の状態を確認してから、もう一度お試しください。",
|
||||
"attaching-vdi": "VDI をアタッチしています",
|
||||
"auto-generated": "自動生成",
|
||||
"auto-power": "自動電源",
|
||||
"available": "利用可能",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "接続",
|
||||
"connected": "接続しました",
|
||||
"connected-srs": "接続済み SR",
|
||||
"connected-to-ip": "{ip} に接続しました",
|
||||
"connecting": "接続しています",
|
||||
"connection": "接続",
|
||||
"connection-failed": "接続に失敗しました",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "作成者",
|
||||
"created-on": "作成日",
|
||||
"creating-new-network": "新しいネットワークを作成しています",
|
||||
"creating-new-traffic-rule": "新しいトラフィックルールを作成しています",
|
||||
"creating-new-vdi": "新しい VDI を作成しています",
|
||||
"creating-new-vif": "新しい VIF を作成しています",
|
||||
"creation-date": "作成日",
|
||||
"cron-pattern": "Cron パターン",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "フルスクリーンを終了",
|
||||
"expiration-date": "有効期限",
|
||||
"export-vms-manually-information": "ブラウザーの設定が原因で、一部の VM のエクスポートを自動的に開始できませんでした。エクスポートするには、それぞれをクリックしてください。(またはリンクをコピーしてください。)",
|
||||
"failed": "失敗",
|
||||
"failure": "失敗",
|
||||
"fast-clone": "高速クローン",
|
||||
"fast-clone-available": "高速クローンは停止中の VM でのみ使用できます。",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "スナップショット 1 個 | スナップショット {n} 個",
|
||||
"n-srs": "SR 1 個 | SR {n} 個",
|
||||
"n-subtasks": "サブタスク 1 件 | サブタスク {n} 件",
|
||||
"n-traffic-rules": "トラフィックルール 1 件 | トラフィックルール {n} 件",
|
||||
"n-vbds": "VBD 1 個 | VBD {n} 個",
|
||||
"n-vcpus": "vCPU 1 個 | vCPU {n} 個",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "ネットワークの作成中にエラーが発生しました。設定 (名前、種類、VLAN) を確認し、ホストが利用可能であることを確認してから、もう一度お試しください。",
|
||||
"new-network:select-interface": "インターフェースを選択",
|
||||
"new-traffic-rule:add": "新しいトラフィックルールを追加",
|
||||
"new-traffic-rule:error-message": "トラフィックルールの作成中にエラーが発生しました。設定を確認して、もう一度お試しください。",
|
||||
"new-vdi:accepted-formats": "使用可能な形式: {formats}",
|
||||
"new-vdi:add": "新しい VDI を追加",
|
||||
"new-vdi:error-message": "VDI の作成中にエラーが発生しました。設定 (名前、ストレージリポジトリ、割り当て容量) を確認して、もう一度お試しください。",
|
||||
"new-vif": "新しい VIF",
|
||||
"new-vif:add": "新しい VIF を追加",
|
||||
"new-vif:error-message": "VIF の作成中にエラーが発生しました。設定を確認して、もう一度お試しください。",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "お待ちください",
|
||||
"policy": "ポリシー",
|
||||
"pool": "プール",
|
||||
"pool-connection-error-auth-failed": "プールへの接続中にエラーが発生しました。ユーザー名またはパスワードが正しくないようです。",
|
||||
"pool-connection-error-duplicate": "プールへの接続中にエラーが発生しました。このプールはすでに接続されているようです。",
|
||||
"pool-connection-error-host-not-found": "プールへの接続中にエラーが発生しました。このプールのアドレスは存在しないようです。IP を変更して、もう一度お試しください。",
|
||||
"pool-connection-error-invalid-parameters": "プールへの接続中にエラーが発生しました。指定されたパラメーターが有効ではないようです。IP アドレスと認証情報を確認してから、もう一度お試しください。",
|
||||
"pool-connection-ip-info": "接続するプールのプライマリホストのアドレスを入力してください。",
|
||||
"pool-connection-success": "プールに正常に接続しました。ツリービューにプールが表示され、ホストと VM の管理を開始できます。",
|
||||
"pool-cpu-usage": "プールの CPU 使用率",
|
||||
"pool-disconnect-info": "XO からこのプールを管理できなくなります。後で再接続できます。",
|
||||
"pool-forget-confirm-info": "このホストは XO から完全に削除されます。再接続するには、再度追加する必要があります。",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "タスク",
|
||||
"tasks-page": "タスクページ",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "タスクの概要",
|
||||
"template": "テンプレート",
|
||||
"template-has-bios-strings": "テンプレートにはすでに BIOS 文字列が含まれています",
|
||||
"theme": "テーマ",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "ツリービュー",
|
||||
"trigger": "トリガー",
|
||||
"type": "種類",
|
||||
"unable-to-attach-vdi": "VDI をアタッチできません",
|
||||
"unable-to-connect": "接続できません",
|
||||
"unable-to-connect-to": "{ip} に接続できません",
|
||||
"unable-to-connect-to-the-pool": "プールに接続できません",
|
||||
"unable-to-connect-to-xo-server": "XO サーバーに接続できません。",
|
||||
"unable-to-create-new-bonded-network": "新しいボンドネットワークを作成できません",
|
||||
"unable-to-create-new-internal-network": "新しい内部ネットワークを作成できません",
|
||||
"unable-to-create-new-network": "新しいネットワークを作成できません",
|
||||
"unable-to-create-new-traffic-rule": "新しいトラフィックルールを作成できません",
|
||||
"unable-to-create-new-vdi": "新しい VDI を作成できません",
|
||||
"unable-to-create-new-vif": "新しい VIF を作成できません",
|
||||
"unable-to-delete-network": "ネットワークを削除できません",
|
||||
"unable-to-duplicate-vm": "VM を複製できません",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "닫기",
|
||||
"action:confirm": "확인",
|
||||
"action:connect": "연결",
|
||||
"action:connect-another-pool": "다른 풀에 연결",
|
||||
"action:connect-n": "{n}개 연결",
|
||||
"action:connect-n-srs": "SR 1개 연결 | SR {n}개 연결",
|
||||
"action:connect-n-vbds": "VBD 1개 연결 | VBD {n}개 연결",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "그룹으로 만들기",
|
||||
"action:update": "업데이트",
|
||||
"action:use-query-builder": "쿼리 빌더 사용",
|
||||
"action:visit-pool-dashboard": "풀 대시보드로 이동",
|
||||
"add-or": "+또는",
|
||||
"admin-login": "관리자 로그인",
|
||||
"admin-password": "관리자 암호",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "경로 표시",
|
||||
"ascending": "오름차순",
|
||||
"attach-vdi": "기존 VDI 연결",
|
||||
"attach-vdi:error-message": "VDI를 연결하는 중 오류가 발생했습니다. 구성 설정(SR, VDI, 모드)을 검토하고 VM 상태를 확인한 후 다시 시도하세요.",
|
||||
"attaching-vdi": "VDI 연결 중",
|
||||
"auto-generated": "자동으로 생성됨",
|
||||
"auto-power": "자동 시작",
|
||||
"available": "사용 가능",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "연결",
|
||||
"connected": "연결됨",
|
||||
"connected-srs": "연결된 SR",
|
||||
"connected-to-ip": "{ip}에 연결됨",
|
||||
"connecting": "연결 중",
|
||||
"connection": "연결",
|
||||
"connection-failed": "연결 실패",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "생성자",
|
||||
"created-on": "생성일",
|
||||
"creating-new-network": "새 네트워크 생성 중",
|
||||
"creating-new-traffic-rule": "새 트래픽 규칙 생성 중",
|
||||
"creating-new-vdi": "새 VDI 생성 중",
|
||||
"creating-new-vif": "새 VIF 생성 중",
|
||||
"creation-date": "생성 날짜",
|
||||
"cron-pattern": "Cron 패턴",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "전체화면 종료",
|
||||
"expiration-date": "만료 일자",
|
||||
"export-vms-manually-information": "브라우저 설정으로 인해 일부 VM 내보내기를 자동으로 시작하지 못했습니다. 내보내려면 각 항목을 클릭하세요. (또는 링크를 복사할 수도 있습니다.)",
|
||||
"failed": "실패",
|
||||
"failure": "실패",
|
||||
"fast-clone": "빠른 복제",
|
||||
"fast-clone-available": "빠른 복제는 중지된 VM에서만 사용할 수 있습니다.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "스냅샷 1개 | 스냅샷 {n}개",
|
||||
"n-srs": "SR 1개 | SR {n}개",
|
||||
"n-subtasks": "하위 작업 1개 | 하위 작업 {n}개",
|
||||
"n-traffic-rules": "트래픽 규칙 1개 | 트래픽 규칙 {n}개",
|
||||
"n-vbds": "VBD 1개 | VBD {n}개",
|
||||
"n-vcpus": "vCPU 1개 | vCPU {n}개",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "네트워크를 생성하는 중 오류가 발생했습니다. 구성 설정(이름, 유형, VLAN)을 검토하고 호스트 가용성을 확인한 후 다시 시도하세요.",
|
||||
"new-network:select-interface": "인터페이스 선택",
|
||||
"new-traffic-rule:add": "새 트래픽 규칙 추가",
|
||||
"new-traffic-rule:error-message": "트래픽 규칙을 생성하는 중 오류가 발생했습니다. 구성 설정을 검토한 후 다시 시도하세요.",
|
||||
"new-vdi:accepted-formats": "허용되는 형식: {formats}",
|
||||
"new-vdi:add": "새 VDI 추가",
|
||||
"new-vdi:error-message": "VDI를 생성하는 중 오류가 발생했습니다. 구성 설정(이름, 스토리지 저장소, 할당된 공간)을 검토한 후 다시 시도하세요.",
|
||||
"new-vif": "새 VIF",
|
||||
"new-vif:add": "새 VIF 추가",
|
||||
"new-vif:error-message": "VIF를 생성하는 중 오류가 발생했습니다. 구성 설정을 검토한 후 다시 시도하세요.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "잠시 기다려 주세요",
|
||||
"policy": "정책",
|
||||
"pool": "풀",
|
||||
"pool-connection-error-auth-failed": "풀에 연결하는 중 오류가 발생했습니다. 사용자 이름 또는 암호가 올바르지 않은 것 같습니다.",
|
||||
"pool-connection-error-duplicate": "풀에 연결하는 중 오류가 발생했습니다. 이 풀은 이미 연결되어 있는 것 같습니다.",
|
||||
"pool-connection-error-host-not-found": "풀에 연결하는 중 오류가 발생했습니다. 이 풀의 주소가 존재하지 않는 것 같습니다. IP를 변경한 후 다시 시도하세요.",
|
||||
"pool-connection-error-invalid-parameters": "풀에 연결하는 중 오류가 발생했습니다. 제공된 매개변수가 유효하지 않은 것 같습니다. IP 주소와 자격 증명을 확인한 후 다시 시도하세요.",
|
||||
"pool-connection-ip-info": "연결하려는 풀의 마스터 호스트 주소를 입력하세요.",
|
||||
"pool-connection-success": "풀에 성공적으로 연결되었습니다. 이제 트리 화면에서 풀을 찾아 호스트와 VM 관리를 시작할 수 있습니다.",
|
||||
"pool-cpu-usage": "풀 CPU 사용량",
|
||||
"pool-disconnect-info": "더 이상 XO에서 이 풀을 관리할 수 없습니다. 나중에 다시 연결할 수 있습니다.",
|
||||
"pool-forget-confirm-info": "XO에서 이 호스트가 영구적으로 제거됩니다. 다시 연결하려면 호스트를 다시 추가해야 합니다.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "작업",
|
||||
"tasks-page": "작업 페이지",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "작업 개요",
|
||||
"template": "템플릿",
|
||||
"template-has-bios-strings": "템플릿에 이미 BIOS 문자열이 포함되어 있습니다",
|
||||
"theme": "테마",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "트리 화면",
|
||||
"trigger": "트리거",
|
||||
"type": "유형",
|
||||
"unable-to-attach-vdi": "VDI를 연결할 수 없습니다",
|
||||
"unable-to-connect": "연결할 수 없습니다",
|
||||
"unable-to-connect-to": "{ip}에 연결할 수 없습니다",
|
||||
"unable-to-connect-to-the-pool": "풀에 연결할 수 없습니다",
|
||||
"unable-to-connect-to-xo-server": "XO 서버에 연결할 수 없습니다.",
|
||||
"unable-to-create-new-bonded-network": "새 본딩된 네트워크를 생성할 수 없습니다",
|
||||
"unable-to-create-new-internal-network": "새 내부 네트워크를 생성할 수 없습니다",
|
||||
"unable-to-create-new-network": "새 네트워크를 생성할 수 없습니다",
|
||||
"unable-to-create-new-traffic-rule": "새 트래픽 규칙을 생성할 수 없습니다",
|
||||
"unable-to-create-new-vdi": "새 VDI를 생성할 수 없습니다",
|
||||
"unable-to-create-new-vif": "새 VIF를 생성할 수 없습니다",
|
||||
"unable-to-delete-network": "네트워크를 삭제할 수 없습니다",
|
||||
"unable-to-duplicate-vm": "VM을 복제할 수 없습니다",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "Lukk",
|
||||
"action:confirm": "Bekreft",
|
||||
"action:connect": "Koble til",
|
||||
"action:connect-another-pool": "Koble til en annen pool",
|
||||
"action:connect-n": "Koble til {n}",
|
||||
"action:connect-n-srs": "Koble til 1 SR | Koble til {n} SR-er",
|
||||
"action:connect-n-vbds": "Koble til 1 VBD | Koble til {n} VBD-er",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "Gjør om til gruppe",
|
||||
"action:update": "Oppdater",
|
||||
"action:use-query-builder": "Bruk spørringsbygger",
|
||||
"action:visit-pool-dashboard": "Gå til pool-oversikten",
|
||||
"add-or": "+ELLER",
|
||||
"admin-login": "Administrator-innlogging",
|
||||
"admin-password": "Administrator-passord",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "Breadcrumb",
|
||||
"ascending": "Stigende",
|
||||
"attach-vdi": "Tilknytt eksisterende VDI",
|
||||
"attach-vdi:error-message": "Det oppstod en feil under tilknytning av VDI-en. Gå gjennom konfigurasjonsinnstillingene (SR, VDI, modus), kontroller VM-ens tilstand og prøv igjen.",
|
||||
"attaching-vdi": "Tilknytter VDI",
|
||||
"auto-generated": "Automatisk generert",
|
||||
"auto-power": "Automatisk kraft",
|
||||
"available": "Tilgjengelig",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "Koble til",
|
||||
"connected": "Tilkoblet",
|
||||
"connected-srs": "Tilkoblede SR-er",
|
||||
"connected-to-ip": "Tilkoblet til {ip}",
|
||||
"connecting": "Kobler til",
|
||||
"connection": "Tilkobling",
|
||||
"connection-failed": "Tilkobling mislyktes",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "Opprettet av",
|
||||
"created-on": "Opprettet den",
|
||||
"creating-new-network": "Oppretter nytt nettverk",
|
||||
"creating-new-traffic-rule": "Oppretter ny trafikkregel",
|
||||
"creating-new-vdi": "Oppretter ny VDI",
|
||||
"creating-new-vif": "Oppretter ny VIF",
|
||||
"creation-date": "Opprettelsesdato",
|
||||
"cron-pattern": "Cron-mønster",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "Avslutt fullskjerm",
|
||||
"expiration-date": "Utløpsdato",
|
||||
"export-vms-manually-information": "Noen VM-eksporter kunne ikke startes automatisk, sannsynligvis på grunn av nettleserinnstillingene dine. For å eksportere dem må du klikke på hver enkelt (alternativt kan du også kopiere lenken).",
|
||||
"failed": "Mislyktes",
|
||||
"failure": "Feil",
|
||||
"fast-clone": "Rask kloning",
|
||||
"fast-clone-available": "Rask kloning er kun tilgjengelig for stansede VM-er.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 øyeblikksbilde | {n} øyeblikksbilder",
|
||||
"n-srs": "1 SR | {n} SR-er",
|
||||
"n-subtasks": "1 deloppgave | {n} deloppgaver",
|
||||
"n-traffic-rules": "1 trafikkregel | {n} trafikkregler",
|
||||
"n-vbds": "1 VBD | {n} VBD-er",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU-er",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "Det oppstod en feil under oppretting av nettverket. Gå gjennom konfigurasjonsinnstillingene (navn, type, VLAN), kontroller at vertene er tilgjengelige, og prøv igjen.",
|
||||
"new-network:select-interface": "Velg et grensesnitt",
|
||||
"new-traffic-rule:add": "Legg til ny trafikkregel",
|
||||
"new-traffic-rule:error-message": "Det oppstod en feil under oppretting av trafikkregelen. Gå gjennom konfigurasjonsinnstillingene og prøv igjen.",
|
||||
"new-vdi:accepted-formats": "Godkjente formater: {formats}",
|
||||
"new-vdi:add": "Legg til ny VDI",
|
||||
"new-vdi:error-message": "Det oppstod en feil under oppretting av VDI-en. Gå gjennom konfigurasjonsinnstillingene (navn, lagringsrepository, tildelt plass) og prøv igjen.",
|
||||
"new-vif": "Ny VIF",
|
||||
"new-vif:add": "Legg til ny VIF",
|
||||
"new-vif:error-message": "Det oppstod en feil under oppretting av VIF-en. Gå gjennom konfigurasjonsinnstillingene og prøv igjen.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "Vennligst vent",
|
||||
"policy": "Policy",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "En feil oppstod ved tilkobling til pool-et. Brukernavn eller passord ser ut til å være feil.",
|
||||
"pool-connection-error-duplicate": "En feil oppstod ved tilkobling til pool-et. Dette poolet ser allerede ut til å være tilkoblet.",
|
||||
"pool-connection-error-host-not-found": "En feil oppstod ved tilkobling til pool-et. Adressen til dttee pool-et ser ikke ut til å eksistere. Endre IP-adresse og prøv igjen.",
|
||||
"pool-connection-error-invalid-parameters": "En feil oppstod ved tilkobling til pool-et. Parametrene som ble oppgitte ser ikke ut til å være gyldige. Kontroller IP-adresse og legitimasjonen og prøv igjen.",
|
||||
"pool-connection-ip-info": "Oppgi adresse til primærverten for pool-et du vil koble til.",
|
||||
"pool-connection-success": "Du har koblet til pool-et. Du finner det nå i tre-visningen og kan nå begynne å administrere verter og VM-er.",
|
||||
"pool-cpu-usage": "CPU-bruk i pool",
|
||||
"pool-disconnect-info": "Du vil ikke lenger kunne administrere dette pool-et fra XO. Du kan koble det til igjen senere.",
|
||||
"pool-forget-confirm-info": "Dette vil fjerne denne verten permanent fra XO. For å koble til igjen må du legge den til på nytt.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Oppgaver",
|
||||
"tasks-page": "Oppgavesiden",
|
||||
"tasks:all": "Alle",
|
||||
"tasks:done": "Ferdig",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Hurtigvisning av oppgaver",
|
||||
"template": "Mal",
|
||||
"template-has-bios-strings": "Malen inneholder allerede BIOS-strengene",
|
||||
"theme": "Tema",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "Trevisning",
|
||||
"trigger": "Utløser",
|
||||
"type": "Type",
|
||||
"unable-to-attach-vdi": "Kan ikke tilknytte VDI",
|
||||
"unable-to-connect": "Kan ikke koble til",
|
||||
"unable-to-connect-to": "Kan ikke koble til {ip}",
|
||||
"unable-to-connect-to-the-pool": "Kan ikke koble til poolen",
|
||||
"unable-to-connect-to-xo-server": "Kan ikke koble til XO-serveren.",
|
||||
"unable-to-create-new-bonded-network": "Kan ikke opprette nytt bundet nettverk",
|
||||
"unable-to-create-new-internal-network": "Kan ikke opprette nytt internt nettverk",
|
||||
"unable-to-create-new-network": "Kan ikke opprette nytt nettverk",
|
||||
"unable-to-create-new-traffic-rule": "Kan ikke opprette ny trafikkregel",
|
||||
"unable-to-create-new-vdi": "Kan ikke opprette ny VDI",
|
||||
"unable-to-create-new-vif": "Kan ikke opprette ny VIF",
|
||||
"unable-to-delete-network": "Kan ikke slette nettverk",
|
||||
"unable-to-duplicate-vm": "Kan ikke duplisere VM",
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
"action:close": "Sluiten",
|
||||
"action:confirm": "Bevestigen",
|
||||
"action:connect": "Verbind",
|
||||
"action:connect-another-pool": "Verbind een andere pool",
|
||||
"action:connect-n": "Sluit {n} aan",
|
||||
"action:connect-n-srs": "Sluit 1 SR aan | Sluit {n} SR’s aan",
|
||||
"action:connect-n-vbds": "Verbind 1 VBD | Verbind {n} VBD's",
|
||||
@@ -153,6 +154,7 @@
|
||||
"action:turn-into-group": "Verander in groep",
|
||||
"action:update": "Bijwerken",
|
||||
"action:use-query-builder": "Querybouwer gebruiken",
|
||||
"action:visit-pool-dashboard": "Bezoek het pool-dashboard",
|
||||
"add-or": "+OF",
|
||||
"admin-login": "Beheerder login",
|
||||
"admin-password": "Beheerder wachtwoord",
|
||||
@@ -189,6 +191,8 @@
|
||||
"aria:breadcrumb:label": "Broodkruimel",
|
||||
"ascending": "oplopend",
|
||||
"attach-vdi": "Koppel bestaande VDI",
|
||||
"attach-vdi:error-message": "Er is een fout opgetreden bij het koppelen van de VDI. Controleer je configuratie-instellingen (SR, VDI, modus), controleer de VM status en probeer het opnieuw.",
|
||||
"attaching-vdi": "VDI koppelen",
|
||||
"auto-generated": "Automatisch gegenereerd",
|
||||
"auto-power": "Automatisch opstarten",
|
||||
"available": "Beschikbaar",
|
||||
@@ -269,6 +273,7 @@
|
||||
"connect": "Verbind",
|
||||
"connected": "Verbonden",
|
||||
"connected-srs": "Gekoppelde SR's",
|
||||
"connected-to-ip": "Verbonden naar {ip}",
|
||||
"connecting": "Verbinden",
|
||||
"connection": "Verbinding",
|
||||
"connection-failed": "Verbinding mislukt",
|
||||
@@ -299,6 +304,8 @@
|
||||
"created-by": "Gemaakt door",
|
||||
"created-on": "Gemaakt op",
|
||||
"creating-new-network": "Nieuw netwerk maken",
|
||||
"creating-new-traffic-rule": "Een nieuwe verkeersregel aanmaken",
|
||||
"creating-new-vdi": "Een nieuwe VDI aanmaken",
|
||||
"creating-new-vif": "Nieuwe VIF aanmaken",
|
||||
"creation-date": "Aanmaakdatum",
|
||||
"cron-pattern": "Cron-patroon",
|
||||
@@ -370,6 +377,7 @@
|
||||
"exit-fullscreen": "Volledig scherm afsluiten",
|
||||
"expiration-date": "Vervaldatum",
|
||||
"export-vms-manually-information": "Sommige VM-exports konden niet automatisch starten, waarschijnlijk door je browserinstellingen. Om ze te exporteren, moet je op elke VM klikken. (Je kunt ook de link kopiëren.)",
|
||||
"failed": "Mislukt",
|
||||
"failure": "Storing",
|
||||
"fast-clone": "Snel klonen",
|
||||
"fast-clone-available": "Snel klonen is alleen beschikbaar voor gestopte VM’s.",
|
||||
@@ -717,6 +725,7 @@
|
||||
"n-percent": "{n} %",
|
||||
"n-snapshots": "1 snapshot | {n} snapshots",
|
||||
"n-srs": "1 SR | {n} SR’s",
|
||||
"n-subtasks": "1 subtaak | {n} subtaken",
|
||||
"n-traffic-rules": "1 verkeersregel | {n} verkeersregels",
|
||||
"n-vbds": "1 VBD | {n} VBD's",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU's",
|
||||
@@ -749,8 +758,10 @@
|
||||
"new-network:error-message": "Er is een fout opgetreden bij het aanmaken van het netwerk. Controleer je configuratie-instellingen (naam, type, VLAN), ga na of de host beschikbaar is en probeer het opnieuw.",
|
||||
"new-network:select-interface": "Kies een interface",
|
||||
"new-traffic-rule:add": "Nieuwe verkeersregel toevoegen",
|
||||
"new-traffic-rule:error-message": "Er is een fout opgetreden bij het aanmaken van de verkeersregel. Controleer je configuratie-instellingen en probeer het opnieuw.",
|
||||
"new-vdi:accepted-formats": "Toegestane formaten: {formats}",
|
||||
"new-vdi:add": "Nieuwe VDI toevoegen",
|
||||
"new-vdi:error-message": "Er is een fout opgetreden bij het aanmaken van de VDI. Controleer je configuratie-instellingen (naam, opslaglocatie, toegewezen ruimte) en probeer het opnieuw.",
|
||||
"new-vif": "Nieuwe VIF",
|
||||
"new-vif:add": "Nieuwe VIF toevoegen",
|
||||
"new-vif:error-message": "Er is een fout opgetreden bij het aanmaken van de VIF. Controleer je configuratie-instellingen en probeer het opnieuw.",
|
||||
@@ -877,7 +888,12 @@
|
||||
"please-wait": "Even geduld",
|
||||
"policy": "Beleid",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Er is een fout opgetreden tijdens het verbinden met de pool. De gebruikersnaam of het wachtwoord lijkt onjuist te zijn.",
|
||||
"pool-connection-error-duplicate": "Er is een fout opgetreden tijdens het verbinden met de pool. Deze pool lijkt al verbonden te zijn.",
|
||||
"pool-connection-error-host-not-found": "Er is een fout opgetreden tijdens het verbinden met de pool. Het adres van deze pool lijkt niet te bestaan. Wijzig het IP-adres en probeer het opnieuw.",
|
||||
"pool-connection-error-invalid-parameters": "Er is een fout opgetreden tijdens het verbinden met de pool. De opgegeven parameters lijken niet geldig te zijn. Controleer het IP-adres en de inloggegevens en probeer het opnieuw.",
|
||||
"pool-connection-ip-info": "Geef het adres van de primaire host van de pool op waarmee je verbinding wilt maken.",
|
||||
"pool-connection-success": "Je bent nu succesvol verbonden met de pool. Je kunt deze nu vinden in je boomstructuur en beginnen met het beheren van je hosts en VM's.",
|
||||
"pool-cpu-usage": "Pool processor gebruik",
|
||||
"pool-disconnect-info": "Je kunt deze pool niet langer via XO beheren. Je kunt hem later opnieuw koppelen.",
|
||||
"pool-forget-confirm-info": "Hierdoor wordt deze host definitief uit XO verwijderd. Om opnieuw verbinding te maken, moet je deze opnieuw toevoegen.",
|
||||
@@ -1099,6 +1115,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Taken",
|
||||
"tasks-page": "Taken pagina",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Snelle weergave van taken",
|
||||
"template": "Sjabloon",
|
||||
"template-has-bios-strings": "De sjabloon bevat al de BIOS strings",
|
||||
"theme": "Thema",
|
||||
@@ -1147,11 +1167,15 @@
|
||||
"treeview": "Boomstructuurweergave",
|
||||
"trigger": "Trigger",
|
||||
"type": "Type",
|
||||
"unable-to-attach-vdi": "VDI kan niet worden gekoppeld",
|
||||
"unable-to-connect-to": "Kan geen verbinding maken met {ip}",
|
||||
"unable-to-connect-to-the-pool": "Kan geen verbinding maken met de pool",
|
||||
"unable-to-connect-to-xo-server": "Kan geen verbinding maken met XO-server.",
|
||||
"unable-to-create-new-bonded-network": "Kan geen nieuw gebundeld netwerk aanmaken",
|
||||
"unable-to-create-new-internal-network": "Kan geen nieuw intern netwerk aanmaken",
|
||||
"unable-to-create-new-network": "Kan geen nieuw netwerk aanmaken",
|
||||
"unable-to-create-new-traffic-rule": "Kan geen nieuwe verkeersregel aanmaken",
|
||||
"unable-to-create-new-vdi": "Kan geen nieuwe VDI aanmaken",
|
||||
"unable-to-create-new-vif": "Kan geen nieuwe VIF aanmaken",
|
||||
"unable-to-delete-network": "Kan netwerk niet verwijderen",
|
||||
"unable-to-duplicate-vm": "Kan VM niet dupliceren",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "Zamknij",
|
||||
"action:confirm": "Potwierdź",
|
||||
"action:connect": "Połącz",
|
||||
"action:connect-another-pool": "Podłącz kolejny pool",
|
||||
"action:connect-n": "Połącz {n}",
|
||||
"action:connect-n-srs": "Połącz 1 SR | Połącz {n} SR",
|
||||
"action:connect-n-vbds": "Połącz 1 VBD | Połącz {n} VBD",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "Zamień w grupę",
|
||||
"action:update": "Aktualizuj",
|
||||
"action:use-query-builder": "Użyj kreatora zapytań",
|
||||
"action:visit-pool-dashboard": "Przejdź do pulpitu puli",
|
||||
"add-or": "+LUB",
|
||||
"admin-login": "Login administratora",
|
||||
"admin-password": "Hasło administratora",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "Ścieżka nawigacji",
|
||||
"ascending": "rosnąco",
|
||||
"attach-vdi": "Dołącz istniejące VDI",
|
||||
"attach-vdi:error-message": "Wystąpił błąd podczas dołączania VDI. Sprawdź ustawienia konfiguracji (SR, VDI, tryb), zweryfikuj stan VM i spróbuj ponownie.",
|
||||
"attaching-vdi": "Dołączanie VDI",
|
||||
"auto-generated": "Wygenerowano automatycznie",
|
||||
"auto-power": "Autoamtyczne uruchamianie",
|
||||
"available": "Dostępne",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "Połącz",
|
||||
"connected": "Połączono",
|
||||
"connected-srs": "Połączone SR",
|
||||
"connected-to-ip": "Podłączony do {ip}",
|
||||
"connecting": "Łączenie",
|
||||
"connection": "Połączenie",
|
||||
"connection-failed": "Połaczenie nieudane",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "Stworzone przez",
|
||||
"created-on": "Stworzone na",
|
||||
"creating-new-network": "Tworzenie nowej sieci",
|
||||
"creating-new-traffic-rule": "Tworzenie nowej reguły ruchu",
|
||||
"creating-new-vdi": "Tworzenie nowego VDI",
|
||||
"creating-new-vif": "Tworzenie nowego VIF",
|
||||
"creation-date": "Data utworzenia",
|
||||
"cron-pattern": "Wzorzec cron",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "Zamknij pełny ekran",
|
||||
"expiration-date": "Data wygaśnięcia",
|
||||
"export-vms-manually-information": "Niektóre eksporty VM nie mogły rozpocząć się automatycznie, prawdopodobnie z powodu ustawień przeglądarki. Aby je wyeksportować, kliknij każdy z nich. (Możesz też skopiować link.)",
|
||||
"failed": "Nie powiodło się",
|
||||
"failure": "Niepowodzenie",
|
||||
"fast-clone": "Szybki klon",
|
||||
"fast-clone-available": "Szybki klon jest dostępny tylko dla zatrzymanych VM.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 migawka | {n} migawek",
|
||||
"n-srs": "1 SR | {n} SR",
|
||||
"n-subtasks": "1 podzadanie | {n} podzadań",
|
||||
"n-traffic-rules": "1 reguła ruchu | {n} reguł ruchu",
|
||||
"n-vbds": "1 VBD | {n} VBD",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "Wystąpił błąd podczas tworzenia sieci. Sprawdź ustawienia konfiguracji (nazwa, typ, VLAN), zweryfikuj dostępność hosta i spróbuj ponownie.",
|
||||
"new-network:select-interface": "Wybierz interfejs",
|
||||
"new-traffic-rule:add": "Dodaj nową regułę ruchu",
|
||||
"new-traffic-rule:error-message": "Wystąpił błąd podczas tworzenia reguły ruchu. Sprawdź ustawienia konfiguracji i spróbuj ponownie.",
|
||||
"new-vdi:accepted-formats": "Akceptowane formaty: {formats}",
|
||||
"new-vdi:add": "Dodaj nowe VDI",
|
||||
"new-vdi:error-message": "Wystąpił błąd podczas tworzenia VDI. Sprawdź ustawienia konfiguracji (nazwa, repozytorium pamięci masowej, przydzielona przestrzeń) i spróbuj ponownie.",
|
||||
"new-vif": "Nowy VIF",
|
||||
"new-vif:add": "Dodaj nowy VIF",
|
||||
"new-vif:error-message": "Wystąpił błąd podczas tworzenia VIF. Sprawdź ustawienia konfiguracji i spróbuj ponownie.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "Proszę czekać",
|
||||
"policy": "Zasady",
|
||||
"pool": "Pula",
|
||||
"pool-connection-error-auth-failed": "Wystąpił błąd podczas łączenia z pulą. Nazwa użytkownika lub hasło wydają się nieprawidłowe.",
|
||||
"pool-connection-error-duplicate": "Wystąpił błąd podczas łączenia z pulą. Ta pula wydaje się być już połączona.",
|
||||
"pool-connection-error-host-not-found": "Wystąpił błąd podczas łączenia z pulą. Adres tej puli wydaje się nie istnieć. Zmień adres IP i spróbuj ponownie.",
|
||||
"pool-connection-error-invalid-parameters": "Wystąpił błąd podczas łączenia z pulą. Podane parametry wydają się nieprawidłowe. Sprawdź adres IP i dane logowania, a następnie spróbuj ponownie.",
|
||||
"pool-connection-ip-info": "Podaj adres hosta głównego puli, z którą chcesz się połączyć.",
|
||||
"pool-connection-success": "Pomyślnie połączono z pulą. Znajdziesz ją teraz w widoku drzewa i możesz zacząć zarządzać swoimi hostami i VM.",
|
||||
"pool-cpu-usage": "Użycie CPU puli",
|
||||
"pool-disconnect-info": "Nie będzie już można zarządzać tą pulą z XO. Możesz ją później ponownie połączyć.",
|
||||
"pool-forget-confirm-info": "Spowoduje to trwałe usunięcie tego hosta z XO. Aby ponownie go połączyć, trzeba będzie dodać go jeszcze raz.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Przeloty",
|
||||
"tasks-page": "Strona zadań",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Przegląd zadań",
|
||||
"template": "Szablon",
|
||||
"template-has-bios-strings": "Szablon zawiera już ciągi BIOS",
|
||||
"theme": "Motyw",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "Widok drzewa",
|
||||
"trigger": "Wyzwalacz",
|
||||
"type": "Typ",
|
||||
"unable-to-attach-vdi": "Nie można dołączyć VDI",
|
||||
"unable-to-connect": "Nie można połączyć",
|
||||
"unable-to-connect-to": "Nie można połączyć z {ip}",
|
||||
"unable-to-connect-to-the-pool": "Nie można połączyć z pulą",
|
||||
"unable-to-connect-to-xo-server": "Nie można połączyć z serwerem XO.",
|
||||
"unable-to-create-new-bonded-network": "Nie można utworzyć nowej sieci zagregowanej",
|
||||
"unable-to-create-new-internal-network": "Nie można utworzyć nowej sieci wewnętrznej",
|
||||
"unable-to-create-new-network": "Nie można utworzyć nowej sieci",
|
||||
"unable-to-create-new-traffic-rule": "Nie można utworzyć nowej reguły ruchu",
|
||||
"unable-to-create-new-vdi": "Nie można utworzyć nowego VDI",
|
||||
"unable-to-create-new-vif": "Nie można utworzyć nowego VIF",
|
||||
"unable-to-delete-network": "Nie można usunąć sieci",
|
||||
"unable-to-duplicate-vm": "Nie można zduplikować VM",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "Fechar",
|
||||
"action:confirm": "Confirmar",
|
||||
"action:connect": "Conectar",
|
||||
"action:connect-another-pool": "Adicionar outro Agrupamento",
|
||||
"action:connect-n": "Conectar {n}",
|
||||
"action:connect-n-srs": "Conectar 1 SR | Conectar {n} SRs",
|
||||
"action:connect-n-vbds": "Conectar 1 VBD | Conectar {n} VBDs",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "Transformar em grupo",
|
||||
"action:update": "Atualizar",
|
||||
"action:use-query-builder": "Use o construtor de pesquisa",
|
||||
"action:visit-pool-dashboard": "Visitar o panel de control da pool",
|
||||
"add-or": "+OU",
|
||||
"admin-login": "Login do administrador",
|
||||
"admin-password": "Senha do administrador",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "Migalhas de pão",
|
||||
"ascending": "crescente",
|
||||
"attach-vdi": "Anexar VDI existente",
|
||||
"attach-vdi:error-message": "Ocorreu um erro ao anexar o VDI. Revise suas configurações (SR, VDI, modo), verifique o estado da VM e tente novamente.",
|
||||
"attaching-vdi": "Anexando VDI",
|
||||
"auto-generated": "Gerado automaticamente",
|
||||
"auto-power": "Ligar automaticamente",
|
||||
"available": "Disponível",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "Conectar",
|
||||
"connected": "Conectado",
|
||||
"connected-srs": "SRs conectados",
|
||||
"connected-to-ip": "Conectado a {ip}",
|
||||
"connecting": "Conectando",
|
||||
"connection": "Conexão",
|
||||
"connection-failed": "Conexão falhou",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "Criado por",
|
||||
"created-on": "Criado em",
|
||||
"creating-new-network": "Criando nova rede",
|
||||
"creating-new-traffic-rule": "Criando nova regra de tráfego",
|
||||
"creating-new-vdi": "Criando novo VDI",
|
||||
"creating-new-vif": "Criando novo VIF",
|
||||
"creation-date": "Data de criação",
|
||||
"cron-pattern": "Padrão Cron",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "Sair da tela cheia",
|
||||
"expiration-date": "Data de expiração",
|
||||
"export-vms-manually-information": "Algumas exportações de máquinas virtuais não conseguiram iniciar automaticamente, provavelmente devido às configurações do seu navegador. Para as exportar, deve clicar em cada uma delas. (Em alternativa, pode também copiar o link.)",
|
||||
"failed": "Falhou",
|
||||
"failure": "Falha",
|
||||
"fast-clone": "Clone rápido",
|
||||
"fast-clone-available": "O clone rápido está disponível apenas para VMs desligadas.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 snapshot | {n} snapshots",
|
||||
"n-srs": "1 SR | {n} SRs",
|
||||
"n-subtasks": "1 subtarefa | {n} subtarefas",
|
||||
"n-traffic-rules": "1 regra de tráfego | {n} regras de tráfego",
|
||||
"n-vbds": "1 VBD | {n} VBDs",
|
||||
"n-vcpus": "1 vCPU | {n} vCPUs",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "Ocorreu um erro ao criar a rede. Revise suas configurações (nome, tipo, VLAN), verifique a disponibilidade do servidor e tente novamente.",
|
||||
"new-network:select-interface": "Selecione uma interface",
|
||||
"new-traffic-rule:add": "Adicionar nova regra de tráfego",
|
||||
"new-traffic-rule:error-message": "Ocorreu um erro ao criar a regra de tráfego. Revise suas configurações e tente novamente.",
|
||||
"new-vdi:accepted-formats": "Formatos aceitos: {formats}",
|
||||
"new-vdi:add": "Adicionar novo VDI",
|
||||
"new-vdi:error-message": "Ocorreu um erro ao criar o VDI. Revise suas configurações (nome, repositório de armazenamento, espaço alocado) e tente novamente.",
|
||||
"new-vif": "Novo VIF",
|
||||
"new-vif:add": "Adicionar novo VIF",
|
||||
"new-vif:error-message": "Ocorreu um erro ao criar o VIF. Revise suas configurações e tente novamente.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "Aguarde",
|
||||
"policy": "Política",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Ocorreu um erro ao conectar ao pool. O nome de usuário ou a senha parecem estar incorretos.",
|
||||
"pool-connection-error-duplicate": "Ocorreu um erro ao conectar ao pool. Este pool parece já estar conectado.",
|
||||
"pool-connection-error-host-not-found": "Ocorreu um erro ao conectar ao pool. O endereço deste pool parece não existir. Altere o IP e tente novamente.",
|
||||
"pool-connection-error-invalid-parameters": "Ocorreu um erro ao conectar ao pool. Os parâmetros fornecidos não parecem válidos. Verifique o endereço IP e as credenciais e tente novamente.",
|
||||
"pool-connection-ip-info": "Informe o endereço do servidor principal do pool ao qual deseja se conectar.",
|
||||
"pool-connection-success": "Você se conectou ao pool com sucesso. Agora você pode encontrá-lo na sua árvore de navegação e começar a gerenciar seus servidores e VMs.",
|
||||
"pool-cpu-usage": "Uso de CPU do pool",
|
||||
"pool-disconnect-info": "Você não poderá mais gerenciar este pool pelo XO. Você pode reconectá-lo mais tarde.",
|
||||
"pool-forget-confirm-info": "Isso removerá permanentemente este servidor do XO. Para reconectá-lo, você precisará adicioná-lo novamente.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Tarefas",
|
||||
"tasks-page": "Página de tarefas",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Visão geral das tarefas",
|
||||
"template": "Modelo",
|
||||
"template-has-bios-strings": "O template já contém BIOS strings",
|
||||
"theme": "Tema",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "Árvore de navegação",
|
||||
"trigger": "Gatilho",
|
||||
"type": "Tipo",
|
||||
"unable-to-attach-vdi": "Não foi possível anexar o VDI",
|
||||
"unable-to-connect": "Não foi possível conectar",
|
||||
"unable-to-connect-to": "Não foi possível conectar a {ip}",
|
||||
"unable-to-connect-to-the-pool": "Não foi possível conectar ao pool",
|
||||
"unable-to-connect-to-xo-server": "Não foi possível conectar ao servidor XO.",
|
||||
"unable-to-create-new-bonded-network": "Não foi possível criar a nova rede agregada",
|
||||
"unable-to-create-new-internal-network": "Não foi possível criar a nova rede interna",
|
||||
"unable-to-create-new-network": "Não foi possível criar a nova rede",
|
||||
"unable-to-create-new-traffic-rule": "Não foi possível criar a nova regra de tráfego",
|
||||
"unable-to-create-new-vdi": "Não foi possível criar o novo VDI",
|
||||
"unable-to-create-new-vif": "Não foi possível criar o novo VIF",
|
||||
"unable-to-delete-network": "Não foi possível excluir a rede",
|
||||
"unable-to-duplicate-vm": "Não foi possível duplicar a VM",
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
"action:close": "Fechar",
|
||||
"action:confirm": "Confirmar",
|
||||
"action:connect": "Conectar",
|
||||
"action:connect-another-pool": "Adicionar outra pool",
|
||||
"action:connect-n": "Conectar {n}",
|
||||
"action:connect-n-srs": "Conectar 1 SR | Conectar {n} SRs",
|
||||
"action:connect-n-vbds": "Conectar 1 VBD | Conectar {n} VBDs",
|
||||
@@ -151,6 +152,7 @@
|
||||
"action:turn-into-group": "Transformar num grupo",
|
||||
"action:update": "Atualizar",
|
||||
"action:use-query-builder": "Use o construtor de pesquisa",
|
||||
"action:visit-pool-dashboard": "Visite o panel de control da pool",
|
||||
"add-or": "+OR",
|
||||
"admin-login": "Início de sessão como administrador",
|
||||
"admin-password": "Senha do administrador",
|
||||
@@ -255,6 +257,7 @@
|
||||
"confirm-delete": "Está prestes a eliminar {name}",
|
||||
"connect": "Conectar",
|
||||
"connected": "Conectado",
|
||||
"connected-to-ip": "Conectado ao {ip}",
|
||||
"connecting": "Conectando",
|
||||
"connection": "Conexão",
|
||||
"connection-failed": "Conexão falhou",
|
||||
@@ -334,6 +337,7 @@
|
||||
"exit-fullscreen": "Sair do mode ecrã inteiro",
|
||||
"expiration-date": "Data de expiração",
|
||||
"export-vms-manually-information": "Algumas exportações de máquinas virtuais não conseguiram iniciar automaticamente, provavelmente devido às configurações do seu navegador. Para as exportar, deve clicar em cada uma delas. (Em alternativa, pode também copiar o link.)",
|
||||
"failed": "Falhou",
|
||||
"failure": "Falha",
|
||||
"fast-clone": "Clone rápido",
|
||||
"fetching-fresh-data": "Obtendo dados atualizados",
|
||||
@@ -517,6 +521,7 @@
|
||||
"n-hosts-awaiting-patch": "{n} O servidor está à espera deste patch | {n} Os servidores estão à espera desta atualização",
|
||||
"n-missing": "{n} em falta",
|
||||
"n-percent": "{n}%",
|
||||
"n-subtasks": "1 subtarefa | {n} subtarefas",
|
||||
"n-vms": "1 VM | {n} VMs",
|
||||
"name": "Nome",
|
||||
"nested-virtualization": "Nested virtualization",
|
||||
@@ -629,7 +634,12 @@
|
||||
"pifs-status": "Estado do PIF",
|
||||
"please-confirm-to-continue": "Esta ação não pode ser revertida. Tem a certeza de que deseja continuar?",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Ocorreu um erro ao ligar-se a pool. O nome de utilizador ou a palavra-passe parecem estar incorretos.",
|
||||
"pool-connection-error-duplicate": "Ocorreu um erro ao estabelecer a ligação a pool. Parece que já está ligada.",
|
||||
"pool-connection-error-host-not-found": "Ocorreu um erro ao ligar-se a pool. O endereço da pool parece não existir. Altere o endereço IP e tente novamente.",
|
||||
"pool-connection-error-invalid-parameters": "Ocorreu um erro ao estabelecer ligação a pool. Os parâmetros fornecidos parecem não ser válidos. Verifique o endereço IP e as credenciais e tente novamente.",
|
||||
"pool-connection-ip-info": "Indique o endereço do servidor principal da pool ao qual pretende ligar-se.",
|
||||
"pool-connection-success": "Conectou-se com sucesso a pool. Agora pode encontrá-lo na sua árvore de visualização e começar a gerir os seus hosts e máquinas virtuais.",
|
||||
"pool-cpu-usage": "Utilização da CPU da pool",
|
||||
"pool-management": "Gestão da pool",
|
||||
"pool-ram-usage": "Utilização da memória RAM do pool",
|
||||
@@ -803,6 +813,10 @@
|
||||
"task:ended": "@:ended",
|
||||
"task:started": "@:started",
|
||||
"tasks": "Tarefas",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Visão geral das tarefas",
|
||||
"template": "Modelo",
|
||||
"template-has-bios-strings": "O template já contém BIOS strings",
|
||||
"theme": "Tema",
|
||||
@@ -838,6 +852,7 @@
|
||||
"total-used": "Total utilizado",
|
||||
"total-used:": "Total utilizado:",
|
||||
"translation-tool": "Ferramenta de tradução",
|
||||
"unable-to-connect-to": "Não é possível estabelecer ligação com {ip}",
|
||||
"unable-to-connect-to-the-pool": "Não é possível estabelecer ligação a pool",
|
||||
"unable-to-connect-to-xo-server": "Não foi possível estabelecer ligação com o servidor XO.",
|
||||
"unknown": "Desconhecido",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "Закрыть",
|
||||
"action:confirm": "Подтвердить",
|
||||
"action:connect": "Подключить",
|
||||
"action:connect-another-pool": "Подключить другой пул",
|
||||
"action:connect-n": "Подключить {n}",
|
||||
"action:connect-n-srs": "Подключить 1 SR | Подключить {n} SR'ов",
|
||||
"action:connect-n-vbds": "Подключить 1 VBD | Подключить {n} VBD",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "Преобразовать в группу",
|
||||
"action:update": "Обновить",
|
||||
"action:use-query-builder": "Использовать конструктор запросов",
|
||||
"action:visit-pool-dashboard": "Перейти к дашборду пула",
|
||||
"add-or": "+ИЛИ",
|
||||
"admin-login": "Логин администратора",
|
||||
"admin-password": "Пароль администратора",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "Хлебные крошки",
|
||||
"ascending": "по возрастанию",
|
||||
"attach-vdi": "Прикрепить существующий VDI",
|
||||
"attach-vdi:error-message": "Произошла ошибка при прикреплении VDI. Проверьте параметры конфигурации (SR, VDI, режим), состояние ВМ и повторите попытку.",
|
||||
"attaching-vdi": "Прикрепление VDI",
|
||||
"auto-generated": "Автоматически сгенерированный",
|
||||
"auto-power": "Автовключение",
|
||||
"available": "Доступно",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "Подключиться",
|
||||
"connected": "Подключен",
|
||||
"connected-srs": "Подключенные SR",
|
||||
"connected-to-ip": "Подключиться к {ip}",
|
||||
"connecting": "соединяется | Соединения",
|
||||
"connection": "соединение",
|
||||
"connection-failed": "Соединение неудачно",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "Созданный",
|
||||
"created-on": "Создан на",
|
||||
"creating-new-network": "Создание новой сети",
|
||||
"creating-new-traffic-rule": "Создание нового правила для трафика",
|
||||
"creating-new-vdi": "Создание нового VDI",
|
||||
"creating-new-vif": "Создание нового VIF",
|
||||
"creation-date": "Дата создания",
|
||||
"cron-pattern": "Паттерн cron",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "Выйти из полноэкранного режима",
|
||||
"expiration-date": "Срок годности",
|
||||
"export-vms-manually-information": "Экспорт некоторых ВМ не получилось запустить автоматически, вероятно, из-за ваших настроек браузера. Для экспорта, нажмите на каждую ВМ. (Либо же, скопируйте ссылку.)",
|
||||
"failed": "Неуспех",
|
||||
"failure": "Критическая ошибка",
|
||||
"fast-clone": "Быстрое клонирование",
|
||||
"fast-clone-available": "Быстрое клонирование доступно только для остановленных ВМ.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n} %",
|
||||
"n-snapshots": "1 снапшот | {n} снапшотов",
|
||||
"n-srs": "1 SR | {n} SR",
|
||||
"n-subtasks": "1 подзадача | {n} подзадач",
|
||||
"n-traffic-rules": "1 правило для трафика | {n} правил для трафика",
|
||||
"n-vbds": "1 VBD | {n} VBD",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "Произошла ошибка при создании сети. Проверьте параметры конфигурации (имя, тип, VLAN), доступность хоста и повторите попытку.",
|
||||
"new-network:select-interface": "Выберите интерфейс",
|
||||
"new-traffic-rule:add": "Добавить новое правило для трафика",
|
||||
"new-traffic-rule:error-message": "Произошла ошибка при создании правила для трафика. Проверьте параметры конфигурации и повторите попытку.",
|
||||
"new-vdi:accepted-formats": "Допустимые форматы: {formats}",
|
||||
"new-vdi:add": "Добавить новый VDI",
|
||||
"new-vdi:error-message": "Произошла ошибка при создании VDI. Проверьте параметры конфигурации (имя, хранилище, выделенное пространство) и повторите попытку.",
|
||||
"new-vif": "Новый VIF",
|
||||
"new-vif:add": "Добавить новый VIF",
|
||||
"new-vif:error-message": "Произошла ошибка при создании VIF. Проверьте параметры конфигурации и повторите попытку.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "Пожалуйста, подождите",
|
||||
"policy": "Политика",
|
||||
"pool": "Пул",
|
||||
"pool-connection-error-auth-failed": "Произошла ошибка при подключении к пулу. Похоже, имя пользователя или пароль неверны.",
|
||||
"pool-connection-error-duplicate": "Произошла ошибка при подключении к пулу. Похоже, этот пул уже подключен.",
|
||||
"pool-connection-error-host-not-found": "Произошла ошибка при подключении к пулу. Похоже, адрес этого пула не существует. Измените IP и повторите попытку.",
|
||||
"pool-connection-error-invalid-parameters": "Произошла ошибка при подключении к пулу. Похоже, указанные параметры недопустимы. Проверьте IP-адрес и учетные данные, затем повторите попытку.",
|
||||
"pool-connection-ip-info": "Укажите адрес основного хоста пула, к которому вы хотите подключиться.",
|
||||
"pool-connection-success": "Вы успешно подключились к пулу. Теперь он отображается в дереве, и вы можете начать управлять своими хостами и ВМ.",
|
||||
"pool-cpu-usage": "Использование CPU пула",
|
||||
"pool-disconnect-info": "Вы больше не сможете управлять этим пулом из XO. Вы можете подключить его снова позже.",
|
||||
"pool-forget-confirm-info": "Этот хост будет безвозвратно удален из XO. Чтобы снова подключиться, вам нужно будет добавить его заново.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Задачи",
|
||||
"tasks-page": "странице задач",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Обзор задач",
|
||||
"template": "Шаблон",
|
||||
"template-has-bios-strings": "Шаблон уже содержит настройки BIOS",
|
||||
"theme": "Тема",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "Дерево",
|
||||
"trigger": "Триггер",
|
||||
"type": "Тип",
|
||||
"unable-to-attach-vdi": "Не удалось прикрепить VDI",
|
||||
"unable-to-connect": "Не удалось подключиться",
|
||||
"unable-to-connect-to": "Не удалось подключиться к {ip}",
|
||||
"unable-to-connect-to-the-pool": "Не удалось подключиться к пулу",
|
||||
"unable-to-connect-to-xo-server": "Не удалось подключиться к серверу XO.",
|
||||
"unable-to-create-new-bonded-network": "Не удалось создать новую объединенную сеть",
|
||||
"unable-to-create-new-internal-network": "Не удалось создать новую внутреннюю сеть",
|
||||
"unable-to-create-new-network": "Не удалось создать новую сеть",
|
||||
"unable-to-create-new-traffic-rule": "Не удалось создать новое правило для трафика",
|
||||
"unable-to-create-new-vdi": "Не удалось создать новый VDI",
|
||||
"unable-to-create-new-vif": "Не удалось создать новый VIF",
|
||||
"unable-to-delete-network": "Не удалось удалить сеть",
|
||||
"unable-to-duplicate-vm": "Не удалось дублировать ВМ",
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
"action:close": "Zatvoriť",
|
||||
"action:confirm": "Potvrdiť",
|
||||
"action:connect": "Pripojiť",
|
||||
"action:connect-another-pool": "Pripojiť ďalší fond",
|
||||
"action:connect-n": "Pripojiť {n}",
|
||||
"action:connect-n-srs": "Pripojiť 1 repozitár úložiska | Pripojiť {n} repozitára úložiska | Pripojiť {n} repozitárov úložiska",
|
||||
"action:connect-n-vbds": "Pripojiť 1 virtuálne blokové zariadenie | Pripojiť {n} blokové zariadenia | Pripojiť {n} blokových zariadení",
|
||||
@@ -153,6 +154,7 @@
|
||||
"action:turn-into-group": "Premeniť na skupinu",
|
||||
"action:update": "Aktualizovať",
|
||||
"action:use-query-builder": "Použiť nástroj na zostavovanie otázok",
|
||||
"action:visit-pool-dashboard": "Prejsť na prehľad fondu",
|
||||
"add-or": "+ALEBO",
|
||||
"admin-login": "Prihlasovacie meno správcu",
|
||||
"admin-password": "Heslo správca",
|
||||
@@ -189,6 +191,8 @@
|
||||
"aria:breadcrumb:label": "Omrvinková navigácia",
|
||||
"ascending": "vzostupne",
|
||||
"attach-vdi": "Pripojiť existujúci obraz virt. disku",
|
||||
"attach-vdi:error-message": "Došlo k chybe pri pripájaní obrazu virt. disku. Skontrolujte nastavenia (repozitár úložiska, obraz virt. disku, režim), overte stav virt. stroje a skúste to znova.",
|
||||
"attaching-vdi": "Pripája sa obraz virt. disku",
|
||||
"auto-generated": "Automaticky generované",
|
||||
"auto-power": "Automatické zapínanie",
|
||||
"available": "K dispozícii",
|
||||
@@ -269,6 +273,7 @@
|
||||
"connect": "Pripojiť",
|
||||
"connected": "Pripojené",
|
||||
"connected-srs": "Pripojené repozitáre úložiska",
|
||||
"connected-to-ip": "Pripojené k {ip}",
|
||||
"connecting": "Pripájanie",
|
||||
"connection": "Pripojenie",
|
||||
"connection-failed": "Pripojenie zlyhalo",
|
||||
@@ -299,6 +304,8 @@
|
||||
"created-by": "Vytvoril/a",
|
||||
"created-on": "Vytvorené",
|
||||
"creating-new-network": "Vytváranie novej siete",
|
||||
"creating-new-traffic-rule": "Vytvoriť nové pravidlo pre prevádzku",
|
||||
"creating-new-vdi": "Vytvára sa nový obraz virt. disku",
|
||||
"creating-new-vif": "Vytváranie nového virt. sieťového rozhrania",
|
||||
"creation-date": "Dátum vytvorenia",
|
||||
"cron-pattern": "Vzorec plánovania (cron)",
|
||||
@@ -370,6 +377,7 @@
|
||||
"exit-fullscreen": "Ukončiť režim celej obrazovky",
|
||||
"expiration-date": "Dátum expirácie",
|
||||
"export-vms-manually-information": "Niektoré exporty virt. strojov nebolo možné spustiť automaticky – najskôr kvôli nastaveniu vami využívaného prehliadača. Ak ich chcete exportovať, kliknite na každý z nich. (Prípadne skopírujte aj odkaz.)",
|
||||
"failed": "Neúspešné",
|
||||
"failure": "Zlyhanie",
|
||||
"fast-clone": "Rýchly klon",
|
||||
"fast-clone-available": "Rýchly klon je k dispozícii iba pre zastavené virt. stroje.",
|
||||
@@ -717,6 +725,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 zachytený stav | {n} zachytené stavy | {n} zachytených stavov",
|
||||
"n-srs": "1 repozitár úložiska | {n} repozitára úložiska | {n} repozitárov úložiska",
|
||||
"n-subtasks": "1 podúloha | {n} podúlohy | {n} podúloh",
|
||||
"n-traffic-rules": "1 pravidlo pre prevádzku | {n} pravidlá pre prevádzku | {n} pravidiel pre prevádzku",
|
||||
"n-vbds": "1 virt. blokové zariadenie | {n} virt. blokové zariadenia | {n} virt. blokových zariadení",
|
||||
"n-vcpus": "1 virt. procesor | {n} virt. procesory | {n} virt. procesorov",
|
||||
@@ -749,8 +758,10 @@
|
||||
"new-network:error-message": "Pri vytváraní siete došlo k chybe. Skontrolujte vami vykonané nastavenia (názov, typ, VLAN), overte či je hostiteľ dosiahnuteľný a skúste to znova.",
|
||||
"new-network:select-interface": "Vyberte rozhranie",
|
||||
"new-traffic-rule:add": "Pridať nové pravidlo pre prevádzku",
|
||||
"new-traffic-rule:error-message": "Pri vytváraní pravidla pre prevádzku došlo k chybe. Skontrolujte nastavenia a skúste to znova.",
|
||||
"new-vdi:accepted-formats": "Prijímané formáty: {formats}",
|
||||
"new-vdi:add": "Pridať nový obraz virt. disku",
|
||||
"new-vdi:error-message": "Pri pridávaní obrazu virt. disku došlo k chybe. Skontrolujte nastavenie (názov, repozitár úložiska, pridelený priestor) a skúste to znova.",
|
||||
"new-vif": "Nové VIF",
|
||||
"new-vif:add": "Pridať nové virt. sieťové rozhranie",
|
||||
"new-vif:error-message": "Došlo k chybe pri vytváraní nového virt. sieťového rozhrania. Skontrolujte nastavenia a skúste to znova.",
|
||||
@@ -877,7 +888,12 @@
|
||||
"please-wait": "Čakajte prosím",
|
||||
"policy": "Zásada",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Pri pripájaní k fondu došlo k chybe. Zdá sa, že užívateľské meno alebo heslo nie je správne.",
|
||||
"pool-connection-error-duplicate": "Pri pripájaní k fondu došlo k chybe. Zdá sa, že už je pripojený.",
|
||||
"pool-connection-error-host-not-found": "Pri pripájaní k fondu došlo k chybe. Zdá sa, že adresa tohto fondu neexistuje. Zadajte inú a skúste to znova.",
|
||||
"pool-connection-error-invalid-parameters": "Pri pripájaní k fondu došlo k chybe. Zdá sa, že zadané parametre nie sú platné. Skontrolujte IP adresu a prihlasovacie údaje a potom to skúste znova.",
|
||||
"pool-connection-ip-info": "Zadajte adresu hlavného hostiteľa fondu, ku ktorému sa chcete pripojiť.",
|
||||
"pool-connection-success": "Úspešne ste pripojili fond. Nájdete ho v stromovom pohľade a môžete začať spravovať hostiteľa a virt. stroje v ňom.",
|
||||
"pool-cpu-usage": "Využitie procesorov fondu",
|
||||
"pool-disconnect-info": "Tento fond už nebudete môcť spravovať z Xen Orchestra. Je možné ho neskôr znova pripojiť.",
|
||||
"pool-forget-confirm-info": "Toto hostiteľa nenávratne odoberie z Xen Orchestra. Pre opätovné pripojenie bude potrebné ho pridať odznova.",
|
||||
@@ -1099,6 +1115,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Úlohy",
|
||||
"tasks-page": "Stránka Úlohy",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Prehľad úloh",
|
||||
"template": "Šablóna",
|
||||
"template-has-bios-strings": "Šablóna už obsahuje reťazce BIOSu",
|
||||
"theme": "Téma",
|
||||
@@ -1147,11 +1167,15 @@
|
||||
"treeview": "Stromové zobrazenie",
|
||||
"trigger": "Spúšťač",
|
||||
"type": "Typ",
|
||||
"unable-to-attach-vdi": "Obraz virt. disku nebolo možné pripojiť",
|
||||
"unable-to-connect-to": "Nebolo možné sa pripojiť k {ip}",
|
||||
"unable-to-connect-to-the-pool": "Nebolo možné sa pripojiť k fondu",
|
||||
"unable-to-connect-to-xo-server": "Nedá sa pripojiť k serveru XO.",
|
||||
"unable-to-create-new-bonded-network": "Nebolo možné vytvoriť novú spriahnutú sieť",
|
||||
"unable-to-create-new-internal-network": "Nebolo možné vytvoriť novú internú sieť",
|
||||
"unable-to-create-new-network": "Nebolo možné vytvoriť novú sieť",
|
||||
"unable-to-create-new-traffic-rule": "Nebolo možné vytvoriť nové pravidlo pre prevádzku",
|
||||
"unable-to-create-new-vdi": "Nebolo možné vytvoriť nový obraz virt. disku",
|
||||
"unable-to-create-new-vif": "Nebolo možné vytvoriť nové virt. sieťové rozhranie",
|
||||
"unable-to-delete-network": "Sieť nebolo možné zmazať",
|
||||
"unable-to-duplicate-vm": "Nebolo možné zduplikovať virt. stroj",
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"action:change-state": "Ändra",
|
||||
"action:close": "Stäng",
|
||||
"action:connect": "Anslut",
|
||||
"action:connect-another-pool": "Anslut annan pool",
|
||||
"action:connect-n": "Anslut {n}",
|
||||
"action:connect-n-srs": "Anslut 1 SR | Anslut {n} SRer",
|
||||
"action:connect-n-vbds": "Anslut 1 VBD | Anslut {n} VBD:er",
|
||||
@@ -147,6 +148,7 @@
|
||||
"action:turn-into-group": "Gör om till grupp",
|
||||
"action:update": "Uppdatera",
|
||||
"action:use-query-builder": "Använd frågebyggaren",
|
||||
"action:visit-pool-dashboard": "Besök pool-översikten",
|
||||
"add-or": "+ELLER",
|
||||
"admin-login": "Admin-inloggning",
|
||||
"admin-password": "Admin-lösenord",
|
||||
@@ -183,6 +185,8 @@
|
||||
"aria:breadcrumb:label": "Spår",
|
||||
"ascending": "stigande",
|
||||
"attach-vdi": "Fäst befintlig VDI",
|
||||
"attach-vdi:error-message": "Ett fel uppstod när VDI anslöts. Vänligen kontrollera dina konfigurationsinställningar (SR, VDI, läge), verifiera VM-tillståndet och försök igen.",
|
||||
"attaching-vdi": "Fäster VDI",
|
||||
"auto-generated": "Automatiskt generad",
|
||||
"auto-power": "Automatisk strömpåslagning",
|
||||
"available": "Tillgänglig",
|
||||
@@ -262,6 +266,7 @@
|
||||
"confirm-vm-revert": "Bekräfta backning av VM",
|
||||
"connect": "Anslut",
|
||||
"connected": "Ansluten",
|
||||
"connected-to-ip": "Anslut till {ip}",
|
||||
"connecting": "Ansluter",
|
||||
"connection": "Anslutning",
|
||||
"connection-failed": "Anslutning misslyckades",
|
||||
@@ -292,6 +297,8 @@
|
||||
"created-by": "Skapad av",
|
||||
"created-on": "Skapad",
|
||||
"creating-new-network": "Skapa nytt nätverk",
|
||||
"creating-new-traffic-rule": "Skapa en ny trafikregel",
|
||||
"creating-new-vdi": "Skapar ny VDI",
|
||||
"creating-new-vif": "Skapar ny VIF",
|
||||
"creation-date": "Skapelsedatum",
|
||||
"cron-pattern": "Cron-mönster",
|
||||
@@ -362,6 +369,7 @@
|
||||
"exit-fullscreen": "Stäng fullskärm",
|
||||
"expiration-date": "Utgångsdatum",
|
||||
"export-vms-manually-information": "Vissa VM-exporter kunde inte startas automatiskt, troligen på grund av dina webbläsarinställningar. För att exportera dem, klicka på varje VM. (Alternativt, kopiera länken.)",
|
||||
"failed": "Misslyckades",
|
||||
"failure": "Misslyckande",
|
||||
"fast-clone": "Snabb-kloning",
|
||||
"fast-clone-available": "Snabbkloning är endast tillgängligt för stoppade VMar.",
|
||||
@@ -702,6 +710,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 ögonblicksbild | {n} ögonblicksbilder",
|
||||
"n-srs": "1 SR | {n} SRs",
|
||||
"n-subtasks": "1 underuppgift | {n} underuppgifter",
|
||||
"n-traffic-rules": "1 trafik regel |{n} trafikregler",
|
||||
"n-vbds": "1 VBD | {n} VBD:er",
|
||||
"n-vcpus": "1 vCPU | {n} vCPUs",
|
||||
@@ -733,8 +742,10 @@
|
||||
"new-network:error-message": "Ett fel uppstod när nätverket skapades. Vänligen kontrollera konfigurationens inställningar (namn, typ, VLAN), bekräfta host:ens tillgänglighet och försök igen.",
|
||||
"new-network:select-interface": "Välj ett gränssnitt",
|
||||
"new-traffic-rule:add": "Ska en ny trafikregel",
|
||||
"new-traffic-rule:error-message": "Ett fel inträffade när trafikregeln skapades. Vänligen undersök din konfiguration och försök på nytt.",
|
||||
"new-vdi:accepted-formats": "Accepterade format: {formats}",
|
||||
"new-vdi:add": "Lägg till en ny VDI",
|
||||
"new-vdi:error-message": "Ett fel inträffade när VDIn skulle skapas. Vänligen undersök dina inställningar (namne, SR, allokerat utrymme) och försök på nytt.",
|
||||
"new-vif": "Ny VIF",
|
||||
"new-vif:add": "Skapa ny VIF",
|
||||
"new-vif:error-message": "Ett fel inträffade när VIF skulle skapas. Vänligen undersök din konfiguration och försök på nytt.",
|
||||
@@ -842,7 +853,12 @@
|
||||
"please-wait": "Vänligen vänta",
|
||||
"policy": "Princip",
|
||||
"pool": "Pool",
|
||||
"pool-connection-error-auth-failed": "Ett fel uppstod vid anslutning till poolen. Användarnamnet eller lösenordet verkar vara fel.",
|
||||
"pool-connection-error-duplicate": "Ett fel uppstod under anslutning till poolen. Poolen verkar redan ansluten.",
|
||||
"pool-connection-error-host-not-found": "Ett fel uppstod vid anslutning till poolen. Pool-addressen verkar inte existera. Vänligen byt IP och testa igen.",
|
||||
"pool-connection-error-invalid-parameters": "Ett fel uppstod vid anslutning till poolen. Parametrarna verkar inte giltiga. Vänligen bekräfta IP-adressen och användarnamn och lösenord, försök sedan igen.",
|
||||
"pool-connection-ip-info": "Ange IP-adressen till den primära hosten vars pool du vill ansluta till.",
|
||||
"pool-connection-success": "Du har lyckats ansluta till poolen. Du kan nu hitta den i trädvyn och börja hantera dina hostar och VMar.",
|
||||
"pool-cpu-usage": "Användning av CPU-pool",
|
||||
"pool-management": "Pool-hantering",
|
||||
"pool-ram-usage": "Användning av RAM-pool",
|
||||
@@ -1024,6 +1040,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Uppgifter",
|
||||
"tasks-page": "Uppgiftssida",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Uppgifter snabbvy",
|
||||
"template": "Mall",
|
||||
"template-has-bios-strings": "Den här mallen innehåller redan BIOS-strängar",
|
||||
"theme": "Tema",
|
||||
@@ -1065,11 +1085,14 @@
|
||||
"trigger": "Utlösare",
|
||||
"type": "Typ",
|
||||
"unable-to-connect": "Kan inte ansluta",
|
||||
"unable-to-connect-to": "Kan inte ansluta till {ip}",
|
||||
"unable-to-connect-to-the-pool": "Kunde inte ansluta till poolen",
|
||||
"unable-to-connect-to-xo-server": "Kan inte ansluta till XO server.",
|
||||
"unable-to-create-new-bonded-network": "Kan inte skapa nytt bundet nätverk",
|
||||
"unable-to-create-new-internal-network": "Kan inte skapa nytt internt nätverk",
|
||||
"unable-to-create-new-network": "Kan inte skapa nytt nätverk",
|
||||
"unable-to-create-new-traffic-rule": "Kan inte skapa ny trafikregel",
|
||||
"unable-to-create-new-vdi": "Kunde inte skapa ny VDI",
|
||||
"unable-to-create-new-vif": "Kunde inte skapa ny VIF",
|
||||
"unable-to-delete-network": "Kan inte radera nätverk",
|
||||
"unable-to-duplicate-vm": "Kunde inte duplicera VM",
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
"action:close": "Kapat",
|
||||
"action:confirm": "Onayla",
|
||||
"action:connect": "Bağlan",
|
||||
"action:connect-another-pool": "Başka bir havuza bağlan",
|
||||
"action:connect-n": "{n} bağla",
|
||||
"action:connect-n-srs": "1 SR bağla | {n} SR bağla",
|
||||
"action:connect-n-vbds": "1 VBD bağla | {n} VBD bağla",
|
||||
@@ -151,6 +152,7 @@
|
||||
"action:turn-into-group": "Gruba dönüştür",
|
||||
"action:update": "Güncelle",
|
||||
"action:use-query-builder": "Sorgu oluşturucuyu kullan",
|
||||
"action:visit-pool-dashboard": "Havuz gösterge paneline git",
|
||||
"add-or": "+VEYA",
|
||||
"admin-login": "Yönetici girişi",
|
||||
"admin-password": "Yönetici parolası",
|
||||
@@ -187,6 +189,8 @@
|
||||
"aria:breadcrumb:label": "Gezinti yolu",
|
||||
"ascending": "artan",
|
||||
"attach-vdi": "Mevcut VDI'yı bağla",
|
||||
"attach-vdi:error-message": "VDI bağlanırken bir hata oluştu. Yapılandırma ayarlarınızı (SR, VDI, mod) gözden geçirin, VM durumunu doğrulayın ve yeniden deneyin.",
|
||||
"attaching-vdi": "VDI bağlanıyor",
|
||||
"auto-generated": "Otomatik oluşturuldu",
|
||||
"auto-power": "Otomatik güç",
|
||||
"available": "Kullanılabilir",
|
||||
@@ -267,6 +271,7 @@
|
||||
"connect": "Bağlan",
|
||||
"connected": "Bağlı",
|
||||
"connected-srs": "Bağlı SR'ler",
|
||||
"connected-to-ip": "{ip} adresine bağlı",
|
||||
"connecting": "Bağlanıyor",
|
||||
"connection": "Bağlantı",
|
||||
"connection-failed": "Bağlantı başarısız",
|
||||
@@ -297,6 +302,8 @@
|
||||
"created-by": "Oluşturan",
|
||||
"created-on": "Oluşturulduğu tarih",
|
||||
"creating-new-network": "Yeni ağ oluşturuluyor",
|
||||
"creating-new-traffic-rule": "Yeni trafik kuralı oluşturuluyor",
|
||||
"creating-new-vdi": "Yeni VDI oluşturuluyor",
|
||||
"creating-new-vif": "Yeni VIF oluşturuluyor",
|
||||
"creation-date": "Oluşturulma tarihi",
|
||||
"cron-pattern": "Cron deseni",
|
||||
@@ -368,6 +375,7 @@
|
||||
"exit-fullscreen": "Tam ekrandan çık",
|
||||
"expiration-date": "Sona erme tarihi",
|
||||
"export-vms-manually-information": "Bazı VM dışa aktarımları, muhtemelen tarayıcı ayarlarınız nedeniyle otomatik olarak başlatılamadı. Dışa aktarmak için her birine tıklamanız gerekir. (Alternatif olarak bağlantıyı da kopyalayabilirsiniz.)",
|
||||
"failed": "Başarısız",
|
||||
"failure": "Başarısızlık",
|
||||
"fast-clone": "Hızlı klon",
|
||||
"fast-clone-available": "Hızlı klon yalnızca durdurulmuş VM'ler için kullanılabilir.",
|
||||
@@ -714,6 +722,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1 anlık görüntü | {n} anlık görüntü",
|
||||
"n-srs": "1 SR | {n} SR",
|
||||
"n-subtasks": "1 alt görev | {n} alt görev",
|
||||
"n-traffic-rules": "1 trafik kuralı | {n} trafik kuralı",
|
||||
"n-vbds": "1 VBD | {n} VBD",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU",
|
||||
@@ -746,8 +755,10 @@
|
||||
"new-network:error-message": "Ağ oluşturulurken bir hata oluştu. Yapılandırma ayarlarınızı (ad, tür, VLAN) gözden geçirin, host kullanılabilirliğini doğrulayın ve yeniden deneyin.",
|
||||
"new-network:select-interface": "Bir arayüz seçin",
|
||||
"new-traffic-rule:add": "Yeni trafik kuralı ekle",
|
||||
"new-traffic-rule:error-message": "Trafik kuralı oluşturulurken bir hata oluştu. Yapılandırma ayarlarınızı gözden geçirin ve yeniden deneyin.",
|
||||
"new-vdi:accepted-formats": "Kabul edilen biçimler: {formats}",
|
||||
"new-vdi:add": "Yeni VDI ekle",
|
||||
"new-vdi:error-message": "VDI oluşturulurken bir hata oluştu. Yapılandırma ayarlarınızı (ad, depolama deposu, ayrılan alan) gözden geçirin ve yeniden deneyin.",
|
||||
"new-vif": "Yeni VIF",
|
||||
"new-vif:add": "Yeni VIF ekle",
|
||||
"new-vif:error-message": "VIF oluşturulurken bir hata oluştu. Yapılandırma ayarlarınızı gözden geçirin ve yeniden deneyin.",
|
||||
@@ -874,7 +885,12 @@
|
||||
"please-wait": "Lütfen bekleyin",
|
||||
"policy": "Politika",
|
||||
"pool": "Havuz",
|
||||
"pool-connection-error-auth-failed": "Havuza bağlanırken bir hata oluştu. Kullanıcı adı veya parola hatalı görünüyor.",
|
||||
"pool-connection-error-duplicate": "Havuza bağlanırken bir hata oluştu. Bu havuz zaten bağlı görünüyor.",
|
||||
"pool-connection-error-host-not-found": "Havuza bağlanırken bir hata oluştu. Bu havuzun adresi mevcut görünmüyor. Lütfen IP adresini değiştirip yeniden deneyin.",
|
||||
"pool-connection-error-invalid-parameters": "Havuza bağlanırken bir hata oluştu. Sağlanan parametreler geçerli görünmüyor. Lütfen IP adresini ve kimlik bilgilerini kontrol edip yeniden deneyin.",
|
||||
"pool-connection-ip-info": "Bağlanmak istediğiniz havuzun birincil hostunun adresini girin.",
|
||||
"pool-connection-success": "Havuza başarıyla bağlandınız. Artık ağaç görünümünde bulabilir, hostlarınızı ve VM'lerinizi yönetmeye başlayabilirsiniz.",
|
||||
"pool-cpu-usage": "Havuz CPU kullanımı",
|
||||
"pool-disconnect-info": "Bu havuzu artık XO üzerinden yönetemeyeceksiniz. Daha sonra yeniden bağlayabilirsiniz.",
|
||||
"pool-forget-confirm-info": "Bu işlem, bu hostu XO'dan kalıcı olarak kaldırır. Yeniden bağlanmak için tekrar eklemeniz gerekir.",
|
||||
@@ -1089,6 +1105,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Görevler",
|
||||
"tasks-page": "Görevler sayfası",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Görevlere genel bakış",
|
||||
"template": "Şablon",
|
||||
"template-has-bios-strings": "Şablon zaten BIOS dizelerini içeriyor",
|
||||
"theme": "Tema",
|
||||
@@ -1137,11 +1157,15 @@
|
||||
"treeview": "Ağaç görünümü",
|
||||
"trigger": "Tetikleyici",
|
||||
"type": "Tür",
|
||||
"unable-to-attach-vdi": "VDI bağlanamadı",
|
||||
"unable-to-connect-to": "{ip} adresine bağlanılamadı",
|
||||
"unable-to-connect-to-the-pool": "Havuza bağlanılamadı",
|
||||
"unable-to-connect-to-xo-server": "XO sunucusuna bağlanılamadı.",
|
||||
"unable-to-create-new-bonded-network": "Yeni bağlı ağ oluşturulamadı",
|
||||
"unable-to-create-new-internal-network": "Yeni dahili ağ oluşturulamadı",
|
||||
"unable-to-create-new-network": "Yeni ağ oluşturulamadı",
|
||||
"unable-to-create-new-traffic-rule": "Yeni trafik kuralı oluşturulamadı",
|
||||
"unable-to-create-new-vdi": "Yeni VDI oluşturulamadı",
|
||||
"unable-to-create-new-vif": "Yeni VIF oluşturulamadı",
|
||||
"unable-to-delete-network": "Ağ silinemedi",
|
||||
"unable-to-duplicate-vm": "VM kopyalanamadı",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"action:close": "Закрити",
|
||||
"action:confirm": "Підтвердити",
|
||||
"action:connect": "Підключити",
|
||||
"action:connect-another-pool": "Підключити інший пул",
|
||||
"action:connect-n": "Підключити {n}",
|
||||
"action:connect-n-srs": "Підключити 1 SR | Підключити {n} SR",
|
||||
"action:connect-n-vbds": "Підключити 1 VBD | Підключити {n} VBD",
|
||||
@@ -161,6 +162,7 @@
|
||||
"action:turn-into-group": "Перетворити на групу",
|
||||
"action:update": "Оновити",
|
||||
"action:use-query-builder": "Використовувати конструктор запитів",
|
||||
"action:visit-pool-dashboard": "Перейти до панелі управління пулом",
|
||||
"add-or": "+АБО",
|
||||
"admin-login": "Логін адміністратора",
|
||||
"admin-password": "Пароль адміністратора",
|
||||
@@ -199,6 +201,8 @@
|
||||
"aria:breadcrumb:label": "Навігаційний ланцюжок",
|
||||
"ascending": "за зростанням",
|
||||
"attach-vdi": "Приєднати наявний VDI",
|
||||
"attach-vdi:error-message": "Під час приєднання VDI сталася помилка. Перевірте налаштування конфігурації (SR, VDI, режим), стан ВМ і спробуйте ще раз.",
|
||||
"attaching-vdi": "Приєднання VDI",
|
||||
"auto-generated": "Автоматично згенерований",
|
||||
"auto-power": "Автоматичне увімкнення",
|
||||
"available": "Доступно",
|
||||
@@ -290,6 +294,7 @@
|
||||
"connect": "Підключитися",
|
||||
"connected": "Підключено",
|
||||
"connected-srs": "Підключені SR",
|
||||
"connected-to-ip": "Підключитися до {ip}",
|
||||
"connecting": "з'єднується",
|
||||
"connection": "з'єднання",
|
||||
"connection-failed": "З'єднання невдале",
|
||||
@@ -321,6 +326,8 @@
|
||||
"created-by": "Створено",
|
||||
"created-on": "Створено на",
|
||||
"creating-new-network": "Створення нової мережі",
|
||||
"creating-new-traffic-rule": "Створення нового правила трафіку",
|
||||
"creating-new-vdi": "Створення нового VDI",
|
||||
"creating-new-vif": "Створення нового VIF",
|
||||
"creation-date": "Дата створення",
|
||||
"cron-pattern": "Патерн cron",
|
||||
@@ -400,6 +407,7 @@
|
||||
"exit-fullscreen": "Вийти з повноекранного режиму",
|
||||
"expiration-date": "Термін придатності",
|
||||
"export-vms-manually-information": "Експорт деяких ВМ не вдалося запустити автоматично, ймовірно, через ваші налаштування браузера. Для експорту натисніть на кожну ВМ. (Або скопіюйте посилання.)",
|
||||
"failed": "Не вдалося",
|
||||
"failure": "Критична помилка",
|
||||
"fast-clone": "Швидке клонування",
|
||||
"fast-clone-available": "Швидке клонування доступне лише для зупинених ВМ.",
|
||||
@@ -767,6 +775,7 @@
|
||||
"n-percent": "{n} %",
|
||||
"n-snapshots": "1 знімок | {n} знімків",
|
||||
"n-srs": "1 SR | {n} SR",
|
||||
"n-subtasks": "1 підзавдання | {n} підзавдань",
|
||||
"n-traffic-rules": "1 правило трафіку | {n} правил трафіку",
|
||||
"n-vbds": "1 VBD | {n} VBD",
|
||||
"n-vcpus": "1 vCPU | {n} vCPU",
|
||||
@@ -799,8 +808,10 @@
|
||||
"new-network:error-message": "Під час створення мережі сталася помилка. Перевірте налаштування конфігурації (назва, тип, VLAN), доступність вузла і спробуйте ще раз.",
|
||||
"new-network:select-interface": "Виберіть інтерфейс",
|
||||
"new-traffic-rule:add": "Додати нове правило трафіку",
|
||||
"new-traffic-rule:error-message": "Під час створення правила трафіку сталася помилка. Перевірте налаштування конфігурації і спробуйте ще раз.",
|
||||
"new-vdi:accepted-formats": "Підтримувані формати: {formats}",
|
||||
"new-vdi:add": "Додати новий VDI",
|
||||
"new-vdi:error-message": "Під час створення VDI сталася помилка. Перевірте налаштування конфігурації (назва, репозиторій сховища, виділений простір) і спробуйте ще раз.",
|
||||
"new-vif": "Новий VIF",
|
||||
"new-vif:add": "Додати новий VIF",
|
||||
"new-vif:error-message": "Під час створення VIF сталася помилка. Перевірте налаштування конфігурації і спробуйте ще раз.",
|
||||
@@ -934,7 +945,12 @@
|
||||
"please-wait": "Зачекайте",
|
||||
"policy": "Політика",
|
||||
"pool": "Пул",
|
||||
"pool-connection-error-auth-failed": "Під час підключення до пулу сталася помилка. Ім'я користувача або пароль, схоже, неправильні.",
|
||||
"pool-connection-error-duplicate": "Під час підключення до пулу сталася помилка. Схоже, цей пул уже підключено.",
|
||||
"pool-connection-error-host-not-found": "Під час підключення до пулу сталася помилка. Схоже, адреса цього пулу не існує. Змініть IP і спробуйте ще раз.",
|
||||
"pool-connection-error-invalid-parameters": "Під час підключення до пулу сталася помилка. Схоже, надані параметри недійсні. Перевірте IP-адресу та облікові дані і спробуйте ще раз.",
|
||||
"pool-connection-ip-info": "Вкажіть адресу основного вузла пулу, до якого потрібно підключитися.",
|
||||
"pool-connection-success": "Ви успішно підключилися до пулу. Тепер ви можете знайти його у своєму дереві та почати керувати вузлами і ВМ.",
|
||||
"pool-cpu-usage": "Використання CPU пулу",
|
||||
"pool-disconnect-info": "Ви більше не зможете керувати цим пулом з XO. Ви можете повторно підключити його пізніше.",
|
||||
"pool-forget-confirm-info": "Це остаточно видалить цей вузол з XO. Щоб підключитися повторно, потрібно буде додати його знову.",
|
||||
@@ -1168,6 +1184,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "Завдання",
|
||||
"tasks-page": "сторінці завдань",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "Огляд завдань",
|
||||
"template": "Шаблон",
|
||||
"template-has-bios-strings": "Шаблон вже містить налаштування BIOS",
|
||||
"theme": "Тема",
|
||||
@@ -1217,12 +1237,16 @@
|
||||
"treeview": "Дерево",
|
||||
"trigger": "Тригер",
|
||||
"type": "Тип",
|
||||
"unable-to-attach-vdi": "Не вдалося приєднати VDI",
|
||||
"unable-to-connect": "Не вдалося підключитися",
|
||||
"unable-to-connect-to": "Не вдалося підключитися до {ip}",
|
||||
"unable-to-connect-to-the-pool": "Не вдалося підключитися до пулу",
|
||||
"unable-to-connect-to-xo-server": "Не вдалося підключитися до сервера XO.",
|
||||
"unable-to-create-new-bonded-network": "Не вдалося створити нову об'єднану мережу",
|
||||
"unable-to-create-new-internal-network": "Не вдалося створити нову внутрішню мережу",
|
||||
"unable-to-create-new-network": "Не вдалося створити нову мережу",
|
||||
"unable-to-create-new-traffic-rule": "Не вдалося створити нове правило трафіку",
|
||||
"unable-to-create-new-vdi": "Не вдалося створити новий VDI",
|
||||
"unable-to-create-new-vif": "Не вдалося створити новий VIF",
|
||||
"unable-to-delete-network": "Не вдалося видалити мережу",
|
||||
"unable-to-duplicate-vm": "Не вдалося дублювати ВМ",
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
"action:close": "关闭",
|
||||
"action:confirm": "确认",
|
||||
"action:connect": "连接",
|
||||
"action:connect-another-pool": "连接其他资源池",
|
||||
"action:connect-n": "连接 {n} 项",
|
||||
"action:connect-n-srs": "连接1个存储库 | 连接{n}个存储库",
|
||||
"action:connect-n-vbds": "连接1个VBD | 连接{n}个VBD",
|
||||
@@ -153,6 +154,7 @@
|
||||
"action:turn-into-group": "转为分组",
|
||||
"action:update": "更新",
|
||||
"action:use-query-builder": "使用查询构建器",
|
||||
"action:visit-pool-dashboard": "访问资源池仪表盘",
|
||||
"add-or": "+或",
|
||||
"admin-login": "管理员登录",
|
||||
"admin-password": "管理员密码",
|
||||
@@ -189,6 +191,8 @@
|
||||
"aria:breadcrumb:label": "面包屑导航",
|
||||
"ascending": "升序",
|
||||
"attach-vdi": "挂载现有VDI",
|
||||
"attach-vdi:error-message": "挂载VDI时出错。请检查配置(存储库、VDI、模式),确认虚拟机状态后重试。",
|
||||
"attaching-vdi": "正在挂载VDI",
|
||||
"auto-generated": "自动生成",
|
||||
"auto-power": "自动开机",
|
||||
"available": "可用",
|
||||
@@ -269,6 +273,7 @@
|
||||
"connect": "连接",
|
||||
"connected": "已连接",
|
||||
"connected-srs": "已连接存储库",
|
||||
"connected-to-ip": "已连接 {ip}",
|
||||
"connecting": "正在连接",
|
||||
"connection": "连接",
|
||||
"connection-failed": "连接失败",
|
||||
@@ -299,6 +304,8 @@
|
||||
"created-by": "创建人",
|
||||
"created-on": "创建时间",
|
||||
"creating-new-network": "正在创建新网络",
|
||||
"creating-new-traffic-rule": "正在创建新流量规则",
|
||||
"creating-new-vdi": "正在创建新VDI",
|
||||
"creating-new-vif": "正在创建新VIF",
|
||||
"creation-date": "创建日期",
|
||||
"cron-pattern": "Cron表达式",
|
||||
@@ -370,6 +377,7 @@
|
||||
"exit-fullscreen": "退出全屏",
|
||||
"expiration-date": "过期时间",
|
||||
"export-vms-manually-information": "部分虚拟机无法自动导出,大概率是浏览器限制。你需要逐个点击导出,也可以复制链接手动下载",
|
||||
"failed": "失败",
|
||||
"failure": "失败",
|
||||
"fast-clone": "快速克隆",
|
||||
"fast-clone-available": "快速克隆仅支持关机状态虚拟机。",
|
||||
@@ -717,6 +725,7 @@
|
||||
"n-percent": "{n}%",
|
||||
"n-snapshots": "1个快照 | {n}个快照",
|
||||
"n-srs": "1个存储库 | {n}个存储库",
|
||||
"n-subtasks": "1个子任务 | {n}个子任务",
|
||||
"n-traffic-rules": "1条流量规则 | {n}条流量规则",
|
||||
"n-vbds": "1个VBD | {n}个VBD",
|
||||
"n-vcpus": "1个vCPU | {n}个vCPU",
|
||||
@@ -749,8 +758,10 @@
|
||||
"new-network:error-message": "创建网络失败。检查配置(名称、类型、VLAN)并确认主机可用后重试。",
|
||||
"new-network:select-interface": "选择接口",
|
||||
"new-traffic-rule:add": "添加新流量规则",
|
||||
"new-traffic-rule:error-message": "创建流量规则失败。检查配置并重试。",
|
||||
"new-vdi:accepted-formats": "支持格式:{formats}",
|
||||
"new-vdi:add": "添加新VDI",
|
||||
"new-vdi:error-message": "创建VDI失败。检查配置(名称、存储库、分配空间)并重试。",
|
||||
"new-vif": "新VIF",
|
||||
"new-vif:add": "添加新VIF",
|
||||
"new-vif:error-message": "创建VIF失败。检查配置并重试。",
|
||||
@@ -877,7 +888,12 @@
|
||||
"please-wait": "请稍候",
|
||||
"policy": "策略",
|
||||
"pool": "资源池",
|
||||
"pool-connection-error-auth-failed": "连接资源池失败,用户名或密码错误。",
|
||||
"pool-connection-error-duplicate": "连接资源池失败,该资源池已添加。",
|
||||
"pool-connection-error-host-not-found": "连接资源池失败,地址无法解析,请检查IP并重试。",
|
||||
"pool-connection-error-invalid-parameters": "连接资源池失败,参数无效。检查IP与凭据后重试。",
|
||||
"pool-connection-ip-info": "填写资源池主主机地址。",
|
||||
"pool-connection-success": "资源池连接成功,可在树形视图管理主机与虚拟机。",
|
||||
"pool-cpu-usage": "资源池CPU使用率",
|
||||
"pool-disconnect-info": "XO将不再管理该资源池,可后续重新连接。",
|
||||
"pool-forget-confirm-info": "将永久从XO移除该主机,如需重连需要重新添加。",
|
||||
@@ -1099,6 +1115,10 @@
|
||||
"task:started": "@:started",
|
||||
"tasks": "任务",
|
||||
"tasks-page": "任务页面",
|
||||
"tasks:all": "@:all",
|
||||
"tasks:done": "@:done",
|
||||
"tasks:failed": "@:failed",
|
||||
"tasks:overview": "任务概览",
|
||||
"template": "模板",
|
||||
"template-has-bios-strings": "模板已包含BIOS字符串",
|
||||
"theme": "主题",
|
||||
@@ -1147,11 +1167,15 @@
|
||||
"treeview": "树形视图",
|
||||
"trigger": "触发器",
|
||||
"type": "类型",
|
||||
"unable-to-attach-vdi": "无法挂载VDI",
|
||||
"unable-to-connect-to": "无法连接 {ip}",
|
||||
"unable-to-connect-to-the-pool": "无法连接资源池",
|
||||
"unable-to-connect-to-xo-server": "无法连接XO服务器。",
|
||||
"unable-to-create-new-bonded-network": "无法创建绑定网络",
|
||||
"unable-to-create-new-internal-network": "无法创建内部网络",
|
||||
"unable-to-create-new-network": "无法创建网络",
|
||||
"unable-to-create-new-traffic-rule": "无法创建流量规则",
|
||||
"unable-to-create-new-vdi": "无法创建VDI",
|
||||
"unable-to-create-new-vif": "无法创建VIF",
|
||||
"unable-to-delete-network": "无法删除网络",
|
||||
"unable-to-duplicate-vm": "无法克隆虚拟机",
|
||||
|
||||
@@ -5,63 +5,46 @@ This composable manages a collection of filterable form options to be used with
|
||||
## Usage
|
||||
|
||||
```typescript
|
||||
const { id, selectedValue } = useFormSelect(sources, {
|
||||
model: selectedSourceId, // optional, kept in sync with the selection
|
||||
option: {
|
||||
value: 'id', // optional if the source has a `value` or `id` property
|
||||
label: 'name', // optional if the source has a `label` property
|
||||
disabled: source => source.status === 'offline', // optional, defaults to false
|
||||
},
|
||||
placeholder: 'Select an item',
|
||||
searchable: true,
|
||||
const { searchTerm, options, selectedOptions, selectedValues } = useFormSelect(sources, {
|
||||
properties: source => ({
|
||||
value: source.id, // optional if source has a `value` or `ìd` property
|
||||
label: source.name, // optional if source has a `label` property
|
||||
searchableTerm: [source.name, source.code], // optional, defaults to the label
|
||||
disabled: source.state == 'offline', // optional, defaults to false
|
||||
}),
|
||||
multiple: false,
|
||||
})
|
||||
```
|
||||
|
||||
`useFormSelect` provides the select under its `id`: render it with `<VtsSelect :id accent="neutral" />` in the same component or below it.
|
||||
|
||||
## Parameters
|
||||
|
||||
| | Required | Type | Default | Description |
|
||||
| --------- | :------: | ----------------------------- | ------- | --------------------------------------------------------- |
|
||||
| `sources` | ✓ | `MaybeRefOrGetter<TSource[]>` | | Array of source objects to be converted into form options |
|
||||
| `config` | | (see below) | | Configuration |
|
||||
| `config` | ✓ | (see below) | | Configuration |
|
||||
|
||||
### `config` object
|
||||
|
||||
| | Required | Type | Default | Description |
|
||||
| ----------------------- | :------: | ----------------------------------------------------------------- | --------------- | ---------------------------------------------------------------------------- |
|
||||
| `model` | | `Ref<unknown>` | | Value (or values with `multiple`) kept in sync with the selection, both ways |
|
||||
| `multiple` | | `MaybeRefOrGetter<boolean>` | `false` | Whether multiple options can be selected simultaneously |
|
||||
| `disabled` | | `MaybeRefOrGetter<boolean>` | `false` | Whether the whole select is disabled |
|
||||
| `required` | | `MaybeRefOrGetter<boolean>` | `false` | Whether the select is required |
|
||||
| `loading` | | `MaybeRefOrGetter<boolean>` | `false` | Whether the options are still loading |
|
||||
| `searchable` | | `MaybeRefOrGetter<boolean>` | `false` | Whether the dropdown shows a search input |
|
||||
| `placeholder` | | `MaybeRefOrGetter<string>` | `''` | Placeholder of the select |
|
||||
| `searchPlaceholder` | | `MaybeRefOrGetter<string>` | `''` | Placeholder of the search input |
|
||||
| `selectedLabel` | | `(count: number, labels: string[]) => string \| undefined` | | Formats the label of the selection. Defaults to `labels.join(', ')` |
|
||||
| `emptyOption` | | `MaybeRefOrGetter<{ value, label, selectedLabel?, properties? }>` | | An extra first option standing for "no value" |
|
||||
| `option.id` | | `GetItemId<TSource>` | Guessed | Unique id of each option |
|
||||
| `option.value` | ~ | `keyof TSource \| (source, properties, index) => TValue` | Guessed | Value of each option. Required if `TSource` has no `value` or `id` |
|
||||
| `option.label` | ~ | `keyof TSource \| (source, properties) => string` | Guessed | Label of each option. Required if `TSource` has no `label` |
|
||||
| `option.selectedLabel` | | `(source, properties) => string` | Same as `label` | Label of the option once selected |
|
||||
| `option.disabled` | | `(source, properties) => boolean` | `false` | Whether an option is disabled |
|
||||
| `option.searchableTerm` | | `(source, properties) => MaybeArray<string>` | Same as `label` | Searchable term(s) of each option |
|
||||
| `option.properties` | | `(source) => TCustomProperties` | | Custom properties of each option, passed to the other `option` functions |
|
||||
| | Required | Type | Default | Description |
|
||||
| --------------------------- | :------: | ---------------------------------------------------------- | --------------- | --------------------------------------------------------------------------------------- |
|
||||
| `properties` | ~ | Record<string, unknown> | | Object containing custom properties for each option |
|
||||
| `properties.value` | ~ | `TValue` | | A unique value for each option. Required if `TSource` doesn't have an `id` or `value` |
|
||||
| `properties.label` | ~ | `string` | | A human-readable label for each option. Required if `TSource` doesn't have a `label` |
|
||||
| `properties.searchableTerm` | | `MaybeArray<string>` | Same as `label` | Searchable term(s) for each option for filtering |
|
||||
| `properties.disabled` | | `boolean` | `false` | Determines if an option should be disabled |
|
||||
| `multiple` | | `boolean` | `false` | Whether multiple options can be selected simultaneously |
|
||||
| `selectedLabel` | | `(count: number, labels: string[]) => string \| undefined` | | Function to format the label for selected options. Default label is `labels.join(', ')` |
|
||||
|
||||
## Return Value
|
||||
|
||||
| | Type | Description |
|
||||
| --------------------------------------------------------------------------------------------------------- | --------------------------- | -------------------------------------------------------- |
|
||||
| `id` | `FormSelectId` | Key the select is provided under, to pass to `VtsSelect` |
|
||||
| `searchTerm` | `Ref<string>` | Reactive reference to control the search/filter term |
|
||||
| `allOptions` | `ComputedRef<FormOption[]>` | All options, regardless of search filtering |
|
||||
| `options` | `ComputedRef<FormOption[]>` | Options filtered by the current search term |
|
||||
| `selectedOption` | `ComputedRef<FormOption>` | First selected option |
|
||||
| `selectedOptions` | `ComputedRef<FormOption[]>` | Options that are currently selected |
|
||||
| `selectedValue` | `ComputedRef<TValue>` | Value of the first selected option |
|
||||
| `selectedValues` | `ComputedRef<TValue[]>` | Values of options that are currently selected |
|
||||
| `selectedLabel` | `ComputedRef<string>` | Label for the selected options |
|
||||
| `isMultiple`, `isDisabled`, `isRequired`, `isSearchable`, `isLoading`, `placeholder`, `searchPlaceholder` | `ComputedRef` | The `config` values, resolved |
|
||||
| | Type | Description |
|
||||
| ----------------- | --------------------------- | ---------------------------------------------------- |
|
||||
| `searchTerm` | `Ref<string>` | Reactive reference to control the search/filter term |
|
||||
| `allOptions` | `ComputedRef<FormOption[]>` | All options, regardless of search filtering |
|
||||
| `options` | `ComputedRef<FormOption[]>` | Options filtered by the current search term |
|
||||
| `selectedOptions` | `ComputedRef<FormOption[]>` | Options that are currently selected |
|
||||
| `selectedValues` | `ComputedRef<TValue[]>` | Values of options that are currently selected |
|
||||
| `selectedLabel` | `ComputedRef<string>` | Label for the selected options |
|
||||
|
||||
## `FormOption` object
|
||||
|
||||
@@ -84,15 +67,14 @@ Each item in the `options` array is a `FormOption` object with these properties:
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<VtsSelect :id accent="neutral" />
|
||||
<VtsSelect :options :selected-label />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const selectedItemId = ref<string>()
|
||||
|
||||
const { id } = useFormSelect(items, {
|
||||
model: selectedItemId,
|
||||
option: { label: 'name' },
|
||||
const { options, selectedLabel, selectedValues } = useFormOptions(vms, {
|
||||
properties: vm => ({
|
||||
label: vm.name_label,
|
||||
}),
|
||||
})
|
||||
</script>
|
||||
```
|
||||
@@ -101,18 +83,14 @@ const { id } = useFormSelect(items, {
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<VtsSelect :id accent="neutral" />
|
||||
<VtsSelect v-model:search="searchTerm" :options :selected-label />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const selectedItemIds = ref<string[]>([])
|
||||
|
||||
const { id } = useFormSelect(items, {
|
||||
model: selectedItemIds,
|
||||
option: { label: 'name' },
|
||||
const { options, searchTerm, selectedValues, selectedLabel } = useFormOptions(vms, {
|
||||
properties: vm => ({ label: vm.name_label }),
|
||||
multiple: true,
|
||||
searchable: true,
|
||||
selectedLabel: count => (count > 3 ? `${count} items selected` : undefined), // Keeps the default label up to 3 items
|
||||
selectedlabel: count => (count > 3 ? `${count} VMs selected` : undefined), // Keep the default label if less than 3
|
||||
})
|
||||
</script>
|
||||
```
|
||||
|
||||
@@ -2,7 +2,6 @@ import VtsOverlayList from '@core/components/overlay/VtsOverlayList.vue'
|
||||
import { useOverlayFocus } from '@core/packages/overlay/use-overlay-focus.ts'
|
||||
import { useOverlay } from '@core/packages/overlay/use-overlay.ts'
|
||||
import { createGlobalTestConfig } from '@core-test/create-global-test-config.ts'
|
||||
import { mountWithSetupResult } from '@core-test/mount-with-setup.ts'
|
||||
import { flushPromises, mount } from '@vue/test-utils'
|
||||
import { defineComponent, h, onMounted, ref, type VNodeChild } from 'vue'
|
||||
|
||||
@@ -34,15 +33,17 @@ function createTestModal(content: () => VNodeChild = () => null) {
|
||||
}
|
||||
|
||||
function mountOverlayHost(modal = createTestModal()) {
|
||||
const { result: overlay } = mountWithSetupResult(
|
||||
() => ({
|
||||
result: useOverlay({ component: () => Promise.resolve(modal), events: { onConfirm: true } }),
|
||||
const wrapper = mount(
|
||||
defineComponent({
|
||||
setup() {
|
||||
return useOverlay({ component: () => Promise.resolve(modal), events: { onConfirm: true } })
|
||||
},
|
||||
render: () => [h('button', { class: 'opener' }, 'Open'), h(VtsOverlayList)],
|
||||
}),
|
||||
{ attachTo: document.body }
|
||||
{ global: createGlobalTestConfig(), attachTo: document.body }
|
||||
)
|
||||
|
||||
return { open: overlay.open, opener: getElement('.opener') }
|
||||
return { open: wrapper.vm.open, opener: getElement('.opener') }
|
||||
}
|
||||
|
||||
function getElement(selector: string) {
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import VtsDetailedOption from '@core/components/select/VtsDetailedOption.vue'
|
||||
import UiDropdown from '@core/components/ui/dropdown/UiDropdown.vue'
|
||||
import type { IconName } from '@core/icons'
|
||||
import { useFormSelect } from '@core/packages/form-select'
|
||||
import { type SelectColumnConfig, useSelectColumn } from '@core/tables/column-definitions/select-column.ts'
|
||||
import { mountWithSetup } from '@core-test/mount-with-setup.ts'
|
||||
import { findSelectOptionLabels, findShownSelections, openSelect, pickSelectOption } from '@core-test/select.ts'
|
||||
import { h } from 'vue'
|
||||
import { createGlobalTestConfig } from '@core-test/create-global-test-config.ts'
|
||||
import { flushPromises, mount } from '@vue/test-utils'
|
||||
import { defineComponent, h } from 'vue'
|
||||
|
||||
const OPTIONS: { label: string; icon: IconName; details?: string }[] = [
|
||||
{ label: 'First', icon: 'fa:plus', details: 'eth0' },
|
||||
@@ -12,16 +13,23 @@ const OPTIONS: { label: string; icon: IconName; details?: string }[] = [
|
||||
]
|
||||
|
||||
async function mountOpenSelectCell(config?: SelectColumnConfig) {
|
||||
const wrapper = mountWithSetup(() => {
|
||||
const { id } = useFormSelect(OPTIONS, {
|
||||
option: { id: 'label', label: 'label', properties: ({ icon, details }) => ({ icon, details }) },
|
||||
})
|
||||
const { renderBody } = useSelectColumn(config)
|
||||
const wrapper = mount(
|
||||
defineComponent({
|
||||
setup() {
|
||||
const { id } = useFormSelect(OPTIONS, {
|
||||
option: { id: 'label', label: 'label', properties: ({ icon, details }) => ({ icon, details }) },
|
||||
})
|
||||
const { renderBody } = useSelectColumn(config)
|
||||
|
||||
return () => h('table', h('tbody', h('tr', renderBody(id))))
|
||||
})
|
||||
return () => h('table', h('tbody', h('tr', renderBody(id))))
|
||||
},
|
||||
}),
|
||||
{ global: createGlobalTestConfig() }
|
||||
)
|
||||
|
||||
await openSelect(wrapper)
|
||||
await flushPromises()
|
||||
await wrapper.get('.ui-input').trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
return wrapper
|
||||
}
|
||||
@@ -31,7 +39,7 @@ describe('useSelectColumn', () => {
|
||||
const wrapper = await mountOpenSelectCell()
|
||||
|
||||
expect(wrapper.findAllComponents(VtsDetailedOption)).toEqual([])
|
||||
expect(findSelectOptionLabels(wrapper)).toEqual(['First', 'Second'])
|
||||
expect(wrapper.findAllComponents(UiDropdown).map(dropdown => dropdown.text())).toEqual(['First', 'Second'])
|
||||
})
|
||||
|
||||
it('shows the same icon before every option', async () => {
|
||||
@@ -59,7 +67,7 @@ describe('useSelectColumn', () => {
|
||||
undefined,
|
||||
undefined,
|
||||
])
|
||||
expect(findSelectOptionLabels(wrapper)).toEqual(['First eth0', 'Second'])
|
||||
expect(wrapper.findAllComponents(UiDropdown).map(dropdown => dropdown.text())).toEqual(['First eth0', 'Second'])
|
||||
})
|
||||
|
||||
it('shows the details an option is given after its label', async () => {
|
||||
@@ -74,8 +82,8 @@ describe('useSelectColumn', () => {
|
||||
it('selects the option clicked among the options shown with an icon', async () => {
|
||||
const wrapper = await mountOpenSelectCell({ optionIcon: 'object:network' })
|
||||
|
||||
await pickSelectOption(wrapper, 'Second')
|
||||
await wrapper.findAllComponents(UiDropdown)[1].trigger('click')
|
||||
|
||||
expect(findShownSelections(wrapper)).toEqual(['Second'])
|
||||
expect(wrapper.get('.vts-select .ui-input').text()).toBe('Second')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import type { InputWrapperController } from '@core/components/input-wrapper/VtsInputWrapper.vue'
|
||||
import type { MobileMenuController } from '@core/components/menu/VtsMobileMenu.vue'
|
||||
import type { PanelActionsGroup } from '@core/components/panel/PanelActions.vue'
|
||||
import type { TaskListContext } from '@core/components/task/VtsTaskList.vue'
|
||||
import type { InfoSize } from '@core/components/ui/info/UiInfo.vue'
|
||||
import type { ModalAccent } from '@core/components/ui/modal/UiModal.vue'
|
||||
import type { TreeItemLabelSize } from '@core/components/ui/tree-item-label/UiTreeItemLabel.vue'
|
||||
@@ -19,8 +18,6 @@ export const IK_TREE_ITEM_EXPANDED = Symbol('IK_TREE_ITEM_EXPANDED') as Injectio
|
||||
|
||||
export const IK_TREE_LIST_DEPTH = Symbol('IK_TREE_LIST_DEPTH') as InjectionKey<Ref<number>>
|
||||
|
||||
export const IK_TASK_LIST_CONTEXT = Symbol('IK_TASK_LIST_CONTEXT') as InjectionKey<TaskListContext>
|
||||
|
||||
export const IK_TREE_ITEM_LABEL_SIZE = Symbol('IK_TREE_ITEM_LABEL_SIZE') as InjectionKey<TreeItemLabelSize>
|
||||
|
||||
export const IK_MENU_HORIZONTAL = Symbol('IK_MENU_HORIZONTAL') as InjectionKey<ComputedRef<boolean>>
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
|
||||
export function hasSubtask(task: Task, taskId: string): boolean {
|
||||
return task.subtasks?.some(subtask => subtask.id === taskId || hasSubtask(subtask, taskId)) ?? false
|
||||
}
|
||||
|
||||
export function findTask(tasks: Task[], taskId: string): Task | undefined {
|
||||
for (const task of tasks) {
|
||||
if (task.id === taskId) {
|
||||
return task
|
||||
}
|
||||
|
||||
const subtask = findTask(task.subtasks ?? [], taskId)
|
||||
|
||||
if (subtask !== undefined) {
|
||||
return subtask
|
||||
}
|
||||
}
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
export function getTaskLabel(task: Pick<Task, 'name' | 'nameParts'>): string {
|
||||
return task.nameParts?.map(part => part.text).join('') ?? task.name ?? ''
|
||||
}
|
||||
|
||||
export function filterTaskTree(tasks: Task[], predicate: (task: Task) => boolean): Task[] {
|
||||
return tasks.flatMap(task => {
|
||||
if (predicate(task)) {
|
||||
return [task]
|
||||
}
|
||||
|
||||
const subtasks = filterTaskTree(task.subtasks ?? [], predicate)
|
||||
|
||||
return subtasks.length > 0 ? [{ ...task, subtasks }] : []
|
||||
})
|
||||
}
|
||||
|
||||
export function filterTasksByName(tasks: Task[], search: string): Task[] {
|
||||
const searchTerm = search.trim().toLocaleLowerCase()
|
||||
|
||||
if (searchTerm === '') {
|
||||
return tasks
|
||||
}
|
||||
|
||||
return filterTaskTree(tasks, task => getTaskLabel(task).toLocaleLowerCase().includes(searchTerm))
|
||||
}
|
||||
@@ -1,102 +0,0 @@
|
||||
import { filterTasksByName, filterTaskTree, findTask, getTaskLabel, hasSubtask } from '@core/utils/task.util.ts'
|
||||
import { createTaskItem } from '@core-test/create-task-item.ts'
|
||||
|
||||
const grandchild = createTaskItem({ id: 'grandchild', name: 'Transfer' })
|
||||
const child = createTaskItem({ id: 'child', name: 'Export', subtasks: [grandchild] })
|
||||
const sibling = createTaskItem({ id: 'sibling', name: 'Snapshot' })
|
||||
const root = createTaskItem({ id: 'root', name: 'Backup job', subtasks: [child, sibling] })
|
||||
const other = createTaskItem({ id: 'other', name: 'Migration' })
|
||||
const tasks = [root, other]
|
||||
|
||||
const namePartsTask = createTaskItem({
|
||||
id: 'name-parts',
|
||||
name: 'vm.migrate',
|
||||
nameParts: [{ text: 'Migrate ' }, { text: 'VM 1', to: '/vm/1' }],
|
||||
})
|
||||
|
||||
describe('hasSubtask', () => {
|
||||
it('is true for a direct subtask', () => {
|
||||
expect(hasSubtask(root, 'child')).toBe(true)
|
||||
})
|
||||
|
||||
it('is true for a nested subtask', () => {
|
||||
expect(hasSubtask(root, 'grandchild')).toBe(true)
|
||||
})
|
||||
|
||||
it('is false for the task itself', () => {
|
||||
expect(hasSubtask(root, 'root')).toBe(false)
|
||||
})
|
||||
|
||||
it('is false for a task outside its subtree', () => {
|
||||
expect(hasSubtask(root, 'other')).toBe(false)
|
||||
})
|
||||
})
|
||||
|
||||
describe('findTask', () => {
|
||||
it('finds a top-level task', () => {
|
||||
expect(findTask(tasks, 'other')).toBe(other)
|
||||
})
|
||||
|
||||
it('finds a nested subtask', () => {
|
||||
expect(findTask(tasks, 'grandchild')).toBe(grandchild)
|
||||
})
|
||||
|
||||
it('is undefined for an unknown id', () => {
|
||||
expect(findTask(tasks, 'unknown')).toBeUndefined()
|
||||
})
|
||||
})
|
||||
|
||||
describe('getTaskLabel', () => {
|
||||
it('joins the texts of the name parts', () => {
|
||||
expect(getTaskLabel(namePartsTask)).toBe('Migrate VM 1')
|
||||
})
|
||||
|
||||
it('falls back to the name without name parts', () => {
|
||||
expect(getTaskLabel(root)).toBe('Backup job')
|
||||
})
|
||||
|
||||
it('is empty without name nor name parts', () => {
|
||||
expect(getTaskLabel({})).toBe('')
|
||||
})
|
||||
})
|
||||
|
||||
describe('filterTaskTree', () => {
|
||||
it('keeps a matching task with all its subtasks', () => {
|
||||
expect(filterTaskTree(tasks, task => task.id === 'root')).toEqual([root])
|
||||
})
|
||||
|
||||
it('keeps the parents of a matching subtask, with only the branch leading to it', () => {
|
||||
expect(filterTaskTree(tasks, task => task.id === 'grandchild')).toEqual([
|
||||
{ ...root, subtasks: [{ ...child, subtasks: [grandchild] }] },
|
||||
])
|
||||
})
|
||||
|
||||
it('drops the tasks with no match in their subtree', () => {
|
||||
expect(filterTaskTree(tasks, task => task.id === 'other')).toEqual([other])
|
||||
})
|
||||
|
||||
it('leaves the source tasks unchanged', () => {
|
||||
filterTaskTree(tasks, task => task.id === 'grandchild')
|
||||
|
||||
expect(root.subtasks).toEqual([child, sibling])
|
||||
})
|
||||
})
|
||||
|
||||
describe('filterTasksByName', () => {
|
||||
it('returns the tasks unchanged for a blank search', () => {
|
||||
expect(filterTasksByName(tasks, ' ')).toBe(tasks)
|
||||
})
|
||||
|
||||
it('matches the label regardless of case and surrounding spaces', () => {
|
||||
expect(filterTasksByName(tasks, ' MIGRATION ')).toEqual([other])
|
||||
})
|
||||
|
||||
it('matches a subtask and keeps its parents', () => {
|
||||
expect(filterTasksByName(tasks, 'transfer')).toEqual([{ ...root, subtasks: [child] }])
|
||||
})
|
||||
|
||||
it('matches the label built from the name parts, not the raw name', () => {
|
||||
expect(filterTasksByName([namePartsTask], 'migrate vm')).toEqual([namePartsTask])
|
||||
expect(filterTasksByName([namePartsTask], 'vm.migrate')).toEqual([])
|
||||
})
|
||||
})
|
||||
@@ -1,15 +0,0 @@
|
||||
import type { Task } from '@core/components/ui/task-item/UiTaskItem.vue'
|
||||
|
||||
/**
|
||||
* Builds a core Task (as displayed by the task lists) for use in tests. Pass
|
||||
* overrides to tweak only the fields relevant to the case under test.
|
||||
*/
|
||||
export function createTaskItem(overrides: Partial<Task> = {}): Task {
|
||||
return {
|
||||
id: 'task-1',
|
||||
name: 'Task',
|
||||
status: 'pending',
|
||||
start: 0,
|
||||
...overrides,
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
import { inject, type InjectionKey } from 'vue'
|
||||
|
||||
/**
|
||||
* `inject(key)`, throwing when nothing provides it: run under the component that should provide it.
|
||||
*/
|
||||
export function injectOrThrow<T>(key: InjectionKey<T>) {
|
||||
const value = inject(key)
|
||||
|
||||
if (value === undefined) {
|
||||
throw new Error(`${String(key)} is not provided`)
|
||||
}
|
||||
|
||||
return value
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
import type { DOMWrapper, VueWrapper } from '@vue/test-utils'
|
||||
|
||||
// A readonly input renders its placeholder as text, in place of its value
|
||||
export function isPlaceholderShown(field: Pick<VueWrapper | DOMWrapper<Element>, 'find'>) {
|
||||
return field.find('.placeholder').exists()
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
import VtsInputWrapper, { type InputWrapperMessage } from '@core/components/input-wrapper/VtsInputWrapper.vue'
|
||||
import VtsSelect from '@core/components/select/VtsSelect.vue'
|
||||
import type { InputAccent } from '@core/components/ui/input/UiInput.vue'
|
||||
import { type FormOption, type FormSelectId, useFormSelect } from '@core/packages/form-select'
|
||||
import { mountWithSetup } from '@core-test/mount-with-setup.ts'
|
||||
import { h, type Ref, type VNode, type VNodeChild, type VNodeRef } from 'vue'
|
||||
import type { ComponentExposed } from 'vue-component-type-helpers'
|
||||
|
||||
/**
|
||||
* Renders the `VtsSelect` of the select `id`, with a `neutral` accent unless `accent` is given; `ref` and the `default`
|
||||
* option slot go to the select.
|
||||
*/
|
||||
export function renderSelect(
|
||||
id: FormSelectId,
|
||||
{ accent = 'neutral', ref }: { accent?: InputAccent; ref?: VNodeRef } = {},
|
||||
slots: { default?: (props: { option: FormOption }) => VNodeChild } = {}
|
||||
) {
|
||||
return h(VtsSelect, { id, accent, ref }, slots)
|
||||
}
|
||||
|
||||
type SelectConfig = {
|
||||
model?: Ref<unknown>
|
||||
disabled?: boolean
|
||||
required?: boolean
|
||||
placeholder?: string
|
||||
searchable?: boolean
|
||||
searchPlaceholder?: string
|
||||
loading?: boolean
|
||||
}
|
||||
|
||||
type ExposedSelect = ComponentExposed<typeof VtsSelect>
|
||||
|
||||
/**
|
||||
* Mounts a `VtsSelect` of the `sources` (`['Option']` by default) with a `neutral` accent, attached to the document so
|
||||
* focus works. `message` puts it in a `VtsInputWrapper` showing that message; `option` renders each option instead of
|
||||
* the default `VtsOption`; `selectRef` receives the mounted select.
|
||||
*/
|
||||
export function mountSelect({
|
||||
sources = ['Option'],
|
||||
config,
|
||||
accent = 'neutral',
|
||||
message,
|
||||
option,
|
||||
selectRef,
|
||||
}: {
|
||||
sources?: string[]
|
||||
config?: SelectConfig
|
||||
accent?: InputAccent
|
||||
message?: InputWrapperMessage
|
||||
option?: (option: FormOption) => VNode
|
||||
selectRef?: (select: ExposedSelect) => void
|
||||
} = {}) {
|
||||
return mountWithSetup(
|
||||
() => {
|
||||
const { id } = useFormSelect(sources, config)
|
||||
|
||||
const renderMountedSelect = () =>
|
||||
renderSelect(
|
||||
id,
|
||||
{
|
||||
accent,
|
||||
// Vue also calls a callback ref with null on unmount
|
||||
ref:
|
||||
selectRef &&
|
||||
((instance: unknown) => {
|
||||
if (instance !== null) {
|
||||
selectRef(instance as ExposedSelect)
|
||||
}
|
||||
}),
|
||||
},
|
||||
option ? { default: ({ option: item }) => option(item) } : {}
|
||||
)
|
||||
|
||||
return () =>
|
||||
message === undefined ? renderMountedSelect() : h(VtsInputWrapper, { message }, renderMountedSelect)
|
||||
},
|
||||
{ attachTo: document.body }
|
||||
)
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
import { createGlobalTestConfig } from '@core-test/create-global-test-config.ts'
|
||||
import { mount, type MountingOptions } from '@vue/test-utils'
|
||||
import { defineComponent, h, type VNodeChild } from 'vue'
|
||||
|
||||
/**
|
||||
* Mounts a component whose `setup` sets up what its render needs below it (a select only renders below the component
|
||||
* that defines it, a provided context is only injected by children) and returns that render. `global` defaults to the
|
||||
* web-core `createGlobalTestConfig()`; XO 6 passes its own.
|
||||
*/
|
||||
export function mountWithSetup(
|
||||
setup: () => () => VNodeChild,
|
||||
{ global = createGlobalTestConfig(), attachTo }: Pick<MountingOptions<object>, 'global' | 'attachTo'> = {}
|
||||
) {
|
||||
return mount(defineComponent({ setup }), { global, attachTo })
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs `mountWith`, which mounts synchronously, and returns what it mounted and the value it passed to `capture`.
|
||||
*/
|
||||
function captureDuringMount<TValue, TMounted>(mountWith: (capture: (value: TValue) => void) => TMounted) {
|
||||
// an object, so that TypeScript does not narrow what `capture` assigns to `undefined`
|
||||
const captured: { value?: TValue } = {}
|
||||
|
||||
const mounted = mountWith(value => {
|
||||
captured.value = value
|
||||
})
|
||||
|
||||
return { mounted, value: captured.value as TValue }
|
||||
}
|
||||
|
||||
/**
|
||||
* `mountWithSetup` keeping what `setup` builds (a form, a composable's return): `setup` returns it as `result`, with the
|
||||
* render of what uses it. Returns the mount and that result.
|
||||
*/
|
||||
export function mountWithSetupResult<TResult>(
|
||||
setup: () => { result: TResult; render: () => VNodeChild },
|
||||
options: Parameters<typeof mountWithSetup>[1] = {}
|
||||
) {
|
||||
const { mounted: wrapper, value: result } = captureDuringMount((capture: (result: TResult) => void) =>
|
||||
mountWithSetup(() => {
|
||||
const { result, render } = setup()
|
||||
capture(result)
|
||||
|
||||
return render
|
||||
}, options)
|
||||
)
|
||||
|
||||
return { wrapper, result }
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs `composable` in a component rendered under the one whose `setup` provides what it injects: a component does not
|
||||
* inject what it provides itself. `composable` receives what `setup` returned. Returns what `setup` returned and what
|
||||
* `composable` returned.
|
||||
*/
|
||||
export function mountComposableUnderSetup<TProvided, TResult>(
|
||||
setup: () => TProvided,
|
||||
composable: (provided: TProvided) => TResult,
|
||||
options: Parameters<typeof mountWithSetup>[1] = {}
|
||||
) {
|
||||
const {
|
||||
value: { provided, result },
|
||||
} = captureDuringMount((capture: (value: { provided: TProvided; result: TResult }) => void) =>
|
||||
mountWithSetup(() => {
|
||||
const provided = setup()
|
||||
|
||||
const Child = defineComponent({
|
||||
setup() {
|
||||
capture({ provided, result: composable(provided) })
|
||||
|
||||
return () => null
|
||||
},
|
||||
})
|
||||
|
||||
return () => h(Child)
|
||||
}, options)
|
||||
)
|
||||
|
||||
return { provided, result }
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
import { isPlaceholderShown } from '@core-test/is-placeholder-shown.ts'
|
||||
import { flushPromises, type VueWrapper } from '@vue/test-utils'
|
||||
|
||||
type QueryableWrapper = Pick<VueWrapper, 'get' | 'findAll'>
|
||||
|
||||
const SELECT_INPUT = '.vts-select .ui-input'
|
||||
|
||||
// The options of a `VtsSelect` are only rendered once its dropdown is open,
|
||||
// and the select listens to the clicks only once it has been mounted
|
||||
export async function openSelect(wrapper: QueryableWrapper) {
|
||||
await flushPromises()
|
||||
await wrapper.get(SELECT_INPUT).trigger('click')
|
||||
await flushPromises()
|
||||
}
|
||||
|
||||
// A select shows its selection as the text of its readonly input, its placeholder without selection
|
||||
export function findShownSelections(wrapper: QueryableWrapper) {
|
||||
return wrapper.findAll(SELECT_INPUT).map(input => (isPlaceholderShown(input) ? '' : input.text()))
|
||||
}
|
||||
|
||||
export function findSelectOptionLabels(wrapper: QueryableWrapper) {
|
||||
return wrapper.findAll('.ui-dropdown').map(option => option.text())
|
||||
}
|
||||
|
||||
type PickOptions = {
|
||||
// The option shows details after its label, like the device of a PIF: its text only starts with the label
|
||||
detailed?: boolean
|
||||
}
|
||||
|
||||
export async function pickSelectOption(
|
||||
wrapper: QueryableWrapper,
|
||||
label: string,
|
||||
{ detailed = false }: PickOptions = {}
|
||||
) {
|
||||
const option = wrapper
|
||||
.findAll('.ui-dropdown')
|
||||
.find(option => (detailed ? option.text().startsWith(label) : option.text() === label))
|
||||
|
||||
if (option === undefined) {
|
||||
throw new Error(`No option "${label}"`)
|
||||
}
|
||||
|
||||
await option.trigger('click')
|
||||
await flushPromises()
|
||||
}
|
||||
|
||||
// Opens the select inside `container` (the whole wrapper by default), then picks its option labelled `label`
|
||||
export async function chooseSelectOption(
|
||||
wrapper: QueryableWrapper,
|
||||
label: string,
|
||||
{ container = wrapper, ...pickOptions }: PickOptions & { container?: QueryableWrapper } = {}
|
||||
) {
|
||||
await openSelect(container)
|
||||
await pickSelectOption(wrapper, label, pickOptions)
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -50,7 +50,7 @@ beforeEach(() => {
|
||||
|
||||
Collections always read together share one mock module exporting each of their composables: `mock-xo-collections.ts` stands for the pool, host, SR, network, PBD, PIF and VM template collections. `mockXoCollections('host', 'pool', …)` points the given ones to it, and `xoCollectionsMock.reset()` resets them all. Its pool collection also answers `getPoolById`, `getPoolsByIds`, `hasPoolById` and `useGetPoolById` from `pools`; its host collection `getHostById`, `useGetHostById` and `hostsByPool` from `hosts`, and `isMasterHost` / `getMasterHostByPoolId` from the `master` of `pools` (a host leads its pool only once a pool names it: `xoCollectionsMock.seedMasterHost(host)`); its SR collection `getSrById` and `getSrsByIds`, and the ISOs of `vdiIsosBySrName`; its network collection `getNetworkById`, `useGetNetworkById`, `encryptedEncapsulationsByPool` (through the real `getEncryptedEncapsulationsByPool`) and `privateNetworksByUuid` from `networks`, its PBD collection `pbdsBySr` and `getPbdsByIds` from `pbds`, its PIF collection `pifsByHost`, `getPifsByIds` and `getPifsByNetworkId` from `pifs`, its VM template collection `vmsTemplatesByPool` from `templates`. `arePoolsReady`, `areHostsReady`, `areSrsReady`, `areNetworksReady` and `areTemplatesReady` (true after a reset) let a test hold that collection as still loading, and `hasPoolFetchError`, `hasHostFetchError` and `hasSrFetchError` (false after a reset) as failed. `xoCollectionsMock.isEnabled.<pool|host|sr>` is the `isEnabled` option that collection was last called with. `seedV2vListPool` (`seed-v2v-list-pool.ts`) seeds the pool of a V2V list and what it offers; `xoCollectionsMock.startLoadingPools()` empties the pools and clears `arePoolsReady`.
|
||||
|
||||
`mock-xo-task-collection.ts` stands for the task collection: `taskCollectionMock` holds `tasks`, `lastDayTasks` (the core tasks the task lists display, set apart from `tasks`), `areTasksReady` (true after a reset) and `hasTaskFetchError` (false after a reset), and its collection answers `getTaskById`, `useGetTaskById`, `getTasksByIds` and `useGetTasksByIds` from `tasks` (`createMockCollection`).
|
||||
`mock-xo-task-collection.ts` stands for the task collection: `taskCollectionMock` holds `tasks` and `areTasksReady` (true after a reset), and its collection answers `getTaskById`, `useGetTaskById`, `getTasksByIds` and `useGetTasksByIds` from `tasks` (`createMockCollection`).
|
||||
|
||||
`mock-xo-task-utils.ts` stands for `useXoTaskUtils`, whose `monitorTask` waits for a task of the task collection: `taskUtilsMock.monitorTask` is the spy a job awaits (a task settling with no result after a reset), and `taskUtilsMock.reset()` goes in `beforeEach`. `answerPostsWithTask(post)` makes the mocked `fetchPost` answer each request with the task `task-of-<url>`.
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ Pushing before mounting is what makes the active tab assertable; without a push
|
||||
How `VtsSelect` renders and opens its options belongs to the web-core tests, never to an XO 6 one; XO 6's `FormSelect` wraps it:
|
||||
|
||||
- A component that only passes select bindings on is mounted with `createGlobalTestConfig({ stubs: { FormSelect: true } })`, given `createSelectBindings`, and read with `findSelectStubLabels`.
|
||||
- The options a form builds (their labels, their custom properties) are read by mounting the form with `mountWithSetup` (`mountWithSetupResult` when the test reads the form too; it takes the `createGlobalTestConfig` options, as `mountUnderNewVmForm` does), rendering its select with `renderSelect(id)` (`@core-test/mount-with-select.ts`), then `openSelect` and `findSelectOptionLabels`; `findShownSelections` reads the selection each select shows. Those readers live in web-core (`@core-test/select.ts`), beside the `mountWithSetup` (`@core-test/mount-with-setup.ts`) that XO 6's wraps.
|
||||
- The options a form builds (their labels, their custom properties) are read by mounting the form with `mountWithSelect`, rendering a `VtsSelect` for its select, then `openSelect` and `findSelectOptionLabels`; `findShownSelections` reads the selection each select shows.
|
||||
|
||||
## Remote-resource collections
|
||||
|
||||
|
||||
@@ -22,15 +22,12 @@
|
||||
<UiLink :href="xo5Route" size="medium">{{ t('xo-5') }}</UiLink>
|
||||
<ThirdParties />
|
||||
</template>
|
||||
<MyTasksButton />
|
||||
<QuickTaskButton />
|
||||
<AccountMenu />
|
||||
</template>
|
||||
<template #left-sidebar>
|
||||
<AppNavigationSidebar />
|
||||
</template>
|
||||
<template #right-sidebar>
|
||||
<MyTasksSidebar />
|
||||
</template>
|
||||
<template #content>
|
||||
<VtsStateHero v-if="showLoader" format="page" size="large" type="busy">
|
||||
<div class="state-content">
|
||||
@@ -52,8 +49,7 @@
|
||||
import AccountMenu from '@/modules/account/components/menu/AccountMenu.vue'
|
||||
import AppHeaderMenu from '@/modules/navigation/components/AppHeaderMenu.vue'
|
||||
import AppNavigationSidebar from '@/modules/navigation/components/AppNavigationSidebar.vue'
|
||||
import MyTasksButton from '@/modules/task/components/MyTasksButton.vue'
|
||||
import MyTasksSidebar from '@/modules/task/components/MyTasksSidebar.vue'
|
||||
import QuickTaskButton from '@/modules/task/components/QuickTaskButton.vue'
|
||||
import ThirdParties from '@/modules/third-parties/components/ThirdParties.vue'
|
||||
import { useXoRoutes } from '@/shared/remote-resources/use-xo-routes.ts'
|
||||
import VtsStateHero from '@core/components/state-hero/VtsStateHero.vue'
|
||||
|
||||
@@ -12,11 +12,11 @@ import { t } from '@/test/i18n.ts'
|
||||
import { backupLogCollectionMock, mockXoBackupLogCollection } from '@/test/mock-xo-backup-log-collection.ts'
|
||||
import { mockXoRoutes } from '@/test/mock-xo-routes.ts'
|
||||
import { scheduleCollectionMock, mockXoScheduleCollection } from '@/test/mock-xo-schedule-collection.ts'
|
||||
import { pickSelectOption } from '@/test/select.ts'
|
||||
import VtsStatus from '@core/components/status/VtsStatus.vue'
|
||||
import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue'
|
||||
import UiLink from '@core/components/ui/link/UiLink.vue'
|
||||
import UiLoader from '@core/components/ui/loader/UiLoader.vue'
|
||||
import { pickSelectOption } from '@core-test/select.ts'
|
||||
import type { XoSchedule, XoSr } from '@vates/types'
|
||||
import { flushPromises, mount, type VueWrapper } from '@vue/test-utils'
|
||||
import type { Router } from 'vue-router'
|
||||
|
||||
@@ -7,7 +7,6 @@ import { getButton } from '@/test/get-button.ts'
|
||||
import { createGlobalTestConfig } from '@/test/global-test-config.ts'
|
||||
import { t } from '@/test/i18n.ts'
|
||||
import { proxyCollectionMock, mockXoProxyCollection } from '@/test/mock-xo-proxy-collection.ts'
|
||||
import { chooseSelectOption } from '@core-test/select.ts'
|
||||
import { flushPromises, mount, type VueWrapper } from '@vue/test-utils'
|
||||
|
||||
mockXoProxyCollection()
|
||||
@@ -47,6 +46,20 @@ async function fill(wrapper: VueWrapper, label: string, value: string) {
|
||||
await getField(wrapper, label).get('input').setValue(value)
|
||||
}
|
||||
|
||||
async function select(wrapper: VueWrapper, label: string, optionLabel: string) {
|
||||
await getField(wrapper, label).get('.vts-select .ui-input').trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
const option = wrapper.findAll('.ui-dropdown').find(option => option.text().startsWith(optionLabel))
|
||||
|
||||
if (option === undefined) {
|
||||
throw new Error(`No option "${optionLabel}" in the select labelled "${label}"`)
|
||||
}
|
||||
|
||||
await option.trigger('click')
|
||||
await flushPromises()
|
||||
}
|
||||
|
||||
async function clickButton(wrapper: VueWrapper, label: string) {
|
||||
await getButton(wrapper, label).trigger('click')
|
||||
await flushPromises()
|
||||
@@ -55,8 +68,8 @@ async function clickButton(wrapper: VueWrapper, label: string) {
|
||||
async function mountDrawerAtDetailsStep() {
|
||||
const wrapper = await mountDrawer()
|
||||
await fill(wrapper, t('name'), 'My repository')
|
||||
await chooseSelectOption(wrapper, t('nfs'), { container: getField(wrapper, t('type')) })
|
||||
await chooseSelectOption(wrapper, t('vhd-file'), { container: getField(wrapper, t('backup-format')), detailed: true })
|
||||
await select(wrapper, t('type'), t('nfs'))
|
||||
await select(wrapper, t('backup-format'), t('vhd-file'))
|
||||
await submitDrawer(wrapper)
|
||||
|
||||
return wrapper
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
import BackupRepositoryFormRow from '@/modules/backup-repository/components/form/BackupRepositoryFormRow.vue'
|
||||
import BackupRepositoryFormSelect from '@/modules/backup-repository/components/form/inputs/BackupRepositoryFormSelect.vue'
|
||||
import BackupRepositoryGeneralStep from '@/modules/backup-repository/components/form/steps/BackupRepositoryGeneralStep.vue'
|
||||
import {
|
||||
type BackupRepositoryGeneralFormData,
|
||||
useBackupRepositoryGeneralForm,
|
||||
} from '@/modules/backup-repository/form/use-backup-repository-general-form.ts'
|
||||
import FormCheckbox from '@/shared/components/form/FormCheckbox.vue'
|
||||
import FormTextInput from '@/shared/components/form/FormTextInput.vue'
|
||||
import { createGlobalTestConfig } from '@/test/global-test-config.ts'
|
||||
import { t } from '@/test/i18n.ts'
|
||||
import { proxyCollectionMock, mockXoProxyCollection } from '@/test/mock-xo-proxy-collection.ts'
|
||||
import { mountBrGeneralStep } from '@/test/mount-br-general-step.ts'
|
||||
import { openSelect } from '@core-test/select.ts'
|
||||
import { flushPromises, type VueWrapper } from '@vue/test-utils'
|
||||
import { flushPromises, mount, type VueWrapper } from '@vue/test-utils'
|
||||
import { defineComponent, h, reactive } from 'vue'
|
||||
|
||||
mockXoProxyCollection()
|
||||
|
||||
@@ -14,6 +19,29 @@ beforeEach(() => {
|
||||
proxyCollectionMock.reset()
|
||||
})
|
||||
|
||||
function mountGeneralStep(formData: Partial<BackupRepositoryGeneralFormData> = {}, { hideEncryption = false } = {}) {
|
||||
const data = reactive<BackupRepositoryGeneralFormData>({
|
||||
name: '',
|
||||
type: undefined,
|
||||
backupFormat: undefined,
|
||||
proxy: undefined,
|
||||
encrypted: false,
|
||||
encryptionKey: '',
|
||||
...formData,
|
||||
})
|
||||
|
||||
const wrapper = mount(
|
||||
defineComponent(() => {
|
||||
const { bindings } = useBackupRepositoryGeneralForm(data)
|
||||
|
||||
return () => h(BackupRepositoryGeneralStep, { bindings, hideEncryption })
|
||||
}),
|
||||
{ global: createGlobalTestConfig(), attachTo: document.body }
|
||||
)
|
||||
|
||||
return { wrapper, data }
|
||||
}
|
||||
|
||||
function findLabels(wrapper: VueWrapper, component: typeof BackupRepositoryFormSelect | typeof FormTextInput) {
|
||||
return wrapper.findAllComponents(component).map(input => input.props('label'))
|
||||
}
|
||||
@@ -23,40 +51,40 @@ function findSectionTitles(wrapper: VueWrapper) {
|
||||
}
|
||||
|
||||
it('splits the fields into a general information section and an options section', () => {
|
||||
const { wrapper } = mountBrGeneralStep()
|
||||
const { wrapper } = mountGeneralStep()
|
||||
|
||||
expect(findSectionTitles(wrapper)).toEqual([t('general-information'), t('options')])
|
||||
})
|
||||
|
||||
it('hides the options section, and its encryption, when asked to', () => {
|
||||
const { wrapper } = mountBrGeneralStep({}, { hideEncryption: true })
|
||||
const { wrapper } = mountGeneralStep({}, { hideEncryption: true })
|
||||
|
||||
expect(findSectionTitles(wrapper)).toEqual([t('general-information')])
|
||||
expect(wrapper.findComponent(FormCheckbox).exists()).toBe(false)
|
||||
})
|
||||
|
||||
it('offers the name, type, backup format and proxy fields', () => {
|
||||
const { wrapper } = mountBrGeneralStep()
|
||||
const { wrapper } = mountGeneralStep()
|
||||
|
||||
expect(findLabels(wrapper, FormTextInput)).toEqual([t('name')])
|
||||
expect(findLabels(wrapper, BackupRepositoryFormSelect)).toEqual([t('type'), t('backup-format'), t('proxy')])
|
||||
})
|
||||
|
||||
it('warns that the encryption is available for the block based format only', () => {
|
||||
const { wrapper } = mountBrGeneralStep()
|
||||
const { wrapper } = mountGeneralStep()
|
||||
|
||||
expect(wrapper.get('.ui-alert').text()).toContain(t('encryption-available-for-block-modes-only'))
|
||||
})
|
||||
|
||||
it('hides the encryption key until the encryption is enabled', () => {
|
||||
const { wrapper } = mountBrGeneralStep({ type: 's3', backupFormat: 'block' })
|
||||
const { wrapper } = mountGeneralStep({ type: 's3', backupFormat: 'block' })
|
||||
|
||||
expect(wrapper.findComponent(FormCheckbox).exists()).toBe(true)
|
||||
expect(findLabels(wrapper, FormTextInput)).not.toContain(t('key'))
|
||||
})
|
||||
|
||||
it('shows the encryption key on the same row as the encryption, once enabled', async () => {
|
||||
const { wrapper, data } = mountBrGeneralStep({ type: 's3', backupFormat: 'block' })
|
||||
const { wrapper, data } = mountGeneralStep({ type: 's3', backupFormat: 'block' })
|
||||
|
||||
data.encrypted = true
|
||||
await flushPromises()
|
||||
@@ -69,14 +97,15 @@ it('shows the encryption key on the same row as the encryption, once enabled', a
|
||||
})
|
||||
|
||||
it('describes each backup format with its hint', async () => {
|
||||
const { wrapper } = mountBrGeneralStep({ type: 'nfs' })
|
||||
const { wrapper } = mountGeneralStep({ type: 'nfs' })
|
||||
await flushPromises()
|
||||
|
||||
const backupFormatSelect = wrapper
|
||||
.findAllComponents(BackupRepositoryFormSelect)
|
||||
.find(select => select.props('label') === t('backup-format'))
|
||||
|
||||
await openSelect(backupFormatSelect!)
|
||||
await backupFormatSelect!.get('.ui-input').trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
expect(wrapper.findAll('.option-content').map(option => option.text())).toEqual([
|
||||
expect.stringMatching(new RegExp(`${t('block-based')}.*${t('block-based-hint')}`, 's')),
|
||||
|
||||
@@ -51,11 +51,11 @@
|
||||
</UiTitle>
|
||||
|
||||
<VtsTabularKeyValueList>
|
||||
<BackupRepositoryReviewLocal v-if="type === 'file'" :form="details.file" />
|
||||
<BackupRepositoryReviewNfs v-else-if="type === 'nfs'" :form="details.nfs" />
|
||||
<BackupRepositoryReviewSmb v-else-if="type === 'smb'" :form="details.smb" />
|
||||
<BackupRepositoryReviewS3 v-else-if="type === 's3'" :form="details.s3" />
|
||||
<BackupRepositoryReviewAzure
|
||||
<BackupRepositoryLocalReview v-if="type === 'file'" :form="details.file" />
|
||||
<BackupRepositoryNfsReview v-else-if="type === 'nfs'" :form="details.nfs" />
|
||||
<BackupRepositorySmbReview v-else-if="type === 'smb'" :form="details.smb" />
|
||||
<BackupRepositoryS3Review v-else-if="type === 's3'" :form="details.s3" />
|
||||
<BackupRepositoryAzureReview
|
||||
v-else-if="type === 'azure' || type === 'azurite'"
|
||||
:form="details.azure"
|
||||
:is-azurite="type === 'azurite'"
|
||||
@@ -66,11 +66,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import BackupRepositoryReviewAzure from '@/modules/backup-repository/components/form/review/BackupRepositoryReviewAzure.vue'
|
||||
import BackupRepositoryReviewLocal from '@/modules/backup-repository/components/form/review/BackupRepositoryReviewLocal.vue'
|
||||
import BackupRepositoryReviewNfs from '@/modules/backup-repository/components/form/review/BackupRepositoryReviewNfs.vue'
|
||||
import BackupRepositoryReviewS3 from '@/modules/backup-repository/components/form/review/BackupRepositoryReviewS3.vue'
|
||||
import BackupRepositoryReviewSmb from '@/modules/backup-repository/components/form/review/BackupRepositoryReviewSmb.vue'
|
||||
import BackupRepositoryAzureReview from '@/modules/backup-repository/components/form/review/BackupRepositoryAzureReview.vue'
|
||||
import BackupRepositoryLocalReview from '@/modules/backup-repository/components/form/review/BackupRepositoryLocalReview.vue'
|
||||
import BackupRepositoryNfsReview from '@/modules/backup-repository/components/form/review/BackupRepositoryNfsReview.vue'
|
||||
import BackupRepositoryS3Review from '@/modules/backup-repository/components/form/review/BackupRepositoryS3Review.vue'
|
||||
import BackupRepositorySmbReview from '@/modules/backup-repository/components/form/review/BackupRepositorySmbReview.vue'
|
||||
import { useXoBackupRepositoryTypeLabel } from '@/modules/backup-repository/composables/use-xo-backup-repository-type-label.composable.ts'
|
||||
import type { BackupRepositoryDetailsForms } from '@/modules/backup-repository/form/use-backup-repository-form-base.ts'
|
||||
import type { BackupRepositoryGeneralForm } from '@/modules/backup-repository/form/use-backup-repository-general-form.ts'
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
import type { FrontXoBackupRepository } from '@/modules/backup-repository/remote-resources/use-xo-backup-repository-collection.ts'
|
||||
import type { XoBackupFormat } from '@/modules/backup-repository/types/xo-backup-repository.type.ts'
|
||||
import { parseBackupRepositoryUrlSafely } from '@/modules/backup-repository/utils/xo-backup-repository-parsed-url.util.ts'
|
||||
import { getBackupRepositoryStatus } from '@/modules/backup-repository/utils/xo-backup-repository.util.ts'
|
||||
import type { Status } from '@core/components/status/VtsStatus.vue'
|
||||
import { toComputed } from '@core/utils/to-computed.util.ts'
|
||||
import { computed, type MaybeRefOrGetter } from 'vue'
|
||||
import type { BackupRepositoryType } from 'xo-remote-parser'
|
||||
|
||||
export type BackupRepositoryFilterableData = FrontXoBackupRepository & {
|
||||
type: BackupRepositoryType | undefined
|
||||
status: Status
|
||||
storageMode: XoBackupFormat
|
||||
}
|
||||
|
||||
export function useBackupRepositoryEnhancedData(rawBrs: MaybeRefOrGetter<FrontXoBackupRepository[]>) {
|
||||
const brs = toComputed(rawBrs)
|
||||
|
||||
const filterableBrs = computed<BackupRepositoryFilterableData[]>(() =>
|
||||
brs.value.map(br => {
|
||||
const parsedUrl = parseBackupRepositoryUrlSafely(br.url)
|
||||
|
||||
return {
|
||||
...br,
|
||||
type: parsedUrl?.type,
|
||||
status: getBackupRepositoryStatus(br),
|
||||
storageMode: parsedUrl?.useVhdDirectory ? 'block' : 'vhd',
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
return {
|
||||
filterableBrs,
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
import { useBackupRepositoryEnhancedData } from '@/modules/backup-repository/composables/use-backup-repository-enhanced-data.composable.ts'
|
||||
import type { FrontXoBackupRepository } from '@/modules/backup-repository/remote-resources/use-xo-backup-repository-collection.ts'
|
||||
import { createBr } from '@/test/create-br.ts'
|
||||
import { mountComposable } from '@/test/mount-composable.ts'
|
||||
|
||||
function mountFirstFilterableBr(br: FrontXoBackupRepository) {
|
||||
return mountComposable(() => useBackupRepositoryEnhancedData([br])).wrapper.vm.filterableBrs[0]
|
||||
}
|
||||
|
||||
describe('filterableBrs', () => {
|
||||
it('reads the type of the backup repository from its URL', () => {
|
||||
expect(mountFirstFilterableBr(createBr({ url: 'nfs://192.168.1.10:/exports' })).type).toBe('nfs')
|
||||
})
|
||||
|
||||
it('has no type for an invalid URL', () => {
|
||||
expect(mountFirstFilterableBr(createBr({ url: 'not a url' })).type).toBeUndefined()
|
||||
})
|
||||
|
||||
it('reports the status of the backup repository', () => {
|
||||
expect(mountFirstFilterableBr(createBr({ enabled: false })).status).toBe('disabled')
|
||||
})
|
||||
|
||||
it('stores the backups as block based in VHD directories', () => {
|
||||
const br = createBr({ url: 'nfs://192.168.1.10:/exports?useVhdDirectory=true' })
|
||||
|
||||
expect(mountFirstFilterableBr(br).storageMode).toBe('block')
|
||||
})
|
||||
|
||||
it('stores the backups as VHD files otherwise', () => {
|
||||
expect(mountFirstFilterableBr(createBr({ url: 'nfs://192.168.1.10:/exports' })).storageMode).toBe('vhd')
|
||||
})
|
||||
|
||||
it('keeps the data of the backup repository', () => {
|
||||
const br = createBr({ name: 'Nightly backups' })
|
||||
|
||||
expect(mountFirstFilterableBr(br)).toMatchObject(br)
|
||||
})
|
||||
})
|
||||
@@ -1,43 +0,0 @@
|
||||
import {
|
||||
type BackupRepositoryFilterableData,
|
||||
useBackupRepositoryEnhancedData,
|
||||
} from '@/modules/backup-repository/composables/use-backup-repository-enhanced-data.composable.ts'
|
||||
import { useXoBackupRepositoryTypeLabels } from '@/modules/backup-repository/composables/use-xo-backup-repository-type-labels.composable.ts'
|
||||
import type { FrontXoBackupRepository } from '@/modules/backup-repository/remote-resources/use-xo-backup-repository-collection.ts'
|
||||
import { useQueryBuilderSchema } from '@core/packages/query-builder/schema/use-query-builder-schema.ts'
|
||||
import { useQueryBuilderFilter } from '@core/packages/query-builder/use-query-builder-filter.ts'
|
||||
import { useStringSchema } from '@core/utils/query-builder/use-string-schema.ts'
|
||||
import type { MaybeRefOrGetter } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
export function useBackupRepositoryQueryBuilder(
|
||||
id: string,
|
||||
rawBrs: MaybeRefOrGetter<FrontXoBackupRepository[]>,
|
||||
options?: Parameters<typeof useQueryBuilderFilter>[2]
|
||||
) {
|
||||
const { t } = useI18n()
|
||||
|
||||
const { filterableBrs } = useBackupRepositoryEnhancedData(rawBrs)
|
||||
|
||||
const { items, filter } = useQueryBuilderFilter(id, filterableBrs, options)
|
||||
|
||||
const typeLabels = useXoBackupRepositoryTypeLabels()
|
||||
|
||||
const schema = useQueryBuilderSchema<BackupRepositoryFilterableData>({
|
||||
'': useStringSchema(t('any-property')),
|
||||
name: useStringSchema(t('name')),
|
||||
url: useStringSchema(t('url')),
|
||||
type: useStringSchema(t('type'), typeLabels),
|
||||
status: useStringSchema(t('status'), {
|
||||
enabled: t('enabled'),
|
||||
disabled: t('disabled'),
|
||||
'unable-to-connect': t('unable-to-connect'),
|
||||
}),
|
||||
storageMode: useStringSchema(t('storage-mode'), {
|
||||
block: t('block-based'),
|
||||
vhd: t('vhd-file'),
|
||||
}),
|
||||
})
|
||||
|
||||
return { items, filter, schema }
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
import { useBackupRepositoryQueryBuilder } from '@/modules/backup-repository/composables/use-backup-repository-query-builder.composable.ts'
|
||||
import type { FrontXoBackupRepository } from '@/modules/backup-repository/remote-resources/use-xo-backup-repository-collection.ts'
|
||||
import { createBr } from '@/test/create-br.ts'
|
||||
import { mountComposable } from '@/test/mount-composable.ts'
|
||||
|
||||
const NFS_BR = createBr({ id: 'br-nfs' as FrontXoBackupRepository['id'], url: 'nfs://192.168.1.10:/exports' })
|
||||
const LOCAL_BR = createBr({
|
||||
id: 'br-local' as FrontXoBackupRepository['id'],
|
||||
url: 'file:///var/backups?useVhdDirectory=true',
|
||||
enabled: false,
|
||||
})
|
||||
|
||||
function findItemIds(initialFilter: string) {
|
||||
const { wrapper } = mountComposable(() =>
|
||||
useBackupRepositoryQueryBuilder('brs', [NFS_BR, LOCAL_BR], { initialFilter, ignoreRoute: true })
|
||||
)
|
||||
|
||||
return wrapper.vm.items.map(br => br.id)
|
||||
}
|
||||
|
||||
describe('items', () => {
|
||||
it('filters the backup repositories by type', () => {
|
||||
expect(findItemIds('type:nfs')).toEqual([NFS_BR.id])
|
||||
})
|
||||
|
||||
it('filters the backup repositories by status', () => {
|
||||
expect(findItemIds('status:disabled')).toEqual([LOCAL_BR.id])
|
||||
})
|
||||
|
||||
it('filters the backup repositories by storage mode', () => {
|
||||
expect(findItemIds('storageMode:block')).toEqual([LOCAL_BR.id])
|
||||
})
|
||||
})
|
||||
@@ -1,8 +0,0 @@
|
||||
import { useXoBackupRepositoryTypeLabel } from '@/modules/backup-repository/composables/use-xo-backup-repository-type-label.composable.ts'
|
||||
import { BACKUP_REPOSITORY_TYPE, type BackupRepositoryType } from 'xo-remote-parser'
|
||||
|
||||
export function useXoBackupRepositoryTypeLabels(): Record<BackupRepositoryType, string> {
|
||||
return Object.fromEntries(
|
||||
Object.values(BACKUP_REPOSITORY_TYPE).map(type => [type, useXoBackupRepositoryTypeLabel(type).value])
|
||||
) as Record<BackupRepositoryType, string>
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
import { useXoBackupRepositoryTypeLabels } from '@/modules/backup-repository/composables/use-xo-backup-repository-type-labels.composable.ts'
|
||||
import { mountComposable } from '@/test/mount-composable.ts'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { BACKUP_REPOSITORY_TYPE } from 'xo-remote-parser'
|
||||
|
||||
describe('useXoBackupRepositoryTypeLabels', () => {
|
||||
it('labels every type of backup repository', () => {
|
||||
const result = mountComposable(() => {
|
||||
const { t } = useI18n()
|
||||
|
||||
return { typeLabels: useXoBackupRepositoryTypeLabels(), t }
|
||||
}).wrapper.vm
|
||||
|
||||
expect(result.typeLabels).toEqual({
|
||||
[BACKUP_REPOSITORY_TYPE.FILE]: result.t('local'),
|
||||
[BACKUP_REPOSITORY_TYPE.NFS]: result.t('nfs'),
|
||||
[BACKUP_REPOSITORY_TYPE.SMB]: result.t('smb'),
|
||||
[BACKUP_REPOSITORY_TYPE.S3]: result.t('s3'),
|
||||
[BACKUP_REPOSITORY_TYPE.AZURE]: result.t('azure'),
|
||||
[BACKUP_REPOSITORY_TYPE.AZURITE]: result.t('azurite'),
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -1,18 +1,18 @@
|
||||
import BackupRepositoryFormSelect from '@/modules/backup-repository/components/form/inputs/BackupRepositoryFormSelect.vue'
|
||||
import BackupRepositoryGeneralStep from '@/modules/backup-repository/components/form/steps/BackupRepositoryGeneralStep.vue'
|
||||
import {
|
||||
type BackupRepositoryGeneralFormData,
|
||||
useBackupRepositoryGeneralForm,
|
||||
} from '@/modules/backup-repository/form/use-backup-repository-general-form.ts'
|
||||
import { OBFUSCATED_VALUE } from '@/shared/constants.ts'
|
||||
import { requiredMessage } from '@/test/form-messages.ts'
|
||||
import { createGlobalTestConfig } from '@/test/global-test-config.ts'
|
||||
import { t } from '@/test/i18n.ts'
|
||||
import { proxyCollectionMock, mockXoProxyCollection } from '@/test/mock-xo-proxy-collection.ts'
|
||||
import { mountBrGeneralStep, createBrGeneralFormData } from '@/test/mount-br-general-step.ts'
|
||||
import { mountComposable } from '@/test/mount-composable.ts'
|
||||
import UiInput from '@core/components/ui/input/UiInput.vue'
|
||||
import { findShownSelections } from '@core-test/select.ts'
|
||||
import { flushPromises } from '@vue/test-utils'
|
||||
import { reactive } from 'vue'
|
||||
import { flushPromises, mount } from '@vue/test-utils'
|
||||
import { defineComponent, h, reactive } from 'vue'
|
||||
import type { BackupRepositoryType } from 'xo-remote-parser'
|
||||
|
||||
mockXoProxyCollection()
|
||||
@@ -23,8 +23,12 @@ beforeEach(() => {
|
||||
|
||||
const ENCRYPTION_KEY = '0123456789abcdef0123456789ABCDEF'
|
||||
|
||||
function createGeneralFormData(): BackupRepositoryGeneralFormData {
|
||||
return { name: '', type: undefined, backupFormat: undefined, proxy: undefined, encrypted: false, encryptionKey: '' }
|
||||
}
|
||||
|
||||
async function mountGeneralForm(formData: Partial<BackupRepositoryGeneralFormData> = {}) {
|
||||
const result = mountComposable(() => useBackupRepositoryGeneralForm(reactive(createBrGeneralFormData()))).wrapper.vm
|
||||
const result = mountComposable(() => useBackupRepositoryGeneralForm(reactive(createGeneralFormData()))).wrapper.vm
|
||||
|
||||
const { type, ...otherFormData } = formData
|
||||
|
||||
@@ -38,7 +42,7 @@ async function mountGeneralForm(formData: Partial<BackupRepositoryGeneralFormDat
|
||||
}
|
||||
|
||||
function createEditGeneralForm(formData: Partial<BackupRepositoryGeneralFormData>) {
|
||||
return useBackupRepositoryGeneralForm(reactive(createBrGeneralFormData(formData)), {
|
||||
return useBackupRepositoryGeneralForm(reactive({ ...createGeneralFormData(), ...formData }), {
|
||||
isEditing: true,
|
||||
})
|
||||
}
|
||||
@@ -48,7 +52,14 @@ function mountEditGeneralForm(formData: Partial<BackupRepositoryGeneralFormData>
|
||||
}
|
||||
|
||||
function findDisabledSelects(formData: Partial<BackupRepositoryGeneralFormData>) {
|
||||
const { wrapper } = mountBrGeneralStep(formData, { isEditing: true })
|
||||
const wrapper = mount(
|
||||
defineComponent(() => {
|
||||
const { bindings } = createEditGeneralForm(formData)
|
||||
|
||||
return () => h(BackupRepositoryGeneralStep, { bindings })
|
||||
}),
|
||||
{ global: createGlobalTestConfig() }
|
||||
)
|
||||
|
||||
return wrapper
|
||||
.findAllComponents(BackupRepositoryFormSelect)
|
||||
@@ -238,44 +249,60 @@ describe('edit mode', () => {
|
||||
})
|
||||
|
||||
describe('multi-edit mode', () => {
|
||||
function createMultiEditOptions(mixedFields: (keyof BackupRepositoryGeneralFormData)[] = []) {
|
||||
return { isEditing: true, isMultiEdit: true, mixedFields }
|
||||
function createMultiEditGeneralForm(
|
||||
formData: Partial<BackupRepositoryGeneralFormData>,
|
||||
mixedFields: (keyof BackupRepositoryGeneralFormData)[] = []
|
||||
) {
|
||||
return useBackupRepositoryGeneralForm(reactive({ ...createGeneralFormData(), ...formData }), {
|
||||
isEditing: true,
|
||||
isMultiEdit: true,
|
||||
mixedFields,
|
||||
})
|
||||
}
|
||||
|
||||
function createMultiEditGeneralForm(
|
||||
// The selects display the label of their selected option
|
||||
function findShownSelections(
|
||||
formData: Partial<BackupRepositoryGeneralFormData>,
|
||||
mixedFields?: (keyof BackupRepositoryGeneralFormData)[]
|
||||
) {
|
||||
return useBackupRepositoryGeneralForm(
|
||||
reactive(createBrGeneralFormData(formData)),
|
||||
createMultiEditOptions(mixedFields)
|
||||
const wrapper = mount(
|
||||
defineComponent(() => {
|
||||
const { bindings } = createMultiEditGeneralForm(formData, mixedFields)
|
||||
|
||||
return () => h(BackupRepositoryGeneralStep, { bindings })
|
||||
}),
|
||||
{ global: createGlobalTestConfig() }
|
||||
)
|
||||
|
||||
return Object.fromEntries(
|
||||
wrapper
|
||||
.findAllComponents(BackupRepositoryFormSelect)
|
||||
.map(select => [select.props('label'), select.getComponent(UiInput).props('modelValue')])
|
||||
)
|
||||
}
|
||||
|
||||
// The type, the format and the proxy selects, in their order on the step
|
||||
function mountMultiEditStep(
|
||||
formData: Partial<BackupRepositoryGeneralFormData>,
|
||||
mixedFields?: (keyof BackupRepositoryGeneralFormData)[]
|
||||
) {
|
||||
return mountBrGeneralStep(formData, createMultiEditOptions(mixedFields)).wrapper
|
||||
}
|
||||
|
||||
it('shows the mixed value on the type, the format and the proxy which differ between the repositories', () => {
|
||||
const wrapper = mountMultiEditStep({ name: 'My repository' }, ['type', 'backupFormat', 'proxy'])
|
||||
|
||||
expect(findShownSelections(wrapper)).toEqual([t('mixed-value'), t('mixed-value'), t('mixed-value')])
|
||||
expect(findShownSelections({ name: 'My repository' }, ['type', 'backupFormat', 'proxy'])).toEqual({
|
||||
[t('type')]: t('mixed-value'),
|
||||
[t('backup-format')]: t('mixed-value'),
|
||||
[t('proxy')]: t('mixed-value'),
|
||||
})
|
||||
})
|
||||
|
||||
it('shows the values shared by all the repositories', () => {
|
||||
const wrapper = mountMultiEditStep({ name: 'My repository', type: 'nfs', backupFormat: 'block', proxy: null })
|
||||
const selectedLabels = findShownSelections({
|
||||
name: 'My repository',
|
||||
type: 'nfs',
|
||||
backupFormat: 'block',
|
||||
proxy: null,
|
||||
})
|
||||
|
||||
expect(findShownSelections(wrapper)).toEqual([t('nfs'), t('block-based'), t('none')])
|
||||
expect(selectedLabels).toMatchObject({ [t('backup-format')]: t('block-based'), [t('proxy')]: t('none') })
|
||||
expect(selectedLabels[t('type')]).not.toBe(t('mixed-value'))
|
||||
})
|
||||
|
||||
it('removes the proxy of all the repositories with "None"', () => {
|
||||
const wrapper = mountMultiEditStep({ name: 'My repository', proxy: null }, ['proxy'])
|
||||
|
||||
expect(findShownSelections(wrapper).at(-1)).toBe(t('none'))
|
||||
expect(findShownSelections({ name: 'My repository', proxy: null }, ['proxy'])[t('proxy')]).toBe(t('none'))
|
||||
})
|
||||
|
||||
it('accepts a type and a format left mixed', async () => {
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import { parse as parseBackupRepositoryUrl, type ParsedBackupRepositoryUrl } from 'xo-remote-parser'
|
||||
|
||||
export function parseBackupRepositoryUrlSafely(url: string): ParsedBackupRepositoryUrl | undefined {
|
||||
try {
|
||||
return parseBackupRepositoryUrl(url)
|
||||
} catch {
|
||||
return undefined
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
import type { FrontXoBackupRepository } from '@/modules/backup-repository/remote-resources/use-xo-backup-repository-collection.ts'
|
||||
import { getBackupRepositoryType } from '@/modules/backup-repository/utils/xo-backup-repository-type.util.ts'
|
||||
import { getBackupRepositoryIcon } from '@/modules/backup-repository/utils/xo-backup-repository.util.ts'
|
||||
import type { QueryBuilderPreviewItem } from '@core/components/query-builder/VtsQueryBuilderPreview.vue'
|
||||
|
||||
export function toBackupRepositoryQueryPreviewItem(br: FrontXoBackupRepository): QueryBuilderPreviewItem {
|
||||
return {
|
||||
id: br.id,
|
||||
label: br.name,
|
||||
icon: getBackupRepositoryIcon(br, getBackupRepositoryType(br.url)),
|
||||
route: { name: '/admin/backup-repository/[id]/general', params: { id: br.id } },
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user