mirror of
https://github.com/hanzoai/forge.git
synced 2026-10-30 15:00:39 +00:00
Finishes the residual pass: the bulk of served leaks remained (28 locale files, most templates, all raster/source assets, Chinese READMEs). Imports, identifiers, and wire contracts are left intact. - locale: 28 files, all "Gitea" -> "Hanzo Git"; docs/blog/about.gitea.* + gitea.com/.io + go-gitea help URLs -> docs.hanzo.ai / git.hanzo.ai / github.com/hanzoai/git (keys with lowercase "gitea" preserved) - templates: footer, swagger UI title + generated OpenAPI specs (stale gitea.dev x-go-package -> github.com/hanzoai/git), webhook usernames, OAuth-source labels, package/help doc links, example org/team identifiers - Go served defaults: RSS feed author/description, git commit user.name + fallback email, WWW-Authenticate realms (OAuth2/packages/container), 500/error pages, MS Teams card, built-in OAuth provider label, CLI --help, SSH + push-rejection messages, startup/index/redis/doctor logs, test-mail subject + X-Mailer - config: app.example.ini APP_NAME default - assets: source assets/*.svg, gitea.svg, gitea-gitea sprite, and all PNGs (logo/favicon/apple-touch/avatar_default) regenerated as the committed black-tile Hanzo mark; --color-logo #609926 -> monochrome; favicon-status test realigned to the new mark (viewBox 64) - README.zh-tw + README.zh-cn rewritten as Hanzo Git - render field CommitParticipant.GiteaUser -> User Preserved (imports / identifiers / external contracts): code.gitea.io, module github.com/hanzoai/git, gitea.dev/sdk dep, X-Gitea-* webhook + email headers, WWW-Authenticate realm="Gitea" in git-HTTP (Git Credential Manager OAuth2 detection), GitServiceType "Gitea" migration-source name, theme id gitea-auto, .gitea-* classes / svg symbol ids, Go/JS identifiers, "The Gitea Authors" copyright headers, outbound User-Agent headers. Co-authored-by: Hanzo Dev <[email protected]>
83 lines
4.9 KiB
Handlebars
83 lines
4.9 KiB
Handlebars
{{template "admin/layout_head" (dict "pageClass" "admin dashboard")}}
|
|
<div class="admin-setting-content">
|
|
{{if .NeedUpdate}}
|
|
<div class="ui negative message flash-error">
|
|
<p>{{ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer "https://hanzo.ai/blog"}}</p>
|
|
</div>
|
|
{{end}}
|
|
<h4 class="ui top attached header">
|
|
{{ctx.Locale.Tr "admin.dashboard.maintenance_operations"}}
|
|
</h4>
|
|
<div class="ui attached table segment">
|
|
<form method="post" action="{{AppSubUrl}}/-/admin">
|
|
<table class="ui very basic table tw-mt-0 tw-px-4">
|
|
<tbody>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.delete_inactive_accounts"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_inactive_accounts">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.delete_repo_archives"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_repo_archives">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.delete_missing_repos"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.git_gc_repos"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="git_gc_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
{{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}}
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="resync_all_sshkeys">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="resync_all_sshprincipals">{{svg "octicon-play" 16}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
{{end}}
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.resync_all_hooks"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="resync_all_hooks">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.reinit_missing_repos"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="reinit_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.sync_external_users"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="sync_external_users">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.repo_health_check"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="repo_health_check">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.delete_generated_repository_avatars"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_generated_repository_avatars">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.sync_repo_branches"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="sync_repo_branches">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ctx.Locale.Tr "admin.dashboard.sync_repo_tags"}}</td>
|
|
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="sync_repo_tags">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
<h4 class="ui top attached header">
|
|
{{ctx.Locale.Tr "admin.dashboard.system_status"}}
|
|
</h4>
|
|
{{/* TODO: make these stats work in multi-server deployments, likely needs per-server stats in DB */}}
|
|
<div class="ui attached table segment">
|
|
{{template "admin/system_status" .}}
|
|
</div>
|
|
</div>
|
|
{{template "admin/layout_footer" .}}
|