index.js 1.1 KB

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. const sheep_api_index = require("./api/index.js");
  3. const sheep_url_index = require("./url/index.js");
  4. const sheep_router_index = require("./router/index.js");
  5. const sheep_platform_index = require("./platform/index.js");
  6. const sheep_helper_index = require("./helper/index.js");
  7. const sheep_config_zIndex = require("./config/zIndex.js");
  8. const sheep_store_index = require("./store/index.js");
  9. const common_vendor = require("../common/vendor.js");
  10. common_vendor.dayjs.locale("zh-cn");
  11. common_vendor.dayjs.extend(common_vendor.relativeTime);
  12. common_vendor.dayjs.extend(common_vendor.duration);
  13. const sheep = {
  14. $api: sheep_api_index.$api,
  15. $store: sheep_store_index.$store,
  16. $url: sheep_url_index.$url,
  17. $router: sheep_router_index.$router,
  18. $platform: sheep_platform_index._platform,
  19. $helper: sheep_helper_index.$helper,
  20. $zIndex: sheep_config_zIndex.zIndex
  21. };
  22. async function ShoproInit() {
  23. await sheep_store_index.$store("app").init();
  24. sheep_platform_index._platform.load();
  25. }
  26. const sheep$1 = sheep;
  27. exports.ShoproInit = ShoproInit;
  28. exports.sheep = sheep$1;