-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
70 lines (70 loc) · 2.79 KB
/
index.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fsh Translate</title>
<!-- Boiler plate------ -->
<link rel="icon" href="https://fsh.plus/fsh.png" type="image/png">
<meta name="description" content="Fsh Translate - open, easy and free translation helper.">
<!-- ------- -->
<link rel="stylesheet" href="https://fsh.plus/media/style.css">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:image" content="https://fsh.plus/fsh.png">
<meta name="theme-color" content="#a89c9b">
<!-- ------------------ -->
<link rel="manifest" href="/media/manifest.json">
<link rel="stylesheet" href="/media/style.css">
<!-- Libraries -->
<script src="https://cdn.jsdelivr.net/npm/split.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js"></script>
</head>
<body>
<dialog id="file-load">
<button onclick="this.parentElement.close()" class="modal-close">x</button>
<h2>Load file</h2>
<select id="type-load">
<option value="json-o">JSON (File per language)</option>
<option value="json-m">JSON (One file for all)</option>
<option value="ftl">FTL (key=value)</option>
<option value="ftl">CSV</option>
</select>
<input id="file" type="file" accept="text/*,application/*" multiple>
<br>
<button id="file-load-button">Load</button>
</dialog>
<dialog id="file-save">
<button onclick="this.parentElement.close()" class="modal-close">x</button>
<h2>Save file</h2>
<select id="type-save">
<option value="json-o">JSON (File per language)</option>
<option value="json-m">JSON (One file for all)</option>
<option value="ftl">FTL (key=value)</option>
<option value="yaml-o">YAML (File per language)</option>
<option value="yaml-m">YAML (one file for all)</option>
</select>
<button id="file-save-button">Save</button>
</dialog>
<nav>
<img src="https://fsh.plus/fsh.png" width="25" height="25">
<p>Fsh Translate</p>
<button id="nav-file-button">File</button>
<button id="nav-editor-button">Editor</button>
</nav>
<main>
<div class="side">
<span>
<select id="lang-select"></select>
<button id="lang-remove">-</button>
<button id="lang-add">+</button>
</span>
<div id="tree">Load atleast one file</div>
</div>
<div class="panel"></div>
</main>
<script src="/media/common.js"></script>
<script src="/media/script.js" type="module"></script>
</body>
</html>