popup.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <script src="popup.js" type="module"></script>
  8. <style>
  9. body {
  10. width: 400px;
  11. height: 200px;
  12. padding: 0;
  13. }
  14. .p_ant-input {
  15. box-sizing: border-box;
  16. margin: 0;
  17. padding: 4px 11px;
  18. color: rgba(0, 0, 0, 0.88);
  19. font-size: 14px;
  20. line-height: 1.5714285714285714;
  21. list-style: none;
  22. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  23. position: relative;
  24. display: inline-block;
  25. width: 100%;
  26. min-width: 0;
  27. background-color: #ffffff;
  28. background-image: none;
  29. border-width: 1px;
  30. border-style: solid;
  31. border-color: #d9d9d9;
  32. border-radius: 6px;
  33. transition: all 0.2s;
  34. }
  35. .p_ant-input:focus {
  36. border-color: #4096ff;
  37. box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
  38. border-inline-end-width: 1px;
  39. outline: 0;
  40. }
  41. .p_ant-btn {
  42. outline: none;
  43. position: relative;
  44. display: inline-block;
  45. font-weight: 400;
  46. white-space: nowrap;
  47. text-align: center;
  48. background-image: none;
  49. background-color: transparent;
  50. border: 1px solid transparent;
  51. cursor: pointer;
  52. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  53. user-select: none;
  54. touch-action: manipulation;
  55. line-height: 1.5714285714285714;
  56. color: rgba(0, 0, 0, 0.88);
  57. }
  58. .p_ant-btn {
  59. font-size: 14px;
  60. height: 32px;
  61. padding: 4px 15px;
  62. border-radius: 6px;
  63. }
  64. .p_ant-btn-default {
  65. background-color: #ffffff;
  66. border-color: #d9d9d9;
  67. box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  68. }
  69. .p_ant-btn-default:not(:disabled):active {
  70. color: #0958d9;
  71. border-color: #0958d9;
  72. }
  73. .p_ant-btn-default:not(:disabled):hover {
  74. color: #4096ff;
  75. border-color: #4096ff;
  76. }
  77. p {
  78. margin: 8px 0px;
  79. }
  80. </style>
  81. </head>
  82. <body>
  83. <div style="padding: 10px;border-bottom: 1px solid #ddd;font-size: 16px;font-weight: 600;">配置</div>
  84. <div style="padding: 0px 10px 20px 10px;">
  85. <p style="font-size: 16px;">url</p>
  86. <input type="text" class="p_ant-input" id="url" placeholder="http://llm.com/api/chat/">
  87. <p style="font-size: 16px;">apiKey</p>
  88. <input type="password" class="p_ant-input" id="apiKey">
  89. </div>
  90. <div style="text-align: center;">
  91. <button id="myButton" style="margin:0 auto 16px;" class="p_ant-btn p_ant-btn-default">保存</button>
  92. </div>
  93. </body>
  94. </html>