Skip to content

Commit

Permalink
Merge pull request #205 from H2-invent/feature/team-hierarchy
Browse files Browse the repository at this point in the history
Feature/team hierarchy
  • Loading branch information
holzi1005 authored Feb 28, 2024
2 parents 7eb12d9 + 2db64f4 commit d7b7cfd
Show file tree
Hide file tree
Showing 151 changed files with 10,976 additions and 1,993 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ In Kooperation mit der [Professur "Datenschutz und Compliance"](https://www.unib

Durch die Mitarbeitenden von @verdigado wurde der VVT Assistent und die Vererbung implemntiert.

# Dev Setup

1. Abhängigkeiten installieren mit `composer install` und `npm install`
1. Starte docker container für Datenbank und Keycloak `docker compose -f docker-compose.dev.yml up -d`
1. Mit Account `admin` und Passwort `admin` im Keycloak anmelden
1. Unter `http://localhost:8080/admin/master/console/#/opendatenschutzcenter/users/add-user` Nutzer für open-datenschutzcenter realm anlegen
1. Passwort für neuen Nutzer festlegen und die beiden opendatenschutzcenter client roles `uma_protection` und `odc-super-admin` zuweisen
1. Führe Migrationen der Datenbank aus `symfony console doctrine:migrations:migrate`
1. Starte den dev Server mit `symfony serve -d`

# Lizenz
Die aktuelle Version von Open Datenschutzcenter wird unter der AGPL-3.0 License bereitgestellt. Weitere Informationen finden Sie in der LICENSE Datei in diesem Repo.
Copyright (c) 2020 H2 invent
135 changes: 135 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*
* Welcome to your app's main JavaScript file!
*
*/
import '../css/app.css';


import $ from 'jquery';
import 'datatables.net-dt';
import 'summernote/dist/summernote-bs4';
import * as h2Button from 'h2-invent-apps';
import {initFreeFields} from './freeField';

global.$ = global.jQuery = $;

import ('jszip');
import('datatables.net');
import ('datatables.net-buttons-dt');
require('datatables.net-buttons/js/buttons.flash.js')(window, $);
require('datatables.net-buttons/js/buttons.html5.js')(window, $);
import('moment');
import('bootstrap-select');

$(document).ready(function () {
h2Button.init("https://www3.h2-invent.com/appsv2.json");
setTimeout(function () {
$('#snackbar').addClass('show');
setTimeout(function () {
$('#snackbar').removeClass('show');
}, 3000);
}, 500);

$('#dismiss, .overlay').on('click', function () {
// hide sidebar
$('#sidebar').removeClass('active');
// hide overlay
$('.overlay').removeClass('active');
});

$('#sidebarCollapse').on('click', function () {
// open sidebar
$('#sidebar').addClass('active');
// fade in the overlay
$('.overlay').addClass('active');
$('.collapse.in').toggleClass('in');
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
});

$('#data-table').DataTable({
dom: 'Bfrtip',
buttons: [
{
extend: 'csv',
exportOptions: {
columns: ':not(.hide-in-export)'
}
},
{
extend: 'excel',
exportOptions: {
columns: ':not(.hide-in-export)'
}
}
]
});

$('.data-table').DataTable({
dom: 'Bfrtip',
buttons: [
{
extend: 'csv',
exportOptions: {
columns: ':not(.hide-in-export)'
}
},
{
extend: 'excel',
exportOptions: {
columns: ':not(.hide-in-export)'
}
}
]
});

$('.summernote').summernote({
placeholder: 'Gebe hier den Text ein',
tabsize: 2,
height: 200,
focus: false,
lang: 'de-DE',
toolbar: [
['style', ['pre']],
['font', ['bold', 'underline', 'clear']],
['color', []],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']],
['insert', ['link']],
['view', ['fullscreen']]
],
callbacks: {
onPaste: function (e) {
var bufferText = ((e.originalEvent || e).clipboardData || window.clipboardData).getData('Text');
e.preventDefault();
document.execCommand('insertText', false, bufferText);
}
}
});

$('.summernote-disable').each(function () {
$(this).summernote('disable');
});

$('.checkboxSelect').on('change', function () {
if ($(this).prop("checked") === true) {
$('.sendButton').removeClass('disabled');
} else if ($(this).prop("checked") === false) {
$('.sendButton').addClass('disabled');
}
});

initFreeFields();
});

$(document).on('click', '.loadContent', function (e) {
e.preventDefault();
var url = $(this).attr('href');
$('#loadContentModal').load(url, function () {
$('#loadContentModal ').modal('show');

});
});

$(".clickable-row").click(function () {
window.location = $(this).data("href");
});
2 changes: 1 addition & 1 deletion assets/styles/tailmater.css
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ trix-editor ol, .editor-output ol, ol.initial {
}

ol.item-history {
@apply text-sm card-outlined w-full max-w-2xl;
@apply text-sm card-outlined w-full w-full ;
list-style: decimal;
list-style-position: outside;
}
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.10",
"knplabs/knp-menu-bundle": "^3.2",
"gedmo/doctrine-extensions": "^3.11",
"knpuniversity/oauth2-client-bundle": "^2.5",
"laminas/laminas-code": "^4.5",
"laminas/laminas-escaper": "^2.6",
Expand All @@ -23,6 +24,7 @@
"phpstan/phpdoc-parser": "^1.2",
"sensio/framework-extra-bundle": "^6.2",
"stevenmaguire/oauth2-keycloak": "^2.2",
"stof/doctrine-extensions-bundle": "^1.7",
"symfony/apache-pack": "^1.0",
"symfony/asset": "6.2.*",
"symfony/console": "6.2.*",
Expand Down
Loading

0 comments on commit d7b7cfd

Please sign in to comment.