Sha256: 8a1fe4a90dea327c0c6657f6bfb78b1673bce72a7416d42d4bc0f1a913a3129b

Contents?: true

Size: 810 Bytes

Versions: 67

Compression:

Stored size: 810 Bytes

Contents

import { prefixString } from "../helpers/string";

export default function initInspectorStore(Alpine, { prefix }) {
  return {
    minVerticalSplitWidth: 800,

    main: {
      activeTab: Alpine.$persist("").as(
        prefixString("inspector-main-active-tab", prefix)
      ),
      width: Alpine.$persist("100%").as(
        prefixString("inspector-main-width", prefix)
      ),
      height: Alpine.$persist("100%").as(
        prefixString("inspector-main-height", prefix)
      ),
      lastWidth: null,
      lastHeight: null,
      resizing: false,
    },

    drawer: {
      hidden: Alpine.$persist(false).as(
        prefixString("inspector-drawer-hidden", prefix)
      ),
      activeTab: Alpine.$persist("").as(
        prefixString("inspector-drawer-active-tab", prefix)
      ),
    },
  };
}

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
lookbook-2.0.0.beta.9 assets/js/stores/inspector.js
lookbook-2.0.0.beta.8 assets/js/stores/inspector.js
lookbook-2.0.0.beta.7 assets/js/stores/inspector.js
lookbook-2.0.0.beta.5 app/assets/lookbook/js/stores/inspector.js
lookbook-2.0.0.beta.4 app/assets/lookbook/js/stores/inspector.js
lookbook-2.0.0.beta.3 app/assets/lookbook/js/stores/inspector.js
lookbook-2.0.0.beta.2 app/assets/lookbook/js/stores/inspector.js
lookbook-1.5.3 app/assets/lookbook/js/stores/inspector.js
lookbook-2.0.0.beta.1 app/assets/lookbook/js/stores/inspector.js
lookbook-1.5.2 app/assets/lookbook/js/stores/inspector.js
lookbook-2.0.0.beta.0 app/assets/lookbook/js/stores/inspector.js
lookbook-1.5.1 app/assets/lookbook/js/stores/inspector.js
lookbook-1.5.0 app/assets/lookbook/js/stores/inspector.js
lookbook-1.4.5 app/assets/lookbook/js/stores/inspector.js
lookbook-1.4.4 app/assets/lookbook/js/stores/inspector.js
lookbook-1.4.3 app/assets/lookbook/js/stores/inspector.js
lookbook-1.4.2 app/assets/lookbook/js/stores/inspector.js
lookbook-1.4.1 app/assets/lookbook/js/stores/inspector.js
lookbook-1.4.0 app/assets/lookbook/js/stores/inspector.js
lookbook-1.3.4 app/assets/lookbook/js/stores/inspector.js