mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 01:54:47 +00:00
* fix: billing page server plan heading * fix: matching server page spacing with instance page * feat: update server header buttons * feat: add show ram as bytes always on * fix: revert to large buttons * feat: add hostname and server states in info card * feat: add publishing checklist to project page * fix: markdown table style and max width * fix: teleport overflow menu bad anchoring
19 lines
486 B
TypeScript
19 lines
486 B
TypeScript
import type { Ref } from 'vue'
|
|
|
|
import { createContext } from '.'
|
|
|
|
export interface PageContext {
|
|
// pages may render sidebar content in #sidebar-teleport-target instead of in the main layout when true
|
|
hierarchicalSidebarAvailable: Ref<boolean>
|
|
showAds: Ref<boolean>
|
|
featureFlags?: {
|
|
serverRamAsBytesAlwaysOn?: Ref<boolean>
|
|
}
|
|
openExternalUrl: (url: string) => void
|
|
}
|
|
|
|
export const [injectPageContext, providePageContext] = createContext<PageContext>(
|
|
'root',
|
|
'pageContext',
|
|
)
|