feat: add browser upload queue and trusted sessions with bounded projections
This commit is contained in:
1 parent
84d52390f9
commit
b90aef79d0
79 files changed
+1962
-196
No files matched your search
@@ -11,8 +11,9 @@
|
||||
{{ if .Setup }}<label>{{ T "auth.bootstrap_token" }}<input name="bootstrap_token" autocomplete="off" required></label><label>{{ T "auth.display_name" }}<input name="display_name" autocomplete="name"></label><label>{{ T "auth.email" }}<input name="email" type="email" autocomplete="email"></label>{{ end }}
|
||||
<label>{{ T "auth.username" }}<input name="username" autocomplete="username" required autofocus></label>
|
||||
<label>{{ T "auth.password" }}<input name="password" type="password" autocomplete="{{ if .Setup }}new-password{{ else }}current-password{{ end }}" minlength="12" required></label>
|
||||
{{ if and (not .Setup) .TrustedSessionDays }}<label class="auth-remember"><input id="auth-remember" type="checkbox" name="remember" value="1" {{ if .RememberRequested }}checked{{ end }}><span>{{ T "auth.remember" }}({{ .TrustedSessionDays }} {{ T "auth.days" }})</span></label>{{ end }}
|
||||
<button class="auth-primary" type="submit">{{ if .Setup }}{{ T "auth.create_owner" }}{{ else }}{{ T "auth.login" }}{{ end }}</button></form>
|
||||
{{ if and (not .Setup) (not .MFA) .OIDCEnabled }}<div class="auth-separator"><span>{{ T "auth.or" }}</span></div><a class="auth-provider-button" href="/_/auth/oidc?return={{ .Return }}"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="8"/><path d="M12 4v16M8 8.5A5 5 0 0 1 16 12a5 5 0 0 1-8 3.5"/></svg><span>{{ T "auth.login_oidc" }}</span></a>{{ end }}
|
||||
{{ if and (not .Setup) (not .MFA) .LDAPEnabled }}<div class="auth-separator"><span>{{ T "auth.or" }}</span></div><form class="auth-form" method="post" action="/_/auth/ldap"><input type="hidden" name="return" value="{{ .Return }}"><label>{{ T "auth.ldap_username" }}<input name="username" autocomplete="username" required></label><label>{{ T "auth.password" }}<input name="password" type="password" autocomplete="current-password" required></label><button class="auth-provider-button" type="submit">{{ T "auth.login_ldap" }}</button></form>{{ end }}
|
||||
{{ if and (not .Setup) (not .MFA) .MagicEnabled }}{{ if .MagicSent }}<p>{{ T "auth.magic_sent" }}</p>{{ else }}<form class="auth-form auth-magic-form" method="post" action="/_/auth/magic-link"><input type="hidden" name="return" value="{{ .Return }}"><label>{{ T "auth.email" }}<input name="email" type="email" autocomplete="email" required></label><button class="auth-secondary">{{ T "auth.send_magic_link" }}</button></form>{{ end }}{{ end }}
|
||||
{{ end }}</section></main></body></html>{{ end }}
|
||||
{{ end }}</section></main><script src="/static/js/auth-remember.js" defer></script></body></html>{{ end }}
|
||||
@@ -455,7 +455,7 @@
|
||||
onmousedown="startResize(event, 'sidebar')"
|
||||
></div>
|
||||
|
||||
<section class="browser-main">
|
||||
<section class="browser-main" data-upload-directory="{{ .Path }}">
|
||||
|
||||
<div class="browser-toolbar">
|
||||
|
||||
@@ -1112,6 +1112,8 @@ restoreViewMode()
|
||||
restorePanes()
|
||||
</script>
|
||||
<script src="/static/js/browser-interactions.js?v=1"></script>
|
||||
<script src="/static/js/browser-upload.js?v=1" defer></script>
|
||||
<link rel="stylesheet" href="/static/css/browser-upload.css?v=1">
|
||||
<dialog class="browser-create-dialog" data-browser-create-dialog aria-labelledby="browser-create-title">
|
||||
<form>
|
||||
<h2 id="browser-create-title">{{ T "browser.new" }}</h2>
|
||||
|
||||
@@ -1169,6 +1169,7 @@ Vim
|
||||
<section id="panel-auth-sessions" class="config-section config-panel"><h1>{{ T "auth.sessions" }}</h1>
|
||||
<form method="post" action="/-/sys/config/auth" class="auth-account-form"><input type="hidden" name="action" value="save_session_policy"><label>{{ T "auth.session_minutes" }}<input type="number" name="session_minutes" value="{{ .AuthSessionMinutes }}" min="5" max="43200" step="1" required aria-describedby="session-policy-help"></label><button>{{ T "config.save" }}</button></form>
|
||||
<p id="session-policy-help" class="muted">{{ T "auth.session_policy_help" }}</p>
|
||||
<form method="post" action="/-/sys/config/auth" class="auth-account-form"><input type="hidden" name="action" value="save_trusted_session_policy"><label>{{ T "auth.trusted_days" }}<input type="number" name="trusted_session_days" value="{{ .AuthTrustedSessionDays }}" min="0" max="30" step="1" required></label><button>{{ T "config.save" }}</button></form>
|
||||
<div class="table-scroll"><table class="recent-table"><thead><tr><th>{{ T "auth.account" }}</th><th>{{ T "auth.auth_time" }}</th><th>{{ T "auth.last_seen" }}</th><th>{{ T "auth.expires" }}</th><th>MFA</th><th></th></tr></thead><tbody>{{ range .AuthSessions }}<tr><td>{{ .DisplayName }}</td><td>{{ formatUnixMS .AuthTimeMS }}</td><td>{{ formatUnixMS .LastSeenAtMS }}</td><td>{{ formatUnixMS .ExpiresAtMS }}</td><td>{{ .MFALevel }}</td><td><form method="post" action="/-/sys/config/auth"><input type="hidden" name="action" value="revoke_session"><input type="hidden" name="session_uuid" value="{{ .UUID }}"><button>{{ T "auth.revoke" }}</button></form></td></tr>{{ else }}<tr><td colspan="6">—</td></tr>{{ end }}</tbody></table></div>
|
||||
</section>
|
||||
<section id="panel-events" class="config-section config-panel"><h1>{{ T "config.event_definitions" }}</h1>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{{ define "feeds.gohtml" }}<!doctype html>
|
||||
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>{{ T "feeds.title" }} · {{ .WikiName }}</title>
|
||||
<link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/feeds.css?v=8"></head>
|
||||
<link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css"><link rel="stylesheet" href="{{ .ThemeCSS }}"><link rel="stylesheet" href="/static/css/feeds.css?v=9"></head>
|
||||
<body class="mode-view organizer-page feeds-page"><header class="topbar"><div class="brand"><a href="/">{{ .WikiName }}</a></div>{{ template "auth-menu" . }}</header>{{ template "organizer-nav" . }}
|
||||
<main id="feeds-app" data-writable="{{ .FeedWritable }}" data-tasks="{{ .TasksEnabled }}" data-wiki-prefix="{{ .FeedWikiPrefix }}" data-share-x="{{ .FeedShareX }}" data-link-mode="{{ .FeedLinkMode }}">
|
||||
<main id="feeds-app" data-timezone="{{ .FeedTimezone }}" data-writable="{{ .FeedWritable }}" data-tasks="{{ .TasksEnabled }}" data-wiki-prefix="{{ .FeedWikiPrefix }}" data-share-x="{{ .FeedShareX }}" data-link-mode="{{ .FeedLinkMode }}">
|
||||
<div id="feed-toolbar"></div><p id="feed-status" role="status" aria-live="polite"></p>
|
||||
<div class="feed-layout"><aside id="feed-sources" aria-label="{{ T "feeds.title" }}"></aside><section class="feed-index"><div id="feed-columns" aria-hidden="true"></div><div id="feed-rows" tabindex="0" role="listbox" aria-label="{{ T "feeds.title" }}"></div><button type="button" id="feed-more" hidden>↓</button></section><article id="feed-reader" tabindex="0"></article></div>
|
||||
</main><script src="/static/js/feeds.js?v=10" defer></script></body></html>{{ end }}
|
||||
</main><script src="/static/js/feeds.js?v=11" defer></script></body></html>{{ end }}
|
||||
@@ -10,5 +10,5 @@
|
||||
<label id="tasks-kind-control" class="tasks-search" hidden><span></span><select id="tasks-kind"></select></label><a id="tasks-project-archive" href="/v/plan/tasks/archived?kind=project" hidden></a>
|
||||
<p id="tasks-status" role="status" aria-live="polite"></p><div class="tasks-list-scroll"><div id="tasks-list" role="list"></div></div><button type="button" id="tasks-more" hidden></button>
|
||||
</section>
|
||||
<dialog id="tasks-dialog" aria-labelledby="tasks-dialog-title"><form id="tasks-form"><header class="tasks-toolbar"><h2 id="tasks-dialog-title"></h2><button type="button" id="tasks-close">×</button></header><div id="tasks-fields"></div><p id="tasks-error" role="alert"></p><details id="tasks-history"><summary></summary><ol></ol></details><footer class="tasks-actions"><button type="button" id="tasks-archive"></button><button type="button" id="tasks-delete" class="danger" hidden></button><a id="tasks-project-open" hidden></a><button type="submit" id="tasks-save"></button></footer></form></dialog>
|
||||
<dialog id="tasks-dialog" aria-labelledby="tasks-dialog-title"><form id="tasks-form"><header class="tasks-toolbar"><h2 id="tasks-dialog-title"></h2><button type="button" id="tasks-close">×</button></header><div id="tasks-fields"></div><p id="tasks-error" role="alert"></p><details id="tasks-history"><summary></summary><ol></ol></details><footer class="tasks-actions"><button type="button" id="tasks-archive"></button><button type="button" id="tasks-delete" class="danger" hidden></button><a id="tasks-page-open" class="task-footer-link" target="_blank" rel="noopener noreferrer" hidden></a><a id="tasks-project-open" class="task-footer-link" hidden></a><button type="submit" id="tasks-save"></button></footer></form></dialog>
|
||||
</main><link rel="stylesheet" href="/static/css/dav-settings.css?v=3"><script src="/static/js/task-inline.js?v=4" defer></script><script src="/static/js/task-today.js?v=1" defer></script><script src="/static/js/task-planning.js?v=3" defer></script><script src="/static/js/task-focus.js?v=2" defer></script><script src="/static/js/task-work.js?v=1" defer></script><script src="/static/js/tasks.js?v=11" defer></script><script src="/static/js/task-dav-settings.js?v=4" defer></script></body></html>{{ end }}
|
||||
@@ -4,6 +4,7 @@
|
||||
{{ else }}
|
||||
<p>{{ T "auth.cli_warning" }}</p>
|
||||
<p><strong>{{ .CLIOrigin }}</strong></p>
|
||||
{{ if .CLIRememberDays }}<p>{{ T "auth.remember_cli" }}: {{ .CLIRememberDays }} {{ T "auth.days" }}</p>{{ end }}
|
||||
{{ if .CLILogin }}
|
||||
<a class="auth-provider-button" href="{{ .CLILogin }}">{{ T "auth.login_oidc" }}</a>
|
||||
{{ else }}
|
||||
|
||||
Reference in new issue
Block a user