Add missing file, update stop command, git ignore

pull/1/head
ken 2021-06-10 19:31:04 +00:00
parent c9cefccf5b
commit d0eb32f0e0
3 changed files with 23 additions and 2 deletions

7
.gitignore vendored
View File

@ -1 +1,6 @@
*.env
*.env
node_modules
build/
package-lock.json
run.sh
visualizer.log

View File

@ -0,0 +1,16 @@
import { createSlice } from "@reduxjs/toolkit";
const topologySlice = createSlice({
name: "topology",
initialState: { current: {}, graph: {} },
reducers: {
setTopology(state, action) {
state.current = action.payload;
state.graph = action.payload.graph;
},
},
});
export const { setTopology } = topologySlice.actions;
export default topologySlice.reducer;

View File

@ -19,7 +19,7 @@ function start()
function stop()
{
ps aux | grep -v grep | grep "Server.js" | awk '{print $2}' | xargs kill -9
ps aux | grep -v grep | grep "node ./server/Server.js" | awk '{print $2}' | xargs kill -9
}