added optional startup script. Created dismissable alert
parent
50d113dce8
commit
e9e2d7cb81
@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-alert variant="success"
|
||||
:show="dismissSecs"
|
||||
dismissible
|
||||
@dismissed="dismissAlert"
|
||||
@dismiss-count-down="countDownChanged">
|
||||
{{ message }}. This alert will dismiss after {{dismissCountDown}} seconds...
|
||||
</b-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['message'],
|
||||
data () {
|
||||
return {
|
||||
dismissSecs: 5,
|
||||
dismissCountDown: 5
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
countDownChanged (dismissCountDown){
|
||||
this.dismissCountDown = dismissCountDown
|
||||
},
|
||||
dismissAlert(){
|
||||
this.dismissCountDown = 0
|
||||
this.$emit('alert-closed')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,15 @@
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
# subprocess.run('npm --version', shell=True)
|
||||
#
|
||||
# subprocess.check_call('node --version', shell=True)
|
||||
os.chdir('./client')
|
||||
|
||||
if sys.platform == 'win32':
|
||||
npm_proc = subprocess.Popen('start cmd.exe /k "npm run serve"', shell=True)
|
||||
wsgi_proc = subprocess.Popen('start cmd.exe /k "serve.exe "', shell=True)
|
||||
sys.exit(0)
|
||||
else:
|
||||
sys.exit(1)
|
Loading…
Reference in New Issue