Fixed UI border color and missing credentials
This commit is contained in:
parent
3d62ab8305
commit
3215714e6a
@ -154,27 +154,21 @@ export class AnimeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
diffURL(url: string) {
|
diffURL(url: string) {
|
||||||
let request = fetch("/_" + url).then(response => response.text())
|
let request = fetch("/_" + url, {
|
||||||
|
credentials: "same-origin"
|
||||||
|
})
|
||||||
|
.then(response => response.text())
|
||||||
|
|
||||||
history.pushState(url, null, url)
|
history.pushState(url, null, url)
|
||||||
this.app.currentPath = url
|
this.app.currentPath = url
|
||||||
this.app.markActiveLinks()
|
this.app.markActiveLinks()
|
||||||
this.loading(true)
|
|
||||||
this.unmountMountables()
|
this.unmountMountables()
|
||||||
|
this.loading(true)
|
||||||
// for(let element of findAll("mountable")) {
|
|
||||||
// element.classList.remove("mountable")
|
|
||||||
// }
|
|
||||||
|
|
||||||
delay(300).then(() => {
|
delay(300).then(() => {
|
||||||
request
|
request
|
||||||
.then(html => this.app.setContent(html, true))
|
.then(html => this.app.setContent(html, true))
|
||||||
.then(() => this.app.markActiveLinks())
|
.then(() => this.app.markActiveLinks())
|
||||||
// .then(() => {
|
|
||||||
// for(let element of findAll("mountable")) {
|
|
||||||
// element.classList.remove("mountable")
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
.then(() => this.app.emit("DOMContentLoaded"))
|
.then(() => this.app.emit("DOMContentLoaded"))
|
||||||
.then(() => this.loading(false))
|
.then(() => this.loading(false))
|
||||||
.catch(console.error)
|
.catch(console.error)
|
||||||
|
@ -92,6 +92,7 @@ export class Application {
|
|||||||
request.then(html => {
|
request.then(html => {
|
||||||
// Set content
|
// Set content
|
||||||
this.setContent(html, false)
|
this.setContent(html, false)
|
||||||
|
this.scrollToTop()
|
||||||
|
|
||||||
// Fade animations
|
// Fade animations
|
||||||
this.content.classList.remove(this.fadeOutClass)
|
this.content.classList.remove(this.fadeOutClass)
|
||||||
@ -120,7 +121,6 @@ export class Application {
|
|||||||
|
|
||||||
this.ajaxify(this.content)
|
this.ajaxify(this.content)
|
||||||
this.markActiveLinks(this.content)
|
this.markActiveLinks(this.content)
|
||||||
this.scrollToTop()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
markActiveLinks(element?: HTMLElement) {
|
markActiveLinks(element?: HTMLElement) {
|
||||||
|
@ -9,7 +9,9 @@ bg-color = rgb(246, 246, 246)
|
|||||||
|
|
||||||
// UI
|
// UI
|
||||||
ui-border-color = rgba(0, 0, 0, 0.1)
|
ui-border-color = rgba(0, 0, 0, 0.1)
|
||||||
|
ui-border = 1px solid ui-border-color
|
||||||
ui-hover-border-color = rgba(0, 0, 0, 0.15)
|
ui-hover-border-color = rgba(0, 0, 0, 0.15)
|
||||||
|
ui-hover-border-color = 1px solid ui-hover-border-color
|
||||||
ui-background = rgb(254, 254, 254)
|
ui-background = rgb(254, 254, 254)
|
||||||
// ui-hover-background = rgb(254, 254, 254)
|
// ui-hover-background = rgb(254, 254, 254)
|
||||||
// ui-background = linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.037) 100%)
|
// ui-background = linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.037) 100%)
|
||||||
|
Loading…
Reference in New Issue
Block a user