Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lukestanley committed Oct 16, 2024
1 parent d0ad410 commit 1d680be
Show file tree
Hide file tree
Showing 619 changed files with 20,967 additions and 18,106 deletions.
50 changes: 24 additions & 26 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
// 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.241.1/containers/typescript-node
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "16-bullseye"
}
},
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "16-bullseye"
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint"
]
}
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": ["dbaeumer.vscode-eslint"]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [4200],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [4200],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install --legacy-peer-deps",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install --legacy-peer-deps",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}
28 changes: 12 additions & 16 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"env": {
"browser": true,
"es2021": true
},
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
}
"env": {
"browser": true,
"es2021": true
},
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {}
}
13 changes: 9 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,41 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Bug description**

<!-- A clear and concise description of what the bug is. -->

<!-- Screenshot and / or short video can be really helpful in understanding the issue, especially for dynamic or interactive bugs. -->

**Reproduction steps**

<!-- Provide steps to reproduce the behaviour, e.g: -->

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behaviour**

<!-- Explain clearly and simply what you expected to happen instead of the bug. -->

**Flow Configuration** <!-- To help diagnose issues with Flows, the flow's JSON configuration or a shared link to the Flow makes it easier to replicate and understand the issue. For ways to share flows see: https://kendraio-app.readthedocs.io/en/latest/workflow/sharing.html -->

**Runtime environment**

- OS: <!-- [e.g. Ubuntu] -->
- Browser: <!-- [e.g. Firefox 123, Chrome 45, Safari 67] -->
- App version:
- Angular Version: <!-- (if known) -->

**Additional context**

<!--Add any other context about the problem here. -->

<!--- Please check for label tags that match the issue type, e.g., use 'state' tag for state reactivity bugs. -->
2 changes: 1 addition & 1 deletion .github/actions/tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ runs:
args:
- ${{ inputs.vercel-token }}
- ${{ inputs.repo }}
- ${{ inputs.record }}
- ${{ inputs.record }}
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: firebase_deploy

on:
push:
branches: [ main ]
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -45,4 +45,4 @@ jobs:
with:
args: deploy --only hosting,functions
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/vercel_deployment_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
repo: kendraio-app&teamId=kendraio
record: ${{ secrets.CYPRESS_RECORD_KEY }}
record: ${{ secrets.CYPRESS_RECORD_KEY }}
6 changes: 3 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ build:

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
configuration: docs/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
install:
- requirements: docs/requirements.txt
33 changes: 17 additions & 16 deletions PAYMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,35 @@ The "**Web Money block**" can be used in a flow to stream ILP payments in real t
We enable Coil users to stream XRP using Web Monetization's Interledger Protocol. The block works with, or without the Coil browser extension, and the account balances can be seen by recipients using the Wallet block to see (currently integrated using Uphold OAuth).

