diff --git a/db/patch9.sql b/db/patch9.sql index b4d3991..488db11 100644 --- a/db/patch9.sql +++ b/db/patch9.sql @@ -2,6 +2,7 @@ CREATE TABLE tag ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name VARCHAR(255) NOT NULL, + color VARCHAR(255) NOT NULL, created_date DATETIME DEFAULT (DATETIME('now')) NOT NULL ); diff --git a/server/model/tag.js b/server/model/tag.js index 0c7a58e..748280a 100644 --- a/server/model/tag.js +++ b/server/model/tag.js @@ -5,6 +5,7 @@ class Tag extends BeanModel { return { id: this._id, name: this._name, + color: this._color, }; } } diff --git a/src/components/Tag.vue b/src/components/Tag.vue index ea31523..2a68f63 100644 --- a/src/components/Tag.vue +++ b/src/components/Tag.vue @@ -1,18 +1,38 @@ + + diff --git a/src/components/TagsManager.vue b/src/components/TagsManager.vue index be8544e..e0ae7cc 100644 --- a/src/components/TagsManager.vue +++ b/src/components/TagsManager.vue @@ -1,15 +1,56 @@ - + diff --git a/src/icon.js b/src/icon.js index 960fa8c..5932557 100644 --- a/src/icon.js +++ b/src/icon.js @@ -1,10 +1,10 @@ import { library } from "@fortawesome/fontawesome-svg-core" -import { faCog, faEdit, faPlus, faPause, faPlay, faTachometerAlt, faTrash, faList, faArrowAltCircleUp } from "@fortawesome/free-solid-svg-icons" +import { faCog, faEdit, faPlus, faPause, faPlay, faTachometerAlt, faTimes, faTrash, faList, faArrowAltCircleUp } from "@fortawesome/free-solid-svg-icons" //import { fa } from '@fortawesome/free-regular-svg-icons' import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome" // Add Free Font Awesome Icons here // https://fontawesome.com/v5.15/icons?d=gallery&p=2&s=solid&m=free -library.add(faCog, faEdit, faPlus, faPause, faPlay, faTachometerAlt, faTrash, faList, faArrowAltCircleUp); +library.add(faCog, faEdit, faPlus, faPause, faPlay, faTachometerAlt, faTimes, faTrash, faList, faArrowAltCircleUp); export { FontAwesomeIcon }