mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed start/stop
This commit is contained in:
parent
5de47ce6b8
commit
0a808ea69a
3 changed files with 2 additions and 21 deletions
|
@ -31,7 +31,7 @@
|
||||||
"sass": "^1.66.1",
|
"sass": "^1.66.1",
|
||||||
"socket.io": "^4.7.2",
|
"socket.io": "^4.7.2",
|
||||||
"uuid": "^9.0.0",
|
"uuid": "^9.0.0",
|
||||||
"vue": "^3.2.47",
|
"vue": "^3.3.4",
|
||||||
"winston": "^3.10.0"
|
"winston": "^3.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -29,26 +29,7 @@ import main_active_audio_level from './main_active_audio_level.vue'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import {startTNC, stopTNC} from '../js/daemon.js'
|
|
||||||
|
|
||||||
function startStopTNC(){
|
|
||||||
|
|
||||||
|
|
||||||
switch (state.tnc_running_state) {
|
|
||||||
case 'stopped':
|
|
||||||
startTNC()
|
|
||||||
|
|
||||||
break;
|
|
||||||
case 'running':
|
|
||||||
stopTNC()
|
|
||||||
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//const fs = require("fs");
|
//const fs = require("fs");
|
||||||
//const os = require("os");
|
//const os = require("os");
|
||||||
|
|
||||||
import path from 'path'
|
import path from 'node:path'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import os from 'os'
|
import os from 'os'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue