🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@dbp-toolkit/person-profile

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbp-toolkit/person-profile

You can install this component via npm:

latest
Source
npmnpm
Version
0.2.6
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

Person Profile Web Component

You can install this component via npm:

npm i @dbp-toolkit/person-profile

Usage

<dbp-person-profile></dbp-person-profile>
<script type="module" src="node_modules/@dbp-toolkit/person-profile/dist/dbp-person-profile.js"></script>

Or directly via CDN:

<dbp-person-profile></dbp-person-profile>
<script type="module" src="https://unpkg.com/@dbp-toolkit/person-profile@0.2.2/dist/dbp-person-profile.js"></script>

Attributes

  • lang (optional, default: de): set to de or en for German or English
    • example <dbp-person-profile lang="de"></dbp-person-profile>
  • entry-point-url (optional, default is the TU Graz entry point url): entry point url to access the api
    • example <dbp-person-profile entry-point-url="http://127.0.0.1:8000"></dbp-person-profile>
  • value (optional): api path of person to preload the selector with
    • example <dbp-person-profile value="/base/people/testuser"></dbp-person-profile>
  • auth object: you need to set that object property for the auth token
    • example auth property: {token: "THE_BEARER_TOKEN"}
    • note: most often this should be an attribute that is not set directly, but subscribed at a provider

Local development

# get the source
git clone git@github.com:digital-blueprint/toolkit.git
cd toolkit/packages/person-profile

# install dependencies
yarn install

# constantly build dist/bundle.js and run a local web-server on port 8002 
yarn run watch

# run tests
yarn test

# build local packages in dist directory
yarn run build

Jump to http://localhost:8002 and you should get a Single Sign On login page.

FAQs

Package last updated on 03 Mar 2023

Did you know?

Socket

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.

Install

Related posts