Files
FTL/src/api/docs/content/index.html
T
2023-07-18 22:00:06 +02:00

64 lines
3.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes">
<title>Pi-hole API documentation</title>
<!--<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,600&display=swap" rel="stylesheet">-->
<link rel="stylesheet" href="external/highlight-default.min.css">
<script src="external/highlight.min.js"></script>
<script type='text/javascript' src='external/rapidoc-min.js'></script>
<script type="text/javascript" src="pi-hole.js"></script>
<link href='index.css' rel='stylesheet'>
<link rel="apple-touch-icon" href="<?=pihole.webhome()?>/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="<?=pihole.webhome()?>/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="<?=pihole.webhome()?>/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="<?=pihole.webhome()?>/img/favicons/manifest.json">
<link rel="mask-icon" href="<?=pihole.webhome()?>/img/favicons/safari-pinned-tab.svg" color="#367fa9">
<link rel="shortcut icon" href="<?=pihole.webhome()?>/img/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#367fa9">
<meta name="msapplication-TileImage" content="<?=pihole.webhome()?>/img/favicons/mstile-150x150.png">
<meta name="theme-color" content="#367fa9">
</head>
<body>
<rapi-doc id = "thedoc"
spec-url = "specs/main.yaml"
allow-server-selection = "true"
allow-authentication = "false"
allow-spec-url-load = "false"
allow-spec-file-load = "false"
show-header = "true"
show-info = "true"
theme = "dark"
allow-try = "true"
sort-endpoints-by = "path"
default-schema-tab = "model"
schema-style = "tree"
render-style = "view"
primary-color = "#2d87e2"
header-color = "#2d87e2"
api-key-name = "sid"
api-key-location = "header"
api-key-value = "-"
show-method-in-nav-bar="as-colored-block"
allow-search = "false">
<img slot="logo" style="padding-left: 10px;" src="images/logo.svg" width="40px" />
<div slot='header' style="font-weight:700; font-size:32px">
<div>Pi-hole API Documentation</div>
<div>
<input id='loginpw' type='password' size="4">
<button class='btn' id='loginbtn' onclick='loginout()'>Login</button>
</div>
</div>
<!-- content at the bottom -->
<div slot="footer" style="margin:0; padding:16px 36px; background-color:#2d87e2; color:#fff; text-align:center;">
<button class='btn' onclick="document.getElementById('thedoc').setAttribute('theme', 'dark')" >Dark Theme</button>
<button class='btn' onclick="document.getElementById('thedoc').setAttribute('theme', 'light')" >Light Theme</button>
<button class='btn large' onclick="setStyle('view')" >Default</button>
<button class='btn large' onclick="setStyle('read')" >Reader</button>
<button class='btn large' onclick="setStyle('focused')" >Focused reader</button>
</div>
</rapi-doc>
</body>
</html>