Adds gallery / carousel for app images
26
_includes/app_carousel.html
Normal file
@ -0,0 +1,26 @@
|
||||
<section id='image-carousel' class='splide'>
|
||||
<div class='splide__track'>
|
||||
<ul class='splide__list' style='list-style-type: none; list-style: none;'>
|
||||
{% for image in site.static_files %}
|
||||
{% if image.path contains 'appgallery/' %}
|
||||
<li class='splide__slide'>
|
||||
<img src="{{ image.path | relative_url }}" alt="" />
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
document.addEventListener( 'DOMContentLoaded', function () {
|
||||
new Splide('#image-carousel', {
|
||||
type: 'loop',
|
||||
perPage: 3,
|
||||
autoPlay: true,
|
||||
pagination: false,
|
||||
// pagination: false,
|
||||
// focus: 'center',
|
||||
}).mount();
|
||||
});
|
||||
</script>
|
@ -2,9 +2,12 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" href="{{ '/assets/splide/css/splide.min.css' | relative_url }}">
|
||||
<link rel="stylesheet" href="{{ '/assets/index.css' | relative_url }}">
|
||||
<link rel="shortcut icon" type="image/png" href="{{ '/assets/icon/favicon.ico' | relative_url }}">
|
||||
|
||||
<script src="{{ '/assets/splide/js/splide.min.js' | relative_url }}"></script>
|
||||
|
||||
<title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
|
||||
<meta itemprop="description" name="description"
|
||||
content="{% if page.description %}{{ page.description | truncate: 160 }}{% else %}{{ site.description | truncate: 160 }}{% endif %}" />
|
||||
|
BIN
assets/appgallery/screen_1.png
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
assets/appgallery/screen_10.jpg
Normal file
After Width: | Height: | Size: 180 KiB |
BIN
assets/appgallery/screen_11.jpg
Normal file
After Width: | Height: | Size: 204 KiB |
BIN
assets/appgallery/screen_12.jpg
Normal file
After Width: | Height: | Size: 138 KiB |
BIN
assets/appgallery/screen_13.jpg
Normal file
After Width: | Height: | Size: 177 KiB |
BIN
assets/appgallery/screen_14.jpg
Normal file
After Width: | Height: | Size: 239 KiB |
BIN
assets/appgallery/screen_15.png
Normal file
After Width: | Height: | Size: 154 KiB |
BIN
assets/appgallery/screen_2.jpg
Normal file
After Width: | Height: | Size: 369 KiB |
BIN
assets/appgallery/screen_3.jpg
Normal file
After Width: | Height: | Size: 169 KiB |
BIN
assets/appgallery/screen_4.jpg
Normal file
After Width: | Height: | Size: 263 KiB |
BIN
assets/appgallery/screen_5.jpg
Normal file
After Width: | Height: | Size: 177 KiB |
BIN
assets/appgallery/screen_6.jpg
Normal file
After Width: | Height: | Size: 205 KiB |
BIN
assets/appgallery/screen_7.jpg
Normal file
After Width: | Height: | Size: 205 KiB |
BIN
assets/appgallery/screen_8.jpg
Normal file
After Width: | Height: | Size: 1015 KiB |
BIN
assets/appgallery/screen_9.jpg
Normal file
After Width: | Height: | Size: 204 KiB |
1
assets/splide/css/splide-core.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list{display:block}.splide__track--fade>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}
|
1
assets/splide/css/splide.min.css
vendored
Normal file
1
assets/splide/css/themes/splide-default.min.css
vendored
Normal file
1
assets/splide/css/themes/splide-sea-green.min.css
vendored
Normal file
1
assets/splide/css/themes/splide-skyblue.min.css
vendored
Normal file
2
assets/splide/js/splide-renderer.min.js
vendored
Normal file
1
assets/splide/js/splide-renderer.min.js.map
Normal file
3721
assets/splide/js/splide.cjs.js
Normal file
3644
assets/splide/js/splide.esm.js
Normal file
3122
assets/splide/js/splide.js
Normal file
2
assets/splide/js/splide.min.js
vendored
Normal file
BIN
assets/splide/js/splide.min.js.gz
Normal file
1
assets/splide/js/splide.min.js.map
Normal file
379
assets/splide/js/utils/splide-utils.cjs.js
Normal file
@ -0,0 +1,379 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
function empty(array) {
|
||||
array.length = 0;
|
||||
}
|
||||
|
||||
function slice(arrayLike, start, end) {
|
||||
return Array.prototype.slice.call(arrayLike, start, end);
|
||||
}
|
||||
|
||||
function find(arrayLike, predicate) {
|
||||
return slice(arrayLike).filter(predicate)[0];
|
||||
}
|
||||
|
||||
function apply(func) {
|
||||
return func.bind(null, ...slice(arguments, 1));
|
||||
}
|
||||
|
||||
const nextTick = setTimeout;
|
||||
|
||||
const noop = () => {
|
||||
};
|
||||
|
||||
function raf(func) {
|
||||
return requestAnimationFrame(func);
|
||||
}
|
||||
|
||||
function typeOf(type, subject) {
|
||||
return typeof subject === type;
|
||||
}
|
||||
function isObject(subject) {
|
||||
return !isNull(subject) && typeOf("object", subject);
|
||||
}
|
||||
const isArray = Array.isArray;
|
||||
const isFunction = apply(typeOf, "function");
|
||||
const isString = apply(typeOf, "string");
|
||||
const isUndefined = apply(typeOf, "undefined");
|
||||
function isNull(subject) {
|
||||
return subject === null;
|
||||
}
|
||||
function isHTMLElement(subject) {
|
||||
return subject instanceof HTMLElement;
|
||||
}
|
||||
function isHTMLButtonElement(subject) {
|
||||
return subject instanceof HTMLButtonElement;
|
||||
}
|
||||
|
||||
function toArray(value) {
|
||||
return isArray(value) ? value : [value];
|
||||
}
|
||||
|
||||
function forEach(values, iteratee) {
|
||||
toArray(values).forEach(iteratee);
|
||||
}
|
||||
|
||||
function includes(array, value) {
|
||||
return array.indexOf(value) > -1;
|
||||
}
|
||||
|
||||
function push(array, items) {
|
||||
array.push(...toArray(items));
|
||||
return array;
|
||||
}
|
||||
|
||||
function toggleClass(elm, classes, add) {
|
||||
if (elm) {
|
||||
forEach(classes, (name) => {
|
||||
if (name) {
|
||||
elm.classList[add ? "add" : "remove"](name);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function addClass(elm, classes) {
|
||||
toggleClass(elm, isString(classes) ? classes.split(" ") : classes, true);
|
||||
}
|
||||
|
||||
function append(parent, children) {
|
||||
forEach(children, parent.appendChild.bind(parent));
|
||||
}
|
||||
|
||||
function before(nodes, ref) {
|
||||
forEach(nodes, (node) => {
|
||||
const parent = (ref || node).parentNode;
|
||||
if (parent) {
|
||||
parent.insertBefore(node, ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function matches(elm, selector) {
|
||||
return isHTMLElement(elm) && (elm["msMatchesSelector"] || elm.matches).call(elm, selector);
|
||||
}
|
||||
|
||||
function children(parent, selector) {
|
||||
const children2 = parent ? slice(parent.children) : [];
|
||||
return selector ? children2.filter((child) => matches(child, selector)) : children2;
|
||||
}
|
||||
|
||||
function child(parent, selector) {
|
||||
return selector ? children(parent, selector)[0] : parent.firstElementChild;
|
||||
}
|
||||
|
||||
const ownKeys = Object.keys;
|
||||
|
||||
function forOwn(object, iteratee, right) {
|
||||
if (object) {
|
||||
let keys = ownKeys(object);
|
||||
keys = right ? keys.reverse() : keys;
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
if (key !== "__proto__") {
|
||||
if (iteratee(object[key], key) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function assign(object) {
|
||||
slice(arguments, 1).forEach((source) => {
|
||||
forOwn(source, (value, key) => {
|
||||
object[key] = source[key];
|
||||
});
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
function merge(object) {
|
||||
slice(arguments, 1).forEach((source) => {
|
||||
forOwn(source, (value, key) => {
|
||||
if (isArray(value)) {
|
||||
object[key] = value.slice();
|
||||
} else if (isObject(value)) {
|
||||
object[key] = merge({}, isObject(object[key]) ? object[key] : {}, value);
|
||||
} else {
|
||||
object[key] = value;
|
||||
}
|
||||
});
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
function omit(object, keys) {
|
||||
toArray(keys || ownKeys(object)).forEach((key) => {
|
||||
delete object[key];
|
||||
});
|
||||
}
|
||||
|
||||
function removeAttribute(elms, attrs) {
|
||||
forEach(elms, (elm) => {
|
||||
forEach(attrs, (attr) => {
|
||||
elm && elm.removeAttribute(attr);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function setAttribute(elms, attrs, value) {
|
||||
if (isObject(attrs)) {
|
||||
forOwn(attrs, (value2, name) => {
|
||||
setAttribute(elms, name, value2);
|
||||
});
|
||||
} else {
|
||||
forEach(elms, (elm) => {
|
||||
isNull(value) || value === "" ? removeAttribute(elm, attrs) : elm.setAttribute(attrs, String(value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function create(tag, attrs, parent) {
|
||||
const elm = document.createElement(tag);
|
||||
if (attrs) {
|
||||
isString(attrs) ? addClass(elm, attrs) : setAttribute(elm, attrs);
|
||||
}
|
||||
parent && append(parent, elm);
|
||||
return elm;
|
||||
}
|
||||
|
||||
function style(elm, prop, value) {
|
||||
if (isUndefined(value)) {
|
||||
return getComputedStyle(elm)[prop];
|
||||
}
|
||||
if (!isNull(value)) {
|
||||
elm.style[prop] = `${value}`;
|
||||
}
|
||||
}
|
||||
|
||||
function display(elm, display2) {
|
||||
style(elm, "display", display2);
|
||||
}
|
||||
|
||||
function focus(elm) {
|
||||
elm["setActive"] && elm["setActive"]() || elm.focus({ preventScroll: true });
|
||||
}
|
||||
|
||||
function getAttribute(elm, attr) {
|
||||
return elm.getAttribute(attr);
|
||||
}
|
||||
|
||||
function hasClass(elm, className) {
|
||||
return elm && elm.classList.contains(className);
|
||||
}
|
||||
|
||||
function rect(target) {
|
||||
return target.getBoundingClientRect();
|
||||
}
|
||||
|
||||
function remove(nodes) {
|
||||
forEach(nodes, (node) => {
|
||||
if (node && node.parentNode) {
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function measure(parent, value) {
|
||||
if (isString(value)) {
|
||||
const div = create("div", { style: `width: ${value}; position: absolute;` }, parent);
|
||||
value = rect(div).width;
|
||||
remove(div);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function parseHtml(html) {
|
||||
return child(new DOMParser().parseFromString(html, "text/html").body);
|
||||
}
|
||||
|
||||
function prevent(e, stopPropagation) {
|
||||
e.preventDefault();
|
||||
if (stopPropagation) {
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
|
||||
function query(parent, selector) {
|
||||
return parent && parent.querySelector(selector);
|
||||
}
|
||||
|
||||
function queryAll(parent, selector) {
|
||||
return selector ? slice(parent.querySelectorAll(selector)) : [];
|
||||
}
|
||||
|
||||
function removeClass(elm, classes) {
|
||||
toggleClass(elm, classes, false);
|
||||
}
|
||||
|
||||
function timeOf(e) {
|
||||
return e.timeStamp;
|
||||
}
|
||||
|
||||
function unit(value) {
|
||||
return isString(value) ? value : value ? `${value}px` : "";
|
||||
}
|
||||
|
||||
const PROJECT_CODE = "splide";
|
||||
|
||||
function assert(condition, message) {
|
||||
if (!condition) {
|
||||
throw new Error(`[${PROJECT_CODE}] ${message || ""}`);
|
||||
}
|
||||
}
|
||||
|
||||
function error(message) {
|
||||
console.error(`[${PROJECT_CODE}] ${message}`);
|
||||
}
|
||||
|
||||
const { min, max, floor, ceil, abs } = Math;
|
||||
|
||||
function approximatelyEqual(x, y, epsilon) {
|
||||
return abs(x - y) < epsilon;
|
||||
}
|
||||
|
||||
function between(number, minOrMax, maxOrMin, exclusive) {
|
||||
const minimum = min(minOrMax, maxOrMin);
|
||||
const maximum = max(minOrMax, maxOrMin);
|
||||
return exclusive ? minimum < number && number < maximum : minimum <= number && number <= maximum;
|
||||
}
|
||||
|
||||
function clamp(number, x, y) {
|
||||
const minimum = min(x, y);
|
||||
const maximum = max(x, y);
|
||||
return min(max(minimum, number), maximum);
|
||||
}
|
||||
|
||||
function sign(x) {
|
||||
return +(x > 0) - +(x < 0);
|
||||
}
|
||||
|
||||
function camelToKebab(string) {
|
||||
return string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
||||
}
|
||||
|
||||
function format(string, replacements) {
|
||||
forEach(replacements, (replacement) => {
|
||||
string = string.replace("%s", `${replacement}`);
|
||||
});
|
||||
return string;
|
||||
}
|
||||
|
||||
function pad(number) {
|
||||
return number < 10 ? `0${number}` : `${number}`;
|
||||
}
|
||||
|
||||
const ids = {};
|
||||
function uniqueId(prefix) {
|
||||
return `${prefix}${pad(ids[prefix] = (ids[prefix] || 0) + 1)}`;
|
||||
}
|
||||
|
||||
exports.abs = abs;
|
||||
exports.addClass = addClass;
|
||||
exports.append = append;
|
||||
exports.apply = apply;
|
||||
exports.approximatelyEqual = approximatelyEqual;
|
||||
exports.assert = assert;
|
||||
exports.assign = assign;
|
||||
exports.before = before;
|
||||
exports.between = between;
|
||||
exports.camelToKebab = camelToKebab;
|
||||
exports.ceil = ceil;
|
||||
exports.child = child;
|
||||
exports.children = children;
|
||||
exports.clamp = clamp;
|
||||
exports.create = create;
|
||||
exports.display = display;
|
||||
exports.empty = empty;
|
||||
exports.error = error;
|
||||
exports.find = find;
|
||||
exports.floor = floor;
|
||||
exports.focus = focus;
|
||||
exports.forEach = forEach;
|
||||
exports.forOwn = forOwn;
|
||||
exports.format = format;
|
||||
exports.getAttribute = getAttribute;
|
||||
exports.hasClass = hasClass;
|
||||
exports.includes = includes;
|
||||
exports.isArray = isArray;
|
||||
exports.isFunction = isFunction;
|
||||
exports.isHTMLButtonElement = isHTMLButtonElement;
|
||||
exports.isHTMLElement = isHTMLElement;
|
||||
exports.isNull = isNull;
|
||||
exports.isObject = isObject;
|
||||
exports.isString = isString;
|
||||
exports.isUndefined = isUndefined;
|
||||
exports.matches = matches;
|
||||
exports.max = max;
|
||||
exports.measure = measure;
|
||||
exports.merge = merge;
|
||||
exports.min = min;
|
||||
exports.nextTick = nextTick;
|
||||
exports.noop = noop;
|
||||
exports.omit = omit;
|
||||
exports.ownKeys = ownKeys;
|
||||
exports.pad = pad;
|
||||
exports.parseHtml = parseHtml;
|
||||
exports.prevent = prevent;
|
||||
exports.push = push;
|
||||
exports.query = query;
|
||||
exports.queryAll = queryAll;
|
||||
exports.raf = raf;
|
||||
exports.rect = rect;
|
||||
exports.remove = remove;
|
||||
exports.removeAttribute = removeAttribute;
|
||||
exports.removeClass = removeClass;
|
||||
exports.setAttribute = setAttribute;
|
||||
exports.sign = sign;
|
||||
exports.slice = slice;
|
||||
exports.style = style;
|
||||
exports.timeOf = timeOf;
|
||||
exports.toArray = toArray;
|
||||
exports.toggleClass = toggleClass;
|
||||
exports.uniqueId = uniqueId;
|
||||
exports.unit = unit;
|
312
assets/splide/js/utils/splide-utils.esm.js
Normal file
@ -0,0 +1,312 @@
|
||||
function empty(array) {
|
||||
array.length = 0;
|
||||
}
|
||||
|
||||
function slice(arrayLike, start, end) {
|
||||
return Array.prototype.slice.call(arrayLike, start, end);
|
||||
}
|
||||
|
||||
function find(arrayLike, predicate) {
|
||||
return slice(arrayLike).filter(predicate)[0];
|
||||
}
|
||||
|
||||
function apply(func) {
|
||||
return func.bind(null, ...slice(arguments, 1));
|
||||
}
|
||||
|
||||
const nextTick = setTimeout;
|
||||
|
||||
const noop = () => {
|
||||
};
|
||||
|
||||
function raf(func) {
|
||||
return requestAnimationFrame(func);
|
||||
}
|
||||
|
||||
function typeOf(type, subject) {
|
||||
return typeof subject === type;
|
||||
}
|
||||
function isObject(subject) {
|
||||
return !isNull(subject) && typeOf("object", subject);
|
||||
}
|
||||
const isArray = Array.isArray;
|
||||
const isFunction = apply(typeOf, "function");
|
||||
const isString = apply(typeOf, "string");
|
||||
const isUndefined = apply(typeOf, "undefined");
|
||||
function isNull(subject) {
|
||||
return subject === null;
|
||||
}
|
||||
function isHTMLElement(subject) {
|
||||
return subject instanceof HTMLElement;
|
||||
}
|
||||
function isHTMLButtonElement(subject) {
|
||||
return subject instanceof HTMLButtonElement;
|
||||
}
|
||||
|
||||
function toArray(value) {
|
||||
return isArray(value) ? value : [value];
|
||||
}
|
||||
|
||||
function forEach(values, iteratee) {
|
||||
toArray(values).forEach(iteratee);
|
||||
}
|
||||
|
||||
function includes(array, value) {
|
||||
return array.indexOf(value) > -1;
|
||||
}
|
||||
|
||||
function push(array, items) {
|
||||
array.push(...toArray(items));
|
||||
return array;
|
||||
}
|
||||
|
||||
function toggleClass(elm, classes, add) {
|
||||
if (elm) {
|
||||
forEach(classes, (name) => {
|
||||
if (name) {
|
||||
elm.classList[add ? "add" : "remove"](name);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function addClass(elm, classes) {
|
||||
toggleClass(elm, isString(classes) ? classes.split(" ") : classes, true);
|
||||
}
|
||||
|
||||
function append(parent, children) {
|
||||
forEach(children, parent.appendChild.bind(parent));
|
||||
}
|
||||
|
||||
function before(nodes, ref) {
|
||||
forEach(nodes, (node) => {
|
||||
const parent = (ref || node).parentNode;
|
||||
if (parent) {
|
||||
parent.insertBefore(node, ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function matches(elm, selector) {
|
||||
return isHTMLElement(elm) && (elm["msMatchesSelector"] || elm.matches).call(elm, selector);
|
||||
}
|
||||
|
||||
function children(parent, selector) {
|
||||
const children2 = parent ? slice(parent.children) : [];
|
||||
return selector ? children2.filter((child) => matches(child, selector)) : children2;
|
||||
}
|
||||
|
||||
function child(parent, selector) {
|
||||
return selector ? children(parent, selector)[0] : parent.firstElementChild;
|
||||
}
|
||||
|
||||
const ownKeys = Object.keys;
|
||||
|
||||
function forOwn(object, iteratee, right) {
|
||||
if (object) {
|
||||
let keys = ownKeys(object);
|
||||
keys = right ? keys.reverse() : keys;
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
if (key !== "__proto__") {
|
||||
if (iteratee(object[key], key) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function assign(object) {
|
||||
slice(arguments, 1).forEach((source) => {
|
||||
forOwn(source, (value, key) => {
|
||||
object[key] = source[key];
|
||||
});
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
function merge(object) {
|
||||
slice(arguments, 1).forEach((source) => {
|
||||
forOwn(source, (value, key) => {
|
||||
if (isArray(value)) {
|
||||
object[key] = value.slice();
|
||||
} else if (isObject(value)) {
|
||||
object[key] = merge({}, isObject(object[key]) ? object[key] : {}, value);
|
||||
} else {
|
||||
object[key] = value;
|
||||
}
|
||||
});
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
function omit(object, keys) {
|
||||
toArray(keys || ownKeys(object)).forEach((key) => {
|
||||
delete object[key];
|
||||
});
|
||||
}
|
||||
|
||||
function removeAttribute(elms, attrs) {
|
||||
forEach(elms, (elm) => {
|
||||
forEach(attrs, (attr) => {
|
||||
elm && elm.removeAttribute(attr);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function setAttribute(elms, attrs, value) {
|
||||
if (isObject(attrs)) {
|
||||
forOwn(attrs, (value2, name) => {
|
||||
setAttribute(elms, name, value2);
|
||||
});
|
||||
} else {
|
||||
forEach(elms, (elm) => {
|
||||
isNull(value) || value === "" ? removeAttribute(elm, attrs) : elm.setAttribute(attrs, String(value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function create(tag, attrs, parent) {
|
||||
const elm = document.createElement(tag);
|
||||
if (attrs) {
|
||||
isString(attrs) ? addClass(elm, attrs) : setAttribute(elm, attrs);
|
||||
}
|
||||
parent && append(parent, elm);
|
||||
return elm;
|
||||
}
|
||||
|
||||
function style(elm, prop, value) {
|
||||
if (isUndefined(value)) {
|
||||
return getComputedStyle(elm)[prop];
|
||||
}
|
||||
if (!isNull(value)) {
|
||||
elm.style[prop] = `${value}`;
|
||||
}
|
||||
}
|
||||
|
||||
function display(elm, display2) {
|
||||
style(elm, "display", display2);
|
||||
}
|
||||
|
||||
function focus(elm) {
|
||||
elm["setActive"] && elm["setActive"]() || elm.focus({ preventScroll: true });
|
||||
}
|
||||
|
||||
function getAttribute(elm, attr) {
|
||||
return elm.getAttribute(attr);
|
||||
}
|
||||
|
||||
function hasClass(elm, className) {
|
||||
return elm && elm.classList.contains(className);
|
||||
}
|
||||
|
||||
function rect(target) {
|
||||
return target.getBoundingClientRect();
|
||||
}
|
||||
|
||||
function remove(nodes) {
|
||||
forEach(nodes, (node) => {
|
||||
if (node && node.parentNode) {
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function measure(parent, value) {
|
||||
if (isString(value)) {
|
||||
const div = create("div", { style: `width: ${value}; position: absolute;` }, parent);
|
||||
value = rect(div).width;
|
||||
remove(div);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function parseHtml(html) {
|
||||
return child(new DOMParser().parseFromString(html, "text/html").body);
|
||||
}
|
||||
|
||||
function prevent(e, stopPropagation) {
|
||||
e.preventDefault();
|
||||
if (stopPropagation) {
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
|
||||
function query(parent, selector) {
|
||||
return parent && parent.querySelector(selector);
|
||||
}
|
||||
|
||||
function queryAll(parent, selector) {
|
||||
return selector ? slice(parent.querySelectorAll(selector)) : [];
|
||||
}
|
||||
|
||||
function removeClass(elm, classes) {
|
||||
toggleClass(elm, classes, false);
|
||||
}
|
||||
|
||||
function timeOf(e) {
|
||||
return e.timeStamp;
|
||||
}
|
||||
|
||||
function unit(value) {
|
||||
return isString(value) ? value : value ? `${value}px` : "";
|
||||
}
|
||||
|
||||
const PROJECT_CODE = "splide";
|
||||
|
||||
function assert(condition, message) {
|
||||
if (!condition) {
|
||||
throw new Error(`[${PROJECT_CODE}] ${message || ""}`);
|
||||
}
|
||||
}
|
||||
|
||||
function error(message) {
|
||||
console.error(`[${PROJECT_CODE}] ${message}`);
|
||||
}
|
||||
|
||||
const { min, max, floor, ceil, abs } = Math;
|
||||
|
||||
function approximatelyEqual(x, y, epsilon) {
|
||||
return abs(x - y) < epsilon;
|
||||
}
|
||||
|
||||
function between(number, minOrMax, maxOrMin, exclusive) {
|
||||
const minimum = min(minOrMax, maxOrMin);
|
||||
const maximum = max(minOrMax, maxOrMin);
|
||||
return exclusive ? minimum < number && number < maximum : minimum <= number && number <= maximum;
|
||||
}
|
||||
|
||||
function clamp(number, x, y) {
|
||||
const minimum = min(x, y);
|
||||
const maximum = max(x, y);
|
||||
return min(max(minimum, number), maximum);
|
||||
}
|
||||
|
||||
function sign(x) {
|
||||
return +(x > 0) - +(x < 0);
|
||||
}
|
||||
|
||||
function camelToKebab(string) {
|
||||
return string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
||||
}
|
||||
|
||||
function format(string, replacements) {
|
||||
forEach(replacements, (replacement) => {
|
||||
string = string.replace("%s", `${replacement}`);
|
||||
});
|
||||
return string;
|
||||
}
|
||||
|
||||
function pad(number) {
|
||||
return number < 10 ? `0${number}` : `${number}`;
|
||||
}
|
||||
|
||||
const ids = {};
|
||||
function uniqueId(prefix) {
|
||||
return `${prefix}${pad(ids[prefix] = (ids[prefix] || 0) + 1)}`;
|
||||
}
|
||||
|
||||
export { abs, addClass, append, apply, approximatelyEqual, assert, assign, before, between, camelToKebab, ceil, child, children, clamp, create, display, empty, error, find, floor, focus, forEach, forOwn, format, getAttribute, hasClass, includes, isArray, isFunction, isHTMLButtonElement, isHTMLElement, isNull, isObject, isString, isUndefined, matches, max, measure, merge, min, nextTick, noop, omit, ownKeys, pad, parseHtml, prevent, push, query, queryAll, raf, rect, remove, removeAttribute, removeClass, setAttribute, sign, slice, style, timeOf, toArray, toggleClass, uniqueId, unit };
|
1674
assets/splide/types/index.d.ts
vendored
Normal file
@ -2,10 +2,13 @@
|
||||
title: InvenTree Mobile App
|
||||
---
|
||||
|
||||
|
||||
The InvenTree Mobile App brings stock control to your pocket. Integrating seamlessly with the [InvenTree API](../extend/api.md), the app provides immediate access to inventory data without requiring physical access to a computer.
|
||||
|
||||
Native barcode support provides a multitude of context-sensitive stock control actions, allowing streamlined inventory management at your fingertips. The app has been optimized for speed, providing instant access to stock knowledge and handy on-site functionality.
|
||||
|
||||
{% include app_carousel.html %}
|
||||
|
||||
### Features
|
||||
|
||||
- View and edit part and stock information with a blazingly fast interface
|
||||
|