diff --git a/Frontend/_sysMonAll.html b/Frontend/_sysMonAll.html index 7713a57..1b72987 100644 --- a/Frontend/_sysMonAll.html +++ b/Frontend/_sysMonAll.html @@ -23,25 +23,18 @@ -
- +
+
- - - - - - \ No newline at end of file diff --git a/Frontend/index.html b/Frontend/index.html index 0f8bbd6..f5f8ad2 100644 --- a/Frontend/index.html +++ b/Frontend/index.html @@ -2374,7 +2374,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li } else { /*toast_ok(rel.msg);*/ - cookies.create("JWT-Authorization", rel.data.token); + cookies.create("JWT-Authorization", rel.data.token, 12 * 60 * 60 * 1000); isValidLogin(); } }, diff --git a/Frontend/js/yourteam/yourteam.utility.class.js b/Frontend/js/yourteam/yourteam.utility.class.js index e1e2c49..9391920 100644 --- a/Frontend/js/yourteam/yourteam.utility.class.js +++ b/Frontend/js/yourteam/yourteam.utility.class.js @@ -197,10 +197,10 @@ class CookieHelper { * @author Darren Chen * @date 2018/07/24 */ - create = function (name, value) { + create = function (name, value, time = 2 * 24 * 60 * 60 * 1000) { let expires = new Date(); //有效時間保存 2 天 2*24*60*60*1000 - expires.setTime(expires.getTime() + 172800000); + expires.setTime(expires.getTime() + time); document.cookie = name + "=" + escape(value) + ";expires=" + expires.toGMTString(); } /* @deprecated since version 0.1 diff --git a/Frontend/lib/vendors.bundle.js b/Frontend/lib/vendors.bundle.js index 3416b45..fd0f136 100644 --- a/Frontend/lib/vendors.bundle.js +++ b/Frontend/lib/vendors.bundle.js @@ -21265,418 +21265,418 @@ return Popper; * ------------------------------------------------------------------------ */ - var Dropdown = /*#__PURE__*/function () { - function Dropdown(element, config) { - this._element = element; - this._popper = null; - this._config = this._getConfig(config); - this._menu = this._getMenuElement(); - this._inNavbar = this._detectNavbar(); + //var Dropdown = /*#__PURE__*/function () { + // function Dropdown(element, config) { + // this._element = element; + // this._popper = null; + // this._config = this._getConfig(config); + // this._menu = this._getMenuElement(); + // this._inNavbar = this._detectNavbar(); - this._addEventListeners(); - } // Getters + // this._addEventListeners(); + // } // Getters - var _proto = Dropdown.prototype; + // var _proto = Dropdown.prototype; - // Public - _proto.toggle = function toggle() { - if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED)) { - return; - } + // // Public + // _proto.toggle = function toggle() { + // if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED)) { + // return; + // } - var isActive = $(this._menu).hasClass(CLASS_NAME_SHOW$2); + // var isActive = $(this._menu).hasClass(CLASS_NAME_SHOW$2); - Dropdown._clearMenus(); + // Dropdown._clearMenus(); - if (isActive) { - return; - } + // if (isActive) { + // return; + // } - this.show(true); - }; + // this.show(true); + // }; - _proto.show = function show(usePopper) { - if (usePopper === void 0) { - usePopper = false; - } + // _proto.show = function show(usePopper) { + // if (usePopper === void 0) { + // usePopper = false; + // } - if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || $(this._menu).hasClass(CLASS_NAME_SHOW$2)) { - return; - } + // if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || $(this._menu).hasClass(CLASS_NAME_SHOW$2)) { + // return; + // } - var relatedTarget = { - relatedTarget: this._element - }; - var showEvent = $.Event(EVENT_SHOW$1, relatedTarget); + // var relatedTarget = { + // relatedTarget: this._element + // }; + // var showEvent = $.Event(EVENT_SHOW$1, relatedTarget); - var parent = Dropdown._getParentFromElement(this._element); + // var parent = Dropdown._getParentFromElement(this._element); - $(parent).trigger(showEvent); + // $(parent).trigger(showEvent); - if (showEvent.isDefaultPrevented()) { - return; - } // Disable totally Popper.js for Dropdown in Navbar + // if (showEvent.isDefaultPrevented()) { + // return; + // } // Disable totally Popper.js for Dropdown in Navbar - if (!this._inNavbar && usePopper) { - /** - * Check for Popper dependency - * Popper - https://popper.js.org - */ - if (typeof Popper === 'undefined') { - throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org/)'); - } + // if (!this._inNavbar && usePopper) { + // /** + // * Check for Popper dependency + // * Popper - https://popper.js.org + // */ + // if (typeof Popper === 'undefined') { + // throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org/)'); + // } - var referenceElement = this._element; + // var referenceElement = this._element; - if (this._config.reference === 'parent') { - referenceElement = parent; - } else if (Util.isElement(this._config.reference)) { - referenceElement = this._config.reference; // Check if it's jQuery element + // if (this._config.reference === 'parent') { + // referenceElement = parent; + // } else if (Util.isElement(this._config.reference)) { + // referenceElement = this._config.reference; // Check if it's jQuery element - if (typeof this._config.reference.jquery !== 'undefined') { - referenceElement = this._config.reference[0]; - } - } // If boundary is not `scrollParent`, then set position to `static` - // to allow the menu to "escape" the scroll parent's boundaries - // https://github.com/twbs/bootstrap/issues/24251 + // if (typeof this._config.reference.jquery !== 'undefined') { + // referenceElement = this._config.reference[0]; + // } + // } // If boundary is not `scrollParent`, then set position to `static` + // // to allow the menu to "escape" the scroll parent's boundaries + // // https://github.com/twbs/bootstrap/issues/24251 - if (this._config.boundary !== 'scrollParent') { - $(parent).addClass(CLASS_NAME_POSITION_STATIC); - } + // if (this._config.boundary !== 'scrollParent') { + // $(parent).addClass(CLASS_NAME_POSITION_STATIC); + // } - this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig()); - } // If this is a touch-enabled device we add extra - // empty mouseover listeners to the body's immediate children; - // only needed because of broken event delegation on iOS - // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html + // this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig()); + // } // If this is a touch-enabled device we add extra + // // empty mouseover listeners to the body's immediate children; + // // only needed because of broken event delegation on iOS + // // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html - if ('ontouchstart' in document.documentElement && $(parent).closest(SELECTOR_NAVBAR_NAV).length === 0) { - $(document.body).children().on('mouseover', null, $.noop); - } + // if ('ontouchstart' in document.documentElement && $(parent).closest(SELECTOR_NAVBAR_NAV).length === 0) { + // $(document.body).children().on('mouseover', null, $.noop); + // } - this._element.focus(); + // this._element.focus(); - this._element.setAttribute('aria-expanded', true); + // this._element.setAttribute('aria-expanded', true); - $(this._menu).toggleClass(CLASS_NAME_SHOW$2); - $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_SHOWN$1, relatedTarget)); - }; + // $(this._menu).toggleClass(CLASS_NAME_SHOW$2); + // $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_SHOWN$1, relatedTarget)); + // }; - _proto.hide = function hide() { - if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || !$(this._menu).hasClass(CLASS_NAME_SHOW$2)) { - return; - } + // _proto.hide = function hide() { + // if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || !$(this._menu).hasClass(CLASS_NAME_SHOW$2)) { + // return; + // } - var relatedTarget = { - relatedTarget: this._element - }; - var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget); + // var relatedTarget = { + // relatedTarget: this._element + // }; + // var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget); - var parent = Dropdown._getParentFromElement(this._element); + // var parent = Dropdown._getParentFromElement(this._element); - $(parent).trigger(hideEvent); + // $(parent).trigger(hideEvent); - if (hideEvent.isDefaultPrevented()) { - return; - } + // if (hideEvent.isDefaultPrevented()) { + // return; + // } - if (this._popper) { - this._popper.destroy(); - } - - $(this._menu).toggleClass(CLASS_NAME_SHOW$2); - $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget)); - }; - - _proto.dispose = function dispose() { - $.removeData(this._element, DATA_KEY$4); - $(this._element).off(EVENT_KEY$4); - this._element = null; - this._menu = null; - - if (this._popper !== null) { - this._popper.destroy(); - - this._popper = null; - } - }; - - _proto.update = function update() { - this._inNavbar = this._detectNavbar(); - - if (this._popper !== null) { - this._popper.scheduleUpdate(); - } - } // Private - ; - - _proto._addEventListeners = function _addEventListeners() { - var _this = this; - - $(this._element).on(EVENT_CLICK, function (event) { - event.preventDefault(); - event.stopPropagation(); - - _this.toggle(); - }); - }; - - _proto._getConfig = function _getConfig(config) { - config = _objectSpread2(_objectSpread2(_objectSpread2({}, this.constructor.Default), $(this._element).data()), config); - Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); - return config; - }; - - _proto._getMenuElement = function _getMenuElement() { - if (!this._menu) { - var parent = Dropdown._getParentFromElement(this._element); - - if (parent) { - this._menu = parent.querySelector(SELECTOR_MENU); - } - } - - return this._menu; - }; - - _proto._getPlacement = function _getPlacement() { - var $parentDropdown = $(this._element.parentNode); - var placement = PLACEMENT_BOTTOM; // Handle dropup - - if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) { - placement = $(this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP; - } else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) { - placement = PLACEMENT_RIGHT; - } else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) { - placement = PLACEMENT_LEFT; - } else if ($(this._menu).hasClass(CLASS_NAME_MENURIGHT)) { - placement = PLACEMENT_BOTTOMEND; - } - - return placement; - }; - - _proto._detectNavbar = function _detectNavbar() { - return $(this._element).closest('.navbar').length > 0; - }; - - _proto._getOffset = function _getOffset() { - var _this2 = this; - - var offset = {}; - - if (typeof this._config.offset === 'function') { - offset.fn = function (data) { - data.offsets = _objectSpread2(_objectSpread2({}, data.offsets), _this2._config.offset(data.offsets, _this2._element) || {}); - return data; - }; - } else { - offset.offset = this._config.offset; - } - - return offset; - }; - - _proto._getPopperConfig = function _getPopperConfig() { - var popperConfig = { - placement: this._getPlacement(), - modifiers: { - offset: this._getOffset(), - flip: { - enabled: this._config.flip - }, - preventOverflow: { - boundariesElement: this._config.boundary - } - } - }; // Disable Popper.js if we have a static display - - if (this._config.display === 'static') { - popperConfig.modifiers.applyStyle = { - enabled: false - }; - } - - return _objectSpread2(_objectSpread2({}, popperConfig), this._config.popperConfig); - } // Static - ; - - Dropdown._jQueryInterface = function _jQueryInterface(config) { - return this.each(function () { - var data = $(this).data(DATA_KEY$4); - - var _config = typeof config === 'object' ? config : null; - - if (!data) { - data = new Dropdown(this, _config); - $(this).data(DATA_KEY$4, data); - } - - if (typeof config === 'string') { - if (typeof data[config] === 'undefined') { - throw new TypeError("No method named \"" + config + "\""); - } - - data[config](); - } - }); - }; - - Dropdown._clearMenus = function _clearMenus(event) { - if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) { - return; - } - - var toggles = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2)); - - for (var i = 0, len = toggles.length; i < len; i++) { - var parent = Dropdown._getParentFromElement(toggles[i]); - - var context = $(toggles[i]).data(DATA_KEY$4); - var relatedTarget = { - relatedTarget: toggles[i] - }; - - if (event && event.type === 'click') { - relatedTarget.clickEvent = event; - } - - if (!context) { - continue; - } - - var dropdownMenu = context._menu; - - if (!$(parent).hasClass(CLASS_NAME_SHOW$2)) { - continue; - } - - if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) { - continue; - } - - var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget); - $(parent).trigger(hideEvent); - - if (hideEvent.isDefaultPrevented()) { - continue; - } // If this is a touch-enabled device we remove the extra - // empty mouseover listeners we added for iOS support - - - if ('ontouchstart' in document.documentElement) { - $(document.body).children().off('mouseover', null, $.noop); - } - - toggles[i].setAttribute('aria-expanded', 'false'); - - if (context._popper) { - context._popper.destroy(); - } - - $(dropdownMenu).removeClass(CLASS_NAME_SHOW$2); - $(parent).removeClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget)); - } - }; - - Dropdown._getParentFromElement = function _getParentFromElement(element) { - var parent; - var selector = Util.getSelectorFromElement(element); - - if (selector) { - parent = document.querySelector(selector); - } - - return parent || element.parentNode; - } // eslint-disable-next-line complexity - ; - - Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) { - // If not input/textarea: - // - And not a key in REGEXP_KEYDOWN => not a dropdown command - // If input/textarea: - // - If space key => not a dropdown command - // - If key is other than escape - // - If key is not up or down => not a dropdown command - // - If trigger inside the menu => not a dropdown command - if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) { - return; - } - - if (this.disabled || $(this).hasClass(CLASS_NAME_DISABLED)) { - return; - } - - var parent = Dropdown._getParentFromElement(this); - - var isActive = $(parent).hasClass(CLASS_NAME_SHOW$2); - - if (!isActive && event.which === ESCAPE_KEYCODE) { - return; - } - - event.preventDefault(); - event.stopPropagation(); - - if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { - if (event.which === ESCAPE_KEYCODE) { - $(parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus'); - } - - $(this).trigger('click'); - return; - } - - var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) { - return $(item).is(':visible'); - }); - - if (items.length === 0) { - return; - } - - var index = items.indexOf(event.target); - - if (event.which === ARROW_UP_KEYCODE && index > 0) { - // Up - index--; - } - - if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) { - // Down - index++; - } - - if (index < 0) { - index = 0; - } - - items[index].focus(); - }; - - _createClass(Dropdown, null, [{ - key: "VERSION", - get: function get() { - return VERSION$4; - } - }, { - key: "Default", - get: function get() { - return Default$2; - } - }, { - key: "DefaultType", - get: function get() { - return DefaultType$2; - } - }]); - - return Dropdown; - }(); + // if (this._popper) { + // this._popper.destroy(); + // } + + // $(this._menu).toggleClass(CLASS_NAME_SHOW$2); + // $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget)); + // }; + + // _proto.dispose = function dispose() { + // $.removeData(this._element, DATA_KEY$4); + // $(this._element).off(EVENT_KEY$4); + // this._element = null; + // this._menu = null; + + // if (this._popper !== null) { + // this._popper.destroy(); + + // this._popper = null; + // } + // }; + + // _proto.update = function update() { + // this._inNavbar = this._detectNavbar(); + + // if (this._popper !== null) { + // this._popper.scheduleUpdate(); + // } + // } // Private + // ; + + // _proto._addEventListeners = function _addEventListeners() { + // var _this = this; + + // $(this._element).on(EVENT_CLICK, function (event) { + // event.preventDefault(); + // event.stopPropagation(); + + // _this.toggle(); + // }); + // }; + + // _proto._getConfig = function _getConfig(config) { + // config = _objectSpread2(_objectSpread2(_objectSpread2({}, this.constructor.Default), $(this._element).data()), config); + // Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); + // return config; + // }; + + // _proto._getMenuElement = function _getMenuElement() { + // if (!this._menu) { + // var parent = Dropdown._getParentFromElement(this._element); + + // if (parent) { + // this._menu = parent.querySelector(SELECTOR_MENU); + // } + // } + + // return this._menu; + // }; + + // _proto._getPlacement = function _getPlacement() { + // var $parentDropdown = $(this._element.parentNode); + // var placement = PLACEMENT_BOTTOM; // Handle dropup + + // if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) { + // placement = $(this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP; + // } else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) { + // placement = PLACEMENT_RIGHT; + // } else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) { + // placement = PLACEMENT_LEFT; + // } else if ($(this._menu).hasClass(CLASS_NAME_MENURIGHT)) { + // placement = PLACEMENT_BOTTOMEND; + // } + + // return placement; + // }; + + // _proto._detectNavbar = function _detectNavbar() { + // return $(this._element).closest('.navbar').length > 0; + // }; + + // _proto._getOffset = function _getOffset() { + // var _this2 = this; + + // var offset = {}; + + // if (typeof this._config.offset === 'function') { + // offset.fn = function (data) { + // data.offsets = _objectSpread2(_objectSpread2({}, data.offsets), _this2._config.offset(data.offsets, _this2._element) || {}); + // return data; + // }; + // } else { + // offset.offset = this._config.offset; + // } + + // return offset; + // }; + + // _proto._getPopperConfig = function _getPopperConfig() { + // var popperConfig = { + // placement: this._getPlacement(), + // modifiers: { + // offset: this._getOffset(), + // flip: { + // enabled: this._config.flip + // }, + // preventOverflow: { + // boundariesElement: this._config.boundary + // } + // } + // }; // Disable Popper.js if we have a static display + + // if (this._config.display === 'static') { + // popperConfig.modifiers.applyStyle = { + // enabled: false + // }; + // } + + // return _objectSpread2(_objectSpread2({}, popperConfig), this._config.popperConfig); + // } // Static + // ; + + // Dropdown._jQueryInterface = function _jQueryInterface(config) { + // return this.each(function () { + // var data = $(this).data(DATA_KEY$4); + + // var _config = typeof config === 'object' ? config : null; + + // if (!data) { + // data = new Dropdown(this, _config); + // $(this).data(DATA_KEY$4, data); + // } + + // if (typeof config === 'string') { + // if (typeof data[config] === 'undefined') { + // throw new TypeError("No method named \"" + config + "\""); + // } + + // data[config](); + // } + // }); + // }; + + // Dropdown._clearMenus = function _clearMenus(event) { + // if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) { + // return; + // } + + // var toggles = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2)); + + // for (var i = 0, len = toggles.length; i < len; i++) { + // var parent = Dropdown._getParentFromElement(toggles[i]); + + // var context = $(toggles[i]).data(DATA_KEY$4); + // var relatedTarget = { + // relatedTarget: toggles[i] + // }; + + // if (event && event.type === 'click') { + // relatedTarget.clickEvent = event; + // } + + // if (!context) { + // continue; + // } + + // var dropdownMenu = context._menu; + + // if (!$(parent).hasClass(CLASS_NAME_SHOW$2)) { + // continue; + // } + + // if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) { + // continue; + // } + + // var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget); + // $(parent).trigger(hideEvent); + + // if (hideEvent.isDefaultPrevented()) { + // continue; + // } // If this is a touch-enabled device we remove the extra + // // empty mouseover listeners we added for iOS support + + + // if ('ontouchstart' in document.documentElement) { + // $(document.body).children().off('mouseover', null, $.noop); + // } + + // toggles[i].setAttribute('aria-expanded', 'false'); + + // if (context._popper) { + // context._popper.destroy(); + // } + + // $(dropdownMenu).removeClass(CLASS_NAME_SHOW$2); + // $(parent).removeClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget)); + // } + // }; + + // Dropdown._getParentFromElement = function _getParentFromElement(element) { + // var parent; + // var selector = Util.getSelectorFromElement(element); + + // if (selector) { + // parent = document.querySelector(selector); + // } + + // return parent || element.parentNode; + // } // eslint-disable-next-line complexity + // ; + + // Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) { + // // If not input/textarea: + // // - And not a key in REGEXP_KEYDOWN => not a dropdown command + // // If input/textarea: + // // - If space key => not a dropdown command + // // - If key is other than escape + // // - If key is not up or down => not a dropdown command + // // - If trigger inside the menu => not a dropdown command + // if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) { + // return; + // } + + // if (this.disabled || $(this).hasClass(CLASS_NAME_DISABLED)) { + // return; + // } + + // var parent = Dropdown._getParentFromElement(this); + + // var isActive = $(parent).hasClass(CLASS_NAME_SHOW$2); + + // if (!isActive && event.which === ESCAPE_KEYCODE) { + // return; + // } + + // event.preventDefault(); + // event.stopPropagation(); + + // if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { + // if (event.which === ESCAPE_KEYCODE) { + // $(parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus'); + // } + + // $(this).trigger('click'); + // return; + // } + + // var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) { + // return $(item).is(':visible'); + // }); + + // if (items.length === 0) { + // return; + // } + + // var index = items.indexOf(event.target); + + // if (event.which === ARROW_UP_KEYCODE && index > 0) { + // // Up + // index--; + // } + + // if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) { + // // Down + // index++; + // } + + // if (index < 0) { + // index = 0; + // } + + // items[index].focus(); + // }; + + // _createClass(Dropdown, null, [{ + // key: "VERSION", + // get: function get() { + // return VERSION$4; + // } + // }, { + // key: "Default", + // get: function get() { + // return Default$2; + // } + // }, { + // key: "DefaultType", + // get: function get() { + // return DefaultType$2; + // } + // }]); + + // return Dropdown; + //}(); /** * ------------------------------------------------------------------------ * Data Api implementation @@ -21684,27 +21684,27 @@ return Popper; */ - $(document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) { - event.preventDefault(); - event.stopPropagation(); + //$(document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) { + // event.preventDefault(); + // event.stopPropagation(); - Dropdown._jQueryInterface.call($(this), 'toggle'); - }).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) { - e.stopPropagation(); - }); + // Dropdown._jQueryInterface.call($(this), 'toggle'); + //}).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) { + // e.stopPropagation(); + //}); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ - $.fn[NAME$4] = Dropdown._jQueryInterface; - $.fn[NAME$4].Constructor = Dropdown; + //$.fn[NAME$4] = Dropdown._jQueryInterface; + //$.fn[NAME$4].Constructor = Dropdown; - $.fn[NAME$4].noConflict = function () { - $.fn[NAME$4] = JQUERY_NO_CONFLICT$4; - return Dropdown._jQueryInterface; - }; + //$.fn[NAME$4].noConflict = function () { + // $.fn[NAME$4] = JQUERY_NO_CONFLICT$4; + // return Dropdown._jQueryInterface; + //}; /** * ------------------------------------------------------------------------ @@ -22259,37 +22259,37 @@ return Popper; // */ - //$(document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) { - // var _this11 = this; + $(document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) { + var _this11 = this; - // var target; - // var selector = Util.getSelectorFromElement(this); + var target; + var selector = Util.getSelectorFromElement(this); - // if (selector) { - // target = document.querySelector(selector); - // } + if (selector) { + target = document.querySelector(selector); + } - // var config = $(target).data(DATA_KEY$5) ? 'toggle' : _objectSpread2(_objectSpread2({}, $(target).data()), $(this).data()); + var config = $(target).data(DATA_KEY$5) ? 'toggle' : _objectSpread2(_objectSpread2({}, $(target).data()), $(this).data()); - // if (this.tagName === 'A' || this.tagName === 'AREA') { - // event.preventDefault(); - // } + if (this.tagName === 'A' || this.tagName === 'AREA') { + event.preventDefault(); + } - // var $target = $(target).one(EVENT_SHOW$2, function (showEvent) { - // if (showEvent.isDefaultPrevented()) { - // // Only register focus restorer if modal will actually get shown - // return; - // } + var $target = $(target).one(EVENT_SHOW$2, function (showEvent) { + if (showEvent.isDefaultPrevented()) { + // Only register focus restorer if modal will actually get shown + return; + } - // $target.one(EVENT_HIDDEN$2, function () { - // if ($(_this11).is(':visible')) { - // _this11.focus(); - // } - // }); - // }); + $target.one(EVENT_HIDDEN$2, function () { + if ($(_this11).is(':visible')) { + _this11.focus(); + } + }); + }); // Modal._jQueryInterface.call($(target), config, this); - //}); + }); ///** // * ------------------------------------------------------------------------ // * jQuery @@ -24051,8 +24051,8 @@ return Popper; exports.Button = Button; exports.Carousel = Carousel; exports.Collapse = Collapse; - exports.Dropdown = Dropdown; - exports.Modal = Modal; + /*exports.Dropdown = Dropdown;*/ + /*exports.Modal = Modal;*/ exports.Popover = Popover; exports.Scrollspy = ScrollSpy; exports.Tab = Tab; diff --git a/Frontend/login.html b/Frontend/login.html index 81fc068..3ebf1cd 100644 --- a/Frontend/login.html +++ b/Frontend/login.html @@ -232,7 +232,7 @@ } else { toast_ok(rel.msg); - cookies.create("JWT-Authorization", rel.data.token); + cookies.create("JWT-Authorization", rel.data.token, 12 * 60 * 60 * 1000); location.href = "index.html"; return; }