From 9b2da1ccc048c1acf4229daec47e0fa5add3f1e6 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 6 Nov 2021 01:44:15 +0100 Subject: [PATCH] Update --- assets/sweetalert/LICENSE.md | 22 + assets/sweetalert/README.md | 220 +++ assets/sweetalert/dist/sweetalert.min.js | 1 + assets/sweetalert/package.json | 108 ++ assets/sweetalert/typings/core.d.ts | 13 + .../sweetalert/typings/modules/actions.d.ts | 5 + .../typings/modules/class-list/index.d.ts | 5 + .../typings/modules/event-listeners.d.ts | 3 + .../typings/modules/init/buttons.d.ts | 3 + .../typings/modules/init/content.d.ts | 3 + .../sweetalert/typings/modules/init/icon.d.ts | 2 + .../typings/modules/init/index.d.ts | 3 + .../typings/modules/init/modal.d.ts | 5 + .../typings/modules/init/overlay.d.ts | 2 + .../sweetalert/typings/modules/init/text.d.ts | 2 + .../typings/modules/markup/buttons.d.ts | 1 + .../typings/modules/markup/content.d.ts | 1 + .../typings/modules/markup/icons.d.ts | 3 + .../typings/modules/markup/index.d.ts | 9 + .../typings/modules/markup/modal.d.ts | 2 + .../typings/modules/markup/overlay.d.ts | 2 + .../typings/modules/options/buttons.d.ts | 14 + .../typings/modules/options/content.d.ts | 5 + .../typings/modules/options/deprecations.d.ts | 11 + .../typings/modules/options/index.d.ts | 16 + assets/sweetalert/typings/modules/state.d.ts | 27 + assets/sweetalert/typings/modules/utils.d.ts | 7 + assets/sweetalert/typings/sweetalert.d.ts | 9 + includes/breadcrumb.phtml | 11 +- includes/footer-links.phtml | 8 + includes/footer.phtml | 15 +- includes/head.phtml | 2 +- includes/nav.phtml | 21 +- index.php | 1 + login.php | 92 + register.php | 116 ++ src/css/scss/_btn.scss | 40 +- src/css/scss/_header.scss | 21 +- src/css/scss/_navbar.scss | 1 + src/css/scss/_register-login.scss | 127 ++ src/css/scss/_sections - Copy.scss | 1588 ----------------- src/css/scss/_sections.scss | 35 +- src/css/scss/custom.css | 229 ++- src/css/scss/custom.css.map | 3 +- src/css/scss/custom.scss | 1 + src/css/scss/mobile.css | 150 ++ src/css/scss/mobile.css.map | 5 +- src/css/scss/mobile.scss | 38 +- src/css/scss/register-login.css | 17 + src/css/scss/register-login.css.map | 9 + src/img/Todayspecialimg.png | Bin 77369 -> 0 bytes src/img/blog5.png | Bin 55545 -> 0 bytes src/img/blog6.png | Bin 33039 -> 0 bytes src/img/border.png | Bin 105 -> 0 bytes src/img/bubble.png | Bin 3071 -> 0 bytes src/img/burger1.png | Bin 47070 -> 0 bytes src/img/cakes/02.jpg | Bin 0 -> 299364 bytes src/img/cakes/03.jpg | Bin 0 -> 296596 bytes .../bryam-blanco-nXKWLn8y9qE-unsplash.jpg | Bin 0 -> 714179 bytes src/img/cakes/register-bg.jpg | Bin 0 -> 574502 bytes ...yulia-khlebnikova-nhwTvI1LIFo-unsplash.jpg | Bin 607156 -> 0 bytes src/img/chefs3.png | Bin 23235 -> 0 bytes src/img/chefs4.png | Bin 23773 -> 0 bytes src/img/chefs5.png | Bin 23297 -> 0 bytes src/img/chefs6.png | Bin 24187 -> 0 bytes src/img/circle1.png | Bin 3619 -> 0 bytes src/img/cutlery.png | Bin 2334 -> 0 bytes src/img/dinner.png | Bin 946 -> 2270 bytes src/img/donut.png | Bin 11224 -> 3022 bytes src/img/donut2.png | Bin 3382 -> 0 bytes src/img/honney.png | Bin 909 -> 1772 bytes src/img/hotte_homebg.jpg | Bin 189145 -> 0 bytes src/img/icons/logo.svg | 1 + src/img/logo.png | Bin 5983 -> 0 bytes src/img/macaron.png | Bin 1787 -> 1594 bytes src/img/offerbgimg.jpg | Bin 203787 -> 0 bytes src/img/offerimg.png | Bin 34057 -> 0 bytes src/img/quotation.png | Bin 2586 -> 0 bytes src/img/svg/food ui.svg | 156 -- src/js/main.js | 45 +- 80 files changed, 1346 insertions(+), 1890 deletions(-) create mode 100644 assets/sweetalert/LICENSE.md create mode 100644 assets/sweetalert/README.md create mode 100644 assets/sweetalert/dist/sweetalert.min.js create mode 100644 assets/sweetalert/package.json create mode 100644 assets/sweetalert/typings/core.d.ts create mode 100644 assets/sweetalert/typings/modules/actions.d.ts create mode 100644 assets/sweetalert/typings/modules/class-list/index.d.ts create mode 100644 assets/sweetalert/typings/modules/event-listeners.d.ts create mode 100644 assets/sweetalert/typings/modules/init/buttons.d.ts create mode 100644 assets/sweetalert/typings/modules/init/content.d.ts create mode 100644 assets/sweetalert/typings/modules/init/icon.d.ts create mode 100644 assets/sweetalert/typings/modules/init/index.d.ts create mode 100644 assets/sweetalert/typings/modules/init/modal.d.ts create mode 100644 assets/sweetalert/typings/modules/init/overlay.d.ts create mode 100644 assets/sweetalert/typings/modules/init/text.d.ts create mode 100644 assets/sweetalert/typings/modules/markup/buttons.d.ts create mode 100644 assets/sweetalert/typings/modules/markup/content.d.ts create mode 100644 assets/sweetalert/typings/modules/markup/icons.d.ts create mode 100644 assets/sweetalert/typings/modules/markup/index.d.ts create mode 100644 assets/sweetalert/typings/modules/markup/modal.d.ts create mode 100644 assets/sweetalert/typings/modules/markup/overlay.d.ts create mode 100644 assets/sweetalert/typings/modules/options/buttons.d.ts create mode 100644 assets/sweetalert/typings/modules/options/content.d.ts create mode 100644 assets/sweetalert/typings/modules/options/deprecations.d.ts create mode 100644 assets/sweetalert/typings/modules/options/index.d.ts create mode 100644 assets/sweetalert/typings/modules/state.d.ts create mode 100644 assets/sweetalert/typings/modules/utils.d.ts create mode 100644 assets/sweetalert/typings/sweetalert.d.ts create mode 100644 includes/footer-links.phtml create mode 100644 login.php create mode 100644 register.php create mode 100644 src/css/scss/_register-login.scss delete mode 100644 src/css/scss/_sections - Copy.scss create mode 100644 src/css/scss/register-login.css create mode 100644 src/css/scss/register-login.css.map delete mode 100644 src/img/Todayspecialimg.png delete mode 100644 src/img/blog5.png delete mode 100644 src/img/blog6.png delete mode 100644 src/img/border.png delete mode 100644 src/img/bubble.png delete mode 100644 src/img/burger1.png create mode 100644 src/img/cakes/02.jpg create mode 100644 src/img/cakes/03.jpg create mode 100644 src/img/cakes/bryam-blanco-nXKWLn8y9qE-unsplash.jpg create mode 100644 src/img/cakes/register-bg.jpg delete mode 100644 src/img/cakes/yulia-khlebnikova-nhwTvI1LIFo-unsplash.jpg delete mode 100644 src/img/chefs3.png delete mode 100644 src/img/chefs4.png delete mode 100644 src/img/chefs5.png delete mode 100644 src/img/chefs6.png delete mode 100644 src/img/circle1.png delete mode 100644 src/img/cutlery.png delete mode 100644 src/img/donut2.png delete mode 100644 src/img/hotte_homebg.jpg create mode 100644 src/img/icons/logo.svg delete mode 100644 src/img/logo.png delete mode 100644 src/img/offerbgimg.jpg delete mode 100644 src/img/offerimg.png delete mode 100644 src/img/quotation.png delete mode 100644 src/img/svg/food ui.svg diff --git a/assets/sweetalert/LICENSE.md b/assets/sweetalert/LICENSE.md new file mode 100644 index 0000000..7428756 --- /dev/null +++ b/assets/sweetalert/LICENSE.md @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2014-present Tristan Edwards + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/assets/sweetalert/README.md b/assets/sweetalert/README.md new file mode 100644 index 0000000..eac94e3 --- /dev/null +++ b/assets/sweetalert/README.md @@ -0,0 +1,220 @@ +

