Skip to content
Browse files

Change static directory + Add examples

  • Loading branch information...
1 parent c5685af commit f52eba6b8420112dfd4ecdebb60636aaaf3d8675 @wanasit committed
Showing with 49 additions and 6 deletions.
  1. +3 −4 everest.js
  2. +34 −0 examples/FindNotes.js
  3. +10 −0 package.json
  4. 0 {static → website}/example_createNote.js
  5. 0 {static → website}/example_findNotes.js
  6. 0 {static → website}/example_getUser.js
  7. +1 −1 {static → website}/index.html
  8. 0 {static → website}/lib/bootstrap/css/bootstrap-responsive.css
  9. 0 {static → website}/lib/bootstrap/css/bootstrap-responsive.min.css
  10. 0 {static → website}/lib/bootstrap/css/bootstrap.css
  11. 0 {static → website}/lib/bootstrap/css/bootstrap.min.css
  12. 0 {static → website}/lib/bootstrap/img/glyphicons-halflings-white.png
  13. 0 {static → website}/lib/bootstrap/img/glyphicons-halflings.png
  14. 0 {static → website}/lib/bootstrap/js/bootstrap.js
  15. 0 {static → website}/lib/bootstrap/js/bootstrap.min.js
  16. 0 {static → website}/lib/enml-js/README.md
  17. 0 {static → website}/lib/enml-js/enml.js
  18. 0 {static → website}/lib/enml-js/examples/browser/example.html
  19. 0 {static → website}/lib/enml-js/examples/ex0.txt
  20. 0 {static → website}/lib/enml-js/examples/ex1.enml
  21. 0 {static → website}/lib/enml-js/examples/node-js/example.js
  22. 0 {static → website}/lib/enml-js/examples/note2.json
  23. 0 {static → website}/lib/enml-js/examples/note3.json
  24. 0 {static → website}/lib/enml-js/lib/xml-parser.js
  25. 0 {static → website}/lib/enml-js/lib/xml-writer.js
  26. 0 {static → website}/lib/enml-js/package.json
  27. 0 {static → website}/lib/jquery/jquery-1.7.1.min.js
  28. 0 {static → website}/lib/jquery/jquery-ui.min.css
  29. 0 {static → website}/lib/jquery/jquery-ui.min.js
  30. 0 {static → website}/lib/jquery/jquery.min.js
  31. +1 −1 {static → website}/login.html
  32. 0 {static → website}/site.css
  33. 0 {static → website}/site.js
