| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8" /> |
| 5 |
<title>Cockpit playground</title> |
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 |
<link href="test.css" type="text/css" rel="stylesheet" /> |
| 8 |
<script src="../base1/cockpit.js"></script> |
| 9 |
<script src="test.js"></script> |
| 10 |
</head> |
| 11 |
<body class="pf-v6-m-tabular-nums" hidden="true"> |
| 12 |
<div class="pf-v6-c-page"> |
| 13 |
<main class="pf-v6-c-page__main" tabindex="-1"> |
| 14 |
<section id="internal" class="pf-v6-c-page__main-section pf-m-light"> |
| 15 |
<img src="hammer.gif" id="hammer" width="100" /> |
| 16 |
<div id="nav"></div> |
| 17 |
<button class="pf-v6-c-button pf-m-secondary" id="go-down">Go down</button> |
| 18 |
<br/> |
| 19 |
<br/> |
| 20 |
<div class="cockpit-internal-reauthorize"> |
| 21 |
<button class="pf-v6-c-button pf-m-secondary">Privileged Action</button> |
| 22 |
<span></span> |
| 23 |
</div> |
| 24 |
<div class="super-channel"> |
| 25 |
<button class="pf-v6-c-button pf-m-secondary">Superuser</button> |
| 26 |
<span></span> |
| 27 |
</div> |
| 28 |
<div class="lock-channel"> |
| 29 |
<button class="pf-v6-c-button pf-m-secondary">Lock /tmp/playground-test-lock</button> |
| 30 |
<span></span> |
| 31 |
</div> |
| 32 |
<button class="pf-v6-c-button pf-m-secondary" id="modify-file">Increment /tmp/counter atomically</button> |
| 33 |
<div id="file-content"></div> |
| 34 |
<div id="file-error"></div> |
| 35 |
<br/> |
| 36 |
<div> |
| 37 |
<button class="pf-v6-c-button pf-m-secondary" id="load-file">Load /tmp/counter</button> |
| 38 |
<button class="pf-v6-c-button pf-m-secondary" id="save-file">Overwrite /tmp/counter</button> |
| 39 |
<button class="pf-v6-c-button pf-m-secondary" id="delete-file">Delete /tmp/counter</button> |
| 40 |
</div> |
| 41 |
<textarea id="edit-file"></textarea> |
| 42 |
<br/> |
| 43 |
Visibility: <label id="hidden"></label> |
| 44 |
<div class="user-channel"> |
| 45 |
<p>cockpit.user() information</p> |
| 46 |
<div id="user-info" /> |
| 47 |
</div> |
| 48 |
<br/> |
| 49 |
<div id="fsreplace1-div"> |
| 50 |
<h2>fsreplace1 test</h2> |
| 51 |
<p>new filename</p> |
| 52 |
<input id="fsreplace1-filename" /> |
| 53 |
<p>text content</p> |
| 54 |
<input id="fsreplace1-content" /> |
| 55 |
<input id="fsreplace1-use-tag" type="checkbox" /> |
| 56 |
<label for="fsreplace1-use-tag">Use existing tag</label> |
| 57 |
<p>user/group</p> |
| 58 |
<input id="fsreplace1-user" placeholder="For example, admin" /> |
| 59 |
<input id="fsreplace1-group" placeholder="For example, admin" /> |
| 60 |
<p>file mode</p> |
| 61 |
<input id="fsreplace1-mode" type='number' placeholder="For example, 644" /> |
| 62 |
<button id="fsreplace1-create" class="pf-v6-c-button pf-m-secondary">Create file</button> |
| 63 |
<div id="fsreplace1-error"></div> |
| 64 |
</div> |
| 65 |
</section> |
| 66 |
</main> |
| 67 |
</div> |
| 68 |
</body> |
| 69 |
</html> |