Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into docs/paragraphs-audio
Browse files Browse the repository at this point in the history
  • Loading branch information
hlomzik committed Oct 4, 2023
2 parents 60a59f4 + 95fb62a commit 17201c9
Show file tree
Hide file tree
Showing 912 changed files with 125,246 additions and 17,490 deletions.
21 changes: 21 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"presets": [
["@babel/preset-react", {
"runtime": "automatic"
}],
"@babel/preset-typescript",
["@babel/preset-env", {
"targets": {
"browsers": ["last 2 Chrome versions"],
"node": "current"
}
}]
],
"plugins": [
["babel-plugin-import", { "libraryName": "antd" }],
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-private-methods",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
]
}
16 changes: 16 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/javascript-node/.devcontainer/base.Dockerfile

# [Choice] Node.js version: 18
ARG VARIANT="18-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>"
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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.194.0/containers/javascript-node
{
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18
"args": {
"VARIANT": "18-bullseye"
}
},
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"visualstudioexptteam.vscodeintellicode",
"mrmlnc.vscode-scss",
"firefox-devtools.vscode-firefox-debug",
"ms-vscode-remote.vscode-remote-extensionpack"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
webpack.*
eslintrc.js
*.styl
*.styl
114 changes: 2 additions & 112 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,120 +1,10 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
globals: {
process: true,
module: true,
require: true,
DISABLE_DEFAULT_LSF_INIT: true,
__dirname: true,
},
extends: ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
settings: {
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use,
"pragma": "React", // Pragma to use, default to "React"
"fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
"version": "detect", // React version. "detect" automatically picks the version you have installed.
},
},
plugins: ["react", "@typescript-eslint"],
rules: {
"react/prop-types": "off",
"react/display-name": "off",
"react/no-children-prop": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-no-target-blank": "off",
"react/no-unescaped-entities": "off",
"react/jsx-wrap-multilines": ["error", {
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "parens-new-line",
}],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-empty-function": "off",
'@typescript-eslint/indent': ["error", 2, {
"SwitchCase": 1,
"MemberExpression": 1,
}],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "comma",
"requireLast": true,
},
"singleline": {
"delimiter": "comma",
"requireLast": false,
},
"overrides": {
"interface": {
"multiline": {
"delimiter": "semi",
"requireLast": true,
},
},
},
"multilineDetection": "brackets",
}],
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"allowSeparatedGroups": false,
"memberSyntaxSortOrder": ["all", "single", "multiple", "none"],
}],
"no-async-promise-executor": "off",
"semi": [2, "always"],
"comma-dangle": ["error", {
"imports": "never",
"exports": "never",
"functions": "always-multiline",
"objects": "always-multiline",
"arrays": "always-multiline",
}],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"object-shorthand": ["error", "always"],
"eqeqeq": ["error", "always"],
"indent": "off",
"newline-after-var": ["error", "always"],
"space-unary-ops": [2, {
"words": true,
"nonwords": true,
"overrides": {
"!": false,
"!!": false,
"+": false,
"-": false,
"++": false,
"--": false,
},
}],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always",
}],
"no-var": "error",
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false,
}],
},
extends: ['plugin:@heartexlabs/frontend/recommended'],
};
33 changes: 33 additions & 0 deletions .github/actions/download-artifact/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# source https://github.com/actions/upload-artifact/issues/199#issuecomment-1516555821
name: Download artifact
description: Wrapper around GitHub's official action, with additional extraction before download

# https://github.com/actions/download-artifact/blob/main/action.yml
inputs:
name:
description: Artifact name
required: true
path:
description: Destination path
required: false
default: .

runs:
using: composite
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: ${{ inputs.name }}
path: ${{ inputs.path }}

- name: Extract artifacts
run: tar -xvf ${{ inputs.name }}.tar
shell: bash
working-directory: ${{ inputs.path }}

- name: Remove archive
run: rm -f ${{ inputs.name }}.tar
shell: bash
working-directory: ${{ inputs.path }}

