mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-09 08:27:48 +09:00
Keep `swagger` and `external-render-helper` as a standalone entries for external render. - Move `devtest.ts` to `modules/` as init functions - Make external renders correctly load its helper JS and Gitea's current theme - Make external render iframe inherit Gitea's iframe's background color to avoid flicker - Add e2e tests for external render and OpenAPI iframe --------- Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
17 lines
719 B
Handlebars
17 lines
719 B
Handlebars
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Gitea API</title>
|
|
{{/* HINT: SWAGGER-OPENAPI-VIEWER: another place is "modules/markup/external/openapi.go" */}}
|
|
<link rel="stylesheet" href="{{ctx.CurrentWebTheme.PublicAssetURI}}">
|
|
<link rel="stylesheet" href="{{AssetURI "css/swagger.css"}}">
|
|
</head>
|
|
<body>
|
|
{{/* TODO: add Help & Glossary to help users understand the API, and explain some concepts like "Owner" */}}
|
|
<a class="swagger-back-link" href="{{AppSubUrl}}/">{{svg "octicon-reply"}}{{ctx.Locale.Tr "return_to_gitea"}}</a>
|
|
<div id="swagger-ui" data-source="{{AppSubUrl}}/swagger.v1.json"></div>
|
|
<footer class="page-footer"></footer>
|
|
{{ScriptImport "js/swagger.js" "module"}}
|
|
</body>
|
|
</html>
|