Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ali Bojarpour
committed
Jun 21, 2015
1 parent
a639915
commit d5ea4d0
Showing
2 changed files
with
32 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!doctype html> | ||
<html ng-app="slackApp"> | ||
|
||
<head> | ||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.1/angular.min.js"></script> | ||
<script src="app.js"></script> | ||
<script src="/directives/slackInfo.js"></script> | ||
<script src="/factories/slackServer.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div slack-info> | ||
<label>Slack token: </label> | ||
<input ng-model="slackInfoVm.token" type="text" /> | ||
<br> | ||
<label>Days | ||
<select ng-model="slackInfoVm.days" ng-options="days for days in slackInfoVm.daysList"> | ||
</select> | ||
</label> | ||
<div> | ||
<a href ng-click="slackInfoVm.deleteFiles()">Delete files:</a> | ||
</div> | ||
<div> | ||
<textarea></textarea> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,3 @@ | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
var express = require('express') | ||
, routes = require('./routes') | ||
, user = require('./routes/user') | ||
, http = require('http') | ||
, path = require('path'); | ||
|
||
var app = express(); | ||
|
||
app.configure(function(){ | ||
app.set('port', process.env.PORT || 3000); | ||
app.set('views', __dirname + '/views'); | ||
app.set('view engine', 'jade'); | ||
app.use(express.favicon()); | ||
app.use(express.logger('dev')); | ||
app.use(express.bodyParser()); | ||
app.use(express.methodOverride()); | ||
app.use(app.router); | ||
app.use(express.static(path.join(__dirname, 'public'))); | ||
}); | ||
|
||
app.configure('development', function(){ | ||
app.use(express.errorHandler()); | ||
}); | ||
|
||
app.get('/', routes.index); | ||
app.get('/users', user.list); | ||
|
||
http.createServer(app).listen(app.get('port'), function(){ | ||
console.log("Express server listening on port " + app.get('port')); | ||
}); | ||
;(function(){ | ||
angular.module('slackApp',[]); | ||
})(); |