mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 09:05:45 +00:00
Rewrite Maps API to vanilla js
This commit is contained in:
parent
a422116f17
commit
d457300496
2
dist/icons/manifest.webapp
vendored
2
dist/icons/manifest.webapp
vendored
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "4.0.4",
|
"version": "4.0.5",
|
||||||
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react",
|
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react",
|
||||||
"description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
"description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
||||||
"icons": {
|
"icons": {
|
||||||
|
2
dist/icons/yandex-browser-manifest.json
vendored
2
dist/icons/yandex-browser-manifest.json
vendored
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "4.0.4",
|
"version": "4.0.5",
|
||||||
"api_version": 1,
|
"api_version": 1,
|
||||||
"layout": {
|
"layout": {
|
||||||
"logo": "yandex-browser-50x50.png",
|
"logo": "yandex-browser-50x50.png",
|
||||||
|
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1,4 +1,4 @@
|
|||||||
<!doctype html><html lang="en"><head><title>Webpack Bootstrap 4 UI Demo</title><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="description" content="UI Kit"/><meta name="author" content="Tony Air <tony@twma.pro>"/><meta name="ping" content="/Security/ping"/><meta name="api_url" content="http://127.0.0.1/graphql"/><meta name="api_static_domain" content="http://127.0.0.1"/><meta name="swversion" content="sw-1625755140944"/><base href=""/><script defer="defer" src="js/app.js"></script><script defer="defer" src="js/app_sw.js"></script><link href="css/app.css" rel="stylesheet"/></head><body data-default-lng="0" data-default-lat="0"><div class="wrapper"><style>@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(1.35rem,0)}}body,html{font-size:14px;margin:0;padding:0;background:#fff;color:#333;overflow-x:hidden}@media (min-width:2000px){body,html{font-size:.9vw}}#PageLoading{position:fixed;left:0;top:0;margin:0;width:100%!important;height:100%!important;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:2000;will-change:opacity;background:#212529;color:#212529}#PageLoading .logo{filter:invert(1);margin-left:20px;margin-left:2vw;width:100px;width:12.5vw}#PageLoading .tagline{color:#fff;font-size:1.8rem;font-size:4vh;letter-spacing:.25em}.main-bn{position:fixed;top:0;left:0;width:100%;z-index:99999999;padding:.5rem 1rem;text-align:center;color:#fff;background:red}iframe,img{max-width:100%}.loading-spinner{text-align:center}.lds-ellipsis{display:inline-block;position:relative;width:4.57rem;height:1rem;color:#fff}.lds-ellipsis div{position:absolute;top:.15rem;width:.78rem;height:.78rem;border-radius:50%;background:#888;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:.42rem;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:.9rem;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:1.85rem;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:3.21rem;animation:lds-ellipsis3 .6s infinite}@keyframes lds-text{from{font-size:1em}to{font-size:1.5em}}.lds-text{position:absolute;top:50%;left:50%;margin-left:-5rem;margin-top:8rem;font-size:.8rem;letter-spacing:.25em;color:#fff}.lds-text b{font-weight:300;animation:lds-text 5s ease infinite alternate}.lds-text b:nth-child(1){animation-delay:.5s}.lds-text b:nth-child(2){animation-delay:1s}.lds-text b:nth-child(3){animation-delay:1.5s}.lds-text b:nth-child(4){animation-delay:2s}.lds-text b:nth-child(5){animation-delay:2.5s}.lds-text b:nth-child(6){animation-delay:3s}.lds-text b:nth-child(7){animation-delay:3.5s}.lds-text b:nth-child(8){animation-delay:4s}.lds-text b:nth-child(9){animation-delay:4.5s}.lds-text b:nth-child(10){animation-delay:5s}@media (orientation:portrait){#PageLoading .logo{width:50vw}#PageLoading .tagline{font-size:4vw}}</style><div id="PageLoading"><div class="loading-spinner"><img class="logo" src="553e7ebe0c796ce32ab6.svg" width="200" alt="UI Kit"/><br/><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div><br/><div class="lds-placeholder">LOADING...</div><div class="lds-text"><b>L</b> <b>O</b> <b>A</b> <b>D</b> <b>I</b> <b>N</b> <b>G</b> <b>.</b> <b>.</b> <b>.</b></div></div></div><div id="SiteWideAlerts" class="offline-message"><div class="alert alert-danger alert-offline alert-dismissible fade show" role="alert"><div class="typography">The Internet connection is missing right now, but you're able to browse previously opened pages offline.</div><button type="button" class="btn btn-danger btn-close" data-bs-dismiss="alert" aria-label="Close"><i class="fas fa-times"></i></button></div><noscript><div class="main-bn alert alert-fixed-top alert-danger" role="alert">Please, enable javascript.</div></noscript><!--[if lt IE 11
|
<!doctype html><html lang="en"><head><title>Webpack Bootstrap 4 UI Demo</title><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="description" content="UI Kit"/><meta name="author" content="Tony Air <tony@twma.pro>"/><meta name="ping" content="/Security/ping"/><meta name="api_url" content="http://127.0.0.1/graphql"/><meta name="api_static_domain" content="http://127.0.0.1"/><meta name="swversion" content="sw-1626734501948"/><base href=""/><script defer="defer" src="js/app.js"></script><script defer="defer" src="js/app_sw.js"></script><link href="css/app.css" rel="stylesheet"/></head><body data-default-lng="0" data-default-lat="0"><div class="wrapper"><style>@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(1.35rem,0)}}body,html{font-size:14px;margin:0;padding:0;background:#fff;color:#333;overflow-x:hidden}@media (min-width:2000px){body,html{font-size:.9vw}}#PageLoading{position:fixed;left:0;top:0;margin:0;width:100%!important;height:100%!important;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:2000;will-change:opacity;background:#212529;color:#212529}#PageLoading .logo{filter:invert(1);margin-left:20px;margin-left:2vw;width:100px;width:12.5vw}#PageLoading .tagline{color:#fff;font-size:1.8rem;font-size:4vh;letter-spacing:.25em}.main-bn{position:fixed;top:0;left:0;width:100%;z-index:99999999;padding:.5rem 1rem;text-align:center;color:#fff;background:red}iframe,img{max-width:100%}.loading-spinner{text-align:center}.lds-ellipsis{display:inline-block;position:relative;width:4.57rem;height:1rem;color:#fff}.lds-ellipsis div{position:absolute;top:.15rem;width:.78rem;height:.78rem;border-radius:50%;background:#888;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis div:nth-child(1){left:.42rem;animation:lds-ellipsis1 .6s infinite}.lds-ellipsis div:nth-child(2){left:.9rem;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(3){left:1.85rem;animation:lds-ellipsis2 .6s infinite}.lds-ellipsis div:nth-child(4){left:3.21rem;animation:lds-ellipsis3 .6s infinite}@keyframes lds-text{from{font-size:1em}to{font-size:1.5em}}.lds-text{position:absolute;top:50%;left:50%;margin-left:-5rem;margin-top:8rem;font-size:.8rem;letter-spacing:.25em;color:#fff}.lds-text b{font-weight:300;animation:lds-text 5s ease infinite alternate}.lds-text b:nth-child(1){animation-delay:.5s}.lds-text b:nth-child(2){animation-delay:1s}.lds-text b:nth-child(3){animation-delay:1.5s}.lds-text b:nth-child(4){animation-delay:2s}.lds-text b:nth-child(5){animation-delay:2.5s}.lds-text b:nth-child(6){animation-delay:3s}.lds-text b:nth-child(7){animation-delay:3.5s}.lds-text b:nth-child(8){animation-delay:4s}.lds-text b:nth-child(9){animation-delay:4.5s}.lds-text b:nth-child(10){animation-delay:5s}@media (orientation:portrait){#PageLoading .logo{width:50vw}#PageLoading .tagline{font-size:4vw}}</style><div id="PageLoading"><div class="loading-spinner"><img class="logo" src="553e7ebe0c796ce32ab6.svg" width="200" alt="UI Kit"/><br/><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div><br/><div class="lds-placeholder">LOADING...</div><div class="lds-text"><b>L</b> <b>O</b> <b>A</b> <b>D</b> <b>I</b> <b>N</b> <b>G</b> <b>.</b> <b>.</b> <b>.</b></div></div></div><div id="SiteWideAlerts" class="offline-message"><div class="alert alert-danger alert-offline alert-dismissible fade show" role="alert"><div class="typography">The Internet connection is missing right now, but you're able to browse previously opened pages offline.</div><button type="button" class="btn btn-danger btn-close" data-bs-dismiss="alert" aria-label="Close"><i class="fas fa-times"></i></button></div><noscript><div class="main-bn alert alert-fixed-top alert-danger" role="alert">Please, enable javascript.</div></noscript><!--[if lt IE 11
|
||||||
]><div class="main-bn alert alert-danger" role="alert">
|
]><div class="main-bn alert alert-danger" role="alert">
|
||||||
<a
|
<a
|
||||||
href="https://www.google.com/chrome/browser/desktop/"
|
href="https://www.google.com/chrome/browser/desktop/"
|
||||||
|
2
dist/js/app.js
vendored
2
dist/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/app_sw.js
vendored
2
dist/js/app_sw.js
vendored
@ -1 +1 @@
|
|||||||
!function(){var e={5366:function(e){e.exports=function log(e){false}},4995:function(e){Cache.prototype.add||(Cache.prototype.add=function add(e){return this.addAll([e])}),Cache.prototype.addAll||(Cache.prototype.addAll=function addAll(e){var t=this;function NetworkError(e){this.name="NetworkError",this.code=19,this.message=e}return NetworkError.prototype=Object.create(Error.prototype),Promise.resolve().then((function(){if(arguments.length<1)throw new TypeError;return e=e.map((function(e){return e instanceof Request?e:String(e)})),Promise.all(e.map((function(e){"string"===typeof e&&(e=new Request(e));var t=new URL(e.url).protocol;if("http:"!==t&&"https:"!==t)throw new NetworkError("Invalid scheme");return fetch(e.clone())})))})).then((function(n){return Promise.all(n.map((function(n,r){return t.put(e[r],n)})))})).then((function(){}))}),CacheStorage.prototype.match||(CacheStorage.prototype.match=function match(e,t){var n=this;return this.keys().then((function(r){var o;return r.reduce((function(r,a){return r.then((function(){return o||n.open(a).then((function(n){return n.match(e,t)})).then((function(e){return o=e}))}))}),Promise.resolve())}))}),e.exports=self.caches}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,__webpack_require__),o.exports}!function(){var e="".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react","-sw"),t="".concat("4.0.4","-sw"),n=__webpack_require__(5366),r=__webpack_require__(4995);if("string"!==typeof e)throw new Error("Cache Name cannot be empty");self.addEventListener("fetch",(function(t){if("GET"===t.request.method){var o=new URL(t.request.url);if(o.pathname.indexOf("admin")>=0||o.pathname.indexOf("Security")>=0||o.pathname.indexOf("/dev")>=0)n("SW: skip admin ".concat(t.request.url));else{var a=t.request.clone(),c=t.request.clone();t.respondWith(fetch(a).then((function(n){var o=n.clone();return r.open(e).then((function(e){var n=t.request.clone();e.put(n,o)})),n})).catch((function(e){return n("SW: fetch failed"),r.match(c)})))}}})),self.addEventListener("activate",(function(o){n("SW: activated: ".concat(t)),o.waitUntil(r.delete(e))})),self.addEventListener("install",(function(e){n("SW: installing version: ".concat(t))}))}()}();
|
!function(){var e={6523:function(e){e.exports=function log(e){false}},2231:function(e){Cache.prototype.add||(Cache.prototype.add=function add(e){return this.addAll([e])}),Cache.prototype.addAll||(Cache.prototype.addAll=function addAll(e){var t=this;function NetworkError(e){this.name="NetworkError",this.code=19,this.message=e}return NetworkError.prototype=Object.create(Error.prototype),Promise.resolve().then((function(){if(arguments.length<1)throw new TypeError;return e=e.map((function(e){return e instanceof Request?e:String(e)})),Promise.all(e.map((function(e){"string"===typeof e&&(e=new Request(e));var t=new URL(e.url).protocol;if("http:"!==t&&"https:"!==t)throw new NetworkError("Invalid scheme");return fetch(e.clone())})))})).then((function(n){return Promise.all(n.map((function(n,r){return t.put(e[r],n)})))})).then((function(){}))}),CacheStorage.prototype.match||(CacheStorage.prototype.match=function match(e,t){var n=this;return this.keys().then((function(r){var o;return r.reduce((function(r,a){return r.then((function(){return o||n.open(a).then((function(n){return n.match(e,t)})).then((function(e){return o=e}))}))}),Promise.resolve())}))}),e.exports=self.caches}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,__webpack_require__),o.exports}!function(){var e="".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react","-sw"),t="".concat("4.0.5","-sw"),n=__webpack_require__(6523),r=__webpack_require__(2231);if("string"!==typeof e)throw new Error("Cache Name cannot be empty");self.addEventListener("fetch",(function(t){if("GET"===t.request.method){var o=new URL(t.request.url);if(o.pathname.indexOf("admin")>=0||o.pathname.indexOf("Security")>=0||o.pathname.indexOf("/dev")>=0)n("SW: skip admin ".concat(t.request.url));else{var a=t.request.clone(),c=t.request.clone();t.respondWith(fetch(a).then((function(n){var o=n.clone();return r.open(e).then((function(e){var n=t.request.clone();e.put(n,o)})),n})).catch((function(e){return n("SW: fetch failed"),r.match(c)})))}}})),self.addEventListener("activate",(function(o){n("SW: activated: ".concat(t)),o.waitUntil(r.delete(e))})),self.addEventListener("install",(function(e){n("SW: installing version: ".concat(t))}))}()}();
|
339
dist/records.json
vendored
339
dist/records.json
vendored
@ -14,44 +14,44 @@
|
|||||||
},
|
},
|
||||||
"modules": {
|
"modules": {
|
||||||
"byIdentifier": {
|
"byIdentifier": {
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/runtime/getUrl.js": 111,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/runtime/getUrl.js": 356,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./node_modules/.pnpm/@a2nt+meta-lightbox-react@3.1.3_debug@4.3.2/node_modules/@a2nt/meta-lightbox-react/src/html/meta-lightbox.html": 593,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./node_modules/.pnpm/@a2nt+meta-lightbox-react@3.1.4_debug@4.3.2/node_modules/@a2nt/meta-lightbox-react/src/html/meta-lightbox.html": 552,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Elements/Accordion.html": 713,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Elements/Accordion.html": 634,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Elements/Content.html": 348,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Elements/Content.html": 413,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Elements/ElementsList.html": 830,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Elements/ElementsList.html": 980,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Elements/Map.html": 835,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Elements/Map.html": 712,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/First.html": 530,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/First.html": 842,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Footer.html": 404,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Footer.html": 794,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Head.html": 468,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Head.html": 578,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Last.html": 371,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Last.html": 91,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Navigation.html": 296,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Navigation.html": 226,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/Slider.html": 706,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/Slider.html": 974,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/_components/Alerts.html": 182,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/_components/Alerts.html": 478,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/_components/Flyout.html": 659,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/_components/Flyout.html": 273,
|
||||||
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.43.0/node_modules/html-loader/dist/cjs.js!./src/html/_components/LoadingSpinner.html": 394,
|
"./node_modules/.pnpm/html-loader@2.1.2_webpack@5.45.1/node_modules/html-loader/dist/cjs.js!./src/html/_components/LoadingSpinner.html": 362,
|
||||||
"./node_modules/.pnpm/html-webpack-plugin@5.3.2_webpack@5.43.0/node_modules/html-webpack-plugin/lib/loader.js!./src/index.html": 419,
|
"./node_modules/.pnpm/html-webpack-plugin@5.3.2_webpack@5.45.1/node_modules/html-webpack-plugin/lib/loader.js!./src/index.html": 676,
|
||||||
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.43.0/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/logo.svg": 276,
|
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.45.1/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/logo.svg": 925,
|
||||||
"data:text/javascript,__webpack_public_path__ = __webpack_base_uri__ = htmlWebpackPluginPublicPath;": 295
|
"data:text/javascript,__webpack_public_path__ = __webpack_base_uri__ = htmlWebpackPluginPublicPath;": 295
|
||||||
},
|
},
|
||||||
"usedIds": [
|
"usedIds": [
|
||||||
111,
|
91,
|
||||||
182,
|
226,
|
||||||
276,
|
273,
|
||||||
295,
|
295,
|
||||||
296,
|
356,
|
||||||
348,
|
362,
|
||||||
371,
|
413,
|
||||||
394,
|
478,
|
||||||
404,
|
552,
|
||||||
419,
|
578,
|
||||||
468,
|
634,
|
||||||
530,
|
676,
|
||||||
593,
|
712,
|
||||||
659,
|
794,
|
||||||
706,
|
842,
|
||||||
713,
|
925,
|
||||||
830,
|
974,
|
||||||
835
|
980
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -70,142 +70,167 @@
|
|||||||
898
|
898
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"mini-css-extract-plugin /mnt/data/srv/dist/repositories/webpack-bootstrap-ui-kit/node_modules/.pnpm/css-loader@5.2.7_webpack@5.45.1/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/.pnpm/resolve-url-loader@4.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@12.1.0_node-sass@6.0.1+webpack@5.45.1/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./src/scss/app.scss": [
|
||||||
|
{
|
||||||
|
"chunks": {
|
||||||
|
"byName": {
|
||||||
|
"child": 396
|
||||||
|
},
|
||||||
|
"bySource": {
|
||||||
|
"0 child": 396
|
||||||
|
},
|
||||||
|
"usedIds": [
|
||||||
|
396
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"modules": {
|
||||||
|
"byIdentifier": {
|
||||||
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/css-loader@5.2.7_webpack@5.45.1/node_modules/css-loader/dist/runtime/api.js": 390,
|
||||||
|
"./node_modules/.pnpm/css-loader@5.2.7_webpack@5.45.1/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/.pnpm/resolve-url-loader@4.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@12.1.0_node-sass@6.0.1+webpack@5.45.1/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./src/scss/app.scss": 929
|
||||||
|
},
|
||||||
|
"usedIds": [
|
||||||
|
390,
|
||||||
|
929
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"modules": {
|
"modules": {
|
||||||
"byIdentifier": {
|
"byIdentifier": {
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/cache/inmemory/types.js": 7311,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/cache/inmemory/types.js": 8927,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/core/index.js": 5316,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/core/index.js": 7408,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/core/types.js": 1279,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/core/types.js": 8513,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/index.js": 3378,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/index.js": 4992,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/link/core/ApolloLink.js|79727aeb2ce6b386f8542863955a8447": 1738,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/link/core/ApolloLink.js|c5c3a7008a92ff8dfa8a832b631c2310": 6459,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/link/core/index.js|dacf83d333a40ac5fed95e465b3d29d4": 3905,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/link/core/index.js|18d697f551ecf04b78fe4085f76aed4e": 4987,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/react/index.js": 5479,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/react/index.js": 6938,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/react/types/types.js": 6040,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/react/types/types.js": 2426,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/utilities/graphql/fragments.js": 418,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/utilities/graphql/fragments.js": 355,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/utilities/graphql/getFromAST.js": 1992,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/utilities/graphql/getFromAST.js": 510,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/utilities/graphql/storeUtils.js": 7997,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/@apollo+client@3.3.21_graphql@15.5.1+react@17.0.2/node_modules/@apollo/client/utilities/graphql/storeUtils.js": 3206,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/index.js": 8613,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/index.js": 2623,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/adapters/xhr.js": 4803,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/adapters/xhr.js": 2018,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/axios.js": 5810,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/axios.js": 6089,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/cancel/Cancel.js": 5028,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/cancel/Cancel.js": 1385,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/cancel/CancelToken.js": 6582,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/cancel/CancelToken.js": 7251,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/cancel/isCancel.js": 3194,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/cancel/isCancel.js": 7534,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/Axios.js": 2736,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/Axios.js": 194,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/InterceptorManager.js": 8461,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/InterceptorManager.js": 2802,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/buildFullPath.js": 9670,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/buildFullPath.js": 4945,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/createError.js": 6270,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/createError.js": 894,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/dispatchRequest.js": 8361,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/dispatchRequest.js": 1223,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/enhanceError.js": 2331,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/enhanceError.js": 5593,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/mergeConfig.js": 9214,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/mergeConfig.js": 430,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/settle.js": 7949,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/settle.js": 3553,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/transformData.js": 8627,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/core/transformData.js": 3097,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/defaults.js": 283,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/defaults.js": 3235,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/bind.js": 3066,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/bind.js": 4554,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/buildURL.js": 271,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/buildURL.js": 9201,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/combineURLs.js": 4637,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/combineURLs.js": 606,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/cookies.js": 8092,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/cookies.js": 9928,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/isAbsoluteURL.js": 8699,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/isAbsoluteURL.js": 8889,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/isAxiosError.js": 3002,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/isAxiosError.js": 4060,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/isURLSameOrigin.js": 605,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/isURLSameOrigin.js": 6140,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/normalizeHeaderName.js": 5570,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/normalizeHeaderName.js": 559,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/parseHeaders.js": 755,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/parseHeaders.js": 4003,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/spread.js": 3881,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/helpers/spread.js": 9355,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/utils.js": 3855,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/axios@0.21.1_debug@4.3.2/node_modules/axios/lib/utils.js": 4820,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/balanced-match@2.0.0/node_modules/balanced-match/index.js": 8175,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/balanced-match@2.0.0/node_modules/balanced-match/index.js": 798,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js": 1650,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js": 3464,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/fast-json-stable-stringify@2.1.0/node_modules/fast-json-stable-stringify/index.js": 2420,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/fast-json-stable-stringify@2.1.0/node_modules/fast-json-stable-stringify/index.js": 4462,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/keyboardjs@2.6.4/node_modules/keyboardjs/dist/keyboard.js": 4516,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/keyboardjs@2.6.4/node_modules/keyboardjs/dist/keyboard.js": 8711,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch/minimatch.js": 2607,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch/minimatch.js": 4962,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/prop-types@15.7.2/node_modules/prop-types/factoryWithThrowingShims.js": 3021,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/prop-types@15.7.2/node_modules/prop-types/factoryWithThrowingShims.js": 1761,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/prop-types@15.7.2/node_modules/prop-types/index.js": 4891,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/prop-types@15.7.2/node_modules/prop-types/index.js": 9977,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/prop-types@15.7.2/node_modules/prop-types/lib/ReactPropTypesSecret.js": 815,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/prop-types@15.7.2/node_modules/prop-types/lib/ReactPropTypesSecret.js": 4617,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/react-easy-swipe@0.0.21/node_modules/react-easy-swipe/lib/index.js": 3115,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/react-easy-swipe@0.0.21/node_modules/react-easy-swipe/lib/index.js": 8329,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/react-easy-swipe@0.0.21/node_modules/react-easy-swipe/lib/react-swipe.js": 9709,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/react-easy-swipe@0.0.21/node_modules/react-easy-swipe/lib/react-swipe.js": 4009,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/react-tiny-oembed@1.0.2_ab97f7b85b850fa10d0a949229228d2b/node_modules/react-tiny-oembed/lib/index.js": 1744,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/react-tiny-oembed@1.1.0_ab97f7b85b850fa10d0a949229228d2b/node_modules/react-tiny-oembed/lib/index.js": 4512,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/ts-invariant@0.7.5/node_modules/ts-invariant/lib/invariant.esm.js": 9230,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/ts-invariant@0.7.5/node_modules/ts-invariant/lib/invariant.esm.js": 7454,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/tslib@2.3.0/node_modules/tslib/tslib.es6.js": 6700,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/tslib@2.3.0/node_modules/tslib/tslib.es6.js": 6771,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/zen-observable@0.8.15/node_modules/zen-observable/index.js": 1972,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/zen-observable@0.8.15/node_modules/zen-observable/index.js": 1342,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/zen-observable@0.8.15/node_modules/zen-observable/lib/Observable.js": 5203,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/zen-observable@0.8.15/node_modules/zen-observable/lib/Observable.js": 8851,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/_components/_main.funcs.js": 2922,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/_components/_main.funcs.js": 2420,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/app.js|c3c730d6e8b7a99625c0b3565b1dc1eb": 1473,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/app.js|43c139ddd3dcc33b4aa5185981c1dd30": 9034,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/lib/log.js": 5366,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/lib/log.js": 6523,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/types/sw.js": 498,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./src/js/types/sw.js": 9858,
|
||||||
"./node_modules/.pnpm/babel-loader@8.2.2_e7431049596ca7d8e471cf156405ac73/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./thirdparty/serviceworker-caches.js": 4995,
|
"./node_modules/.pnpm/babel-loader@8.2.2_83afa9dfc9d2abf24d72ba2d4f88c1d9/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./thirdparty/serviceworker-caches.js": 2231,
|
||||||
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.43.0/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/bg.png": 5752,
|
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.45.1/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/bg.png": 1172,
|
||||||
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.43.0/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/logo.svg": 5276,
|
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.45.1/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/logo.svg": 9925,
|
||||||
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.43.0/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/photo1.png": 9195,
|
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.45.1/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/photo1.png": 1749,
|
||||||
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.43.0/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/photo3.svg": 7329,
|
"./node_modules/.pnpm/img-optimize-loader@1.0.7_file-loader@6.2.0+webpack@5.45.1/node_modules/img-optimize-loader/dist/index.js??ruleSet[1].rules[4].use[0]!./src/img/photo3.svg": 103,
|
||||||
"./node_modules/font-awesome|sync|nonrecursive|../../../../../../\\.(otf|eot|svg|ttf|woff|woff2)$/": 3761,
|
"./node_modules/font-awesome|sync|nonrecursive|../../../../../../\\.(otf|eot|svg|ttf|woff|woff2)$/": 3761,
|
||||||
"./src/img|sync|nonrecursive|../../../../../../\\.(png|jpe?g|svg)$/": 9310,
|
"./src/img|sync|nonrecursive|../../../../../../\\.(png|jpe?g|svg)$/": 9310,
|
||||||
"external \"React\"": 3804,
|
"external \"React\"": 3804,
|
||||||
"ignored|./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch|path": 2061
|
"ignored|./node_modules/.pnpm/minimatch@3.0.4/node_modules/minimatch|path": 2061
|
||||||
},
|
},
|
||||||
"usedIds": [
|
"usedIds": [
|
||||||
271,
|
103,
|
||||||
283,
|
194,
|
||||||
418,
|
355,
|
||||||
498,
|
430,
|
||||||
605,
|
510,
|
||||||
755,
|
559,
|
||||||
815,
|
606,
|
||||||
1279,
|
798,
|
||||||
1473,
|
894,
|
||||||
1650,
|
1172,
|
||||||
1738,
|
1223,
|
||||||
1744,
|
1342,
|
||||||
1972,
|
1385,
|
||||||
1992,
|
1749,
|
||||||
|
1761,
|
||||||
|
2018,
|
||||||
2061,
|
2061,
|
||||||
2331,
|
2231,
|
||||||
2420,
|
2420,
|
||||||
2607,
|
2426,
|
||||||
2736,
|
2623,
|
||||||
2922,
|
2802,
|
||||||
3002,
|
3097,
|
||||||
3021,
|
3206,
|
||||||
3066,
|
3235,
|
||||||
3115,
|
3464,
|
||||||
3194,
|
3553,
|
||||||
3378,
|
|
||||||
3761,
|
3761,
|
||||||
3804,
|
3804,
|
||||||
3855,
|
4003,
|
||||||
3881,
|
4009,
|
||||||
3905,
|
4060,
|
||||||
4516,
|
4462,
|
||||||
4637,
|
4512,
|
||||||
4803,
|
4554,
|
||||||
4891,
|
4617,
|
||||||
4995,
|
4820,
|
||||||
5028,
|
4945,
|
||||||
5203,
|
4962,
|
||||||
5276,
|
4987,
|
||||||
5316,
|
4992,
|
||||||
5366,
|
5593,
|
||||||
5479,
|
6089,
|
||||||
5570,
|
6140,
|
||||||
5752,
|
6459,
|
||||||
5810,
|
6523,
|
||||||
6040,
|
6771,
|
||||||
6270,
|
6938,
|
||||||
6582,
|
7251,
|
||||||
6700,
|
7408,
|
||||||
7311,
|
7454,
|
||||||
7329,
|
7534,
|
||||||
7949,
|
8329,
|
||||||
7997,
|
8513,
|
||||||
8092,
|
8711,
|
||||||
8175,
|
8851,
|
||||||
8361,
|
8889,
|
||||||
8461,
|
8927,
|
||||||
8613,
|
9034,
|
||||||
8627,
|
9201,
|
||||||
8699,
|
|
||||||
9195,
|
|
||||||
9214,
|
|
||||||
9230,
|
|
||||||
9310,
|
9310,
|
||||||
9670,
|
9355,
|
||||||
9709
|
9858,
|
||||||
|
9925,
|
||||||
|
9928,
|
||||||
|
9977
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
4
dist/report.html
vendored
4
dist/report.html
vendored
File diff suppressed because one or more lines are too long
20
package.json
20
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react",
|
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react",
|
||||||
"version": "4.0.4",
|
"version": "4.0.5",
|
||||||
"description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
"description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
||||||
"author": "Tony Air <tony@twma.pro>",
|
"author": "Tony Air <tony@twma.pro>",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
@ -49,9 +49,9 @@
|
|||||||
"ie>=11"
|
"ie>=11"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@a2nt/meta-lightbox-react": "^3.1.3",
|
"@a2nt/meta-lightbox-react": "^3.1.4",
|
||||||
"@angular/common": "^12.1.1",
|
"@angular/common": "^12.1.2",
|
||||||
"@angular/core": "^12.1.1",
|
"@angular/core": "^12.1.2",
|
||||||
"@apollo/client": "^3.3.21",
|
"@apollo/client": "^3.3.21",
|
||||||
"@jsanahuja/instagramfeed": "github:jsanahuja/instagramfeed",
|
"@jsanahuja/instagramfeed": "github:jsanahuja/instagramfeed",
|
||||||
"@popperjs/core": "^2.9.2",
|
"@popperjs/core": "^2.9.2",
|
||||||
@ -78,7 +78,7 @@
|
|||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-easy-swipe": "^0.0.21",
|
"react-easy-swipe": "^0.0.21",
|
||||||
"react-tiny-oembed": "^1.0.2",
|
"react-tiny-oembed": "^1.1.0",
|
||||||
"rxjs": "^7.2.0",
|
"rxjs": "^7.2.0",
|
||||||
"select2": "^4.0.13",
|
"select2": "^4.0.13",
|
||||||
"setimmediate": "^1.0.5"
|
"setimmediate": "^1.0.5"
|
||||||
@ -105,16 +105,16 @@
|
|||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
"ansi-html": "^0.0.7",
|
"ansi-html": "^0.0.7",
|
||||||
"ansi-regex": "^6.0.0",
|
"ansi-regex": "^6.0.0",
|
||||||
"autoprefixer": "^10.2.6",
|
"autoprefixer": "^10.3.1",
|
||||||
"babel-loader": "^8.2.2",
|
"babel-loader": "^8.2.2",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.1",
|
||||||
"copy-webpack-plugin": "^9.0.1",
|
"copy-webpack-plugin": "^9.0.1",
|
||||||
"croppie": "^2.6.5",
|
"croppie": "^2.6.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"css-loader": "^5.2.6",
|
"css-loader": "^5.2.7",
|
||||||
"css-minimizer-webpack-plugin": "^3.0.2",
|
"css-minimizer-webpack-plugin": "^3.0.2",
|
||||||
"debug": "^4.3.2",
|
"debug": "^4.3.2",
|
||||||
"eslint": "^7.30.0",
|
"eslint": "^7.31.0",
|
||||||
"eslint-plugin-import": "^2.23.4",
|
"eslint-plugin-import": "^2.23.4",
|
||||||
"eslint-plugin-jquery": "^1.5.1",
|
"eslint-plugin-jquery": "^1.5.1",
|
||||||
"eslint-plugin-react": "^7.24.0",
|
"eslint-plugin-react": "^7.24.0",
|
||||||
@ -170,10 +170,10 @@
|
|||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
"url": "^0.11.0",
|
"url": "^0.11.0",
|
||||||
"url-loader": "^4.1.1",
|
"url-loader": "^4.1.1",
|
||||||
"webpack": "^5.43.0",
|
"webpack": "^5.45.1",
|
||||||
"webpack-bundle-analyzer": "^4.4.2",
|
"webpack-bundle-analyzer": "^4.4.2",
|
||||||
"webpack-cli": "^4.7.2",
|
"webpack-cli": "^4.7.2",
|
||||||
"webpack-dev-server": "^4.0.0-beta.3",
|
"webpack-dev-server": "^4.0.0-rc.0",
|
||||||
"webpack-manifest-plugin": "^3.1.1",
|
"webpack-manifest-plugin": "^3.1.1",
|
||||||
"webpack-merge": "^5.8.0",
|
"webpack-merge": "^5.8.0",
|
||||||
"yarn": "^1.22.10",
|
"yarn": "^1.22.10",
|
||||||
|
@ -2,82 +2,82 @@ import Events from '../_events';
|
|||||||
import Carousel from 'bootstrap/js/src/carousel';
|
import Carousel from 'bootstrap/js/src/carousel';
|
||||||
|
|
||||||
const CarouselUI = ((window) => {
|
const CarouselUI = ((window) => {
|
||||||
const NAME = 'js-carousel';
|
const NAME = 'js-carousel';
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
console.log(`${NAME}: init`);
|
console.log(`${NAME}: init`);
|
||||||
|
|
||||||
document.querySelectorAll(`.${NAME}`).forEach((el, i) => {
|
document.querySelectorAll(`.${NAME}`).forEach((el, i) => {
|
||||||
const carousel = new Carousel(el);
|
const carousel = new Carousel(el);
|
||||||
// create next/prev arrows
|
// create next/prev arrows
|
||||||
if (el.dataset.bsArrows) {
|
if (el.dataset.bsArrows) {
|
||||||
const next = document.createElement('button');
|
const next = document.createElement('button');
|
||||||
next.classList.add('carousel-control-next');
|
next.classList.add('carousel-control-next');
|
||||||
next.setAttribute('type', 'button');
|
next.setAttribute('type', 'button');
|
||||||
next.setAttribute('data-bs-target', el.getAttribute('id'));
|
next.setAttribute('data-bs-target', el.getAttribute('id'));
|
||||||
next.setAttribute('data-bs-slide', 'next');
|
next.setAttribute('data-bs-slide', 'next');
|
||||||
next.addEventListener('click', (e) => {
|
next.addEventListener('click', (e) => {
|
||||||
carousel.next();
|
carousel.next();
|
||||||
});
|
|
||||||
next.innerHTML = '<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>';
|
|
||||||
el.appendChild(next);
|
|
||||||
|
|
||||||
const prev = document.createElement('button');
|
|
||||||
prev.setAttribute('type', 'button');
|
|
||||||
prev.classList.add('carousel-control-prev');
|
|
||||||
prev.setAttribute('data-bs-target', el.getAttribute('id'));
|
|
||||||
prev.setAttribute('data-bs-slide', 'prev');
|
|
||||||
prev.addEventListener('click', (e) => {
|
|
||||||
carousel.prev();
|
|
||||||
});
|
|
||||||
prev.innerHTML = '<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>';
|
|
||||||
el.appendChild(prev);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (el.dataset.bsIndicators) {
|
|
||||||
const indicators = document.createElement('div');
|
|
||||||
indicators.classList.add('carousel-indicators');
|
|
||||||
const items = el.querySelectorAll('.carousel-item');
|
|
||||||
let i = 0;
|
|
||||||
while (i < items.length) {
|
|
||||||
const ind = document.createElement('button');
|
|
||||||
ind.setAttribute('type', 'button');
|
|
||||||
if (i == 0) {
|
|
||||||
ind.classList.add('active');
|
|
||||||
}
|
|
||||||
ind.setAttribute('data-bs-target', el.getAttribute('id'));
|
|
||||||
ind.setAttribute('data-bs-slide-to', i);
|
|
||||||
|
|
||||||
ind.addEventListener('click', (e) => {
|
|
||||||
const target = e.target;
|
|
||||||
carousel.to(target.getAttribute('data-bs-slide-to'));
|
|
||||||
indicators.querySelectorAll('.active').forEach((ind2) => {
|
|
||||||
ind2.classList.remove('active');
|
|
||||||
});
|
|
||||||
target.classList.add('active');
|
|
||||||
});
|
|
||||||
|
|
||||||
indicators.appendChild(ind);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
el.appendChild(indicators);
|
|
||||||
el.addEventListener('slide.bs.carousel', (e) => {
|
|
||||||
el.querySelectorAll('.carousel-indicators .active').forEach((ind2) => {
|
|
||||||
ind2.classList.remove('active');
|
|
||||||
});
|
|
||||||
el.querySelectorAll(`.carousel-indicators [data-bs-slide-to="${ e.to }"]`).forEach((ind2) => {
|
|
||||||
ind2.classList.add('active');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
el.classList.add(`${NAME}-active`);
|
|
||||||
});
|
});
|
||||||
};
|
next.innerHTML = '<span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span>';
|
||||||
|
el.appendChild(next);
|
||||||
|
|
||||||
window.addEventListener(`${Events.LODEDANDREADY}`, init);
|
const prev = document.createElement('button');
|
||||||
window.addEventListener(`${Events.AJAX}`, init);
|
prev.setAttribute('type', 'button');
|
||||||
|
prev.classList.add('carousel-control-prev');
|
||||||
|
prev.setAttribute('data-bs-target', el.getAttribute('id'));
|
||||||
|
prev.setAttribute('data-bs-slide', 'prev');
|
||||||
|
prev.addEventListener('click', (e) => {
|
||||||
|
carousel.prev();
|
||||||
|
});
|
||||||
|
prev.innerHTML = '<span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span>';
|
||||||
|
el.appendChild(prev);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (el.dataset.bsIndicators) {
|
||||||
|
const indicators = document.createElement('div');
|
||||||
|
indicators.classList.add('carousel-indicators');
|
||||||
|
const items = el.querySelectorAll('.carousel-item');
|
||||||
|
let i = 0;
|
||||||
|
while (i < items.length) {
|
||||||
|
const ind = document.createElement('button');
|
||||||
|
ind.setAttribute('type', 'button');
|
||||||
|
if (i == 0) {
|
||||||
|
ind.classList.add('active');
|
||||||
|
}
|
||||||
|
ind.setAttribute('data-bs-target', el.getAttribute('id'));
|
||||||
|
ind.setAttribute('data-bs-slide-to', i);
|
||||||
|
|
||||||
|
ind.addEventListener('click', (e) => {
|
||||||
|
const target = e.target;
|
||||||
|
carousel.to(target.getAttribute('data-bs-slide-to'));
|
||||||
|
indicators.querySelectorAll('.active').forEach((ind2) => {
|
||||||
|
ind2.classList.remove('active');
|
||||||
|
});
|
||||||
|
target.classList.add('active');
|
||||||
|
});
|
||||||
|
|
||||||
|
indicators.appendChild(ind);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
el.appendChild(indicators);
|
||||||
|
el.addEventListener('slide.bs.carousel', (e) => {
|
||||||
|
el.querySelectorAll('.carousel-indicators .active').forEach((ind2) => {
|
||||||
|
ind2.classList.remove('active');
|
||||||
|
});
|
||||||
|
el.querySelectorAll(`.carousel-indicators [data-bs-slide-to="${ e.to }"]`).forEach((ind2) => {
|
||||||
|
ind2.classList.add('active');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
el.classList.add(`${NAME}-active`);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener(`${Events.LODEDANDREADY}`, init);
|
||||||
|
window.addEventListener(`${Events.AJAX}`, init);
|
||||||
})(window);
|
})(window);
|
||||||
|
|
||||||
export default CarouselUI;
|
export default CarouselUI;
|
||||||
|
@ -7,117 +7,117 @@ import '../../scss/_ui/map.api.scss';
|
|||||||
import CONSTS from 'js/_consts';
|
import CONSTS from 'js/_consts';
|
||||||
|
|
||||||
const MapAPI = ((window) => {
|
const MapAPI = ((window) => {
|
||||||
// Constants
|
// Constants
|
||||||
const NAME = 'js-mapapi';
|
const NAME = 'js-mapapi';
|
||||||
const MAP_DRIVER = CONSTS['MAP_DRIVER'];
|
const MAP_DRIVER = CONSTS['MAP_DRIVER'];
|
||||||
|
|
||||||
class MapAPI {
|
class MapAPI {
|
||||||
// Constructor
|
// Constructor
|
||||||
constructor(el) {
|
constructor(el) {
|
||||||
const ui = this;
|
const ui = this;
|
||||||
const Drv = new MAP_DRIVER();
|
const Drv = new MAP_DRIVER();
|
||||||
const BODY = document.querySelector('body');
|
const BODY = document.querySelector('body');
|
||||||
const config = el.dataset;
|
const config = el.dataset;
|
||||||
config['center'] = [
|
config['center'] = [
|
||||||
config['lng'] ? config['lng'] : BODY.dataset['default-lng'],
|
config['lng'] ? config['lng'] : BODY.dataset['default-lng'],
|
||||||
config['lat'] ? config['lat'] : BODY.dataset['default-lat'],
|
config['lat'] ? config['lat'] : BODY.dataset['default-lat'],
|
||||||
];
|
];
|
||||||
|
|
||||||
/*config['style'] = config['style'] ?
|
/*config['style'] = config['style'] ?
|
||||||
jQuery.parseJSON(config['style']) :
|
jQuery.parseJSON(config['style']) :
|
||||||
null;
|
null;
|
||||||
|
|
||||||
config['font-family'] = $BODY.css('font-family');*/
|
config['font-family'] = $BODY.css('font-family');*/
|
||||||
|
|
||||||
if (!config['icon']) {
|
if (!config['icon']) {
|
||||||
config['icon'] = '<i class="fas fa-map-marker-alt"></i>';
|
config['icon'] = '<i class="fas fa-map-marker-alt"></i>';
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`${NAME}: init ${Drv.getName()}...`);
|
console.log(`${NAME}: init ${Drv.getName()}...`);
|
||||||
ui.drv = Drv;
|
ui.drv = Drv;
|
||||||
ui.el = el;
|
ui.el = el;
|
||||||
ui.config = config;
|
ui.config = config;
|
||||||
|
|
||||||
Drv.init(el, config);
|
Drv.init(el, config);
|
||||||
|
|
||||||
el.addEventListener(Events.MAPAPILOADED, () => {
|
el.addEventListener(Events.MAPAPILOADED, () => {
|
||||||
ui.addMarkers()
|
ui.addMarkers()
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// Public methods
|
|
||||||
getMap() {
|
|
||||||
return ui.map;
|
|
||||||
}
|
|
||||||
|
|
||||||
dispose() {
|
|
||||||
const ui = this;
|
|
||||||
|
|
||||||
ui.el = null;
|
|
||||||
ui.el.classList.remove(`${NAME}-active`);
|
|
||||||
}
|
|
||||||
|
|
||||||
addMarkers() {
|
|
||||||
console.log(`${NAME}: addMarkers`);
|
|
||||||
const ui = this;
|
|
||||||
const el = ui.el;
|
|
||||||
const Drv = ui.drv;
|
|
||||||
const config = ui.config;
|
|
||||||
|
|
||||||
ui.map = Drv.getMap();
|
|
||||||
|
|
||||||
if (config['geojson']) {
|
|
||||||
console.log(`${NAME}: setting up geocode data`);
|
|
||||||
Drv.addGeoJson(config);
|
|
||||||
} else if (config['address']) {
|
|
||||||
console.log(config['address']);
|
|
||||||
console.log(`${NAME}: setting up address marker`);
|
|
||||||
Drv.geocode(config['address'], (results) => {
|
|
||||||
console.log(results);
|
|
||||||
|
|
||||||
const lat = results[0].geometry.location.lat();
|
|
||||||
const lng = results[0].geometry.location.lng();
|
|
||||||
|
|
||||||
console.log(
|
|
||||||
`${NAME}: setting up single lat/lng marker lat: ${lat} lng: ${lng}`,
|
|
||||||
);
|
|
||||||
|
|
||||||
Drv.addMarker([lng, lat], config);
|
|
||||||
ui.map.setCenter({
|
|
||||||
lat,
|
|
||||||
lng
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else if (config['lat'] && config['lng']) {
|
|
||||||
const lat = config['lat'];
|
|
||||||
const lng = config['lng'];
|
|
||||||
|
|
||||||
console.log(
|
|
||||||
`${NAME}: setting up single lat/lng marker lat: ${lat} lng: ${lng}`,
|
|
||||||
);
|
|
||||||
|
|
||||||
Drv.addMarker([lng, lat], config);
|
|
||||||
}
|
|
||||||
|
|
||||||
el.classList.add(`${NAME}-active`);
|
|
||||||
|
|
||||||
el.dispatchEvent(new Event(Events.MAPLOADED));
|
|
||||||
console.log(`${NAME}: Map is loaded`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const init = () => {
|
// Public methods
|
||||||
console.log(`${NAME}: init`);
|
getMap() {
|
||||||
document.querySelectorAll(`.${NAME}`).forEach((el, i) => {
|
return ui.map;
|
||||||
const map = new MapAPI(el);
|
}
|
||||||
|
|
||||||
|
dispose() {
|
||||||
|
const ui = this;
|
||||||
|
|
||||||
|
ui.el = null;
|
||||||
|
ui.el.classList.remove(`${NAME}-active`);
|
||||||
|
}
|
||||||
|
|
||||||
|
addMarkers() {
|
||||||
|
console.log(`${NAME}: addMarkers`);
|
||||||
|
const ui = this;
|
||||||
|
const el = ui.el;
|
||||||
|
const Drv = ui.drv;
|
||||||
|
const config = ui.config;
|
||||||
|
|
||||||
|
ui.map = Drv.getMap();
|
||||||
|
|
||||||
|
if (config['geojson']) {
|
||||||
|
console.log(`${NAME}: setting up geocode data`);
|
||||||
|
Drv.addGeoJson(config);
|
||||||
|
} else if (config['address']) {
|
||||||
|
console.log(config['address']);
|
||||||
|
console.log(`${NAME}: setting up address marker`);
|
||||||
|
Drv.geocode(config['address'], (results) => {
|
||||||
|
console.log(results);
|
||||||
|
|
||||||
|
const lat = results[0].geometry.location.lat();
|
||||||
|
const lng = results[0].geometry.location.lng();
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
`${NAME}: setting up single lat/lng marker lat: ${lat} lng: ${lng}`,
|
||||||
|
);
|
||||||
|
|
||||||
|
Drv.addMarker([lng, lat], config);
|
||||||
|
ui.map.setCenter({
|
||||||
|
lat,
|
||||||
|
lng,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
} else if (config['lat'] && config['lng']) {
|
||||||
|
const lat = config['lat'];
|
||||||
|
const lng = config['lng'];
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
`${NAME}: setting up single lat/lng marker lat: ${lat} lng: ${lng}`,
|
||||||
|
);
|
||||||
|
|
||||||
|
Drv.addMarker([lng, lat], config);
|
||||||
|
}
|
||||||
|
|
||||||
|
el.classList.add(`${NAME}-active`);
|
||||||
|
|
||||||
|
el.dispatchEvent(new Event(Events.MAPLOADED));
|
||||||
|
console.log(`${NAME}: Map is loaded`);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// auto-apply
|
const init = () => {
|
||||||
window.addEventListener(`${Events.LODEDANDREADY}`, init);
|
console.log(`${NAME}: init`);
|
||||||
window.addEventListener(`${Events.AJAX}`, init);
|
document.querySelectorAll(`.${NAME}`).forEach((el, i) => {
|
||||||
|
const map = new MapAPI(el);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return MapAPI;
|
// auto-apply
|
||||||
|
window.addEventListener(`${Events.LODEDANDREADY}`, init);
|
||||||
|
window.addEventListener(`${Events.AJAX}`, init);
|
||||||
|
|
||||||
|
return MapAPI;
|
||||||
})(window);
|
})(window);
|
||||||
|
|
||||||
export default MapAPI;
|
export default MapAPI;
|
||||||
|
@ -6,278 +6,278 @@ import Events from '../_events';
|
|||||||
import MarkerUI from './_map.google.marker';
|
import MarkerUI from './_map.google.marker';
|
||||||
|
|
||||||
const GoogleMapsDriver = ((window) => {
|
const GoogleMapsDriver = ((window) => {
|
||||||
class GoogleMapsDriver {
|
class GoogleMapsDriver {
|
||||||
getName() {
|
getName() {
|
||||||
return 'GoogleMapsDriver';
|
return 'GoogleMapsDriver';
|
||||||
}
|
}
|
||||||
|
|
||||||
init(el, config = []) {
|
init(el, config = []) {
|
||||||
const ui = this;
|
const ui = this;
|
||||||
|
|
||||||
ui.el = el;
|
ui.el = el;
|
||||||
ui.config = config;
|
ui.config = config;
|
||||||
ui.markers = [];
|
ui.markers = [];
|
||||||
|
|
||||||
window[`init${ui.getName()}`] = () => {
|
window[`init${ui.getName()}`] = () => {
|
||||||
ui.googleApiLoaded();
|
ui.googleApiLoaded();
|
||||||
};
|
};
|
||||||
|
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
script.src = `https://maps.googleapis.com/maps/api/js?key=${config['key']}&callback=init${ui.getName()}`;
|
script.src = `https://maps.googleapis.com/maps/api/js?key=${config['key']}&callback=init${ui.getName()}`;
|
||||||
script.async = true;
|
script.async = true;
|
||||||
script.defer = true;
|
script.defer = true;
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
}
|
}
|
||||||
|
|
||||||
googleApiLoaded() {
|
googleApiLoaded() {
|
||||||
const ui = this;
|
const ui = this;
|
||||||
|
|
||||||
const el = ui.el;
|
const el = ui.el;
|
||||||
const config = ui.config;
|
const config = ui.config;
|
||||||
const mapDiv = el.querySelector('.mapAPI-map');
|
const mapDiv = el.querySelector('.mapAPI-map');
|
||||||
const zoom = config['mapZoom'] && config['mapZoom'] !== '0' ? config['mapZoom'] : 10;
|
const zoom = config['mapZoom'] && config['mapZoom'] !== '0' ? config['mapZoom'] : 10;
|
||||||
const center = config['center'] && config['center'] !== ',' ?
|
const center = config['center'] && config['center'] !== ',' ?
|
||||||
{
|
{
|
||||||
lat: config['center'][1],
|
lat: config['center'][1],
|
||||||
lng: config['center'][0],
|
lng: config['center'][0],
|
||||||
} :
|
} :
|
||||||
{
|
{
|
||||||
lat: 0,
|
lat: 0,
|
||||||
lng: 0,
|
lng: 0,
|
||||||
};
|
};
|
||||||
const style = config['style'] ? config['style'] : null;
|
const style = config['style'] ? config['style'] : null;
|
||||||
|
|
||||||
console.log(`${ui.getName()}: API is loaded`);
|
console.log(`${ui.getName()}: API is loaded`);
|
||||||
// init fontawesome icons
|
// init fontawesome icons
|
||||||
ui.MarkerUI = MarkerUI.init();
|
ui.MarkerUI = MarkerUI.init();
|
||||||
|
|
||||||
ui.map = new google.maps.Map(mapDiv, {
|
ui.map = new google.maps.Map(mapDiv, {
|
||||||
zoom,
|
zoom,
|
||||||
center,
|
center,
|
||||||
fullscreenControl: true,
|
fullscreenControl: true,
|
||||||
styles: style,
|
styles: style,
|
||||||
});
|
});
|
||||||
|
|
||||||
ui.default_zoom = zoom;
|
ui.default_zoom = zoom;
|
||||||
|
|
||||||
mapDiv.classList.add('mapboxgl-map');
|
mapDiv.classList.add('mapboxgl-map');
|
||||||
|
|
||||||
ui.popup = new ui.MarkerUI({
|
ui.popup = new ui.MarkerUI({
|
||||||
map: ui.map,
|
map: ui.map,
|
||||||
align: ['center', 'top'],
|
align: ['center', 'top'],
|
||||||
divClass: 'mapboxgl-popup popup mapboxgl-popup-anchor-bottom d-none',
|
divClass: 'mapboxgl-popup popup mapboxgl-popup-anchor-bottom d-none',
|
||||||
html: '<div class="mapboxgl-popup-tip"></div><div class="mapboxgl-popup-content">' +
|
html: '<div class="mapboxgl-popup-tip"></div><div class="mapboxgl-popup-content">' +
|
||||||
'<div class="mapboxgl-popup-close-button" type="button" aria-label="Close popup">×</div>' +
|
'<div class="mapboxgl-popup-close-button" type="button" aria-label="Close popup">×</div>' +
|
||||||
'<div class="html"></div>' +
|
'<div class="html"></div>' +
|
||||||
'</div>',
|
'</div>',
|
||||||
});
|
});
|
||||||
ui.popup.setMap(ui.map);
|
ui.popup.setMap(ui.map);
|
||||||
|
|
||||||
ui.geocoder = new google.maps.Geocoder();
|
ui.geocoder = new google.maps.Geocoder();
|
||||||
|
|
||||||
ui.cluster = new MarkerClusterer(ui.map, null, {
|
ui.cluster = new MarkerClusterer(ui.map, null, {
|
||||||
styles: [{
|
styles: [{
|
||||||
width: 30,
|
width: 30,
|
||||||
height: 30,
|
height: 30,
|
||||||
className: 'mapboxgl-cluster',
|
className: 'mapboxgl-cluster',
|
||||||
}],
|
}],
|
||||||
});
|
});
|
||||||
|
|
||||||
el.dispatchEvent(new Event(Events.MAPAPILOADED));
|
el.dispatchEvent(new Event(Events.MAPAPILOADED));
|
||||||
}
|
|
||||||
|
|
||||||
addMarker(crds, config) {
|
|
||||||
const ui = this;
|
|
||||||
|
|
||||||
const pos = {
|
|
||||||
lat: crds[1],
|
|
||||||
lng: crds[0],
|
|
||||||
};
|
|
||||||
|
|
||||||
const marker = new ui.MarkerUI({
|
|
||||||
position: pos,
|
|
||||||
map: ui.map,
|
|
||||||
align: ['center', 'top'],
|
|
||||||
html: `<div class="mapboxgl-marker"><div id="Marker${config['id']}" data-id="${config['id']}" class="marker">${config['icon']}</div></div>`,
|
|
||||||
onClick: () => {
|
|
||||||
const el = document.querySelector(`#Marker${config['id']}`);
|
|
||||||
ui.showPopup(pos, config['content']);
|
|
||||||
|
|
||||||
el.dispatchEvent(new Event(Events.MAPMARKERCLICK));
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
ui.markers.push(marker);
|
|
||||||
|
|
||||||
ui.cluster.addMarker(marker);
|
|
||||||
|
|
||||||
return marker;
|
|
||||||
}
|
|
||||||
|
|
||||||
showPopup(pos, content) {
|
|
||||||
const ui = this;
|
|
||||||
const popup = ui.popup.getDiv();
|
|
||||||
|
|
||||||
if (ui.config['flyToMarker']) {
|
|
||||||
ui.map.setCenter(pos); // panTo
|
|
||||||
if (!ui.config['noZoom']) {
|
|
||||||
ui.map.setZoom(18);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// keep it hidden to render content
|
|
||||||
popup.style.opacity = '0';
|
|
||||||
popup.classList.remove('d-none');
|
|
||||||
|
|
||||||
popup.querySelector('.mapboxgl-popup-content .html').innerHTML = content;
|
|
||||||
|
|
||||||
popup.querySelector('.mapboxgl-popup-close-button').addEventListener('click', (e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
ui.hidePopup();
|
|
||||||
});
|
|
||||||
|
|
||||||
// set position when content was rendered
|
|
||||||
ui.popup.setPosition(pos, ['center', 'top']);
|
|
||||||
|
|
||||||
// display popup
|
|
||||||
popup.style.opacity = '1';
|
|
||||||
popup.style['margin-top'] = '-1rem';
|
|
||||||
}
|
|
||||||
|
|
||||||
hidePopup() {
|
|
||||||
const ui = this;
|
|
||||||
const popup = ui.popup.getDiv();
|
|
||||||
|
|
||||||
popup.classList.add('d-none');
|
|
||||||
if (!ui.config['noRestoreBounds'] || ui.config['flyToBounds']) {
|
|
||||||
ui.restoreBounds();
|
|
||||||
}
|
|
||||||
|
|
||||||
ui.el.dispatchEvent(new Event(Events.MAPPOPUPCLOSE));
|
|
||||||
}
|
|
||||||
|
|
||||||
geocode(addr, callback) {
|
|
||||||
const ui = this;
|
|
||||||
|
|
||||||
ui.geocoder.geocode(
|
|
||||||
{
|
|
||||||
address: addr,
|
|
||||||
},
|
|
||||||
(results, status) => {
|
|
||||||
if (status === 'OK') {
|
|
||||||
//results[0].geometry.location;
|
|
||||||
|
|
||||||
if (typeof callback === 'function') {
|
|
||||||
callback(results);
|
|
||||||
}
|
|
||||||
|
|
||||||
return results;
|
|
||||||
} else {
|
|
||||||
console.error(
|
|
||||||
`${ui.getName()}: Geocode was not successful for the following reason: ${status}`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
reverseGeocode(latLng, callback) {
|
|
||||||
const ui = this;
|
|
||||||
|
|
||||||
ui.geocoder.geocode(
|
|
||||||
{
|
|
||||||
location: latlng,
|
|
||||||
},
|
|
||||||
(results, status) => {
|
|
||||||
if (status === 'OK') {
|
|
||||||
//results[0].formatted_address;
|
|
||||||
|
|
||||||
if (typeof callback === 'function') {
|
|
||||||
callback(results);
|
|
||||||
}
|
|
||||||
|
|
||||||
return results;
|
|
||||||
} else {
|
|
||||||
console.error(
|
|
||||||
`${ui.getName()}: Reverse Geocoding was not successful for the following reason: ${status}`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
addGeoJson(config) {
|
|
||||||
const ui = this;
|
|
||||||
const geojson = JSON.parse(config['geojson']);
|
|
||||||
const firstMarker = geojson.features[0].geometry.coordinates;
|
|
||||||
//Map.setCenter(firstMarker);
|
|
||||||
const bounds = new google.maps.LatLngBounds();
|
|
||||||
|
|
||||||
// add markers to map
|
|
||||||
geojson.features.forEach((marker) => {
|
|
||||||
const id = marker.id;
|
|
||||||
const crds = marker.geometry.coordinates;
|
|
||||||
const content = marker.properties.content;
|
|
||||||
|
|
||||||
ui.addMarker(crds, {
|
|
||||||
id,
|
|
||||||
content,
|
|
||||||
icon: marker.icon,
|
|
||||||
flyToMarker: config['flyToMarker'],
|
|
||||||
});
|
|
||||||
|
|
||||||
bounds.extend({
|
|
||||||
lat: crds[1],
|
|
||||||
lng: crds[0],
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
if (ui.markers.length > 1) {
|
|
||||||
ui.map.fitBounds(bounds, {
|
|
||||||
padding: 30,
|
|
||||||
}); //panToBounds
|
|
||||||
} else if (ui.markers[0]) {
|
|
||||||
ui.map.setCenter(ui.markers[0].getPosition());
|
|
||||||
}
|
|
||||||
|
|
||||||
ui.default_bounds = bounds;
|
|
||||||
ui.default_zoom = ui.map.getZoom();
|
|
||||||
}
|
|
||||||
|
|
||||||
getMap() {
|
|
||||||
const ui = this;
|
|
||||||
return ui.map;
|
|
||||||
}
|
|
||||||
|
|
||||||
getPopup() {
|
|
||||||
const ui = this;
|
|
||||||
return ui.popup;
|
|
||||||
}
|
|
||||||
|
|
||||||
restoreBounds() {
|
|
||||||
const ui = this;
|
|
||||||
|
|
||||||
if (ui.default_bounds && ui.markers.length > 1) {
|
|
||||||
ui.map.fitBounds(ui.default_bounds, {
|
|
||||||
padding: 30,
|
|
||||||
}); //panToBounds
|
|
||||||
} else {
|
|
||||||
if (ui.markers[0]) {
|
|
||||||
ui.map.setCenter(ui.markers[0].getPosition());
|
|
||||||
}
|
|
||||||
|
|
||||||
ui.restoreZoom();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
restoreZoom() {
|
|
||||||
const ui = this;
|
|
||||||
|
|
||||||
ui.map.setZoom(ui.default_zoom);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return GoogleMapsDriver;
|
addMarker(crds, config) {
|
||||||
|
const ui = this;
|
||||||
|
|
||||||
|
const pos = {
|
||||||
|
lat: crds[1],
|
||||||
|
lng: crds[0],
|
||||||
|
};
|
||||||
|
|
||||||
|
const marker = new ui.MarkerUI({
|
||||||
|
position: pos,
|
||||||
|
map: ui.map,
|
||||||
|
align: ['center', 'top'],
|
||||||
|
html: `<div class="mapboxgl-marker"><div id="Marker${config['id']}" data-id="${config['id']}" class="marker">${config['icon']}</div></div>`,
|
||||||
|
onClick: () => {
|
||||||
|
const el = document.querySelector(`#Marker${config['id']}`);
|
||||||
|
ui.showPopup(pos, config['content']);
|
||||||
|
|
||||||
|
el.dispatchEvent(new Event(Events.MAPMARKERCLICK));
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
ui.markers.push(marker);
|
||||||
|
|
||||||
|
ui.cluster.addMarker(marker);
|
||||||
|
|
||||||
|
return marker;
|
||||||
|
}
|
||||||
|
|
||||||
|
showPopup(pos, content) {
|
||||||
|
const ui = this;
|
||||||
|
const popup = ui.popup.getDiv();
|
||||||
|
|
||||||
|
if (ui.config['flyToMarker']) {
|
||||||
|
ui.map.setCenter(pos); // panTo
|
||||||
|
if (!ui.config['noZoom']) {
|
||||||
|
ui.map.setZoom(18);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// keep it hidden to render content
|
||||||
|
popup.style.opacity = '0';
|
||||||
|
popup.classList.remove('d-none');
|
||||||
|
|
||||||
|
popup.querySelector('.mapboxgl-popup-content .html').innerHTML = content;
|
||||||
|
|
||||||
|
popup.querySelector('.mapboxgl-popup-close-button').addEventListener('click', (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
ui.hidePopup();
|
||||||
|
});
|
||||||
|
|
||||||
|
// set position when content was rendered
|
||||||
|
ui.popup.setPosition(pos, ['center', 'top']);
|
||||||
|
|
||||||
|
// display popup
|
||||||
|
popup.style.opacity = '1';
|
||||||
|
popup.style['margin-top'] = '-1rem';
|
||||||
|
}
|
||||||
|
|
||||||
|
hidePopup() {
|
||||||
|
const ui = this;
|
||||||
|
const popup = ui.popup.getDiv();
|
||||||
|
|
||||||
|
popup.classList.add('d-none');
|
||||||
|
if (!ui.config['noRestoreBounds'] || ui.config['flyToBounds']) {
|
||||||
|
ui.restoreBounds();
|
||||||
|
}
|
||||||
|
|
||||||
|
ui.el.dispatchEvent(new Event(Events.MAPPOPUPCLOSE));
|
||||||
|
}
|
||||||
|
|
||||||
|
geocode(addr, callback) {
|
||||||
|
const ui = this;
|
||||||
|
|
||||||
|
ui.geocoder.geocode(
|
||||||
|
{
|
||||||
|
address: addr,
|
||||||
|
},
|
||||||
|
(results, status) => {
|
||||||
|
if (status === 'OK') {
|
||||||
|
//results[0].geometry.location;
|
||||||
|
|
||||||
|
if (typeof callback === 'function') {
|
||||||
|
callback(results);
|
||||||
|
}
|
||||||
|
|
||||||
|
return results;
|
||||||
|
} else {
|
||||||
|
console.error(
|
||||||
|
`${ui.getName()}: Geocode was not successful for the following reason: ${status}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
reverseGeocode(latLng, callback) {
|
||||||
|
const ui = this;
|
||||||
|
|
||||||
|
ui.geocoder.geocode(
|
||||||
|
{
|
||||||
|
location: latlng,
|
||||||
|
},
|
||||||
|
(results, status) => {
|
||||||
|
if (status === 'OK') {
|
||||||
|
//results[0].formatted_address;
|
||||||
|
|
||||||
|
if (typeof callback === 'function') {
|
||||||
|
callback(results);
|
||||||
|
}
|
||||||
|
|
||||||
|
return results;
|
||||||
|
} else {
|
||||||
|
console.error(
|
||||||
|
`${ui.getName()}: Reverse Geocoding was not successful for the following reason: ${status}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
addGeoJson(config) {
|
||||||
|
const ui = this;
|
||||||
|
const geojson = JSON.parse(config['geojson']);
|
||||||
|
const firstMarker = geojson.features[0].geometry.coordinates;
|
||||||
|
//Map.setCenter(firstMarker);
|
||||||
|
const bounds = new google.maps.LatLngBounds();
|
||||||
|
|
||||||
|
// add markers to map
|
||||||
|
geojson.features.forEach((marker) => {
|
||||||
|
const id = marker.id;
|
||||||
|
const crds = marker.geometry.coordinates;
|
||||||
|
const content = marker.properties.content;
|
||||||
|
|
||||||
|
ui.addMarker(crds, {
|
||||||
|
id,
|
||||||
|
content,
|
||||||
|
icon: marker.icon,
|
||||||
|
flyToMarker: config['flyToMarker'],
|
||||||
|
});
|
||||||
|
|
||||||
|
bounds.extend({
|
||||||
|
lat: crds[1],
|
||||||
|
lng: crds[0],
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if (ui.markers.length > 1) {
|
||||||
|
ui.map.fitBounds(bounds, {
|
||||||
|
padding: 30,
|
||||||
|
}); //panToBounds
|
||||||
|
} else if (ui.markers[0]) {
|
||||||
|
ui.map.setCenter(ui.markers[0].getPosition());
|
||||||
|
}
|
||||||
|
|
||||||
|
ui.default_bounds = bounds;
|
||||||
|
ui.default_zoom = ui.map.getZoom();
|
||||||
|
}
|
||||||
|
|
||||||
|
getMap() {
|
||||||
|
const ui = this;
|
||||||
|
return ui.map;
|
||||||
|
}
|
||||||
|
|
||||||
|
getPopup() {
|
||||||
|
const ui = this;
|
||||||
|
return ui.popup;
|
||||||
|
}
|
||||||
|
|
||||||
|
restoreBounds() {
|
||||||
|
const ui = this;
|
||||||
|
|
||||||
|
if (ui.default_bounds && ui.markers.length > 1) {
|
||||||
|
ui.map.fitBounds(ui.default_bounds, {
|
||||||
|
padding: 30,
|
||||||
|
}); //panToBounds
|
||||||
|
} else {
|
||||||
|
if (ui.markers[0]) {
|
||||||
|
ui.map.setCenter(ui.markers[0].getPosition());
|
||||||
|
}
|
||||||
|
|
||||||
|
ui.restoreZoom();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
restoreZoom() {
|
||||||
|
const ui = this;
|
||||||
|
|
||||||
|
ui.map.setZoom(ui.default_zoom);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return GoogleMapsDriver;
|
||||||
})(window);
|
})(window);
|
||||||
|
|
||||||
export default GoogleMapsDriver;
|
export default GoogleMapsDriver;
|
||||||
|
@ -1,222 +1,222 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const Obj = {
|
const Obj = {
|
||||||
init: () => {
|
init: () => {
|
||||||
class GoogleMapsHtmlOverlay extends google.maps.OverlayView {
|
class GoogleMapsHtmlOverlay extends google.maps.OverlayView {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super();
|
super();
|
||||||
const ui = this;
|
const ui = this;
|
||||||
|
|
||||||
ui.ownerMap = options.map;
|
ui.ownerMap = options.map;
|
||||||
//ui.setMap(options.map);
|
//ui.setMap(options.map);
|
||||||
ui.position = options.position;
|
ui.position = options.position;
|
||||||
ui.html = options.html ?
|
ui.html = options.html ?
|
||||||
options.html :
|
options.html :
|
||||||
'<div class="mapboxgl-marker"><i class="marker-icon fas fa-map-marker-alt"></i></div>';
|
'<div class="mapboxgl-marker"><i class="marker-icon fas fa-map-marker-alt"></i></div>';
|
||||||
ui.divClass = options.divClass;
|
ui.divClass = options.divClass;
|
||||||
ui.align = options.align;
|
ui.align = options.align;
|
||||||
ui.isDebugMode = options.debug;
|
ui.isDebugMode = options.debug;
|
||||||
ui.onClick = options.onClick;
|
ui.onClick = options.onClick;
|
||||||
ui.onMouseOver = options.onMouseOver;
|
ui.onMouseOver = options.onMouseOver;
|
||||||
|
|
||||||
ui.isBoolean = (arg) => {
|
ui.isBoolean = (arg) => {
|
||||||
if (typeof arg === 'boolean') {
|
if (typeof arg === 'boolean') {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ui.isNotUndefined = (arg) => {
|
ui.isNotUndefined = (arg) => {
|
||||||
if (typeof arg !== 'undefined') {
|
if (typeof arg !== 'undefined') {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ui.hasContent = (arg) => {
|
ui.hasContent = (arg) => {
|
||||||
if (arg.length > 0) {
|
if (arg.length > 0) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ui.isString = (arg) => {
|
ui.isString = (arg) => {
|
||||||
if (typeof arg === 'string') {
|
if (typeof arg === 'string') {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ui.isFunction = (arg) => {
|
ui.isFunction = (arg) => {
|
||||||
if (typeof arg === 'function') {
|
if (typeof arg === 'function') {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
onAdd() {
|
onAdd() {
|
||||||
const ui = this;
|
const ui = this;
|
||||||
|
|
||||||
// Create div element.
|
// Create div element.
|
||||||
ui.div = document.createElement('div');
|
ui.div = document.createElement('div');
|
||||||
ui.div.style.position = 'absolute';
|
ui.div.style.position = 'absolute';
|
||||||
|
|
||||||
// Validate and set custom div class
|
// Validate and set custom div class
|
||||||
if (ui.isNotUndefined(ui.divClass) && ui.hasContent(ui.divClass))
|
if (ui.isNotUndefined(ui.divClass) && ui.hasContent(ui.divClass))
|
||||||
ui.div.className = ui.divClass;
|
ui.div.className = ui.divClass;
|
||||||
|
|
||||||
// Validate and set custom HTML
|
// Validate and set custom HTML
|
||||||
if (
|
if (
|
||||||
ui.isNotUndefined(ui.html) &&
|
ui.isNotUndefined(ui.html) &&
|
||||||
ui.hasContent(ui.html) &&
|
ui.hasContent(ui.html) &&
|
||||||
ui.isString(ui.html)
|
ui.isString(ui.html)
|
||||||
)
|
)
|
||||||
ui.div.innerHTML = ui.html;
|
ui.div.innerHTML = ui.html;
|
||||||
|
|
||||||
// If debug mode is enabled custom content will be replaced with debug content
|
// If debug mode is enabled custom content will be replaced with debug content
|
||||||
if (ui.isBoolean(ui.isDebugMode) && ui.isDebugMode) {
|
if (ui.isBoolean(ui.isDebugMode) && ui.isDebugMode) {
|
||||||
ui.div.className = 'debug-mode';
|
ui.div.className = 'debug-mode';
|
||||||
ui.div.innerHTML =
|
ui.div.innerHTML =
|
||||||
'<div style="height: 10px; width: 10px; background: red; border-radius: 100%;"></div>' +
|
'<div style="height: 10px; width: 10px; background: red; border-radius: 100%;"></div>' +
|
||||||
'<div style="position: absolute; top: 5px; padding: 5px; width: 130px; text-align: center; font-size: 18px; text-transform: uppercase; font-weight: bolder; background: red; color: white; font-family: Arial;">Debug mode</div>';
|
'<div style="position: absolute; top: 5px; padding: 5px; width: 130px; text-align: center; font-size: 18px; text-transform: uppercase; font-weight: bolder; background: red; color: white; font-family: Arial;">Debug mode</div>';
|
||||||
ui.div.setAttribute(
|
ui.div.setAttribute(
|
||||||
'style',
|
'style',
|
||||||
'position: absolute;' +
|
'position: absolute;' +
|
||||||
'border: 5px dashed red;' +
|
'border: 5px dashed red;' +
|
||||||
'height: 150px;' +
|
'height: 150px;' +
|
||||||
'width: 150px;' +
|
'width: 150px;' +
|
||||||
'display: flex;' +
|
'display: flex;' +
|
||||||
'justify-content: center;' +
|
'justify-content: center;' +
|
||||||
'align-items: center;',
|
'align-items: center;',
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
// Add element to clickable layer
|
|
||||||
ui.getPanes().overlayMouseTarget.appendChild(ui.div);
|
|
||||||
|
|
||||||
// Add listeners to the element.
|
|
||||||
google.maps.event.addDomListener(ui.div, 'click', (event) => {
|
|
||||||
google.maps.event.trigger(ui, 'click');
|
|
||||||
if (ui.isFunction(ui.onClick)) ui.onClick();
|
|
||||||
event.stopPropagation();
|
|
||||||
});
|
|
||||||
|
|
||||||
google.maps.event.addDomListener(ui.div, 'mouseover', (event) => {
|
|
||||||
google.maps.event.trigger(ui, 'mouseover');
|
|
||||||
if (ui.isFunction(ui.onMouseOver)) ui.onMouseOver();
|
|
||||||
event.stopPropagation();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
draw() {
|
|
||||||
const ui = this;
|
|
||||||
|
|
||||||
let div = document.querySelector('.popup');
|
|
||||||
if (!div.length) {
|
|
||||||
div = ui.div;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Calculate position of div
|
|
||||||
const projection = ui.getProjection();
|
|
||||||
|
|
||||||
if (!projection) {
|
|
||||||
console.log('GoogleMapsHtmlOverlay: current map is missing');
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
const positionInPixels = projection.fromLatLngToDivPixel(ui.getPosition());
|
|
||||||
|
|
||||||
// Align HTML overlay relative to original position
|
|
||||||
const offset = {
|
|
||||||
y: undefined,
|
|
||||||
x: undefined,
|
|
||||||
};
|
|
||||||
const divWidth = div.offsetWidth;
|
|
||||||
const divHeight = div.offsetHeight;
|
|
||||||
|
|
||||||
switch (Array.isArray(ui.align) ? ui.align.join(' ') : '') {
|
|
||||||
case 'left top':
|
|
||||||
offset.y = divHeight;
|
|
||||||
offset.x = divWidth;
|
|
||||||
break;
|
|
||||||
case 'left center':
|
|
||||||
offset.y = divHeight / 2;
|
|
||||||
offset.x = divWidth;
|
|
||||||
break;
|
|
||||||
case 'left bottom':
|
|
||||||
offset.y = 0;
|
|
||||||
offset.x = divWidth;
|
|
||||||
break;
|
|
||||||
case 'center top':
|
|
||||||
offset.y = divHeight;
|
|
||||||
offset.x = divWidth / 2;
|
|
||||||
break;
|
|
||||||
case 'center center':
|
|
||||||
offset.y = divHeight / 2;
|
|
||||||
offset.x = divWidth / 2;
|
|
||||||
break;
|
|
||||||
case 'center bottom':
|
|
||||||
offset.y = 0;
|
|
||||||
offset.x = divWidth / 2;
|
|
||||||
break;
|
|
||||||
case 'right top':
|
|
||||||
offset.y = divHeight;
|
|
||||||
offset.x = 0;
|
|
||||||
break;
|
|
||||||
case 'right center':
|
|
||||||
offset.y = divHeight / 2;
|
|
||||||
offset.x = 0;
|
|
||||||
break;
|
|
||||||
case 'right bottom':
|
|
||||||
offset.y = 0;
|
|
||||||
offset.x = 0;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
offset.y = divHeight / 2;
|
|
||||||
offset.x = divWidth / 2;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set position
|
|
||||||
ui.div.style.top = `${positionInPixels.y - offset.y}px`;
|
|
||||||
ui.div.style.left = `${positionInPixels.x - offset.x}px`;
|
|
||||||
}
|
|
||||||
|
|
||||||
getPosition() {
|
|
||||||
const ui = this;
|
|
||||||
return new google.maps.LatLng(ui.position);
|
|
||||||
}
|
|
||||||
|
|
||||||
getDiv() {
|
|
||||||
const ui = this;
|
|
||||||
return ui.div;
|
|
||||||
}
|
|
||||||
|
|
||||||
setPosition(position, align) {
|
|
||||||
const ui = this;
|
|
||||||
ui.position = position;
|
|
||||||
ui.align = align;
|
|
||||||
ui.draw();
|
|
||||||
}
|
|
||||||
|
|
||||||
remove() {
|
|
||||||
const ui = this;
|
|
||||||
ui.setMap(null);
|
|
||||||
ui.div.remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// emulate google.maps.Marker functionality for compatibility (for example with @googlemaps/markerclustererplus)
|
|
||||||
getDraggable() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return GoogleMapsHtmlOverlay;
|
|
||||||
},
|
// Add element to clickable layer
|
||||||
|
ui.getPanes().overlayMouseTarget.appendChild(ui.div);
|
||||||
|
|
||||||
|
// Add listeners to the element.
|
||||||
|
google.maps.event.addDomListener(ui.div, 'click', (event) => {
|
||||||
|
google.maps.event.trigger(ui, 'click');
|
||||||
|
if (ui.isFunction(ui.onClick)) ui.onClick();
|
||||||
|
event.stopPropagation();
|
||||||
|
});
|
||||||
|
|
||||||
|
google.maps.event.addDomListener(ui.div, 'mouseover', (event) => {
|
||||||
|
google.maps.event.trigger(ui, 'mouseover');
|
||||||
|
if (ui.isFunction(ui.onMouseOver)) ui.onMouseOver();
|
||||||
|
event.stopPropagation();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
draw() {
|
||||||
|
const ui = this;
|
||||||
|
|
||||||
|
let div = document.querySelector('.popup');
|
||||||
|
if (!div.length) {
|
||||||
|
div = ui.div;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Calculate position of div
|
||||||
|
const projection = ui.getProjection();
|
||||||
|
|
||||||
|
if (!projection) {
|
||||||
|
console.log('GoogleMapsHtmlOverlay: current map is missing');
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const positionInPixels = projection.fromLatLngToDivPixel(ui.getPosition());
|
||||||
|
|
||||||
|
// Align HTML overlay relative to original position
|
||||||
|
const offset = {
|
||||||
|
y: undefined,
|
||||||
|
x: undefined,
|
||||||
|
};
|
||||||
|
const divWidth = div.offsetWidth;
|
||||||
|
const divHeight = div.offsetHeight;
|
||||||
|
|
||||||
|
switch (Array.isArray(ui.align) ? ui.align.join(' ') : '') {
|
||||||
|
case 'left top':
|
||||||
|
offset.y = divHeight;
|
||||||
|
offset.x = divWidth;
|
||||||
|
break;
|
||||||
|
case 'left center':
|
||||||
|
offset.y = divHeight / 2;
|
||||||
|
offset.x = divWidth;
|
||||||
|
break;
|
||||||
|
case 'left bottom':
|
||||||
|
offset.y = 0;
|
||||||
|
offset.x = divWidth;
|
||||||
|
break;
|
||||||
|
case 'center top':
|
||||||
|
offset.y = divHeight;
|
||||||
|
offset.x = divWidth / 2;
|
||||||
|
break;
|
||||||
|
case 'center center':
|
||||||
|
offset.y = divHeight / 2;
|
||||||
|
offset.x = divWidth / 2;
|
||||||
|
break;
|
||||||
|
case 'center bottom':
|
||||||
|
offset.y = 0;
|
||||||
|
offset.x = divWidth / 2;
|
||||||
|
break;
|
||||||
|
case 'right top':
|
||||||
|
offset.y = divHeight;
|
||||||
|
offset.x = 0;
|
||||||
|
break;
|
||||||
|
case 'right center':
|
||||||
|
offset.y = divHeight / 2;
|
||||||
|
offset.x = 0;
|
||||||
|
break;
|
||||||
|
case 'right bottom':
|
||||||
|
offset.y = 0;
|
||||||
|
offset.x = 0;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
offset.y = divHeight / 2;
|
||||||
|
offset.x = divWidth / 2;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set position
|
||||||
|
ui.div.style.top = `${positionInPixels.y - offset.y}px`;
|
||||||
|
ui.div.style.left = `${positionInPixels.x - offset.x}px`;
|
||||||
|
}
|
||||||
|
|
||||||
|
getPosition() {
|
||||||
|
const ui = this;
|
||||||
|
return new google.maps.LatLng(ui.position);
|
||||||
|
}
|
||||||
|
|
||||||
|
getDiv() {
|
||||||
|
const ui = this;
|
||||||
|
return ui.div;
|
||||||
|
}
|
||||||
|
|
||||||
|
setPosition(position, align) {
|
||||||
|
const ui = this;
|
||||||
|
ui.position = position;
|
||||||
|
ui.align = align;
|
||||||
|
ui.draw();
|
||||||
|
}
|
||||||
|
|
||||||
|
remove() {
|
||||||
|
const ui = this;
|
||||||
|
ui.setMap(null);
|
||||||
|
ui.div.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
// emulate google.maps.Marker functionality for compatibility (for example with @googlemaps/markerclustererplus)
|
||||||
|
getDraggable() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return GoogleMapsHtmlOverlay;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Obj;
|
export default Obj;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user