Refactor web build process and update documentation
- Removed Node.js build artifacts from .gitignore and adjusted Makefile to reflect changes in web UI build process, now using server-rendered Go templates instead of React. - Updated README to clarify the new web UI architecture and output formats, emphasizing the removal of the Node.js build step. - Added a command to set the number of frames per render task in manager configuration, enhancing user control over rendering settings. - Improved Gitea workflow by removing unnecessary npm install step, streamlining the CI process.
This commit is contained in:
36
web/templates/partials/admin_apikeys.html
Normal file
36
web/templates/partials/admin_apikeys.html
Normal file
@@ -0,0 +1,36 @@
|
||||
{{ define "partial_admin_apikeys" }}
|
||||
{{ $keys := index . "keys" }}
|
||||
{{ if not $keys }}
|
||||
<p>No API keys generated yet.</p>
|
||||
{{ else }}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Scope</th>
|
||||
<th>Prefix</th>
|
||||
<th>Active</th>
|
||||
<th>Created</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range $key := $keys }}
|
||||
<tr>
|
||||
<td>{{ $key.ID }}</td>
|
||||
<td>{{ $key.Name }}</td>
|
||||
<td>{{ $key.Scope }}</td>
|
||||
<td>{{ $key.Key }}</td>
|
||||
<td>{{ if $key.IsActive }}yes{{ else }}no{{ end }}</td>
|
||||
<td>{{ formatTime $key.CreatedAt }}</td>
|
||||
<td class="row">
|
||||
<button class="btn tiny" data-revoke-apikey="{{ $key.ID }}">Revoke</button>
|
||||
<button class="btn tiny danger" data-delete-apikey="{{ $key.ID }}">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user