dashboard.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="description" content="A pomf-like file uploading service that doesn't suck.">
  5. <meta name="keywords" content="upload,lolisafe,file,images,hosting">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <link rel="apple-touch-icon" sizes="180x180" href="https://lolisafe.moe/images/icons/apple-touch-icon.png?v=XBreOJMe24">
  9. <link rel="icon" type="image/png" href="https://lolisafe.moe/images/icons/favicon-32x32.png?v=XBreOJMe24" sizes="32x32">
  10. <link rel="icon" type="image/png" href="https://lolisafe.moe/images/icons/favicon-16x16.png?v=XBreOJMe24" sizes="16x16">
  11. <link rel="manifest" href="https://lolisafe.moe/images/icons/manifest.json?v=XBreOJMe24">
  12. <link rel="mask-icon" href="https://lolisafe.moe/images/icons/safari-pinned-tab.svg?v=XBreOJMe24" color="#5bbad5">
  13. <link rel="shortcut icon" href="https://lolisafe.moe/images/icons/favicon.ico?v=XBreOJMe24">
  14. <meta name="apple-mobile-web-app-title" content="lolisafe">
  15. <meta name="application-name" content="lolisafe">
  16. <meta name="msapplication-config" content="https://lolisafe.moe/images/icons/browserconfig.xml?v=XBreOJMe24">
  17. <meta name="theme-color" content="#ffffff">
  18. <meta property="og:url" content="https://lolisafe.moe" />
  19. <meta property="og:type" content="website" />
  20. <meta property="og:title" content="lolisafe.moe | A small safe worth protecting." />
  21. <meta property="og:description" content="A pomf-like file uploading service that doesn't suck." />
  22. <meta property="og:image" content="http://lolisafe.moe/images/logo_square.png" />
  23. <meta property="og:image:secure_url" content="https://lolisafe.moe/images/logo_square.png" />
  24. <meta name="twitter:card" content="summary">
  25. <meta name="twitter:title" content="lolisafe.moe | A small safe worth protecting.">
  26. <meta name="twitter:description" content="A pomf-like file uploading service that doesn't suck.">
  27. <meta name="twitter:image" content="https://listen.moe/files/images/logo_square.png">
  28. <meta name="twitter:image:src" content="https://lolisafe.moe/images/logo_square.png">
  29. <title>lolisafe - A small safe worth protecting.</title>
  30. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.3.0/css/bulma.min.css">
  31. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
  32. <link rel="stylesheet" type="text/css" href="/css/style.css">
  33. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
  34. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.min.js"></script>
  35. <script type="text/javascript" src="https://use.fontawesome.com/cd26baa9bd.js"></script>
  36. <script type="text/javascript" src="/js/dashboard.js"></script>
  37. </head>
  38. <body>
  39. <section id='auth' class="hero is-light is-fullheight">
  40. <div class="hero-body">
  41. <div class="container">
  42. <h1 class="title">
  43. Admin dashboard
  44. </h1>
  45. <h2 class="subtitle">
  46. <p class="control has-addons">
  47. <input id='token' class="input is-danger" type="text" placeholder="Your admin token">
  48. <a id='tokenSubmit' class="button is-danger is-outlined">Check</a>
  49. </p>
  50. </h2>
  51. </div>
  52. </div>
  53. </section>
  54. <section id='dashboard' class="section">
  55. <div id="panel" class="container">
  56. <h1 class="title">Dashboard</h1>
  57. <h2 class="subtitle">A simple <strong>dashboard</strong>, to sort your uploaded stuff</h2>
  58. <hr>
  59. <div class="columns">
  60. <div class="column is-3">
  61. <aside class="menu" id="menu">
  62. <p class="menu-label">General</p>
  63. <ul class="menu-list">
  64. <li><a href="/">Frontpage</a></li>
  65. <li><a id="itemUploads" onclick="panel.getUploads()">Uploads</a></li>
  66. </ul>
  67. <p class="menu-label">Albums</p>
  68. <ul class="menu-list">
  69. <li><a id="itemManageGallery" onclick="panel.getAlbums()">Manage your albums</a></li>
  70. <li>
  71. <ul id='albumsContainer'></ul>
  72. </li>
  73. </ul>
  74. <p class="menu-label">Administration</p>
  75. <ul class="menu-list">
  76. <li><a id="itemTokens" onclick="panel.changeToken()">Change your token</a></li>
  77. <li><a id="itemPassword" onclick="panel.changePassword()">Change your password</a></li>
  78. <li><a id="itemLogout"onclick="panel.logout()">Logout</a></li>
  79. </ul>
  80. </aside>
  81. </div>
  82. <div class="column has-text-centered" id='page'>
  83. <img src="/images/logo.png">
  84. </div>
  85. </div>
  86. </div>
  87. </section>
  88. </body>
  89. </html>