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.3.4 assets/js/stores/inspector.js
lookbook-2.3.3 assets/js/stores/inspector.js
lookbook-2.3.2 assets/js/stores/inspector.js
lookbook-2.3.0 assets/js/stores/inspector.js
lookbook-2.2.2 assets/js/stores/inspector.js
lookbook-2.2.1 assets/js/stores/inspector.js
lookbook-2.2.0 assets/js/stores/inspector.js
lookbook-2.1.1 assets/js/stores/inspector.js
lookbook-2.1.0 assets/js/stores/inspector.js
lookbook-2.0.5 assets/js/stores/inspector.js
lookbook-2.0.4 assets/js/stores/inspector.js
lookbook-2.0.3 assets/js/stores/inspector.js
lookbook-2.0.2 assets/js/stores/inspector.js
lookbook-2.0.1 assets/js/stores/inspector.js
lookbook-2.0.0 assets/js/stores/inspector.js
lookbook-2.0.0.rc.3 assets/js/stores/inspector.js
lookbook-1.5.5 app/assets/lookbook/js/stores/inspector.js
lookbook-1.5.4 app/assets/lookbook/js/stores/inspector.js
lookbook-2.0.0.rc.2 assets/js/stores/inspector.js
lookbook-2.0.0.rc.1 assets/js/stores/inspector.js