v1.0 initial db data

This commit is contained in:
lealife
2015-06-15 18:53:02 +08:00
parent 03aa8edd58
commit b564989214
73 changed files with 42 additions and 115 deletions

View File

@ -41,7 +41,7 @@ function log(o) {
<div id="lang"> <div id="lang">
<a data-lang="en-us">English</a> <a data-lang="en-us">English</a>
<a data-lang="fr-fr">Français</a> <a data-lang="fr-fr">Français</a>
<a data-lang="zh-cn">中文简体</a> <a data-lang="zh-cn">简体中文</a>
</div> </div>
<ul class="nav navbar-nav navbar-left"> <ul class="nav navbar-nav navbar-left">

View File

@ -9,18 +9,17 @@
<p> <p>
Knowledge, Blog, Sharing, Cooperation... all in leanote Knowledge, Blog, Sharing, Cooperation... all in leanote
</p> </p>
<div> <div>
<a class="btn btn-primary" href="https://github.com/leanote/leanote">{{msg . "fork github"}}</a> <a class="btn btn-primary" href="https://github.com/leanote/leanote">{{msg . "fork github"}}</a>
&nbsp; &nbsp;
&nbsp; &nbsp;
<a class="btn btn-default" href="/demo">{{msg . "try"}}</a> <a class="btn btn-default" href="/demo">{{msg . "try"}}</a>
&nbsp;
&nbsp;
<a class="btn btn-default" href="/login">{{msg . "login"}}</a>
{{if .openRegister}} {{if .openRegister}}
&nbsp; &nbsp;
&nbsp; &nbsp;
OR
&nbsp;
&nbsp;
<a class="btn btn-default" href="/register">{{msg . "register"}}</a> <a class="btn btn-default" href="/register">{{msg . "register"}}</a>
{{end}} {{end}}
</div> </div>

View File

@ -13,12 +13,12 @@
&nbsp; &nbsp;
&nbsp; &nbsp;
<a class="btn btn-default" href="/demo">{{msg . "try"}}</a> <a class="btn btn-default" href="/demo">{{msg . "try"}}</a>
&nbsp;
&nbsp;
<a class="btn btn-default" href="/login">{{msg . "login"}}</a>
{{if .openRegister}} {{if .openRegister}}
&nbsp; &nbsp;
&nbsp; &nbsp;
OR
&nbsp;
&nbsp;
<a class="btn btn-default" href="/register">{{msg . "register"}}</a> <a class="btn btn-default" href="/register">{{msg . "register"}}</a>
{{end}} {{end}}
</div> </div>

View File

@ -9,7 +9,7 @@ site.url=http://localhost:9000 # or http://x.com:8080, http://www.xx.com:9000
# mongdb # mongdb
db.host=localhost db.host=localhost
db.port=27017 db.port=27017
db.dbname=leanote8 # required db.dbname=leanote # required
db.username= # if not exists, please leave it blank db.username= # if not exists, please leave it blank
db.password= # if not exists, please leave it blank db.password= # if not exists, please leave it blank
# or you can set the mongdb url for more complex needs the format is: # or you can set the mongdb url for more complex needs the format is:
@ -17,7 +17,7 @@ db.password= # if not exists, please leave it blank
# db.url=mongodb://root:root123@localhost:27017/leanote # db.url=mongodb://root:root123@localhost:27017/leanote
# You Must Change It !! About Security!! # You Must Change It !! About Security!!
app.secret=V85ZzBeTnzpsHyjQX4zukbQ8qqtju9y2aDM55VWxAH9Qop19poekx3xkcDVvrD0y app.secret=V85ZzBeTnzpsHyjQX4zukbQaDM55VWxAH9Qop19poekx3xkcDVvrD0y
#-------------------------------- #--------------------------------
# revel config # revel config

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.albums" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.attachs" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.blog_comments" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.blog_likes" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.blog_singles" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.configs" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.email_logs" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.files" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.find_pwds" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.group_users" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.groups" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.has_share_notes" }, { "v" : 1, "unique" : true, "key" : { "UserId" : 1, "ToUserId" : 1 }, "name" : "UserId_1_ToUserId_1", "ns" : "leanote7.has_share_notes" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.leanote.ShareNotes" }, { "v" : 1, "unique" : true, "key" : { "UserId" : 1, "ToUserId" : 1, "NoteId" : 1 }, "name" : "UserId_1_ToUserId_1_NoteId_1", "ns" : "leanote7.leanote.ShareNotes" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.leanote.has_share_notes" }, { "v" : 1, "unique" : true, "key" : { "UserId" : 1, "ToUserId" : 1 }, "name" : "UserId_1_ToUserId_1", "ns" : "leanote7.leanote.has_share_notes" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.note_content_histories" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.note_contents" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.note_images" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.note_tags" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.notebooks" }, { "v" : 1, "key" : { "UserId" : 1 }, "name" : "UserId_1", "ns" : "leanote7.notebooks" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.notes" }, { "v" : 1, "key" : { "UserId" : 1 }, "name" : "UserId_1", "ns" : "leanote7.notes" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.reports" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.sessions" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.share_notebooks" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.share_notes" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.suggestions" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.tag_count" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.tags" }, { "v" : 1, "key" : { "UserId" : 1 }, "name" : "UserId_1", "ns" : "leanote7.tags" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.themes" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.tokens" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.user_blogs" } ] }

View File

@ -1 +0,0 @@
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "leanote7.users" } ] }

View File

@ -108,34 +108,17 @@ var commentNum = +"{{$.post.CommentNum}}";
markdown markdown
调用markdown来解析得到html 调用markdown来解析得到html
--> -->
{{if $.post.IsMarkdown }} {{if $.post.IsMarkdown }}
<script src="/public/mdeditor/editor/pagedown/Markdown.Converter.js"></script> <script src="/public/libs/md2html/md2html.js"></script>
<script src="/public/mdeditor/editor/pagedown/Markdown.Sanitizer.js"></script>
<script src="/public/mdeditor/editor/pagedown/Markdown.Editor.js"></script>
<script src="/public/mdeditor/editor/pagedown/local/Markdown.local.zh.js"></script>
<script src="/public/mdeditor/editor/Markdown.Extra.js"></script>
<!--mathjax-->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ["\\(","\\)"]], processEscapes: true }, messageStyle: "none"});
</script>
<script src="/public/mdeditor/editor/mathJax.js"></script>
<script src="/public/libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>
<script> <script>
var content = $.trim($("#markdownContent textarea").val()); var content = $.trim($("#markdownContent textarea").val());
var converter = Markdown.getSanitizingConverter(); md2Html(content, $("#content"), function(html) {
Markdown.Extra.init(converter, {extensions: ["tables", "fenced_code_gfm", "def_list"]}); $("pre").addClass("prettyprint linenums");
var html = converter.makeHtml(content); prettyPrint();
$("#content").html(html); initNav();
$("pre").addClass("prettyprint linenums"); weixin();
prettyPrint(); });
MathJax.Hub.Queue(["Typeset",MathJax.Hub,"wmd-preview"]);
initNav();
weixin();
</script> </script>
<!-- 不是markdown --> <!-- 不是markdown -->
{{else}} {{else}}
<script> <script>

View File

@ -530,3 +530,8 @@ table tr:nth-child(2n) {
border-collapse: collapse; border-collapse: collapse;
padding: 6px 13px; padding: 6px 13px;
} }
.desc *, #content * {
word-wrap: break-word;
}

View File

