Add basic tables and graphs for various tables.
Add basic tables and graphs for viewing things like uploads over time, new users over time, comments over time, etc. Located at https://betabooru.donmai.us/reports. The graphing uses Apache ECharts: https://echarts.apache.org/en/index.html.
This commit is contained in:
@@ -11,4 +11,10 @@ CurrentUser.update = function(settings) {
|
||||
});
|
||||
};
|
||||
|
||||
CurrentUser.darkMode = function() {
|
||||
let theme = CurrentUser.data("theme");
|
||||
|
||||
return theme === "dark" || (theme === "auto" && window.matchMedia("(prefers-color-scheme: dark)").matches);
|
||||
};
|
||||
|
||||
export default CurrentUser;
|
||||
|
||||
Reference in New Issue
Block a user