Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: centralnicgroup-opensource/rtldev-middleware-node-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.0.2
Choose a base ref
...
head repository: centralnicgroup-opensource/rtldev-middleware-node-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 10,957 additions and 21,415 deletions.
  1. +66 −0 .devcontainer/Dockerfile
  2. +30 −0 .devcontainer/devcontainer.json
  3. +11 −0 .devcontainer/docker-compose.yml
  4. +1 −0 .devcontainer/supporting_files/configuration/.czrc
  5. +1,735 −0 .devcontainer/supporting_files/configuration/.p10k.zsh
  6. +23 −0 .devcontainer/supporting_files/configuration/.zshrc
  7. +323 −0 .devcontainer/supporting_files/configuration/p10k-instant-prompt-vscode.zsh
  8. +11 −0 .devcontainer/supporting_files/scripts/post-create.sh
  9. +24 −7 .github/dependabot.yml
  10. +7 −0 .github/linters/tsconfig.json
  11. +4 −57 .github/workflows/release.yml
  12. +11 −0 .github/workflows/test.yml
  13. +1 −0 .gitignore
  14. +11 −0 .mocharc.json
  15. +0 −12 .mocharc.yml
  16. +19 −0 .npmignore
  17. +6 −0 .nycrc
  18. +2 −1 .prettierignore
  19. +17 −3 .releaserc.json
  20. +645 −0 CHANGELOG.md
  21. +109 −62 CONTRIBUTING.md
  22. +0 −517 HISTORY.md
  23. +1 −1 LICENSE
  24. +42 −9 README.md
  25. +0 −87 dist/package.json
  26. +0 −52 dist/src/apiclient.d.ts
  27. +0 −1 dist/src/apiclient.d.ts.map
  28. +0 −471 dist/src/apiclient.js
  29. +0 −11 dist/src/column.d.ts
  30. +0 −1 dist/src/column.d.ts.map
  31. +0 −22 dist/src/column.js
  32. +0 −6 dist/src/customlogger.d.ts
  33. +0 −1 dist/src/customlogger.d.ts.map
  34. +0 −35 dist/src/customlogger.js
  35. +0 −5 dist/src/index.d.ts
  36. +0 −1 dist/src/index.d.ts.map
  37. +0 −5 dist/src/index.js
  38. +0 −5 dist/src/logger.d.ts
  39. +0 −1 dist/src/logger.d.ts.map
  40. +0 −17 dist/src/logger.js
  41. +0 −8 dist/src/record.d.ts
  42. +0 −1 dist/src/record.d.ts.map
  43. +0 −20 dist/src/record.js
  44. +0 −43 dist/src/response.d.ts
  45. +0 −1 dist/src/response.d.ts.map
  46. +0 −272 dist/src/response.js
  47. +0 −2 dist/src/responseparser.d.ts
  48. +0 −1 dist/src/responseparser.d.ts.map
  49. +0 −56 dist/src/responseparser.js
  50. +0 −16 dist/src/responsetemplate.d.ts
  51. +0 −1 dist/src/responsetemplate.d.ts.map
  52. +0 −61 dist/src/responsetemplate.js
  53. +0 −15 dist/src/responsetemplatemanager.d.ts
  54. +0 −1 dist/src/responsetemplatemanager.d.ts.map
  55. +0 −59 dist/src/responsetemplatemanager.js
  56. +0 −22 dist/src/socketconfig.d.ts
  57. +0 −1 dist/src/socketconfig.d.ts.map
  58. +0 −84 dist/src/socketconfig.js
  59. 0 docs/{typedoc → }/.nojekyll
  60. +1 −0 docs/assets/hierarchy.js
  61. +43 −0 docs/assets/highlight.css
  62. +18 −0 docs/assets/icons.js
  63. +1 −0 docs/assets/icons.svg
  64. +60 −0 docs/assets/main.js
  65. +1 −0 docs/assets/navigation.js
  66. +1 −0 docs/assets/search.js
  67. +1,633 −0 docs/assets/style.css
  68. +116 −0 docs/classes/apiclient.APIClient.html
  69. +15 −0 docs/classes/column.Column.html
  70. +9 −0 docs/classes/customlogger.CustomLogger.html
  71. +9 −0 docs/classes/logger.Logger.html
  72. +12 −0 docs/classes/record.Record.html
  73. +133 −0 docs/classes/response.Response.html
  74. +38 −0 docs/classes/responsetemplatemanager.ResponseTemplateManager.html
  75. +19 −0 docs/classes/responsetranslator.ResponseTranslator.html
  76. +27 −0 docs/classes/socketconfig.SocketConfig.html
  77. +0 −518 docs/docco/docco.css
  78. BIN docs/docco/public/fonts/aller-bold.eot
  79. BIN docs/docco/public/fonts/aller-bold.ttf
  80. BIN docs/docco/public/fonts/aller-bold.woff
  81. BIN docs/docco/public/fonts/aller-light.eot
  82. BIN docs/docco/public/fonts/aller-light.ttf
  83. BIN docs/docco/public/fonts/aller-light.woff
  84. BIN docs/docco/public/fonts/roboto-black.eot
  85. BIN docs/docco/public/fonts/roboto-black.ttf
  86. BIN docs/docco/public/fonts/roboto-black.woff
  87. +0 −375 docs/docco/public/stylesheets/normalize.css
  88. +0 −810 docs/docco/src/apiclient.html
  89. +0 −164 docs/docco/src/column.html
  90. +0 −149 docs/docco/src/customlogger.html
  91. +0 −125 docs/docco/src/index.html
  92. +0 −130 docs/docco/src/logger.html
  93. +0 −153 docs/docco/src/record.html
  94. +0 −574 docs/docco/src/response.html
  95. +0 −171 docs/docco/src/responseparser.html
  96. +0 −237 docs/docco/src/responsetemplate.html
  97. +0 −239 docs/docco/src/responsetemplatemanager.html
  98. +0 −279 docs/docco/src/socketconfig.html
  99. +1 −0 docs/functions/socketconfig.fixedURLEnc.html
  100. +1 −0 docs/hierarchy.html
  101. +43 −0 docs/index.html
  102. +1 −0 docs/modules.html
  103. +1 −0 docs/modules/apiclient.html
  104. +1 −0 docs/modules/column.html
  105. +1 −0 docs/modules/customlogger.html
  106. +1 −0 docs/modules/index.html
  107. +1 −0 docs/modules/logger.html
  108. +1 −0 docs/modules/record.html
  109. +1 −0 docs/modules/response.html
  110. +1 −0 docs/modules/responseparser.html
  111. +1 −0 docs/modules/responsetemplatemanager.html
  112. +1 −0 docs/modules/responsetranslator.html
  113. +1 −0 docs/modules/socketconfig.html
  114. +0 −22 docs/typedoc/assets/highlight.css
  115. +0 −1,043 docs/typedoc/assets/icons.css
  116. BIN docs/typedoc/assets/icons.png
  117. BIN docs/typedoc/assets/icons@2x.png
  118. +0 −52 docs/typedoc/assets/main.js
  119. +0 −1 docs/typedoc/assets/search.js
  120. +0 −1,414 docs/typedoc/assets/style.css
  121. BIN docs/typedoc/assets/widgets.png
  122. BIN docs/typedoc/assets/widgets@2x.png
  123. +0 −182 docs/typedoc/classes/apiclient.APIClient.html
  124. +0 −25 docs/typedoc/classes/column.Column.html
  125. +0 −12 docs/typedoc/classes/customlogger.CustomLogger.html
  126. +0 −12 docs/typedoc/classes/logger.Logger.html
  127. +0 −22 docs/typedoc/classes/record.Record.html
  128. +0 −171 docs/typedoc/classes/response.Response.html
  129. +0 −44 docs/typedoc/classes/responsetemplate.ResponseTemplate.html
  130. +0 −51 docs/typedoc/classes/responsetemplatemanager.ResponseTemplateManager.html
  131. +0 −62 docs/typedoc/classes/socketconfig.SocketConfig.html
  132. +0 −32 docs/typedoc/index.html
  133. +0 −1 docs/typedoc/modules.html
  134. +0 −1 docs/typedoc/modules/apiclient.html
  135. +0 −1 docs/typedoc/modules/column.html
  136. +0 −1 docs/typedoc/modules/customlogger.html
  137. +0 −1 docs/typedoc/modules/index.html
  138. +0 −1 docs/typedoc/modules/logger.html
  139. +0 −1 docs/typedoc/modules/record.html
  140. +0 −1 docs/typedoc/modules/response.html
  141. +0 −1 docs/typedoc/modules/responseparser.html
  142. +0 −1 docs/typedoc/modules/responsetemplate.html
  143. +0 −1 docs/typedoc/modules/responsetemplatemanager.html
  144. +0 −1 docs/typedoc/modules/socketconfig.html
  145. +1 −0 docs/variables/apiclient.CNR_CONNECTION_URL_LIVE.html
  146. +1 −0 docs/variables/apiclient.CNR_CONNECTION_URL_OTE.html
  147. +1 −0 docs/variables/apiclient.CNR_CONNECTION_URL_PROXY.html
  148. +1 −0 docs/variables/responseparser.ResponseParser.html
  149. +0 −40 jsdoc.conf
  150. +4,822 −11,145 package-lock.json
  151. +50 −55 package.json
  152. +113 −147 src/apiclient.ts
  153. +3 −3 src/customlogger.ts
  154. +3 −3 src/index.ts
  155. +1 −1 src/logger.ts
  156. +126 −18 src/response.ts
  157. +0 −29 src/responseparser.ts
  158. +0 −130 src/responsetemplate.ts
  159. +19 −15 src/responsetemplatemanager.ts
  160. +191 −0 src/responsetranslator.ts
  161. +28 −84 src/socketconfig.ts
  162. +0 −61 src/templates/commit.hbs
  163. +0 −11 src/templates/footer.hbs
  164. +0 −25 src/templates/header.hbs
  165. +0 −16 src/templates/template.hbs
  166. +0 −59 test/responseparser.spec.ts
  167. +0 −86 test/responsetemplate.spec.ts
  168. +129 −222 {test → tests}/apiclient.spec.ts
  169. +47 −0 tests/app.js
  170. +2 −8 {test → tests}/column.spec.ts
  171. +2 −8 {test → tests}/index.spec.ts
  172. +2 −8 {test → tests}/record.spec.ts
  173. +93 −53 {test → tests}/response.spec.ts
  174. +13 −0 tests/responseparser.spec.ts
  175. +5 −11 {test → tests}/responsetemplatemanager.spec.ts
  176. +2 −8 {test → tests}/socketconfig.spec.ts
  177. +3 −34 tsconfig.json
  178. +7 −0 typedoc.json
