panel.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.changeTokens()">Change your tokens</a></li>
  52. <li><a onclick="panel.logout()">Logout</a></li>
  53. </ul>
  54. </aside>
  55. </div>
  56. <div class="column has-text-centered" id='page'>
  57. <img src="/images/logo.png">
  58. </div>
  59. </div>
  60. </div>
  61. </section>
  62. </body>
  63. </html>