diff --git a/services-src/auth/resources/static/fonts/Inter-Black.woff2 b/services-src/auth/resources/static/fonts/Inter-Black.woff2 deleted file mode 100644 index 18b35db..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-Black.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-BlackItalic.woff2 b/services-src/auth/resources/static/fonts/Inter-BlackItalic.woff2 deleted file mode 100644 index 02c9d8e..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-BlackItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-Bold.woff2 b/services-src/auth/resources/static/fonts/Inter-Bold.woff2 deleted file mode 100644 index 0f1b157..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-Bold.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-BoldItalic.woff2 b/services-src/auth/resources/static/fonts/Inter-BoldItalic.woff2 deleted file mode 100644 index bc50f24..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-BoldItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-ExtraBold.woff2 b/services-src/auth/resources/static/fonts/Inter-ExtraBold.woff2 deleted file mode 100644 index b113368..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-ExtraBold.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-ExtraBoldItalic.woff2 b/services-src/auth/resources/static/fonts/Inter-ExtraBoldItalic.woff2 deleted file mode 100644 index a5b76ca..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-ExtraBoldItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-ExtraLight.woff2 b/services-src/auth/resources/static/fonts/Inter-ExtraLight.woff2 deleted file mode 100644 index 1d77ae8..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-ExtraLight.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-ExtraLightItalic.woff2 b/services-src/auth/resources/static/fonts/Inter-ExtraLightItalic.woff2 deleted file mode 100644 index 8c68492..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-ExtraLightItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-Italic.woff2 b/services-src/auth/resources/static/fonts/Inter-Italic.woff2 deleted file mode 100644 index 4c24ce2..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-Italic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-Light.woff2 b/services-src/auth/resources/static/fonts/Inter-Light.woff2 deleted file mode 100644 index dbe6143..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-Light.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-LightItalic.woff2 b/services-src/auth/resources/static/fonts/Inter-LightItalic.woff2 deleted file mode 100644 index a40d042..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-LightItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-Medium.woff2 b/services-src/auth/resources/static/fonts/Inter-Medium.woff2 deleted file mode 100644 index 0fd2ee7..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-Medium.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-MediumItalic.woff2 b/services-src/auth/resources/static/fonts/Inter-MediumItalic.woff2 deleted file mode 100644 index 9676715..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-MediumItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-Regular.woff2 b/services-src/auth/resources/static/fonts/Inter-Regular.woff2 deleted file mode 100644 index b8699af..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-Regular.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-SemiBold.woff2 b/services-src/auth/resources/static/fonts/Inter-SemiBold.woff2 deleted file mode 100644 index 95c48b1..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-SemiBold.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-SemiBoldItalic.woff2 b/services-src/auth/resources/static/fonts/Inter-SemiBoldItalic.woff2 deleted file mode 100644 index ddfe19e..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-SemiBoldItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-Thin.woff2 b/services-src/auth/resources/static/fonts/Inter-Thin.woff2 deleted file mode 100644 index 0790960..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-Thin.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/Inter-ThinItalic.woff2 b/services-src/auth/resources/static/fonts/Inter-ThinItalic.woff2 deleted file mode 100644 index a7bf213..0000000 Binary files a/services-src/auth/resources/static/fonts/Inter-ThinItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-Black.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-Black.woff2 deleted file mode 100644 index 8138123..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-Black.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-BlackItalic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-BlackItalic.woff2 deleted file mode 100644 index 735ba21..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-BlackItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-Bold.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-Bold.woff2 deleted file mode 100644 index 11c6719..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-Bold.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-BoldItalic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-BoldItalic.woff2 deleted file mode 100644 index 5b6a1fb..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-BoldItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-ExtraBold.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-ExtraBold.woff2 deleted file mode 100644 index 9058e98..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-ExtraBold.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-ExtraBoldItalic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-ExtraBoldItalic.woff2 deleted file mode 100644 index 4cd61c0..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-ExtraBoldItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-ExtraLight.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-ExtraLight.woff2 deleted file mode 100644 index 8621b29..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-ExtraLight.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-ExtraLightItalic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-ExtraLightItalic.woff2 deleted file mode 100644 index 689c8d9..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-ExtraLightItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-Italic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-Italic.woff2 deleted file mode 100644 index 11f20bc..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-Italic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-Light.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-Light.woff2 deleted file mode 100644 index 446301c..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-Light.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-LightItalic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-LightItalic.woff2 deleted file mode 100644 index f688196..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-LightItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-Medium.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-Medium.woff2 deleted file mode 100644 index 29160b2..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-Medium.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-MediumItalic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-MediumItalic.woff2 deleted file mode 100644 index ef1bcbe..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-MediumItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-Regular.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-Regular.woff2 deleted file mode 100644 index a6c04f6..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-Regular.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-SemiBold.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-SemiBold.woff2 deleted file mode 100644 index 2b4db23..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-SemiBold.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-SemiBoldItalic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-SemiBoldItalic.woff2 deleted file mode 100644 index 59091db..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-SemiBoldItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-Thin.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-Thin.woff2 deleted file mode 100644 index dc0b948..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-Thin.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterDisplay-ThinItalic.woff2 b/services-src/auth/resources/static/fonts/InterDisplay-ThinItalic.woff2 deleted file mode 100644 index 96439c0..0000000 Binary files a/services-src/auth/resources/static/fonts/InterDisplay-ThinItalic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterVariable-Italic.woff2 b/services-src/auth/resources/static/fonts/InterVariable-Italic.woff2 deleted file mode 100644 index f22ec25..0000000 Binary files a/services-src/auth/resources/static/fonts/InterVariable-Italic.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/InterVariable.woff2 b/services-src/auth/resources/static/fonts/InterVariable.woff2 deleted file mode 100644 index 22a12b0..0000000 Binary files a/services-src/auth/resources/static/fonts/InterVariable.woff2 and /dev/null differ diff --git a/services-src/auth/resources/static/fonts/inter.css b/services-src/auth/resources/static/fonts/inter.css deleted file mode 100644 index 413e197..0000000 --- a/services-src/auth/resources/static/fonts/inter.css +++ /dev/null @@ -1,57 +0,0 @@ -/* Variable fonts usage: -:root { font-family: "Inter", sans-serif; } -@supports (font-variation-settings: normal) { - :root { font-family: "InterVariable", sans-serif; font-optical-sizing: auto; } -} */ -@font-face { - font-family: InterVariable; - font-style: normal; - font-weight: 100 900; - font-display: swap; - src: url("InterVariable.woff2") format("woff2"); -} -@font-face { - font-family: InterVariable; - font-style: italic; - font-weight: 100 900; - font-display: swap; - src: url("InterVariable-Italic.woff2") format("woff2"); -} - -/* static fonts */ -@font-face { font-family: "Inter"; font-style: normal; font-weight: 100; font-display: swap; src: url("Inter-Thin.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 100; font-display: swap; src: url("Inter-ThinItalic.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: normal; font-weight: 200; font-display: swap; src: url("Inter-ExtraLight.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 200; font-display: swap; src: url("Inter-ExtraLightItalic.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("Inter-Light.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 300; font-display: swap; src: url("Inter-LightItalic.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("Inter-Regular.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("Inter-Italic.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("Inter-Medium.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 500; font-display: swap; src: url("Inter-MediumItalic.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("Inter-SemiBold.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 600; font-display: swap; src: url("Inter-SemiBoldItalic.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("Inter-Bold.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 700; font-display: swap; src: url("Inter-BoldItalic.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("Inter-ExtraBold.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 800; font-display: swap; src: url("Inter-ExtraBoldItalic.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("Inter-Black.woff2") format("woff2"); } -@font-face { font-family: "Inter"; font-style: italic; font-weight: 900; font-display: swap; src: url("Inter-BlackItalic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 100; font-display: swap; src: url("InterDisplay-Thin.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 100; font-display: swap; src: url("InterDisplay-ThinItalic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 200; font-display: swap; src: url("InterDisplay-ExtraLight.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 200; font-display: swap; src: url("InterDisplay-ExtraLightItalic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 300; font-display: swap; src: url("InterDisplay-Light.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 300; font-display: swap; src: url("InterDisplay-LightItalic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 400; font-display: swap; src: url("InterDisplay-Regular.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 400; font-display: swap; src: url("InterDisplay-Italic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 500; font-display: swap; src: url("InterDisplay-Medium.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 500; font-display: swap; src: url("InterDisplay-MediumItalic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 600; font-display: swap; src: url("InterDisplay-SemiBold.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 600; font-display: swap; src: url("InterDisplay-SemiBoldItalic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 700; font-display: swap; src: url("InterDisplay-Bold.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 700; font-display: swap; src: url("InterDisplay-BoldItalic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 800; font-display: swap; src: url("InterDisplay-ExtraBold.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 800; font-display: swap; src: url("InterDisplay-ExtraBoldItalic.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 900; font-display: swap; src: url("InterDisplay-Black.woff2") format("woff2"); } -@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 900; font-display: swap; src: url("InterDisplay-BlackItalic.woff2") format("woff2"); } diff --git a/services-src/auth/resources/templates/authorize.html b/services-src/auth/resources/templates/authorize.html index 6f0307a..697ec4f 100644 --- a/services-src/auth/resources/templates/authorize.html +++ b/services-src/auth/resources/templates/authorize.html @@ -1,4 +1,4 @@ - + Authorize application - {{ .identifier }} diff --git a/services-src/auth/resources/templates/autoAccept.html b/services-src/auth/resources/templates/autoAccept.html index 6e084b9..135b88b 100644 --- a/services-src/auth/resources/templates/autoAccept.html +++ b/services-src/auth/resources/templates/autoAccept.html @@ -1,4 +1,4 @@ - + Redirecting... - {{ .identifier }} diff --git a/services-src/auth/resources/templates/clientKeyShare.html b/services-src/auth/resources/templates/clientKeyShare.html index da41384..30f5896 100644 --- a/services-src/auth/resources/templates/clientKeyShare.html +++ b/services-src/auth/resources/templates/clientKeyShare.html @@ -1,5 +1,5 @@ - + Key Exchange - {{ .identifier }} diff --git a/services-src/auth/resources/templates/dashboard.html b/services-src/auth/resources/templates/dashboard.html index e210b2a..b1ffab1 100644 --- a/services-src/auth/resources/templates/dashboard.html +++ b/services-src/auth/resources/templates/dashboard.html @@ -1,5 +1,5 @@ - + Dashboard - {{ .identifier }} diff --git a/services-src/auth/resources/templates/login.html b/services-src/auth/resources/templates/login.html index ae640a9..102f537 100644 --- a/services-src/auth/resources/templates/login.html +++ b/services-src/auth/resources/templates/login.html @@ -1,6 +1,5 @@ - - + Login - {{ .identifier }} diff --git a/services-src/auth/resources/templates/refresh.html b/services-src/auth/resources/templates/refresh.html index 38ebed1..2a118e4 100644 --- a/services-src/auth/resources/templates/refresh.html +++ b/services-src/auth/resources/templates/refresh.html @@ -14,7 +14,5 @@

Please wait...

If your browser does not refresh, please refresh the page manually.

-
-
\ No newline at end of file diff --git a/services-src/auth/resources/templates/signup.html b/services-src/auth/resources/templates/signup.html index 27314eb..af4c1e3 100644 --- a/services-src/auth/resources/templates/signup.html +++ b/services-src/auth/resources/templates/signup.html @@ -1,5 +1,5 @@ - + Signup - {{ .identifier }} diff --git a/services-src/auth/resources/templates/testApp.html b/services-src/auth/resources/templates/testApp.html index 7d46695..e17dd13 100644 --- a/services-src/auth/resources/templates/testApp.html +++ b/services-src/auth/resources/templates/testApp.html @@ -1,5 +1,5 @@ - + Tester - {{ .identifier }} @@ -9,7 +9,7 @@ - +

{{ .identifier }} Tester

Click authorize to begin the test

diff --git a/services-src/auth/resources/templates/testAppNotAvailable.html b/services-src/auth/resources/templates/testAppNotAvailable.html index 3a0e0e0..900f27c 100644 --- a/services-src/auth/resources/templates/testAppNotAvailable.html +++ b/services-src/auth/resources/templates/testAppNotAvailable.html @@ -1,5 +1,5 @@ - + Tester - {{ .identifier }} diff --git a/services-src/auth/resources/wasm/authorize/main.go b/services-src/auth/resources/wasm/authorize/main.go index 75ef965..c442601 100644 --- a/services-src/auth/resources/wasm/authorize/main.go +++ b/services-src/auth/resources/wasm/authorize/main.go @@ -105,7 +105,7 @@ func authorize(deny bool, query url.Values, sleepTime time.Duration) { func main() { // Transition in - js.Global().Get("document").Get("body").Set("style", "display: initial") + js.Global().Get("document").Get("documentElement").Get("style").Set("display", "initial") js.Global().Get("swipe-out").Get("classList").Call("add", "swipe-out-animate") var sleepTime = 200 * time.Millisecond diff --git a/services-src/auth/resources/wasm/clientKeyShare/main.go b/services-src/auth/resources/wasm/clientKeyShare/main.go index ef031b3..5a984aa 100644 --- a/services-src/auth/resources/wasm/clientKeyShare/main.go +++ b/services-src/auth/resources/wasm/clientKeyShare/main.go @@ -14,7 +14,7 @@ import ( func main() { // Transition in - js.Global().Get("document").Get("body").Set("style", "display: initial") + js.Global().Get("document").Get("documentElement").Get("style").Set("display", "initial") js.Global().Get("swipe-out").Get("classList").Call("add", "swipe-out-animate") var sleepTime = 200 * time.Millisecond diff --git a/services-src/auth/resources/wasm/dashboard/main.go b/services-src/auth/resources/wasm/dashboard/main.go index f68ed6b..a08433e 100644 --- a/services-src/auth/resources/wasm/dashboard/main.go +++ b/services-src/auth/resources/wasm/dashboard/main.go @@ -192,7 +192,7 @@ func fetchOauthClients(oauthList js.Value, localStorage js.Value, body []byte) { func main() { // Transition in - js.Global().Get("document").Get("body").Set("style", "display: initial") + js.Global().Get("document").Get("documentElement").Get("style").Set("display", "initial") js.Global().Get("swipe-out").Get("classList").Call("add", "swipe-out-animate") var sleepTime = 200 * time.Millisecond diff --git a/services-src/auth/resources/wasm/login/main.go b/services-src/auth/resources/wasm/login/main.go index 83ddf6a..dd32b76 100644 --- a/services-src/auth/resources/wasm/login/main.go +++ b/services-src/auth/resources/wasm/login/main.go @@ -70,7 +70,7 @@ func showInput(inputType int, inputContainer js.Value, usernameBox js.Value, sig func main() { // Transition in - js.Global().Get("document").Get("body").Set("style", "display: initial") + js.Global().Get("document").Get("documentElement").Get("style").Set("display", "initial") js.Global().Get("swipe-out").Get("classList").Call("add", "swipe-out-animate") var sleepTime = 200 * time.Millisecond @@ -283,9 +283,11 @@ func main() { })) signupButton.Call("addEventListener", "click", js.FuncOf(func(this js.Value, args []js.Value) interface{} { - js.Global().Get("swipe").Get("classList").Call("add", "swipe-animate") - time.Sleep(sleepTime) - js.Global().Get("window").Get("location").Call("replace", "/signup"+js.Global().Get("window").Get("location").Get("search").String()) + go func() { + js.Global().Get("swipe").Get("classList").Call("add", "swipe-animate") + time.Sleep(sleepTime) + js.Global().Get("window").Get("location").Call("replace", "/signup"+js.Global().Get("window").Get("location").Get("search").String()) + }() return nil })) diff --git a/services-src/auth/resources/wasm/signup/main.go b/services-src/auth/resources/wasm/signup/main.go index 2814322..afc9092 100644 --- a/services-src/auth/resources/wasm/signup/main.go +++ b/services-src/auth/resources/wasm/signup/main.go @@ -59,7 +59,7 @@ func pow(resource string) (string, string, error) { func main() { // Transition in - js.Global().Get("document").Get("body").Set("style", "display: initial") + js.Global().Get("document").Get("documentElement").Get("style").Set("display", "initial") js.Global().Get("swipe-out").Get("classList").Call("add", "swipe-out-animate") var sleepTime = 200 * time.Millisecond @@ -230,9 +230,11 @@ func main() { })) loginButton.Call("addEventListener", "click", js.FuncOf(func(this js.Value, args []js.Value) interface{} { - js.Global().Get("swipe").Get("classList").Call("add", "swipe-animate") - time.Sleep(sleepTime) - js.Global().Get("window").Get("location").Call("replace", "/login"+js.Global().Get("window").Get("location").Get("search").String()) + go func() { + js.Global().Get("swipe").Get("classList").Call("add", "swipe-animate") + time.Sleep(sleepTime) + js.Global().Get("window").Get("location").Call("replace", "/login"+js.Global().Get("window").Get("location").Get("search").String()) + }() return nil })) diff --git a/services-src/auth/resources/wasm/testApp/main.go b/services-src/auth/resources/wasm/testApp/main.go index 87302f7..4e18f99 100644 --- a/services-src/auth/resources/wasm/testApp/main.go +++ b/services-src/auth/resources/wasm/testApp/main.go @@ -48,7 +48,7 @@ func randomChars(length int) (string, error) { func main() { // Transition in - js.Global().Get("document").Get("body").Set("style", "display: initial") + js.Global().Get("document").Get("documentElement").Get("style").Set("display", "initial") js.Global().Get("swipe-out").Get("classList").Call("add", "swipe-out-animate") var sleepTime = 200 * time.Millisecond