+ + SweetAlert + +

+ +

+ A beautiful replacement for JavaScript's "alert" +

+ +

+ npm version + Build status + + + + + + + +

+ +

+ A success modal +

+ + +## Installation + +```bash +$ npm install --save sweetalert +``` + +## Usage + +```javascript +import swal from 'sweetalert'; + +swal("Hello world!"); +``` + +## Upgrading from 1.X + +Many improvements and breaking changes have been introduced in the 2.0 release. Make sure you read the [upgrade guide](https://sweetalert.js.org/guides/#upgrading-from-1x) to avoid nasty suprises! + +## Guides + +- [Installation](https://sweetalert.js.org/guides/#installation) +- [Getting started](https://sweetalert.js.org/guides/#getting-started) +- [Advanced examples](https://sweetalert.js.org/guides/#advanced-examples) +- [Using with libraries](https://sweetalert.js.org/guides/#using-with-libraries) +- [Upgrading from 1.X](https://sweetalert.js.org/guides/#upgrading-from-1x) + +## Documentation + +- [Configuration](https://sweetalert.js.org/docs/#configuration) +- [Methods](https://sweetalert.js.org/docs/#methods) +- [Theming](https://sweetalert.js.org/docs/#theming) + +## Examples + +### An error message: +```javascript +swal("Oops!", "Something went wrong!", "error"); +``` + +### A warning message, with a function attached to the confirm message: + - Using promises: + ```javascript + swal({ + title: "Are you sure?", + text: "Are you sure that you want to leave this page?", + icon: "warning", + dangerMode: true, + }) + .then(willDelete => { + if (willDelete) { + swal("Deleted!", "Your imaginary file has been deleted!", "success"); + } + }); + ``` + - Using async/await: + ```javascript + const willDelete = await swal({ + title: "Are you sure?", + text: "Are you sure that you want to delete this file?", + icon: "warning", + dangerMode: true, + }); + + if (willDelete) { + swal("Deleted!", "Your imaginary file has been deleted!", "success"); + } + ``` + +### A prompt modal, where the user's input is logged: + - Using promises: + ```javascript + swal("Type something:", { + content: "input", + }) + .then((value) => { + swal(`You typed: ${value}`); + }); + ``` + - Using async/await: + ```javascript + const value = await swal("Type something:", { + content: "input", + }); + + swal(`You typed: ${value}`); + ``` + +### In combination with Fetch: + - Using promises: + ```javascript + swal({ + text: "Wanna log some information about Bulbasaur?", + button: { + text: "Search!", + closeModal: false, + }, + }) + .then(willSearch => { + if (willSearch) { + return fetch("http://pokeapi.co/api/v2/pokemon/1"); + } + }) + .then(result => result.json()) + .then(json => console.log(json)) + .catch(err => { + swal("Oops!", "Seems like we couldn't fetch the info", "error"); + }); + ``` + - Using async/await: + ```javascript + const willSearch = await swal({ + text: "Wanna log some information about Bulbasaur?", + button: { + text: "Search!", + closeModal: false, + }, + }); + + if (willSearch) { + try { + const result = await fetch("http://pokeapi.co/api/v2/pokemon/1"); + const json = await result.json(); + console.log(json); + } catch (err) { + swal("Oops!", "Seems like we couldn't fetch the info", "error"); + } + } + ``` + +## Using with React + +SweetAlert has tools for [integrating with your favourite rendering library](https://sweetalert.js.org/guides/#using-with-libraries). + +If you're using React, you can install [SweetAlert with React](https://www.npmjs.com/package/@sweetalert/with-react) in addition to the main library, and easily add React components to your alerts like this: + +```javascript +import React from 'react' +import swal from '@sweetalert/with-react' + +swal( +
+

