From 2442224397f5cee4f4013733738bde50a14cecce Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sat, 4 May 2024 14:32:32 +0300 Subject: [PATCH] setup for remote dev environment; minors --- .gitignore | 1 + .vscode/launch.json | 12 +++++++++++- components/calendar/avcalendar.tsx | 1 + package.json | 2 +- pages/dash.tsx | 2 +- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9df2aeb..c5848c7 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ content/output/* baseUrl.txt public/content/output/* public/content/output/shifts 2024.1.json +!public/content/uploads/* \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index b0e8405..2076f9d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -41,7 +41,7 @@ "type": "node-terminal" }, { - "name": "Run conda nodemon (DEV)", + "name": "Conda debug (DB)", "request": "launch", "type": "node-terminal", "cwd": "${workspaceFolder}", @@ -50,6 +50,16 @@ "APP_ENV": "development.popov" } }, + { + "name": "Conda run (DB)", + "request": "launch", + "type": "node-terminal", + "cwd": "${workspaceFolder}", + "command": "conda activate node && npm run start-env", + "env": { + "APP_ENV": "development.popov" + } + }, { "name": "Run conda npm TEST", "request": "launch", diff --git a/components/calendar/avcalendar.tsx b/components/calendar/avcalendar.tsx index 13acedd..5350523 100644 --- a/components/calendar/avcalendar.tsx +++ b/components/calendar/avcalendar.tsx @@ -530,6 +530,7 @@ const AvCalendar = ({ publisherId, events, selectedDate }) => { showAllEvents={true} onNavigate={setDate} className="rounded-lg shadow-lg" + longPressThreshold={150} // default value 250 /> {isModalOpen && (
diff --git a/package.json b/package.json index 87076ea..4af62db 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "debug": "node server.js", "debug-env": "dotenv -e .env.$APP_ENV -- nodemon --inspect server.js", - "nodeenv": "dotenv -e .env.$APP_ENV -- node server.js", + "start-env": "dotenv -e .env.$APP_ENV -- npm run build && dotenv -e .env.$APP_ENV -- npm run start", "prod": "dotenv -e .env.production -- node server.js", "build": "next build", "buildWin": "npm run build", diff --git a/pages/dash.tsx b/pages/dash.tsx index 9e4602f..4ba7281 100644 --- a/pages/dash.tsx +++ b/pages/dash.tsx @@ -68,7 +68,7 @@ export default function IndexPage({ initialItems, initialUserId }: IProps) { return ( - +

Графика на {userName}