Sha256: f9c9c080c07c830cb57d53ffd5e803b3a2529cae435a4dfe48aa320c8c1a0a5e

Contents?: true

Size: 848 Bytes

Versions: 68

Compression:

Stored size: 848 Bytes

Contents

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

export default function initWorkbenchStore(Alpine, { prefix }) {
  return {
    filter: initFilterStore(Alpine, prefixString("workbench-filter", prefix)),
    nav: {
      open: Alpine.$persist([]).as(prefixString("workbench-nav-open", prefix)),
      location: {
        pathname: null,
      },
    },
    horizontalSplitLayout: {
      split: Alpine.$persist({
        direction: "horizontal",
        sizes: ["50%", "50%"],
      }).as(prefixString("workbench-horizontal-split", prefix)),
    },
    verticalSplitLayout: {
      split: Alpine.$persist({
        direction: "vertical",
        sizes: ["40%", "30%", "30%"],
      }).as(prefixString("workbench-vertical-split", prefix)),
    },
    tabbedPanels: {
      activeTab: "tab-1",
    },
  };
}

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
lookbook-2.3.4 assets/js/stores/workbench.js
lookbook-2.3.3 assets/js/stores/workbench.js
lookbook-2.3.2 assets/js/stores/workbench.js
lookbook-2.3.0 assets/js/stores/workbench.js
lookbook-2.2.2 assets/js/stores/workbench.js
lookbook-2.2.1 assets/js/stores/workbench.js
lookbook-2.2.0 assets/js/stores/workbench.js
lookbook-2.1.1 assets/js/stores/workbench.js
lookbook-2.1.0 assets/js/stores/workbench.js
lookbook-2.0.5 assets/js/stores/workbench.js
lookbook-2.0.4 assets/js/stores/workbench.js
lookbook-2.0.3 assets/js/stores/workbench.js
lookbook-2.0.2 assets/js/stores/workbench.js
lookbook-2.0.1 assets/js/stores/workbench.js
lookbook-2.0.0 assets/js/stores/workbench.js
lookbook-2.0.0.rc.3 assets/js/stores/workbench.js
lookbook-1.5.5 app/assets/lookbook/js/stores/workbench.js
lookbook-1.5.4 app/assets/lookbook/js/stores/workbench.js
lookbook-2.0.0.rc.2 assets/js/stores/workbench.js
lookbook-2.0.0.rc.1 assets/js/stores/workbench.js