prettier bug

This commit is contained in:
2023-07-13 14:28:54 +00:00
parent 297658bab2
commit f290e9d039
154 changed files with 1734 additions and 193 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -0,0 +1,4 @@
@bg-color: #fff;
@bg-color-secondary: #000;
@font-color: #000;
@font-color-secondary: #fff;