You've already forked AstralRinth
* New envs frontend * lint fix * Add blog post, user-facing changes, dashboard warning, project page member warning, and migration reviewing. maybe some other misc stuff * lint * lint * ignore .data in .prettierignore * i18n as fuck * fix proj page * Improve news markdown rendering * improve phrasing of initial paragraph * Fix environments not reloading after save * index.ts instead of underscored name * shrink-0 back on these icons
14 lines
403 B
TypeScript
14 lines
403 B
TypeScript
import type { Project, ProjectV3Partial } from '@modrinth/utils'
|
|
import type { Ref } from 'vue'
|
|
|
|
import { createContext } from '.'
|
|
|
|
export interface ProjectPageContext {
|
|
projectV2: Ref<Project>
|
|
projectV3: Ref<ProjectV3Partial>
|
|
refreshProject: () => Promise<void>
|
|
}
|
|
|
|
export const [injectProjectPageContext, provideProjectPageContext] =
|
|
createContext<ProjectPageContext>('root', 'projectPageContext')
|