hz-zhhq-web/node_modules/.cache/babel-loader/9f12585fed4ba15cefdeb73d47e...

1 line
2.6 KiB
JSON
Raw Normal View History

2025-02-25 13:43:48 +08:00
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\src\\store\\modules\\app.js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\store\\modules\\app.js","mtime":1737610069395},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000}],"contextDependencies":[],"result":["import Cookies from 'js-cookie';\nimport { getLanguage } from '@/lang/index';\nvar state = {\n sidebar: {\n opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus') : true,\n withoutAnimation: false\n },\n device: 'desktop',\n language: getLanguage(),\n size: Cookies.get('size') || 'medium'\n};\nvar mutations = {\n TOGGLE_SIDEBAR: function TOGGLE_SIDEBAR(state) {\n state.sidebar.opened = !state.sidebar.opened;\n state.sidebar.withoutAnimation = false;\n if (state.sidebar.opened) {\n Cookies.set('sidebarStatus', 1);\n } else {\n Cookies.set('sidebarStatus', 0);\n }\n },\n CLOSE_SIDEBAR: function CLOSE_SIDEBAR(state, withoutAnimation) {\n Cookies.set('sidebarStatus', 0);\n state.sidebar.opened = false;\n state.sidebar.withoutAnimation = withoutAnimation;\n },\n TOGGLE_DEVICE: function TOGGLE_DEVICE(state, device) {\n state.device = device;\n },\n SET_LANGUAGE: function SET_LANGUAGE(state, language) {\n state.language = language;\n Cookies.set('language', language);\n },\n SET_SIZE: function SET_SIZE(state, size) {\n state.size = size;\n Cookies.set('size', size);\n }\n};\nvar actions = {\n toggleSideBar: function toggleSideBar(_ref) {\n var commit = _ref.commit;\n commit('TOGGLE_SIDEBAR');\n },\n closeSideBar: function closeSideBar(_ref2, _ref3) {\n var commit = _ref2.commit;\n var withoutAnimation = _ref3.withoutAnimation;\n commit('CLOSE_SIDEBAR', withoutAnimation);\n },\n toggleDevice: function toggleDevice(_ref4, device) {\n var commit = _ref4.commit;\n commit('TOGGLE_DEVICE', device);\n },\n setLanguage: function setLanguage(_ref5, language) {\n var commit = _ref5.commit;\n commit('SET_LANGUAGE', language);\n },\n setSize: function setSize(_ref6, size) {\n var commit = _ref6.commit;\n commit('SET_SIZE', size);\n }\n};\nexport default {\n namespaced: true,\n state: state,\n mutations: mutations,\n actions: actions\n};",null]}