From 9a9b4019ea7e67137477c520ccba7d92db53a6d4 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Tue, 15 Mar 2022 08:16:45 +0000 Subject: [PATCH] Finish upgrade and billing pages --- packages/bbui/src/Typography/Body.svelte | 2 ++ packages/bbui/src/Typography/Heading.svelte | 3 ++- packages/worker/src/api/controllers/global/license.ts | 5 +++++ packages/worker/src/api/routes/global/license.ts | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/bbui/src/Typography/Body.svelte b/packages/bbui/src/Typography/Body.svelte index 9a1fe266fc..4690076809 100644 --- a/packages/bbui/src/Typography/Body.svelte +++ b/packages/bbui/src/Typography/Body.svelte @@ -5,12 +5,14 @@ export let serif = false export let weight = null export let textAlign = null + export let color = null

diff --git a/packages/worker/src/api/controllers/global/license.ts b/packages/worker/src/api/controllers/global/license.ts index d46409b5e2..6864f0b0f8 100644 --- a/packages/worker/src/api/controllers/global/license.ts +++ b/packages/worker/src/api/controllers/global/license.ts @@ -23,3 +23,8 @@ export const getInfo = async (ctx: any) => { } ctx.status = 200 } + +export const getQuotaUsage = async (ctx: any) => { + const usage = await Pro.Licensing.Quotas.getQuotaUsage() + ctx.body = usage +} diff --git a/packages/worker/src/api/routes/global/license.ts b/packages/worker/src/api/routes/global/license.ts index ab594d7dca..b9f5aa3218 100644 --- a/packages/worker/src/api/routes/global/license.ts +++ b/packages/worker/src/api/routes/global/license.ts @@ -7,5 +7,6 @@ router .post("/api/global/license/activate", controller.activate) .post("/api/global/license/refresh", controller.refresh) .get("/api/global/license/info", controller.getInfo) + .get("/api/global/license/usage", controller.getQuotaUsage) export = router