Sha256: 44baeb70e25f4840556deb4c0b5371fb9e600b48d736c32440e7f1c7c7a7f68c

Contents?: true

Size: 582 Bytes

Versions: 68

Compression:

Stored size: 582 Bytes

Contents

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

export default function initNavStore(Alpine, { prefix }) {
  return {
    previews: {
      filter: initFilterStore(
        Alpine,
        prefixString("previews-filter-text", prefix)
      ),
      open: Alpine.$persist([]).as(prefixString("previews-nav-open", prefix)),
    },

    pages: {
      filter: initFilterStore(
        Alpine,
        prefixString("pages-filter-text", prefix)
      ),
      open: Alpine.$persist([]).as(prefixString("pages-nav-open", prefix)),
    },
  };
}

Version data entries

68 entries across 68 versions & 1 rubygems

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