generated from cms/tibi-docs
prettier bug
This commit is contained in:
@@ -16,7 +16,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof window !== "undefined") console.log("App initialized")
|
||||
if (typeof window !== "undefined") console.log("App initialized")
|
||||
</script>
|
||||
|
||||
<h1>Hello World</h1>
|
||||
<h1>Hello Worlddg g</h1>
|
||||
|
||||
<style lang="less">
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: "Libre Franklin";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url("./lib/assets/fonts/libre-franklin-v13-latin-regular.woff2") format("woff2");
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -11,17 +11,14 @@ const publishLocation = (_p?: string) => {
|
||||
if (_h) _h = "#" + _h
|
||||
|
||||
const parts2 = _p.split("?")
|
||||
_p = parts2.shift()
|
||||
_p = parts2.shift()
|
||||
_s = parts2.join()
|
||||
if (_s) _s = "?" + _s
|
||||
}
|
||||
|
||||
const newLocation = {
|
||||
path:
|
||||
_p || (typeof window !== "undefined" && window.location?.pathname),
|
||||
search: _p
|
||||
? _s
|
||||
: typeof window !== "undefined" && window.location?.search,
|
||||
path: _p || (typeof window !== "undefined" && window.location?.pathname),
|
||||
search: _p ? _s : typeof window !== "undefined" && window.location?.search,
|
||||
hash: _p ? _h : typeof window !== "undefined" && window.location?.hash,
|
||||
push: !!_p,
|
||||
pop: !_p,
|
||||
@@ -35,9 +32,7 @@ if (typeof history !== "undefined") {
|
||||
if (typeof Proxy !== "undefined") {
|
||||
// modern browser
|
||||
const historyApply = (target, thisArg, argumentsList) => {
|
||||
publishLocation(
|
||||
argumentsList && argumentsList.length >= 2 && argumentsList[2]
|
||||
)
|
||||
publishLocation(argumentsList && argumentsList.length >= 2 && argumentsList[2])
|
||||
Reflect.apply(target, thisArg, argumentsList)
|
||||
}
|
||||
|
||||
@@ -57,11 +52,7 @@ if (typeof history !== "undefined") {
|
||||
publishLocation(url)
|
||||
return pushStateFn.apply(history, arguments)
|
||||
}
|
||||
history.replaceState = function (
|
||||
data: any,
|
||||
title: string,
|
||||
url?: string
|
||||
) {
|
||||
history.replaceState = function (data: any, title: string, url?: string) {
|
||||
publishLocation(url)
|
||||
return replaceStateFn.apply(history, arguments)
|
||||
}
|
||||
@@ -83,4 +74,4 @@ const app = new App({
|
||||
hydrate,
|
||||
})
|
||||
|
||||
export default app
|
||||
export default app
|
||||
|
||||
4
frontend/src/lib/assets/css/main.less
Normal file
4
frontend/src/lib/assets/css/main.less
Normal file
@@ -0,0 +1,4 @@
|
||||
@bg-color: #fff;
|
||||
@bg-color-secondary: #000;
|
||||
@font-color: #000;
|
||||
@font-color-secondary: #fff;
|
||||
Binary file not shown.
Reference in New Issue
Block a user