Skip to content

Commit

Permalink
Revert "feat(xo-lite): vm creation"
Browse files Browse the repository at this point in the history
This reverts commit ce02537.
  • Loading branch information
J0ris-K committed Dec 30, 2024
1 parent ce02537 commit cf182b4
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 204 deletions.
6 changes: 3 additions & 3 deletions @xen-orchestra/lite/src/components/form/FormInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ defineExpose({
.select {
font-size: 1em;
width: 100%;
height: 4rem;
height: 3em;
margin: 0;
color: var(--text-color);
border: 0.1rem solid var(--border-color);
border-radius: 0.4rem;
border: 0.05em solid var(--border-color);
border-radius: 0.4em;
outline: none;
background-color: var(--background-color);
box-shadow: var(--shadow-100);
Expand Down
12 changes: 0 additions & 12 deletions @xen-orchestra/lite/src/components/pool/PoolHeader.vue
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
<template>
<TitleBar :icon="faBuilding">
{{ name }}
<template #actions>
<UiButton :left-icon="faPlus" variant="primary" accent="info" size="medium" @click="goToNewVm">
{{ $t('new-vm') }}
</UiButton>
</template>
</TitleBar>
</template>

<script lang="ts" setup>
import TitleBar from '@/components/TitleBar.vue'
import { usePoolStore } from '@/stores/xen-api/pool.store'
import UiButton from '@core/components/ui/button/UiButton.vue'
import { faBuilding } from '@fortawesome/free-regular-svg-icons'
import { faPlus } from '@fortawesome/free-solid-svg-icons'
import { computed } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const { pool } = usePoolStore().subscribe()
const name = computed(() => pool.value?.name_label ?? '...')
const goToNewVm = () => router.push({ name: 'new-vm' })
</script>
23 changes: 0 additions & 23 deletions @xen-orchestra/lite/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,29 +186,6 @@
"new-features-are-coming": "New features are coming soon!",
"news": "News",
"news-name": "{name} news",

"new-vm": "New VM",
"new-vm.add": "Add new VM",
"new-vm.create": "Create VM",
"new-vm.template": "Template",
"new-vm.install-settings": "Install settings",
"new-vm.iso-dvd": "ISO/DVD",
"new-vm.pxe": "PXE",
"new-vm.no-config": "No config",
"new-vm.user-config": "User configuration",
"new-vm.network-config": "Network configuration",
"new-vm.custom-config": "Custom config",
"new-vm.ssh-key": "SSH key",
"new-vm.system": "System",
"new-vm.multi-creation": "Multi-creation",
"new-vm.vm-name": "VM name",
"new-vm.vm-description": "VM description",
"new-vm.tags": "Tags",
"new-vm.copy-host": "Copy host BIOS strings to VM",
"new-vm.affinity-host": "Affinity host",
"new-vm.boot-firmware": "Boot firmware",
"new-vm.memory": "Memory",

"no-alarm-triggered": "No alarm triggered",
"no-result": "No result",
"no-selected-vm-can-be-exported": "No selected VM can be exported",
Expand Down
7 changes: 0 additions & 7 deletions @xen-orchestra/lite/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,6 @@
"new-features-are-coming": "De nouvelles fonctionnalités arrivent bientôt !",
"news": "Actualités",
"news-name": "Actualités {name}",

"new-vm": "Nouvelle VM",
"new-vm.add": "Ajouter une nouvelle VM",
"new-vm.create": "Créer une VM",
"new-vm.template": "Modèle",
"new-vm.install-settings": "Paramètres d'installation",

"no-alarm-triggered": "Aucune alarme déclenchée",
"no-result": "Aucun résultat",
"no-selected-vm-can-be-exported": "Aucune VM sélectionnée ne peut être exportée",
Expand Down
5 changes: 0 additions & 5 deletions @xen-orchestra/lite/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ const router = createRouter({
name: 'settings',
component: () => import('@/views/settings/SettingsView.vue'),
},
{
path: '/new/vm',
name: 'new-vm',
component: () => import('@/views/new-vm/NewVmView.vue'),
},
story,
pool,
vm,
Expand Down
22 changes: 0 additions & 22 deletions @xen-orchestra/lite/src/stores/xen-api/vm-template.store.ts

This file was deleted.

5 changes: 0 additions & 5 deletions @xen-orchestra/lite/src/stores/xen-api/vm.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export const useVmStore = defineStore('xen-api-vm', () => {
vmRawContext.records.value.filter(vm => !vm.is_a_snapshot && !vm.is_control_domain && !vm.is_a_template)
)

const templates = computed(() =>
vmRawContext.records.value.filter(vm => !vm.is_a_snapshot && !vm.is_control_domain && vm.is_a_template)
)

const runningVms = computed(() => records.value.filter(vm => vm.power_state === VM_POWER_STATE.RUNNING))

const recordsByHostRef = computed(() => {
Expand Down Expand Up @@ -74,7 +70,6 @@ export const useVmStore = defineStore('xen-api-vm', () => {
const context = {
...vmRawContext,
records,
templates,
runningVms,
recordsByHostRef,
getStats,
Expand Down
127 changes: 0 additions & 127 deletions @xen-orchestra/lite/src/views/new-vm/NewVmView.vue

This file was deleted.

0 comments on commit cf182b4

Please sign in to comment.