1 line
6.4 KiB
JSON
1 line
6.4 KiB
JSON
{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\store\\modules\\app.js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\store\\modules\\app.js","mtime":1718070786031},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\babel.config.js","mtime":1718070785981},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\eslint-loader\\index.js","mtime":1718764957746}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IENvb2tpZXMgZnJvbSAnanMtY29va2llJzsKdmFyIHN0YXRlID0gewogIHNpZGViYXI6IHsKICAgIG9wZW5lZDogQ29va2llcy5nZXQoJ3NpZGViYXJTdGF0dXMnKSA/ICEhK0Nvb2tpZXMuZ2V0KCdzaWRlYmFyU3RhdHVzJykgOiB0cnVlLAogICAgd2l0aG91dEFuaW1hdGlvbjogZmFsc2UKICB9LAogIGRldmljZTogJ2Rlc2t0b3AnLAogIHNpemU6IENvb2tpZXMuZ2V0KCdzaXplJykgfHwgJ21lZGl1bScKfTsKdmFyIG11dGF0aW9ucyA9IHsKICBUT0dHTEVfU0lERUJBUjogZnVuY3Rpb24gVE9HR0xFX1NJREVCQVIoc3RhdGUpIHsKICAgIHN0YXRlLnNpZGViYXIub3BlbmVkID0gIXN0YXRlLnNpZGViYXIub3BlbmVkOwogICAgc3RhdGUuc2lkZWJhci53aXRob3V0QW5pbWF0aW9uID0gZmFsc2U7CiAgICBpZiAoc3Rhd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9uKTsKICB9LAogIHRvZ2dsZURldmljZTogZnVuY3Rpb24gdG9nZ2xlRGV2aWNlKF9yZWY0LCBkZXZpY2UpIHsKICAgIHZhciBjb21taXQgPSBfcmVmNC5jb21taXQ7CiAgICBjb21taXQoJ1RPR0dMRV9ERVZJQ0UnLCBkZXZpY2UpOwogIH0sCiAgc2V0U2l6ZTogZnVuY3Rpb24gc2V0U2l6ZShfcmVmNSwgc2l6ZSkgewogICAgdmFyIGNvbW1pdCA9IF9yZWY1LmNvbW1pdDsKICAgIGNvbW1pdCgnU0VUX1NJWkUnLCBzaXplKTsKICB9Cn07CmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lc3BhY2VkOiB0cnVlLAogIHN0YXRlOiBzdGF0ZSwKICBtdXRhdGlvbnM6IG11dGF0aW9ucywKICBhY3Rpb25zOiBhY3Rpb25zCn07"},{"version":3,"names":["Cookies","state","sidebar","opened","get","withoutAnimation","device","size","mutations","TOGGLE_SIDEBAR","set","CLOSE_SIDEBAR","TOGGLE_DEVICE","SET_SIZE","actions","toggleSideBar","_ref","commit","closeSideBar","_ref2","_ref3","toggleDevice","_ref4","setSize","_ref5","namespaced"],"sources":["D:/phpstudy_pro/WWW/travel/admin/src/store/modules/app.js"],"sourcesContent":["import Cookies from 'js-cookie'\r\n\r\nconst state = {\r\n sidebar: {\r\n opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus') : true,\r\n withoutAnimation: false\r\n },\r\n device: 'desktop',\r\n size: Cookies.get('size') || 'medium'\r\n}\r\n\r\nconst mutations = {\r\n TOGGLE_SIDEBAR: state => {\r\n state.sidebar.opened = !state.sidebar.opened\r\n state.sidebar.withoutAnimation = false\r\n if (state.sidebar.opened) {\r\n Cookies.set('sidebarStatus', 1)\r\n } else {\r\n Cookies.set('sidebarStatus', 0)\r\n }\r\n },\r\n CLOSE_SIDEBAR: (state, withoutAnimation) => {\r\n Cookies.set('sidebarStatus', 0)\r\n state.sidebar.opened = false\r\n state.sidebar.withoutAnimation = withoutAnimation\r\n },\r\n TOGGLE_DEVICE: (state, device) => {\r\n state.device = device\r\n },\r\n SET_SIZE: (state, size) => {\r\n state.size = size\r\n Cookies.set('size', size)\r\n }\r\n}\r\n\r\nconst actions = {\r\n toggleSideBar({ commit }) {\r\n commit('TOGGLE_SIDEBAR')\r\n },\r\n closeSideBar({ commit }, { withoutAnimation }) {\r\n commit('CLOSE_SIDEBAR', withoutAnimation)\r\n },\r\n toggleDevice({ commit }, device) {\r\n commit('TOGGLE_DEVICE', device)\r\n },\r\n setSize({ commit }, size) {\r\n commit('SET_SIZE', size)\r\n }\r\n}\r\n\r\nexport default {\r\n namespaced: true,\r\n state,\r\n mutations,\r\n actions\r\n}\r\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,WAAW;AAE/B,IAAMC,KAAK,GAAG;EACZC,OAAO,EAAE;IACPC,MAAM,EAAEH,OAAO,CAACI,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAACJ,OAAO,CAACI,GAAG,CAAC,eAAe,CAAC,GAAG,IAAI;IAC7EC,gBAAgB,EAAE;EACpB,CAAC;EACDC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAEP,OAAO,CAACI,GAAG,CAAC,MAAM,CAAC,IAAI;AAC/B,CAAC;AAED,IAAMI,SAAS,GAAG;EAChBC,cAAc,EAAE,SAAAA,eAAAR,KAAK,EAAI;IACvBA,KAAK,CAACC,OAAO,CAACC,MAAM,GAAG,CAACF,KAAK,CAACC,OAAO,CAACC,MAAM;IAC5CF,KAAK,CAACC,OAAO,CAACG,gBAAgB,GAAG,KAAK;IACtC,IAAIJ,KAAK,CAACC,OAAO,CAACC,MAAM,EAAE;MACxBH,OAAO,CAACU,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;IACjC,CAAC,MAAM;MACLV,OAAO,CAACU,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;IACjC;EACF,CAAC;EACDC,aAAa,EAAE,SAAAA,cAACV,KAAK,EA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