Skip to content

Commit 17acffa

Browse files
author
samaradel
committed
Fix conflicts
1 parent 97e2ff4 commit 17acffa

7 files changed

Lines changed: 451 additions & 603 deletions

File tree

client/src/components/Alerts.vue

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<template>
2+
<v-alert
3+
:density="density"
4+
:text="text"
5+
:title="title"
6+
:type="type"
7+
class="my-5 font-weight-bold"
8+
:variant="variant"
9+
v-bind="$attrs"
10+
></v-alert>
11+
</template>
12+
13+
<script setup>
14+
defineProps({
15+
density: {
16+
type: String,
17+
default: "compact",
18+
},
19+
text: {
20+
type: String,
21+
default: "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
22+
},
23+
title: {
24+
type: String,
25+
},
26+
type: {
27+
type: String,
28+
},
29+
variant: {
30+
type: String,
31+
default: "flat",
32+
},
33+
});
34+
</script>

client/src/components/Confirm.vue

Lines changed: 39 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,44 @@
11
<template>
2-
<v-dialog
3-
v-model="dialog"
4-
:max-width="options.width"
5-
:style="{ zIndex: options.zIndex }"
6-
@keydown.esc="cancel"
7-
>
8-
<v-card>
9-
<v-toolbar dark :color="options.color" dense flat>
10-
<v-toolbar-title class="white--text">{{ title }}</v-toolbar-title>
11-
</v-toolbar>
12-
<v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text>
13-
<v-card-actions class="pt-0">
14-
<v-spacer></v-spacer>
15-
<v-btn color="danger darken-1" text @click="agree">Yes</v-btn>
16-
<v-btn color="grey" text @click="cancel">Cancel</v-btn>
17-
</v-card-actions>
18-
</v-card>
19-
</v-dialog>
2+
<v-card class="pa-2">
3+
<v-card-title>{{ title }}</v-card-title>
4+
<v-divider />
5+
<v-card-text> {{ text }} </v-card-text>
6+
7+
<v-card-actions>
8+
<v-spacer></v-spacer>
9+
10+
<BaseButton text="Cancel" @click="$emit('onClose')" variant="outlined" />
11+
12+
<BaseButton
13+
:text="confirmText"
14+
:color="color"
15+
@click="$emit('confirm')"
16+
:loading="loading"
17+
/>
18+
</v-card-actions>
19+
</v-card>
2020
</template>
2121

22-
<script>
23-
export default {
24-
data: () => ({
25-
dialog: false,
26-
resolve: null,
27-
reject: null,
28-
message: null,
29-
title: null,
30-
options: {
31-
color: "primary",
32-
width: 290,
33-
zIndex: 999,
34-
},
35-
}),
36-
methods: {
37-
open(title, message, options) {
38-
this.dialog = true;
39-
this.title = title;
40-
this.message = message;
41-
this.options = Object.assign(this.options, options);
42-
return new Promise((resolve, reject) => {
43-
this.resolve = resolve;
44-
this.reject = reject;
45-
});
46-
},
47-
agree() {
48-
this.resolve(true);
49-
this.dialog = false;
50-
},
51-
cancel() {
52-
this.resolve(false);
53-
this.dialog = false;
54-
},
22+
<script setup>
23+
import BaseButton from "@/components/Form/BaseButton.vue";
24+
25+
defineProps({
26+
title: { type: String, default: "Title here.." },
27+
text: {
28+
type: String,
29+
default: "Text here..",
30+
},
31+
confirmText: {
32+
type: String,
33+
default: "Confirm",
34+
},
35+
color: {
36+
type: String,
37+
default: "secondary",
38+
},
39+
loading: {
40+
type: Boolean,
41+
default: false,
5542
},
56-
};
43+
});
5744
</script>

client/src/plugins/vuetify.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ export default createVuetify({
4040
fixedHeader: true,
4141
noDataText: "Results not found",
4242
},
43+
// VContainer: {
44+
// maxWidth: "1200px",
45+
// },
4346
},
4447
});

client/src/services/userService.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export default {
7979
return await authClient().get(`/vm/validate/${name}`);
8080
},
8181

82-
async deployVm(name, resources, checked) {
82+
async deployVm(name, resources) {
8383
await this.refresh_token();
84-
return await authClient().post("/vm", { name, resources, public: checked });
84+
return await authClient().post("/vm", { name, resources, public: true }); // FIXME
8585
},
8686

8787
async deleteVm(id) {
@@ -222,7 +222,7 @@ export default {
222222
},
223223

224224
// handler function of nextlaunch
225-
async handleNextLaunch(){
225+
async handleNextLaunch() {
226226
await this.getUser()
227227
.then((response) => {
228228
const { user } = response.data.data;
@@ -231,7 +231,7 @@ export default {
231231
localStorage.setItem("nextlaunch", "true");
232232
}
233233
})
234-
.catch((response) => {
234+
.catch((response) => {
235235
const { err } = response.response.data;
236236
console.log(err);
237237
});

client/src/views/About.vue

Lines changed: 0 additions & 214 deletions
This file was deleted.

0 commit comments

Comments
 (0)