Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #20 from bersLucas/2.0.0-alpha
Browse files Browse the repository at this point in the history
2.0.0 version
  • Loading branch information
Lucas Bersier authored Dec 14, 2018
2 parents 329cf13 + 070bd53 commit 3af8260
Show file tree
Hide file tree
Showing 34 changed files with 2,427 additions and 321 deletions.
68 changes: 64 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,68 @@
dist
.idea
.idea/*
*.css
*.css.map
i

*.map
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

*.DS_Store
# Runtime data
pids
*.pid
*.seed
*.pid.lock

*.DS_Store
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

i/Bookseries1/.DS_Store
# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
A W I D E comic reader. Successor to <a href="/bersLucas/MSlide">MSlide</a>.
HI6MA was created to give users a larger reading area and remove dependency on jQuery.

### Set up
### Requirements for building
* [NodeJs](https://nodejs.org/en/)
* [Yarn](https://yarnpkg.com/en/)

* Clone [the master branch](https://github.com/bersLucas/HI6MA/archive/master.zip) onto any web server.
* In the **/i/** folder, create folders for each series.
### Image Root Folder Set up

* Create a directory to host your image files
* In that folder, create folders for each series.
* <sub>(The series' folder names must contain no spaces,and must be unique.)</sub>
* Inside of these folders, you will add the following files:
* **cover.jpg** : The cover that will display on the main page.
Expand Down Expand Up @@ -36,10 +40,12 @@ Translator's Name
### Example file structure:
<img src="https://cloud.githubusercontent.com/assets/3892772/19536607/aba5b538-961a-11e6-901b-a7ba8085b9af.png"/>

### Sass
Colors are represented in sass variabless. Use **css/_variables.scss** to edit the background and accent colors. <a href="http://sass-lang.com/">You will need a sass compiler</a>.
Run the following commands to generate your website:

### Dependencies
<a href="http://hammerjs.github.io/">Hammer.js</a> - Mobile swiping events.
```bash
# Generate a booklist
node booklistgen.js [root image folder]

<a href="https://github.com/vuejs/vue">Vue.js</a> - Interface library
# Build index file
yarn run build
```
Binary file removed bg.jpg
Binary file not shown.
36 changes: 36 additions & 0 deletions booklistgen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const fs = require('fs');
const rootFolder = process.argv[2];
let booklist = fs.readdirSync(rootFolder);

let books = [];

booklist.forEach(book => {
let bookData = fs.readFileSync(`${rootFolder}/${book}/data.txt`)
.toString()
.split('\n');

let bookObj = {
folder: `../${rootFolder}/${book}`,
name: bookData[0],
kanji: bookData[1],
author: bookData[2],
TL: bookData[3],
BG: bookData[4],
BBG: bookData[5]
};

bookObj.chapters = fs.readdirSync(`${rootFolder}/${book}`)
.filter(chapter => {
return fs.lstatSync(`${rootFolder}/${book}/${chapter}`).isDirectory()
});

books.push(bookObj);
});

fs.writeFile('./BOOKLIST.js', 'var books = '+JSON.stringify(books), err => {
if (err){
return console.log('Unable to generate booklist file\n' + err)
} else {
console.log('Booklist generated!\nRun \'yarn run build\' next');
}
});
6 changes: 0 additions & 6 deletions css/reset.css

This file was deleted.

2 changes: 0 additions & 2 deletions css/style.css

This file was deleted.

Binary file removed i/Bookseries/Chapter 1/001.png
Binary file not shown.
Binary file removed i/Bookseries/Chapter 1/002.png
Binary file not shown.
Binary file removed i/Bookseries/Chapter 1/003.png
Binary file not shown.
Binary file removed i/Bookseries/Chapter 1/004.png
Binary file not shown.
Binary file removed i/Bookseries/Chapter 1/005.png
Binary file not shown.
Binary file removed i/Bookseries/Chapter 1/006.png
Binary file not shown.
Binary file removed i/Bookseries/Chapter 1/007.png
Binary file not shown.
Binary file removed i/Bookseries/Chapter 1/008.png
Binary file not shown.
Binary file removed i/Bookseries/cover.jpg
Binary file not shown.
6 changes: 0 additions & 6 deletions i/Bookseries/data.txt

This file was deleted.

79 changes: 0 additions & 79 deletions index.php

This file was deleted.

Loading

0 comments on commit 3af8260

Please sign in to comment.