115 lines
5.1 KiB
HTML
115 lines
5.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Coremarket: Federated Core VM sizing & cloud pricing</title>
|
|
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>Coremarket</h1>
|
|
<span class="sub">Size a Federated Core stack, then price the VM across clouds and regions</span>
|
|
<span class="spacer"></span>
|
|
<span id="liveStatus" class="muted"></span>
|
|
<button id="editContaboBtn" class="ghost admin-only hidden" title="Edit Contabo plans and prices by hand">Edit Contabo prices</button>
|
|
<button id="refreshBtn" class="ghost admin-only hidden" title="Pull current prices from provider APIs">Refresh live prices</button>
|
|
<div class="menu">
|
|
<button id="userBtn" class="ghost" aria-haspopup="true" aria-expanded="false">Account ▾</button>
|
|
<div id="userMenu" class="menu-list hidden" role="menu">
|
|
<div id="userInfo" class="muted small menu-info"></div>
|
|
<button role="menuitem" data-act="keys">API keys</button>
|
|
<button role="menuitem" data-act="users" class="admin-only hidden">Users</button>
|
|
<button role="menuitem" data-act="password">Change password</button>
|
|
<button role="menuitem" data-act="docs">API docs</button>
|
|
<button role="menuitem" data-act="logout">Sign out</button>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="layout">
|
|
<aside>
|
|
<section>
|
|
<h2>1. Software</h2>
|
|
<div class="presets">
|
|
<label class="tier">Federated tier
|
|
<select id="tierSelect"></select>
|
|
</label>
|
|
<button id="clearApps" class="ghost" title="Untick all apps">Clear</button>
|
|
</div>
|
|
<input id="appSearch" type="search" placeholder="Filter apps...">
|
|
<p class="muted small">Always included (Federated Core): <span id="coreList"></span></p>
|
|
<div id="appList"></div>
|
|
</section>
|
|
</aside>
|
|
|
|
<main>
|
|
<section class="card">
|
|
<h2>2. Workload</h2>
|
|
<div class="grid4">
|
|
<label>Concurrent users <input id="concurrent" type="number" min="1" value="5"></label>
|
|
<label>Named users (accounts) <input id="named" type="number" min="1" value="10"></label>
|
|
<label>CPU/RAM headroom % <input id="headroom" type="number" min="0" value="25"></label>
|
|
<label>Disk growth % (12 mo) <input id="growth" type="number" min="0" value="30"></label>
|
|
<label>Extra disk GB <input id="extraDisk" type="number" min="0" value="0"></label>
|
|
<label class="chk"><input id="allowBurst" type="checkbox" checked> Allow burstable CPU</label>
|
|
<label class="chk"><input id="dedicatedOnly" type="checkbox"> Dedicated vCPU only</label>
|
|
<label class="chk"><input id="allowArm" type="checkbox"> Allow ARM64</label>
|
|
</div>
|
|
<div id="sizing" class="sizing"></div>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>3. Filters</h2>
|
|
<div class="filters">
|
|
<div><b>Regions</b><div id="contFilter" class="chips"></div></div>
|
|
<div><b>Must have compliance</b>
|
|
<div class="chips" id="compFilter"></div>
|
|
<label class="chk small"><input id="allowPartial" type="checkbox"> accept "partial"</label>
|
|
</div>
|
|
<div><b>Other</b>
|
|
<label class="chk small"><input id="needSmtp" type="checkbox"> exclude clouds that hard-block SMTP port 25</label>
|
|
<label class="chk small"><input id="bestPerProvider" type="checkbox" checked> cheapest region per provider only (by-region view)</label>
|
|
</div>
|
|
<div><b>Providers</b><div id="provFilter" class="chips"></div></div>
|
|
</div>
|
|
<div class="filters">
|
|
<div class="wide"><b>Latency focus cities</b> <span class="muted small">(columns show avg / worst estimated RTT to these)</span>
|
|
<div id="cityFilter" class="chips small"></div>
|
|
</div>
|
|
<div><b>Max RTT to focus cities</b>
|
|
<label>ms <input id="maxRtt" type="number" min="0" placeholder="no limit" style="width:7em"></label>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<div class="tabs">
|
|
<button data-tab="byregion" class="active">Prices by region</button>
|
|
<button data-tab="all">All options</button>
|
|
<button data-tab="matrix">Latency matrix</button>
|
|
<button data-tab="notes">Notes & API docs</button>
|
|
<span class="spacer"></span>
|
|
<span id="count" class="muted"></span>
|
|
<button id="csvBtn" class="ghost">Export CSV</button>
|
|
</div>
|
|
<div id="tab-byregion" class="tab"></div>
|
|
<div id="tab-all" class="tab hidden"></div>
|
|
<div id="tab-matrix" class="tab hidden"></div>
|
|
<div id="tab-notes" class="tab hidden"></div>
|
|
</section>
|
|
</main>
|
|
</div>
|
|
|
|
<dialog id="account"><form method="dialog" class="dlg-close top"><button>Close</button></form><div id="accountBody"></div></dialog>
|
|
<dialog id="editor"><div id="editorBody"></div></dialog>
|
|
<dialog id="detail">
|
|
<form method="dialog" class="dlg-close top"><button>Close</button></form>
|
|
<div id="detailBody"></div>
|
|
<form method="dialog" class="dlg-close"><button>Close</button></form>
|
|
</dialog>
|
|
<script src="/static/app.js"></script>
|
|
</body>
|
|
</html>
|