File size: 1,644 Bytes
a289b2a
 
 
 
 
8f175f6
a289b2a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; connect-src 'none'; form-action 'none'">
  <title>Patchwise settings</title>
  <link rel="stylesheet" href="settings.css">
</head>
<body>
  <div class="banner" role="note">MOCK APP, NOT ORACLE FUSION</div>
  <main>
    <h1>Connection</h1>
    <p id="message" role="alert" class="msg" hidden></p>
    <form id="form" novalidate>
      <fieldset>
        <legend>Mode</legend>
        <label><input type="radio" name="mode" value="local" id="mode-local"> Local: start the backend on this PC</label>
        <label><input type="radio" name="mode" value="remote" id="mode-remote"> Remote: connect to a shared server</label>
      </fieldset>
      <label for="projectRoot">Project folder (local mode; the FPT checkout with architecture\.venv)</label>
      <input id="projectRoot" name="projectRoot" type="text" autocomplete="off">
      <label for="serverUrl">Server URL (remote mode, e.g. https://fpt.example.internal)</label>
      <input id="serverUrl" name="serverUrl" type="url" autocomplete="url">
      <label class="inline"><input id="autoStart" name="autoStart" type="checkbox"> Start with Windows</label>
      <button type="submit">Save and connect</button>
    </form>
    <p class="hint">Settings are stored in this app's user-data folder (config.json). Code signing is not available in this pilot, so Windows SmartScreen may warn on install.</p>
  </main>
  <script src="settings.js"></script>
</body>
</html>