-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
143 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/components/main/run-frame/top-bar/InterruptConfirmationDialog.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<VCard class="pa-2"> | ||
<VCardTitle class="text-error"> Interrupt the run?</VCardTitle> | ||
<VCardText> | ||
Press <span class="font-weight-medium font-italic">Yes</span> to send the signal | ||
<span class="font-weight-medium font-italic"> SIGINT </span> | ||
to the process running the script on the server. This is equivalent to pressing | ||
<span class="font-weight-medium font-italic">Ctrl+C</span> in the terminal. It | ||
rases the <span class="font-weight-medium font-italic">KeyboardInterrupt</span>. | ||
</VCardText> | ||
<VCardText> | ||
Press <span class="font-weight-medium font-italic">No</span> to close this dialog | ||
without sending the signal. | ||
</VCardText> | ||
<VCardActions> | ||
<VBtn variant="text" color="grey-darken-2" @click="$emit('cancel')"> no </VBtn> | ||
<VSpacer></VSpacer> | ||
<VBtn variant="outlined" color="error" @click="$emit('confirm')"> yes </VBtn> | ||
</VCardActions> | ||
</VCard> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
interface Emits { | ||
(event: "confirm"): void; | ||
(event: "cancel"): void; | ||
} | ||
defineEmits<Emits>(); | ||
</script> |
34 changes: 34 additions & 0 deletions
34
src/components/main/run-frame/top-bar/KillConfirmationDialog.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<VCard class="pa-2"> | ||
<VCardTitle class="text-error"> Kill the run?</VCardTitle> | ||
<VCardText> | ||
Press <span class="font-weight-medium font-italic">Yes</span> to send the signal | ||
<span class="font-weight-medium font-italic"> SIGKILL </span> | ||
to the process running the script on the server. This is equivalent to executing | ||
<span class="font-weight-medium font-italic">kill -9 <pid></span> in the | ||
terminal. No exception will be raised. No <span class="font-italic">finally</span> | ||
block will be executed. No signal handler will be executed. | ||
</VCardText> | ||
<VCardText> | ||
Use this option as a last resort after trying to <span class="font-italic"> interrupt </span> | ||
and <span class="font-italic"> terminate </span> the run. | ||
</VCardText> | ||
<VCardText> | ||
Press <span class="font-weight-medium font-italic">No</span> to close this dialog | ||
without sending the signal. | ||
</VCardText> | ||
<VCardActions> | ||
<VBtn variant="text" color="grey-darken-2" @click="$emit('cancel')"> no </VBtn> | ||
<VSpacer></VSpacer> | ||
<VBtn variant="outlined" color="error" @click="$emit('confirm')"> yes </VBtn> | ||
</VCardActions> | ||
</VCard> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
interface Emits { | ||
(event: "confirm"): void; | ||
(event: "cancel"): void; | ||
} | ||
defineEmits<Emits>(); | ||
</script> |
34 changes: 34 additions & 0 deletions
34
src/components/main/run-frame/top-bar/TerminateConfirmationDialog.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<VCard class="pa-2"> | ||
<VCardTitle class="text-error"> Terminate the run?</VCardTitle> | ||
<VCardText> | ||
Press <span class="font-weight-medium font-italic">Yes</span> to send the signal | ||
<span class="font-weight-medium font-italic"> SIGTERM </span> | ||
to the process running the script on the server. This is equivalent to executing | ||
<span class="font-weight-medium font-italic">kill <pid></span> in the | ||
terminal. No exception will be raised. No <span class="font-italic">finally</span> | ||
block will be executed. A signal handler (if registered) will be executed. | ||
</VCardText> | ||
<VCardText> | ||
Use this option after trying to <span class="font-italic"> interrupt </span> the | ||
run. | ||
</VCardText> | ||
<VCardText> | ||
Press <span class="font-weight-medium font-italic">No</span> to close this dialog | ||
without sending the signal. | ||
</VCardText> | ||
<VCardActions> | ||
<VBtn variant="text" color="grey-darken-2" @click="$emit('cancel')"> no </VBtn> | ||
<VSpacer></VSpacer> | ||
<VBtn variant="outlined" color="error" @click="$emit('confirm')"> yes </VBtn> | ||
</VCardActions> | ||
</VCard> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
interface Emits { | ||
(event: "confirm"): void; | ||
(event: "cancel"): void; | ||
} | ||
defineEmits<Emits>(); | ||
</script> |