rename css to style.css

This commit is contained in:
technyon
2023-01-25 21:28:06 +01:00
parent 8afb4b6fd4
commit d12e107141
3 changed files with 7 additions and 7 deletions

View File

@@ -43,11 +43,11 @@ void WebCfgServer::initialize()
buildHtml(response); buildHtml(response);
_server.send(200, "text/html", response); _server.send(200, "text/html", response);
}); });
_server.on("/new.css", [&]() { _server.on("/style.css", [&]() {
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) { if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
return _server.requestAuthentication(); return _server.requestAuthentication();
} }
sendNewCss(); sendCss();
}); });
_server.on("/inter.css", [&]() { _server.on("/inter.css", [&]() {
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) { if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
@@ -735,7 +735,7 @@ void WebCfgServer::buildHtmlHeader(String &response)
{ {
response.concat("<HTML><HEAD>"); response.concat("<HTML><HEAD>");
response.concat("<meta name='viewport' content='width=device-width, initial-scale=1'>"); response.concat("<meta name='viewport' content='width=device-width, initial-scale=1'>");
response.concat("<link rel='stylesheet' href='/new.css'>"); response.concat("<link rel='stylesheet' href='/style.css'>");
response.concat("<TITLE>NUKI Hub</TITLE></HEAD><BODY>"); response.concat("<TITLE>NUKI Hub</TITLE></HEAD><BODY>");
} }
@@ -933,10 +933,10 @@ void WebCfgServer::handleOtaUpload()
} }
} }
void WebCfgServer::sendNewCss() void WebCfgServer::sendCss()
{ {
// escaped by https://www.cescaper.com/ // escaped by https://www.cescaper.com/
_server.send(200, "text/plain", newcss, sizeof(newcss)); _server.send(200, "text/plain", stylecss, sizeof(stylecss));
} }
void WebCfgServer::sendFontsInterMinCss() void WebCfgServer::sendFontsInterMinCss()

View File

@@ -37,7 +37,7 @@ private:
void buildNukiConfigHtml(String& response); void buildNukiConfigHtml(String& response);
void buildConfirmHtml(String& response, const String &message, uint32_t redirectDelay = 5); void buildConfirmHtml(String& response, const String &message, uint32_t redirectDelay = 5);
void buildConfigureWifiHtml(String& response); void buildConfigureWifiHtml(String& response);
void sendNewCss(); void sendCss();
void sendFontsInterMinCss(); void sendFontsInterMinCss();
void sendFavicon(); void sendFavicon();
void processUnpair(bool opener); void processUnpair(bool opener);

File diff suppressed because one or more lines are too long