View
7 everest.js
@@ -22,7 +22,7 @@ app.configure('development', function(){
app.use(express.bodyParser());
//Use static files
- app.use("/static", express.static(__dirname + '/static'));
+ app.use("/website", express.static(__dirname + '/website'));
//Use session
app.use(express.session(
@@ -51,9 +51,9 @@ app.all('/', function(req, res, next) {
app.get('/', function(req, res){
if(!req.session.user) //Unauthenticate User
- return res.redirect('/static/login.html');
+ return res.redirect('/website/login.html');
- return res.redirect('/static/index.html');
+ return res.redirect('/website/index.html');
});
//===================================================
@@ -325,7 +325,6 @@ app.all('/tags/:guid/expunge', function(req, res){
});
});
-
//===================================================
// Notebooks
//===================================================
View
34 examples/FindNotes.js
@@ -0,0 +1,34 @@
+
+
+var authToken = "EVERNOTE_TOKEN"; //The token
+
+var config = require('../config.js');
+var Evernote = require('../evernode').Evernote;
+var util = require('util');
+
+var evernote = new Evernote(
+ config.evernoteConsumerKey,
+ config.evernoteConsumerSecret,
+ config.evernoteUsedSandbox
+ );
+
+var offset = 0;
+var count = 10;
+var words = '';
+var sortOrder = 'UPDATED' // 'CREATED';
+var ascending = false;
+
+//Get the user object....
+evernote.getUser(authToken,function(err, edamUser) {
+
+ if (err) return console.log(err);
+
+ //Find the notes....
+ evernote.findNotes(edamUser, words, { offset:offset, count:count, sortOrder:sortOrder, ascending:ascending }, function(err, noteList) {
+
+ if (err) return console.log(err);
+
+ return console.log(noteList);
+ });
+});
+
View
10 package.json
@@ -0,0 +1,10 @@
+{
+ "name": "everest-js",
+ "version": "0.0.1",
+ "dependencies": {
+ },
+ "engines": {
+ "node": "0.8.x",
+ "npm": "1.1.x"
+ }
+}
View
0 static/example_createNote.js → website/example_createNote.js
File renamed without changes.
View
0 static/example_findNotes.js → website/example_findNotes.js
File renamed without changes.
View
0 static/example_getUser.js → website/example_getUser.js
File renamed without changes.
View
2 static/index.html → website/index.html
@@ -66,7 +66,7 @@
<div class="bottom-container">
<hr>
<footer>
- <p>© Berrysoft 2012</p>
+
</footer>
</div>
View
0 ...ib/bootstrap/css/bootstrap-responsive.css → ...ib/bootstrap/css/bootstrap-responsive.css
File renamed without changes.
View
0 ...ootstrap/css/bootstrap-responsive.min.css → ...ootstrap/css/bootstrap-responsive.min.css
File renamed without changes.
View
0 static/lib/bootstrap/css/bootstrap.css → website/lib/bootstrap/css/bootstrap.css
File renamed without changes.
View
0 static/lib/bootstrap/css/bootstrap.min.css → website/lib/bootstrap/css/bootstrap.min.css
File renamed without changes.
View
0 ...tstrap/img/glyphicons-halflings-white.png → ...tstrap/img/glyphicons-halflings-white.png
File renamed without changes
View
0 ...ib/bootstrap/img/glyphicons-halflings.png → ...ib/bootstrap/img/glyphicons-halflings.png
File renamed without changes
View
0 static/lib/bootstrap/js/bootstrap.js → website/lib/bootstrap/js/bootstrap.js
File renamed without changes.
View
0 static/lib/bootstrap/js/bootstrap.min.js → website/lib/bootstrap/js/bootstrap.min.js
File renamed without changes.
View
0 static/lib/enml-js/README.md → website/lib/enml-js/README.md
File renamed without changes.
View
0 static/lib/enml-js/enml.js → website/lib/enml-js/enml.js
File renamed without changes.
View
0 ...lib/enml-js/examples/browser/example.html → ...lib/enml-js/examples/browser/example.html
File renamed without changes.
View
0 static/lib/enml-js/examples/ex0.txt → website/lib/enml-js/examples/ex0.txt
File renamed without changes.
View
0 static/lib/enml-js/examples/ex1.enml → website/lib/enml-js/examples/ex1.enml
File renamed without changes.
View
0 ...c/lib/enml-js/examples/node-js/example.js → ...e/lib/enml-js/examples/node-js/example.js
File renamed without changes.
View
0 static/lib/enml-js/examples/note2.json → website/lib/enml-js/examples/note2.json
File renamed without changes.
View
0 static/lib/enml-js/examples/note3.json → website/lib/enml-js/examples/note3.json
File renamed without changes.
View
0 static/lib/enml-js/lib/xml-parser.js → website/lib/enml-js/lib/xml-parser.js
File renamed without changes.
View
0 static/lib/enml-js/lib/xml-writer.js → website/lib/enml-js/lib/xml-writer.js
File renamed without changes.
View
0 static/lib/enml-js/package.json → website/lib/enml-js/package.json
File renamed without changes.
View
0 static/lib/jquery/jquery-1.7.1.min.js → website/lib/jquery/jquery-1.7.1.min.js
File renamed without changes.
View
0 static/lib/jquery/jquery-ui.min.css → website/lib/jquery/jquery-ui.min.css
File renamed without changes.
View
0 static/lib/jquery/jquery-ui.min.js → website/lib/jquery/jquery-ui.min.js
File renamed without changes.
View
0 static/lib/jquery/jquery.min.js → website/lib/jquery/jquery.min.js
File renamed without changes.
View
2 static/login.html → website/login.html
@@ -46,7 +46,7 @@
<div class="bottom-container">
<hr>
<footer>
- <p>© Berrysoft 2012</p>
+
</footer>
</div>
View
0 static/site.css → website/site.css
File renamed without changes.
View
0 static/site.js → website/site.js
File renamed without changes.

0 comments on commit f52eba6

Please sign in to comment.
Something went wrong with that request. Please try again.