@ratiosolver/flick 0.0.40 → 0.0.42

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.
@@ -1,5 +1,6 @@
1
1
  import { App, AppListener, Component } from "../app";
2
2
  import { ConnectionListener } from "../utils/connection";
3
+ import { BrandComponent } from "./brand";
3
4
  /**
4
5
  * The `NavbarComponent` class represents a navigation bar component in the application.
5
6
  * It manages the payload and element of the navigation bar component.
@@ -23,7 +24,7 @@ export declare class AppComponent extends Component<App, HTMLDivElement> impleme
23
24
  *
24
25
  * @param {string} id The ID of the element to use as the root of the application.
25
26
  */
26
- constructor(id?: string);
27
+ constructor(brand?: BrandComponent, id?: string);
27
28
  toast(info: string): void;
28
29
  selected_component(component: Component<any, HTMLElement> | null): void;
29
30
  connected(): void;
@@ -1,5 +1,6 @@
1
1
  import { App, Component } from "../app";
2
2
  import { Connection } from "../utils/connection";
3
+ import { BrandComponent } from "./brand";
3
4
  /**
4
5
  * The `NavbarComponent` class represents a navigation bar component in the application.
5
6
  * It manages the payload and element of the navigation bar component.
@@ -8,7 +9,7 @@ export class NavbarComponent extends Component {
8
9
  constructor() {
9
10
  super(App.get_instance(), document.createElement('div'));
10
11
  this.element.classList.add('collapse', 'navbar-collapse');
11
- this.element.id = 'navbarNav';
12
+ this.element.id = 'navbarContent';
12
13
  }
13
14
  }
14
15
  /**
@@ -21,7 +22,7 @@ export class AppComponent extends Component {
21
22
  *
22
23
  * @param {string} id The ID of the element to use as the root of the application.
23
24
  */
