diff --git a/@vates/decorate-with/index.test.js b/@vates/decorate-with/index.test.js
index 9b75bef39c..66e339764a 100644
--- a/@vates/decorate-with/index.test.js
+++ b/@vates/decorate-with/index.test.js
@@ -13,12 +13,15 @@ describe('decorateWith', () => {
const expectedFn = Function.prototype
const newFn = () => {}
- const decorator = decorateWith(function wrapper(fn, ...args) {
- assert.deepStrictEqual(fn, expectedFn)
- assert.deepStrictEqual(args, expectedArgs)
+ const decorator = decorateWith(
+ function wrapper(fn, ...args) {
+ assert.deepStrictEqual(fn, expectedFn)
+ assert.deepStrictEqual(args, expectedArgs)
- return newFn
- }, ...expectedArgs)
+ return newFn
+ },
+ ...expectedArgs
+ )
const descriptor = {
configurable: true,
diff --git a/@xen-orchestra/lite/index.html b/@xen-orchestra/lite/index.html
index 7d38608e2c..34cc083171 100644
--- a/@xen-orchestra/lite/index.html
+++ b/@xen-orchestra/lite/index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/@xen-orchestra/lite/src/components/ObjectLink.vue b/@xen-orchestra/lite/src/components/ObjectLink.vue
index 86ee5781df..e2fb7ea034 100644
--- a/@xen-orchestra/lite/src/components/ObjectLink.vue
+++ b/@xen-orchestra/lite/src/components/ObjectLink.vue
@@ -66,8 +66,8 @@ onUnmounted(() => {
store.value?.unsubscribe(subscriptionId);
});
-const record = computed | undefined>(() =>
- store.value?.getByUuid(props.uuid as any)
+const record = computed | undefined>(
+ () => store.value?.getByUuid(props.uuid as any)
);
const isReady = computed(() => {
diff --git a/@xen-orchestra/lite/src/libs/mixin.ts b/@xen-orchestra/lite/src/libs/mixin.ts
index 207b291165..fdf4751725 100644
--- a/@xen-orchestra/lite/src/libs/mixin.ts
+++ b/@xen-orchestra/lite/src/libs/mixin.ts
@@ -12,12 +12,12 @@ export type MixinAbstractConstructor = abstract new (
export type MixinFunction<
T extends MixinConstructor | MixinAbstractConstructor = MixinConstructor,
- R extends T = T & MixinConstructor
+ R extends T = T & MixinConstructor,
> = (Base: T) => R;
export type MixinReturnValue<
T extends MixinConstructor | MixinAbstractConstructor,
- M extends MixinFunction[]
+ M extends MixinFunction[],
> = UnionToIntersection<
| T
| {
@@ -27,7 +27,7 @@ export type MixinReturnValue<
export default function mixin<
T extends MixinConstructor | MixinAbstractConstructor,
- M extends MixinFunction[]
+ M extends MixinFunction[],
>(Base: T, ...mixins: M): MixinReturnValue {
return mixins.reduce(
(mix, applyMixin) => applyMixin(mix),
diff --git a/@xen-orchestra/lite/src/stores/xen-api/create-use-collection.ts b/@xen-orchestra/lite/src/stores/xen-api/create-use-collection.ts
index 46cd2f0979..1ae40c7d33 100644
--- a/@xen-orchestra/lite/src/stores/xen-api/create-use-collection.ts
+++ b/@xen-orchestra/lite/src/stores/xen-api/create-use-collection.ts
@@ -38,7 +38,7 @@ type StoreToRefs> = ToRefs<
type Output<
S extends StoreDefinition,
- Defer extends boolean
+ Defer extends boolean,
> = Omit | IgnoredProperties> &
StoreToRefs &
(Defer extends true
@@ -54,7 +54,7 @@ export const createUseCollection = <
infer A
>
? Store
- : never
+ : never,
>(
useStore: SD
) => {
diff --git a/@xen-orchestra/lite/src/views/story/HomeView.vue b/@xen-orchestra/lite/src/views/story/HomeView.vue
index 6cdae34c35..65876de888 100644
--- a/@xen-orchestra/lite/src/views/story/HomeView.vue
+++ b/@xen-orchestra/lite/src/views/story/HomeView.vue
@@ -110,19 +110,19 @@ const template = computed(() => {
]"
>
<${componentName} v-bind="properties"${
- slotsNames.length > 0
- ? `>\n ${slotsNames
- .map((name) =>
- name === "default"
- ? `{{ settings.${camel(name)}SlotContent }}`
- : `{{ settings.${camel(
- name
- )}SlotContent }}`
- )
- .join("\n ")}
+ slotsNames.length > 0
+ ? `>\n ${slotsNames
+ .map((name) =>
+ name === "default"
+ ? `{{ settings.${camel(name)}SlotContent }}`
+ : `{{ settings.${camel(
+ name
+ )}SlotContent }}`
+ )
+ .join("\n ")}
${componentName}>`
- : ` />`
- }
+ : ` />`
+ }
diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md
index b82f4d7ed8..41bbd654d8 100644
--- a/CHANGELOG.unreleased.md
+++ b/CHANGELOG.unreleased.md
@@ -8,7 +8,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [Netbox] Don't delete VMs that have been created manually in XO-synced cluster [Forum#7639](https://xcp-ng.org/forum/topic/7639) (PR [#7008](https://github.com/vatesfr/xen-orchestra/pull/7008))
-- [Kubernetes] *Search domains* field is now optional [#7028](https://github.com/vatesfr/xen-orchestra/pull/7028)
+- [Kubernetes] _Search domains_ field is now optional [#7028](https://github.com/vatesfr/xen-orchestra/pull/7028)
- [Patches] Support new XenServer Updates system. See [our documentation](https://xen-orchestra.com/docs/updater.html#xenserver-updates). (PR [#7044](https://github.com/vatesfr/xen-orchestra/pull/7044))
- [REST API] Hosts' audit and system logs can be downloaded [#3968](https://github.com/vatesfr/xen-orchestra/issues/3968) (PR [#7048](https://github.com/vatesfr/xen-orchestra/pull/7048))
- [Host/Advanced] New button to download system logs [#3968](https://github.com/vatesfr/xen-orchestra/issues/3968) (PR [#7048](https://github.com/vatesfr/xen-orchestra/pull/7048))
diff --git a/LICENSE.md b/LICENSE.md
index ae1dcc7749..85df3eb8bc 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -6,7 +6,6 @@ ISC License may be found here: https://www.isc.org/licenses/
The texts of the two licenses are inserted at the root of this repo.
Below is the list of the various components and their corresponding licenses, AGPL or ISC.
-
- @xen-orchestra/audit-core - AGPL-3.0-or-later
- @xen-orchestra/babel-config - AGPL-3.0-or-later
- @xen-orchestra/backups - AGPL-3.0-or-later
@@ -51,7 +50,6 @@ Below is the list of the various components and their corresponding licenses, AG
- xo-vmdk-to-vhd - AGPL-3.0-or-later
- xo-web - AGPL-3.0-or-later
-
- @vates/async-each - ISC
- @vates/cached-dns.lookup - ISC
- @vates/coalesce-calls - ISC
diff --git a/docs/manage_infrastructure.md b/docs/manage_infrastructure.md
index 04b568a2c9..2c257b3ad4 100644
--- a/docs/manage_infrastructure.md
+++ b/docs/manage_infrastructure.md
@@ -654,7 +654,7 @@ List of the VMs with more than the recommended amount of snapshots (3). There is
### Duplicated MAC addresses
-Machines with the same MAC addresses on a network will result in unexpected behavior if they run simultaneously.
+Machines with the same MAC addresses on a network will result in unexpected behavior if they run simultaneously.
### Guest Tools status
diff --git a/packages/vhd-lib/Vhd/VhdDirectory.integ.js b/packages/vhd-lib/Vhd/VhdDirectory.integ.js
index 1a68952d6e..4fa311c2e1 100644
--- a/packages/vhd-lib/Vhd/VhdDirectory.integ.js
+++ b/packages/vhd-lib/Vhd/VhdDirectory.integ.js
@@ -96,8 +96,11 @@ describe('VhdDirectory', async () => {
for await (const block of vhd.blocks()) {
await compressedVhd.writeEntireBlock(block)
}
- await Promise
- .all[(await compressedVhd.writeHeader(), await compressedVhd.writeFooter(), await compressedVhd.writeBlockAllocationTable())]
+ await Promise.all[
+ (await compressedVhd.writeHeader(),
+ await compressedVhd.writeFooter(),
+ await compressedVhd.writeBlockAllocationTable())
+ ]
// compressed vhd have a metadata file
assert.equal(await fs.exists(`${tempDir}/compressed.vhd/chunk-filters.json`), true)
diff --git a/packages/xo-server/src/logs-cli.mjs b/packages/xo-server/src/logs-cli.mjs
index 425ba3fc03..c20fe4c4f3 100755
--- a/packages/xo-server/src/logs-cli.mjs
+++ b/packages/xo-server/src/logs-cli.mjs
@@ -285,9 +285,11 @@ execPromise(async function main() {
const require = (await import('module')).createRequire(import.meta.url)
// eslint-disable-next-line n/no-extraneous-require
- const { repair } = require(require.resolve('level', {
- paths: [require.resolve('level-party')],
- }))
+ const { repair } = require(
+ require.resolve('level', {
+ paths: [require.resolve('level-party')],
+ })
+ )
await new Promise((resolve, reject) => {
repair(`${config.datadir}/leveldb`, error => {
if (error) {
diff --git a/packages/xo-server/src/xapi-stats.mjs b/packages/xo-server/src/xapi-stats.mjs
index e2ef2570d4..715fa82f82 100644
--- a/packages/xo-server/src/xapi-stats.mjs
+++ b/packages/xo-server/src/xapi-stats.mjs
@@ -252,12 +252,15 @@ export default class XapiStats {
})
// clear cache when too old
- setTimeout(() => {
- // only if it has not been updated
- if (this.#hostCache[hostUuid]?.[step]?.timestamp === timestamp) {
- delete this.#hostCache[hostUuid][step]
- }
- }, (step + 1) * 1000)
+ setTimeout(
+ () => {
+ // only if it has not been updated
+ if (this.#hostCache[hostUuid]?.[step]?.timestamp === timestamp) {
+ delete this.#hostCache[hostUuid][step]
+ }
+ },
+ (step + 1) * 1000
+ )
this.#hostCache[hostUuid][step] = {
timestamp,
diff --git a/packages/xo-server/src/xo-mixins/ip-pools.mjs b/packages/xo-server/src/xo-mixins/ip-pools.mjs
index 9fe00bda3d..9eade80a12 100644
--- a/packages/xo-server/src/xo-mixins/ip-pools.mjs
+++ b/packages/xo-server/src/xo-mixins/ip-pools.mjs
@@ -68,9 +68,7 @@ export default class IpPools {
if (await store.has(id)) {
await Promise.all(
- (
- await this._app.getAllResourceSets()
- ).map(async set => {
+ (await this._app.getAllResourceSets()).map(async set => {
await this._app.removeLimitFromResourceSet(`ipPool:${id}`, set.id)
return this._app.removeIpPoolFromResourceSet(id, set.id)
})
diff --git a/packages/xo-server/src/xo-mixins/resource-sets.mjs b/packages/xo-server/src/xo-mixins/resource-sets.mjs
index d82668f3c8..303eb7c9b8 100644
--- a/packages/xo-server/src/xo-mixins/resource-sets.mjs
+++ b/packages/xo-server/src/xo-mixins/resource-sets.mjs
@@ -196,9 +196,7 @@ export default class {
await Promise.all(
difference(set.subjects, subjects).map(async subjectId =>
Promise.all(
- (
- await this._app.getAclsForSubject(subjectId)
- ).map(async acl => {
+ (await this._app.getAclsForSubject(subjectId)).map(async acl => {
try {
const object = this._app.getObject(acl.object)
if ((object.type === 'VM' || object.type === 'VM-snapshot') && object.resourceSet === id) {
diff --git a/packages/xo-web/src/common/select-files.js b/packages/xo-web/src/common/select-files.js
index 1621dfb907..36262e19fe 100644
--- a/packages/xo-web/src/common/select-files.js
+++ b/packages/xo-web/src/common/select-files.js
@@ -6,7 +6,7 @@ import React from 'react'
import omit from 'lodash/omit.js'
const STYLE = {
- marginBottom: 0
+ marginBottom: 0,
}
export default class SelectFiles extends Component {
diff --git a/packages/xo-web/src/common/tooltip/index.css b/packages/xo-web/src/common/tooltip/index.css
index 6dafa9cff6..ebf6ad491f 100644
--- a/packages/xo-web/src/common/tooltip/index.css
+++ b/packages/xo-web/src/common/tooltip/index.css
@@ -11,7 +11,10 @@
padding: 8px 21px;
pointer-events: none;
position: fixed;
- transition: opacity 0.3s ease-out, margin-top 0.3s ease-out, margin-left 0.3s ease-out;
+ transition:
+ opacity 0.3s ease-out,
+ margin-top 0.3s ease-out,
+ margin-left 0.3s ease-out;
z-index: 9999;
}
diff --git a/packages/xo-web/src/xo-app/backup/new/metadata/index.js b/packages/xo-web/src/xo-app/backup/new/metadata/index.js
index 5aaea44a27..748a17d08b 100644
--- a/packages/xo-web/src/xo-app/backup/new/metadata/index.js
+++ b/packages/xo-web/src/xo-app/backup/new/metadata/index.js
@@ -72,12 +72,11 @@ const getInitialState = () => ({
})
export default decorate([
- New => props =>
- (
-
-
-
- ),
+ New => props => (
+
+
+
+ ),
addSubscriptions({
remotes: subscribeRemotes,
}),
diff --git a/packages/xo-web/src/xo-app/dashboard/health/index.js b/packages/xo-web/src/xo-app/dashboard/health/index.js
index 51db95c417..9e69dc22f2 100644
--- a/packages/xo-web/src/xo-app/dashboard/health/index.js
+++ b/packages/xo-web/src/xo-app/dashboard/health/index.js
@@ -282,22 +282,21 @@ const AttachedVdisTable = decorate([
vdiSnapshots: createGetObjectsOfType('VDI-snapshot'),
}),
({ columns, rowTransform }) =>
- ({ pools, srs, vbds, vdis, vdiSnapshots }) =>
- (
-
- ),
+ ({ pools, srs, vbds, vdis, vdiSnapshots }) => (
+
+ ),
{
columns: [
{
diff --git a/packages/xo-web/src/xo-app/logs/backup-ng/log-alert-body.js b/packages/xo-web/src/xo-app/logs/backup-ng/log-alert-body.js
index 20cdd0829e..1734e26c44 100644
--- a/packages/xo-web/src/xo-app/logs/backup-ng/log-alert-body.js
+++ b/packages/xo-web/src/xo-app/logs/backup-ng/log-alert-body.js
@@ -533,12 +533,11 @@ export default decorate([
},
optionRenderer:
({ countByStatus }) =>
- ({ label, value }) =>
- (
-
- {_(label)} ({countByStatus[value] || 0})
-
- ),
+ ({ label, value }) => (
+
+ {_(label)} ({countByStatus[value] || 0})
+
+ ),
countByStatus: ({ preFilteredTasksLogs }) => ({
all: get(() => preFilteredTasksLogs.length),
...countBy(preFilteredTasksLogs, 'status'),
diff --git a/packages/xo-web/src/xo-app/new-vm/index.js b/packages/xo-web/src/xo-app/new-vm/index.js
index f8d797b779..b0db70a2bf 100644
--- a/packages/xo-web/src/xo-app/new-vm/index.js
+++ b/packages/xo-web/src/xo-app/new-vm/index.js
@@ -285,7 +285,7 @@ export default class NewVm extends BaseComponent {
() => this.props.resourceSets,
createSelector(
() => this.props.location.query.resourceSet,
- resourceSetId => resourceSet => resourceSet !== undefined ? resourceSetId === resourceSet.id : undefined
+ resourceSetId => resourceSet => (resourceSet !== undefined ? resourceSetId === resourceSet.id : undefined)
)
)