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-1.0.0.beta.7 app/assets/lookbook/js/stores/nav.js
lookbook-1.0.0.beta.6 app/assets/lookbook/js/stores/nav.js
lookbook-1.0.0.beta.5 app/assets/lookbook/js/stores/nav.js
lookbook-1.0.0.beta.4 app/assets/lookbook/js/stores/nav.js
lookbook-1.0.0.beta.3 app/assets/lookbook/js/stores/nav.js
lookbook-1.0.0.beta.2 app/assets/lookbook/js/stores/nav.js
lookbook-1.0.0.beta.1 app/assets/lookbook/js/stores/nav.js
lookbook-1.0.0.beta.0 app/assets/lookbook/js/stores/nav.js