diff --git a/package.json b/package.json index dc3b6e1..ef4c404 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tampermonkey-etoro-better-ui", - "version": "0.7.2", + "version": "0.7.3", "description": "", "main": "index.js", "scripts": { diff --git a/src_dist/etoro.bundle.js b/src_dist/etoro.bundle.js index 9c6b65c..202e2b3 100644 --- a/src_dist/etoro.bundle.js +++ b/src_dist/etoro.bundle.js @@ -2993,7 +2993,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _GM__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../GM */ \"./src/GM.ts\");\n\n\n\nconst RiskSpecification = props => react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"a\", {\n className: props.aClassName,\n style: props.aStyle,\n href: 'https://www.notion.so/hilezi/df93abe54fb94d9f90f25679957737ef',\n target: '_blank'\n}, props.children, \"\\u98A8\\u96AA\\u8AAA\\u660E\\u66F8\");\n\nconst com = {\n RiskSpecification,\n WhoDeveloper: () => react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n className: 'HelperContent'\n }, \"\\u672C\\u529F\\u80FD\\u7531\", ' ', react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"a\", {\n href: 'https://www.notion.so/hilezi/4fe69cd704434ff1b82f0cd48dd219c3',\n target: '_blank'\n }, \"better-etoro-ui\"), ' ', \"\\u63D0\\u4F9B\")\n};\n_GM__WEBPACK_IMPORTED_MODULE_1__[\"GM\"].addStyle(`\n .HelperContent {\n color: #cccccc;\n font-size: 8pt;\n font-weight: 100;\n }\n`);\n/* harmony default export */ __webpack_exports__[\"default\"] = (com);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9IZWxwZXJDb250ZW50L2luZGV4LnRzeC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21wb25lbnRzL0hlbHBlckNvbnRlbnQvaW5kZXgudHN4PzMyYzQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBHTSB9IGZyb20gJy4uLy4uL0dNJ1xuXG5jb25zdCBSaXNrU3BlY2lmaWNhdGlvbjogUmVhY3QuRnVuY3Rpb25Db21wb25lbnQ8e1xuICBhQ2xhc3NOYW1lPzogc3RyaW5nXG4gIGFTdHlsZT86IFJlYWN0LkNTU1Byb3BlcnRpZXNcbn0+ID0gcHJvcHMgPT4gKFxuICA8YVxuICAgIGNsYXNzTmFtZT17cHJvcHMuYUNsYXNzTmFtZX1cbiAgICBzdHlsZT17cHJvcHMuYVN0eWxlfVxuICAgIGhyZWY9J2h0dHBzOi8vd3d3Lm5vdGlvbi5zby9oaWxlemkvZGY5M2FiZTU0ZmI5NGQ5ZjkwZjI1Njc5OTU3NzM3ZWYnXG4gICAgdGFyZ2V0PSdfYmxhbmsnXG4gID5cbiAgICB7cHJvcHMuY2hpbGRyZW596aKo6Zqq6Kqq5piO5pu4XG4gIDwvYT5cbilcblxuY29uc3QgY29tID0ge1xuICBSaXNrU3BlY2lmaWNhdGlvbixcbiAgV2hvRGV2ZWxvcGVyOiAoKSA9PiAoXG4gICAgPHNwYW4gY2xhc3NOYW1lPSdIZWxwZXJDb250ZW50Jz5cbiAgICAgIOacrOWKn+iDveeUsXsnICd9XG4gICAgICA8YVxuICAgICAgICBocmVmPSdodHRwczovL3d3dy5ub3Rpb24uc28vaGlsZXppLzRmZTY5Y2Q3MDQ0MzRmZjFiODJmMGNkNDhkZDIxOWMzJ1xuICAgICAgICB0YXJnZXQ9J19ibGFuaydcbiAgICAgID5cbiAgICAgICAgYmV0dGVyLWV0b3JvLXVpXG4gICAgICA8L2E+eycgJ31cbiAgICAgIOaPkOS+m1xuICAgIDwvc3Bhbj5cbiAgKSxcbn1cblxuR00uYWRkU3R5bGUoYFxuICAuSGVscGVyQ29udGVudCB7XG4gICAgY29sb3I6ICNjY2NjY2M7XG4gICAgZm9udC1zaXplOiA4cHQ7XG4gICAgZm9udC13ZWlnaHQ6IDEwMDtcbiAgfVxuYClcblxuZXhwb3J0IGRlZmF1bHQgY29tXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFLQTtBQUNBO0FBQ0E7QUFDQTtBQUpBO0FBQ0E7QUFTQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBR0E7QUFDQTtBQUZBO0FBTEE7QUFnQkE7Ozs7OztBQUFBO0FBUUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/components/HelperContent/index.tsx\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _GM__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../GM */ \"./src/GM.ts\");\n\n\n\nconst RiskSpecification = props => react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"a\", Object.assign({}, props.attrs, {\n className: props.aClassName,\n style: props.aStyle,\n href: 'https://www.notion.so/hilezi/df93abe54fb94d9f90f25679957737ef',\n target: '_blank'\n}), props.children, \"\\u98A8\\u96AA\\u8AAA\\u660E\\u66F8\");\n\nconst com = {\n RiskSpecification,\n WhoDeveloper: () => react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n className: 'HelperContent'\n }, \"\\u672C\\u529F\\u80FD\\u7531\", ' ', react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"a\", {\n href: 'https://www.notion.so/hilezi/4fe69cd704434ff1b82f0cd48dd219c3',\n target: '_blank'\n }, \"better-etoro-ui\"), ' ', \"\\u63D0\\u4F9B\")\n};\n_GM__WEBPACK_IMPORTED_MODULE_1__[\"GM\"].addStyle(`\n .HelperContent {\n color: #cccccc;\n font-size: 8pt;\n font-weight: 100;\n }\n`);\n/* harmony default export */ __webpack_exports__[\"default\"] = (com);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9IZWxwZXJDb250ZW50L2luZGV4LnRzeC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21wb25lbnRzL0hlbHBlckNvbnRlbnQvaW5kZXgudHN4PzMyYzQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBHTSB9IGZyb20gJy4uLy4uL0dNJ1xuXG5jb25zdCBSaXNrU3BlY2lmaWNhdGlvbjogUmVhY3QuRnVuY3Rpb25Db21wb25lbnQ8e1xuICBhdHRycz86IG9iamVjdFxuICBhQ2xhc3NOYW1lPzogc3RyaW5nXG4gIGFTdHlsZT86IFJlYWN0LkNTU1Byb3BlcnRpZXNcbn0+ID0gcHJvcHMgPT4gKFxuICA8YVxuICAgIHsuLi5wcm9wcy5hdHRyc31cbiAgICBjbGFzc05hbWU9e3Byb3BzLmFDbGFzc05hbWV9XG4gICAgc3R5bGU9e3Byb3BzLmFTdHlsZX1cbiAgICBocmVmPSdodHRwczovL3d3dy5ub3Rpb24uc28vaGlsZXppL2RmOTNhYmU1NGZiOTRkOWY5MGYyNTY3OTk1NzczN2VmJ1xuICAgIHRhcmdldD0nX2JsYW5rJ1xuICA+XG4gICAge3Byb3BzLmNoaWxkcmVufemiqOmaquiqquaYjuabuFxuICA8L2E+XG4pXG5cbmNvbnN0IGNvbSA9IHtcbiAgUmlza1NwZWNpZmljYXRpb24sXG4gIFdob0RldmVsb3BlcjogKCkgPT4gKFxuICAgIDxzcGFuIGNsYXNzTmFtZT0nSGVscGVyQ29udGVudCc+XG4gICAgICDmnKzlip/og73nlLF7JyAnfVxuICAgICAgPGFcbiAgICAgICAgaHJlZj0naHR0cHM6Ly93d3cubm90aW9uLnNvL2hpbGV6aS80ZmU2OWNkNzA0NDM0ZmYxYjgyZjBjZDQ4ZGQyMTljMydcbiAgICAgICAgdGFyZ2V0PSdfYmxhbmsnXG4gICAgICA+XG4gICAgICAgIGJldHRlci1ldG9yby11aVxuICAgICAgPC9hPnsnICd9XG4gICAgICDmj5DkvptcbiAgICA8L3NwYW4+XG4gICksXG59XG5cbkdNLmFkZFN0eWxlKGBcbiAgLkhlbHBlckNvbnRlbnQge1xuICAgIGNvbG9yOiAjY2NjY2NjO1xuICAgIGZvbnQtc2l6ZTogOHB0O1xuICAgIGZvbnQtd2VpZ2h0OiAxMDA7XG4gIH1cbmApXG5cbmV4cG9ydCBkZWZhdWx0IGNvbVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBT0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQUNBO0FBU0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUdBO0FBQ0E7QUFGQTtBQUxBO0FBZ0JBOzs7Ozs7QUFBQTtBQVFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/components/HelperContent/index.tsx\n"); /***/ }), @@ -3005,7 +3005,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var reac /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components_HelperContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components/HelperContent */ \"./src/components/HelperContent/index.tsx\");\n/* harmony import */ var cogo_toast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! cogo-toast */ \"./node_modules/cogo-toast/dist/index.js\");\n/* harmony import */ var cogo_toast__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(cogo_toast__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _exchange__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/exchange */ \"./src/exchange.ts\");\n/* harmony import */ var _localStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/localStorage */ \"./src/localStorage.ts\");\n/* harmony import */ var _emitter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/emitter */ \"./src/emitter.ts\");\n/* harmony import */ var _hooks_useAppSelector__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/hooks/useAppSelector */ \"./src/hooks/useAppSelector.ts\");\n/* harmony import */ var _hooks_useAppDispatch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/hooks/useAppDispatch */ \"./src/hooks/useAppDispatch.ts\");\n/* harmony import */ var _actions_setExchangeSelected__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/actions/setExchangeSelected */ \"./src/actions/setExchangeSelected.ts\");\n/* harmony import */ var _actions_setMacroEnabled__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/actions/setMacroEnabled */ \"./src/actions/setMacroEnabled.ts\");\n\n\n\n\n\n\n\n\n\n\n\nconst Sidebar = () => {\n const settings = Object(_hooks_useAppSelector__WEBPACK_IMPORTED_MODULE_6__[\"useAppSelector\"])(state => state.settings);\n const dispatch = Object(_hooks_useAppDispatch__WEBPACK_IMPORTED_MODULE_7__[\"useAppDispatch\"])();\n return react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](react__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"div\", {\n className: 'i-menu-sep'\n }, \"\\u65B0\\u53F0\\u5E63\\uFF06\\u99AC\\u5E63\\u589E\\u5F37\\u8173\\u672C\"), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"a\", {\n className: 'i-menu-link pointer',\n target: '_blank',\n href: 'https://www.notion.so/hilezi/4fe69cd704434ff1b82f0cd48dd219c3'\n }, react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n className: 'i-menu-icon sprite news'\n }), \"\\u8173\\u672C\\u5B98\\u7DB2\"), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"a\", {\n className: 'i-menu-link pointer',\n target: '_blank',\n href: 'https://www.notion.so/hilezi/50a7f39ce9a84325a22b98acf67cffb2'\n }, react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n className: 'i-menu-icon sprite help'\n }), \"\\u806F\\u7D61\\u4F5C\\u8005\"), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](_components_HelperContent__WEBPACK_IMPORTED_MODULE_1__[\"default\"].RiskSpecification, {\n aClassName: 'i-menu-link'\n }, react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n className: 'i-menu-icon sprite help'\n })), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n onClick: async () => {\n var _loading$hide;\n\n const loading = cogo_toast__WEBPACK_IMPORTED_MODULE_2___default.a.loading('設定變更中...', {\n position: 'bottom-left'\n });\n const youSelected = settings.exchange.selected === 'NTD' ? 'MYR' : 'NTD';\n\n if (youSelected === 'NTD') {\n _exchange__WEBPACK_IMPORTED_MODULE_3__[\"exchange\"].NTD = await Object(_exchange__WEBPACK_IMPORTED_MODULE_3__[\"getNTD\"])();\n }\n\n if (youSelected === 'MYR') {\n _exchange__WEBPACK_IMPORTED_MODULE_3__[\"exchange\"].MYR = await Object(_exchange__WEBPACK_IMPORTED_MODULE_3__[\"getMYR\"])();\n }\n\n dispatch(Object(_actions_setExchangeSelected__WEBPACK_IMPORTED_MODULE_8__[\"setExchangeSelected\"])(youSelected));\n _localStorage__WEBPACK_IMPORTED_MODULE_4__[\"localStorage\"].setSelectedExchange(youSelected);\n _emitter__WEBPACK_IMPORTED_MODULE_5__[\"emitter\"].emit(_emitter__WEBPACK_IMPORTED_MODULE_5__[\"Events\"].settingChange);\n cogo_toast__WEBPACK_IMPORTED_MODULE_2___default.a.success(`設定已變更,當前:${youSelected}`, {\n position: 'bottom-left'\n });\n (_loading$hide = loading.hide) === null || _loading$hide === void 0 ? void 0 : _loading$hide.call(loading);\n },\n className: 'i-menu-link pointer'\n }, react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n className: 'i-menu-icon sprite settings'\n }), \"\\u8A2D\\u5B9A\\u5E63\\u5225\\uFF08\\u7576\\u524D\\uFF1A\", react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", null, settings.exchange.selected), \"\\uFF09\"), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n onClick: () => {\n const yourEnabled = !settings.isMacroEnabled;\n dispatch(Object(_actions_setMacroEnabled__WEBPACK_IMPORTED_MODULE_9__[\"setMacroEnabled\"])(yourEnabled));\n _localStorage__WEBPACK_IMPORTED_MODULE_4__[\"localStorage\"].setExecutionMacroEnabled(yourEnabled);\n _emitter__WEBPACK_IMPORTED_MODULE_5__[\"emitter\"].emit(_emitter__WEBPACK_IMPORTED_MODULE_5__[\"Events\"].settingChange);\n cogo_toast__WEBPACK_IMPORTED_MODULE_2___default.a.success(`設定已變更,啟用:${yourEnabled}`, {\n position: 'bottom-left'\n });\n },\n className: 'i-menu-link pointer'\n }, react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", {\n className: 'i-menu-icon sprite settings'\n }), \"\\u4E0B\\u55AE\\u5DE8\\u96C6\\uFF08\\u7576\\u524D\\uFF1A\", react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", null, settings.isMacroEnabled ? '啟用' : '停用'), \"\\uFF09\"));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Sidebar);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9TaWRlYmFyL1NpZGViYXIudHN4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvU2lkZWJhci9TaWRlYmFyLnRzeD9hOGE0Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IEhlbHBlckNvbnRlbnQgZnJvbSAnQC9jb21wb25lbnRzL0hlbHBlckNvbnRlbnQnXG5pbXBvcnQgdG9hc3QgZnJvbSAnY29nby10b2FzdCdcbmltcG9ydCB7IGV4Y2hhbmdlLCBnZXRNWVIsIGdldE5URCB9IGZyb20gJ0AvZXhjaGFuZ2UnXG5pbXBvcnQgeyBsb2NhbFN0b3JhZ2UgfSBmcm9tICdAL2xvY2FsU3RvcmFnZSdcbmltcG9ydCB7IGVtaXR0ZXIsIEV2ZW50cyB9IGZyb20gJ0AvZW1pdHRlcidcbmltcG9ydCB7IHVzZUFwcFNlbGVjdG9yIH0gZnJvbSAnQC9ob29rcy91c2VBcHBTZWxlY3RvcidcbmltcG9ydCB7IHVzZU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NlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/components/Sidebar/Sidebar.tsx\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _components_HelperContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components/HelperContent */ \"./src/components/HelperContent/index.tsx\");\n/* harmony import */ var cogo_toast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! cogo-toast */ \"./node_modules/cogo-toast/dist/index.js\");\n/* harmony import */ var cogo_toast__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(cogo_toast__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _exchange__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/exchange */ \"./src/exchange.ts\");\n/* harmony import */ var _localStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/localStorage */ \"./src/localStorage.ts\");\n/* harmony import */ var _emitter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/emitter */ \"./src/emitter.ts\");\n/* harmony import */ var _hooks_useAppSelector__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/hooks/useAppSelector */ \"./src/hooks/useAppSelector.ts\");\n/* harmony import */ var _hooks_useAppDispatch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/hooks/useAppDispatch */ \"./src/hooks/useAppDispatch.ts\");\n/* harmony import */ var _actions_setExchangeSelected__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/actions/setExchangeSelected */ \"./src/actions/setExchangeSelected.ts\");\n/* harmony import */ var _actions_setMacroEnabled__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/actions/setMacroEnabled */ \"./src/actions/setMacroEnabled.ts\");\n\n\n\n\n\n\n\n\n\n\n\nconst Sidebar = () => {\n var _Array$from$find;\n\n const settings = Object(_hooks_useAppSelector__WEBPACK_IMPORTED_MODULE_6__[\"useAppSelector\"])(state => state.settings);\n const dispatch = Object(_hooks_useAppDispatch__WEBPACK_IMPORTED_MODULE_7__[\"useAppDispatch\"])();\n /**\n * etoro 左側欄樣式為動態產生名稱,沒有此變量,則無法正確呈現 CSS 樣式\n */\n\n const dynamicStyleClassName = ((_Array$from$find = Array.from($('.w-menu').get(0).attributes).find(value => value.name.includes('_ngcontent'))) === null || _Array$from$find === void 0 ? void 0 : _Array$from$find.name) || '';\n const attrsToAppend = {\n [dynamicStyleClassName]: ''\n };\n return react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](react__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"div\", Object.assign({}, attrsToAppend, {\n className: 'i-menu-sep'\n }), \"\\u65B0\\u53F0\\u5E63\\uFF06\\u99AC\\u5E63\\u589E\\u5F37\\u8173\\u672C\"), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"a\", Object.assign({}, attrsToAppend, {\n className: 'i-menu-link pointer',\n target: '_blank',\n href: 'https://www.notion.so/hilezi/4fe69cd704434ff1b82f0cd48dd219c3'\n }), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", Object.assign({}, attrsToAppend, {\n className: 'i-menu-icon sprite news'\n })), \"\\u8173\\u672C\\u5B98\\u7DB2\"), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"a\", Object.assign({}, attrsToAppend, {\n className: 'i-menu-link pointer',\n target: '_blank',\n href: 'https://www.notion.so/hilezi/50a7f39ce9a84325a22b98acf67cffb2'\n }), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", Object.assign({}, attrsToAppend, {\n className: 'i-menu-icon sprite help'\n })), \"\\u806F\\u7D61\\u4F5C\\u8005\"), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](_components_HelperContent__WEBPACK_IMPORTED_MODULE_1__[\"default\"].RiskSpecification, {\n aClassName: 'i-menu-link',\n attrs: attrsToAppend\n }, react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", Object.assign({}, attrsToAppend, {\n className: 'i-menu-icon sprite help'\n }))), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", Object.assign({}, attrsToAppend, {\n onClick: async () => {\n var _loading$hide;\n\n const loading = cogo_toast__WEBPACK_IMPORTED_MODULE_2___default.a.loading('設定變更中...', {\n position: 'bottom-left'\n });\n const youSelected = settings.exchange.selected === 'NTD' ? 'MYR' : 'NTD';\n\n if (youSelected === 'NTD') {\n _exchange__WEBPACK_IMPORTED_MODULE_3__[\"exchange\"].NTD = await Object(_exchange__WEBPACK_IMPORTED_MODULE_3__[\"getNTD\"])();\n }\n\n if (youSelected === 'MYR') {\n _exchange__WEBPACK_IMPORTED_MODULE_3__[\"exchange\"].MYR = await Object(_exchange__WEBPACK_IMPORTED_MODULE_3__[\"getMYR\"])();\n }\n\n dispatch(Object(_actions_setExchangeSelected__WEBPACK_IMPORTED_MODULE_8__[\"setExchangeSelected\"])(youSelected));\n _localStorage__WEBPACK_IMPORTED_MODULE_4__[\"localStorage\"].setSelectedExchange(youSelected);\n _emitter__WEBPACK_IMPORTED_MODULE_5__[\"emitter\"].emit(_emitter__WEBPACK_IMPORTED_MODULE_5__[\"Events\"].settingChange);\n cogo_toast__WEBPACK_IMPORTED_MODULE_2___default.a.success(`設定已變更,當前:${youSelected}`, {\n position: 'bottom-left'\n });\n (_loading$hide = loading.hide) === null || _loading$hide === void 0 ? void 0 : _loading$hide.call(loading);\n },\n className: 'i-menu-link pointer'\n }), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", Object.assign({}, attrsToAppend, {\n className: 'i-menu-icon sprite settings'\n })), \"\\u8A2D\\u5B9A\\u5E63\\u5225\\uFF08\\u7576\\u524D\\uFF1A\", react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", null, settings.exchange.selected), \"\\uFF09\"), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", Object.assign({}, attrsToAppend, {\n onClick: () => {\n const yourEnabled = !settings.isMacroEnabled;\n dispatch(Object(_actions_setMacroEnabled__WEBPACK_IMPORTED_MODULE_9__[\"setMacroEnabled\"])(yourEnabled));\n _localStorage__WEBPACK_IMPORTED_MODULE_4__[\"localStorage\"].setExecutionMacroEnabled(yourEnabled);\n _emitter__WEBPACK_IMPORTED_MODULE_5__[\"emitter\"].emit(_emitter__WEBPACK_IMPORTED_MODULE_5__[\"Events\"].settingChange);\n cogo_toast__WEBPACK_IMPORTED_MODULE_2___default.a.success(`設定已變更,啟用:${yourEnabled}`, {\n position: 'bottom-left'\n });\n },\n className: 'i-menu-link pointer'\n }), react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", Object.assign({}, attrsToAppend, {\n className: 'i-menu-icon sprite settings'\n })), \"\\u4E0B\\u55AE\\u5DE8\\u96C6\\uFF08\\u7576\\u524D\\uFF1A\", react__WEBPACK_IMPORTED_MODULE_0__[\"createElement\"](\"span\", null, settings.isMacroEnabled ? '啟用' : '停用'), \"\\uFF09\"));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Sidebar);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9TaWRlYmFyL1NpZGViYXIudHN4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvU2lkZWJhci9TaWRlYmFyLnRzeD9hOGE0Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3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0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBSUE7QUFDQTtBQUNBO0FBMUJBO0FBNEJBO0FBQUE7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQVZBO0FBWUE7QUFBQTtBQU1BO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/components/Sidebar/Sidebar.tsx\n"); /***/ }), diff --git a/webpack.config.js b/webpack.config.js index 24b5288..537a69d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -121,7 +121,7 @@ const configration = { // ==UserScript== // @name Better etoro UI for Taiwan // @description 提供你更好的 etoro 新台幣介面增強懶人包 - // @version 0.7.2 + // @version 0.7.3 // @author hilezir // @grant GM_xmlhttpRequest // @grant GM_addStyle @@ -147,7 +147,7 @@ const configration = { window.GM_xmlhttpRequest({ // url: 'http://127.0.0.1:8080/etoro.bundle.js', // 開發模式 - url: 'https://cdn.jsdelivr.net/gh/hilezir/etoro-better-ui@v0.7.2/src_dist/etoro.bundle.js', + url: 'https://cdn.jsdelivr.net/gh/hilezir/etoro-better-ui@v0.7.3/src_dist/etoro.bundle.js', onload: event => { eval(event.responseText) },