GithubHelp home page GithubHelp logo

digital-blueprint / formalize-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 4.05 MB

Management of form entries that have been created via external systems. - ๐ŸŒŽ Development: https://dbp-dev.tugraz.at/apps/formalize, ๐ŸŒŽ Demo: https://dbp-demo.tugraz.at/apps/formalize, ๐ŸŒŽ Production: https://formulare.tugraz.at

License: GNU Lesser General Public License v2.1

HTML 3.73% JavaScript 85.49% EJS 10.78%
dbp digital-blueprint formalize

formalize-app's Introduction

Formalize Application

GitHub Repository | npmjs package | Unpkg CDN | Formalize Bundle

Build, Test and Publish

Management of form entries that have been created via external systems.

Prerequisites

Local development

# get the source
git clone [email protected]:digital-blueprint/formalize-app.git
cd formalize-app
git submodule update --init

# install dependencies
npm install

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

# constantly build dist/bundle.js and run a local web-server on port 8001 using a custom assets directory assets_local/
npm run watch-local

# run tests
npm test

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

Using this app as pre-built package

Install app

If you want to install the dbp formalize app in a new folder formalize-app you can call:

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

Warning: There may be issues when you run these commands as root user, best use a non-root user, like www-data. To do this you can for example open a shell with runuser -u www-data -- bash.

Afterwards you can point your Apache web-server to formalize-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 formalize-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-formalize/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 formalize app in the current folder you can call:

npx @digital-blueprint/cli update-app formalize

Warning: There may be issues when you run these commands as root user, best use a non-root user, like www-data. To do this you can for example open a shell with runuser -u www-data -- bash.

Activities

This app has the following activity:

  • dbp-show-registrations

You can find the documentation of the activity in the formalize activities documentation.

Adapt app

Functionality

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

attribute name value description
provider-root Boolean app-shell
lang String language-select
entry-point-url String app-shell
keycloak-config Object app-shell
base-path String app-shell
src String app-shell
html-overrides String common
themes Array theme-switcher
darkModeThemeOverride String theme-switcher

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-formalize
    auth
    requested-login-status
    analytics-event
>
</dbp-formalize>

Design

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

"dbp-formalize" 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 formalize activities.

Notice

We are using autogenerated table header for creating the submission tables.

A get query is made to dbp-relay. This returns a json. This json contains various data of the previous posted submission.

To post a form to the api, take a look at: operations-Formalize-postFormalizeSubmissionCollection. This post contains the name of the form "form" and the data of the form "dataFeedElement". the data must be a valid json as a string, i.e. quotation marks must be escaped with a "". The data keys of forms with the same "form" name must be consistent, otherwise the new keys are not displayed and no data would be displayed in the old key table header.

formalize-app's People

Contributors

bitsofshiva avatar lazka avatar manuelkocher avatar pbek avatar renovate[bot] avatar ruxandragherman avatar tobiasgv avatar toegl avatar tsteinwen13 avatar zsuffad avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

formalize-app's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Lock file maintenance

Warning

Renovate failed to look up the following dependencies: Failed to look up npm package @dbp-toolkit/dev-utils.

Files affected: package.json


Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/build-test-publish.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/cache v4
  • actions/checkout v4
  • actions/setup-node v4
  • digital-blueprint/gitlab-pipeline-trigger-action v1
npm
package.json
  • @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
  • @fontsource/nunito-sans ^5.0.0
  • @open-wc/scoped-elements ^2.1.0
  • @tugraz/font-source-sans-pro ^0.2.4
  • @tugraz/web-components ^0.3.6
  • @webcomponents/scoped-custom-element-registry ^0.0.9
  • i18next ^23.0.0
  • jspdf ^2.5.1
  • jspdf-autotable ^3.5.23
  • lit ^2.7.0 || ^3.0.0
  • tabulator-tables ^6.0.0
  • xlsx ^0.18.2
  • xss ^1.0.11
  • @babel/core ^7.10.3
  • @babel/preset-env ^7.10.3
  • @dbp-toolkit/dev-utils ^0.1.0
  • @rollup/plugin-babel ^6.0.0
  • @rollup/plugin-commonjs ^26.0.0
  • @rollup/plugin-json ^6.0.0
  • @rollup/plugin-node-resolve ^15.0.0
  • @rollup/plugin-terser ^0.4.0
  • @rollup/plugin-url ^8.0.0
  • can-npm-publish ^1.3.6
  • chai ^5.0.0
  • eslint ^9.1.0
  • eslint-plugin-jsdoc ^48.0.0
  • glob ^11.0.0
  • globals ^15.3.0
  • i18next-parser ^9.0.0
  • karma ^6.0.0
  • karma-chrome-launcher ^3.1.0
  • karma-firefox-launcher ^2.1.0
  • karma-mocha ^2.0.1
  • mocha ^10.0.0
  • playwright ^1.34.0
  • playwright-core ^1.20.2
  • prettier ^3.0.0
  • rollup ^4.0.0
  • 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-serve ^3.0.0
  • node >=20.0.0
  • npm >=7.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.