Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@hmcts/annotation-ui
Advanced tools
Set environment variable to define if app connects to localhost or aat: ### export APP_ENV=local
Readme
Set environment variable to define if app connects to localhost or aat:
yarn install; export S2S_SECRET={{insert secret here}}; export IDAM_SECRET={{insert secret here}}; export APP_ENV=local; yarn watch-dev-node; yarn install; export S2S_SECRET={{insert secret here}}; export IDAM_SECRET={{insert secret here}}; export APP_ENV=local; yarn start-dev-proxy;
Goto http://localhost:3000 and the viewer should load the document.
npm run package Distributable will be copied to /dist/hmcts-annotation-ui-lib
Check demo app: https://github.com/hmcts/rpa-em-show
Import HmctsEmViewerUiModule and declare it in your NgModule imports.
For example:
import { HmctsEmViewerUiModule } from 'hmcts-annotation-ui-lib';
@NgModule({
imports: [
...,
HmctsEmViewerUiModule,
]
})
Import the assets to your angular.json
{
"glob": "**/*",
"input": "node_modules/hmcts-annotation-ui-lib/assets",
"output": "/assets"
}
Reference the followings scripts in your angular.json.
"scripts": [
"node_modules/hmcts-annotation-ui-lib/assets/javascripts/pdf.js",
"node_modules/hmcts-annotation-ui-lib/assets/javascripts/pdf_viewer.js",
"node_modules/hmcts-annotation-ui-lib/assets/javascripts/pdf-annotate.js"
...
]
And styles
"styles": [
"node_modules/hmcts-annotation-ui-lib/assets/annotation-ui-theme.scss",
...
],
Copy pdf.worker.js into your assets folder too.
Component entry point:
<app-document-viewer
[baseUrl]="'http://localhost:3000/api'"
[annotate]="true"
[pdfWorker]="'/public/javascripts/pdf-worker.js'"
[url]="'https://dm-store-aat.service.core-compute-aat.internal/documents/35f3714e-30e0-45d6-b4fb-08f51c271f8e'"
></app-document-viewer>
Run ng serve
for a dev server. Navigate to http://localhost:4200
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
FAQs
Set environment variable to define if app connects to localhost or aat: ### export APP_ENV=local
The npm package @hmcts/annotation-ui receives a total of 1 weekly downloads. As such, @hmcts/annotation-ui popularity was classified as not popular.
We found that @hmcts/annotation-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.