Hello world!

+

+ This is now rendered with JSX! +

+
+) +``` + +[Read more about integrating with React](http://localhost:3000/guides#using-react) + +## Contributing + +### If you're changing the core library: +1. Make changes in the `src` folder. +2. Preview changes by running `npm run docs` +3. Submit pull request + +### If you're changing the documentation: +1. Make changes in the `docs-src` folder. +2. Preview changes by running `npm run docs` +3. Run `npm run builddocs` to compile the changes to the `docs` folder +4. Submit pull request + +## Contributors + +This project exists thanks to all the people who contribute. [[Contribute](https://github.com/t4t5/sweetalert#contributing)]. + + + +## Backers + +Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/SweetAlert#backer)] + + + + +## Sponsors + +Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/SweetAlert#sponsor)] + + + + + + + + + + + + + diff --git a/assets/sweetalert/dist/sweetalert.min.js b/assets/sweetalert/dist/sweetalert.min.js new file mode 100644 index 0000000..dc8f5e7 --- /dev/null +++ b/assets/sweetalert/dist/sweetalert.min.js @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.swal=e():t.swal=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="swal-button";e.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:o,CONFIRM_BUTTON:o+"--confirm",CANCEL_BUTTON:o+"--cancel",DANGER_BUTTON:o+"--danger",BUTTON_LOADING:o+"--loading",BUTTON_LOADER:o+"__loader"},e.default=e.CLASS_NAMES},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNode=function(t){var e="."+t;return document.querySelector(e)},e.stringToNode=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild},e.insertAfter=function(t,e){var n=e.nextSibling;e.parentNode.insertBefore(t,n)},e.removeNode=function(t){t.parentElement.removeChild(t)},e.throwErr=function(t){throw t=t.replace(/ +(?= )/g,""),"SweetAlert: "+(t=t.trim())},e.isPlainObject=function(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype},e.ordinalSuffixOf=function(t){var e=t%10,n=t%100;return 1===e&&11!==n?t+"st":2===e&&12!==n?t+"nd":3===e&&13!==n?t+"rd":t+"th"}},function(t,e,n){"use strict";function o(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),o(n(25));var r=n(26);e.overlayMarkup=r.default,o(n(27)),o(n(28)),o(n(29));var i=n(0),a=i.default.MODAL_TITLE,s=i.default.MODAL_TEXT,c=i.default.ICON,l=i.default.FOOTER;e.iconMarkup='\n
',e.titleMarkup='\n
\n',e.textMarkup='\n
',e.footerMarkup='\n
\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1);e.CONFIRM_KEY="confirm",e.CANCEL_KEY="cancel";var r={visible:!0,text:null,value:null,className:"",closeModal:!0},i=Object.assign({},r,{visible:!1,text:"Cancel",value:null}),a=Object.assign({},r,{text:"OK",value:!0});e.defaultButtonList={cancel:i,confirm:a};var s=function(t){switch(t){case e.CONFIRM_KEY:return a;case e.CANCEL_KEY:return i;default:var n=t.charAt(0).toUpperCase()+t.slice(1);return Object.assign({},r,{text:n,value:t})}},c=function(t,e){var n=s(t);return!0===e?Object.assign({},n,{visible:!0}):"string"==typeof e?Object.assign({},n,{visible:!0,text:e}):o.isPlainObject(e)?Object.assign({visible:!0},n,e):Object.assign({},n,{visible:!1})},l=function(t){for(var e={},n=0,o=Object.keys(t);n=0&&w.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",l(e,t.attrs),i(t,e),e}function c(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(e,t.attrs),i(t,e),e}function l(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function u(t,e){var n,o,r,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var l=h++;n=g||(g=s(e)),o=f.bind(null,n,l,!1),r=f.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(e),o=p.bind(null,n,e),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),o=d.bind(null,n),r=function(){a(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}function f(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=x(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var o=n.css,r=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(o=y(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var m={},b=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),v=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),g=null,h=0,w=[],y=n(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=b()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return o(n,e),function(t){for(var i=[],a=0;athis.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),o=n.length>>>0;if(0===o)return!1;for(var r=0|e,i=Math.max(r>=0?r:o-Math.abs(r),0);i=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(19),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){(function(t,e){!function(t,n){"use strict";function o(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n',e.default=e.modalMarkup},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.OVERLAY,i='
\n
';e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.ICON;e.errorIconMarkup=function(){var t=r+"--error",e=t+"__line";return'\n
\n \n \n
\n '},e.warningIconMarkup=function(){var t=r+"--warning";return'\n \n \n \n '},e.successIconMarkup=function(){var t=r+"--success";return'\n \n \n\n
\n
\n '}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.CONTENT;e.contentMarkup='\n
\n\n
\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.BUTTON_CONTAINER,i=o.default.BUTTON,a=o.default.BUTTON_LOADER;e.buttonMarkup='\n
\n\n \n\n
\n
\n
\n
\n
\n\n
\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=n(2),i=n(0),a=i.default.ICON,s=i.default.ICON_CUSTOM,c=["error","warning","success","info"],l={error:r.errorIconMarkup(),warning:r.warningIconMarkup(),success:r.successIconMarkup()},u=function(t,e){var n=a+"--"+t;e.classList.add(n);var o=l[t];o&&(e.innerHTML=o)},f=function(t,e){e.classList.add(s);var n=document.createElement("img");n.src=t,e.appendChild(n)},d=function(t){if(t){var e=o.injectElIntoModal(r.iconMarkup);c.includes(t)?u(t,e):f(t,e)}};e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(4),i=function(t){navigator.userAgent.includes("AppleWebKit")&&(t.style.display="none",t.offsetHeight,t.style.display="")};e.initTitle=function(t){if(t){var e=r.injectElIntoModal(o.titleMarkup);e.textContent=t,i(e)}},e.initText=function(t){if(t){var e=document.createDocumentFragment();t.split("\n").forEach(function(t,n,o){e.appendChild(document.createTextNode(t)),n0}).forEach(function(t){b.classList.add(t)})}n&&t===c.CONFIRM_KEY&&b.classList.add(s),b.textContent=r;var g={};return g[t]=i,f.setActionValue(g),f.setActionOptionsFor(t,{closeModal:p}),b.addEventListener("click",function(){return u.onAction(t)}),m},p=function(t,e){var n=r.injectElIntoModal(l.footerMarkup);for(var o in t){var i=t[o],a=d(o,i,e);i.visible&&n.appendChild(a)}0===n.children.length&&n.remove()};e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(4),i=n(2),a=n(5),s=n(6),c=n(0),l=c.default.CONTENT,u=function(t){t.addEventListener("input",function(t){var e=t.target,n=e.value;a.setActionValue(n)}),t.addEventListener("keyup",function(t){if("Enter"===t.key)return s.onAction(o.CONFIRM_KEY)}),setTimeout(function(){t.focus(),a.setActionValue("")},0)},f=function(t,e,n){var o=document.createElement(e),r=l+"__"+e;o.classList.add(r);for(var i in n){var a=n[i];o[i]=a}"input"===e&&u(o),t.appendChild(o)},d=function(t){if(t){var e=r.injectElIntoModal(i.contentMarkup),n=t.element,o=t.attributes;"string"==typeof n?f(e,n,o):e.appendChild(n)}};e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),i=function(){var t=o.stringToNode(r.overlayMarkup);document.body.appendChild(t)};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(6),i=n(1),a=n(3),s=n(0),c=s.default.MODAL,l=s.default.BUTTON,u=s.default.OVERLAY,f=function(t){t.preventDefault(),v()},d=function(t){t.preventDefault(),g()},p=function(t){if(o.default.isOpen)switch(t.key){case"Escape":return r.onAction(a.CANCEL_KEY)}},m=function(t){if(o.default.isOpen)switch(t.key){case"Tab":return f(t)}},b=function(t){if(o.default.isOpen)return"Tab"===t.key&&t.shiftKey?d(t):void 0},v=function(){var t=i.getNode(l);t&&(t.tabIndex=0,t.focus())},g=function(){var t=i.getNode(c),e=t.querySelectorAll("."+l),n=e.length-1,o=e[n];o&&o.focus()},h=function(t){t[t.length-1].addEventListener("keydown",m)},w=function(t){t[0].addEventListener("keydown",b)},y=function(){var t=i.getNode(c),e=t.querySelectorAll("."+l);e.length&&(h(e),w(e))},x=function(t){if(i.getNode(u)===t.target)return r.onAction(a.CANCEL_KEY)},_=function(t){var e=i.getNode(u);e.removeEventListener("click",x),t&&e.addEventListener("click",x)},k=function(t){o.default.timer&&clearTimeout(o.default.timer),t&&(o.default.timer=window.setTimeout(function(){return r.onAction(a.CANCEL_KEY)},t))},O=function(t){t.closeOnEsc?document.addEventListener("keyup",p):document.removeEventListener("keyup",p),t.dangerMode?v():g(),y(),_(t.closeOnClickOutside),k(t.timer)};e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(37),a=n(38),s={title:null,text:null,icon:null,buttons:r.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},c=Object.assign({},s);e.setDefaults=function(t){c=Object.assign({},s,t)};var l=function(t){var e=t&&t.button,n=t&&t.buttons;return void 0!==e&&void 0!==n&&o.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==e?{confirm:e}:n},u=function(t){return o.ordinalSuffixOf(t+1)},f=function(t,e){o.throwErr(u(e)+" argument ('"+t+"') is invalid")},d=function(t,e){var n=t+1,r=e[n];o.isPlainObject(r)||void 0===r||o.throwErr("Expected "+u(n)+" argument ('"+r+"') to be a plain object")},p=function(t,e){var n=t+1,r=e[n];void 0!==r&&o.throwErr("Unexpected "+u(n)+" argument ("+r+")")},m=function(t,e,n,r){var i=typeof e,a="string"===i,s=e instanceof Element;if(a){if(0===n)return{text:e};if(1===n)return{text:e,title:r[0]};if(2===n)return d(n,r),{icon:e};f(e,n)}else{if(s&&0===n)return d(n,r),{content:e};if(o.isPlainObject(e))return p(n,r),e;f(e,n)}};e.getOpts=function(){for(var t=[],e=0;e (https://tristanedwards.me)", + "license": "MIT", + "bugs": { + "url": "https://github.com/t4t5/sweetalert/issues" + }, + "homepage": "https://sweetalert.js.org/", + "devDependencies": { + "@types/jest": "19.2.3", + "autoprefixer": "6.7.7", + "babel-core": "6.24.1", + "babel-loader": "6.4.1", + "babel-plugin-transform-es2015-modules-commonjs": "6.24.1", + "babel-plugin-transform-runtime": "6.23.0", + "babel-preset-env": "1.4.0", + "babel-preset-es2015": "6.24.1", + "babel-preset-react": "6.24.1", + "babel-standalone": "^6.26.0", + "babelify": "^6.0.2", + "browserify": "^9.0.8", + "copy-webpack-plugin": "^4.0.1", + "css-loader": "0.28.7", + "dts-bundle": "0.7.3", + "exports-loader": "0.6.4", + "expose-loader": "0.7.3", + "glob": "^5.0.3", + "jest": "19.0.2", + "jquery": "3.2.1", + "jus": "0.24.1", + "nodelist-foreach-polyfill": "^1.2.0", + "opencollective": "^1.0.3", + "path": "^0.11.14", + "postcss-color-function": "3.0.0", + "postcss-custom-properties": "5.0.2", + "postcss-easy-import": "2.0.0", + "postcss-loader": "1.3.3", + "postcss-nesting": "2.3.1", + "react": "15.5.4", + "react-dom": "15.5.4", + "source-map-loader": "0.2.1", + "sweetalert": "file:./", + "@sweetalert/with-react": "^0.1.1", + "style-loader": "0.18.2", + "ts-jest": "19.0.14", + "ts-loader": "2.0.3", + "tslint": "5.1.0", + "tslint-loader": "3.5.2", + "typescript": "2.2.2", + "vinyl-buffer": "^1.0.0", + "vinyl-source-stream": "^1.1.0", + "webpack": "3.5.5", + "webpack-bundle-analyzer": "2.9.0", + "webpack-dev-server": "2.4.2", + "webpack-merge": "4.1.0", + "whatwg-fetch": "^2.0.3" + }, + "jest": { + "verbose": true, + "transform": { + "^.+\\.tsx?$": "/node_modules/ts-jest/preprocessor.js" + }, + "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "json" + ] + }, + "files": [ + "dist", + "LICENSE.md", + "README.md", + "typings" + ], + "dependencies": { + "es6-object-assign": "^1.1.0", + "promise-polyfill": "^6.0.2" + }, + "collective": { + "type": "opencollective", + "url": "https://opencollective.com/SweetAlert" + } +} diff --git a/assets/sweetalert/typings/core.d.ts b/assets/sweetalert/typings/core.d.ts new file mode 100644 index 0000000..b3c2f02 --- /dev/null +++ b/assets/sweetalert/typings/core.d.ts @@ -0,0 +1,13 @@ +import { ActionOptions, SwalState } from './modules/state'; +import { SwalOptions } from './modules/options'; +export declare type SwalParams = (string | Partial)[]; +export interface SweetAlert { + (...params: SwalParams): Promise; + close?(namespace?: string): void; + getState?(): SwalState; + setActionValue?(opts: string | ActionOptions): void; + stopLoading?(): void; + setDefaults?(opts: object): void; +} +declare const swal: SweetAlert; +export default swal; diff --git a/assets/sweetalert/typings/modules/actions.d.ts b/assets/sweetalert/typings/modules/actions.d.ts new file mode 100644 index 0000000..bd5247e --- /dev/null +++ b/assets/sweetalert/typings/modules/actions.d.ts @@ -0,0 +1,5 @@ +import { SwalState } from './state'; +export declare const openModal: () => void; +export declare const onAction: (namespace?: string) => void; +export declare const getState: () => SwalState; +export declare const stopLoading: () => void; diff --git a/assets/sweetalert/typings/modules/class-list/index.d.ts b/assets/sweetalert/typings/modules/class-list/index.d.ts new file mode 100644 index 0000000..6273c76 --- /dev/null +++ b/assets/sweetalert/typings/modules/class-list/index.d.ts @@ -0,0 +1,5 @@ +export interface ClassNameList { + [key: string]: string; +} +export declare const CLASS_NAMES: ClassNameList; +export default CLASS_NAMES; diff --git a/assets/sweetalert/typings/modules/event-listeners.d.ts b/assets/sweetalert/typings/modules/event-listeners.d.ts new file mode 100644 index 0000000..180e272 --- /dev/null +++ b/assets/sweetalert/typings/modules/event-listeners.d.ts @@ -0,0 +1,3 @@ +import { SwalOptions } from './options'; +declare const addEventListeners: (opts: SwalOptions) => void; +export default addEventListeners; diff --git a/assets/sweetalert/typings/modules/init/buttons.d.ts b/assets/sweetalert/typings/modules/init/buttons.d.ts new file mode 100644 index 0000000..102957b --- /dev/null +++ b/assets/sweetalert/typings/modules/init/buttons.d.ts @@ -0,0 +1,3 @@ +import { ButtonList } from '../options/buttons'; +declare const initButtons: (buttons: ButtonList, dangerMode: boolean) => void; +export default initButtons; diff --git a/assets/sweetalert/typings/modules/init/content.d.ts b/assets/sweetalert/typings/modules/init/content.d.ts new file mode 100644 index 0000000..8af1857 --- /dev/null +++ b/assets/sweetalert/typings/modules/init/content.d.ts @@ -0,0 +1,3 @@ +import { ContentOptions } from '../options/content'; +declare const initContent: (opts: ContentOptions) => void; +export default initContent; diff --git a/assets/sweetalert/typings/modules/init/icon.d.ts b/assets/sweetalert/typings/modules/init/icon.d.ts new file mode 100644 index 0000000..f4ab618 --- /dev/null +++ b/assets/sweetalert/typings/modules/init/icon.d.ts @@ -0,0 +1,2 @@ +declare const initIcon: (str: string) => void; +export default initIcon; diff --git a/assets/sweetalert/typings/modules/init/index.d.ts b/assets/sweetalert/typings/modules/init/index.d.ts new file mode 100644 index 0000000..ff05210 --- /dev/null +++ b/assets/sweetalert/typings/modules/init/index.d.ts @@ -0,0 +1,3 @@ +import { SwalOptions } from '../options'; +export declare const init: (opts: SwalOptions) => void; +export default init; diff --git a/assets/sweetalert/typings/modules/init/modal.d.ts b/assets/sweetalert/typings/modules/init/modal.d.ts new file mode 100644 index 0000000..450750d --- /dev/null +++ b/assets/sweetalert/typings/modules/init/modal.d.ts @@ -0,0 +1,5 @@ +import { SwalOptions } from '../options'; +export declare const injectElIntoModal: (markup: string) => HTMLElement; +export declare const initModalContent: (opts: SwalOptions) => void; +declare const initModalOnce: () => void; +export default initModalOnce; diff --git a/assets/sweetalert/typings/modules/init/overlay.d.ts b/assets/sweetalert/typings/modules/init/overlay.d.ts new file mode 100644 index 0000000..3e92de9 --- /dev/null +++ b/assets/sweetalert/typings/modules/init/overlay.d.ts @@ -0,0 +1,2 @@ +declare const initOverlayOnce: () => void; +export default initOverlayOnce; diff --git a/assets/sweetalert/typings/modules/init/text.d.ts b/assets/sweetalert/typings/modules/init/text.d.ts new file mode 100644 index 0000000..e9bdd3d --- /dev/null +++ b/assets/sweetalert/typings/modules/init/text.d.ts @@ -0,0 +1,2 @@ +export declare const initTitle: (title: string) => void; +export declare const initText: (text: string) => void; diff --git a/assets/sweetalert/typings/modules/markup/buttons.d.ts b/assets/sweetalert/typings/modules/markup/buttons.d.ts new file mode 100644 index 0000000..75fcbfb --- /dev/null +++ b/assets/sweetalert/typings/modules/markup/buttons.d.ts @@ -0,0 +1 @@ +export declare const buttonMarkup: string; diff --git a/assets/sweetalert/typings/modules/markup/content.d.ts b/assets/sweetalert/typings/modules/markup/content.d.ts new file mode 100644 index 0000000..18c7aa3 --- /dev/null +++ b/assets/sweetalert/typings/modules/markup/content.d.ts @@ -0,0 +1 @@ +export declare const contentMarkup: string; diff --git a/assets/sweetalert/typings/modules/markup/icons.d.ts b/assets/sweetalert/typings/modules/markup/icons.d.ts new file mode 100644 index 0000000..922aaaa --- /dev/null +++ b/assets/sweetalert/typings/modules/markup/icons.d.ts @@ -0,0 +1,3 @@ +export declare const errorIconMarkup: () => string; +export declare const warningIconMarkup: () => string; +export declare const successIconMarkup: () => string; diff --git a/assets/sweetalert/typings/modules/markup/index.d.ts b/assets/sweetalert/typings/modules/markup/index.d.ts new file mode 100644 index 0000000..c03811b --- /dev/null +++ b/assets/sweetalert/typings/modules/markup/index.d.ts @@ -0,0 +1,9 @@ +export * from './modal'; +export { default as overlayMarkup } from './overlay'; +export * from './icons'; +export * from './content'; +export * from './buttons'; +export declare const iconMarkup: string; +export declare const titleMarkup: string; +export declare const textMarkup: string; +export declare const footerMarkup: string; diff --git a/assets/sweetalert/typings/modules/markup/modal.d.ts b/assets/sweetalert/typings/modules/markup/modal.d.ts new file mode 100644 index 0000000..63fc726 --- /dev/null +++ b/assets/sweetalert/typings/modules/markup/modal.d.ts @@ -0,0 +1,2 @@ +export declare const modalMarkup: string; +export default modalMarkup; diff --git a/assets/sweetalert/typings/modules/markup/overlay.d.ts b/assets/sweetalert/typings/modules/markup/overlay.d.ts new file mode 100644 index 0000000..8e7b3ae --- /dev/null +++ b/assets/sweetalert/typings/modules/markup/overlay.d.ts @@ -0,0 +1,2 @@ +declare const overlay: string; +export default overlay; diff --git a/assets/sweetalert/typings/modules/options/buttons.d.ts b/assets/sweetalert/typings/modules/options/buttons.d.ts new file mode 100644 index 0000000..a3f96c1 --- /dev/null +++ b/assets/sweetalert/typings/modules/options/buttons.d.ts @@ -0,0 +1,14 @@ +export interface ButtonOptions { + visible?: boolean; + text?: string; + value?: any; + className?: string | Array; + closeModal?: boolean; +} +export interface ButtonList { + [buttonNamespace: string]: ButtonOptions | boolean; +} +export declare const CONFIRM_KEY = "confirm"; +export declare const CANCEL_KEY = "cancel"; +export declare const defaultButtonList: ButtonList; +export declare const getButtonListOpts: (opts: string | boolean | object) => ButtonList; diff --git a/assets/sweetalert/typings/modules/options/content.d.ts b/assets/sweetalert/typings/modules/options/content.d.ts new file mode 100644 index 0000000..73c57bd --- /dev/null +++ b/assets/sweetalert/typings/modules/options/content.d.ts @@ -0,0 +1,5 @@ +export interface ContentOptions { + element: string | Node; + attributes?: object; +} +export declare const getContentOpts: (contentParam: string | object) => ContentOptions; diff --git a/assets/sweetalert/typings/modules/options/deprecations.d.ts b/assets/sweetalert/typings/modules/options/deprecations.d.ts new file mode 100644 index 0000000..0f3a034 --- /dev/null +++ b/assets/sweetalert/typings/modules/options/deprecations.d.ts @@ -0,0 +1,11 @@ +export declare const logDeprecation: (name: string) => void; +export interface OptionReplacement { + replacement?: string; + onlyRename?: boolean; + subOption?: string; + link?: string; +} +export interface OptionReplacementsList { + [name: string]: OptionReplacement; +} +export declare const DEPRECATED_OPTS: OptionReplacementsList; diff --git a/assets/sweetalert/typings/modules/options/index.d.ts b/assets/sweetalert/typings/modules/options/index.d.ts new file mode 100644 index 0000000..5c34468 --- /dev/null +++ b/assets/sweetalert/typings/modules/options/index.d.ts @@ -0,0 +1,16 @@ +import { ButtonList } from './buttons'; +import { ContentOptions } from './content'; +export interface SwalOptions { + title: string; + text: string; + icon: string; + buttons: ButtonList | Array; + content: ContentOptions; + className: string; + closeOnClickOutside: boolean; + closeOnEsc: boolean; + dangerMode: boolean; + timer: number; +} +export declare const setDefaults: (opts: object) => void; +export declare const getOpts: (...params: (string | Partial)[]) => SwalOptions; diff --git a/assets/sweetalert/typings/modules/state.d.ts b/assets/sweetalert/typings/modules/state.d.ts new file mode 100644 index 0000000..01d2654 --- /dev/null +++ b/assets/sweetalert/typings/modules/state.d.ts @@ -0,0 +1,27 @@ +export interface SwalState { + isOpen: boolean; + promise: { + resolve?(value: string): void; + reject?(): void; + }; + actions: { + [namespace: string]: { + value?: string | any; + closeModal?: boolean; + }; + }; + timer: number; +} +export interface ActionOptions { + [buttonNamespace: string]: { + value?: string; + closeModal?: boolean; + }; +} +declare let state: SwalState; +export declare const resetState: () => void; +export declare const setActionValue: (opts: string | ActionOptions) => void; +export declare const setActionOptionsFor: (buttonKey: string, {closeModal}?: { + closeModal?: boolean; +}) => void; +export default state; diff --git a/assets/sweetalert/typings/modules/utils.d.ts b/assets/sweetalert/typings/modules/utils.d.ts new file mode 100644 index 0000000..033f231 --- /dev/null +++ b/assets/sweetalert/typings/modules/utils.d.ts @@ -0,0 +1,7 @@ +export declare const getNode: (className: string) => HTMLElement; +export declare const stringToNode: (html: string) => HTMLElement; +export declare const insertAfter: (newNode: Node, referenceNode: Node) => void; +export declare const removeNode: (node: Node) => void; +export declare const throwErr: (message: string) => never; +export declare const isPlainObject: (value: any) => boolean; +export declare const ordinalSuffixOf: (num: number) => string; diff --git a/assets/sweetalert/typings/sweetalert.d.ts b/assets/sweetalert/typings/sweetalert.d.ts new file mode 100644 index 0000000..f7220ea --- /dev/null +++ b/assets/sweetalert/typings/sweetalert.d.ts @@ -0,0 +1,9 @@ +import swal, { SweetAlert } from "./core"; + +declare global { + const swal: SweetAlert; + const sweetAlert: SweetAlert; +} + +export default swal; +export as namespace swal; diff --git a/includes/breadcrumb.phtml b/includes/breadcrumb.phtml index a38c72d..86db7cf 100644 --- a/includes/breadcrumb.phtml +++ b/includes/breadcrumb.phtml @@ -2,9 +2,12 @@ $path = pathinfo($_SERVER['REQUEST_URI']); $pageName= explode("?", $path["basename"])[0]; ?> -
    -
  • Home
  • -
  • +
+ + \ No newline at end of file diff --git a/includes/footer-links.phtml b/includes/footer-links.phtml new file mode 100644 index 0000000..01cf583 --- /dev/null +++ b/includes/footer-links.phtml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/includes/footer.phtml b/includes/footer.phtml index b6ac57c..ce2a8ae 100644 --- a/includes/footer.phtml +++ b/includes/footer.phtml @@ -1,15 +1,15 @@ -