Skip to content

Commit

Permalink
Release v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-khomutovskyi-qb committed Dec 15, 2023
1 parent f36ecf0 commit 3a971f5
Show file tree
Hide file tree
Showing 1,402 changed files with 71,786 additions and 97,306 deletions.
35 changes: 35 additions & 0 deletions .dockerignore
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
28 changes: 28 additions & 0 deletions .env
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"
15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,22 @@ dist/
# misc
.DS_Store

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Yarn Berry
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-debug.log
yarn-error.log

# Generated files
.docusaurus

.vscode
.idea
.tmp

cache
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.3.cjs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions .yarnrc.yml
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
13 changes: 13 additions & 0 deletions Dockerfile
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"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ To learn more about the app features visit: <https://quickblox.com/products/q-co
### Client application interface

Main screen:
![](/packages/documentation/static/img/snippets/001.png)
![](/documentation/static/img/snippets/001.png)

Waiting room:
![](/packages/documentation/static/img/snippets/002.png)
![](/documentation/static/img/snippets/002.png)

Video call:
![](/packages/documentation/static/img/snippets/003.png)
![](/documentation/static/img/snippets/003.png)

### Provider application interface

Main screen:
![](/packages/documentation/static/img/snippets/004.png)
![](/documentation/static/img/snippets/004.png)

Video call:
![](/packages/documentation/static/img/snippets/005.png)
![](/documentation/static/img/snippets/005.png)

## How to contribute

Expand Down
File renamed without changes.
83 changes: 83 additions & 0 deletions apps/api/.eslintrc
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"]
}
]
}
}
24 changes: 24 additions & 0 deletions apps/api/Dockerfile
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
71 changes: 71 additions & 0 deletions apps/api/package.json
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.
2 changes: 2 additions & 0 deletions apps/api/src/constants/dateFormat.ts
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.
Loading

0 comments on commit 3a971f5

Please sign in to comment.