How to use impress - 8 common examples

To help you get started, we’ve selected a few impress 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 metarhia / server / applications / metarhia.com / static / js / impress.js View on Github external
api.tabs.createMaster = () => {
  api.tabs.masterTab = true;
  api.tabs.masterTabId = api.tabs.tabId;
  api.tabs.masterTabKey = api.tabs.tabKey;
  localStorage['impress.master'] = api.tabs.tabId;
  api.tabs.initializeDone();
};
github metarhia / server / applications / metarhia.com / static / js / impress.js View on Github external
api.tabs.initializeConnection = () => {
  if (!api.tabs.initialized) {
    api.tabs.tabId = api.tabs.getFreeTab();
    api.tabs.tabKey = 'impress.tab' + api.tabs.tabId;
    api.tabs.heartbeat();
    api.tabs.heartbeatEvent = setInterval(
      api.tabs.heartbeat, api.tabs.heartbeatInterval
    );
    localStorage['impress.newtab'] = api.tabs.tabId;
    global.addEventListener('storage', api.tabs.onStorageChange, false);
  }
  const master = localStorage['impress.master'];
  if (master) api.tabs.setMaster(master);
  else api.tabs.createMaster();
  api.tabs.initializeDone();
};
github metarhia / impress / applications / example / static / js / impress.rpc.js View on Github external
impress.rpc.createMaster = function() {
    impress.rpc.masterTab = true;
    impress.rpc.masterTabId = impress.rpc.tabId;
    impress.rpc.masterTabKey = impress.rpc.tabKey;
    localStorage['impress.rpc.master'] = impress.rpc.tabId;
    impress.rpc.initializeDone();
  };
github metarhia / impress / applications / example / static / js / impress.rpc.js View on Github external
impress.rpc.initializeConnection = function() {
    if (!impress.rpc.initialized) {
      impress.rpc.tabId = impress.rpc.getFreeTab();
      impress.rpc.tabKey = 'impress.rpc.tab' + impress.rpc.tabId;
      impress.rpc.heartbeat();
      impress.rpc.heartbeatEvent = setInterval(impress.rpc.heartbeat, impress.rpc.heartbeatInterval);
      localStorage['impress.rpc.newtab'] = impress.rpc.tabId;
      global.addEventListener('storage', impress.rpc.onStorageChange, false);
    }
    var master = localStorage['impress.rpc.master'];
    if (master) impress.rpc.setMaster(master);
    else impress.rpc.createMaster();
    impress.rpc.initializeDone();
  };
github metarhia / server / applications / metarhia.com / static / js / impress.js View on Github external
api.tabs.emitTabs = (name, data) => {
  localStorage['impress.event'] = JSON.stringify({
    name, data, time: Date.now()
  });
};
github metarhia / server / applications / metarhia.com / static / js / impress.js View on Github external
api.tabs.initializeConnection = () => {
  if (!api.tabs.initialized) {
    api.tabs.tabId = api.tabs.getFreeTab();
    api.tabs.tabKey = 'impress.tab' + api.tabs.tabId;
    api.tabs.heartbeat();
    api.tabs.heartbeatEvent = setInterval(
      api.tabs.heartbeat, api.tabs.heartbeatInterval
    );
    localStorage['impress.newtab'] = api.tabs.tabId;
    global.addEventListener('storage', api.tabs.onStorageChange, false);
  }
  const master = localStorage['impress.master'];
  if (master) api.tabs.setMaster(master);
  else api.tabs.createMaster();
  api.tabs.initializeDone();
};
github metarhia / impress / applications / example / static / js / impress.rpc.js View on Github external
impress.rpc.emitTabs = function(name, data) {
    localStorage['impress.rpc.event'] = JSON.stringify({ name: name, data: data, time: Date.now() });
  };
github metarhia / impress / applications / example / static / js / impress.rpc.js View on Github external
impress.rpc.initializeConnection = function() {
    if (!impress.rpc.initialized) {
      impress.rpc.tabId = impress.rpc.getFreeTab();
      impress.rpc.tabKey = 'impress.rpc.tab' + impress.rpc.tabId;
      impress.rpc.heartbeat();
      impress.rpc.heartbeatEvent = setInterval(impress.rpc.heartbeat, impress.rpc.heartbeatInterval);
      localStorage['impress.rpc.newtab'] = impress.rpc.tabId;
      global.addEventListener('storage', impress.rpc.onStorageChange, false);
    }
    var master = localStorage['impress.rpc.master'];
    if (master) impress.rpc.setMaster(master);
    else impress.rpc.createMaster();
    impress.rpc.initializeDone();
  };

impress

Enterprise application server for Node.js

MIT
Latest version published 1 month ago

Package Health Score

85 / 100
Full package analysis