-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f36ecf0
commit 3a971f5
Showing
1,402 changed files
with
71,786 additions
and
97,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# dependencies | ||
node_modules | ||
|
||
# testing | ||
coverage | ||
|
||
# production | ||
dist/ | ||
|
||
.* | ||
!.env | ||
!.babelrc | ||
!.browserslistrc | ||
|
||
# Yarn Berry | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
!.yarnrc.yml | ||
yarn-debug.log | ||
yarn-error.log | ||
|
||
.vscode | ||
.idea | ||
.tmp | ||
|
||
cache | ||
|
||
*.md | ||
LICENSE | ||
schema.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
QB_SDK_CONFIG_APP_ID=-1 | ||
QB_SDK_CONFIG_AUTH_KEY="" | ||
QB_SDK_CONFIG_AUTH_SECRET="" | ||
QB_SDK_CONFIG_ACCOUNT_KEY="" | ||
QB_SDK_CONFIG_DEBUG=false | ||
QB_SDK_CONFIG_ENDPOINT_API="api.quickblox.com" | ||
QB_SDK_CONFIG_ENDPOINT_CHAT="chat.quickblox.com" | ||
QB_SDK_CONFIG_ICE_SERVERS=[] | ||
QB_ADMIN_EMAIL="" | ||
QB_ADMIN_PASSWORD="" | ||
BEARER_TOKEN="" | ||
OPENAI_API_KEY="" | ||
AI_QUICK_ANSWER=false | ||
AI_SUGGEST_PROVIDER=false | ||
AI_RECORD_ANALYTICS=false | ||
APP_NAME="Q-Consultation" | ||
APP_DESCRIPTION="Q-Consultation" | ||
ENABLE_REDUX_LOGGER=false | ||
DISPLAY_VERSION=false | ||
CLIENT_APP_URL="https://127.0.0.1:3001" | ||
SERVER_APP_URL="http://127.0.0.1:4000" | ||
ENABLE_GUEST_CLIENT=true | ||
HAS_HISTORY=true | ||
HAS_PROVIDER_LIST=true | ||
HAS_CHANGE_LANGUAGE=true | ||
DEFAULT_LANGUAGE="en" | ||
FILE_SIZE_LIMIT=10485760 | ||
FILE_EXTENSIONS_WHITELIST="gif jpeg jpg mov mp4 png csv docx pdf pptx txt xls xlsx zip webm heic heif" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
nmHoistingLimits: workspaces | ||
|
||
nmSelfReferences: false | ||
|
||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.3.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:18-alpine | ||
|
||
ARG APP | ||
WORKDIR /project | ||
|
||
COPY .yarn/ .yarn/ | ||
|
||
COPY .yarnrc.yml package.json yarn.lock lerna.json ./ | ||
COPY packages/ ./packages/ | ||
COPY apps/${APP}/ ./apps/${APP}/ | ||
RUN yarn | ||
|
||
CMD ["yarn", "dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"project": "./tsconfig.json" | ||
}, | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [ | ||
".ts", | ||
".tsx" | ||
] | ||
}, | ||
"import/resolver": { | ||
"typescript": { | ||
"alwaysTryTypes": true | ||
} | ||
} | ||
}, | ||
"extends": [ | ||
"airbnb/base", | ||
"plugin:promise/recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"prettier", | ||
"plugin:prettier/recommended" | ||
], | ||
"plugins": [ | ||
"optimize-regex", | ||
"no-loops", | ||
"promise", | ||
"@typescript-eslint", | ||
"prettier" | ||
], | ||
"rules": { | ||
"camelcase": "off", | ||
"no-shadow": "off", | ||
"no-underscore-dangle": "off", | ||
"import/extensions": ["error", "ignorePackages", { | ||
"ts": "never" | ||
}], | ||
"import/prefer-default-export": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/unbound-method": "off", | ||
"@typescript-eslint/require-await": "off", | ||
"@typescript-eslint/no-use-before-define": "error", | ||
"@typescript-eslint/no-shadow": "error", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "warn", | ||
"@typescript-eslint/no-unsafe-return": "warn", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"padding-line-between-statements": [ | ||
"error", | ||
{ | ||
"blankLine": "always", | ||
"prev": "*", | ||
"next": "if" | ||
}, | ||
{ | ||
"blankLine": "always", | ||
"prev": "*", | ||
"next": "return" | ||
}, | ||
{ | ||
"blankLine": "always", | ||
"prev": ["const", "let", "var"], | ||
"next": "*" | ||
}, | ||
{ | ||
"blankLine": "any", | ||
"prev": ["const", "let", "var"], | ||
"next": ["const", "let", "var"] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM node:18-alpine as build | ||
ARG APP=api | ||
WORKDIR /project | ||
COPY .yarn/ .yarn/ | ||
COPY .yarnrc.yml package.json yarn.lock ./ | ||
COPY apps/${APP}/package.json ./apps/${APP}/ | ||
RUN yarn workspaces focus @qc-apps/${APP} | ||
COPY apps/${APP}/ ./apps/${APP}/ | ||
WORKDIR /project/apps/${APP} | ||
RUN yarn build | ||
|
||
FROM node:18-alpine | ||
ARG APP=api | ||
WORKDIR /project | ||
COPY .yarn/ .yarn/ | ||
COPY .yarnrc.yml package.json yarn.lock ./ | ||
COPY apps/${APP}/package.json ./apps/${APP}/ | ||
RUN yarn workspaces focus @qc-apps/${APP} --production | ||
COPY --from=build /project/apps/${APP}/dist/ ./apps/${APP}/dist/ | ||
|
||
WORKDIR /project/apps/${APP} | ||
CMD ["yarn", "start"] | ||
|
||
EXPOSE 4000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"name": "@qc-apps/api", | ||
"version": "2.2.0", | ||
"private": true, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Injoit LTD", | ||
"email": "[email protected]" | ||
}, | ||
"main": "src/app.ts", | ||
"scripts": { | ||
"test": "yarn build && tsc -p test/tsconfig.json && tsc-alias -p test/tsconfig.json && tap --ts \"test/**/*.test.ts\"", | ||
"start": "fastify start -p 4000 -l info dist/app.js", | ||
"build": "tsc && tsc-alias", | ||
"watch": "tsc && (concurrently \"tsc -w\" \"tsc-alias -w\")", | ||
"dev": "concurrently -k -p \"[{name}]\" -n \"TypeScript,App\" -c \"yellow.bold,cyan.bold\" \"npm:watch\" \"npm:dev:start\"", | ||
"dev:start": "fastify start -p 4000 -d --debug-port=9229 --ignore-watch=.ts$ -w -l info -P dist/app.js", | ||
"lint": "eslint ./src" | ||
}, | ||
"dependencies": { | ||
"@fastify/autoload": "^5.7.1", | ||
"@fastify/cors": "^8.2.1", | ||
"@fastify/env": "^4.2.0", | ||
"@fastify/multipart": "^7.5.0", | ||
"@fastify/sensible": "^5.2.0", | ||
"@fastify/swagger": "^8.3.1", | ||
"@fastify/swagger-ui": "1.6.0", | ||
"@fastify/type-provider-typebox": "3.0.0", | ||
"@qc/quickblox": "workspace:*", | ||
"@sinclair/typebox": "^0.26.8", | ||
"axios": "1.5.1", | ||
"date-fns": "^2.30.0", | ||
"dotenv": "^16.0.3", | ||
"fastify": "4.15.0", | ||
"fastify-cli": "^5.7.1", | ||
"fastify-plugin": "^4.5.0", | ||
"form-data": "^4.0.0", | ||
"gpt-3-encoder": "^1.1.4", | ||
"lodash": "^4.17.21", | ||
"openai": "^4.5.0", | ||
"qb-ai-core": "^0.1.3", | ||
"qb-ai-rephrase": "^0.1.2", | ||
"qb-ai-translate": "^0.1.2" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.192", | ||
"@types/node": "^18.15.11", | ||
"@types/tap": "^15.0.8", | ||
"@typescript-eslint/eslint-plugin": "^5.57.0", | ||
"@typescript-eslint/parser": "^5.57.0", | ||
"concurrently": "^8.0.1", | ||
"eslint": "8.37.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-import-resolver-typescript": "^3.5.4", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-no-loops": "^0.3.0", | ||
"eslint-plugin-optimize-regex": "^1.2.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"fastify-tsconfig": "^1.0.1", | ||
"prettier": "^2.8.7", | ||
"tap": "^16.3.4", | ||
"ts-node": "^10.9.1", | ||
"tsc-alias": "^1.8.5", | ||
"typescript": "^5.0.2" | ||
}, | ||
"engines": { | ||
"node": ">=16.14" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const TIME_FORMAT = 'HH:mm' | ||
export const BIRTHDATE_FORMAT = 'yyyy-MM-dd' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.