mirror of
https://github.com/coder/code-server.git
synced 2025-08-01 10:56:25 +08:00
Simplify frontend
Just a login form and a list of applications. No modals or anything like that.
This commit is contained in:
14
src/browser/pages/app.ts
Normal file
14
src/browser/pages/app.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { getOptions } from "../../common/util"
|
||||
|
||||
import "./app.css"
|
||||
import "./error.css"
|
||||
import "./global.css"
|
||||
import "./home.css"
|
||||
import "./login.css"
|
||||
|
||||
const options = getOptions()
|
||||
const parts = window.location.pathname.replace(/^\//g, "").split("/")
|
||||
parts[parts.length - 1] = options.base
|
||||
const url = new URL(window.location.origin + "/" + parts.join("/"))
|
||||
|
||||
console.log(url)
|
Reference in New Issue
Block a user