-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebPages.h
More file actions
78 lines (67 loc) · 2.8 KB
/
Copy pathWebPages.h
File metadata and controls
78 lines (67 loc) · 2.8 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
#pragma once
#include <Arduino.h>
namespace WebPages {
String filesPageHeader(const String &pathEscaped,
const String &parentEncoded,
const String ¤tPathEncoded,
const String &backEncoded,
const String ¤tPathAttrEscaped,
const String &backAttrEscaped);
String filesDirectoryRow(const String &displayNameEscaped,
const String &linkEncoded,
const String &confirmNameEscaped,
const String &renameDefaultEscaped,
const String &backParam);
String filesFileRow(const String &displayNameEscaped,
const String &linkEncoded,
uint64_t size,
const String &confirmNameEscaped,
const String &renameDefaultEscaped,
const String &backParam);
String filesPageFooter();
String rootPage(const String &statusClass,
const String &statusText,
const String ¤tFileEscaped,
const String &optionsHtml,
const String &apSsid,
const String &apIp,
const String &mdnsName,
const String &staSsid,
const String &staStatus,
const String &staIp,
const String &stationId,
uint32_t startChannel,
uint16_t spokes,
uint8_t arms,
uint16_t pixelsPerArm,
uint8_t maxArms,
uint16_t maxPixelsPerArm,
uint16_t fps,
uint8_t displayDutyPercent,
uint8_t brightnessPercent,
uint8_t sdPreferredMode,
uint32_t sdBaseFreqKHz,
uint8_t sdActiveWidth,
uint32_t sdActiveFreqKHz,
bool sdReady,
bool playing,
bool paused,
bool autoplayEnabled,
bool hallDiagEnabled,
bool armTestEnabled,
bool watchdogEnabled,
bool bgEffectEnabled,
bool bgEffectActive,
const String &bgEffectCurrentEscaped,
const String &bgEffectOptionsHtml);
// NEW: Standalone Updates page (Upload + Reboot UI)
// Pass canReboot=true to enable the Reboot button (e.g., after successful upload)
String updatesPage(bool canReboot);
String directOtaPage();
String uploadRejectedPage(const String &backUrl);
String uploadFailurePage(const String &backUrl);
String uploadSuccessPage(const String &backUrl,
const String &filename,
size_t bytesWritten);
String logsPage(const String &logsPreEscaped);
} // namespace WebPages