Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
HASEGAWA Tomoki committed Dec 4, 2015
0 parents commit ce80224
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Slack</title>
<script>
window.jQuery = window.$ = require('./lib/jquery-2.1.4.min');
$(function(){
$('#mainWebview').bind(
"did-finish-load",
function(){
this.insertCSS("* { font-family: Arial, Roboto, \"Droid Sans\", \"ヒラギノ角ゴ ProN W3\", \"Hiragino Kaku Gothic ProN\", \"メイリオ\", Meiryo, sans-serif !important; }");
}
);
});
</script>
</head>
<body>
<webview id="mainWebview" src="https://slack.com/signin" autosize="on"></webview>
<style>
webview {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
</style>
</body>
</html>
4 changes: 4 additions & 0 deletions lib/jquery-2.1.4.min.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
'use strict';

var app = require('app');
var BrowserWindow = require('browser-window');

require('crash-reporter').start();

var mainWindow = null;

app.on('window-all-closed', function() {
if (process.platform != 'darwin') {
app.quit();
}
});

app.on('ready', function() {
mainWindow = new BrowserWindow({width: 1000, height: 600});
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.openDevTools(true);

mainWindow.on('closed', function() {
mainWindow = null;
});

});
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "slack-j",
"version": "0.0.1",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": ["slack"],
"author": "@tomzoh",
"license": "MIT"
}

0 comments on commit ce80224

Please sign in to comment.