mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-05-19 14:14:09 -04:00
fix bug
Former-commit-id: 052ce32c2cdedfa4247637557ef47b11a9116a08
This commit is contained in:
1
.github/ISSUE_TEMPLATE/1bug_report.yml
vendored
1
.github/ISSUE_TEMPLATE/1bug_report.yml
vendored
@@ -16,6 +16,7 @@ body:
|
||||
id: testing2
|
||||
attributes:
|
||||
label: There are no similar issues on the issue list
|
||||
description: https://github.com/troyeguo/koodo-reader/issues
|
||||
options:
|
||||
- label: "Yes"
|
||||
required: true
|
||||
|
||||
1
.github/ISSUE_TEMPLATE/4bug_report_cn.yml
vendored
1
.github/ISSUE_TEMPLATE/4bug_report_cn.yml
vendored
@@ -15,6 +15,7 @@ body:
|
||||
id: testing2
|
||||
attributes:
|
||||
label: 我已经搜索了已有的 issue 列表,没有找到类似的 issue
|
||||
description: https://github.com/troyeguo/koodo-reader/issues
|
||||
options:
|
||||
- label: "Yes"
|
||||
required: true
|
||||
|
||||
16
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
16
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
|
||||
|
||||
## Description
|
||||
<!-- Write a brief description of the changes introduced by this PR -->
|
||||
|
||||
## Related Issues
|
||||
<!--
|
||||
Link to the issue that is fixed by this PR (if there is one)
|
||||
e.g. Fixes #1234, Addresses #1234, Related to #1234, etc.
|
||||
-->
|
||||
|
||||
### Checklist:
|
||||
|
||||
* [ ] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change?
|
||||
* [ ] Have you linted your code locally prior to submission?
|
||||
* [ ] Have you successfully ran app with your changes locally?
|
||||
@@ -5,7 +5,7 @@ You can find features to work on through our [Roadmap](https://www.notion.so/tro
|
||||
- Make sure you're already familiar with our project structure, code style, naming style.
|
||||
- Does not upgrade or degrade dependency version, this could potentially break the project
|
||||
- Does not modify current variable or function names, unless it's a typo
|
||||
- Does not modify component style or add new style
|
||||
- Does not modify component style
|
||||
|
||||
## Translation Contributing Guide
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
"build": {
|
||||
"appId": "xyz.960960.koodo",
|
||||
"productName": "Koodo Reader",
|
||||
"copyright": "Copyright (c) 2020-2021 ${author}",
|
||||
"copyright": "Copyright (c) 2021-2022 ${author}",
|
||||
"files": [
|
||||
"build/**/*",
|
||||
"node_modules/**/*",
|
||||
|
||||
@@ -157,11 +157,17 @@ class PopupOption extends React.Component<PopupOptionProps> {
|
||||
case "yahoo":
|
||||
this.handleJump("https://search.yahoo.com/search?p=" + getSelection());
|
||||
break;
|
||||
case "naver":
|
||||
this.handleJump(
|
||||
"https://search.naver.com/search.naver?where=nexearch&sm=top_hty&fbm=1&ie=utf8&query=" +
|
||||
getSelection()
|
||||
);
|
||||
break;
|
||||
case "baike":
|
||||
this.handleJump("https://baike.baidu.com/item/" + getSelection());
|
||||
break;
|
||||
case "wiki":
|
||||
this.handleJump("https://wikipedia.org/wiki/" + getSelection());
|
||||
this.handleJump("https://en.wikipedia.org/wiki/" + getSelection());
|
||||
break;
|
||||
default:
|
||||
this.handleJump(
|
||||
|
||||
@@ -65,9 +65,13 @@ class SettingSwitch extends React.Component<
|
||||
}, 500);
|
||||
};
|
||||
render() {
|
||||
console.log(
|
||||
this.props.currentEpub,
|
||||
Object.keys(this.props.currentEpub).length
|
||||
);
|
||||
return (
|
||||
<>
|
||||
{Object.keys(this.props.currentEpub).length !== 0 && <TextToSpeech />}
|
||||
<TextToSpeech />
|
||||
{readerSettingList.map((item) => (
|
||||
<div className="single-control-switch-container" key={item.title}>
|
||||
<span className="single-control-switch-title">
|
||||
|
||||
@@ -94,6 +94,7 @@ export const searchList = [
|
||||
{ label: "DuckDuckGo", value: "duckduckgo" },
|
||||
{ label: "Yandex", value: "yandex" },
|
||||
{ label: "Yahoo", value: "yahoo" },
|
||||
{ label: "Naver", value: "naver" },
|
||||
{ label: "Baidu Baike", value: "baike" },
|
||||
{ label: "Wikipedia", value: "wiki" },
|
||||
];
|
||||
|
||||
@@ -4,7 +4,7 @@ import ThemeList from "../../../components/readerSettings/themeList";
|
||||
import SliderList from "../../../components/readerSettings/sliderList";
|
||||
import DropdownList from "../../../components/readerSettings/dropdownList";
|
||||
import ModeControl from "../../../components/readerSettings/modeControl";
|
||||
import ReaderSwitch from "../../../components/readerSettings/settingSwitch";
|
||||
import SettingSwitch from "../../../components/readerSettings/settingSwitch";
|
||||
import { SettingPanelProps, SettingPanelState } from "./interface";
|
||||
import { Trans } from "react-i18next";
|
||||
import StorageUtil from "../../../utils/serviceUtils/storageUtil";
|
||||
@@ -133,7 +133,7 @@ class SettingPanel extends React.Component<
|
||||
}}
|
||||
/>
|
||||
<DropdownList />
|
||||
<ReaderSwitch />
|
||||
<SettingSwitch />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -43,7 +43,7 @@ class styleUtil {
|
||||
}px !important;line-height: ${
|
||||
StorageUtil.getReaderConfig("lineHeight") || "1.25"
|
||||
} !important;font-family: ${
|
||||
StorageUtil.getReaderConfig("fontFamily") || "Helvetica"
|
||||
StorageUtil.getReaderConfig("fontFamily") || ""
|
||||
} !important;color: ${
|
||||
StorageUtil.getReaderConfig("textColor")
|
||||
? StorageUtil.getReaderConfig("textColor")
|
||||
|
||||
Reference in New Issue
Block a user