fix
This commit is contained in:
parent
220f869535
commit
92dcfe3955
|
|
@ -14,7 +14,6 @@ export const prodIndex = (
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0">
|
content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0">
|
||||||
<link rel="stylesheet" href="/index.css">
|
|
||||||
${this.head.join("\n")}
|
${this.head.join("\n")}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,6 +1,5 @@
|
||||||
export const files = [
|
export const files = [
|
||||||
"favicon.ico",
|
"favicon.ico",
|
||||||
"index.html",
|
|
||||||
"img/empty.png",
|
"img/empty.png",
|
||||||
"img/logo-white.png",
|
"img/logo-white.png",
|
||||||
"img/logo.png"
|
"img/logo.png"
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@ import { GlobalContext, useLocal } from "web-utils";
|
||||||
import { w } from "../utils/types/general";
|
import { w } from "../utils/types/general";
|
||||||
import { Loading } from "../utils/ui/loading";
|
import { Loading } from "../utils/ui/loading";
|
||||||
import * as pages from "./pages";
|
import * as pages from "./pages";
|
||||||
|
|
||||||
|
|
||||||
export const Root: FC<{}> = ({}) => {
|
export const Root: FC<{}> = ({}) => {
|
||||||
const local = useLocal(
|
const local = useLocal(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,19 @@ body,
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
font-family:
|
||||||
|
"Source Sans 3",
|
||||||
|
system-ui,
|
||||||
|
-apple-system,
|
||||||
|
BlinkMacSystemFont,
|
||||||
|
"Segoe UI",
|
||||||
|
Roboto,
|
||||||
|
Oxygen,
|
||||||
|
Ubuntu,
|
||||||
|
Cantarell,
|
||||||
|
"Open Sans",
|
||||||
|
"Helvetica Neue",
|
||||||
|
sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.JsxText {
|
.JsxText {
|
||||||
|
|
@ -43,4 +55,4 @@ body {
|
||||||
|
|
||||||
.name-of-PropertyAccessExpression {
|
.name-of-PropertyAccessExpression {
|
||||||
color: #f08c36;
|
color: #f08c36;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0"
|
content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0"
|
||||||
/>
|
/>
|
||||||
<title>Prasi: App Builder</title>
|
<title>Prasi: App Builder</title>
|
||||||
<link rel="stylesheet" href="/index.css" />
|
<link rel="stylesheet" href="./index.css" />
|
||||||
<script>
|
<script>
|
||||||
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = {
|
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = {
|
||||||
isDisabled: true,
|
isDisabled: true,
|
||||||
|
|
@ -18,6 +18,6 @@
|
||||||
|
|
||||||
<body className="flex-col flex-1 w-full min-h-screen flex opacity-0">
|
<body className="flex-col flex-1 w-full min-h-screen flex opacity-0">
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script src="/index.js"></script>
|
<script type="module" src="./index.tsx"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -4,9 +4,9 @@ import { apiProxy } from "./base/load/api/api-proxy";
|
||||||
import { loadApiProxyDef } from "./base/load/api/api-proxy-def";
|
import { loadApiProxyDef } from "./base/load/api/api-proxy-def";
|
||||||
import { dbProxy } from "./base/load/db/db-proxy";
|
import { dbProxy } from "./base/load/db/db-proxy";
|
||||||
import { Root } from "./base/root";
|
import { Root } from "./base/root";
|
||||||
import "./index.css";
|
|
||||||
import { sworkerAddCache, sworkerRegister } from "./sworker-boot";
|
import { sworkerAddCache, sworkerRegister } from "./sworker-boot";
|
||||||
import { w } from "./utils/types/general";
|
import { w } from "./utils/types/general";
|
||||||
|
|
||||||
import "@fontsource/jetbrains-mono";
|
import "@fontsource/jetbrains-mono";
|
||||||
import "@fontsource/source-sans-3";
|
import "@fontsource/source-sans-3";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ if (build_all) {
|
||||||
: "node_modules/.bin/parcel"
|
: "node_modules/.bin/parcel"
|
||||||
),
|
),
|
||||||
"build",
|
"build",
|
||||||
"./src/index.tsx",
|
"./src/index.html",
|
||||||
// "--no-optimize",
|
// "--no-optimize",
|
||||||
"--no-scope-hoist",
|
"--no-scope-hoist",
|
||||||
"--dist-dir",
|
"--dist-dir",
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export const parcelBuild = async () => {
|
||||||
: "node_modules/.bin/parcel"
|
: "node_modules/.bin/parcel"
|
||||||
),
|
),
|
||||||
g.mode === "dev" ? "watch" : "build",
|
g.mode === "dev" ? "watch" : "build",
|
||||||
"./src/index.tsx",
|
"./src/index.html",
|
||||||
g.mode === "dev" ? "--no-hmr" : "--no-optimize",
|
g.mode === "dev" ? "--no-hmr" : "--no-optimize",
|
||||||
"--dist-dir",
|
"--dist-dir",
|
||||||
dir.path(`app/static`),
|
dir.path(`app/static`),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue