From 49b51e478fa75b8d5254662de3265edcf8906004 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Wed, 20 Apr 2016 18:03:55 +0800 Subject: Refactor server with Sequelize ORM, refactor server configs, now will show note status (created or updated) and support docs (note alias) --- public/views/body.ejs | 28 +----- public/views/hackmd.ejs | 15 +++ public/views/header.ejs | 6 +- public/views/index.ejs | 206 ++++++++++++++++++++++++++++++++++++++++- public/views/modal.ejs | 34 +++++++ public/views/pretty.ejs | 4 +- public/views/slide.hbs | 82 ++++++++++++++++ public/views/slide/listing.hbs | 22 ----- public/views/slide/reveal.hbs | 82 ---------------- 9 files changed, 340 insertions(+), 139 deletions(-) create mode 100644 public/views/hackmd.ejs create mode 100644 public/views/modal.ejs create mode 100644 public/views/slide.hbs delete mode 100644 public/views/slide/listing.hbs delete mode 100644 public/views/slide/reveal.hbs (limited to 'public/views') diff --git a/public/views/body.ejs b/public/views/body.ejs index 54562ea6..044f7e6d 100644 --- a/public/views/body.ejs +++ b/public/views/body.ejs @@ -8,7 +8,7 @@ - changed + @@ -73,32 +73,6 @@ - - - - - - × - - Please sign in to edit - - - - Sign in via Facebook - - - Sign in via Twitter - - - Sign in via GitHub - - - Sign in via Dropbox - - - - - diff --git a/public/views/hackmd.ejs b/public/views/hackmd.ejs new file mode 100644 index 00000000..c5778fc9 --- /dev/null +++ b/public/views/hackmd.ejs @@ -0,0 +1,15 @@ + + + + + <%- include head %> + + + + <%- include header %> + <%- include body %> + <%- include footer %> + <%- include foot %> + + + \ No newline at end of file diff --git a/public/views/header.ejs b/public/views/header.ejs index 410886d1..bf8f9f66 100644 --- a/public/views/header.ejs +++ b/public/views/header.ejs @@ -38,8 +38,10 @@ Google Drive + <% if(typeof github !== 'undefined' && github) { %> Gist + <% } %> Import Dropbox @@ -119,8 +121,10 @@ Google Drive + <% if(typeof github !== 'undefined' && github) { %> Gist - + + <% } %> Import Dropbox diff --git a/public/views/index.ejs b/public/views/index.ejs index c5778fc9..85d955b7 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -2,14 +2,210 @@ - <%- include head %> + + + + + + + + + HackMD - Collaborative notes + + + + + <% if(useCDN) { %> + + + + <% } else { %> + + + + <% } %> + + + + + - <%- include header %> - <%- include body %> - <%- include footer %> - <%- include foot %> + + + + + + + + + + Home + + History + + Release Notes + + + + + + + + + HackMD + + Realtime collaborative markdown notes on all platforms. + + Sign In + Or + + New note + + Share directly with URL + More features + + + + + + + + Sign In to get own history! + + Below are history from browser + + + Welcome! + New note Or + Sign Out + + + + + + + + + + + Title + + + Time + + + + + + + + + + + + No history + + Import from browser + + + + + + {{#each release}} + + + + {{version}} + {{tag}} + + {{date}} + + + + {{#each detail}} + + {{title}} + + {{#each item}} + + {{this}} + + {{/each}} + + + {{/each}} + + {{#unless @last}} + {{/unless}} {{/each}} + + + + + + + + + © 2016 HackMD by jackycute + + + + + + + + + + + + × + + Are you sure? + + + + + + + + + + <%- include modal %> + + + + <% if(useCDN) { %> + + + + + + + + + <% } else { %> + + + + + + + + + <% } %> + + + + + + + + \ No newline at end of file diff --git a/public/views/modal.ejs b/public/views/modal.ejs new file mode 100644 index 00000000..260ff423 --- /dev/null +++ b/public/views/modal.ejs @@ -0,0 +1,34 @@ + + + + + + × + + Choose method + + + <% if(facebook) { %> + + Sign in via Facebook + + <% } %> + <% if(twitter) { %> + + Sign in via Twitter + + <% } %> + <% if(github) { %> + + Sign in via GitHub + + <% } %> + <% if(dropbox) { %> + + Sign in via Dropbox + + <% } %> + + + + \ No newline at end of file diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index ed6e638f..c8e959f4 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -49,8 +49,8 @@ <% } else { %> <% } %> - changed - <%- updatetime %> + + <%- viewcount %> views diff --git a/public/views/slide.hbs b/public/views/slide.hbs new file mode 100644 index 00000000..262a5df7 --- /dev/null +++ b/public/views/slide.hbs @@ -0,0 +1,82 @@ + + + + + + + + {{title}} + + + + + + + + + + + + + + + + + + {{{slides}}} + + + + + + + + + + + diff --git a/public/views/slide/listing.hbs b/public/views/slide/listing.hbs deleted file mode 100644 index 7da8ebab..00000000 --- a/public/views/slide/listing.hbs +++ /dev/null @@ -1,22 +0,0 @@ - - - - - Directory Listing - - - - - - - {{{listing}}} - - diff --git a/public/views/slide/reveal.hbs b/public/views/slide/reveal.hbs deleted file mode 100644 index 8a93c267..00000000 --- a/public/views/slide/reveal.hbs +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - {{title}} - - - - - - - - - - - - - - - - - - {{{slides}}} - - - - - - - - - - - -- cgit v1.2.3
+ Realtime collaborative markdown notes on all platforms. +
+ New note +
Below are history from browser
© 2016 HackMD by jackycute +