@ -107,35 +107,17 @@ var commentNum = +"{{$.post.CommentNum}}";
<!-- <!--
markdown markdown
调用markdown来解析得到html 调用markdown来解析得到html
--> -->{{if $.post.IsMarkdown }}
<script src="/public/libs/md2html/md2html.js"></script>
{{if $.post.IsMarkdown }}
<script src="/public/mdeditor/editor/pagedown/Markdown.Converter.js"></script>
<script src="/public/mdeditor/editor/pagedown/Markdown.Sanitizer.js"></script>
<script src="/public/mdeditor/editor/pagedown/Markdown.Editor.js"></script>
<script src="/public/mdeditor/editor/pagedown/local/Markdown.local.zh.js"></script>
<script src="/public/mdeditor/editor/Markdown.Extra.js"></script>
<!--mathjax-->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ["\\(","\\)"]], processEscapes: true }, messageStyle: "none"});
</script>
<script src="/public/mdeditor/editor/mathJax.js"></script>
<script src="/public/libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>
<script> <script>
var content = $.trim($("#markdownContent textarea").val()); var content = $.trim($("#markdownContent textarea").val());
var converter = Markdown.getSanitizingConverter(); md2Html(content, $("#content"), function(html) {
Markdown.Extra.init(converter, {extensions: ["tables", "fenced_code_gfm", "def_list"]}); $("pre").addClass("prettyprint linenums");
var html = converter.makeHtml(content); prettyPrint();
$("#content").html(html); initNav();
$("pre").addClass("prettyprint linenums"); weixin();
prettyPrint(); });
MathJax.Hub.Queue(["Typeset",MathJax.Hub,"wmd-preview"]);
initNav();
weixin();
</script> </script>
<!-- 不是markdown --> <!-- 不是markdown -->
{{else}} {{else}}
<script> <script>

View File

@ -541,3 +541,6 @@ table tr:nth-child(2n) {
border-collapse: collapse; border-collapse: collapse;
padding: 6px 13px; padding: 6px 13px;
} }
.desc *, #content * {
word-wrap: break-word;
}

View File

@ -108,34 +108,17 @@ var commentNum = +"{{$.post.CommentNum}}";
markdown markdown
调用markdown来解析得到html 调用markdown来解析得到html
--> -->
{{if $.post.IsMarkdown }} {{if $.post.IsMarkdown }}
<script src="/public/mdeditor/editor/pagedown/Markdown.Converter.js"></script> <script src="/public/libs/md2html/md2html.js"></script>
<script src="/public/mdeditor/editor/pagedown/Markdown.Sanitizer.js"></script>
<script src="/public/mdeditor/editor/pagedown/Markdown.Editor.js"></script>
<script src="/public/mdeditor/editor/pagedown/local/Markdown.local.zh.js"></script>
<script src="/public/mdeditor/editor/Markdown.Extra.js"></script>
<!--mathjax-->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ["\\(","\\)"]], processEscapes: true }, messageStyle: "none"});
</script>
<script src="/public/mdeditor/editor/mathJax.js"></script>
<script src="/public/libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>
<script> <script>
var content = $.trim($("#markdownContent textarea").val()); var content = $.trim($("#markdownContent textarea").val());
var converter = Markdown.getSanitizingConverter(); md2Html(content, $("#content"), function(html) {
Markdown.Extra.init(converter, {extensions: ["tables", "fenced_code_gfm", "def_list"]}); $("pre").addClass("prettyprint linenums");
var html = converter.makeHtml(content); prettyPrint();
$("#content").html(html); initNav();
$("pre").addClass("prettyprint linenums"); weixin();
prettyPrint(); });
MathJax.Hub.Queue(["Typeset",MathJax.Hub,"wmd-preview"]);
initNav();
weixin();
</script> </script>
<!-- 不是markdown --> <!-- 不是markdown -->
{{else}} {{else}}
<script> <script>

View File

@ -580,3 +580,6 @@ table tr:nth-child(2n) {
border-collapse: collapse; border-collapse: collapse;
padding: 6px 13px; padding: 6px 13px;
} }
.desc *, #content * {
word-wrap: break-word;
}