blob: 76f7dd5c0c4155cb6266f761fb7e361839bc97f9 [file] [log] [blame]
Davit Tabidze207ce082024-04-09 19:15:25 +04001<!DOCTYPE html>
2<html lang="en" data-theme="light">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
gio18d5c682024-05-02 10:30:57 +04006 <title>dodo: Launcher</title>
gio1bf00802024-08-17 12:31:41 +04007 <link rel="stylesheet" type="text/css" href="/stat/pico.2.0.6.min.css">
giodd213152024-09-27 11:26:59 +02008 <link rel="stylesheet" type="text/css" href="/stat/launcher.css?v=0.0.21">
Davit Tabidze9ca49262024-07-10 15:51:27 +04009 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.3.0/web/hack.min.css">
Davit Tabidze207ce082024-04-09 19:15:25 +040010</head>
11<body class="container-fluid">
12 <div id="left-panel">
13 <div class="user-circle">
14 <div class="circle">
Davit Tabidze9ca49262024-07-10 15:51:27 +040015 <p id="user-initial">{{ GetUserInitials .LoggedInUsername }}</p>
Davit Tabidze207ce082024-04-09 19:15:25 +040016 <div class="tooltip-user" id="tooltip-user">
17 <p>{{ .LoggedInUsername }}</p>
giodd213152024-09-27 11:26:59 +020018 <a href="{{ .AuthBaseAddr }}/change-password" role="button" class="profile-button" target="_blank">change password</a>
19 <a href="{{ .AuthBaseAddr }}/logout" role="button" class="profile-button">log out</a>
Davit Tabidze207ce082024-04-09 19:15:25 +040020 </div>
21 </div>
22 </div>
23 <hr class="separator">
Davit Tabidze9ca49262024-07-10 15:51:27 +040024 <div class="app-list scrollbar-custom">
Davit Tabidze207ce082024-04-09 19:15:25 +040025 {{range .AllAppsInfo}}
gio33fa9ca2024-08-16 10:25:24 +040026 <div class="app-container" id="{{ .Id }}">
27 <div class="app-icon" data-app-id="{{ .Id }}" data-app-url="{{ .URL }}" {{ if not .URL }}data-modal-id="modal-{{ CleanAppName .Id }}"{{ end }}>
28 {{.Icon}}
29 </div>
30 <div class="tooltip">
31 <p>{{ .Name }}</p>
32 {{ if .DisplayURL }}
Davit Tabidze9ca49262024-07-10 15:51:27 +040033 <p>{{ .DisplayURL }}</p>
gio33fa9ca2024-08-16 10:25:24 +040034 {{ end }}
35 {{ if .Help }}
Davit Tabidze9ca49262024-07-10 15:51:27 +040036 <button class="help-button" id="help-button-{{ CleanAppName .Id }}">Help</button>
gio33fa9ca2024-08-16 10:25:24 +040037 {{ end }}
38 </div>
giod4affa02024-06-04 18:29:33 +040039 <dialog class="app-help-modal" id="modal-{{ CleanAppName .Id }}" close>
Davit Tabidze207ce082024-04-09 19:15:25 +040040 <article class="modal-article">
41 <header>
42 <h4>{{ .Name }}</h4>
giod4affa02024-06-04 18:29:33 +040043 <button class="close-button" id="close-help-{{ CleanAppName .Id }}">
Davit Tabidze9ca49262024-07-10 15:51:27 +040044 <svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" viewBox="0 0 32 32"><path fill="#d4888d" d="M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m5.4 21L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"/></svg>
Davit Tabidze207ce082024-04-09 19:15:25 +040045 </button>
46 </header>
47 <div class="app-help-modal-article">
48 <div class="modal-left">
gio106b0242024-05-21 12:17:03 +040049 {{ template "help-menu-template" (dict "Help" .Help "First" true) }}
Davit Tabidze207ce082024-04-09 19:15:25 +040050 </div>
giod4affa02024-06-04 18:29:33 +040051 <div class="modal-right" id="modal-right-help-content-{{ CleanAppName .Id }}">
Davit Tabidze00077272024-06-11 20:19:36 +040052 <aside>
53 <nav>
54 {{ template "help-content-template" (dict "Help" .Help "First" true) }}
55 </nav>
56 </aside>
Davit Tabidze207ce082024-04-09 19:15:25 +040057 </div>
58 </div>
59 </article>
60 </dialog>
gio33fa9ca2024-08-16 10:25:24 +040061 </div>
Davit Tabidze207ce082024-04-09 19:15:25 +040062 {{end}}
63 </div>
64 </div>
65 <div id="right-panel">
Davit Tabidze00077272024-06-11 20:19:36 +040066 <iframe id="appFrame-default" class="appFrame" style="display: block;"></iframe>
Davit Tabidze207ce082024-04-09 19:15:25 +040067 </div>
68 {{ define "help-menu-template" }}
gio106b0242024-05-21 12:17:03 +040069 {{ $first := .First }}
70 <ul>
71 {{ range $i, $h := .Help }}
Davit Tabidze207ce082024-04-09 19:15:25 +040072 <li>
gio106b0242024-05-21 12:17:03 +040073 <a class="title-menu secondary" id="title-{{ CleanAppName $h.Title }}" {{ if (and $first (eq 0 $i)) }}aria-current="page"{{ end }}>{{ $h.Title }}</a>
74 {{ template "help-menu-template" (dict "Help" $h.Children "First" false) }}
Davit Tabidze207ce082024-04-09 19:15:25 +040075 </li>
76 {{ end }}
77 </ul>
78 {{ end }}
giobe7b7242024-05-20 18:13:55 +040079 {{ define "help-content-template" }}
80 {{ $first := .First }}
81 {{ range $i, $h := .Help }}
82 <div class="help-content" id="help-content-{{ CleanAppName $h.Title }}" {{ if (and $first (eq 0 $i)) }}style="display: block;"{{ end }}> {{ $h.Contents }}</div>
83 {{ template "help-content-template" (dict "Help" $h.Children "First" false) }}
Davit Tabidze207ce082024-04-09 19:15:25 +040084 {{ end }}
85 {{ end }}
gio1bf00802024-08-17 12:31:41 +040086 <script src="/stat/launcher.js?v=0.0.19"></script>
Davit Tabidze207ce082024-04-09 19:15:25 +040087</body>
88</html>