diff --git a/web/package-lock.json b/web/package-lock.json index 839d03979..947c7564c 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -2526,30 +2526,14 @@ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" }, "chart.js": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-2.9.4.tgz", - "integrity": "sha512-B07aAzxcrikjAPyV+01j7BmOpxtQETxTSlQ26BEYJ+3iUkbNKaOJ/nDbT6JjyqYxseM0ON12COHYdU2cTIjC7A==", - "requires": { - "chartjs-color": "^2.1.0", - "moment": "^2.10.2" - } + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.0.2.tgz", + "integrity": "sha512-DR0GmFSlxcFJp/w//ZmbxSduAkH/AqwxoiZxK97KHnWZf6gvsKWS3160WvNMMHYvzW9OXqGWjPjVh1Qu+xDabg==" }, - "chartjs-color": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chartjs-color/-/chartjs-color-2.4.1.tgz", - "integrity": "sha512-haqOg1+Yebys/Ts/9bLo/BqUcONQOdr/hoEr2LLTRl6C5LXctUdHxsCYfvQVg5JIxITrfCNUDr4ntqmQk9+/0w==", - "requires": { - "chartjs-color-string": "^0.6.0", - "color-convert": "^1.9.3" - } - }, - "chartjs-color-string": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/chartjs-color-string/-/chartjs-color-string-0.6.0.tgz", - "integrity": "sha512-TIB5OKn1hPJvO7JcteW4WY/63v6KwEdt6udfnDE9iCAZgy+V4SrbSxoIbTw/xkUIapjEI4ExGtD0+6D3KyFd7A==", - "requires": { - "color-name": "^1.0.0" - } + "chartjs-adapter-moment": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/chartjs-adapter-moment/-/chartjs-adapter-moment-1.0.0.tgz", + "integrity": "sha512-PqlerEvQcc5hZLQ/NQWgBxgVQ4TRdvkW3c/t+SUEQSj78ia3hgLkf2VZ2yGJtltNbEEFyYGm+cA6XXevodYvWA==" }, "chokidar": { "version": "3.5.1", diff --git a/web/package.json b/web/package.json index 49cf6266c..20aa0a834 100644 --- a/web/package.json +++ b/web/package.json @@ -60,16 +60,19 @@ "authentik-api": "file:api", "babel-plugin-macros": "^3.0.1", "base64-js": "^1.5.1", - "chart.js": "^2.9.4", + "chart.js": "^3.0.2", + "chartjs-adapter-moment": "^1.0.0", "codemirror": "^5.60.0", "construct-style-sheets-polyfill": "^2.4.16", + "eslint": "^7.23.0", "eslint-config-google": "^0.14.0", "eslint-plugin-lit": "^1.3.0", - "eslint": "^7.23.0", "flowchart.js": "^1.15.0", "lit-element": "^2.4.0", "lit-html": "^1.3.0", + "moment": "^2.29.1", "rapidoc": "^9.0.0", + "rollup": "^2.44.0", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-cssimport": "^1.0.2", @@ -77,7 +80,6 @@ "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.6.3", "rollup-plugin-terser": "^7.0.2", - "rollup": "^2.44.0", "ts-lit-plugin": "^1.2.1", "tslib": "^2.1.0", "typescript": "^4.2.3", diff --git a/web/rollup.config.js b/web/rollup.config.js index 8f47c10de..f207c7481 100644 --- a/web/rollup.config.js +++ b/web/rollup.config.js @@ -30,6 +30,9 @@ const resources = [ const isProdBuild = process.env.NODE_ENV === "production"; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types function manualChunks(id) { + if (id.endsWith("web/api/dist/index.js")) { + return "api"; + } if (id.includes("locales")) { const parts = id.split("/"); const file = parts[parts.length - 1]; diff --git a/web/src/authentik.css b/web/src/authentik.css index e90262bb3..b61a0d566 100644 --- a/web/src/authentik.css +++ b/web/src/authentik.css @@ -129,7 +129,6 @@ body { --pf-c-card--BackgroundColor: var(--ak-dark-background-light); } .pf-c-card__title, - .pf-c-card__header-main, .pf-c-card__body { color: var(--ak-dark-foreground); } diff --git a/web/src/elements/cards/AggregateCard.ts b/web/src/elements/cards/AggregateCard.ts index 6f95a68e3..11898b415 100644 --- a/web/src/elements/cards/AggregateCard.ts +++ b/web/src/elements/cards/AggregateCard.ts @@ -45,7 +45,7 @@ export class AggregateCard extends LitElement { render(): TemplateResult { return html`