Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add did:ebsi provider Veramo plugin #161

Merged
merged 42 commits into from
Apr 7, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
a6da3c9
chore: remove old website (#136)
martines3000 Mar 20, 2023
6283533
chore: update lock file
martines3000 Mar 20, 2023
945a5e6
feat: update packages to esm (#135)
martines3000 Mar 20, 2023
2b114ee
feat: new dapp (#107)
andyv09 Mar 20, 2023
88a2f1c
chore: change basePath to ssi-snap
martines3000 Mar 20, 2023
175acaf
fix: fixes dapp build issues
martines3000 Mar 20, 2023
f2607dd
fix: disable next image optimization
martines3000 Mar 21, 2023
a3a9144
fix: fixes dapp Dockerfile
martines3000 Mar 21, 2023
6095f96
feat: add support for did:ebsi method for legal entitites
pseudobun Mar 25, 2023
2f97227
chore: update ebsi lib versions
pseudobun Mar 25, 2023
2adafad
fix: fixes snap url in new dapp (#142)
martines3000 Mar 27, 2023
fab0b4d
feat: add createVC RPC method (#141)
andyv09 Mar 28, 2023
6898a70
chore: update dev deps (#144)
martines3000 Mar 28, 2023
669a0e7
chore: refactor code and files for did:ebsi legal entities
pseudobun Mar 28, 2023
a8737ab
fix: error handling
pseudobun Mar 28, 2023
28d6ddf
feat: add support for did:key ebsi natural persons
pseudobun Mar 28, 2023
1b9220d
feat: did:key resolution for ebsi natural persons
pseudobun Mar 29, 2023
78fa4e7
feat: did:ebsi onboarding via snap
pseudobun Mar 29, 2023
1df04f6
chore: restructure did:ebsi plugin folder
pseudobun Mar 29, 2023
5d643f7
chore: bump @cef-ebsi/verifiable-presentation version
pseudobun Apr 5, 2023
397e2f3
chore: format index.html
pseudobun Apr 5, 2023
ad3aa92
Merge branch 'develop' into feat/did-ebsi-support
pseudobun Apr 5, 2023
d4292d4
chore: refactor key import when creating did:ebsi identifier
pseudobun Apr 5, 2023
12ab90f
fix: error handling
pseudobun Apr 5, 2023
4d96c9a
chore: remove unnecessary eslint rules
pseudobun Apr 5, 2023
76c0897
feat: update request params validation for switchDidMethod RPC
pseudobun Apr 5, 2023
8fa9f3f
chore: remove unnecesary comments
pseudobun Apr 5, 2023
9ae4616
Merge branch 'develop' into feat/did-ebsi-support
martines3000 Apr 7, 2023
9377e70
fix: error handling in ebsiUtils
pseudobun Apr 7, 2023
179e33a
feat: website internationalization (#153)
andyv09 Apr 7, 2023
5d30479
Merge branch 'develop' into feat/did-ebsi-support
martines3000 Apr 7, 2023
9cde645
chore: remove console.log
martines3000 Apr 7, 2023
383c531
chore: remove undefined
martines3000 Apr 7, 2023
9e16ef7
chore: throw error instead of return empty string
martines3000 Apr 7, 2023
5046233
chore: remove unused vars disable
martines3000 Apr 7, 2023
99f2a6d
chore: change any to unknown
martines3000 Apr 7, 2023
4a06c59
chore: options?.bearer
martines3000 Apr 7, 2023
148d6fe
chore: remove ebsi fields from index.html
pseudobun Apr 7, 2023
f0150b8
fix: unit test
pseudobun Apr 7, 2023
6731c1f
chore: refactor ebsi plugin code, start function params transition
pseudobun Apr 7, 2023
4bf6110
chore: small fix
martines3000 Apr 7, 2023
0aa049f
chore: remove some things
martines3000 Apr 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
**/Dockerfile
yarn-error.log
JenkinsfileTest
.next
**/.next
install-state.gz
**/dist
**/build
Expand Down
39 changes: 34 additions & 5 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,36 @@ module.exports = {
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint/eslint-plugin', 'unused-imports'],
overrides: [
{
files: [
'**/*.spec.ts',
'**/*.e2e-spec.ts',
'**/test/**',
'**/tests/**',
'**/__tests__/**',
'**/*.spec.ts',
],
plugins: ['jest'],
extends: ['plugin:jest/recommended', 'plugin:jest/style'],
rules: {
'jest/prefer-expect-assertions': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
},
env: { jest: true },
},
],
plugins: [
'@typescript-eslint/eslint-plugin',
'unused-imports',
'jest-extended',
],
parser: '@typescript-eslint/parser',
rules: {
// other rules
Expand All @@ -21,6 +44,7 @@ module.exports = {
'WithStatement',
],
// for unused-imports library

'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
Expand All @@ -30,7 +54,6 @@ module.exports = {
argsIgnorePattern: '^_',
},
],
// for nestjs
'import/prefer-default-export': 0,
'class-methods-use-this': 'off',
// for tests
Expand All @@ -41,12 +64,15 @@ module.exports = {
'**/*.spec.ts',
'**/*.e2e-spec.ts',
'**/webpack.config.ts',
'tsup.config.ts',
'**/tsup.config.ts',
'**/jest.d.ts',
],
},
],

// for prettier
'prettier/prettier': ['error', { singleQuote: true }],
'import/extensions': 'off',
},
ignorePatterns: [
'**/node_modules/**',
Expand All @@ -57,5 +83,8 @@ module.exports = {
'**/build/**',
'**/.docusaurus/**',
'**/next.config.js',
'**/out',
'**/.next',
'tsup.config.ts',
],
};
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ jobs:
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
with:
node-version: 18.13.0
pnpm-version: 7.30.0
node-version: 18.15.0
number-of-agents: 3
main-branch-name: 'develop'
init-commands: |
pnpm nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
parallel-commands-on-agents: |
pnpm nx affected --target=lint --exclude @blockchain-lab-um/website --parallel=3
pnpm nx affected --target=test:ci --exclude @blockchain-lab-um/website --parallel=3
pnpm nx affected --target=build --exclude @blockchain-lab-um/website --parallel=3
pnpm nx affected --target=lint --parallel=3
pnpm nx affected --target=test:ci --parallel=3
pnpm nx affected --target=build --parallel=3

agents:
name: Nx Cloud - Agents
Expand All @@ -37,4 +38,5 @@ jobs:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
with:
number-of-agents: 3
node-version: 18.13.0
pnpm-version: 7.30.0
node-version: 18.15.0
73 changes: 36 additions & 37 deletions .github/workflows/deploy_dapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.25.1
version: 7.30.0
- uses: actions/setup-node@v3
with:
node-version: 18.13.0
node-version: 18.15.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down Expand Up @@ -70,38 +70,37 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to private docker registry
run: docker push bclabum.informatika.uni-mb.si/registry/dapp:latest
# TODO: Uncomment when we replace the old dapp
# deploy:
# # Deploy only when we PUSH to MASTER
# if: ${{ (github.ref == 'refs/heads/master') && (github.event_name == 'push') }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - uses: nrwl/nx-set-shas@v3
# with:
# main-branch-name: 'develop'
# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 7.25.1
# - uses: actions/setup-node@v3
# with:
# node-version: 18.13.0
# cache: pnpm
# - name: Install dependencies
# run: pnpm install --frozen-lockfile
# - name: Lint
# run: pnpm nx run @blockchain-lab-um/dapp:lint
# env:
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
# - name: Test build dapp
# run: pnpm nx run @blockchain-lab-um/dapp:build
# env:
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./packages/dapp/.next
deploy:
# Deploy only when we PUSH to MASTER
if: ${{ (github.ref == 'refs/heads/master') && (github.event_name == 'push') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
with:
main-branch-name: 'develop'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.30.0
- uses: actions/setup-node@v3
with:
node-version: 18.15.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm nx run @blockchain-lab-um/dapp:lint
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- name: Test build dapp
run: pnpm nx run @blockchain-lab-um/dapp:build
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/dapp/.next
10 changes: 5 additions & 5 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.25.1
version: 7.30.0
- uses: actions/setup-node@v3
with:
node-version: 18.13.0
node-version: 18.15.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm nx run @blockchain-lab-um/ssi-snap-docs:lint
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
- name: Test build website
- name: Test build docs
run: pnpm nx run @blockchain-lab-um/ssi-snap-docs:build
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
Expand Down Expand Up @@ -80,10 +80,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.25.1
version: 7.30.0
- uses: actions/setup-node@v3
with:
node-version: 18.13.0
node-version: 18.15.0
cache: pnpm
- uses: webfactory/[email protected]
with:
Expand Down
107 changes: 0 additions & 107 deletions .github/workflows/deploy_website.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.25.1
version: 7.30.0
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18.13.0
node-version: 18.15.0
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install deps
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.25.1
version: 7.30.0
- uses: actions/setup-node@v3
with:
node-version: 18.13.0
node-version: 18.15.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down Expand Up @@ -58,10 +58,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.25.1
version: 7.30.0
- uses: actions/setup-node@v3
with:
node-version: 18.13.0
node-version: 18.15.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ dist/
build/
coverage/
.cache/
public/
.yarn/patches

packages/docs/.docusaurus
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.13.0
v18.15.0
Loading