diff --git a/src/components/FileBar.vue b/src/components/FileBar.vue index 9c9f176..0a43ef1 100644 --- a/src/components/FileBar.vue +++ b/src/components/FileBar.vue @@ -24,6 +24,7 @@ +
Agents @@ -38,6 +39,21 @@
+ +
+ Settings + + + + Script Manager + + + +
@@ -60,6 +76,8 @@ + + @@ -69,9 +87,10 @@ import LogModal from "@/components/modals/logs/LogModal"; import AddClient from "@/components/modals/clients/AddClient"; import AddSite from "@/components/modals/clients/AddSite"; import UpdateAgents from "@/components/modals/agents/UpdateAgents"; +import ScriptManager from "@/components/ScriptManager"; export default { name: "FileBar", - components: { LogModal, AddClient, AddSite, UpdateAgents }, + components: { LogModal, AddClient, AddSite, UpdateAgents, ScriptManager }, props: ["clients"], data() { return { @@ -83,6 +102,9 @@ export default { methods: { getLog() { this.$store.commit("logs/TOGGLE_LOG_MODAL", true); + }, + showScriptManager() { + this.$store.commit("TOGGLE_SCRIPT_MANAGER", true); } } }; diff --git a/src/components/ScriptManager.vue b/src/components/ScriptManager.vue new file mode 100644 index 0000000..69aaf0d --- /dev/null +++ b/src/components/ScriptManager.vue @@ -0,0 +1,251 @@ + + + + + \ No newline at end of file diff --git a/src/components/modals/scripts/EditScript.vue b/src/components/modals/scripts/EditScript.vue new file mode 100644 index 0000000..fbfa8c4 --- /dev/null +++ b/src/components/modals/scripts/EditScript.vue @@ -0,0 +1,118 @@ + + + \ No newline at end of file diff --git a/src/components/modals/scripts/UploadScript.vue b/src/components/modals/scripts/UploadScript.vue new file mode 100644 index 0000000..700f446 --- /dev/null +++ b/src/components/modals/scripts/UploadScript.vue @@ -0,0 +1,106 @@ + + + \ No newline at end of file diff --git a/src/store/store.js b/src/store/store.js index a4ce2ec..7f0c573 100644 --- a/src/store/store.js +++ b/src/store/store.js @@ -25,6 +25,7 @@ export const store = new Vuex.Store({ treeLoading: false, installedSoftware: [], scripts: [], + toggleScriptManager: false }, getters: { loggedIn(state) { @@ -57,6 +58,9 @@ export const store = new Vuex.Store({ } }, mutations: { + TOGGLE_SCRIPT_MANAGER(state, action) { + state.toggleScriptManager = action; + }, AGENT_TABLE_LOADING(state, visible) { state.agentTableLoading = visible; },