How to use the @lrnwebcomponents/haxcms-elements/lib/core/haxcms-site-store.js.store.cmsSiteEditorAvailability function in @lrnwebcomponents/haxcms-elements

To help you get started, we’ve selected a few @lrnwebcomponents/haxcms-elements examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / backends / haxcms-backend-demo.js View on Github external
e => {
          // validate availability
          store.cmsSiteEditorAvailability();
          store.cmsSiteEditor.instance.jwt = this.jwt;
          store.cmsSiteEditor.instance.method = "GET";
          store.cmsSiteEditor.instance.saveNodePath =
            window.appSettings.saveNodePath;
          store.cmsSiteEditor.instance.saveManifestPath =
            window.appSettings.saveManifestPath;
          store.cmsSiteEditor.instance.saveOutlinePath =
            window.appSettings.saveOutlinePath;
          store.cmsSiteEditor.instance.getNodeFieldsPath =
            window.appSettings.getNodeFieldsPath;
          store.cmsSiteEditor.instance.getSiteFieldsPath =
            window.appSettings.getSiteFieldsPath;
          store.cmsSiteEditor.instance.createNodePath =
            window.appSettings.createNodePath;
          store.cmsSiteEditor.instance.deleteNodePath =
            window.appSettings.deleteNodePath;
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / HAXCMSThemeWiring.js View on Github external
connect(element, injector) {
    window.addEventListener(
      "haxcms-active-item-changed",
      this._activeItemUpdate.bind(element)
    );
    window.addEventListener(
      "haxcms-edit-mode-changed",
      this._globalEditChanged.bind(element)
    );
    window.addEventListener(
      "haxcms-trigger-update",
      this._triggerUpdate.bind(element)
    );
    // inject the tools to allow for an authoring experience
    // ensuring they are loaded into the correct theme
    store.cmsSiteEditorAvailability();
    store.cmsSiteEditor.instance.appElement = element;
    store.cmsSiteEditor.instance.appendTarget = injector;
    store.cmsSiteEditor.instance.appendTarget.appendChild(
      store.cmsSiteEditor.instance
    );
  }
  /**
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / backends / haxcms-backend-php.js View on Github external
e => {
          // if we don't have appSettings by this point
          // it means we don't actually have a backend / directions
          // this would be a published state or a state where
          // there is no actual backend to bother confiring with
          // possibly a user navigated to a site that doesn't
          // have JWT credentials but isn't actually published
          // we also need this here because PHP is the assumed
          // fallback backend
          if (window.appSettings) {
            store.cmsSiteEditorAvailability();
            store.cmsSiteEditor.instance.jwt = this.jwt;
            store.cmsSiteEditor.instance.saveNodePath =
              window.appSettings.saveNodePath;
            store.cmsSiteEditor.instance.saveManifestPath =
              window.appSettings.saveManifestPath;
            store.cmsSiteEditor.instance.saveOutlinePath =
              window.appSettings.saveOutlinePath;
            store.cmsSiteEditor.instance.getNodeFieldsPath =
              window.appSettings.getNodeFieldsPath;
            store.cmsSiteEditor.instance.getSiteFieldsPath =
              window.appSettings.getSiteFieldsPath;
            store.cmsSiteEditor.instance.getFormToken =
              window.appSettings.getFormToken;
            store.cmsSiteEditor.instance.publishSitePath =
              window.appSettings.publishSitePath;
            store.cmsSiteEditor.instance.syncSitePath =
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / HAXCMSThemeWiring.js View on Github external
disconnect(element) {
    window.removeEventListener(
      "haxcms-active-item-changed",
      this._activeItemUpdate.bind(element)
    );
    window.removeEventListener(
      "haxcms-edit-mode-changed",
      this._globalEditChanged.bind(element)
    );
    window.removeEventListener(
      "haxcms-trigger-update",
      this._triggerUpdate.bind(element)
    );
    // need to unplug this so that the new theme can pick it up.
    document.body.appendChild(store.cmsSiteEditorAvailability());
  }
  /**
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / backends / haxcms-backend-nodejs.js View on Github external
e => {
          // if we don't have appSettings by this point
          // it means we don't actually have a backend / directions
          // this would be a published state or a state where
          // there is no actual backend to bother confiring with
          // possibly a user navigated to a site that doesn't
          // have JWT credentials but isn't actually published
          // we also need this here because PHP is the assumed
          // fallback backend
          if (window.appSettings) {
            store.cmsSiteEditorAvailability();
            store.cmsSiteEditor.instance.jwt = this.jwt;
            store.cmsSiteEditor.instance.saveNodePath =
              window.appSettings.saveNodePath;
            store.cmsSiteEditor.instance.saveManifestPath =
              window.appSettings.saveManifestPath;
            store.cmsSiteEditor.instance.saveOutlinePath =
              window.appSettings.saveOutlinePath;
            store.cmsSiteEditor.instance.getNodeFieldsPath =
              window.appSettings.getNodeFieldsPath;
            store.cmsSiteEditor.instance.getSiteFieldsPath =
              window.appSettings.getSiteFieldsPath;
            store.cmsSiteEditor.instance.getFormToken =
              window.appSettings.getFormToken;
            store.cmsSiteEditor.instance.publishSitePath =
              window.appSettings.publishSitePath;
            store.cmsSiteEditor.instance.syncSitePath =
github elmsln / lrnwebcomponents / elements / haxcms-elements / lib / core / backends / haxcms-backend-beaker.js View on Github external
e => {
            store.cmsSiteEditorAvailability();
            store.cmsSiteEditor.instance.jwt = this.jwt;
            store.cmsSiteEditor.instance.appStore = appstore;
          },
          e => {

@lrnwebcomponents/haxcms-elements

HAX CMS series of elements to provide a full on CMS

Apache-2.0
Latest version published 5 months ago

Package Health Score

69 / 100
Full package analysis

Popular @lrnwebcomponents/haxcms-elements functions