Skip to content
This repository has been archived by the owner on Aug 11, 2018. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
artur9010 committed Jul 24, 2016
1 parent 792bf95 commit 93cf9f0
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Phoenix
## Screenshoots
![Login screen](http://i.imgur.com/o6IR0y0.png)
![After login screen?](http://i.imgur.com/GfDxwWP.png)

Expand Down
1 change: 1 addition & 0 deletions gui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

<div class="pane">
<div id="colorpicker"></div>
<div id="colors"></div>
<!-- todo: hidden, currently not working
<div class="predefined-colors">
<div class="color-block color-1"></div>
Expand Down
4 changes: 4 additions & 0 deletions gui/js/colorchanger.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* Created by artur9010 on 19.07.2016.
*/

//node.js imports
const waff = require("waff-query");
const messenger = require("facebook-chat-api");
const ColorPicker = require("simple-color-picker");

//Color picker
var colorpicker = new ColorPicker({
color: '#FF0000',
el: document.getElementById("colorpicker"),
Expand All @@ -22,6 +24,7 @@ waff.qq(".color-block").forEach(function (el) {
});
});

//Utils
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
Expand All @@ -32,6 +35,7 @@ function getParameterByName(name, url) {
return decodeURIComponent(results[2].replace(/\+/g, " "));
}

//Color changer
function login_to_messenger() {
messenger({
email: getParameterByName("username"),
Expand Down
5 changes: 3 additions & 2 deletions gui/login.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title>Phoenix: Log-in to Facebook Messenger</title>
Expand All @@ -11,11 +12,11 @@ <h1>Phoenix</h1>
<div id="error"></div><br/>
<form id="login-form">
<div class="form-group">
<label>Facebook login</label>
<label for="username">Facebook login</label>
<input type="text" id="username" class="form-control">
</div>
<div class="form-group">
<label>Facebook password</label>
<label for="password">Facebook password</label>
<input type="password" id="password" class="form-control">
</div>
<input type="submit" id="login-button" class="btn btn-large btn-warning" value="Continue">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Phoenix",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "main.js",
"scripts": {
Expand Down
13 changes: 9 additions & 4 deletions package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
electron-packager . --all
rm -rf electron-colorchanger-linux-x64/
rm -rf electron-colorchanger-mas-x64/
rm -rf electron-colorchanger-win32-x64/
rm -rf dist
mkdir dist
rm -rf Phoenix-*
electron-packager . --platform=darwin --arch=x64 --asar
electron-packager . --platform=linux --arch=ia32 --asar
electron-packager . --platform=win32 --arch=ia32 --asar
mv Phoenix-darwin-x64/ dist/
mv Phoenix-linux-ia32/ dist/
mv Phoenix-win32-ia32/ dist/

0 comments on commit 93cf9f0

Please sign in to comment.