66 changes: 66 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
FROM node:latest as nodejs
FROM mcr.microsoft.com/devcontainers/base:ubuntu

ENV DEBIAN_FRONTEND noninteractive
ENV TZ=Europe/Berlin
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn

ENV REFRESHED_AT 2024-01-17
ENV CONFIGURATION_DIR_PATH supporting_files/configuration
ENV SCRIPTS_DIR_PATH supporting_files/scripts

# Install packages
# Suppress an apt-key warning about standard out not being a terminal. Use in this script is safe.
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install software-properties-common cron
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 4F4EA0AAE5267A6C
# install apt deps (first row for puppeteer)
RUN apt-get -y install libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2 postfix python3-setuptools wget jq sudo git
# Cleanup
RUN apt-get -y autoremove && \
apt-get -y clean

# Add image configuration and scripts
ADD ${SCRIPTS_DIR_PATH}/post-create.sh /post-create.sh

# Time Zone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

######################### DEVELOPMENT ENVIRONMENT ADDITIONS ###############################
# install latest git & zsh
RUN add-apt-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get -y install --no-install-recommends git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& update-locale

# specifics to user vscode
ARG USERNAME="vscode"
ARG USERHOME="/home/${USERNAME}"
RUN usermod --shell /usr/bin/zsh ${USERNAME} \
&& usermod -a -G www-data ${USERNAME} \
&& usermod -a -G staff ${USERNAME}
# Set a default value for ZSH_CUSTOM if it's not already set
ENV ZSH_CUSTOM=${USERHOME}/.oh-my-zsh/custom