Check out the screencast videos:
- [Kendraio Player with Coil login, Web Monetization without a browser extension](https://www.youtube.com/watch?v=T2yXWJKIgOQ)

- [Uphold API integrated with Kendraio App Wallet Block](https://www.youtube.com/watch?v=QoZA2F-ddd8)
- [Kendraio Player with Coil login, Web Monetization without a browser extension](https://www.youtube.com/watch?v=T2yXWJKIgOQ)

- [Uphold API integrated with Kendraio App Wallet Block](https://www.youtube.com/watch?v=QoZA2F-ddd8)

**Block documentation**

- [Web Money Block](https://github.com/kendraio/kendraio-app/blob/main/docs/workflow/blocks/web_money.rst)
- [Web Money Block](https://github.com/kendraio/kendraio-app/blob/main/docs/workflow/blocks/web_money.rst)

- [Wallet Block](https://github.com/kendraio/kendraio-app/blob/main/docs/workflow/blocks/wallet.rst)
- [Wallet Block](https://github.com/kendraio/kendraio-app/blob/main/docs/workflow/blocks/wallet.rst)

**Example flows**

- Check out our Player:
<https://app.kendra.io/player/all>
- Check out our Player:
<https://app.kendra.io/player/all>

- Wallet Block demo:
<https://app.kendra.io/dsp1/walletArray>
- Wallet Block demo:
<https://app.kendra.io/dsp1/walletArray>

- Statistics using anonymous analytics:
<https://app.kendra.io/player/stats>
- Statistics using anonymous analytics:
<https://app.kendra.io/player/stats>

**Components:**

- Web Money block:
<https://github.com/kendraio/kendraio-app/blob/main/src/app/blocks/web-money/web-money.component.ts>
- Web Money block:
<https://github.com/kendraio/kendraio-app/blob/main/src/app/blocks/web-money/web-money.component.ts>

- Wallet block:
https://github.com/kendraio/kendraio-app/blob/main/src/app/blocks/wallet/wallet.component.ts
- Wallet block:
https://github.com/kendraio/kendraio-app/blob/main/src/app/blocks/wallet/wallet.component.ts

- Uphold service library:
https://github.com/kendraio/kendraio-app/blob/main/src/app/_shared/services/uphold_service.ts
- Uphold service library:
https://github.com/kendraio/kendraio-app/blob/main/src/app/_shared/services/uphold_service.ts
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Email [email protected] with full details of the security issue,
we will add it to the private security issue workspace, and reply to
you with full details of how we are dealing with the issue.

We thank you for your contribution and for responsible
We thank you for your contribution and for responsible
reporting of security issues.

:heart:
39 changes: 14 additions & 25 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
"@schematics/angular:application": {
"strict": true
}
},
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"options": {
"allowedCommonJsDependencies": [
"lodash"
],
"allowedCommonJsDependencies": ["lodash"],
"outputPath": {
"base": "dist"
},
Expand All @@ -41,7 +39,11 @@
"src/mstile-150x150.png",
"src/assets",
"src/manifest.json",
{ "glob": "**/*", "input": "node_modules/monaco-editor", "output": "/assets/monaco/" }
{
"glob": "**/*",
"input": "node_modules/monaco-editor",
"output": "/assets/monaco/"
}
],
"styles": [
"node_modules/@fortawesome/fontawesome-free/css/all.css",
Expand All @@ -63,9 +65,7 @@
"namedChunks": true,
"browser": "src/main.ts",
"stylePreprocessorOptions": {
"includePaths": [
"."
]
"includePaths": ["."]
}
},
"configurations": {
Expand Down Expand Up @@ -167,24 +167,17 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.scss"
],
"styles": ["src/styles.scss"],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.json"
]
"assets": ["src/favicon.ico", "src/assets", "src/manifest.json"]
}
},
"cypress-run": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "kendraio-app:serve"
},
"configurations": {
}
"configurations": {}
},
"cypress-open": {
"builder": "@cypress/schematic:cypress",
Expand All @@ -200,8 +193,7 @@
"watch": true,
"headless": false
},
"configurations": {
}
"configurations": {}
}
}
},
Expand All @@ -225,12 +217,9 @@
}
}
}

},
"cli": {
"analytics": false,
"schematicCollections": [
"@ngrx/schematics"
]
"schematicCollections": ["@ngrx/schematics"]
}
}
}
22 changes: 11 additions & 11 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { defineConfig } from 'cypress'
import { defineConfig } from "cypress";

export default defineConfig({
videosFolder: 'cypress/videos',
videosFolder: "cypress/videos",
video: false,
screenshotsFolder: 'cypress/screenshots',
fixturesFolder: 'cypress/fixtures',
reporter: 'mochawesome',
screenshotsFolder: "cypress/screenshots",
fixturesFolder: "cypress/fixtures",
reporter: "mochawesome",

reporterOptions: {
reportDir: 'cypress/results',
reportDir: "cypress/results",
overwrite: false,
html: true,
json: true,
},

watchForFileChanges: false,
projectId: 'ebzwp1',
projectId: "ebzwp1",
pageLoadTimeout: 100000,
defaultCommandTimeout: 30000,

Expand All @@ -29,8 +29,8 @@ export default defineConfig({
e2e: {
setupNodeEvents(on, config) {},
supportFile: false,
baseUrl: 'http://localhost:4200',
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
experimentalRunAllSpecs: true
baseUrl: "http://localhost:4200",
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
experimentalRunAllSpecs: true,
},
})
});
Loading

0 comments on commit 1d680be

Please sign in to comment.