Giter Site home page Giter Site logo

aooiuu / z-reader Goto Github PK

View Code? Open in Web Editor NEW
364.0 2.0 84.0 1.61 MB

📘 [vscode插件] 小说阅读器,支持在线搜索和本地阅读,支持txt和epub格式

Home Page: https://marketplace.visualstudio.com/items?itemName=aooiu.z-reader

License: MIT License

TypeScript 86.32% HTML 9.55% CSS 2.54% JavaScript 1.59%
vscode epub txt reader fiction vscode-extension vscode-plugin txt-epub

z-reader's Introduction

Github Stats

z-reader's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

z-reader's Issues

ePub 文件读取异常

我的文件:https://libgen.lc/ads.php?md5=83d6e682effa8847c0170b7fcf1d79e6

下面是我使用本插件打开的表现:
异常截图
存在的问题包括:

  • 目录读取异常
  • 章节划分也伴随异常

下面是另外一个插件(epub reader)打开的表现,我对具体原理不了解,但看起来读取正常的标题是可行的。
图片

我很喜欢z-reader,希望能找到方案解决这个困扰。

Adopt VS Code's 'asWebviewUri' API

Hi, I maintain VS Code's Webview API

Issue

Our telemetry suggests that your extension uses webviews and may be loading resources in these webviews using hardcoded vscode-resource: URIs. These URIs have some important limitations and don't work properly when VS Code is run in a browser. We are also making changes in the desktop version of VS Code that may cause these URIs to not work properly in future versions of VS Code.

While we are making our best effort to continue support existing webview extensions that use vscode-resource: URIs on desktop versions of VS Code, we will not able to fully support all uses cases.

Fix

To ensure that your extension continues to work in as many environments as possible—including on web and remotely—please:

These APIs shipped around 2 years ago so they should be available in all modern versions of VS Code. You can find additional information about the issue here: microsoft/vscode#97962

Let me know if you have any questions about this change

笔趣阁获取小说是乱码啊大佬

笔趣阁获取小说是乱码啊大佬
“�ʱ������һ����������ֻ���Զ�үר�Ŀ���ǽ�ǵ����󣬷·�ûע�����Ķ�����
������״Ԫ��ͷһ����������������ֿ�ʼ��׾�ˡ���”

列表排序存在问题

本来大内存文件加载慢,我写脚本把文件拆分成n章,发现了个排序问题。
看图吧。
image

[Feature] 支持子文件夹

现在设置了目录之后,只有目录根部的epub会被检索到,这样不方便书籍分类。能否增加子文件夹的支持?

问题:

1,右下角总会出现很多消息
2,目录的拉取有待优化,目前会把图片页拉出来
3,无法显示图片
4,会出现很多莫名奇妙的空行,严重影响阅读
建议增加改变字体颜色和大小的功能

起点不能用了

起点可以搜出来书,但打不开目录,有什么解决的方法吗

书源失效了

更新后只能搜索到书名,但是获取不到章节内容

笔趣阁原来的网站搜索找不到了

// const DOMAIN = 'https://www.biquge.com.cn';
const DOMAIN = 'https://www.xbiquge.la/';
// https://www.xbiquge.la/modules/article/waps.php
class ReaderDriver {
hasChapter() {
return true;
}
search(keyword) {
return __awaiter(this, void 0, void 0, function* () {
const result = [];
try {
// const res = yield got(DOMAIN + '/search.php?q=' + encodeURI(keyword));
const res = yield got(DOMAIN + '/modules/article/waps.php?searchkey=' + encodeURI(keyword))
const $ = cheerio.load(res.body);
$('.grid tr').each(function (i, elem) {
const title = $($(elem).find('td')[0]).text();
const author = $($(elem).find('td')[2]).text();
const path = $($(elem).find('td')[0]).find('a').length > 0 ? $($(elem).find('td')[0]).find('a').attr().href : '';
result.push(new TreeNode_1.TreeNode(Object.assign({}, TreeNode_1.defaultProblem, {
type: '.biquge',
name: ${title} - ${author},
isDirectory: true,
path
})));
});
}
catch (error) {
console.warn(error);
}
return result;
});
}

请问怎么安装?> > > > 我做了一下修改,下载解压安装即可

我做了一下修改,下载解压安装即可
https://wwr.lanzoui.com/iv0Tgqufgxa
密码:f1d5

大神666啊 验证可以

我用了,还是不行

我刚刚用 又不行了

最新调整:

目前在线书源共支持四个:

下载地址:https://wwr.lanzoui.com/b02c7a2sh 密码:8882

Originally posted by @leslie-gl in #43 (comment)

images

为了能在README显示图片

提个问题,顺便分享一个自己改的样式

问题:打开 20 多M 的本地 txt 一直显示空白一片。
修改的样式:
`html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
letter-spacing: 3px;
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

body {
background-color: #272822;
}

#app {
width: 100%;
height: 100%;
position: relative;
padding: 20px 100px;
box-sizing: border-box;
}

.content {
position: fixed;
left: 100px;
right: 100px;
top: 50px;
bottom: 50px;
padding: 0;
margin: 0;
overflow-y: auto;
background: transparent;
white-space: pre-line;
word-break: break-all;
word-wrap: break-word;
color: #F8F8F2 !important;
font-size: 18px !important;
letter-spacing: 2px !important;
line-height: 2em !important;
font-family: '宋体', Simsun;
white-space: pre-line !important;
}

#contextmenu {
z-index: 9999;
position: fixed;
box-shadow: 0 0 5px rgba(0, 0, 0, .2);
padding: 0;
border: 1px solid #282c34;
list-style: none;
background: #fff;
}

#contextmenu li {
width: 100%;
}

#contextmenu li a {
cursor: pointer;
display: block;
text-decoration: none;
color: #282c34;
width: 100%;
text-align: center;
padding: 10px;
box-sizing: border-box;
}

#contextmenu li:first-of-type {
border-radius: 5px 5px 0 0;
}

#contextmenu li a:hover,
#contextmenu li a:active {
background: #eee;
color: #0AAF88;
}`

希望能改变小说字体和大小

每次打开小说字体都太小,放大后字体和大小都保存不下来;希望能增加可调整小说字体和大小的功能,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.