-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidepanel.html
More file actions
178 lines (162 loc) · 6.5 KB
/
sidepanel.html
File metadata and controls
178 lines (162 loc) · 6.5 KB
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Riven reader</title>
<link rel="stylesheet" href="styles/sidepanel.css">
</head>
<body>
<div class="container">
<header>
<div class="header-content">
<div class="header-left">
<h1>🎮 Riven reader</h1>
<p class="subtitle">Welcome to Riven reader</p>
</div>
<div class="header-right" id="userInfoHeader" style="display: none;">
<div class="user-avatar-small">
<span id="userInitialsHeader">?</span>
</div>
<div class="user-details-small">
<span id="userNameHeader">User</span>
<span id="userPlatformHeader" class="user-platform"></span>
</div>
<select id="languageSelector" class="language-selector" title="Language">
<option value="en">EN</option>
<option value="de">DE</option>
<option value="es">ES</option>
<option value="fr">FR</option>
<option value="it">IT</option>
<option value="ko">KO</option>
<option value="pl">PL</option>
<option value="pt">PT</option>
<option value="ru">RU</option>
<option value="zh-hans">ZH-S</option>
<option value="zh-hant">ZH-T</option>
</select>
<button id="logoutBtnHeader" class="btn btn-secondary btn-xs" title="Sign out">
↪️
</button>
</div>
</div>
</header>
<main>
<!-- Login page -->
<div id="loginPage" class="content">
<div class="login-card">
<h2>Sign In</h2>
<p class="login-subtitle">Connect to your Warframe Market account</p>
<div id="errorMessage" class="error-message" style="display: none;"></div>
<form id="loginForm">
<div class="form-group">
<label for="email">Email</label>
<input
type="email"
id="email"
name="email"
class="form-input"
placeholder="your@email.com"
required
autocomplete="email"
>
</div>
<div class="form-group">
<label for="password">Password</label>
<input
type="password"
id="password"
name="password"
class="form-input"
placeholder="••••••••"
required
autocomplete="current-password"
>
</div>
<button type="submit" class="btn btn-primary btn-block btn-large" id="loginBtn">
<span class="btn-icon">🎮</span>
Sign In
</button>
</form>
<div class="login-footer">
<p>Don't have an account?</p>
<a href="https://warframe.market/auth/register" target="_blank" class="link">
Create an account on Warframe Market
</a>
</div>
</div>
</div>
<!-- Main page (after login) -->
<div id="mainPage" class="content" style="display: none;">
<!-- Tabs -->
<div class="tabs">
<button class="tab-button active" data-tab="nouveau">New</button>
<button class="tab-button" data-tab="rivens">Rivens</button>
<button class="tab-button" data-tab="orders">Your Orders</button>
</div>
<!-- Tab content -->
<div class="tab-content">
<div id="nouveauTab" class="tab-pane active">
<div class="upload-section">
<h3>Add a New Riven</h3>
<p class="upload-subtitle">Upload a screenshot of your Riven</p>
<div id="dropZone" class="drop-zone">
<input type="file" id="fileInput" accept="image/png,image/jpeg,image/jpg" style="display: none;">
<div class="drop-zone-content">
<div class="drop-zone-icon">📷</div>
<p class="drop-zone-text">Drag and drop an image here</p>
<p class="drop-zone-subtext">or</p>
<button type="button" class="btn btn-primary btn-sm" id="uploadBtn">
Choose a file
</button>
<p class="drop-zone-hint">PNG or JPG only</p>
</div>
<div id="imagePreview" class="image-preview" style="display: none;">
<img id="previewImg" src="" alt="Preview">
<button type="button" class="btn-remove" id="removeBtn" title="Remove">×</button>
</div>
</div>
<!-- OCR Results Section -->
<div id="ocrResultsSection" class="ocr-results-section" style="display: none;">
<h3>OCR Results</h3>
<div id="ocrStatus" class="ocr-status">
<span class="ocr-status-icon">⏳</span>
<span id="ocrStatusText">Processing image...</span>
</div>
<div id="ocrResults" class="ocr-results" style="display: none;">
<div class="ocr-confidence">
<span>Confidence: </span>
<span id="ocrConfidence" class="confidence-value">-</span>
</div>
<div class="ocr-text-container">
<label>Detected Text:</label>
<textarea id="ocrText" class="ocr-textarea" rows="10" readonly></textarea>
</div>
<button type="button" class="btn btn-primary" id="analyzeBtn">
Analyze Riven Data
</button>
</div>
</div>
</div>
</div>
<div id="rivensTab" class="tab-pane">
<!-- Rivens tab content (empty for now) -->
</div>
<div id="ordersTab" class="tab-pane">
<!-- Orders tab content -->
</div>
</div>
</div>
</main>
<footer>
<p>© 2026 Riven reader</p>
</footer>
</div>
<!-- Tesseract.js Local -->
<script src='libs/tesseract.min.js'></script>
<div id="toast-container"></div>
<script src="scripts/api.js"></script>
<script type="module" src="scripts/modules-loader.js"></script>
<script src="scripts/sidepanel.js"></script>
</body>
</html>