diff --git a/ci/build/build-code-server.sh b/ci/build/build-code-server.sh index f0e4ddc33..1d2942d9a 100755 --- a/ci/build/build-code-server.sh +++ b/ci/build/build-code-server.sh @@ -21,6 +21,7 @@ main() { --public-url "." \ --out-dir dist \ $([[ $MINIFY ]] || echo --no-minify) \ + src/browser/login.ts \ src/browser/register.ts \ src/browser/serviceWorker.ts } diff --git a/ci/dev/watch.ts b/ci/dev/watch.ts index ba386b759..7e56c1869 100644 --- a/ci/dev/watch.ts +++ b/ci/dev/watch.ts @@ -164,7 +164,11 @@ class Watcher { private createBundler(out = "dist"): Bundler { return new Bundler( - [path.join(this.rootPath, "src/browser/register.ts"), path.join(this.rootPath, "src/browser/serviceWorker.ts")], + [ + path.join(this.rootPath, "src/browser/login.ts"), + path.join(this.rootPath, "src/browser/register.ts"), + path.join(this.rootPath, "src/browser/serviceWorker.ts"), + ], { outDir: path.join(this.rootPath, out), cacheDir: path.join(this.rootPath, ".cache"), diff --git a/src/browser/pages/login.html b/src/browser/pages/login.html index 586c9c666..f2b262991 100644 --- a/src/browser/pages/login.html +++ b/src/browser/pages/login.html @@ -47,10 +47,5 @@ - + diff --git a/src/browser/pages/login.ts b/src/browser/pages/login.ts new file mode 100644 index 000000000..c7fc92d4a --- /dev/null +++ b/src/browser/pages/login.ts @@ -0,0 +1,7 @@ +import { getOptions } from "../../common/util" + +const options = getOptions() +const el = document.getElementById("base") as HTMLInputElement +if (el) { + el.value = options.base +}