Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

151 linesCodeBlameRaw
1<!doctype html>
2<!--
3 The desktop app's settings, in a window of their own: opened from the
4 menu, the tray, or the site's account menu (src/settings.rs). Each
5 change is kept as soon as it is made; there is nothing to save.
6-->
7<html lang="en">
8 <head>
9 <meta charset="utf-8" />
10 <meta name="viewport" content="width=device-width, initial-scale=1" />
11 <meta name="color-scheme" content="dark" />
12 <title>g1t settings</title>
13 <link rel="stylesheet" href="settings.css" />
14 </head>
15 <body>
16 <!-- Its title bar, when g1t draws its own (src/frame.rs): drag it to move the window. -->
17 <header class="titlebar" id="titlebar" hidden>
18 <span>Settings</span>
19 <button type="button" id="close-window" class="caption" aria-label="Close" title="Close" tabindex="-1">
20 <svg viewBox="0 0 16 16" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" aria-hidden="true">
21 <line x1="4" y1="4" x2="12" y2="12" />
22 <line x1="12" y1="4" x2="4" y2="12" />
23 </svg>
24 </button>
25 </header>
26 <div class="page">
27 <main>
28 <h1>Settings</h1>
29 <p class="muted lede">For the desktop app on this computer. Your account's settings, notifications included, are on g1t itself.</p>
30
31 <section aria-labelledby="general-heading">
32 <h2 id="general-heading">Starting and closing</h2>
33 <label class="setting">
34 <span><strong>Open g1t when you sign in</strong><span class="muted" id="open-at-login-note">g1t starts with your computer.</span></span>
35 <input type="checkbox" role="switch" id="openAtLogin" />
36 </label>
37 <label class="setting">
38 <span
39 ><strong>Start in the tray</strong
40 ><span class="muted" id="start-hidden-note">Opened at sign-in, g1t waits in the tray without opening its window.</span></span
41 >
42 <input type="checkbox" role="switch" id="startHidden" />
43 </label>
44 <label class="setting">
45 <span
46 ><strong>Keep g1t running when the window closes</strong
47 ><span class="muted">It stays in the tray for notifications. Turned off, closing the window quits.</span></span
48 >
49 <input type="checkbox" role="switch" id="closeToTray" />
50 </label>
51 </section>
52
53 <section aria-labelledby="runner-heading" id="runner-section">
54 <h2 id="runner-heading">Runner</h2>
55 <!-- What it is doing, in a line; the Runner window has the rest (runner.html). -->
56 <div class="setting">
57 <span
58 ><strong class="runner-line"
59 ><span class="dot" id="runner-dot" aria-hidden="true"></span><span id="runner-title" role="status" aria-live="polite">Runner</span></strong
60 ><span class="muted" id="runner-summary">Your workspace's <code>runs-on: self-hosted</code> jobs, on this computer while g1t is open.</span></span
61 >
62 <span class="buttons"><button type="button" id="open-runner">Open runner</button></span>
63 </div>
64 </section>
65
66 <section aria-labelledby="notifications-heading">
67 <h2 id="notifications-heading">Notifications</h2>
68 <label class="setting">
69 <span
70 ><strong>Show notifications</strong
71 ><span class="muted">From your system, for what needs you while g1t is behind another window. Which things notify you is set on g1t.</span></span
72 >
73 <input type="checkbox" role="switch" id="notifications" />
74 </label>
75 <label class="setting">
76 <span
77 ><strong id="flash-label">Flash the taskbar icon</strong
78 ><span class="muted">When a notification arrives and the window is not in front.</span></span
79 >
80 <input type="checkbox" role="switch" id="flash" />
81 </label>
82 <label class="setting">
83 <span><strong>Show a badge on the icon</strong><span class="muted">How many things are waiting for you.</span></span>
84 <input type="checkbox" role="switch" id="badge" />
85 </label>
86 </section>
87
88 <section aria-labelledby="window-heading">
89 <h2 id="window-heading">Window</h2>
90 <label class="setting">
91 <span
92 ><strong>Use the system's title bar</strong
93 ><span class="muted" id="system-title-bar-note">In place of g1t's own, with the menu bar under it.</span></span
94 >
95 <input type="checkbox" role="switch" id="systemTitleBar" />
96 </label>
97 <div class="setting" id="restart-row" hidden>
98 <span><strong>Restart to change the title bar</strong><span class="muted">g1t opens again where you were.</span></span>
99 <button type="button" id="restart-app" class="primary">Restart now</button>
100 </div>
101 <label class="setting">
102 <span><strong>Zoom</strong><span class="muted" id="zoom-note">The View menu changes it too.</span></span>
103 <select id="zoom">
104 <option value="0.67">67%</option>
105 <option value="0.75">75%</option>
106 <option value="0.8">80%</option>
107 <option value="0.9">90%</option>
108 <option value="1">100%</option>
109 <option value="1.1">110%</option>
110 <option value="1.25">125%</option>
111 <option value="1.5">150%</option>
112 <option value="1.75">175%</option>
113 <option value="2">200%</option>
114 </select>
115 </label>
116 </section>
117
118 <section aria-labelledby="updates-heading">
119 <h2 id="updates-heading">Updates</h2>
120 <label class="setting">
121 <span
122 ><strong>Download updates by themselves</strong
123 ><span class="muted">Each one installs when you restart or quit g1t, never in the middle of something.</span></span
124 >
125 <input type="checkbox" role="switch" id="autoUpdate" />
126 </label>
127 <div class="setting" id="updates-row">
128 <span><strong id="version">g1t</strong><span class="muted" id="update-status" aria-live="polite">&nbsp;</span></span>
129 <span class="buttons">
130 <button type="button" id="restart" class="primary" hidden>Restart now</button>
131 <button type="button" id="check">Check for updates</button>
132 </span>
133 </div>
134 </section>
135
136 <section aria-labelledby="server-heading">
137 <h2 id="server-heading">Server</h2>
138 <div class="setting">
139 <span><strong id="server">g1t.sh</strong><span class="muted">The g1t this app opens. Change it if you run g1t yourself.</span></span>
140 <button type="button" id="change-server">Change…</button>
141 </div>
142 </section>
143
144 <p class="error" id="error" role="alert" hidden></p>
145 <p class="muted small foot"><a href="https://docs.g1t.sh/guides/desktop/">About the desktop app</a></p>
146 </main>
147 </div>
148 <script src="busy.js"></script>
149 <script src="settings.js"></script>
150 </body>
151</html>