Constant INDEX_HTML

Source
pub const INDEX_HTML: &str = "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>OpenID Warp Demo</title>\n    <style>\n        .hide {\n            display: none;\n        }\n    </style>\n</head>\n\n<body>\n    <h1>OpenID Warp Demo</h1>\n    <div id=\"unauthorized\" class=\"hide\">\n        <a href=\"/oauth2/authorization/oidc\">login</a>\n    </div>\n    <div id=\"authorized\" class=\"hide\">\n        <div id=\"email\"></div>\n        <div><pre id=\"userinfo\"></pre></div>\n        <div><a id=\"logout\" href=\"/logout\">logout</a></div>\n    </div>\n    <script>\n        fetch(\"/api/account\").then((response) => {\n            if (response.status === 401) {\n                unauthorized.classList.remove(\"hide\");\n                throw \"Unauthorized\";\n            }\n            return response.json();\n        }).then((json) => {\n            email.innerHTML = json.email;\n            userinfo.innerHTML = JSON.stringify(json, null, 2);\n            authorized.classList.remove(\"hide\");\n        }).catch((err) => {\n            console.log(err);\n        });\n    </script>\n</body>\n\n</html>";