# Nodejs Installation
COPY --from=nodejs /usr/local/include/node /usr/local/include/node
COPY --from=nodejs /usr/local/lib/node_modules /usr/local/lib/node_modules
COPY --from=nodejs /usr/local/bin /usr/local/bin

# Clone the powerlevel10k theme for zsh and change owner
RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k \
&& chown -R ${USERNAME}:${USERNAME} $ZSH_CUSTOM/themes/powerlevel10k

# Clone the zsh-autosuggestions repository and change owner
RUN git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions \
&& chown -R ${USERNAME}:${USERNAME} $ZSH_CUSTOM/plugins/zsh-autosuggestions

# copy zsh and committizen configuration file
COPY --chown=${USERNAME}:${USERNAME} ${CONFIGURATION_DIR_PATH}/.zshrc ${USERHOME}/.zshrc
COPY --chown=${USERNAME}:${USERNAME} ${CONFIGURATION_DIR_PATH}/.czrc ${USERHOME}/.czrc
# zsh theme powerline10k
COPY --chown=${USERNAME}:${USERNAME} ${CONFIGURATION_DIR_PATH}/.p10k.zsh ${USERHOME}/.p10k.zsh
COPY --chown=${USERNAME}:${USERNAME} ${CONFIGURATION_DIR_PATH}/p10k-instant-prompt-vscode.zsh ${USERHOME}/.cache/p10k-instant-prompt-vscode.zsh
30 changes: 30 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.224.2/containers/jekyll
{
"name": "dstack-nodesdk",
"dockerComposeFile": ["docker-compose.yml"],
"service": "nodesdk",
"workspaceFolder": "/usr/share/rtldev-middleware-node-sdk",
"shutdownAction": "stopCompose",
"customizations": {
"vscode": {
"extensions": [
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"ms-vscode-remote.remote-containers",
"ms-azuretools.vscode-docker",
"GitHub.copilot"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/bin/zsh"
}
}
}
}
},
"remoteUser": "vscode",
"postCreateCommand": "zsh /post-create.sh"
}
11 changes: 11 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3.9"
services:
nodesdk:
container_name: dstack-nodesdk
volumes:
- ..:/usr/share/rtldev-middleware-node-sdk:cached
build:
context: .
dockerfile: Dockerfile
stdin_open: true
tty: true
1 change: 1 addition & 0 deletions .devcontainer/supporting_files/configuration/.czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "path": "cz-conventional-changelog" }
Loading