Skip to content

Add Angular and React examples #58

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

taneltm
Copy link
Member

@taneltm taneltm commented Mar 12, 2025

WE2-968

event.waitUntil(self.clients.claim())
})

self.addEventListener('message', async function (event) {

Check warning

Code scanning / CodeQL

Missing origin verification in `postMessage` handler Medium

Postmessage handler has no origin check.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is auto-generated by MSW and used for back-end mocking.

@taneltm taneltm force-pushed the WE2-968 branch 3 times, most recently from d85fb18 to 47cadd6 Compare March 16, 2025 11:45
taneltm added 2 commits March 17, 2025 17:41
WE2-968

Signed-off-by: Tanel Metsar <[email protected]>
WE2-968

Signed-off-by: Tanel Metsar <[email protected]>
event.waitUntil(self.clients.claim())
})

self.addEventListener('message', async function (event) {

Check warning

Code scanning / CodeQL

Missing origin verification in `postMessage` handler Medium

Postmessage handler has no origin check.
@taneltm taneltm changed the title Add Angular example Add Angular and React examples Mar 17, 2025
@mrts mrts requested a review from Copilot July 22, 2025 10:53
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive Angular and React example applications demonstrating Web eID library integration. Both examples include authentication flows, digital signing capabilities, and mock backend services for development and testing.

  • Adds React example using Vite, TypeScript, and React Router with Web eID authentication and signing
  • Adds Angular example using Angular 19 with TypeScript, demonstrating reactive patterns and service-based architecture
  • Updates Jest configuration to exclude example directories from test runs

Reviewed Changes

Copilot reviewed 77 out of 86 changed files in this pull request and generated no comments.

File Description
jest.config.mjs Excludes examples directory from test execution
examples/web-eid-react-example/* Complete React example with components, hooks, state management, and MSW mocking
examples/web-eid-angular-example/* Complete Angular example with services, guards, components, and comprehensive test coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant