index.js 967 B

12345678910111213141516171819202122
  1. "use strict";
  2. const sheep_store_app = require("./app.js");
  3. const sheep_store_cart = require("./cart.js");
  4. const sheep_store_modal = require("./modal.js");
  5. const sheep_store_sys = require("./sys.js");
  6. const sheep_store_user = require("./user.js");
  7. const common_vendor = require("../../common/vendor.js");
  8. const files = /* @__PURE__ */ Object.assign({ "./app.js": sheep_store_app.__vite_glob_0_0, "./cart.js": sheep_store_cart.__vite_glob_0_1, "./modal.js": sheep_store_modal.__vite_glob_0_2, "./sys.js": sheep_store_sys.__vite_glob_0_3, "./user.js": sheep_store_user.__vite_glob_0_4 });
  9. const modules = {};
  10. Object.keys(files).forEach((key) => {
  11. modules[key.replace(/(.*\/)*([^.]+).*/gi, "$2")] = files[key].default;
  12. });
  13. const setupPinia = (app) => {
  14. const pinia = common_vendor.createPinia();
  15. pinia.use(common_vendor.index$1);
  16. app.use(pinia);
  17. };
  18. const $store = (name) => {
  19. return modules[name]();
  20. };
  21. exports.$store = $store;
  22. exports.setupPinia = setupPinia;