Sha256: 4a311a42dee6b734683519e9f60e3a92ea20a094d535daa1c7b30a285d082e51

Contents?: true

Size: 822 Bytes

Versions: 1

Compression:

Stored size: 822 Bytes

Contents

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

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

    preview: {
      activeTab: Alpine.$persist("").as(
        prefixString("inspector-preview-active-tab", prefix)
      ),
      width: Alpine.$persist("100%").as(
        prefixString("inspector-preview-width", prefix)
      ),
      height: Alpine.$persist("100%").as(
        prefixString("inspector-preview-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

1 entries across 1 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.0 app/assets/lookbook/js/stores/inspector.js