47 changes: 47 additions & 0 deletions .github/actions/upload-artifact/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# source https://github.com/actions/upload-artifact/issues/199#issuecomment-1516555821
name: Upload artifact
description: Wrapper around GitHub's official action, with additional archiving before upload

# https://github.com/actions/upload-artifact/blob/main/action.yml
inputs:
name:
description: Artifact name
required: true
path:
description: A file, directory or wildcard pattern that describes what to upload
required: true
if-no-files-found:
description: >
The desired behavior if no files are found using the provided path.
Available Options:
warn: Output a warning but do not fail the action
error: Fail the action with an error message
ignore: Do not output any warnings or errors, the action does not fail
required: false
default: warn
retention-days:
description: >
Duration after which artifact will expire in days. 0 means using default retention.
Minimum 1 day.
Maximum 90 days unless changed from the repository settings page.
required: false
default: '0'

runs:
using: composite
steps:
- name: Archive artifacts
run: tar -cvf ${{ inputs.name }}.tar ${{ inputs.path }}
shell: bash

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
if-no-files-found: ${{ inputs.if-no-files-found }}
name: ${{ inputs.name }}
path: ${{ inputs.name }}.tar
retention-days: ${{ inputs.retention-days }}

- name: Remove archive
run: rm -f ${{ inputs.name }}.tar
shell: bash
8 changes: 4 additions & 4 deletions .github/autolabeler.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
template: "Mandatory field" #https://github.com/release-drafter/release-drafter/blob/master/bin/generate-schema.js#L15
autolabeler:
- label: 'breaking'
body:
- '/BREAKING CHANGE/i'
# - label: 'breaking'
# body:
# - '/BREAKING CHANGE/i'
- label: 'fix'
title:
- '/^fix:/'
Expand All @@ -29,4 +29,4 @@ autolabeler:
- '/^style:/'
- label: 'test'
title:
- '/^test:/'
- '/^test:/'
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ updates:
directory: "/"
schedule:
interval: "weekly"
timezone: "Europe/London"
time: "09:00"
day: "monday"
commit-message:
prefix: "ci:"
80 changes: 80 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
### PR fulfills these requirements
- [ ] Commit message(s) and PR title follows the format `[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made` ex. `fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors`
- [ ] Tests for the changes have been added/updated (for bug fixes/features)
- [ ] Docs have been added/updated (for bug fixes/features)
- [ ] Best efforts were made to ensure docs/code are concise and coherent (checked for spelling/grammatical errors, commented out code, debug logs etc.)
- [ ] Self-reviewed and ran all changes on a local instance (for bug fixes/features)



#### Change has impacts in these area(s)
_(check all that apply)_
- [ ] Product design
- [ ] Frontend



### Describe the reason for change
_(link to issue, supportive screenshots etc.)_



#### What does this fix?
_(if this is a bug fix)_



#### What is the new behavior?
_(if this is a breaking or feature change)_



#### What is the current behavior?
_(if this is a breaking or feature change)_



#### What libraries were added/updated?
_(list all with version changes)_



#### Does this change affect performance?
_(if so describe the impacts positive or negative)_



#### Does this change affect security?
_(if so describe the impacts positive or negative)_



#### What alternative approaches were there?
_(briefly list any if applicable)_



#### What feature flags were used to cover this change?
_(briefly list any if applicable)_



### Does this PR introduce a breaking change?
_(check only one)_
- [ ] Yes, and covered entirely by feature flag(s)
- [ ] Yes, and covered partially by feature flag(s)
- [ ] No
- [ ] Not sure (briefly explain the situation below)



### What level of testing was included in the change?
_(check all that apply)_
- [ ] e2e
- [ ] integration
- [ ] unit



### Which logical domain(s) does this change affect?
_(for bug fixes/features, be as precise as possible. ex. Authentication, Annotation History, Review Stream etc.)_
Loading

0 comments on commit 17201c9

Please sign in to comment.