Compare commits

..
5 changed files with 211 additions and 187 deletions
@@ -22,7 +22,7 @@ export default {
},
computed: {
pickerWidgets() {
return this.widgets.filter(widget => widget.allowed);
return this.widgets.filter(widget => widget.allowed).map(widget => ({ ...widget, permitted: true }));
},
sizeLimits() {
return Object.fromEntries(this.widgets.map(({ setup, widget_id: type }) => {
@@ -6,10 +6,16 @@ export default {
BsModal,
WidgetIcon,
},
props: [
"widgets",
"hiddenWidgets"
],
props: {
widgets: {
type: [ Array, null ],
required: true
},
hiddenWidgets: {
type: Array,
default: []
}
},
data: () => ({
callbacks: {}
}),
+34
View File
@@ -0,0 +1,34 @@
function loadCss(path) {
if (!document.head) {
return new Promise((resolve, reject) => {
window.addEventListener('load', () => loadCss(path).then(resolve).catch(reject));
});
}
if (path.match(/^\/[^\/]/))
path = FHC_JS_DATA_STORAGE_OBJECT.app_root.replace(/\/$/, "") + path;
if (document.querySelector('link[href="' + path + '"]'))
return Promise.resolve();
return new Promise((resolve, reject) => {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.onload = resolve;
link.onerror = reject;
link.href = path;
document.head.append(link);
});
}
export {
loadCss,
};
export default {
loadCss,
};
+4
View File
@@ -62,3 +62,7 @@ function splitWordsInCamelCase(string) {
splitWords.push(string.slice(lastUpperCaseLetterIndex));
return splitWords;
}
export function isString(str) {
return typeof str === 'string' || str instanceof String;
}
+162 -182
View File
@@ -2153,6 +2153,46 @@ $phrases = array(
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'aborted_by_user',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Abbruch durch Benutzer',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Aborted by the user',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'no_preview_available',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Keine Vorschau verfügbar',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'No preview available',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'anrechnung',
@@ -67370,6 +67410,128 @@ I have been informed that I am under no obligation to consent to the transmissio
)
),
// ### Phrases Dashboard Studstatus Widget END
// ### Phrases Dashboard OpenProject Widget START
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'widget_openproject_login',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'In OpenProject anmelden',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Login to OpenProject',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'widget_openproject_title_listWpOpen',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Offene WorkPackages',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Open WorkPackages',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'widget_openproject_title_listWpOverdue',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Überfällige WorkPackages',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Overdue WorkPackages',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'widget_openproject_title_listWpNew',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Neue WorkPackages',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'New WorkPackages',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'widget_openproject_title_listMentioned',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Erwähnungen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Mentions',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'dashboard',
'phrase' => 'widget_openproject_select_endpoint',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Anzeigen:',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Show:',
'description' => '',
'insertvon' => 'system'
)
)
),
// ### Phrases Dashboard OpenProject Widget END
//******************* CORE/reservierung
array(
'app' => 'core',
@@ -68199,188 +68361,6 @@ I have been informed that I am under no obligation to consent to the transmissio
)
),
// Zeitsperren Sancho Subjects end
// DasZeit begin
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'id',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Id',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'id',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'personalnummer',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Personalnummer',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'personal number',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'vorname',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Vorname',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'first name',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'nachname',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Nachname',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'last name',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'email',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'E-Mail',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'email',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'abteilung',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Abteilung',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'department',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'mitarbeiterSync',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'MitarbeiterSync',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'EmployeeSync',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'synchronisieren',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Synchronisieren',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Synchronise',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'daszeit',
'category' => 'dasZeit',
'phrase' => 'mitarbeiterNichtUebertragen',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'MitarbeiterIn noch nicht übertragen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Employee not synced yet',
'description' => '',
'insertvon' => 'system'
)
)
)
// DasZeit end
);