Sha256: e1e869e0612f63d40ac820af9752f0a8a584d081fbbdc90ff4b3bf6045753918

Contents?: true

Size: 314 Bytes

Versions: 25

Compression:

Stored size: 314 Bytes

Contents

import config from "../config";

export default function createLayoutStore() {
  return {
    init() {
      this.desktop = window.innerWidth >= config.desktopWidth;
    },
    reflowing: false,
    desktop: true,
    desktopWidth: config.desktopWidth,
    get mobile() {
      return !this.desktop;
    },
  };
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
lookbook-0.9.8 app/assets/lookbook/js/stores/layout.js
lookbook-0.9.7 app/assets/lookbook/js/stores/layout.js
lookbook-0.9.6 app/assets/lookbook/js/stores/layout.js
lookbook-0.9.5 app/assets/lookbook/js/stores/layout.js
lookbook-0.9.4 app/assets/lookbook/js/stores/layout.js
lookbook-0.9.3 app/assets/lookbook/js/stores/layout.js
lookbook-0.9.2 app/assets/lookbook/js/stores/layout.js
lookbook-0.9.1 app/assets/lookbook/js/stores/layout.js
lookbook-0.9.0 app/assets/lookbook/js/stores/layout.js
lookbook-0.8.3 app/assets/lookbook/js/stores/layout.js
lookbook-0.8.2 app/assets/lookbook/js/stores/layout.js
lookbook-0.8.1 app/assets/lookbook/js/stores/layout.js
lookbook-0.8.0 app/assets/lookbook/js/stores/layout.js
lookbook-0.8.0.beta.0 app/assets/lookbook/js/stores/layout.js
lookbook-0.7.4 app/assets/lookbook/js/stores/layout.js
lookbook-0.7.3 app/assets/lookbook/js/stores/layout.js
lookbook-0.7.2 app/assets/lookbook/js/stores/layout.js
lookbook-0.7.2.beta.5 app/assets/lookbook/js/stores/layout.js
lookbook-0.7.2.beta.4 app/assets/lookbook/js/stores/layout.js
lookbook-0.7.2.beta.3 app/assets/lookbook/js/stores/layout.js