From d7958e1594a094533c89ff8eb1a691ea46348cd4 Mon Sep 17 00:00:00 2001 From: Theenoro Date: Mon, 28 Aug 2017 03:50:31 +0200 Subject: [PATCH] 1.4.0 Alpha --- README.md | 3 + package.json | 5 +- src/app/js/app.js | 47 +++++++++-- src/app/js/pot_main.js | 66 ++++++++++++++++ src/app/style/style.css | 60 +------------- src/app/style/style.less | 76 ++++++++++++++++++ src/app/view/layout.html | 78 ++++++++++++------- src/app/view/pot.html | 112 +++++++++++++++++++++++++++ src/controller/crunchyroll.js | 8 +- src/controller/player_onTop.js | 73 +++++++++++++++++ src/controller/watchr.js | 61 +++++++++++++++ src/controller/youtube-dl.js | 40 +++++++++- src/controller/youtube-dl.routine.js | 2 +- src/helper/string.js | 15 ++++ src/index.js | 2 +- src/themes/standard/style.less | 76 ++++++++++++++++++ src/tmp/c | 15 ++++ 17 files changed, 637 insertions(+), 102 deletions(-) create mode 100644 src/app/js/pot_main.js create mode 100644 src/app/style/style.less create mode 100644 src/app/view/pot.html create mode 100644 src/controller/player_onTop.js create mode 100644 src/controller/watchr.js create mode 100644 src/helper/string.js create mode 100644 src/themes/standard/style.less create mode 100644 src/tmp/c diff --git a/README.md b/README.md index e8c7393..8b5d9ac 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ ![./current-preview.PNG](./current-preview.PNG) +# v 1.4.0 Alpha + +Preview [Video](https://cl.thee.moe/index.php/s/T8FEaFFxyhlxIj6) # Download 1.3.0 diff --git a/package.json b/package.json index cd7209a..7e95600 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,12 @@ "dependencies": { "electron": "^1.6.11", "electron-compile": "^6.4.1", + "fs": "0.0.1-security", "mkdirp": "^0.5.1", + "path": "^0.12.7", "request": "^2.81.0", - "unzip": "^0.1.11" + "unzip": "^0.1.11", + "watchr": "^3.0.1" }, "devDependencies": { "babel-plugin-transform-async-to-generator": "^6.24.1", diff --git a/src/app/js/app.js b/src/app/js/app.js index 61d458c..81d4f7d 100644 --- a/src/app/js/app.js +++ b/src/app/js/app.js @@ -1,14 +1,34 @@ $(function() { var download_progress = $('#download-progress'); + var format = null; var out = $('#output'); + var video = document.getElementById('video'); const ipcRenderer = require('electron').ipcRenderer; const request = require('request'); + const helper = require('./../../helper/string'); + const { dialog } = require('electron').remote; var cache = {}; var path = ""; + + var pot = false; + + ipcRenderer.send('watchr_event', {}); + ipcRenderer.on('play-in-Window',function(event,arg){ + pot = arg.do; + }) + ipcRenderer.on('watchr_file', function(event, arg) { + arg.file = encodeURI(arg.file) + if (arg.type === "add") { + $('#watchr_files').append('' + arg.file + '') + } else if (arg.type === "remove") { + $('.file[data-file="' + arg.file + '"]').remove(); + } + $('#download-progress-' + arg.id).html(arg.percent); + }) ipcRenderer.on('download-progress', function(event, arg) { console.log(arg); // prints "pong" $('#download-progress-' + arg.id).css("width", arg.percent); @@ -20,8 +40,12 @@ $(function() { $('#download-progress-' + arg.id).html("CONVERTED"); }); ipcRenderer.on('file', function(event, arg) { + console.log('DOWNLOADED') console.log(arg); // prints "pong" - $('#body-' + arg.id).append('