24
- constructor(id = 'app') {
25
+ constructor(brand = new BrandComponent(), id = 'app') {
25
26
  super(App.get_instance(), document.querySelector('#' + id));
26
27
  this.element.classList.add('d-flex', 'flex-column', 'h-100');
27
28
  const fragment = document.createDocumentFragment();
@@ -30,12 +31,15 @@ export class AppComponent extends Component {
30
31
  navbar.classList.add('navbar', 'navbar-expand-lg');
31
32
  const nav_container = document.createElement('div');
32
33
  nav_container.classList.add('container-fluid');
34
+ // Add the brand..
35
+ this.add_child(brand);
36
+ // Add the toggler..
33
37
  const toggler = document.createElement('button');
34
38
  toggler.classList.add('navbar-toggler');
35
39
  toggler.type = 'button';
36
40
  toggler.setAttribute('data-bs-toggle', 'collapse');
37
- toggler.setAttribute('data-bs-target', '#navbarNav');
38
- toggler.setAttribute('aria-controls', 'navbarNav');
41
+ toggler.setAttribute('data-bs-target', '#navbarContent');
42
+ toggler.setAttribute('aria-controls', 'navbarContent');
39
43
  toggler.setAttribute('aria-expanded', 'false');
40
44
  toggler.setAttribute('aria-label', 'Toggle navigation');
41
45
  const toggler_span = document.createElement('span');
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/components/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,UAAU,EAAsB,MAAM,qBAAqB,CAAC;AAErE;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,SAA8B;IAEjE;QACE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QACzD,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,WAAW,CAAC;IAChC,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,YAAa,SAAQ,SAA8B;IAS9D;;;;OAIG;IACH,YAAY,KAAa,KAAK;QAC5B,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,GAAG,EAAE,CAAmB,CAAC,CAAC;QAC9E,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAE7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,sBAAsB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Component<void, HTMLAnchorElement> {
3
3
  /**
4
- * Creates a new brand component for the navbar.
4
+ * Creates a new brand component for the navigation bar.
5
5
  *
6
6
  * @param name - The display name of the brand. Defaults to 'Flick'.
7
- * @param icon - The URL or path to the brand icon image. Defaults to 'favicon.ico'.
7
+ * @param icon - The source URL or path for the brand icon. Defaults to 'favicon.ico'.
8
8
  * @param icon_width - The width of the brand icon in pixels. Defaults to 32.
9
9
  * @param icon_height - The height of the brand icon in pixels. Defaults to 32.
10
- * @param offcanvas_id - The ID of the offcanvas element to show when the brand is clicked. Defaults to 'flick-offcanvas'.
11
10
  *
12
- * The constructor initializes the brand element as an anchor tag styled for the navbar,
13
- * sets up a click event to show the specified offcanvas, and creates a flex container
14
- * with the brand icon and name.
11
+ * The constructor initializes the brand element with an icon and text,
12
+ * styled and aligned for use in a navigation bar.
15
13
  */
16
- constructor(name?: string, icon?: string, icon_width?: number, icon_height?: number, offcanvas_id?: string | null);
14
+ constructor(name?: string, icon?: string, icon_width?: number, icon_height?: number);
17
15
  }
@@ -1,28 +1,20 @@
1
1
  import { Component } from "../app";
2
- import { Offcanvas } from "bootstrap";
3
2
  export class BrandComponent extends Component {
4
3
  /**
5
- * Creates a new brand component for the navbar.
4
+ * Creates a new brand component for the navigation bar.
6
5
  *
7
6
  * @param name - The display name of the brand. Defaults to 'Flick'.
8
- * @param icon - The URL or path to the brand icon image. Defaults to 'favicon.ico'.
7
+ * @param icon - The source URL or path for the brand icon. Defaults to 'favicon.ico'.
9
8
  * @param icon_width - The width of the brand icon in pixels. Defaults to 32.
10
9
  * @param icon_height - The height of the brand icon in pixels. Defaults to 32.
11
- * @param offcanvas_id - The ID of the offcanvas element to show when the brand is clicked. Defaults to 'flick-offcanvas'.
12
10
  *
13
- * The constructor initializes the brand element as an anchor tag styled for the navbar,
14
- * sets up a click event to show the specified offcanvas, and creates a flex container
15
- * with the brand icon and name.
11
+ * The constructor initializes the brand element with an icon and text,
12
+ * styled and aligned for use in a navigation bar.
16
13
  */
17
- constructor(name = 'Flick', icon = 'favicon.ico', icon_width = 32, icon_height = 32, offcanvas_id = null) {
14
+ constructor(name = 'Flick', icon = 'favicon.ico', icon_width = 32, icon_height = 32) {
18
15
  super(undefined, document.createElement('a'));
19
16
  this.element.classList.add('navbar-brand');
20
17
  this.element.href = '#';
21
- if (offcanvas_id)
22
- this.element.addEventListener('click', (event) => {
23
- event.preventDefault();
24
- Offcanvas.getOrCreateInstance(document.getElementById(offcanvas_id)).show();
25
- });
26
18
  const brand_container = document.createElement('div');
27
19
  brand_container.style.display = 'flex';
28
20
  brand_container.style.alignItems = 'center';
@@ -32,12 +24,15 @@ export class BrandComponent extends Component {
32
24
  brand_icon.alt = name;
33
25
  brand_icon.width = icon_width;
34
26
  brand_icon.height = icon_height;
35
- brand_icon.classList.add('d-inline-block', 'align-text-top', 'me-1');
36
- const brand_text = document.createElement('span');
37
- brand_text.textContent = name;
38
- brand_text.style.fontWeight = '500'; // Make text slightly bolder
27
+ brand_icon.classList.add('d-inline-block', 'align-text-top');
39
28
  brand_container.appendChild(brand_icon);
40
- brand_container.appendChild(brand_text);
29
+ if (name) {
30
+ brand_icon.classList.add('me-1');
31
+ const brand_text = document.createElement('span');
32
+ brand_text.textContent = name;
33
+ brand_text.style.fontWeight = '500'; // Make text slightly bolder
34
+ brand_container.appendChild(brand_text);
35
+ }
41
36
  this.element.appendChild(brand_container);
42
37
  }
43
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/components/brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,OAAO,cAAe,SAAQ,SAAkC;IAEpE;;;;;;;;;;;;OAYG;IACH,YAAY,OAAe,OAAO,EAAE,OAAe,aAAa,EAAE,aAAqB,EAAE,EAAE,cAAsB,EAAE,EAAE,eAA8B,IAAI;QACrJ,KAAK,C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AC;QAExC,IAAI,IAAI,EAAE,CAAC;YACT,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YAEjC,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAClD,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC;YAC9B,UAAU,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC,4BAA4B;YAEjE,eAAe,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAC5C,CAAC;CACF"}
@@ -1 +1 @@
1
- {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/app.ts","../src/utils/settings.ts","../src/utils/connection.ts","../src/components/app.ts","../node_modules/@types/bootstrap/js/dist/base-component.d.ts","../node_modules/@types/bootstrap/js/dist/alert.d.ts","../node_modules/@types/bootstrap/js/dist/button.d.ts","../node_modules/@types/bootstrap/js/dist/carousel.d.ts","../node_modules/@types/bootstrap/js/dist/collapse.d.ts","../node_modules/@popperjs/core/lib/enums.d.ts","../node_modules/@popperjs/core/lib/modifiers/popperOffsets.d.ts","../node_modules/@popperjs/core/lib/modifiers/flip.d.ts","../node_modules/@popperjs/core/lib/modifiers/hide.d.ts","../node_modules/@popperjs/core/lib/modifiers/offset.d.ts","../node_modules/@popperjs/core/lib/modifiers/eventListeners.d.ts","../node_modules/@popperjs/core/lib/modifiers/computeStyles.d.ts","../node_modules/@popperjs/core/lib/modifiers/arrow.d.ts","../node_modules/@popperjs/core/lib/modifiers/preventOverflow.d.ts","../node_modules/@popperjs/core/lib/modifiers/applyStyles.d.ts","../node_modules/@popperjs/core/lib/types.d.ts","../node_modules/@popperjs/core/lib/modifiers/index.d.ts","../node_modules/@popperjs/core/lib/utils/detectOverflow.d.ts","../node_modules/@popperjs/core/lib/createPopper.d.ts","../node_modules/@popperjs/core/lib/popper-lite.d.ts","../node_modules/@popperjs/core/lib/popper.d.ts","../node_modules/@popperjs/core/lib/index.d.ts","../node_modules/@popperjs/core/index.d.ts","../node_modules/@types/bootstrap/js/dist/tooltip.d.ts","../node_modules/@types/bootstrap/js/dist/dropdown.d.ts","../node_modules/@types/bootstrap/js/dist/modal.d.ts","../node_modules/@types/bootstrap/js/dist/offcanvas.d.ts","../node_modules/@types/bootstrap/js/dist/popover.d.ts","../node_modules/@types/bootstrap/js/dist/scrollspy.d.ts","../node_modules/@types/bootstrap/js/dist/tab.d.ts","../node_modules/@types/bootstrap/js/dist/toast.d.ts","../node_modules/@types/bootstrap/index.d.ts","../src/components/brand.ts","../src/components/button.ts","../src/components/checkbox.ts","../src/utils/selector.ts","../src/components/list.ts","../src/components/sidebar.ts","../src/components/offcanvas.ts","../src/utils/user_components.ts","../src/utils/blink.ts","../src/index.ts"],"fileIdsList":[[105],[99,101],[89,99,100,102,103,104],[99],[89,99],[90,91,92,93,94,95,96,97,98],[90,94,95,98,99,102],[90,91,92,93,94,95,96,97,98,99,100,102,103],[89,90,91,92,93,94,95,96,97,98],[85,86,87,88,107,108,109,110,111,112,113,114],[84],[84,106,107],[84,107],[84,106],[80,82],[80,115],[80],[80,119],[80,81,82,83,116,117,118,119,120,121,122,123,124],[81],[80,82,115,117]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f75ba7a25c9e5ab198eefb7d5f2f9e1e8c0547388589de7121c7bea1fa467685","signature":"4e9c90c464a9f0fa880509b14552f220f8acb3f6d734ea36104f01acdd6a0436"},{"version":"8c9413772b083f7ed51daa2d5b643626e592a0d147fd71db61e5885dc4891486","signature":"1dc507267156e6c5eda4a1a8064853d0ed6ecd926073900b96ed11f4bbd8b1fb"},{"version":"0495c6d975beaec3490dbdc434805ce3c24afbac5db8117c61a9cb32f3dc6dcd","signature":"2951ac53730a2da48588adcdf42c413b034f99843d187d858937bafcd8962635"},{"version":"a27d10a8c7ac13be8d9266e93a4f706eac036fb709cd1b924d5b9e3ccd54785c","signature":"f5783ee787d1740ceb96876cbda553c1baddca82f113a73811b0816f93f79edb"},{"version":"ce056ab24e2cd659c329b3db32bc2b9c49cb46885c713fc51a3ccf0530c0b263","impliedFormat":1},{"version":"e6f937d272c711656955e21e30f96d7d346c9c95f6835af61bcfc1289c21e207","impliedFormat":1},{"version":"2aa12d94c33ab2a76445b8e86f30ac5ef3036f4f6a54a039a15a61996ef05652","impliedFormat":1},{"version":"0c4e1e59c66f5d36dee15b22180dfc14771a7340f5e89b81f7826846d429a732","impliedFormat":1},{"version":"fc6cc569887efa22df1fe491a6ddaf9a1f389e02ea3c6e32ec420795d5b56ac5","impliedFormat":1},{"version":"70a29119482d358ab4f28d28ee2dcd05d6cbf8e678068855d016e10a9256ec12","impliedFormat":1},{"version":"869ac759ae8f304536d609082732cb025a08dcc38237fe619caf3fcdd41dde6f","impliedFormat":1},{"version":"0ea900fe6565f9133e06bce92e3e9a4b5a69234e83d40b7df2e1752b8d2b5002","impliedFormat":1},{"version":"e5408f95ca9ac5997c0fea772d68b1bf390e16c2a8cad62858553409f2b12412","impliedFormat":1},{"version":"3c1332a48695617fc5c8a1aead8f09758c2e73018bd139882283fb5a5b8536a6","impliedFormat":1},{"version":"9260b03453970e98ce9b1ad851275acd9c7d213c26c7d86bae096e8e9db4e62b","impliedFormat":1},{"version":"083838d2f5fea0c28f02ce67087101f43bd6e8697c51fd48029261653095080c","impliedFormat":1},{"version":"969132719f0f5822e669f6da7bd58ea0eb47f7899c1db854f8f06379f753b365","impliedFormat":1},{"version":"94ca5d43ff6f9dc8b1812b0770b761392e6eac1948d99d2da443dc63c32b2ec1","impliedFormat":1},{"version":"2cbc88cf54c50e74ee5642c12217e6fd5415e1b35232d5666d53418bae210b3b","impliedFormat":1},{"version":"ccb226557417c606f8b1bba85d178f4bcea3f8ae67b0e86292709a634a1d389d","impliedFormat":1},{"version":"5ea98f44cc9de1fe05d037afe4813f3dcd3a8c5de43bdd7db24624a364fad8e6","impliedFormat":1},{"version":"5260a62a7d326565c7b42293ed427e4186b9d43d6f160f50e134a18385970d02","impliedFormat":1},{"version":"0b3fc2d2d41ad187962c43cb38117d0aee0d3d515c8a6750aaea467da76b42aa","impliedFormat":1},{"version":"ed219f328224100dad91505388453a8c24a97367d1bc13dcec82c72ab13012b7","impliedFormat":1},{"version":"6847b17c96eb44634daa112849db0c9ade344fe23e6ced190b7eeb862beca9f4","impliedFormat":1},{"version":"d479a5128f27f63b58d57a61e062bd68fa43b684271449a73a4d3e3666a599a7","impliedFormat":1},{"version":"6f308b141358ac799edc3e83e887441852205dc1348310d30b62c69438b93ca0","impliedFormat":1},{"version":"5b6b7e4f40994d55bb979fd544329a3d83464cce9e324c59f55dddb3868a9514","impliedFormat":1},{"version":"78d217f663fab7783f37a3c1aa2038eea13b5aae6def5a5ebc19f122f154fac4","impliedFormat":1},{"version":"b9296e3c5de713bbfcf87201017c93dce7d1e2dae442656da79361d9314e1da6","impliedFormat":1},{"version":"c84b98e1720fd189cb4f5e3a9aaad4140de5094facf80094ea0abb37c5a5fea1","impliedFormat":1},{"version":"5f77d8d9556472561ff5cb276df359f3fff8e8471a773d353acda6f9aa3d3406","impliedFormat":1},{"version":"51b68f12056e75383fa59b8b2e3c4a338f311a89b01da4effe7ab72e581e8720","impliedFormat":1},{"version":"27de6f00dd8d82e82d04b862744cb95929065c5e5df9aaa658de582f1c5c76dc","impliedFormat":1},{"version":"2c228f052f7801628e65c40e5c4a6f4f702461fe477085e24f7db422776d9655","impliedFormat":1},{"version":"c27c10cacba7bf7d64d223aee16402ca8bc3273000e6b281dcf2e3877a235590","affectsGlobalScope":true,"impliedFormat":1},{"version":"92bd509f0b2ac0447a8ad8515f279525d0f49d5fb903daa6c482b5772197271f","signature":"da824c29d5e8fed74579f4c18f90549510be134bf423a11dfc334d727e48b414"},{"version":"fcbabdddbf307f59375e54c91f7777b7b33a2bfd18c489a043e6f7406d735e37","signature":"43bb87fc89ca8eb04b4fed7641e7af7b32d68d84dc3563a71ba0ef3bab4966da"},{"version":"b8837996b390e137830c9356199fd8868531cdbe56451523bc3b35d3bf7040d7","signature":"ea93ad291d12124ea264ce4a4b193fb0cd51e4f3c922cf9d75b81645028acf00"},{"version":"8c75f7c24ecb091282940be3a8bb4f69e26daa0582181babe92ff73d00764904","signature":"029dada1eb36e821262b7c4f4d0f423255e76ffddd6cbe548f27925b910cfb85"},{"version":"c32bb5e583b8809cdeaf2acb51fc0415968bac0c2984044fdeed53aee0012f2c","signature":"5f2c27d3fe1ae663cc9437aae46593a0abf36ffe8f98d0b75cb4462cd1745541"},{"version":"ab843d7e37b80075eeb46aa88310b1a7d053d2500876af4151b3879b5de26502","signature":"ac6693f71a2d32ec58ecb9e6361ba825027c00a38e84cacc9a99964f96278fc8"},{"version":"90e07cb46d543f9dad1d330e9aeb54a5d83606dd521ef18a0e1360f91137432b","signature":"df8353d5592c4599bbf71b79264f5a5897e25e982b3aae4af91deca4f29aecf7"},{"version":"4095858c907244f0151a76e357d06c006933bc051f1b7b49b91b271bd4e90578","signature":"3b5d594d49d23e7a87eb40f621dfb7434edc93df43bf88dbac11020db4bd3bce"},{"version":"f42a0a0447d588a4a684c8e72ca3ce2f0e35b9b11eb4ec58b209dbd1cb1ba438","signature":"f0595d80c8e00b0f0456f3ea81fda89e3695098ac2a1907db62a35baf0d9095c"},{"version":"e4044d413264b548089ecdde086c015f800fe9dbf7c84c61abc565a1b3010f9f","signature":"90370500a2eb8f62499089226ed13a3c601c444b4ce6f2219d6720cccafc5d17"}],"root":[[80,83],[116,125]],"options":{"declaration":true,"esModuleInterop":true,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitOverride":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"strict":true,"target":2},"referencedMap":[[106,1],[102,2],[105,3],[98,4],[96,5],[95,5],[94,4],[91,5],[92,4],[100,6],[93,5],[90,4],[97,5],[103,7],[104,8],[99,9],[101,5],[115,10],[85,11],[86,11],[87,11],[88,11],[108,12],[109,11],[110,11],[111,13],[112,11],[113,11],[114,11],[107,14],[83,15],[116,16],[117,17],[118,17],[120,18],[122,18],[121,18],[125,19],[82,20],[123,21]],"version":"5.8.3"}
1
+ {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/app.ts","../src/utils/settings.ts","../src/utils/connection.ts","../src/components/brand.ts","../src/components/app.ts","../src/components/button.ts","../src/components/checkbox.ts","../src/utils/selector.ts","../src/components/list.ts","../src/components/sidebar.ts","../src/components/offcanvas.ts","../node_modules/@types/bootstrap/js/dist/base-component.d.ts","../node_modules/@types/bootstrap/js/dist/alert.d.ts","../node_modules/@types/bootstrap/js/dist/button.d.ts","../node_modules/@types/bootstrap/js/dist/carousel.d.ts","../node_modules/@types/bootstrap/js/dist/collapse.d.ts","../node_modules/@popperjs/core/lib/enums.d.ts","../node_modules/@popperjs/core/lib/modifiers/popperOffsets.d.ts","../node_modules/@popperjs/core/lib/modifiers/flip.d.ts","../node_modules/@popperjs/core/lib/modifiers/hide.d.ts","../node_modules/@popperjs/core/lib/modifiers/offset.d.ts","../node_modules/@popperjs/core/lib/modifiers/eventListeners.d.ts","../node_modules/@popperjs/core/lib/modifiers/computeStyles.d.ts","../node_modules/@popperjs/core/lib/modifiers/arrow.d.ts","../node_modules/@popperjs/core/lib/modifiers/preventOverflow.d.ts","../node_modules/@popperjs/core/lib/modifiers/applyStyles.d.ts","../node_modules/@popperjs/core/lib/types.d.ts","../node_modules/@popperjs/core/lib/modifiers/index.d.ts","../node_modules/@popperjs/core/lib/utils/detectOverflow.d.ts","../node_modules/@popperjs/core/lib/createPopper.d.ts","../node_modules/@popperjs/core/lib/popper-lite.d.ts","../node_modules/@popperjs/core/lib/popper.d.ts","../node_modules/@popperjs/core/lib/index.d.ts","../node_modules/@popperjs/core/index.d.ts","../node_modules/@types/bootstrap/js/dist/tooltip.d.ts","../node_modules/@types/bootstrap/js/dist/dropdown.d.ts","../node_modules/@types/bootstrap/js/dist/modal.d.ts","../node_modules/@types/bootstrap/js/dist/offcanvas.d.ts","../node_modules/@types/bootstrap/js/dist/popover.d.ts","../node_modules/@types/bootstrap/js/dist/scrollspy.d.ts","../node_modules/@types/bootstrap/js/dist/tab.d.ts","../node_modules/@types/bootstrap/js/dist/toast.d.ts","../node_modules/@types/bootstrap/index.d.ts","../src/utils/user_components.ts","../src/utils/blink.ts","../src/index.ts"],"fileIdsList":[[112],[106,108],[96,106,107,109,110,111],[106],[96,106],[97,98,99,100,101,102,103,104,105],[97,101,102,105,106,109],[97,98,99,100,101,102,103,104,105,106,107,109,110],[96,97,98,99,100,101,102,103,104,105],[92,93,94,95,114,115,116,117,118,119,120,121],[91],[91,113,114],[91,114],[91,113],[80,82,83],[80],[80,87],[80,81,82,83,84,85,86,87,88,89,90,123,124],[81],[80,82,85,122]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f75ba7a25c9e5ab198eefb7d5f2f9e1e8c0547388589de7121c7bea1fa467685","signature":"4e9c90c464a9f0fa880509b14552f220f8acb3f6d734ea36104f01acdd6a0436"},{"version":"8c9413772b083f7ed51daa2d5b643626e592a0d147fd71db61e5885dc4891486","signature":"1dc507267156e6c5eda4a1a8064853d0ed6ecd926073900b96ed11f4bbd8b1fb"},{"version":"78b333391d841ca42558590a7699fc77b3801677ae99c9ee5ff46ebce4ef29ed","signature":"643f4875250cc5396bfa2592509f4f373b32902798b36867cd2508ec243c103b"},{"version":"06a838f6ce1538ca82cc46414297bf50e90db73d1f629b612cad0fc6e6fe9b08","signature":"c60848b4ae252f1d320f0db83f43e56f808587732e1b56085bda63542b76c54b"},{"version":"1c2a17d6a377442230562d2224d2d371401bb325d2a7c9ef51587a900cc21e0f","signature":"56d699b7018994b30abec40a2823fd3f79c0d3729f25734e3510e07a8dc9a29c"},{"version":"fcbabdddbf307f59375e54c91f7777b7b33a2bfd18c489a043e6f7406d735e37","signature":"43bb87fc89ca8eb04b4fed7641e7af7b32d68d84dc3563a71ba0ef3bab4966da"},{"version":"b8837996b390e137830c9356199fd8868531cdbe56451523bc3b35d3bf7040d7","signature":"ea93ad291d12124ea264ce4a4b193fb0cd51e4f3c922cf9d75b81645028acf00"},{"version":"8c75f7c24ecb091282940be3a8bb4f69e26daa0582181babe92ff73d00764904","signature":"029dada1eb36e821262b7c4f4d0f423255e76ffddd6cbe548f27925b910cfb85"},{"version":"c32bb5e583b8809cdeaf2acb51fc0415968bac0c2984044fdeed53aee0012f2c","signature":"5f2c27d3fe1ae663cc9437aae46593a0abf36ffe8f98d0b75cb4462cd1745541"},{"version":"ab843d7e37b80075eeb46aa88310b1a7d053d2500876af4151b3879b5de26502","signature":"ac6693f71a2d32ec58ecb9e6361ba825027c00a38e84cacc9a99964f96278fc8"},{"version":"90e07cb46d543f9dad1d330e9aeb54a5d83606dd521ef18a0e1360f91137432b","signature":"df8353d5592c4599bbf71b79264f5a5897e25e982b3aae4af91deca4f29aecf7"},{"version":"ce056ab24e2cd659c329b3db32bc2b9c49cb46885c713fc51a3ccf0530c0b263","impliedFormat":1},{"version":"e6f937d272c711656955e21e30f96d7d346c9c95f6835af61bcfc1289c21e207","impliedFormat":1},{"version":"2aa12d94c33ab2a76445b8e86f30ac5ef3036f4f6a54a039a15a61996ef05652","impliedFormat":1},{"version":"0c4e1e59c66f5d36dee15b22180dfc14771a7340f5e89b81f7826846d429a732","impliedFormat":1},{"version":"fc6cc569887efa22df1fe491a6ddaf9a1f389e02ea3c6e32ec420795d5b56ac5","impliedFormat":1},{"version":"70a29119482d358ab4f28d28ee2dcd05d6cbf8e678068855d016e10a9256ec12","impliedFormat":1},{"version":"869ac759ae8f304536d609082732cb025a08dcc38237fe619caf3fcdd41dde6f","impliedFormat":1},{"version":"0ea900fe6565f9133e06bce92e3e9a4b5a69234e83d40b7df2e1752b8d2b5002","impliedFormat":1},{"version":"e5408f95ca9ac5997c0fea772d68b1bf390e16c2a8cad62858553409f2b12412","impliedFormat":1},{"version":"3c1332a48695617fc5c8a1aead8f09758c2e73018bd139882283fb5a5b8536a6","impliedFormat":1},{"version":"9260b03453970e98ce9b1ad851275acd9c7d213c26c7d86bae096e8e9db4e62b","impliedFormat":1},{"version":"083838d2f5fea0c28f02ce67087101f43bd6e8697c51fd48029261653095080c","impliedFormat":1},{"version":"969132719f0f5822e669f6da7bd58ea0eb47f7899c1db854f8f06379f753b365","impliedFormat":1},{"version":"94ca5d43ff6f9dc8b1812b0770b761392e6eac1948d99d2da443dc63c32b2ec1","impliedFormat":1},{"version":"2cbc88cf54c50e74ee5642c12217e6fd5415e1b35232d5666d53418bae210b3b","impliedFormat":1},{"version":"ccb226557417c606f8b1bba85d178f4bcea3f8ae67b0e86292709a634a1d389d","impliedFormat":1},{"version":"5ea98f44cc9de1fe05d037afe4813f3dcd3a8c5de43bdd7db24624a364fad8e6","impliedFormat":1},{"version":"5260a62a7d326565c7b42293ed427e4186b9d43d6f160f50e134a18385970d02","impliedFormat":1},{"version":"0b3fc2d2d41ad187962c43cb38117d0aee0d3d515c8a6750aaea467da76b42aa","impliedFormat":1},{"version":"ed219f328224100dad91505388453a8c24a97367d1bc13dcec82c72ab13012b7","impliedFormat":1},{"version":"6847b17c96eb44634daa112849db0c9ade344fe23e6ced190b7eeb862beca9f4","impliedFormat":1},{"version":"d479a5128f27f63b58d57a61e062bd68fa43b684271449a73a4d3e3666a599a7","impliedFormat":1},{"version":"6f308b141358ac799edc3e83e887441852205dc1348310d30b62c69438b93ca0","impliedFormat":1},{"version":"5b6b7e4f40994d55bb979fd544329a3d83464cce9e324c59f55dddb3868a9514","impliedFormat":1},{"version":"78d217f663fab7783f37a3c1aa2038eea13b5aae6def5a5ebc19f122f154fac4","impliedFormat":1},{"version":"b9296e3c5de713bbfcf87201017c93dce7d1e2dae442656da79361d9314e1da6","impliedFormat":1},{"version":"c84b98e1720fd189cb4f5e3a9aaad4140de5094facf80094ea0abb37c5a5fea1","impliedFormat":1},{"version":"5f77d8d9556472561ff5cb276df359f3fff8e8471a773d353acda6f9aa3d3406","impliedFormat":1},{"version":"51b68f12056e75383fa59b8b2e3c4a338f311a89b01da4effe7ab72e581e8720","impliedFormat":1},{"version":"27de6f00dd8d82e82d04b862744cb95929065c5e5df9aaa658de582f1c5c76dc","impliedFormat":1},{"version":"2c228f052f7801628e65c40e5c4a6f4f702461fe477085e24f7db422776d9655","impliedFormat":1},{"version":"c27c10cacba7bf7d64d223aee16402ca8bc3273000e6b281dcf2e3877a235590","affectsGlobalScope":true,"impliedFormat":1},{"version":"4095858c907244f0151a76e357d06c006933bc051f1b7b49b91b271bd4e90578","signature":"3b5d594d49d23e7a87eb40f621dfb7434edc93df43bf88dbac11020db4bd3bce"},{"version":"f42a0a0447d588a4a684c8e72ca3ce2f0e35b9b11eb4ec58b209dbd1cb1ba438","signature":"f0595d80c8e00b0f0456f3ea81fda89e3695098ac2a1907db62a35baf0d9095c"},{"version":"e4044d413264b548089ecdde086c015f800fe9dbf7c84c61abc565a1b3010f9f","signature":"90370500a2eb8f62499089226ed13a3c601c444b4ce6f2219d6720cccafc5d17"}],"root":[[80,90],[123,125]],"options":{"declaration":true,"esModuleInterop":true,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitOverride":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"strict":true,"target":2},"referencedMap":[[113,1],[109,2],[112,3],[105,4],[103,5],[102,5],[101,4],[98,5],[99,4],[107,6],[100,5],[97,4],[104,5],[110,7],[111,8],[106,9],[108,5],[122,10],[92,11],[93,11],[94,11],[95,11],[115,12],[116,11],[117,11],[118,13],[119,11],[120,11],[121,11],[114,14],[84,15],[83,16],[85,16],[86,16],[88,17],[90,17],[89,17],[125,18],[82,19],[123,20]],"version":"5.8.3"}
@@ -5,34 +5,37 @@ export declare class Connection {
5
5
  private static instance;
6
6
  private socket;
7
7
  private connection_listeners;
8
+ private token;
8
9
  private constructor();
9
10
  static get_instance(): Connection;
10
11
  /**
11
12
  * Connects to the server.
12
13
  *
14
+ * @param token Optional token to use for the connection.
15
+ * @param remember_token Whether to remember the token.
13
16
  * @param timeout Timeout in milliseconds to wait before reconnecting.
14
17
  */
15
- connect(token?: string | null, timeout?: number): void;
18
+ connect(token?: string | null, remember_token?: boolean, timeout?: number): void;
16
19
  /**
17
20
  * Logs in a user.
18
21
  *
19
22
  * @param username Username.
20
23
  * @param password Password.
21
- * @param remember_input Whether to remember the input.
24
+ * @param remember_token Whether to remember the token.
22
25
  * @returns Whether the login was successful.
23
26
  */
24
- login(username: string, password: string, remember_input?: boolean): Promise<boolean>;
27
+ login(username: string, password: string, remember_token?: boolean): Promise<boolean>;
25
28
  /**
26
29
  * Creates a new user.
27
30
  *
28
31
  * @param username Username for the new user.
29
32
  * @param password Password for the new user.
30
33
  * @param personal_data Additional user data to store.
31
- * @param remember_input Whether to remember the input.
34
+ * @param remember_token Whether to remember the token.
32
35
  * @param token Optional token to use for the request.
33
36
  * @returns Whether the user creation was successful.
34
37
  */
35
- create_user(username: string, password: string, personal_data?: Record<string, any>, remember_input?: boolean, token?: string | null): Promise<boolean>;
38
+ create_user(username: string, password: string, personal_data?: Record<string, any>, remember_token?: boolean): Promise<boolean>;
36
39
  /**
37
40
  * Logs out the user.
38
41
  */
@@ -43,6 +46,12 @@ export declare class Connection {
43
46
  * @returns {boolean} `true` if the socket exists and its ready state is `WebSocket.OPEN`, otherwise `false`.
44
47
  */
45
48
  is_connected(): boolean;
49
+ /**
50
+ * Returns the current token.
51
+ *
52
+ * @returns {string | null} The current token, or `null` if not set.
53
+ */
54
+ get_token(): string | null;
46
55
  /**
47
56
  * Adds a connection listener.
48
57
  *
@@ -15,6 +15,7 @@ export class Connection {
15
15
  constructor() {
16
16
  this.socket = null;
17
17
  this.connection_listeners = new Set();
18
+ this.token = null;
18
19
  console.debug('localStorage available: ', typeof localStorage !== 'undefined');
19
20
  console.debug('localStorage token: ', localStorage.getItem('token'));
20
21
  }
@@ -26,9 +27,11 @@ export class Connection {
26
27
  /**
27
28
  * Connects to the server.
28
29
  *
30
+ * @param token Optional token to use for the connection.
31
+ * @param remember_token Whether to remember the token.
29
32
  * @param timeout Timeout in milliseconds to wait before reconnecting.
30
33
  */
31
- connect(token = null, timeout = 5000) {
34
+ connect(token = null, remember_token = false, timeout = 5000) {
32
35
  if (this.socket)
33
36
  this.socket.close();
34
37
  console.info('Connecting to server: ', Settings.get_instance().get_ws_host());
@@ -44,10 +47,14 @@ export class Connection {
44
47
  this.socket.onmessage = (event) => {
45
48
  console.trace('Received message from server: ', event.data);
46
49
  const message = JSON.parse(event.data);
47
- if (message.msg_type === 'login')
50
+ if (message.msg_type === 'login') {
51
+ this.token = token;
52
+ if (remember_token)
53
+ localStorage.setItem('token', token);
48
54
  for (const listener of this.connection_listeners) {
49
55
  listener.logged_in(message.personal_data);
50
56
  }
57
+ }
51
58
  else
52
59
  for (const listener of this.connection_listeners) {
53
60
  listener.received_message(message);
@@ -64,7 +71,7 @@ export class Connection {
64
71
  for (const listener of this.connection_listeners) {
65
72
  listener.connection_error(ev);
66
73
  }
67
- setTimeout(() => this.connect(token, timeout), timeout);
74
+ setTimeout(() => this.connect(token, remember_token, timeout), timeout);
68
75
  };
69
76
  }
70
77
  /**
@@ -72,18 +79,16 @@ export class Connection {
72
79
  *
73
80
  * @param username Username.
74
81
  * @param password Password.
75
- * @param remember_input Whether to remember the input.
82
+ * @param remember_token Whether to remember the token.
76
83
  * @returns Whether the login was successful.
77
84
  */
78
85
  login(username_1, password_1) {
79
- return __awaiter(this, arguments, void 0, function* (username, password, remember_input = false) {
86
+ return __awaiter(this, arguments, void 0, function* (username, password, remember_token = false) {
80
87
  console.debug('Logging in user: ', username);
81
88
  const response = yield fetch(Settings.get_instance().get_host() + '/login', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ username: username, password: password }) });
82
89
  if (response.ok) { // Login successful
83
90
  const data = yield response.json();
84
- if (remember_input)
85
- localStorage.setItem('token', data.token);
86
- this.connect(data.token);
91
+ this.connect(data.token, remember_token);
87
92
  return true;
88
93
  }
89
94
  else { // Login failed
@@ -100,16 +105,16 @@ export class Connection {
100
105
  * @param username Username for the new user.
101
106
  * @param password Password for the new user.
102
107
  * @param personal_data Additional user data to store.
103
- * @param remember_input Whether to remember the input.
108
+ * @param remember_token Whether to remember the token.
104
109
  * @param token Optional token to use for the request.
105
110
  * @returns Whether the user creation was successful.
106
111
  */
107
112
  create_user(username_1, password_1) {
108
- return __awaiter(this, arguments, void 0, function* (username, password, personal_data = {}, remember_input = true, token = null) {
113
+ return __awaiter(this, arguments, void 0, function* (username, password, personal_data = {}, remember_token = true) {
109
114
  console.debug('Creating new user: ', username);
110
115
  const headers = { 'content-type': 'application/json' };
111
- if (token)
112
- headers['authorization'] = `Bearer ${token}`;
116
+ if (this.token)
117
+ headers['authorization'] = `Bearer ${this.token}`;
113
118
  const body = { username, password };
114
119
  if (Object.keys(personal_data).length > 0)
115
120
  body.user_data = personal_data;
@@ -120,9 +125,7 @@ export class Connection {
120
125
  });
121
126
  if (response.ok) { // User creation successful
122
127
  const data = yield response.json();
123
- if (remember_input)
124
- localStorage.setItem('token', data.token);
125
- this.connect(data.token);
128
+ this.connect(data.token, remember_token);
126
129
  return true;
127
130
  }
128
131
  else { // User creation failed
@@ -139,6 +142,7 @@ export class Connection {
139
142
  logout() {
140
143
  console.debug('Logging out user');
141
144
  this.socket.send(JSON.stringify({ msg_type: 'logout' }));
145
+ this.token = null;
142
146
  localStorage.removeItem('token');
143
147
  for (const listener of this.connection_listeners) {
144
148
  listener.logged_out();
@@ -151,6 +155,12 @@ export class Connection {
151
155
  * @returns {boolean} `true` if the socket exists and its ready state is `WebSocket.OPEN`, otherwise `false`.
152
156
  */
153
157
  is_connected() { return this.socket !== null && this.socket.readyState === WebSocket.OPEN; }
158
+ /**
159
+ * Returns the current token.
160
+ *
161
+ * @returns {string | null} The current token, or `null` if not set.
162
+ */
163
+ get_token() { return this.token; }
154
164
  /**
155
165
  * Adds a connection listener.
156
166
  *
@@ -1 +1 @@
1
- {"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/utils/connection.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,MAAM,OAAO,UAAU;IAMrB;QAHQ,WAAM,GAAqB,IAAI,CAAC;QAChC,yBAAoB,GAA4B,IAAI,GAAG,EAAE,CAAC;QAGhE,OA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CAAC,CAAC;IAErG;;;;OAIG;IACH,SAAS,KAAoB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAEjD;;;;OAIG;IACH,uBAAuB,CAAC,QAA4B,IAAU,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAExG;;;;OAIG;IACH,0BAA0B,CAAC,QAA4B,IAAU,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;CAC/G"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ratiosolver/flick",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "type": "module",
5
5
  "description": "A tiny and focused UI framework designed for clarity and speed",
6
6
  "main": "dist/index.js",