diff --git a/CHANGELOG.md b/CHANGELOG.md index d3e3b9c..d269a6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ # image credit Banner Image by [Gerd Altmann](https://pixabay.com/users/geralt-9301) +Login image [kkolosov](https://pixabay.com/fr/users/kkolosov-2105326) + ## 0.1.0 - 2020/05/01 - init diff --git a/backend/api/document/models/document.settings.json b/backend/api/document/models/document.settings.json index 2452311..9194dee 100644 --- a/backend/api/document/models/document.settings.json +++ b/backend/api/document/models/document.settings.json @@ -15,7 +15,7 @@ "order": { "type": "integer" }, - "content": { + "media": { "model": "file", "via": "related", "allowedTypes": [ @@ -27,8 +27,11 @@ "required": false }, "documentcategory": { - "via": "documents", - "model": "documentcategory" + "model": "documentcategory", + "via": "documents" + }, + "content": { + "type": "richtext" } } } diff --git a/backend/api/documentcategory/models/documentcategory.settings.json b/backend/api/documentcategory/models/documentcategory.settings.json index 5c41b30..37623a2 100644 --- a/backend/api/documentcategory/models/documentcategory.settings.json +++ b/backend/api/documentcategory/models/documentcategory.settings.json @@ -16,8 +16,8 @@ "type": "integer" }, "documents": { - "collection": "document", - "via": "documentcategory" + "via": "documentcategory", + "collection": "document" }, "image": { "model": "file", diff --git a/frontend/src/containers/Document.vue b/frontend/src/containers/Document.vue index a403f3d..b072bd5 100644 --- a/frontend/src/containers/Document.vue +++ b/frontend/src/containers/Document.vue @@ -1,42 +1,57 @@ diff --git a/frontend/src/containers/Documentation.vue b/frontend/src/containers/Documentation.vue index aae71ad..6830f90 100644 --- a/frontend/src/containers/Documentation.vue +++ b/frontend/src/containers/Documentation.vue @@ -4,23 +4,22 @@ {{ document.title }} - + @@ -91,27 +90,26 @@ export default { documents(sort: "order:asc") { id title - - content { - url - } - } - videos(sort: "order:asc") { - id - title - source - } - articles(sort: "order:asc") { - id - title - content - document_category { - name - } - image { + media { url } } + # videos(sort: "order:asc") { + # id + # title + # source + # } + # articles(sort: "order:asc") { + # id + # title + # content + # document_category { + # name + # } + # image { + # url + # } + # } } } `, diff --git a/frontend/src/main.js b/frontend/src/main.js index 238086a..e385e02 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -37,17 +37,9 @@ const router = new VueRouter({ components: require("./containers/Documentation.vue"), }, { - path: "/documentation/:articlecategory", + path: "/documentation/:categoryid/:id", components: require("./containers/Document.vue"), }, - { - path: "/documentation/:articlecategory/:articletitle", - components: require("./containers/Document.vue"), - }, - { - path: "/documentation/:id", - components: require("./containers/Document.vue") - }, { path: "/support", components: require("./containers/Support.vue")