Skip to content

Commit

Permalink
排版、拼写问题等
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGNnsj committed Jan 30, 2023
1 parent 83c88cd commit 5b3a7dd
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Expand Up @@ -27,7 +27,7 @@ community include:

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or
- The use of erotic language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -101,7 +101,7 @@
<br/>

| Mac | Windows/Linux | Function |
| --------------------------- | ------------------------------ | ----------------------------- |
|-----------------------------|--------------------------------|-------------------------------|
| <kbd>⌘</kbd> + <kbd>[</kbd> | <kbd>Ctrl</kbd> + <kbd>←</kbd> | Return to the previous page |
| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | Go to the next page |
| <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | Auto scroll to top of page |
Expand Down
20 changes: 10 additions & 10 deletions README_CN.md
Expand Up @@ -100,18 +100,18 @@

<br/>

| Mac | Windows/Linux | 功能 |
| --------------------------- | ------------------------------ | ------------------ |
| <kbd>⌘</kbd> + <kbd>[</kbd> | <kbd>Ctrl</kbd> + <kbd>←</kbd> | 返回上一个页面 |
| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | 去下一个页面 |
| Mac | Windows/Linux | 功能 |
|-----------------------------|--------------------------------|-----------|
| <kbd>⌘</kbd> + <kbd>[</kbd> | <kbd>Ctrl</kbd> + <kbd>←</kbd> | 返回上一个页面 |
| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | 去下一个页面 |
| <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | 自动滚动到页面顶部 |
| <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | 自动滚动到页面底部 |
| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | 刷新页面 |
| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | 隐藏窗口,非退出 |
| <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | 缩小页面 |
| <kbd>⌘</kbd> + <kbd>+</kbd> | <kbd>Ctrl</kbd> + <kbd>+</kbd> | 放大页面 |
| <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | 放大页面 |
| <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | 重置页面缩放 |
| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | 刷新页面 |
| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | 隐藏窗口,非退出 |
| <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | 缩小页面 |
| <kbd>⌘</kbd> + <kbd>+</kbd> | <kbd>Ctrl</kbd> + <kbd>+</kbd> | 放大页面 |
| <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | 放大页面 |
| <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | 重置页面缩放 |

此外还支持双击头部进行全屏切换,拖拽头部进行移动窗口,Mac 用户支持手势方式返回和去下一页,还有其他需求,欢迎提过来。

Expand Down
2 changes: 1 addition & 1 deletion bin/utils/url.ts
Expand Up @@ -20,7 +20,7 @@ export function getDomain(inputUrl: string) {
i === 0 || // 'asia.com' (last remaining must be the SLD)
i < ln - 2 || // TLDs only span 2 levels
part.length < minLength || // 'www.cn.com' (valid TLD as second-level domain)
tlds.indexOf(part) < 0 // officialy not a TLD
tlds.indexOf(part) < 0 // officially not a TLD
) {
return part;
}
Expand Down
18 changes: 9 additions & 9 deletions script/build.sh
Expand Up @@ -68,34 +68,34 @@ do
# replace package info
$sd -s "${old_url}" "${url}" src-tauri/tauri.conf.json
$sd -s "${old_name}" "${package_name}" src-tauri/tauri.conf.json
# echo "update ico with 32x32 pictue"
# echo "update ico with 32x32 picture"
# $sd "${old_name}" "${package_name}" src-tauri/src/main.rs

# for apple, need replace title
if [[ "$OSTYPE" =~ ^darwin ]]; then
# update icon
# if icon exsits, change icon path
# if icon exists, change icon path
if [ ! -f "src-tauri/icons/${package_name}.icns" ]; then
# else, replace icon to default
echo "warning"
echo "icon for MacOS not exsist, will use default icon to replace it"
echo "icon for MacOS not exist, will use default icon to replace it"
echo "warning"
cp "src-tauri/icons/icon.icns" "src-tauri/icons/${package_name}.icns"
fi
$sd -s "${old_name}" "${package_name}" src-tauri/tauri.macos.conf.json
$sd -s "${old_title}" "${package_title}" src-tauri/tauri.conf.json
fi

# echo "update ico with 32x32 pictue"
# echo "update ico with 32x32 picture"
# cp "src-tauri/png/${package_name}_32.ico" "src-tauri/icons/icon.ico"

if [[ "$OSTYPE" =~ ^linux ]]; then
# update icon
# if icon exsits, change icon path
# if icon exists, change icon path
if [ ! -f "src-tauri/png/${package_name}_512.png" ]; then
# else, replace icon to default
echo "warning"
echo "icon for linux not exsist, will use default icon to replace it"
echo "icon for linux not exist, will use default icon to replace it"
echo "warning"
cp "src-tauri/png/icon_256.ico" "src-tauri/png/${package_name}_256.ico"
cp "src-tauri/png/icon_512.png" "src-tauri/png/${package_name}_512.png"
Expand All @@ -120,8 +120,8 @@ do

if [[ "$OSTYPE" =~ ^linux ]]; then
npm run tauri build
mv src-tauri/target/release/bundle/deb/${package_prefix}-${package_name}*.deb output/linux/${package_title}_amd64.deb
mv src-tauri/target/release/bundle/appimage/${package_prefix}-${package_name}*.AppImage output/linux/${package_title}_amd64.AppImage
mv src-tauri/target/release/bundle/deb/${package_prefix}-"${package_name}"*.deb output/linux/"${package_title}"_amd64.deb
mv src-tauri/target/release/bundle/appimage/${package_prefix}-"${package_name}"*.AppImage output/linux/"${package_title}"_amd64.AppImage
echo clear cache
rm src-tauri/target/release
rm -rf src-tauri/target/release/bundle
Expand All @@ -131,7 +131,7 @@ do
if [[ "$OSTYPE" =~ ^darwin ]]; then

npm run tauri build -- --target universal-apple-darwin
mv src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg output/macos/${package_title}.dmg
mv src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg output/macos/"${package_title}".dmg
echo clear cache
rm -rf src-tauri/target/universal-apple-darwin
rm src-tauri/target/aarch64-apple-darwin/release
Expand Down

0 comments on commit 5b3a7dd

Please sign in to comment.