Former-commit-id: 052ce32c2cdedfa4247637557ef47b11a9116a08
This commit is contained in:
troyeguo
2022-02-12 13:47:05 +08:00
parent 0917743b35
commit 161a38ab3e
10 changed files with 36 additions and 7 deletions

View File

@@ -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

View File

@@ -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
View 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?

View File

@@ -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

View File

@@ -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/**/*",

View File

@@ -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(

View File

@@ -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">

View File

@@ -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" },
];

View File

@@ -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>
);

View File

@@ -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")