This commit is contained in:
Troplo 2022-07-31 01:05:23 +10:00
parent 186411e880
commit fcd847cf53
5 changed files with 11 additions and 47 deletions

View file

@ -657,17 +657,7 @@ export default {
} }
}, },
friendlyName(index) { friendlyName(index) {
if (index === "calendarNormalActivity") { if (index === "bg") {
return "Standard Class"
} else if (index === "calendarActivityType7") {
return "Relief Event"
} else if (index === "calendarActivityType8") {
return "Generic Type 8"
} else if (index === "calendarActivityType10") {
return "Learning Task"
} else if (index === "calendarExternalActivity") {
return "External Activity"
} else if (index === "bg") {
return "Background" return "Background"
} else if (index === "dark") { } else if (index === "dark") {
return "Sidebar & Header" return "Sidebar & Header"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 KiB

View file

@ -144,6 +144,12 @@ const routes = [
component: () => component: () =>
import(/* webpackChunkName: "admin" */ "../views/Admin/Admin.vue") import(/* webpackChunkName: "admin" */ "../views/Admin/Admin.vue")
}, },
{
path: "/about",
name: "About",
component: () =>
import(/* webpackChunkName: "about" */ "../views/About.vue")
},
{ {
path: "*", path: "*",
name: "Not Found", name: "Not Found",

View file

@ -172,12 +172,7 @@ export default new Vuex.Store({
sheet: "#181818", sheet: "#181818",
text: "#000000", text: "#000000",
dark: "#151515", dark: "#151515",
bg: "#151515", bg: "#151515"
calendarNormalActivity: "#3f51b5",
calendarActivityType7: "#f44336",
calendarActivityType8: "#4caf50",
calendarActivityType10: "#ff9800",
calendarExternalActivity: "#2196f3"
}, },
light: { light: {
primary: "#0190ea", primary: "#0190ea",
@ -192,12 +187,7 @@ export default new Vuex.Store({
sheet: "#f8f8f8", sheet: "#f8f8f8",
text: "#000000", text: "#000000",
dark: "#f8f8f8", dark: "#f8f8f8",
bg: "#f8f8f8", bg: "#f8f8f8"
calendarNormalActivity: "#3f51b5",
calendarActivityType7: "#f44336",
calendarActivityType8: "#4caf50",
calendarActivityType10: "#ff9800",
calendarExternalActivity: "#2196f3"
} }
} }
context.state.themeEngine.type = "create" context.state.themeEngine.type = "create"

View file

@ -160,18 +160,7 @@ export default {
sheet: "#" + Math.floor(Math.random() * 16777215).toString(16), sheet: "#" + Math.floor(Math.random() * 16777215).toString(16),
text: "#" + Math.floor(Math.random() * 16777215).toString(16), text: "#" + Math.floor(Math.random() * 16777215).toString(16),
dark: "#" + Math.floor(Math.random() * 16777215).toString(16), dark: "#" + Math.floor(Math.random() * 16777215).toString(16),
bg: "#" + Math.floor(Math.random() * 16777215).toString(16), bg: "#" + Math.floor(Math.random() * 16777215).toString(16)
calendarNormalActivity:
"#" + Math.floor(Math.random() * 16777215).toString(16),
calendarActivityType7:
"#" + Math.floor(Math.random() * 16777215).toString(16),
calendarActivityType8:
"#" + Math.floor(Math.random() * 16777215).toString(16),
calendarActivityType10:
"#" + Math.floor(Math.random() * 16777215).toString(16),
calendarExternalActivity: Math.floor(
Math.random() * 16777215
).toString(16)
} }
this.$vuetify.theme.themes.dark = { this.$vuetify.theme.themes.dark = {
primary: "#" + Math.floor(Math.random() * 16777215).toString(16), primary: "#" + Math.floor(Math.random() * 16777215).toString(16),
@ -186,18 +175,7 @@ export default {
sheet: "#" + Math.floor(Math.random() * 16777215).toString(16), sheet: "#" + Math.floor(Math.random() * 16777215).toString(16),
text: "#" + Math.floor(Math.random() * 16777215).toString(16), text: "#" + Math.floor(Math.random() * 16777215).toString(16),
dark: "#" + Math.floor(Math.random() * 16777215).toString(16), dark: "#" + Math.floor(Math.random() * 16777215).toString(16),
bg: "#" + Math.floor(Math.random() * 16777215).toString(16), bg: "#" + Math.floor(Math.random() * 16777215).toString(16)
calendarNormalActivity:
"#" + Math.floor(Math.random() * 16777215).toString(16),
calendarActivityType7:
"#" + Math.floor(Math.random() * 16777215).toString(16),
calendarActivityType8:
"#" + Math.floor(Math.random() * 16777215).toString(16),
calendarActivityType10:
"#" + Math.floor(Math.random() * 16777215).toString(16),
calendarExternalActivity: Math.floor(
Math.random() * 16777215
).toString(16)
} }
}, this.slider) }, this.slider)
}, },