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.0.0.beta.9 assets/js/stores/nav.js
lookbook-2.0.0.beta.8 assets/js/stores/nav.js
lookbook-2.0.0.beta.7 assets/js/stores/nav.js
lookbook-2.0.0.beta.5 app/assets/lookbook/js/stores/nav.js
lookbook-2.0.0.beta.4 app/assets/lookbook/js/stores/nav.js
lookbook-2.0.0.beta.3 app/assets/lookbook/js/stores/nav.js
lookbook-2.0.0.beta.2 app/assets/lookbook/js/stores/nav.js
lookbook-1.5.3 app/assets/lookbook/js/stores/nav.js
lookbook-2.0.0.beta.1 app/assets/lookbook/js/stores/nav.js
lookbook-1.5.2 app/assets/lookbook/js/stores/nav.js
lookbook-2.0.0.beta.0 app/assets/lookbook/js/stores/nav.js
lookbook-1.5.1 app/assets/lookbook/js/stores/nav.js
lookbook-1.5.0 app/assets/lookbook/js/stores/nav.js
lookbook-1.4.5 app/assets/lookbook/js/stores/nav.js
lookbook-1.4.4 app/assets/lookbook/js/stores/nav.js
lookbook-1.4.3 app/assets/lookbook/js/stores/nav.js
lookbook-1.4.2 app/assets/lookbook/js/stores/nav.js
lookbook-1.4.1 app/assets/lookbook/js/stores/nav.js
lookbook-1.4.0 app/assets/lookbook/js/stores/nav.js
lookbook-1.3.4 app/assets/lookbook/js/stores/nav.js