50 lines
1.6 KiB
JavaScript
50 lines
1.6 KiB
JavaScript
|
"use strict";
|
||
|
var __async = (__this, __arguments, generator) => {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
var fulfilled = (value) => {
|
||
|
try {
|
||
|
step(generator.next(value));
|
||
|
} catch (e) {
|
||
|
reject(e);
|
||
|
}
|
||
|
};
|
||
|
var rejected = (value) => {
|
||
|
try {
|
||
|
step(generator.throw(value));
|
||
|
} catch (e) {
|
||
|
reject(e);
|
||
|
}
|
||
|
};
|
||
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
||
|
step((generator = generator.apply(__this, __arguments)).next());
|
||
|
});
|
||
|
};
|
||
|
const sheep_url_index = require("./url/index.js");
|
||
|
const sheep_router_index = require("./router/index.js");
|
||
|
const sheep_platform_index = require("./platform/index.js");
|
||
|
const sheep_helper_index = require("./helper/index.js");
|
||
|
const sheep_config_zIndex = require("./config/zIndex.js");
|
||
|
const sheep_store_index = require("./store/index.js");
|
||
|
const common_vendor = require("../common/vendor.js");
|
||
|
common_vendor.dayjs.locale("zh-cn");
|
||
|
common_vendor.dayjs.extend(common_vendor.relativeTime);
|
||
|
common_vendor.dayjs.extend(common_vendor.duration);
|
||
|
const sheep = {
|
||
|
$store: sheep_store_index.$store,
|
||
|
$url: sheep_url_index.$url,
|
||
|
$router: sheep_router_index.$router,
|
||
|
$platform: sheep_platform_index._platform,
|
||
|
$helper: sheep_helper_index.$helper,
|
||
|
$zIndex: sheep_config_zIndex.zIndex
|
||
|
};
|
||
|
function ShoproInit() {
|
||
|
return __async(this, null, function* () {
|
||
|
yield sheep_store_index.$store("app").init();
|
||
|
sheep_platform_index._platform.load();
|
||
|
});
|
||
|
}
|
||
|
const sheep$1 = sheep;
|
||
|
exports.ShoproInit = ShoproInit;
|
||
|
exports.sheep = sheep$1;
|
||
|
//# sourceMappingURL=index.js.map
|