Giter Site home page Giter Site logo

digital-blueprint / cabinet-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 620 KB

Student record management application

License: GNU Lesser General Public License v2.1

Dockerfile 1.13% Makefile 0.91% HTML 7.05% EJS 25.34% JavaScript 64.93% Shell 0.32% Nix 0.33%
dbp-relay digital-blueprint

cabinet-app's Introduction

Cabinet Application

GitHub Repository | npmjs package | Unpkg CDN | Cabinet Bundle

Build and Test

This is an application for managing student records.

Prerequisites

Local development

# get the source
git clone [email protected]:digital-blueprint/cabinet-app.git
cd cabinet-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_custom/
npm run watch-custom

# run tests
npm test

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

By default, the application is built using the assets in assets/. However, custom assets can also be used to build the application. The custom assets can be added to the directory assets_custom/dbp-cabinet/assets/. This allows developers to easily develop and build the application for different environments.

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

Use app via Docker

docker-compose.yml

version: '3'
services:
  web:
    image: ghcr.io/digital-blueprint/cabinet-app:latest
    restart: always
    ports:
      - "8000:80"

Using this app as pre-built package

Install app

If you want to install the dbp cabinet app in a new folder cabinet-app with a path prefix / you can call:

npx @digital-blueprint/cli@latest install-app cabinet cabinet-app /

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

npx @digital-blueprint/cli@latest update-app cabinet

Using a single activity as pre-built package

You can also use a single activity directly from the Unpkg CDN for example the dbp-qualified-cabinet-pdf-upload activity to qualifiedly sign PDF documents like this: dbp-qualified-cabinet-pdf-upload/index.html

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

Activities

This app has the following activities:

  • dbp-dd-activity
  • dbp-qualified-signature-pdf-upload
  • dbp-official-signature-pdf-upload

You can find the documentation of these activities in the qualified cabinet activities documentation.

Adapt app

Functionality

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

attribute name value Link to 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-cabinet
        auth
        requested-login-status
        analytics-event
        initial-file-handling-state
        clipboard-files
>
</dbp-cabinet>

Design

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

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

cabinet-app's People

Contributors

pbek avatar lazka avatar renovate[bot] avatar

Watchers

 avatar Eugen Neuber avatar zsuffa david avatar

cabinet-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.

  • fix(deps): update all non-major dependencies (@dbp-toolkit/pdf-viewer, @rollup/plugin-commonjs, glob, instantsearch.css, instantsearch.js, rollup)

Detected dependencies

github-actions
.github/workflows/build-deploy-prod-image.yml
  • actions/checkout v4
  • docker/metadata-action v5
  • docker/login-action v3
  • docker/build-push-action v5
.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/file-handling ^0.3.0
  • @dbp-toolkit/language-select ^0.3.0
  • @dbp-toolkit/notification ^0.3.0
  • @dbp-toolkit/pdf-viewer ^0.0.7
  • @dbp-toolkit/person-select ^0.3.3
  • @digital-blueprint/dispatch-app ^1.2.7
  • @digital-blueprint/esign-app ^2.1.5
  • @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
  • instantsearch.css ^8.1.0
  • instantsearch.js ^4.65.0
  • lit ^2.7.0 || ^3.0.0
  • pdfjs-dist >=2.12.313 <3.0.0 || >=3.0.0 <3.1.0
  • typesense-instantsearch-adapter ^2.8.0
  • @babel/core ^7.10.3
  • @babel/preset-env ^7.10.3
  • @eslint/js ^9.2.0
  • @rollup/plugin-babel ^6.0.0
  • @rollup/plugin-commonjs ^25.0.0
  • @rollup/plugin-json ^6.0.0
  • @rollup/plugin-node-resolve ^15.0.0
  • @rollup/plugin-replace ^5.0.0
  • @rollup/plugin-terser ^0.4.0
  • @rollup/plugin-url ^8.0.0
  • can-npm-publish ^1.3.3
  • chai ^5.0.0
  • eslint ^9
  • eslint-plugin-jsdoc ^48.0.0
  • glob ^10.0.0
  • globals ^15.1.0
  • i18next-parser ^8.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.21.0
  • 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.1
  • rollup-plugin-serve ^2.0.0
  • selfsigned ^2.0.0
  • node >=18.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.