panel.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>loli-safe - A self hosted upload service</title>
  5. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.3.0/css/bulma.min.css">
  6. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
  7. <link rel="stylesheet" type="text/css" href="/css/style.css">
  8. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
  9. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.min.js"></script>
  10. <script type="text/javascript" src="https://use.fontawesome.com/cd26baa9bd.js"></script>
  11. <script type="text/javascript" src="/js/panel.js"></script>
  12. </head>
  13. <body>
  14. <section id='auth' class="hero is-light is-fullheight">
  15. <div class="hero-body">
  16. <div class="container">
  17. <h1 class="title">
  18. Admin dashboard
  19. </h1>
  20. <h2 class="subtitle">
  21. <p class="control has-addons">
  22. <input id='token' class="input is-danger" type="text" placeholder="Your admin token">
  23. <a id='tokenSubmit' class="button is-danger is-outlined">Check</a>
  24. </p>
  25. </h2>
  26. </div>
  27. </div>
  28. </section>
  29. <section id='dashboard' class="section">
  30. <div id="panel" class="container">
  31. <h1 class="title">Dashboard</h1>
  32. <h2 class="subtitle">A simple <strong>dashboard</strong>, to sort your uploaded stuff</h2>
  33. <hr>
  34. <div class="columns">
  35. <div class="column is-3">
  36. <aside class="menu" id="menu">
  37. <p class="menu-label">General</p>
  38. <ul class="menu-list">
  39. <li><a href="/">Frontpage</a></li>
  40. <li><a id="itemUploads" onclick="panel.getUploads()">Uploads</a></li>
  41. </ul>
  42. <p class="menu-label">Albums</p>
  43. <ul class="menu-list">
  44. <li><a id="itemManageGallery" onclick="panel.getAlbums()">Manage your albums</a></li>
  45. <li>
  46. <ul id='albumsContainer'></ul>
  47. </li>
  48. </ul>
  49. <p class="menu-label">Administration</p>
  50. <ul class="menu-list">
  51. <li><a id="itemTokens" onclick="panel.changeToken()">Change your token</a></li>
  52. <li><a id="itemTokens" onclick="panel.changePassword()">Change your password</a></li>
  53. <li><a onclick="panel.logout()">Logout</a></li>
  54. </ul>
  55. </aside>
  56. </div>
  57. <div class="column has-text-centered" id='page'>
  58. <img src="/images/logo.png">
  59. </div>
  60. </div>
  61. </div>
  62. </section>
  63. </body>
  64. </html>