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

Commit

Permalink
Merge pull request #117 from yjlintw/pre-v2
Browse files Browse the repository at this point in the history
Pre v2
  • Loading branch information
yjlintw authored May 16, 2017
2 parents 36bd93d + 2648e4f commit 0b8d8f3
Show file tree
Hide file tree
Showing 23 changed files with 1,653 additions and 1,740 deletions.
147 changes: 82 additions & 65 deletions assets/css/main.css

Large diffs are not rendered by default.

1,909 changes: 1,007 additions & 902 deletions assets/scss/main.scss

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "comic-reader",
"productName": "Comic Reader",
"author": "Team Comic Reader",
"version": "0.1.46",
"description": "Quickly, smoothly and cooler reading experience. The best move to read comics.",
"version": "0.1.47",
"description": "A quicker, smoother and cooler reading experience. The best way to read comics.",
"main": "main.js",
"devDependencies": {
"concurrently": "^3.4.0",
Expand Down
7 changes: 2 additions & 5 deletions renderer-process/components/titlebar.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
var events = require('events');
var util = require('util');
var fs = require('fs');
// var domify = require('domify');
// var $ = require("dombo");

var $window = $(window);
var html_mac = fs.readFileSync(__dirname + '/../../sections/titlebar-mac.html', 'utf-8');
var html_win = fs.readFileSync(__dirname + '/../../sections/titlebar-win.html', 'utf-8');
// console.log(html);

var TitleBar = function(options) {
if (!(this instanceof TitleBar)) return new TitleBar(options);
events.EventEmitter.call(this);
Expand All @@ -19,6 +17,7 @@ var TitleBar = function(options) {
var $element = $(html);
var element = $element[0];
this.element = element;
this.$element = $element;

var self = this;
var close = $('.titlebar-close', element)[0];
Expand Down Expand Up @@ -53,7 +52,6 @@ TitleBar.prototype.appendTo = function(target) {
if(typeof target === 'string') target = $(target)[0];

var $element = this.$element;

$window.on('keydown', this._onkeydown = function(e) {

if(e.keyCode === 18) {
Expand All @@ -64,7 +62,6 @@ TitleBar.prototype.appendTo = function(target) {
$window.on('keyup', this._onkeyup = function(e) {
if(e.keyCode === 18) $element.removeClass('alt');
});
// console.log(typeof this.element)
target.appendChild(this.element);
return this;
};
Expand Down
16 changes: 1 addition & 15 deletions renderer-process/content-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,4 @@ $.get('./sections/read-view.html', function(result) {

$.get('./sections/about-view.html', function(result) {
$("#main-view").append(result);
})

// $.get('./sections/page.html', function(result) {
// for(var i = 0; i < 50; i++) {
// var view = $(result);
// view.find("img").attr("src", "./assets/img/test/80x100.png")
// $("#read-area").append(view);
// }

// })

// tmp.load('./sections/search-view.html');
// $("#main-view").append(tmp.find("loader").html());
// tmp.load('./sections/read-view.html');
// $("#main-view").append(tmp.find("loader").html());
})
141 changes: 0 additions & 141 deletions renderer-process/favorite-view.js

This file was deleted.

10 changes: 5 additions & 5 deletions renderer-process/load-after.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
*/
// const path = require('path');
// 3rd party library
var schedule = require('node-schedule');
let schedule = require('node-schedule');

// viewmodel
var subscriber = require('./viewmodels/subscribe-viewmodel');
let subscriber = require('./viewmodels/subscribe-viewmodel');

// viewcontroller
var viewswitch_viewcontroller = require('./viewcontrollers/view-switch-viewcontroller');
let viewswitch_viewcontroller = require('./viewcontrollers/view-switch-viewcontroller');
const isDev = require('electron-is-dev');

var scheduledTask;
let scheduledTask;
$(document).ready(function() {
console.log(viewswitch_viewcontroller)
// console.log(viewswitch_viewcontroller)
if (subscriber.hasSubscription()) {
viewswitch_viewcontroller.tabswitch(viewswitch_viewcontroller.TAB_NAME.FAVORITE);
} else {
Expand Down
Loading

0 comments on commit 0b8d8f3

Please sign in to comment.