Update deps, fix Docker build errors
This commit is contained in:
parent
162390008b
commit
c62bfd2a4c
31 changed files with 832 additions and 1227 deletions
|
|
@ -12,7 +12,7 @@ RUN turbo prune --scope=link --docker
|
|||
FROM base AS installer
|
||||
ARG APP_DIR=/opt/link
|
||||
WORKDIR ${APP_DIR}
|
||||
COPY .gitignore .gitignore
|
||||
COPY --from=builder ${APP_DIR}/.gitignore .gitignore
|
||||
COPY --from=builder ${APP_DIR}/out/json/ .
|
||||
COPY --from=builder ${APP_DIR}/out/package-lock.json ./package-lock.json
|
||||
RUN npm ci
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export const createTicketAction = async (
|
|||
setBody("");
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
try {
|
||||
const ticket = {
|
||||
title: formData.get("title"),
|
||||
|
|
@ -50,12 +50,14 @@ export const createTicketAction = async (
|
|||
} catch (e: any) {
|
||||
return { success: false, message: e?.message ?? "Unknown error" };
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
||||
export const updateTicketAction = async (
|
||||
currentState: any,
|
||||
formData: FormData,
|
||||
) => {
|
||||
/*
|
||||
try {
|
||||
const { id, project } = currentState.values;
|
||||
const updatedTicket = {
|
||||
|
|
@ -80,12 +82,14 @@ export const updateTicketAction = async (
|
|||
} catch (e: any) {
|
||||
return { success: false, message: e?.message ?? "Unknown error" };
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
||||
export const updateTicketTagsAction = async (
|
||||
currentState: any,
|
||||
formData: FormData,
|
||||
) => {
|
||||
/*
|
||||
try {
|
||||
const { id, project } = currentState.values;
|
||||
const updatedTicket = {
|
||||
|
|
@ -110,4 +114,5 @@ export const updateTicketTagsAction = async (
|
|||
} catch (e: any) {
|
||||
return { success: false, message: e?.message ?? "Unknown error" };
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,10 +1,15 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
experimental: {
|
||||
missingSuspenseWithCSRBailout: false,
|
||||
},
|
||||
transpilePackages: ["leafcutter-ui", "bridge-ui", "opensearch-common", "ui"],
|
||||
transpilePackages: [
|
||||
"leafcutter-ui",
|
||||
"opensearch-common",
|
||||
"ui",
|
||||
"bridge-common",
|
||||
"bridge-ui",
|
||||
],
|
||||
publicRuntimeConfig: {
|
||||
linkURL: process.env.LINK_URL ?? "http://localhost:3000",
|
||||
bridgeURL: process.env.BRIDGE_URL ?? "http://localhost:8002",
|
||||
|
|
@ -13,4 +18,4 @@ const nextConfig = {
|
|||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
export default nextConfig;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "link",
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
|
|
@ -18,12 +19,13 @@
|
|||
"@mui/icons-material": "^5",
|
||||
"@mui/lab": "^5.0.0-alpha.170",
|
||||
"@mui/material": "^5",
|
||||
"@mui/x-data-grid-pro": "^7.3.2",
|
||||
"@mui/x-date-pickers-pro": "^7.3.2",
|
||||
"@mui/x-data-grid-pro": "^7.4.0",
|
||||
"@mui/x-date-pickers-pro": "^7.4.0",
|
||||
"bridge-common": "*",
|
||||
"bridge-ui": "*",
|
||||
"date-fns": "^3.6.0",
|
||||
"graphql-request": "^6.1.0",
|
||||
"graphql": "^16.8.1",
|
||||
"graphql-request": "^7.0.1",
|
||||
"leafcutter-ui": "*",
|
||||
"material-ui-popup-state": "^5.1.0",
|
||||
"mui-chips-input": "^2.1.4",
|
||||
|
|
@ -43,8 +45,8 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.24.5",
|
||||
"@types/node": "^20.12.10",
|
||||
"@types/react": "18.3.1",
|
||||
"@types/node": "^20.12.11",
|
||||
"@types/react": "18.3.2",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"babel-loader": "^9.1.3",
|
||||
"eslint": "^8.0.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
|
|
@ -9,7 +8,7 @@
|
|||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
|
|
@ -24,12 +23,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
"../leafcutter/app/(login)/login/link/_components/AutoLogin.tsx"
|
||||
],
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue