A simple file sharing site with an easy to use API and online panel.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

79 行
3.7KB

  1. <div class="inner" ng-controller="KeyController" ng-init="init()">
  2. <div class="keys">
  3. <div class="key" ng-repeat="key in keys" ng-click="showKeyInfo(key)">
  4. <i class="fa fa-key"></i>
  5. <span>{{key.identifier}}</span>
  6. </div>
  7. <div class="key add-key" ng-hide="keys.length >= 5" ng-click="showNewKey()">
  8. <i class="fa fa-plus"></i>
  9. <span>Create</span>
  10. </div>
  11. </div>
  12. <div class="modal" ng-style="infoModalStyle">
  13. <div class="modal-sandbox" ng-click="hideKeyInfo()"></div>
  14. <div class="modal-box">
  15. <div class="modal-header">
  16. <h1>Key Info:&emsp;<span class="key-name">{{currKey.identifier}}</span></h1>
  17. <div class="close-modal" ng-click="hideKeyInfo()"><i class="fa fa-times"></i></div>
  18. </div>
  19. <div class="modal-body">
  20. <p>API Key:</p>
  21. <pre>{{currKey.key}}</pre>
  22. <br/>
  23. <p>This key can be used with any 3rd party program or service to upload to and manage your account
  24. with Shrimpa.</p>
  25. <br/>
  26. <p>Download the <a href="" ng-click="downloadBash()">bash script</a> to upload files from the command line.</p>
  27. <br/>
  28. <p>Download the ShareX <a href="" ng-click="downloadSharex()">custom uploader</a> to upload files with hotkeys.</p>
  29. <br/>
  30. <p>Key Permissions:</p>
  31. <table>
  32. <tr ng-repeat="(prefix, perms) in currKey.scope">
  33. <th>{{prefix}}:</th>
  34. <td ng-repeat="perm in perms">
  35. <span ng-bind="perm.name"></span>
  36. </td>
  37. </tr>
  38. </table>
  39. <br/>
  40. <p>If your key is compromised, it can be used to upload and modify your account without your knowledge.
  41. If it is lost or compromised, you can delete the key below, but be warned that this <em>cannot</em>
  42. be undone.</p>
  43. </div>
  44. <div class="modal-footer">
  45. <button class="btn-del" ng-click="deleteKey(currKey)">Delete Key</button>
  46. <button class="btn-close" ng-click="hideKeyInfo()">Close</button>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="modal" ng-style="newModalStyle">
  51. <div class="modal-sandbox" ng-click="hideNewKey()"></div>
  52. <div class="modal-box" id="createKey">
  53. <div class="modal-header">
  54. <h1>Create a Key</h1>
  55. <div class="close-modal" ng-click="hideNewKey()"><i class="fa fa-times"></i></div>
  56. </div>
  57. <div class="modal-body">
  58. <p>Identifier to describe the name or use of this key:</p>
  59. <input id="identifier" placeholder="Identifier" class="form-control" type="text" ng-model="newIdentifier"/>
  60. <br/>
  61. <p>Permissions granted to the key:</p>
  62. <table>
  63. <tr ng-repeat="(prefix, perms) in scope">
  64. <th>{{prefix}}:</th>
  65. <td ng-repeat="perm in perms">
  66. <input type="checkbox" title="{{perm.name}}" name="{{perm.name}}" ng-model="perm.isChecked" ng-change="updateNewScope(prefix, perm)"/>
  67. <label for="{{perm.name}}" ng-bind="perm.name"></label>
  68. </td>
  69. </tr>
  70. </table>
  71. </div>
  72. <div class="modal-footer">
  73. <button ng-click="createKey()">Create</button>
  74. <button ng-click="hideNewKey()">Cancel</button>
  75. </div>
  76. </div>
  77. </div>
  78. </div>