Skip to content

Commit

Permalink
fix(vscode): 添加规则 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed May 29, 2024
1 parent 79112b3 commit 905bebe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
5 changes: 4 additions & 1 deletion packages/shared/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ const entries = [

const external = [
'@any-reader/core',
// '@any-reader/epub',
'chardet',
'fs-extra',
'encoding-japanese',
'iconv-lite',
// 'lodash-es',
'lowdb',
'uuid',
]

const plugins = [
Expand Down
4 changes: 2 additions & 2 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "any-reader",
"displayName": "any-reader",
"description": "自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB",
"description": "摸鱼,自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB",
"icon": "resources/icon.png",
"version": "1.3.0",
"version": "1.3.1",
"publisher": "aooiu",
"qna": "https://github.com/aooiuu/any-reader/issues",
"bugs": {
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.0.0-dev.5",
"version": "1.0.0-dev.6",
"private": true,
"scripts": {
"dev": "cross-env VITE_APP_PLATFORM=browser vite",
Expand Down
4 changes: 1 addition & 3 deletions packages/web/src/pages/pc/rule-info/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
</template>

<script setup>
import { v4 as uuidV4 } from 'uuid';
import { CONTENT_TYPES, CONTENT_TYPE } from '@/constants';
import { getRuleById, createRule } from '@/api';
import MonacoEditor from './MonacoEditor.vue';
Expand Down Expand Up @@ -160,8 +159,7 @@ function setFormData(v) {
async function submit() {
await createRule({
...formData,
uuid: uuidV4()
...formData
});
router.back();
}
Expand Down
6 changes: 2 additions & 4 deletions packages/web/src/pages/vscode/rule-info/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
</template>

<script setup>
import { v4 as uuidV4 } from 'uuid';
import { CONTENT_TYPES, CONTENT_TYPE } from '@/constants';
import { getRuleById, createRule } from '@/api';
import MonacoEditor from './MonacoEditor.vue';
Expand Down Expand Up @@ -160,10 +159,9 @@ function setFormData(v) {
async function submit() {
await createRule({
...formData,
uuid: uuidV4()
...formData
});
router.push('/pc/rules');
router.back();
}
onMounted(async () => {
Expand Down

0 comments on commit 905bebe

Please sign in to comment.