1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00

Finish upgrade and billing pages

This commit is contained in:
Rory Powell 2022-03-15 08:16:45 +00:00
parent ccf2fe3d01
commit 0d64bed4b3
4 changed files with 10 additions and 1 deletions

View file

@ -5,12 +5,14 @@
export let serif = false
export let weight = null
export let textAlign = null
export let color = null
</script>
<p
style={`
${weight ? `font-weight:${weight};` : ""}
${textAlign ? `text-align:${textAlign};` : ""}
${color ? `color:${color};` : ""}
`}
class="spectrum-Body spectrum-Body--size{size}"
class:spectrum-Body--serif={serif}

View file

@ -5,12 +5,13 @@
export let size = "M"
export let textAlign
export let noPadding = false
export let weight = "default" // light, heavy, default
</script>
<h1
style={textAlign ? `text-align:${textAlign}` : ``}
class:noPadding
class="spectrum-Heading spectrum-Heading--size{size}"
class="spectrum-Heading spectrum-Heading--size{size} spectrum-Heading--{weight}"
>
<slot />
</h1>

View file

@ -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
}

View file

@ -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