Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed May 28, 2013
0 parents commit eb85262
Show file tree
Hide file tree
Showing 9 changed files with 198 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "shadowsocks-nodejs"]
path = shadowsocks-nodejs
url = https://github.com/clowwindy/shadowsocks-nodejs.git
21 changes: 21 additions & 0 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{print} = require 'util'
{spawn} = require 'child_process'

build = () ->
os = require 'os'
if os.platform() == 'win32'
coffeeCmd = 'coffee.cmd'
else
coffeeCmd = 'coffee'
coffee = spawn coffeeCmd, ['-c', '-o', '.', 'src']
coffee.stderr.on 'data', (data) ->
process.stderr.write data.toString()
coffee.stdout.on 'data', (data) ->
print data.toString()
coffee.on 'exit', (code) ->
if code != 0
process.exit code

task 'build', 'Build ./ from src/', ->
build()

9 changes: 9 additions & 0 deletions bootstrap.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions bootstrap.min.js

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html>
<head>
<title>shadowsocks</title>
<link rel="stylesheet" type="text/css" href="bootstrap.min.css"/>
<style>
body {
margin: 10px;
}
</style>
<script src="jquery-1.9.0.min.js"></script>
<script src="bootstrap.min.js"></script>
</head>
<body>
<div id="divError" class="alert alert-error hide">
Please fill in the blanks and click Save.
</div>
<div class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputServerIP">Server IP</label>
<div class="controls">
<input type="text" id="inputServerIP" data-key="server" placeholder="Server IP">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputServerPort">Server Port</label>
<div class="controls">
<input type="text" id="inputServerPort" data-key="server_port" placeholder="Server Port">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputPassword">Password</label>
<div class="controls">
<input type="text" id="inputPassword" data-key="password" placeholder="Password">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputLocalPort">Local Port</label>
<div class="controls">
<input type="text" id="inputLocalPort" data-key="local_port" placeholder="Local Port">
</div>
</div>
<div class="control-group">
<div class="controls">
<button id="buttonSave" class="btn btn-primary">Save</button>
<button id="buttonConsole" class="btn">Show Console</button>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>
4 changes: 4 additions & 0 deletions jquery-1.9.0.min.js

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "shadowsocks",
"main": "index.html",
"description": "shadowsocks client with GUI",
"version": "0.1.0",
"keywords": [ "shadowsocks", "node-webkit" ],
"window": {
"icon": "link.png",
"toolbar": false,
"width": 500,
"height": 300,
"position": "mouse",
"min_width": 300,
"min_height": 200,
"max_width": 800,
"max_height": 600
},
"webkit": {
"plugin": true
}
}
1 change: 1 addition & 0 deletions shadowsocks-nodejs
Submodule shadowsocks-nodejs added at 2865d7

0 comments on commit eb85262

Please sign in to comment.