blob: 0177c5db9353270fbaf8878ef8d7234c6ac99763 [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>
Davit Tabidze207ce082024-04-09 19:15:25 +04007 <link rel="stylesheet" type="text/css" href="/static/pico.2.0.6.min.css">
Davit Tabidze42a6b8d2024-07-16 19:56:50 +04008 <link rel="stylesheet" type="text/css" href="/static/launcher.css?v=0.0.18">
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>
Davit Tabidze563b6ad2024-06-11 13:38:56 +040018 <a href="{{ .LogoutURL }}" role="button" id="logout-button">Log Out</a>
Davit Tabidze207ce082024-04-09 19:15:25 +040019 </div>
20 </div>
21 </div>
22 <hr class="separator">
Davit Tabidze9ca49262024-07-10 15:51:27 +040023 <div class="app-list scrollbar-custom">
Davit Tabidze207ce082024-04-09 19:15:25 +040024 {{range .AllAppsInfo}}
Davit Tabidze9ca49262024-07-10 15:51:27 +040025 <div class="app-icon" data-app-id="{{ .Id }}" data-app-url="{{ .URL }}" {{ if not .URL }}data-modal-id="modal-{{ CleanAppName .Id }}"{{ end }}>
26 {{.Icon}}
27 </div>
28 <div class="tooltip">
29 <p>{{ .Name }}</p>
30 {{ if .DisplayURL }}
31 <p>{{ .DisplayURL }}</p>
32 {{ end }}
33 {{ if .Help }}
34 <button class="help-button" id="help-button-{{ CleanAppName .Id }}">Help</button>
35 {{ end }}
36 </div>
giod4affa02024-06-04 18:29:33 +040037 <dialog class="app-help-modal" id="modal-{{ CleanAppName .Id }}" close>
Davit Tabidze207ce082024-04-09 19:15:25 +040038 <article class="modal-article">
39 <header>
40 <h4>{{ .Name }}</h4>
giod4affa02024-06-04 18:29:33 +040041 <button class="close-button" id="close-help-{{ CleanAppName .Id }}">
Davit Tabidze9ca49262024-07-10 15:51:27 +040042 <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 +040043 </button>
44 </header>
45 <div class="app-help-modal-article">
46 <div class="modal-left">
gio106b0242024-05-21 12:17:03 +040047 {{ template "help-menu-template" (dict "Help" .Help "First" true) }}
Davit Tabidze207ce082024-04-09 19:15:25 +040048 </div>
giod4affa02024-06-04 18:29:33 +040049 <div class="modal-right" id="modal-right-help-content-{{ CleanAppName .Id }}">
Davit Tabidze00077272024-06-11 20:19:36 +040050 <aside>
51 <nav>
52 {{ template "help-content-template" (dict "Help" .Help "First" true) }}
53 </nav>
54 </aside>
Davit Tabidze207ce082024-04-09 19:15:25 +040055 </div>
56 </div>
57 </article>
58 </dialog>
59 {{end}}
60 </div>
61 </div>
62 <div id="right-panel">
Davit Tabidze00077272024-06-11 20:19:36 +040063 <iframe id="appFrame-default" class="appFrame" style="display: block;"></iframe>
Davit Tabidze207ce082024-04-09 19:15:25 +040064 </div>
65 {{ define "help-menu-template" }}
gio106b0242024-05-21 12:17:03 +040066 {{ $first := .First }}
67 <ul>
68 {{ range $i, $h := .Help }}
Davit Tabidze207ce082024-04-09 19:15:25 +040069 <li>
gio106b0242024-05-21 12:17:03 +040070 <a class="title-menu secondary" id="title-{{ CleanAppName $h.Title }}" {{ if (and $first (eq 0 $i)) }}aria-current="page"{{ end }}>{{ $h.Title }}</a>
71 {{ template "help-menu-template" (dict "Help" $h.Children "First" false) }}
Davit Tabidze207ce082024-04-09 19:15:25 +040072 </li>
73 {{ end }}
74 </ul>
75 {{ end }}
giobe7b7242024-05-20 18:13:55 +040076 {{ define "help-content-template" }}
77 {{ $first := .First }}
78 {{ range $i, $h := .Help }}
79 <div class="help-content" id="help-content-{{ CleanAppName $h.Title }}" {{ if (and $first (eq 0 $i)) }}style="display: block;"{{ end }}> {{ $h.Contents }}</div>
80 {{ template "help-content-template" (dict "Help" $h.Children "First" false) }}
Davit Tabidze207ce082024-04-09 19:15:25 +040081 {{ end }}
82 {{ end }}
Davit Tabidzed1b742e2024-07-15 16:01:52 +040083 <script src="/static/launcher.js?v=0.0.14"></script>
Davit Tabidze207ce082024-04-09 19:15:25 +040084</body>
85</html>