-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
85 lines (73 loc) · 2.97 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Crowdin Script Editor</title>
<link href="https://crowdin.com/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="app/style.css" rel="stylesheet" type="text/css">
<script src="lib/acorn.js"></script>
<script src="lib/interpreter.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.32.0/codemirror.min.js"></script>
<script src="https://codemirror.net/mode/javascript/javascript.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.32.0/codemirror.min.css" />
<script src="app/index.js"></script>
</head>
<body>
<div class="grid-container">
<div class="Menu">
<button onclick="runButton()" title="Run code (Ctry+Y)" >▶️ Run</button>
<button onclick="resetEditor()" title="Reset editor (Ctrl+I)">🧹</button>
<div class="verticalLine"></div>
<button onclick="copyToClipboard()" title="Copy the code when ready to deploy">💾 Copy</button>
<div class="verticalLine"></div>
<label for="request-sample" title="Load sample request">Request</label>
<select name="request-sample" id="request-sample">
<optgroup label="QA Checks">
<option value="QACheck:plain" selected>Plain string</option>
<option value="QACheck:plural">Plural string</option>
<option value="QACheck:icu">ICU string</option>
</optgroup>
<optgroup label="Custom Code Step">
<option value="CCStep:plain">Plain string</option>
<option value="CCStep:plural">Plural string</option>
<option value="CCStep:icu">ICU string</option>
</optgroup>
</select>
<div class="verticalLine"></div>
<label for="samples" title="Load sample code to start quickly">Sample Code</label>
<select name="samples" id="samples">
<optgroup label="QA Checks">
<option value="check-simple" selected>Leading spaces</option>
<option value="space-after-punctuation">Space after punctuation</option>
</optgroup>
<optgroup label="Custom Code Step">
<option value="custom-code-simple">Filter by branch and context</option>
</optgroup>
</select>
<div class="verticalLine"></div>
<button title="Read docs or contact Crowdin team for help" disabled>📖 Help</button>
</div>
<div class="Code">
<textarea id="code"></textarea>
</div>
<div class="Request">
<div class="sub-menu">
Request
<span id="request-status"></span>
</div>
<textarea id="request"></textarea>
</div>
<div class="Response">
<div class="sub-menu">
Response
<span id="response-status"></span>
</div>
<textarea id="response"></textarea>
</div>
<div class="Footer">
<span id="time"></span>
</div>
</div>
</body>
</html>