feat: add show ram as bytes always on

This commit is contained in:
tdgao
2026-04-14 18:38:41 -06:00
parent 34e1db3a30
commit e9d42f276c
8 changed files with 58 additions and 8 deletions
@@ -38,6 +38,7 @@ export const DEFAULT_FEATURE_FLAGS = validateValues({
showProjectPageQuickServerButton: false,
newProjectGeneralSettings: false,
newProjectEnvironmentSettings: true,
serverRamAsBytesAlwaysOn: false,
archonSentryCapture: false,
hideRussiaCensorshipBanner: false,
disablePrettyProjectUrlRedirects: false,
@@ -1,12 +1,18 @@
import { provideModalBehavior, providePageContext } from '@modrinth/ui'
import { computed, ref } from 'vue'
import { useFeatureFlags } from '~/composables/featureFlags.ts'
export function setupPageContextProvider() {
const cosmetics = useCosmetics()
const featureFlags = useFeatureFlags()
providePageContext({
hierarchicalSidebarAvailable: ref(false),
showAds: ref(false),
featureFlags: {
serverRamAsBytesAlwaysOn: computed(() => featureFlags.value.serverRamAsBytesAlwaysOn),
},
openExternalUrl: (url) => window.open(url, '_blank'),
})
provideModalBehavior({