mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-23 15:12:52 +08:00
Fix changelog overflow, fix doc subpage (again)
This commit is contained in:
parent
9e84c06db3
commit
0cba1abaa3
@ -1,7 +1,7 @@
|
|||||||
import { ref, watch } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import { useInternalApi } from "~/composables/useApi";
|
import { useInternalApi } from "~/composables/useApi";
|
||||||
import { handleRequestError } from "~/composables/useErrorHandling";
|
import { handleRequestError } from "~/composables/useErrorHandling";
|
||||||
import { RouteLocationNormalizedLoaded, Router, useRoute, useRouter } from "vue-router";
|
import { RouteLocationNormalizedLoaded, Router } from "vue-router";
|
||||||
import { Context } from "vite-ssr/vue";
|
import { Context } from "vite-ssr/vue";
|
||||||
import { Composer, VueMessageType } from "vue-i18n";
|
import { Composer, VueMessageType } from "vue-i18n";
|
||||||
import { HangarProject } from "hangar-internal";
|
import { HangarProject } from "hangar-internal";
|
||||||
@ -19,7 +19,7 @@ export async function useProjectPage(
|
|||||||
handleRequestError(e, ctx, i18n)
|
handleRequestError(e, ctx, i18n)
|
||||||
);
|
);
|
||||||
if (!page) {
|
if (!page) {
|
||||||
await useRouter().push(useErrorRedirect(useRoute(), 404, "Not found"));
|
await router.push(useErrorRedirect(route, 404, "Not found"));
|
||||||
}
|
}
|
||||||
|
|
||||||
const editingPage = ref<boolean>(false);
|
const editingPage = ref<boolean>(false);
|
||||||
|
@ -148,7 +148,7 @@ async function restoreVersion() {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-if="projectVersion" class="flex <sm:flex-col flex-wrap md:flex-nowrap gap-4">
|
<div v-if="projectVersion" class="flex <sm:flex-col flex-wrap md:flex-nowrap gap-4">
|
||||||
<section class="basis-full md:basis-9/12 flex-grow">
|
<section class="basis-full md:basis-9/12 flex-grow overflow-auto">
|
||||||
<div class="flex flex-wrap gap-2 justify-between">
|
<div class="flex flex-wrap gap-2 justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="text-3xl sm:inline-flex items-center">
|
<h1 class="text-3xl sm:inline-flex items-center">
|
||||||
@ -181,7 +181,7 @@ async function restoreVersion() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Card class="relative mt-4">
|
<Card class="relative mt-4 erflow-clip overflow-hidden">
|
||||||
<MarkdownEditor
|
<MarkdownEditor
|
||||||
v-if="hasPerms(NamedPermission.EDIT_VERSION)"
|
v-if="hasPerms(NamedPermission.EDIT_VERSION)"
|
||||||
ref="editor"
|
ref="editor"
|
||||||
|
Loading…
Reference in New Issue
Block a user