diff --git a/.browserslistrc b/.browserslistrc deleted file mode 100644 index ff27e7a12f..0000000000 --- a/.browserslistrc +++ /dev/null @@ -1,3 +0,0 @@ -Electron 9.2.0 -ChromeAndroid >= 84 -iOS >= 13.6 diff --git a/.env b/.env deleted file mode 100644 index bd9b2bf34d..0000000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -REACT_APP_SASS=true diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 60f4f366c0..0000000000 --- a/.eslintignore +++ /dev/null @@ -1,4 +0,0 @@ -public/protocols/**/*Worker.js -src/utils/networkQuery -src/utils/network-exporters -src/utils/protocol diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 2efb0a6b38..0000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "extends": "airbnb", - "env": { - "browser": true, - "commonjs": true, - "es2020": true, - "node": true - }, - "root": true, - "parser": "@babel/eslint-parser", - "parserOptions": { - "ecmaVersion": 2018, - "ecmaFeatures": { - "jsx": true, - "spread": true, - "experimentalObjectRestSpread": true, - "object-shorthand": ["error", "always"] - }, - "sourceType": "module" - }, - "plugins": ["react", "@codaco/spellcheck"], - "rules": { - "react/prop-types": [0], - "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], - "react/jsx-props-no-spreading": "off", - "react/forbid-prop-types": "off", - "react/no-array-index-key": "off", - "jsx-a11y/no-static-element-interactions": "off", - "jsx-a11y/click-events-have-key-events": "off", - "import/no-extraneous-dependencies": "off", - "import/no-named-as-default": "off", - "no-mixed-operators": [1, {"allowSamePrecedence": true}], - "@codaco/spellcheck/spell-checker": [1, - { - "comments": false, - "strings": true, - "identifiers": false, - "lang": "en_US", - "ignoreRequire": true, - "skipWords": [ - "Dev", - "darwin", - "https", - "selectall", - "resetzoom", - "togglefullscreen", - "forcereload", - "toggledevtools", - "devtools", - "netcanvas", - "cancelled", - "utf", - "html", - "argv", - "asc", - "tcp", - "mdns", - "href", - "http", - "crapple", - "ontouchstart", - "touchend", - "touchstart", - "touchmove", - "mousedown", - "mouseup", - "mousemove", - "dragover", - "deviceready", - "datetime", - "graphml", - "networkcanvas", - "undirected", - "edgedefault", - "Formatter", - "noopener", - "noreferrer", - "csv", - "linux", - "params", - "Checkbox", - "Likert", - "Sociogram", - "localhost", - "desc", - "calc", - "codaco", - "dialogs", - "filesystem", - "Cordova", - "sha256", - "sortable", - "codebook", - "uid", - "cdvfile", - "Tmp", - "swiper", - "Swiper", - "prev", - "fullscreen", - "ord", - "scroller", - "resize", - "rerender", - "Rerender", - "vmin", - "320px", - "0px", - "titlebar", - "minimizer", - "Unpair", - "discoverability", - "scrollable", - "draggable", - "dyad", - "Dyad", - "hostname", - "searchable" - ], - "skipIfMatch": [ - "http(s)?://[^s]*", - // pre/post prefixes both in kebab case and camel case - "(\\s|^)(pre|post)([-\\w]|[A-Z])[a-zA-Z]+(\\s|$)", - // mimetypes - "^[-\\w]+\/[-\\w\\.]+$", - // xml tags - "<(?:\/)?[\\w-]+>", - // cryptographic octal hashes - "^[0-9a-f]{5,999}$", - // hex colors - "^#[0-9a-f]{3,6}$", - // vh - "vh$", - // px - "px$" - ], - "skipWordIfMatch": [ - ], - "minLength": 3 - } - ] - } -} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 40a9ed1273..0000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,71 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [master, legacy] - pull_request: - # The branches below must be a subset of the branches above - branches: [master] - schedule: - - cron: "45 2 * * 5" - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'javascript' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # âšī¸ Command-line programs to run using the OS shell. - # đ https://git.io/JvXDl - - # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml deleted file mode 100644 index 246912188b..0000000000 --- a/.github/workflows/dist.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Dist -on: - push: - branches: - - "release/**" - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -jobs: - dist: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - # Set python version to 2.x due to node-gyp and sass - - uses: actions/setup-python@v4 - with: - python-version: "3.10.12" - # Set node version - - uses: actions/setup-node@v4 - with: - node-version: "14.21.3" - - name: Set NPM 7 - run: npm install -g npm@8.19.4 - # Cache node_modules - - uses: actions/cache@v4 - env: - cache-name: cache-node-modules - with: - path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - - name: Install MDNS build dependencies - run: | - sudo apt-get update - sudo apt-get install libavahi-compat-libdnssd-dev - - - name: Install node modules - run: npm install - - - name: Dist - run: npm run dist:linux -- --publish always - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index debd856ccc..0000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: CI -on: - push: - branches: [master] - pull_request: - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - # Set python version to 2.x due to node-gyp and sass - - uses: actions/setup-python@v4 - with: - python-version: "3.10.12" - # Set node version - - uses: actions/setup-node@v4 - with: - node-version: "14.21.3" - - name: Set NPM 7 - run: npm install -g npm@8.19.4 - # Cache node_modules - - uses: actions/cache@v4 - env: - cache-name: cache-node-modules - with: - path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - - name: Install MDNS build dependencies - run: | - sudo apt-get update - sudo apt-get install libavahi-compat-libdnssd-dev - - - name: Install node modules - run: npm install - - - name: Lint - run: npm run lint -- --max-warnings 0 && npm run sass-lint -- --max-warnings 0 - - - name: Run tests - run: npm run test - - build: - needs: test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - # Set python version to 2.x due to node-gyp and sass - - uses: actions/setup-python@v4 - with: - python-version: "3.10.12" - # Set node version - - uses: actions/setup-node@v4 - with: - node-version: "14.21.3" - - name: Set NPM 7 - run: npm install -g npm@8.19.4 - # Cache node_modules - - uses: actions/cache@v4 - env: - cache-name: cache-node-modules - with: - path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - - name: Install MDNS build dependencies - run: | - sudo apt-get update - sudo apt-get install libavahi-compat-libdnssd-dev - - - name: Install node modules - run: npm install - - - name: Build - run: npm run build:electron diff --git a/.gitignore b/.gitignore index 8a73b0875a..e1f46b234a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,34 +1,8 @@ +node_modules/ +dist/ +out/ +release-builds/ +.turbo/ +coverage/ +*.log .DS_Store -/node_modules -/bower_components -/platforms -/coverage -/release-builds -/www -/.idea -/docs-build -/plugins - -npm-debug.log* -yarn-debug.log* -yarn-error.log* -yarn.lock -build.json - -*.zip -plugins/**/*.pbxproj -Icon^M^M - -.devserver -config.xml.original -chromedriver.log - -# Xcode (Cordova plugin) -xcuserdata/ -IDEWorkspaceChecks.plist - -# Ignore protocol template used for schema generation -src/schemas/abstract-protocol.json - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 434e4987cf..0000000000 --- a/.gitmodules +++ /dev/null @@ -1,9 +0,0 @@ -[submodule "src/utils/networkQuery"] - path = src/utils/networkQuery - url = https://github.com/complexdatacollective/networkQuery -[submodule "src/utils/protocol/protocol-validation"] - path = src/utils/protocol/protocol-validation - url = https://github.com/complexdatacollective/protocol-validation.git -[submodule "src/utils/network-exporters"] - path = src/utils/network-exporters - url = https://github.com/complexdatacollective/network-exporters diff --git a/.node-version b/.node-version deleted file mode 100644 index f46d5e3942..0000000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -14.21.3 diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 5a89ce15d7..0000000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -save-prefix=~ -arch=x64 \ No newline at end of file diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 0000000000..61f7ef4496 --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,17 @@ +{ + "extends": ["../../.oxlintrc.json", "../../tooling/oxlint/react.json"], + "jsPlugins": ["oxlint-tailwindcss"], + "settings": { + "tailwindcss": { + "entryPoint": "tooling/tailwind/fresco/fresco.css" + } + }, + "rules": { + "react/exhaustive-deps": "warn", + "tailwindcss/no-unknown-classes": "off", + "tailwindcss/no-duplicate-classes": "error", + "tailwindcss/no-conflicting-classes": "warn", + "tailwindcss/no-unnecessary-whitespace": "error", + "tailwindcss/enforce-canonical": "warn" + } +} diff --git a/.stylelintrc.json b/.stylelintrc.json deleted file mode 100644 index d75964a3fb..0000000000 --- a/.stylelintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "stylelint-config-standard-scss", - "rules": { - "selector-class-pattern": null, - "custom-property-pattern": null, - "scss/at-extend-no-missing-placeholder": null - } -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index ded4328833..0000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "scss.validate": false, - "stylelint.validate": [ - "css", - "scss" - ], -} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000000..b6c4cd8b5d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,57 @@ +# network-canvas-interviewer + +## 6.6.0 + +- **Updated core dependencies.** The technology the app is built on has been brought up to + date, which improves stability and performance and lays the groundwork for future + improvements. +- **Compatibility with upcoming macOS versions.** This release ensures the app continues to + run smoothly on the latest and upcoming versions of macOS. +- **Improved security.** We've adopted current security best practices for building and + distributing the app â including properly signed and notarized macOS builds â so you can be + confident the software you download is genuine and safe to run. + +## 6.5.10 + +### Patch Changes + +- Updated dependencies [ae81956] + - @codaco/network-exporters@1.0.2 + +## 6.5.9 + +### Patch Changes + +- Updated dependencies + - @codaco/network-query@1.0.1 + +## 6.5.8 + +### Patch Changes + +- Updated dependencies [23efeeb] + - @codaco/network-exporters@1.0.1 + +## 6.5.7 + +### Patch Changes + +- Updated dependencies [4335dee] +- Updated dependencies [fe48a62] +- Updated dependencies [e31e28d] + - @codaco/network-exporters@1.0.0 + - @codaco/network-query@1.0.0 + +## 6.5.6 + +### Patch Changes + +- @codaco/network-exporters@0.1.2 +- @codaco/network-query@0.1.2 + +## 6.5.5 + +### Patch Changes + +- @codaco/network-exporters@0.1.1 +- @codaco/network-query@0.1.1 diff --git a/README.md b/README.md index 67d347e421..281905c633 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,13 @@ There are some additional requirements for the [MDNS](https://www.npmjs.com/pack ### Before running `npm install` 1. Run powershell as admin (right-click option) and then run: + ``` npm --add-python-to-path install --global windows-build-tools ``` + 2. Install [Bonjour SDK for Windows](https://developer.apple.com/download/more/?=Bonjour%20SDK%20for%20Windows) -(requires an apple id associated with a paid team account). Select "Bonjour SDK for Windows v.3.0". `BONJOUR_SDK_HOME` should be set for you after installation completes. + (requires an apple id associated with a paid team account). Select "Bonjour SDK for Windows v.3.0". `BONJOUR_SDK_HOME` should be set for you after installation completes. 3. Restart powershell and continue with [project installation](#installation). ### After running `npm install` @@ -56,14 +58,14 @@ Is added to to `/etc/msswitch.conf`. ### Troubleshooting - Native dependencies won't compile - + `windows-build-tools` should have installed the required compilers - + [MS notes on config for native modules](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules) - + ...You could install python and VS Build Tools manually; you should *not* need all of Visual Studio + - `windows-build-tools` should have installed the required compilers + - [MS notes on config for native modules](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules) + - ...You could install python and VS Build Tools manually; you should _not_ need all of Visual Studio - Runtime error related to DLL initialization - + Make sure the "rebuild" step above works - + [More Info](https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md#using-native-node-modules) + - Make sure the "rebuild" step above works + - [More Info](https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md#using-native-node-modules) - MDNS doesn't work on linux (getaddr - + Try adding `hosts: files mdns4_minimal mdns6_minimal [NOTFOUND=return] dns` to `/etc/msswitch.conf` + - Try adding `hosts: files mdns4_minimal mdns6_minimal [NOTFOUND=return] dns` to `/etc/msswitch.conf` ## Installation @@ -81,22 +83,22 @@ Note: for Apple Silicon users, you need to install the `electron` package manual ## Development Tasks -|`npm run
+