2.1.4 • Published 2 years ago

@dbp-topics/signature v2.1.4

Weekly downloads
-
License
LGPL-2.1-or-later
Repository
gitlab
Last release
2 years ago

Digital Signing Application

GitLab Repository | npmjs package | Unpkg CDN | Esign Bundle | Project documentation

Esign - The digital signature service at the university.

Prerequisites

Local development

# get the source
git clone git@gitlab.tugraz.at:dbp/esign/signature.git
cd signature
git submodule update --init

# install dependencies
yarn install

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

# run tests
yarn test

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

To use the Nextcloud functionality you need a running Nextcloud server with the webapppassword Nextcloud app like this Nextcloud Development Environment.

Using this app as pre-built package

Install app

If you want to install the DBP Signature App in a new folder signature-app with a path prefix / you can call:

npx @digital-blueprint/cli install-app signature signature-app /

Afterwards you can point your Apache web-server to signature-app/public.

Make sure you are allowing .htaccess files in your Apache configuration.

Also make sure to add all of your resources you are using (like your API and Keycloak servers) to the Content-Security-Policy in your signature-app/public/.htaccess, so the browser allows access to those sites.

You can also use this app directly from the Unpkg CDN for example like this: dbp-signature/index.html

Note that you will need a Keycloak server along with a client id for the domain you are running this html on.

Update app

If you want to update the DBP Signature App in the current folder you can call:

npx @digital-blueprint/cli update-app signature

Activities

This app has the following activities:

  • dbp-acquire-3g-ticket
  • dbp-show-active-tickets
  • dbp-show-reference-ticket

You can find the documentation of these activities in the esign activities documentation.

Adapt app

Functionality

You can add multiple attributes to the <dbp-signature> tag.

attribute namevalueLink to description
provider-rootBooleanapp-shell
langStringlanguage-select
entry-point-urlStringapp-shell
keycloak-configObjectapp-shell
base-pathStringapp-shell
srcStringapp-shell
html-overridesStringcommon
themesArraytheme-switcher
darkModeThemeOverrideStringtheme-switcher
gp-search-hash-stringStringgreenlight activities
gp-search-self-test-string-arrayStringgreenlight activities
gp-self-test-validBooleangreenlight activities
ticket-typesObjectgreenlight activities
show-preselectedBooleangreenlight activities
preselected-optionStringgreenlight activities
file-handling-enabled-targetsStringfile-handling
nextcloud-web-app-password-urlStringfile-handling
nextcloud-web-dav-urlStringfile-handling
nextcloud-file-urlStringfile-handling
nextcloud-auth-infoStringfile-handling
nextcloud-nameStringfile-handling
allow-annotatingBooleanesign activities
file-handling-enabled-targetsStringesign activities

Mandatory attributes

If you are not using the provider-root attribute to "terminate" all provider attributes you need to manually add these attributes so that the topic will work properly:

<dbp-signature
        auth
        requested-login-status
        analytics-event
        initial-file-handling-state
        clipboard-files
>
</dbp-signature>

Design

For frontend design customizations, such as logo, colors, font, favicon, and more, take a look at the theming documentation.

"dbp-signature" slots

These are common slots for the app-shell. You can find the documentation of these slots in the app-shell documentation. For the app specific slots take a look at the esign activities documentation.