Feat: Implement tags manager in settings

Fix: Remove unused color options

Chore: Fix typo
This commit is contained in:
Nelson Chan
2022-05-26 16:52:18 +08:00
parent d9f12a6376
commit e9564619f1
10 changed files with 602 additions and 21 deletions

View File

@@ -78,3 +78,29 @@ export function getResBaseURL() {
return "";
}
}
/**
* Get the tag color options
* Shared between components
* @returns {Object[]}
*/
export function colorOptions(self) {
return [
{ name: self.$t("Gray"),
color: "#4B5563" },
{ name: self.$t("Red"),
color: "#DC2626" },
{ name: self.$t("Orange"),
color: "#D97706" },
{ name: self.$t("Green"),
color: "#059669" },
{ name: self.$t("Blue"),
color: "#2563EB" },
{ name: self.$t("Indigo"),
color: "#4F46E5" },
{ name: self.$t("Purple"),
color: "#7C3AED" },
{ name: self.$t("Pink"),
color: "#DB2777" },
];
}