|
|
@ -36,7 +36,8 @@ |
|
|
|
@click="projectsLoad" |
|
|
|
@click="projectsLoad" |
|
|
|
v-bind:tooltip="$t('projects.reload_projects_tooltip')" |
|
|
|
v-bind:tooltip="$t('projects.reload_projects_tooltip')" |
|
|
|
> |
|
|
|
> |
|
|
|
mdi-refresh </x-icon |
|
|
|
mdi-refresh |
|
|
|
|
|
|
|
</x-icon |
|
|
|
> |
|
|
|
> |
|
|
|
<!-- </x-btn>--> |
|
|
|
<!-- </x-btn>--> |
|
|
|
</h1> |
|
|
|
</h1> |
|
|
@ -132,7 +133,8 @@ |
|
|
|
<v-tooltip right> |
|
|
|
<v-tooltip right> |
|
|
|
<template v-slot:activator="{ on }"> |
|
|
|
<template v-slot:activator="{ on }"> |
|
|
|
<v-icon v-on="on" x-small color="grey" class="ml-4" |
|
|
|
<v-icon v-on="on" x-small color="grey" class="ml-4" |
|
|
|
>mdi-information-outline</v-icon |
|
|
|
>mdi-information-outline |
|
|
|
|
|
|
|
</v-icon |
|
|
|
> |
|
|
|
> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<!-- Create a new project --> |
|
|
|
<!-- Create a new project --> |
|
|
@ -163,7 +165,8 @@ |
|
|
|
<v-tooltip right> |
|
|
|
<v-tooltip right> |
|
|
|
<template v-slot:activator="{ on }"> |
|
|
|
<template v-slot:activator="{ on }"> |
|
|
|
<v-icon v-on="on" x-small color="grey" class="ml-4" |
|
|
|
<v-icon v-on="on" x-small color="grey" class="ml-4" |
|
|
|
>mdi-information-outline</v-icon |
|
|
|
>mdi-information-outline |
|
|
|
|
|
|
|
</v-icon |
|
|
|
> |
|
|
|
> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<!-- Supports MySQL, PostgreSQL, SQL Server & SQLite --> |
|
|
|
<!-- Supports MySQL, PostgreSQL, SQL Server & SQLite --> |
|
|
@ -313,7 +316,8 @@ |
|
|
|
<v-menu offset-y> |
|
|
|
<v-menu offset-y> |
|
|
|
<template v-slot:activator="{ on }"> |
|
|
|
<template v-slot:activator="{ on }"> |
|
|
|
<x-icon v-on="on" color="grey" |
|
|
|
<x-icon v-on="on" color="grey" |
|
|
|
>mdi-dots-vertical</x-icon |
|
|
|
>mdi-dots-vertical |
|
|
|
|
|
|
|
</x-icon |
|
|
|
> |
|
|
|
> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<v-list dense> |
|
|
|
<v-list dense> |
|
|
@ -344,7 +348,7 @@ |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<!-- Export Metadata --> |
|
|
|
<!-- Export Metadata --> |
|
|
|
<span class="caption font-weight-regular">{{ |
|
|
|
<span class="caption font-weight-regular">{{ |
|
|
|
$t('projects.verticial_option_2') |
|
|
|
$t('home.project_verticial_option_2') |
|
|
|
}}</span> |
|
|
|
}}</span> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
@ -435,7 +439,8 @@ |
|
|
|
@click="onCreateProject" |
|
|
|
@click="onCreateProject" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-icon color="white" class="blink_me"> |
|
|
|
<v-icon color="white" class="blink_me"> |
|
|
|
mdi-lightbulb-on </v-icon |
|
|
|
mdi-lightbulb-on |
|
|
|
|
|
|
|
</v-icon |
|
|
|
> |
|
|
|
> |
|
|
|
<!-- New Project --> |
|
|
|
<!-- New Project --> |
|
|
|
{{ $t('projects.create_new_project_button.text') }} |
|
|
|
{{ $t('projects.create_new_project_button.text') }} |
|
|
@ -507,7 +512,8 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<v-list-item-icon> |
|
|
|
<v-list-item-icon> |
|
|
|
<v-icon class="ml-2" :color="textColors[3]" |
|
|
|
<v-icon class="ml-2" :color="textColors[3]" |
|
|
|
>mdi-calendar-month</v-icon |
|
|
|
>mdi-calendar-month |
|
|
|
|
|
|
|
</v-icon |
|
|
|
> |
|
|
|
> |
|
|
|
</v-list-item-icon> |
|
|
|
</v-list-item-icon> |
|
|
|
<!-- Book a Free DEMO --> |
|
|
|
<!-- Book a Free DEMO --> |
|
|
@ -664,6 +670,14 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
async stopProject(project) { |
|
|
|
async stopProject(project) { |
|
|
|
|
|
|
|
this.dialogShow = true; |
|
|
|
|
|
|
|
this.confirmMessage = |
|
|
|
|
|
|
|
'Do you want to stop the project?'; |
|
|
|
|
|
|
|
this.confirmAction = async act => { |
|
|
|
|
|
|
|
if (act === 'hideDialog') { |
|
|
|
|
|
|
|
this.dialogShow = false; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
this.$set(project, 'status', 'stopping'); |
|
|
|
this.$set(project, 'status', 'stopping'); |
|
|
|
const project_id = project.id; |
|
|
|
const project_id = project.id; |
|
|
|
this.statusUpdatingProjectId = project_id; |
|
|
|
this.statusUpdatingProjectId = project_id; |
|
|
@ -683,8 +697,19 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
await this.projectsLoad(); |
|
|
|
await this.projectsLoad(); |
|
|
|
this.projectStatusUpdating = false; |
|
|
|
this.projectStatusUpdating = false; |
|
|
|
|
|
|
|
this.dialogShow = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async startProject(project) { |
|
|
|
async startProject(project) { |
|
|
|
|
|
|
|
this.dialogShow = true; |
|
|
|
|
|
|
|
this.confirmMessage = |
|
|
|
|
|
|
|
'Do you want to start the project?'; |
|
|
|
|
|
|
|
this.confirmAction = async act => { |
|
|
|
|
|
|
|
if (act === 'hideDialog') { |
|
|
|
|
|
|
|
this.dialogShow = false; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
this.$set(project, 'status', 'starting'); |
|
|
|
this.$set(project, 'status', 'starting'); |
|
|
|
const project_id = project.id; |
|
|
|
const project_id = project.id; |
|
|
|
this.statusUpdatingProjectId = project_id; |
|
|
|
this.statusUpdatingProjectId = project_id; |
|
|
@ -704,8 +729,18 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
await this.projectsLoad(); |
|
|
|
await this.projectsLoad(); |
|
|
|
this.projectStatusUpdating = false; |
|
|
|
this.projectStatusUpdating = false; |
|
|
|
|
|
|
|
this.dialogShow = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async restartProject(project) { |
|
|
|
async restartProject(project) { |
|
|
|
|
|
|
|
this.dialogShow = true; |
|
|
|
|
|
|
|
this.confirmMessage = |
|
|
|
|
|
|
|
'Do you want to restart the project?'; |
|
|
|
|
|
|
|
this.confirmAction = async act => { |
|
|
|
|
|
|
|
if (act === 'hideDialog') { |
|
|
|
|
|
|
|
this.dialogShow = false; |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$set(project, 'status', 'restarting'); |
|
|
|
this.$set(project, 'status', 'restarting'); |
|
|
|
const project_id = project.id; |
|
|
|
const project_id = project.id; |
|
|
|
this.statusUpdatingProjectId = project_id; |
|
|
|
this.statusUpdatingProjectId = project_id; |
|
|
@ -725,8 +760,18 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
await this.projectsLoad(); |
|
|
|
await this.projectsLoad(); |
|
|
|
this.projectStatusUpdating = false; |
|
|
|
this.projectStatusUpdating = false; |
|
|
|
|
|
|
|
this.dialogShow = false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async deleteProject(project) { |
|
|
|
async deleteProject(project) { |
|
|
|
|
|
|
|
this.dialogShow = true; |
|
|
|
|
|
|
|
this.confirmMessage = |
|
|
|
|
|
|
|
'Do you want to delete the project?'; |
|
|
|
|
|
|
|
this.confirmAction = async act => { |
|
|
|
|
|
|
|
if (act === 'hideDialog') { |
|
|
|
|
|
|
|
this.dialogShow = false; |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$set(project, 'status', 'deleting'); |
|
|
|
this.$set(project, 'status', 'deleting'); |
|
|
|
const project_id = project.id; |
|
|
|
const project_id = project.id; |
|
|
|
this.statusUpdatingProjectId = project_id; |
|
|
|
this.statusUpdatingProjectId = project_id; |
|
|
@ -746,6 +791,10 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
await this.projectsLoad(); |
|
|
|
await this.projectsLoad(); |
|
|
|
this.projectStatusUpdating = false; |
|
|
|
this.projectStatusUpdating = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.dialogShow = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onCreateProject(xcdb) { |
|
|
|
onCreateProject(xcdb) { |
|
|
|
if (xcdb === 'xcdb') { |
|
|
|
if (xcdb === 'xcdb') { |
|
|
@ -754,7 +803,8 @@ |
|
|
|
this.$router.push('/project/0'); |
|
|
|
this.$router.push('/project/0'); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async importProjectFromJSON() {}, |
|
|
|
async importProjectFromJSON() { |
|
|
|
|
|
|
|
}, |
|
|
|
onTourCompletion() { |
|
|
|
onTourCompletion() { |
|
|
|
// this.$store.commit('windows/MutShowTour', {page: 'home'}) |
|
|
|
// this.$store.commit('windows/MutShowTour', {page: 'home'}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -820,13 +870,6 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async projectRemove(project) { |
|
|
|
|
|
|
|
this._project = project; |
|
|
|
|
|
|
|
this.deleteBtnClicked = true; |
|
|
|
|
|
|
|
this.dialog.title = |
|
|
|
|
|
|
|
'Project will drop all databases and remove all migrations files in your local directory. Click submit to delete'; |
|
|
|
|
|
|
|
this.dialog.show = true; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
async projectEdit(project) { |
|
|
|
async projectEdit(project) { |
|
|
|
console.log('projectEdit'); |
|
|
|
console.log('projectEdit'); |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
@ -836,18 +879,7 @@ |
|
|
|
async projectOpenFolder(project) { |
|
|
|
async projectOpenFolder(project) { |
|
|
|
console.log('projectEdit'); |
|
|
|
console.log('projectEdit'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
async _projectRemove(action) { |
|
|
|
|
|
|
|
if (action === 'hideDialog') { |
|
|
|
|
|
|
|
this.deleteBtnClicked = false; |
|
|
|
|
|
|
|
this.dialog.show = false; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.deleteBtnClicked = true; |
|
|
|
|
|
|
|
await this.sqlMgr.projectRemove(this._project); |
|
|
|
|
|
|
|
this.deleteBtnClicked = false; |
|
|
|
|
|
|
|
this.projectsLoad(); |
|
|
|
|
|
|
|
this.dialog.show = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async exportMetaZip(project_id) { |
|
|
|
async exportMetaZip(project_id) { |
|
|
|
this.dialogShow = true; |
|
|
|
this.dialogShow = true; |
|
|
|