Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shybees committed Mar 15, 2022
1 parent 56afd78 commit 7722df8
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 624 deletions.
533 changes: 0 additions & 533 deletions CHANGELOG.md

Large diffs are not rendered by default.

76 changes: 0 additions & 76 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,76 +0,0 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
![vector](./assets/icon.png)

a ebook reader which based on electron-react-boilerplate
A ebook reader for epub which based on electron-react-boilerplate

## Preview
![preview1](./assets/preview/preview1.png)
Binary file added assets/preview/preview1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "vector",
"version": "1.0.0",
"description": "a ebook reader which based on electron-react-boilerplate",
"scripts": {
"build": "concurrently \"yarn build:main\" \"yarn build:renderer\"",
Expand Down Expand Up @@ -99,15 +100,15 @@
"publish": {
"provider": "github",
"owner": "lifan1727",
"repo": ""
"repo": "https://github.com/lifan1727/vector"
}
},
"repository": {
"type": "git",
"url": "https://github.com/lifan1727/vector"
},
"author": {
"name": "lifan"
"name": "zhangli"
},
"license": "MIT",
"bugs": {
Expand Down
4 changes: 0 additions & 4 deletions release/app/yarn.lock

This file was deleted.

14 changes: 14 additions & 0 deletions src/renderer/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,17 @@ html, body {
margin:0;
padding:0;
}

.scollbar::-webkit-scrollbar {
width: 5px;
}

.scollbar::-webkit-scrollbar-thumb {
border-radius: 10px;
background: #38bdf8;
}

.scollbar::-webkit-scrollbar-track {
border-radius: 10px;
background: #EDEDED;
}
4 changes: 2 additions & 2 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Epub, { Book } from 'epubjs';
const Pdfjs = require('pdfjs-dist');
const pdfWorker = require('pdfjs-dist/build/pdf.worker.entry');
import BookViewer from './features/bookviewer/BookViewer';
import Home from './features/home/Home';
import './App.css';

export default function App() {
Expand Down Expand Up @@ -34,9 +35,8 @@ export default function App() {
return (
<>
{
Object.keys(book).length === 0? <p>Vector</p>: <BookViewer book={book}/>
Object.keys(book).length === 0? <Home />: <BookViewer book={book}/>
}
{/* <BookViewer book={book}/> */}
</>
);
}
4 changes: 2 additions & 2 deletions src/renderer/features/epub/EpubContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class EpubContent extends Component {
<div id="content" className="h-5/6 p-3 m-3 shadow bg-white">
</div>
<div id="changePage" className="text-center">
<button onClick={this.prevPage} className="p-3 rounded-full mr-1 bg-teal-500 text-white">☜(゚ヮ゚☜)</button>
<button onClick={this.nextPage} className="p-3 rounded-full ml-1 bg-teal-500 text-white">(☞゚ヮ゚)☞</button>
<button onClick={this.prevPage} className="p-3 rounded-full mr-1 bg-sky-400 text-white">☜(゚ヮ゚☜)</button>
<button onClick={this.nextPage} className="p-3 rounded-full ml-1 bg-sky-400 text-white">(☞゚ヮ゚)☞</button>
</div>
</div>
)
Expand Down
9 changes: 5 additions & 4 deletions src/renderer/features/epub/EpubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ const EpubMenu = (props: any) => {

return (
<div id="menu" className="float-left h-full w-1/5 shadow bg-white">
<button onClick={showMenu}>目录</button>
<div id="menu" className="p-3">
<button onClick={showMenu} className="bg-sky-400 text-white p-4 w-full border-none">目录</button>
<div id="menulist" className="overflow-auto scollbar h-5/6">
<ul>
{
tocs? tocs.map((toc) => {
return <li key={toc.id}>
<a onClick={showNewPage} id={toc.href} className="p-2 cursor-pointer text-slate-700">{toc.label}</a>
return <li key={toc.id} className="p-2 m-2">
<a onClick={showNewPage} id={toc.href} className="cursor-pointe
align-middle">{toc.label}</a>
</li>
}): ''
}
Expand Down
16 changes: 16 additions & 0 deletions src/renderer/features/home/Home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import logo from '../../../../assets/icon.png'
function Home() {
return (
<div className="flex h-full justify-center items-center bg-white">
<div className="flex flex-col">
<img src={logo}></img>
<p className="pb-2 pt-2 mt-2 mb-2 text-center bg-sky-400 text-white">Epub电子书阅读器</p>
<a href="https://github.com/lifan1727/vector" target="_blank"
className="bg-sky-400 text-white p-2 text-center">Github</a>
</div>
</div>
)
}

export default Home;

0 comments on commit 7722df8

Please sign in to comment.