mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
added views
This commit is contained in:
2952
views/public/Diagram.svg
Normal file
2952
views/public/Diagram.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 117 KiB |
9185
views/public/css/remixicon.css
Normal file
9185
views/public/css/remixicon.css
Normal file
File diff suppressed because it is too large
Load Diff
BIN
views/public/favicon.png
Normal file
BIN
views/public/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
views/public/fonts/Merriweather-Black.ttf
Normal file
BIN
views/public/fonts/Merriweather-Black.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/Merriweather-BlackItalic.ttf
Normal file
BIN
views/public/fonts/Merriweather-BlackItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/Merriweather-Bold.ttf
Normal file
BIN
views/public/fonts/Merriweather-Bold.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/Merriweather-BoldItalic.ttf
Normal file
BIN
views/public/fonts/Merriweather-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/Merriweather-Italic.ttf
Normal file
BIN
views/public/fonts/Merriweather-Italic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/Merriweather-Light.ttf
Normal file
BIN
views/public/fonts/Merriweather-Light.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/Merriweather-LightItalic.ttf
Normal file
BIN
views/public/fonts/Merriweather-LightItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/Merriweather-Regular.ttf
Normal file
BIN
views/public/fonts/Merriweather-Regular.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-Bold.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-Bold.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-BoldItalic.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-ExtraBold.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-ExtraBoldItalic.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-ExtraBoldItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-Italic.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-Italic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-Light.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-Light.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-LightItalic.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-LightItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-Medium.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-Medium.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-MediumItalic.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-Regular.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-Regular.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-SemiBold.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-SemiBold.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/MerriweatherSans-SemiBoldItalic.ttf
Normal file
BIN
views/public/fonts/MerriweatherSans-SemiBoldItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/Rancho-Regular.ttf
Normal file
BIN
views/public/fonts/Rancho-Regular.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-Black.ttf
Normal file
BIN
views/public/fonts/SourceSans3-Black.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-BlackItalic.ttf
Normal file
BIN
views/public/fonts/SourceSans3-BlackItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-Bold.ttf
Normal file
BIN
views/public/fonts/SourceSans3-Bold.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-BoldItalic.ttf
Normal file
BIN
views/public/fonts/SourceSans3-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-ExtraBold.ttf
Normal file
BIN
views/public/fonts/SourceSans3-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-ExtraBoldItalic.ttf
Normal file
BIN
views/public/fonts/SourceSans3-ExtraBoldItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-ExtraLight.ttf
Normal file
BIN
views/public/fonts/SourceSans3-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-ExtraLightItalic.ttf
Normal file
BIN
views/public/fonts/SourceSans3-ExtraLightItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-Italic.ttf
Normal file
BIN
views/public/fonts/SourceSans3-Italic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-Light.ttf
Normal file
BIN
views/public/fonts/SourceSans3-Light.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-LightItalic.ttf
Normal file
BIN
views/public/fonts/SourceSans3-LightItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-Medium.ttf
Normal file
BIN
views/public/fonts/SourceSans3-Medium.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-MediumItalic.ttf
Normal file
BIN
views/public/fonts/SourceSans3-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-Regular.ttf
Normal file
BIN
views/public/fonts/SourceSans3-Regular.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-SemiBold.ttf
Normal file
BIN
views/public/fonts/SourceSans3-SemiBold.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/SourceSans3-SemiBoldItalic.ttf
Normal file
BIN
views/public/fonts/SourceSans3-SemiBoldItalic.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/remixicon.eot
Normal file
BIN
views/public/fonts/remixicon.eot
Normal file
Binary file not shown.
2291
views/public/fonts/remixicon.svg
Normal file
2291
views/public/fonts/remixicon.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 1.1 MiB |
BIN
views/public/fonts/remixicon.ttf
Normal file
BIN
views/public/fonts/remixicon.ttf
Normal file
Binary file not shown.
BIN
views/public/fonts/remixicon.woff
Normal file
BIN
views/public/fonts/remixicon.woff
Normal file
Binary file not shown.
BIN
views/public/fonts/remixicon.woff2
Normal file
BIN
views/public/fonts/remixicon.woff2
Normal file
Binary file not shown.
5
views/public/js/alpine.min.js
vendored
Normal file
5
views/public/js/alpine.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
130
views/public/js/htmx-response-targets.js
Normal file
130
views/public/js/htmx-response-targets.js
Normal file
@@ -0,0 +1,130 @@
|
||||
(function(){
|
||||
|
||||
/** @type {import("../htmx").HtmxInternalApi} */
|
||||
var api;
|
||||
|
||||
var attrPrefix = 'hx-target-';
|
||||
|
||||
// IE11 doesn't support string.startsWith
|
||||
function startsWith(str, prefix) {
|
||||
return str.substring(0, prefix.length) === prefix
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {HTMLElement} elt
|
||||
* @param {number} respCode
|
||||
* @returns {HTMLElement | null}
|
||||
*/
|
||||
function getRespCodeTarget(elt, respCodeNumber) {
|
||||
if (!elt || !respCodeNumber) return null;
|
||||
|
||||
var respCode = respCodeNumber.toString();
|
||||
|
||||
// '*' is the original syntax, as the obvious character for a wildcard.
|
||||
// The 'x' alternative was added for maximum compatibility with HTML
|
||||
// templating engines, due to ambiguity around which characters are
|
||||
// supported in HTML attributes.
|
||||
//
|
||||
// Start with the most specific possible attribute and generalize from
|
||||
// there.
|
||||
var attrPossibilities = [
|
||||
respCode,
|
||||
|
||||
respCode.substr(0, 2) + '*',
|
||||
respCode.substr(0, 2) + 'x',
|
||||
|
||||
respCode.substr(0, 1) + '*',
|
||||
respCode.substr(0, 1) + 'x',
|
||||
respCode.substr(0, 1) + '**',
|
||||
respCode.substr(0, 1) + 'xx',
|
||||
|
||||
'*',
|
||||
'x',
|
||||
'***',
|
||||
'xxx',
|
||||
];
|
||||
if (startsWith(respCode, '4') || startsWith(respCode, '5')) {
|
||||
attrPossibilities.push('error');
|
||||
}
|
||||
|
||||
for (var i = 0; i < attrPossibilities.length; i++) {
|
||||
var attr = attrPrefix + attrPossibilities[i];
|
||||
var attrValue = api.getClosestAttributeValue(elt, attr);
|
||||
if (attrValue) {
|
||||
if (attrValue === "this") {
|
||||
return api.findThisElement(elt, attr);
|
||||
} else {
|
||||
return api.querySelectorExt(elt, attrValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/** @param {Event} evt */
|
||||
function handleErrorFlag(evt) {
|
||||
if (evt.detail.isError) {
|
||||
if (htmx.config.responseTargetUnsetsError) {
|
||||
evt.detail.isError = false;
|
||||
}
|
||||
} else if (htmx.config.responseTargetSetsError) {
|
||||
evt.detail.isError = true;
|
||||
}
|
||||
}
|
||||
|
||||
htmx.defineExtension('response-targets', {
|
||||
|
||||
/** @param {import("../htmx").HtmxInternalApi} apiRef */
|
||||
init: function (apiRef) {
|
||||
api = apiRef;
|
||||
|
||||
if (htmx.config.responseTargetUnsetsError === undefined) {
|
||||
htmx.config.responseTargetUnsetsError = true;
|
||||
}
|
||||
if (htmx.config.responseTargetSetsError === undefined) {
|
||||
htmx.config.responseTargetSetsError = false;
|
||||
}
|
||||
if (htmx.config.responseTargetPrefersExisting === undefined) {
|
||||
htmx.config.responseTargetPrefersExisting = false;
|
||||
}
|
||||
if (htmx.config.responseTargetPrefersRetargetHeader === undefined) {
|
||||
htmx.config.responseTargetPrefersRetargetHeader = true;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {Event} evt
|
||||
*/
|
||||
onEvent: function (name, evt) {
|
||||
if (name === "htmx:beforeSwap" &&
|
||||
evt.detail.xhr &&
|
||||
evt.detail.xhr.status !== 200) {
|
||||
if (evt.detail.target) {
|
||||
if (htmx.config.responseTargetPrefersExisting) {
|
||||
evt.detail.shouldSwap = true;
|
||||
handleErrorFlag(evt);
|
||||
return true;
|
||||
}
|
||||
if (htmx.config.responseTargetPrefersRetargetHeader &&
|
||||
evt.detail.xhr.getAllResponseHeaders().match(/HX-Retarget:/i)) {
|
||||
evt.detail.shouldSwap = true;
|
||||
handleErrorFlag(evt);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (!evt.detail.requestConfig) {
|
||||
return true;
|
||||
}
|
||||
var target = getRespCodeTarget(evt.detail.requestConfig.elt, evt.detail.xhr.status);
|
||||
if (target) {
|
||||
handleErrorFlag(evt);
|
||||
evt.detail.shouldSwap = true;
|
||||
evt.detail.target = target;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
1
views/public/js/htmx.min.js
vendored
Normal file
1
views/public/js/htmx.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user