Skip to content

Commit

Permalink
drama-queen: routes -> add authentification-v2
Browse files Browse the repository at this point in the history
and few config changes
  • Loading branch information
ddecrulle committed May 30, 2023
1 parent 31c15f3 commit 30833fc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions drama-queen/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "drama-queen",
"private": true,
"version": "1.1.1",
"version": "1.2.0",
"type": "module",
"scripts": {
"dev": "vite --port 5000 --strictPort",
"build": "tsc && ts-node-esm scripts/generate-entrypoint.ts && vite build",
"build": "tsc && node scripts/generate-entrypoint.js && vite build",
"preview": "vite preview --port 5000 --strictPort",
"serve": "vite preview --port 5000 --strictPort"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from "fs";
import * as fs from "fs";

fs.readFile(".env", "utf8", function (_, contents) {
const content = contents
Expand Down
9 changes: 7 additions & 2 deletions drama-queen/src/routing/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import SurveyMapping from "pages/QueenMapping/SurveyMapping";
import SurveyUnitMapping from "pages/QueenMapping/SurveyUnitMapping";
import VisualisationMapping from "pages/QueenMapping/VisualisationMapping";
import { READ_ONLY } from "utils/constants";
import type { RouteObject } from "react-router-dom";

//ReadOnly path is a bad pattern must be change (affects pearl,moog,queen)
export const routes = [
export const routes: RouteObject[] = [
{
path: "queen/env",
element: <Env />
Expand All @@ -30,4 +31,8 @@ export const routes = [
path: "/queen/authentication/*",
element: <queen-app />
},
]
{
path: "/queen/authentication-v2/*",
element: <queen-v2-app />
},
]
4 changes: 2 additions & 2 deletions drama-queen/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"baseUrl": "./src"
},
"include": ["src", "scripts/generate-entrypoint.ts"],
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
1 change: 1 addition & 0 deletions drama-queen/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
Expand Down

0 comments on commit 30833fc

Please sign in to comment.