diff --git a/.env.local.example b/.env.local.example index a2e36dd..9285573 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,5 +1,5 @@ NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard" -NEXT_PUBLIC_API_VERSION = "2.3.2" +NEXT_PUBLIC_API_VERSION = "2.3.3" NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa" NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl" diff --git a/.gitignore b/.gitignore index 4692524..aec915e 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,6 @@ ecosystem.config.js public/config.json -.vscode/ \ No newline at end of file +.vscode/ + +*.bundle \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c00d2c7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:21.1.0-alpine3.18 + +WORKDIR /var/www/app + +COPY package*.json . + +RUN npm install +COPY . . + +CMD [ "tail", "-f", "/dev/null"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..92e29fe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +services: + app: + build: . + volumes: + - .:/var/www/app + - /var/www/app/node_modules + command: sh -c "cd /var/www/app && tar -czvf /versions/user_v2_$(date +%Y_%m_%d).tar.gz node_modules" diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index 8c850ee..b3808f2 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -43,9 +43,11 @@ }, "notifications": { "error_static_text": "عملیات با خطا مواجه شد", + "warning_static_text": "عملیات با خطا مواجه شد", "success_static_text": "عملیات با موفقیت انجام شد", "code": "کد", "success": "موفق", + "warning": "اخطار", "error": "خطا", "pending": "درحال اجرا..." },