以此更改code-server样式

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta
  6. name="viewport"
  7. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
  8. />
  9. <meta
  10. http-equiv="Content-Security-Policy"
  11. content="style-src 'self'; script-src 'self' 'unsafe-inline'; manifest-src 'self'; img-src 'self' data:; font-src 'self' data:;"
  12. />
  13. <meta name="color-scheme" content="light dark" />
  14. <title>{{I18N_LOGIN_TITLE}}</title>
  15. <link rel="icon" href="{{CS_STATIC_BASE}}/src/browser/media/favicon-dark-support.svg" />
  16. <link rel="alternate icon" href="{{CS_STATIC_BASE}}/src/browser/media/favicon.ico" />
  17. <link rel="manifest" href="{{BASE}}/manifest.json" crossorigin="use-credentials" />
  18. <link rel="apple-touch-icon" sizes="192x192" href="{{CS_STATIC_BASE}}/src/browser/media/pwa-icon-192.png" />
  19. <link rel="apple-touch-icon" sizes="512x512" href="{{CS_STATIC_BASE}}/src/browser/media/pwa-icon-512.png" />
  20. <link href="{{CS_STATIC_BASE}}/src/browser/pages/global.css" rel="stylesheet" />
  21. <link href="{{CS_STATIC_BASE}}/src/browser/pages/login.css" rel="stylesheet" />
  22. <meta id="coder-options" data-settings="{{OPTIONS}}" />
  23. </head>
  24. <body>
  25. <div class="center-container">
  26. <div class="card-box">
  27. <div class="header">
  28. <h1 class="main">{{WELCOME_TEXT}}</h1>
  29. <div class="sub">{{I18N_LOGIN_BELOW}} {{PASSWORD_MSG}}</div>
  30. </div>
  31. <div class="content">
  32. <form class="login-form" method="post">
  33. <input class="user" type="text" autocomplete="username" />
  34. <input id="base" type="hidden" name="base" value="{{BASE}}" />
  35. <input id="href" type="hidden" name="href" value="" />
  36. <div class="field">
  37. <input
  38. required
  39. autofocus
  40. class="password"
  41. type="password"
  42. placeholder="{{I18N_PASSWORD_PLACEHOLDER}}"
  43. name="password"
  44. autocomplete="current-password"
  45. />
  46. <input class="submit -button" value="{{I18N_SUBMIT}}" type="submit" />
  47. </div>
  48. {{ERROR}}
  49. </form>
  50. </div>
  51. </div>
  52. </div>
  53. <script>
  54. // Inform the backend about the path since the proxy might have rewritten
  55. // it out of the headers and cookies must be set with absolute paths.
  56. const el = document.getElementById("href")
  57. if (el) {
  58. el.value = location.href
  59. }
  60. </script>
  61. </body>
  62. </html>