-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add ci * add github yml * update ci * update ci * update error ci * update * resolver issue #6 * ci * udpate ci * update ci * a * add github integration and update mknote * update * update code
- Loading branch information
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<MkStickyContainer> | ||
<template #header | ||
><MkPageHeader | ||
:actions="headerActions" | ||
:tabs="headerTabs" | ||
:display-back-button="true" | ||
/></template> | ||
<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> | ||
<FormSuspense :p="init"> | ||
<FormFolder class="_formBlock"> | ||
<template #icon | ||
><i class="ph-github-logo ph-bold ph-lg"></i | ||
></template> | ||
<template #label>GitHub</template> | ||
<template #suffix>{{ | ||
enableGithubIntegration | ||
? i18n.ts.enabled | ||
: i18n.ts.disabled | ||
}}</template> | ||
<XGithub /> | ||
</FormFolder> | ||
</FormSuspense> | ||
</MkSpacer> | ||
</MkStickyContainer> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import {} from "vue"; | ||
import XGithub from "./integrations.github.vue"; | ||
import FormSuspense from "@/components/form/suspense.vue"; | ||
import FormFolder from "@/components/form/folder.vue"; | ||
import * as os from "@/os"; | ||
import { i18n } from "@/i18n"; | ||
import { definePageMetadata } from "@/scripts/page-metadata"; | ||
let enableGithubIntegration: boolean = $ref(false); | ||
async function init() { | ||
const meta = await os.api("admin/meta"); | ||
enableGithubIntegration = meta.enableGithubIntegration; | ||
} | ||
const headerActions = $computed(() => []); | ||
const headerTabs = $computed(() => []); | ||
definePageMetadata({ | ||
title: i18n.ts.integration, | ||
icon: "ph-plug ph-bold ph-lg", | ||
}); | ||
</script> |