Sha256: ada5ff044fad60b3c89b226ea0d3b95be63ad3454c3d3315f8b1eff8fe4737d7

Contents?: true

Size: 910 Bytes

Versions: 30

Compression:

Stored size: 910 Bytes

Contents

import config from "../config";

export default function createInspectorStore(Alpine) {
  const { drawer, preview } = config.inspector;
  return {
    drawer: {
      hidden: Alpine.$persist(false).as("drawer-hidden"),
      orientation: Alpine.$persist(drawer.orientation).as("drawer-orientation"),
      panel: Alpine.$persist(drawer.defaultPanel).as("drawer-panel"),
      height: Alpine.$persist(drawer.defaultHeight).as("drawer-height"),
      width: Alpine.$persist(drawer.defaultWidth).as("drawer-width"),
      minWidth: drawer.minWidth,
      minHeight: drawer.minHeight,
      visibleTabCount: Infinity,
    },
    preview: {
      width: Alpine.$persist("100%").as("preview-width"),
      height: Alpine.$persist("100%").as("preview-height"),
      panel: Alpine.$persist(preview.defaultPanel).as("preview-panel"),
      lastWidth: null,
      lastHeight: null,
      resizing: false,
    },
  };
}

Version data entries

30 entries across 30 versions & 1 rubygems

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