diff --git a/client/src/services/Windows.js b/client/src/services/Windows.js
index 0fb151f2..fab4c33b 100644
--- a/client/src/services/Windows.js
+++ b/client/src/services/Windows.js
@@ -25,7 +25,6 @@ import WelcomeWindow from '@/views/windows/WelcomeWindow.vue'
import CompendiumWindow from '@/views/windows/CompendiumWindow.vue'
import BookAnvilWindow from '@/views/windows/BookAnvilWindow.vue'
import IconSelectorWindow from '@/views/windows/selectors/IconSelectorWindow.vue'
-import DatabaseWindow from '@/views/windows/game/DatabaseWindow.vue'
import AccountManagementWindow from '@/views/windows/settings/AccountManagementWindow.vue'
import PluginManagementWindow from '@/views/windows/settings/PluginManagementWindow.vue'
import PluginWindow from '../views/windows/settings/PluginWindow.vue';
@@ -61,7 +60,6 @@ let windowMap = {
compendium_window: CompendiumWindow,
book_anvil_window: BookAnvilWindow,
icon_selector: IconSelectorWindow,
- database: DatabaseWindow,
plugin_management: PluginManagementWindow,
account_management: AccountManagementWindow,
plugin_window: PluginWindow
@@ -197,11 +195,6 @@ const defValues = {
'icon_selector': {
id: 'icon-selector',
title: "Select an Icon",
- },
- 'database': {
- id: 'database',
- title: "database.title",
- close: () => ClearWindow('database')
}
}
diff --git a/client/src/views/windows/game/DatabaseWindow.vue b/client/src/views/windows/game/DatabaseWindow.vue
deleted file mode 100644
index 275c9611..00000000
--- a/client/src/views/windows/game/DatabaseWindow.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/plugins/dnd-5e/client/data.js b/plugins/dnd-5e/client/data.js
new file mode 100644
index 00000000..a9c0906d
--- /dev/null
+++ b/plugins/dnd-5e/client/data.js
@@ -0,0 +1,42 @@
+import Server from '@/services/Server'
+import { reactive } from 'vue';
+
+import { GetCampaign } from "./Dragonroll";
+import { socket } from './Socket';
+
+let data = reactive({});
+
+function InitData(){
+ data.value = {
+ concepts: [],
+ };
+}
+
+function FetchConcepts(){
+ Server().get('/concept/list?campaign=' + GetCampaign()._id).then(response => {
+ data.value.concepts = response.data.data;
+ }).catch((err) => console.log(err));
+}
+
+function FetchData(){
+ FetchConcepts();
+}
+
+
+socket.on('update-concepts', () => {
+ FetchConcepts();
+});
+
+let GetConcepts = () => data.value.concepts;
+let GetConcept = (id) => Server().get('/concept/get?campaign=' + GetCampaign()._id + "&id=" + id)
+
+
+export {
+ InitData,
+ FetchData,
+
+ FetchConcepts,
+
+ GetConcepts,
+ GetConcept,
+}
\ No newline at end of file
diff --git a/plugins/dnd-5e/client/main.js b/plugins/dnd-5e/client/main.js
index 35fbdd2d..add84f3e 100644
--- a/plugins/dnd-5e/client/main.js
+++ b/plugins/dnd-5e/client/main.js
@@ -14,11 +14,11 @@ function Main(Api){
let databaseWindow = Api.registerWindow('database', Api.createView('Database'));
let actorsWindow = Api.registerWindow('actors', Api.createView('Actors'));
- /*
let characterSheetWindow = Api.registerWindow('character_sheet', Api.createView('CharacterSheet'));
let itemSheetWindow = Api.registerWindow('item_sheet', Api.createView('ItemSheet'));
let createItemPromptWindow = Api.registerWindow('create_item_prompt', Api.createView('CreateItemPrompt'));
-
+
+ /*
dndModule.setCharacterSheet(Api.createView('CharacterSheet'));
dndModule.setItemSheet(Api.createView('ItemSheet'));
dndModule.setItemPrompt(Api.createView('CreateItemPrompt'));
diff --git a/plugins/dnd-5e/client/views/Database.vue b/plugins/dnd-5e/client/views/Database.vue
index 27e0f695..2ccce71d 100644
--- a/plugins/dnd-5e/client/views/Database.vue
+++ b/plugins/dnd-5e/client/views/Database.vue
@@ -1,3 +1,115 @@
-
+
+
+
+
+
+
+
+
+