Skip to content

Commit

Permalink
chore: release v1.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Sep 28, 2024
1 parent c4fd9fb commit 656d4c2
Show file tree
Hide file tree
Showing 23 changed files with 37 additions and 41 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docs",
"type": "module",
"version": "1.11.1",
"version": "1.11.2",
"private": true,
"scripts": {
"docs:dev": "vitepress dev",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "any-reader",
"type": "module",
"version": "1.11.1",
"version": "1.11.2",
"private": true,
"packageManager": "pnpm@9.4.0",
"description": "",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/cli",
"type": "commonjs",
"version": "1.11.1",
"version": "1.11.2",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/core",
"type": "module",
"version": "1.11.1",
"version": "1.11.2",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/epub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/epub",
"version": "1.11.1",
"version": "1.11.2",
"description": "",
"scripts": {
"build": "unbuild",
Expand Down
2 changes: 1 addition & 1 deletion packages/legado/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/legado",
"type": "module",
"version": "1.11.1",
"version": "1.11.2",
"private": true,
"description": "",
"author": "aooiuu <aooiu@qq.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/rubick/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/rubick",
"type": "commonjs",
"version": "1.11.1",
"version": "1.11.2",
"private": true,
"description": "",
"author": "aooiuu <aooiu@qq.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/rule-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/rule-utils",
"type": "module",
"version": "1.11.1",
"version": "1.11.2",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/server",
"type": "module",
"version": "1.11.1",
"version": "1.11.2",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/shared",
"type": "module",
"version": "1.11.1",
"version": "1.11.2",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/utools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/utools",
"version": "1.11.1",
"version": "1.11.2",
"private": true,
"description": "",
"author": "aooiuu <aooiu@qq.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "any-reader",
"description": "摸鱼,自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB",
"icon": "resources/icon.png",
"version": "1.11.1",
"version": "1.11.2",
"publisher": "aooiu",
"private": true,
"qna": "https://github.com/aooiuu/any-reader/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/web",
"version": "1.11.1",
"version": "1.11.2",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
9 changes: 8 additions & 1 deletion packages/web/src/components/Search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
boxShadow: '0px 0px 5px 5px rgba(0, 0, 0, 0.2)'
}"
>
<a-input-search ref="inputRef" v-model:value="searchText" placeholder="输入关键词,回车键搜索" class="w-full" @keyup.enter="onSearch" />
<a-input-search
ref="inputRef"
v-model:value="searchText"
placeholder="输入关键词,回车键搜索"
class="w-full"
allow-clear
@keyup.enter="onSearch"
/>
</div>
</template>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<SettingRow :title="props.title">
<a-input v-model:value="modelValue" class="!w-200px" @keydown="keydown" @keyup="keyup" />
<a-input v-model:value="modelValue" readonly class="!w-200px" @keydown="keydown" @keyup="keyup" />
</SettingRow>
</template>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div ref="rootRef">
<KeyRow v-model="settingStore.data.keyboardShortcuts.prevChapter" title="上一章" :key-text="keyText" />
<KeyRow v-model="settingStore.data.keyboardShortcuts.nextChapter" title="下一章" :key-text="keyText" />
<KeyRow v-model="settingStore.data.keyboardShortcuts.pageUp" title="上一屏" :key-text="keyText" />
Expand All @@ -13,10 +13,12 @@ import { useMagicKeys } from '@/hooks/useMagicKeys';
import { useSettingStore } from '@/stores/setting';
import KeyRow from './KeyRow.vue';
const rootRef = ref();
const { keyText } = useMagicKeys({
passive: false,
target: rootRef,
onEventFired(e) {
e.preventDefault();
e.stopImmediatePropagation();
}
});
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/pages/common/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export function useContent(contentRef: Ref<HTMLElement>) {
useKeyboardShortcuts(
{
passive: false,
target: contentRef,
onEventFired: (e) => {
e.preventDefault();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/pc/category/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a-select v-if="typeof route.params.contentType === 'undefined'" v-model:value="contentType" class="mb-10">
<a-select-option v-for="o in CONTENT_TYPES" :key="o.value" :value="o.value">{{ o.label }}</a-select-option>
</a-select>
<a-input v-model:value="searchText" class="mb-10" placeholder="过滤" />
<a-input v-model:value="searchText" class="mb-10" placeholder="过滤" allow-clear />

<!-- 分类 -->
<ARTabs v-model="ruleId" :options="ruleListDisplay" value-key="id" label-key="name" @update:model-value="changeRule">
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/pc/content/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- 加载 -->
<a-spin v-if="loading" :spinning="loading" class="h-full w-full items-center justify-center !flex" />
<!-- 阅读区域 -->
<div ref="contentRef" class="relative h-full flex flex-1 flex-col overflow-y-auto indent-2em sm:mx-60">
<div ref="contentRef" tabindex="0" class="relative h-full flex flex-1 flex-col overflow-y-auto indent-2em outline-none sm:px-60">
<!-- 漫画 -->
<template v-if="contentType === ContentType.MANGA">
<img v-for="(row, idx) in content" :key="idx" :src="row" />
Expand Down
20 changes: 3 additions & 17 deletions packages/web/src/pages/pc/rules/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<div class="mb-10 flex gap-10">
<div class="flex flex-1 items-center gap-10">
<a-input-search v-model:value="searchText" placeholder="搜索" class="!w-140px" />
<a-input-search v-model:value="searchText" placeholder="搜索" class="!w-140px" allow-clear />
<a-checkbox-group v-model:value="contentTypes" :options="CONTENT_TYPES"> </a-checkbox-group>
</div>
</div>
Expand Down Expand Up @@ -248,16 +248,6 @@ const tableColumns = ref<ColumnsType<any>>([
title: '置顶',
width: 120,
align: 'center',
filters: [
{
text: '启用',
value: true
},
{
text: '禁用',
value: false
}
],
customRender: ({ record }) => <a-switch checked={rulesStore.pindStore.includes(record.id)} onUpdate:checked={() => rulesStore.pindRule(record)} />
},
{
Expand Down Expand Up @@ -336,12 +326,8 @@ const tableColumns = ref<ColumnsType<any>>([
fixed: 'right',
customRender: ({ record }) => (
<div class="flex gap-5 text-12">
<a-button size="small" type="text" onClick={() => editRule(record)}>
编辑
</a-button>
<a-button size="small" type="text" danger onClick={() => delRule(record.id)}>
删除
</a-button>
<a-button type="primary" shape="circle" onClick={() => editRule(record)} icon={<EditOutlined />}></a-button>
<a-button type="primary" shape="circle" danger onClick={() => delRule(record.id)} icon={<DeleteOutlined />}></a-button>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/pc/search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a-select v-model:value="contentType">
<a-select-option v-for="item in CONTENT_TYPES" :key="item.value" :value="item.value">{{ item.label }}</a-select-option>
</a-select>
<a-input v-model:value="searchText" placeholder="输入关键词,回车键搜索" :disabled="loading" @keyup.enter="onSearch()" />
<a-input v-model:value="searchText" placeholder="输入关键词,回车键搜索" :disabled="loading" allow-clear @keyup.enter="onSearch()" />
</a-input-group>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion packages/web/src/pages/vscode/content/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<div
id="text-container"
ref="contentRef"
class="flex-1 overflow-y-auto whitespace-pre-wrap break-words p-10 indent-2em lh-1.5em"
tabindex="0"
class="flex-1 overflow-y-auto whitespace-pre-wrap break-words p-10 indent-2em lh-1.5em outline-none"
:style="{
fontSize: settingStore.data.readStyle.fontSize + 'px',
letterSpacing: settingStore.data.readStyle.letterSpacing + 'px'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ const contentRef = ref();
const { keyText } = useMagicKeys({
target: contentRef,
passive: false,
onEventFired(e) {
e.preventDefault();
e.stopImmediatePropagation();
}
});
Expand Down

0 comments on commit 656d4c2

Please sign in to comment.