Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-09-11 11:06:36 -04:00
parent 11b903f24b
commit 0ee51ed4c1
4 changed files with 666 additions and 929 deletions

1
client/.gitignore vendored
View File

@@ -1,3 +1,4 @@
# Sentry Config File
.sentryclirc
/dev-dist

1565
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -154,7 +154,6 @@
"vite": "^5.4.3",
"vite-plugin-babel": "^1.2.0",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-legacy": "^2.1.0",
"vite-plugin-node-polyfills": "^0.22.0",
"vite-plugin-pwa": "^0.20.1",
"vite-plugin-style-import": "^2.0.0",

View File

@@ -3,7 +3,7 @@ import { promises as fsPromises } from "fs";
import { createRequire } from "module";
import * as path from "path";
import * as url from "url";
import { defineConfig, createLogger } from "vite";
import { createLogger, defineConfig } from "vite";
import { ViteEjsPlugin } from "vite-plugin-ejs";
import eslint from "vite-plugin-eslint";
import { VitePWA } from "vite-plugin-pwa";
@@ -14,13 +14,11 @@ process.env.VITE_APP_GIT_SHA_DATE = new Date().toLocaleString("en-US", {
timeZone: "America/Los_Angeles"
});
const WRONG_CODE = `import { bpfrpt_proptype_WindowScroller } from "../WindowScroller.js";`;
const getFormattedTimestamp = () =>
new Date().toLocaleTimeString("en-US", { hour12: true }).replace("AM", "a.m.").replace("PM", "p.m.");
function getFormattedTimestamp() {
const now = new Date();
let timeString = now.toLocaleTimeString("en-US", { hour12: true });
return timeString.replace("AM", "a.m.").replace("PM", "p.m.");
}
/** This is a hack around react-virtualized, should be removed when switching to react-virtuoso */
const WRONG_CODE = `import { bpfrpt_proptype_WindowScroller } from "../WindowScroller.js";`;
function reactVirtualizedFix() {
return {
@@ -39,8 +37,9 @@ function reactVirtualizedFix() {
}
};
}
/** End of hack */
const logger = createLogger("info", {
export const logger = createLogger("info", {
allowClearScreen: false
});
@@ -182,7 +181,18 @@ export default defineConfig({
}
},
optimizeDeps: {
include: ["react", "react-dom", "antd", "@apollo/client", "@reduxjs/toolkit", "axios"],
include: [
"react",
"react-dom",
"antd",
"@apollo/client",
"@reduxjs/toolkit",
"axios",
"react-router-dom",
"dayjs",
"redux",
"react-redux"
],
esbuildOptions: {
loader: {
".js": "jsx"