{"_id":"@digital-blueprint/greenlight-app","_rev":"1-b27cc61a7f3bd0bb19541076f1a10c93","name":"@digital-blueprint/greenlight-app","dist-tags":{"latest":"1.2.3"},"versions":{"1.2.3":{"name":"@digital-blueprint/greenlight-app","internalName":"dbp-greenlight","version":"1.2.3","license":"LGPL-2.1-or-later","repository":{"type":"git","url":"git+https://github.com/digital-blueprint/greenlight-app.git"},"private":false,"workspaces":["vendor/toolkit/packages/*"],"devDependencies":{"@babel/core":"^7.10.3","@babel/preset-env":"^7.10.3","@rollup/plugin-babel":"^6.0.0","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.0","@rollup/plugin-terser":"^0.3.0","@rollup/plugin-url":"^8.0.0","can-npm-publish":"^1.3.3","chai":"^4.2.0","chai-as-promised":"^7.1.1","eslint":"^8.0.1","eslint-plugin-jsdoc":"^39.0.0","glob":"^8.0.0","i18next-parser":"^7.0.0","karma":"^6.0.0","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-mocha":"^2.0.1","karma-source-map-support":"^1.4.0","mocha":"^10.0.0","playwright-core":"^1.20.2","prettier":"^2.5.1","rollup":"^3.2.5","rollup-plugin-copy":"^3.3.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-emit-ejs":"^3.1.0","rollup-plugin-license":"^3.0.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-serve":"^2.0.0","selfsigned":"^2.0.0"},"dependencies":{"@dbp-toolkit/app-shell":"^0.3.0","@dbp-toolkit/auth":"^0.3.0","@dbp-toolkit/common":"^0.3.0","@dbp-toolkit/language-select":"^0.3.0","@dbp-toolkit/notification":"^0.3.0","@dbp-toolkit/person-profile":"^0.2.0","@open-wc/scoped-elements":"^2.1.0","@tugraz/font-source-sans-pro":"^0.2.4","@tugraz/web-components":"^0.3.4","@webcomponents/scoped-custom-element-registry":"^0.0.7","certlogic-js":"^1.0.0","i18next":"^22.0.0","jose":"^4.0.0","lit":"^2.0.0","mockdate":"^3.0.5","pdfjs-dist":"^2.12.313","qrcode-generator":"^1.4.4","string-similarity":"^4.0.4"},"scripts":{"build":"rollup --bundleConfigAsCjs -c","i18next":"i18next","format":"yarn run format:eslint && yarn run format:prettier","format:eslint":"eslint \"**/*.{js,ts}\" --fix","format:prettier":"prettier \"**/*.{js,json,ts}\" --write","watch":"rollup --bundleConfigAsCjs -c --watch","watch-local":"yarn run watch","watch-full":"rollup --bundleConfigAsCjs -c --watch --environment FORCE_FULL","watch-bs":"rollup --bundleConfigAsCjs -c --watch --environment APP_ENV:bs","test":"rollup --bundleConfigAsCjs -c --environment APP_ENV:test && karma start --singleRun","test-full":"rollup --bundleConfigAsCjs -c --environment FORCE_FULL,APP_ENV:test && karma start --singleRun","lint":"eslint .","do-publish":"sed -i 's/\"private\": true/\"private\": false/' package.json && can-npm-publish --verbose 2>&1 && npm publish --access public 2>&1; sed -i 's/\"private\": false/\"private\": true/' package.json"},"gitHead":"dc4c12441e986c8e34dc8ef250e66038185c87bf","description":"[GitHub Repository](https://github.com/digital-blueprint/greenlight-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/greenlight-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/greenlight-app/) | [Greenlight Bundle](ht","bugs":{"url":"https://github.com/digital-blueprint/greenlight-app/issues"},"homepage":"https://github.com/digital-blueprint/greenlight-app#readme","_id":"@digital-blueprint/greenlight-app@1.2.3","_nodeVersion":"14.21.2","_npmVersion":"6.14.17","dist":{"integrity":"sha512-oT+6zouy33IR1rC4cSwACLdnfodL1vYnjrnGK1lqCj/mV31ODHQzdgk3EIrHvTIpw/hi1AsjXk78m4PsuwwgNw==","shasum":"aaf1d6bed31b10a0263ed4628b17d007a6b37969","tarball":"https://registry.npmjs.org/@digital-blueprint/greenlight-app/-/greenlight-app-1.2.3.tgz","fileCount":914,"unpackedSize":41702847,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG22W/fw6ob7J9voXENviZdxp8iiFGpWsMd3sZDnawX/AiEAljT32oQISOnVjW/dRJytlN8o83yAd/lmKFZsaoaglkQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjz9AVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpknQ/+JdXvuEHg7JRYp9pdH1/ONGYwZjzJIIvrq6YM3NkPv51VG1Js\r\ngQ6umIyD7LYxfFzcWE64W9vQiHdGIudBDYv0tbHBsGuO7OqKnwmFwewfbvNN\r\nUvCowSChRZRVqJLlLunPxM7E/eCOBnRVW1+JJTieHPrk6ltnmnJjG9e8XNNr\r\n6KQ8Igh5t5KgUniL7e3c373jlm1B6OiQzhyanYmGY08AGbcJOwGlmeB6AjTV\r\nTUiHxxSkJAykHg+vbMuLohjYMuaA3y1OFh7Tfw3IRdi23CLHUl+DFkXiHjOr\r\nOx3YR7p+57J9D6fQvPw+sysziKU6L293d16Zi1FTxxNsev8MkBSSLnDaaC6I\r\nHA9gxiaT9d8tIx5XluyBnhwa2QVkvfnvJCj1UXEL+n/COuasKg31qA0tzppQ\r\nPvI8BzCg+DlWvP//8Sztfx013HJf6V9nagS0DGEf7N6g2qEShVsXAmVw0ax3\r\nCjcXSLCJctCsCryW8GHqFe8Sg6CUuv3p2I1vJJcOTDScBkDv2yfX4KtqjPSD\r\nU9XIJ65v/j6nbJ9LWZKnAmviNpgj31nJTSaY3Srd7hDDi9C8Ba9zrj7MMn2p\r\nPdaut0Mg5TRK4BKABwzcgX4D7JOMfUcUx422pZwZWnuHwals3TWrcIUlsxQn\r\nppzgJiNhOPf2kO5Ci5GxMo9Q9ePFjArPhYE=\r\n=rou+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dbp-deploy","email":"patrizio+dbp-deploy@bekerle.com"},"directories":{},"maintainers":[{"name":"pbek","email":"patrizio@bekerle.com"},{"name":"dbp-deploy","email":"patrizio+dbp-deploy@bekerle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/greenlight-app_1.2.3_1674563604924_0.11474207014669857"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2023-01-24T12:33:24.821Z","1.2.3":"2023-01-24T12:33:25.292Z","modified":"2023-07-03T14:00:13.725Z"},"maintainers":[{"name":"dbp-deploy","email":"patrizio+dbp-deploy@bekerle.com"},{"name":"pbek","email":"patrizio@bekerle.com"}],"description":"[GitHub Repository](https://github.com/digital-blueprint/greenlight-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/greenlight-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/greenlight-app/) | [Greenlight Bundle](ht","homepage":"https://github.com/digital-blueprint/greenlight-app#readme","repository":{"type":"git","url":"git+https://github.com/digital-blueprint/greenlight-app.git"},"bugs":{"url":"https://github.com/digital-blueprint/greenlight-app/issues"},"license":"LGPL-2.1-or-later","readme":"# Greenlight Application\n\n[GitHub Repository](https://github.com/digital-blueprint/greenlight-app) |\n[npmjs package](https://www.npmjs.com/package/@digital-blueprint/greenlight-app) |\n[Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/greenlight-app/) |\n[Greenlight Bundle](https://gitlab.tugraz.at/dbp/greenlight/dbp-relay-greenlight-bundle) |\n[Project documentation](https://dbp-demo.tugraz.at/site/software/greenlight.html)\n\n[![Build and Test](https://github.com/digital-blueprint/greenlight-app/actions/workflows/build-test-publish.yml/badge.svg)](https://github.com/digital-blueprint/greenlight-app/actions/workflows/build-test-publish.yml)\n\nCreates an entrance ticket and imports your evidence of a low epidemiological risk on the working device to validate it for admission even before attending a course or exam.\nThe ticket then enables you to access the university premises quickly and efficiently.\n\n## Prerequisites\n\n- You need the [API server](https://gitlab.tugraz.at/dbp/relay/dbp-relay-server-template) running\n- You need the [DbpRelayGreenlightBundle](https://gitlab.tugraz.at/dbp/greenlight/dbp-relay-greenlight-bundle) to create permits for the Covid19 certificate evaluation process\n- For more information please visit the [Greenlight project documentation](https://dbp-demo.tugraz.at/site/software/greenlight.html)\n\n## Local development\n\n```bash\n# get the source\ngit clone git@github.com:digital-blueprint/greenlight-frontend.git\ncd greenlight\ngit submodule update --init\n\n# install dependencies\nyarn install\n\n# constantly build dist/bundle.js and run a local web-server on port 8001 \nyarn run watch\n\n# run tests\nyarn test\n```\n\nJump to <https://localhost:8001>, and you should get a Single Sign On login page.\n\n## Using this app as pre-built package\n\n### Install app\n\nIf you want to install the dbp greenlight app in a new folder `greenlight-app` you can call:\n\n```bash\nnpx @digital-blueprint/cli@latest install-app greenlight greenlight-app /\n```\n\n**Warning:** There may be issues when you run these commands as root user, best use a non-root user, like `www-data`.\nTo do this you can for example open a shell with `runuser -u www-data -- bash`.\n\nAfterwards you can point your Apache web-server to `greenlight-app/public`.\n\nMake sure you are allowing `.htaccess` files in your Apache configuration.\n\nAlso make sure to add all of your resources you are using (like your API and Keycloak servers) to the\n`Content-Security-Policy` in your `greenlight-app/public/.htaccess`, so the browser allows access to those sites.\n\nYou can also use this app directly from the [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/greenlight-app/)\nfor example like this: [dbp-greenlight/index.html](https://github.com/digital-blueprint/greenlight-app/tree/main/examples/dbp-greenlight/index.html)\n\nNote that you will need a Keycloak server along with a client id for the domain you are running this html on.\n\n### Update app\n\nIf you want to update the dbp greenlight app in the current folder you can call:\n\n```bash\nnpx @digital-blueprint/cli@latest update-app greenlight\n```\n\n**Warning:** After the update the trust data has to be restored, see below.\n\n**Warning:** There may be issues when you run these commands as root user, best use a non-root user, like `www-data`.\nTo do this you can for example open a shell with `runuser -u www-data -- bash`.\n\n## Cron job for Updating the Trust Data\n\nThe app depends on the official trust list, value sets and business rules which\nare provided via\nhttps://github.com/Federal-Ministry-of-Health-AT/green-pass-overview\n\nIn addition it depends on a set of business rules which are maintained at\nhttps://github.com/digital-blueprint/dcc-at-rule-sets\n\nBoth data sets need to be updated regularly via a cron job.\n\n```\n0    *    *    *    *     /<my-path>/greenlight-app/public/app/update.sh TUGRAZ\n```\n\nThe first argument passed to update.sh defines the rule set which should be\ndownloaded. The script depends on `curl` being installed.\n\nYou will find the certificates downloaded in `/<my-path>/greenlight-app/public/app/local/@digital-blueprint/greenlight-app/dgc-trust/prod`.\n\nNOTE: Failing to update the data will result in signatures expiring after 2 days\nwhich breaks the core functionality of the app.\n\n## Activities\n\nThis app has the following activities:\n- `dbp-acquire-3g-ticket`\n- `dbp-show-active-tickets`\n- `dbp-show-reference-ticket`\n\nYou can find the documentation of these activities in the [greenlight activities documentation](https://github.com/digital-blueprint/greenlight-app/tree/main/src).\n\n## Adapt app\n\n### Functionality\n\nYou can add multiple attributes to the `<dbp-greenlight>` tag.\n\n| attribute name | value | Link to description |\n|----------------|-------| ------------|\n| `provider-root` | Boolean | [app-shell](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/app-shell#attributes) |\n| `lang`         | String | [language-select](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/language-select#attributes) | \n| `entry-point-url` | String | [app-shell](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/app-shell#attributes) |\n| `keycloak-config` | Object | [app-shell](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/app-shell#attributes) |\n| `base-path` | String | [app-shell](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/app-shell#attributes) |\n| `src` | String | [app-shell](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/app-shell#attributes) |\n| `html-overrides` | String | [common](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/common#overriding-slots-in-nested-web-components) |\n| `themes` | Array | [theme-switcher](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/theme-switcher#themes-attribute) |\n| `darkModeThemeOverride` | String | [theme-switcher](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/theme-switcher#themes-attribute) |\n| `gp-search-hash-string` | String | [greenlight activities](https://github.com/digital-blueprint/greenlight-app/tree/main/src) |\n| `gp-search-self-test-string-array` | String | [greenlight activities](https://github.com/digital-blueprint/greenlight-app/tree/main/src) |\n| `gp-self-test-valid` | Boolean | [greenlight activities](https://github.com/digital-blueprint/greenlight-app/tree/main/src) |\n| `ticket-types` | Object | [greenlight activities](https://github.com/digital-blueprint/greenlight-app/tree/main/src#shared-attributes) |\n| `show-preselected` | Boolean | [greenlight activities](https://github.com/digital-blueprint/greenlight-app/tree/main/src) |\n| `preselected-option` | String | [greenlight activities](https://github.com/digital-blueprint/greenlight-app/tree/main/src) |\n| `file-handling-enabled-targets` | String | [file-handling](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/file-handling#attributes) |\n| `nextcloud-web-app-password-url` | String | [file-handling](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/file-handling#attributes) |\n| `nextcloud-web-dav-url` | String | [file-handling](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/file-handling#attributes) |\n| `nextcloud-file-url` | String | [file-handling](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/file-handling#attributes) |\n| `nextcloud-auth-info` | String | [file-handling](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/file-handling#attributes) |\n| `nextcloud-name` | String | [file-handling](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/file-handling#attributes) |\n\n#### Mandatory attributes\n\nIf you are not using the `provider-root` attribute to \"terminate\" all provider attributes\nyou need to manually add these attributes so that the topic will work properly:\n\n```html\n<dbp-greenlight\n    auth\n    requested-login-status\n    analytics-event\n>\n</dbp-greenlight>\n```\n\n### Design\n\nFor frontend design customizations, such as logo, colors, font, favicon, and more, take a look at the [theming documentation](https://dbp-demo.tugraz.at/dev-guide/frontend/theming/).\n\n## \"dbp-greenlight\" slots\n\nThese are common slots for the app-shell. You can find the documentation of these slots in the [app-shell documentation](https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/app-shell).\nFor the app specific slots take a look at the [greenlight activities](https://github.com/digital-blueprint/greenlight-app/tree/main/src).\n\n","readmeFilename":"README.md"}