-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
156 lines (156 loc) · 8.26 KB
/
app.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<head>
<title>Vimer</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="node_modules/@fortawesome/fontawesome-free/css/all.min.css" />
<meta charset="UTF-8" />
</head>
<body>
<div id="content">
<div class="screen" id="step-1">
<div class="screen-container">
<div class="main-logo" onclick="leaveScreen()">
<img id="main-logo-icon" src="default_icon.png" />
<img id="main-logo-name" src="assets/images/vimer.png" />
</div>
<input multiple type="file" accept="video/*,audio/*,image/*,text/*,application/x-subrip,application/octet-stream" hidden id="file-input" name="file-input" />
<div class="options">
<label for="file-input" class="button" class="position: relative; top: 1px;">
<i class="fas fa-plus icon-at-left" aria-hidden="true"></i>
<font data-language="SELECT_MEDIA_FILES"></font>
</label>
<button style="display: none;" onclick="step(2)">
<label data-language="GO_NEXT"></label><i class="fas fa-chevron-right" aria-hidden="true"></i>
</button>
</div>
<div id="file-list"></div>
<div id="options-icon">
<a href="javascript:;" onclick="switchScreen(99)">
<i class="fas fa-cog"></i>
</a>
<a href="javascript:;" onclick="switchScreen(98)" style="margin-left: 2vh;">
<i class="fas fa-info-circle"></i>
</a>
</div>
</div>
</div>
<div class="screen" id="step-2">
<div class="screen-container">
<h1 data-language="WHAT_TO_DO_FILE"></h1>
<textarea id="userPrompt" data-language="WHAT_TO_DO_FILE_DESCRIBE"></textarea>
<div class="options">
<button onclick="step(1)" class="sub-button" data-language="BACK"></button>
<button onclick="validateUserPrompt()" data-language="GO_NEXT"></button>
</div>
</div>
</div>
<div class="screen" id="step-3">
<div class="screen-container">
<img src="assets/images/brain.gif" />
<div class="options" style="display: none;">
<button onclick="step(2)" data-language="BACK"></button>
</div>
</div>
</div>
<div class="screen" id="step-4">
<div class="screen-container">
<h1 data-language="REVIEW_CONFIRM"></h1>
<p id="review-commands-description"></p>
<div id="review" style="margin-bottom: 20px;">
<a href="javascript:;" onclick="showReviewCommands(true)" style="color: #000 !important;">
<i class="fas fa-caret-down" aria-hidden="true"></i>
<font data-language="REVIEW_COMMANDS"></font>
</a>
<textarea id="review-commands" style="display: none;"></textarea>
</div>
<div class="options">
<button onclick="step(2)" class="sub-button" data-language="BACK"></button>
<button onclick="confirmReviewCommands()" data-language="GO_NEXT"></button>
</div>
</div>
</div>
<div class="screen" id="step-5">
<div class="screen-container">
<h1 id="command-progress">
<i class="fas fa-circle-notch fa-spin" aria-hidden="true"></i>
<font data-language="PROCESSING"></font>
<font id="command-progress-percentage"></font>
</h1>
<div class="options">
<button onclick="cancelCurrentCommand()" data-language="CANCEL"></button>
</div>
</div>
</div>
<div class="screen" id="step-6">
<div class="screen-container">
<h1><i class="fas fa-check-circle" aria-hidden="true"></i>
<font data-language="TASK_FINISHED"></font>
</h1>
<div id="result-message"></div>
<div class="options">
<button onclick="step(2)" class="sub-button" data-language="REVIEW_COMMANDS"></button>
<button onclick="newTask()" data-language="NEW_TASK"></button>
</div>
</div>
</div>
<div class="screen" id="step-98">
<div class="screen-container">
<h1 data-language="ABOUT"></h1>
<p></p>
<div class="options">
<button data-language="BACK" class="sub-button" id="options-back-button" onclick="previousScreen()"></button>
<button data-language="KNOW_MORE" onclick="app.openExternalURL('https://github.com/EdenwareApps/Vimer')"></button>
</div>
</div>
</div>
<div class="screen" id="step-99">
<div class="screen-container">
<h1 data-language="OPTIONS"></h1>
<p>
<label for="openai-api-key">
<font data-language="OPENAI_API_KEY"></font>
(<a href="javascript:;" onclick="app.openExternalURL('https://platform.openai.com/api-keys')"><font data-language="REQUIRED"></font></a>)
</label>
<input type="text" id="openai-api-key" name="openai-api-key" value="" data-language="OPENAI_API_KEY" />
</p>
<p>
<label for="openai-model-name">OpenAI model</label>
<input type="text" id="openai-model-name" name="openai-model-name" value="" data-language="OpenAI model" />
</p>
<p class="option-center">
<span>
<input type="checkbox" id="skip-command-review" name="skip-command-review" />
<label for="skip-command-review" data-language="SKIP_COMMAND_REVIEW"></label>
</span>
</p>
<p class="option-center">
<span>
<input type="checkbox" id="save-log-files" name="save-log-files" />
<label for="save-log-files" data-language="SAVE_LOG_FILES"></label>
</span>
</p>
<p>
<label for="locale" data-language="LANGUAGE"></label>
<select id="locale" name="locale"></select>
</p>
<p>
<label for="command-optimization-level" data-language="COMMAND_OPTIMIZATION_LEVEL"></label>
<select id="command-optimization-level" name="command-optimization-level">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</p>
<div class="options">
<button onclick="previousScreen()" data-language="BACK" class="sub-button" id="options-back-button"></button>
<button onclick="saveOptions()" data-language="SAVE"></button>
</div>
</div>
</div>
</div>
<script src="assets/scripts/renderer.js"></script>
</body>
</html>