@iris.interactive/handcook 6.0.5 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +1 -1
- package/.nvmrc +1 -1
- package/README.md +1 -1
- package/mix-manifest.json +30 -0
- package/package.json +2 -1
- package/public/scripts/components/collapse/collapse.component.min.js +1 -1
- package/public/scripts/components/dropdown/dropdown.component.min.js +1 -1
- package/public/scripts/components/lazyload/lazyload.component.min.js +1 -1
- package/public/scripts/components/lightbox/lightbox.component.min.js +1 -1
- package/public/scripts/components/modal/modal.component.min.js +1 -1
- package/public/scripts/components/nats/nats.component.js +60 -0
- package/public/scripts/components/scrollspy/scrollspy.component.min.js +1 -1
- package/public/scripts/components/slider/slider.component.min.js +1 -1
- package/public/scripts/components/smooth-scroll/smooth-scroll.component.min.js +1 -1
- package/public/scripts/components/tab/tab.component.min.js +1 -1
- package/public/scripts/components/toggle/toggle.component.min.js +1 -1
- package/public/scripts/components/tooltip/tooltip.component.min.js +1 -1
- package/public/scripts/handcook.js +49 -1
- package/public/scripts/index.js.LICENSE.txt +1 -0
- package/public/styles/scss/style.css +161 -2
- package/public/styles/style.css +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* IRIS Interactive
|
|
3
|
+
*
|
|
4
|
+
* NOTICE OF LICENSE
|
|
5
|
+
*
|
|
6
|
+
* This source file is no subject to a specific license
|
|
7
|
+
* but it belongs to the company IRIS Interactive.
|
|
8
|
+
* You can contact IRIS Interactive at the following
|
|
9
|
+
* address: contact@iris-interactive.fr
|
|
10
|
+
*
|
|
11
|
+
* @author Nicolas PAYS
|
|
12
|
+
* @date 10/10/2024 14:30
|
|
13
|
+
* @copyright Copyright (c) 2002-2024 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import {wsconnect} from "@nats-io/nats-core";
|
|
17
|
+
|
|
18
|
+
export class HcNats {
|
|
19
|
+
static server = 'wss://nats.iris-interactive.fr:443';
|
|
20
|
+
|
|
21
|
+
constructor() {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static async initialize() {
|
|
25
|
+
try {
|
|
26
|
+
window.natsConnection = await wsconnect({
|
|
27
|
+
servers: this.server,
|
|
28
|
+
name: 'IrisNatsSender',
|
|
29
|
+
user: "irisinteractive",
|
|
30
|
+
pass: "2G4cF4**#*72zBe5%HAmPc89"
|
|
31
|
+
});
|
|
32
|
+
} catch (_err) {
|
|
33
|
+
console.log(`error connecting to ${JSON.stringify(_err)}`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async publishMessage(subject, content) {
|
|
38
|
+
try {
|
|
39
|
+
if( window.natsConnection === undefined ) {
|
|
40
|
+
await HcNats.initialize();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const message = {
|
|
44
|
+
lat: window.IRISCollectionTheme.coordinates.latitude,
|
|
45
|
+
long: window.IRISCollectionTheme.coordinates.longitude,
|
|
46
|
+
content: content
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
window.natsConnection.publish(subject, JSON.stringify(message));
|
|
50
|
+
} catch (_err) {
|
|
51
|
+
console.log(`error messaging to ${JSON.stringify(_err)}`);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const hc_nats = function () {
|
|
58
|
+
return new HcNats();
|
|
59
|
+
}
|
|
60
|
+
export default hc_nats;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var
|
|
1
|
+
(()=>{"use strict";var t={3507:(t,o,e)=>{var r;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function c(t,o,e){return o&&l(t.prototype,o),e&&l(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,o,e){return(o=i(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function i(t){var o=function(t,o){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,o||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"==a(o)?o:o+""}var s=c((function t(){!function(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this,t)}));r=s,n(s,"tooltip","[data-hc-tooltip], [data-hc-popover]"),n(s,"popover","[data-hc-popover]"),n(s,"scrollSmooth","[data-hc-smooth-scroll]"),n(s,"modal","[data-hc-modal]"),n(s,"modalClose","[data-hc-modal-close]"),n(s,"lightboxAttr","data-hc-lightbox"),n(s,"lightbox","[".concat(r.lightboxAttr,"]")),n(s,"dropdown","[data-hc-dropdown]"),n(s,"collapse","[data-hc-collapse]"),n(s,"collapseItem","[data-hc-collapse-item]"),n(s,"popin","[data-hc-popin]"),n(s,"tab","[data-hc-tab]"),n(s,"toggle","[data-hc-toggle]"),n(s,"slider","[data-hc-slider]"),n(s,"scrollspy","[data-hc-scrollspy]"),n(s,"scrollspyNav","[data-hc-scrollspy-nav]"),n(s,"scrollspyNavItem","[data-hc-scrollspy-nav-item]"),n(s,"scrollspyNavItemHref","[data-hc-scrollspy-nav-item-href]"),n(s,"scrollReveal","[data-hc-scroll-reveal]"),n(s,"scrollRevealDisable","[data-hc-noscroll-reveal]"),n(s,"scrollRevealParent","[data-hc-scroll-reveal-parent]"),n(s,"scrollRevealChildren","".concat(r.scrollRevealParent," > *:not(").concat(r.scrollRevealDisable,"):not(").concat(r.scrollRevealParent,"):not(").concat(r.scrollReveal,")")),n(s,"overlay","[data-hc-overlay]")}},o={};function e(r){var a=o[r];if(void 0!==a)return a.exports;var l=o[r]={exports:{}};return t[r](l,l.exports,e),l.exports}e.d=(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);e(3507)})();
|