diff --git a/README.md b/README.md index 51dabb8..adce232 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,12 @@ The mongodb data is in `[PATH_TO_LEANOTE]/mongodb_backup/leanote_install_data` $> mongorestore -h localhost -d leanote --directoryperdb PATH_TO_LEANOTE/mongodb_backup/leanote_install_data ``` -The initial database contains two users: +The initial database contains three users: ``` user1 username: leanote, password: abc123 user2 username: admin, password: abc123 +user3 username: demo@leanote.com, password: demo@leanote.com (this user is for demo) ``` ### 3.4. Configuration @@ -147,11 +148,12 @@ MongodbDB初始数据在 `[PATH_TO_LEANOTE]/mongodb_backup/leanote_install_data` $> mongorestore -h localhost -d leanote --directoryperdb PATH_TO_LEANOTE/mongodb_backup/leanote_install_data ``` -初始数据包含两个用户: +初始数据包含三个用户: ``` user1 username: leanote, password: abc123 user2 username: admin, password: abc123 +user3 username: demo@leanote.com, password: demo@leanote.com (为体验使用) ``` ### 3.4. 配置 diff --git a/bin/leanote-mac2 b/bin/leanote-mac2 new file mode 100755 index 0000000..a36b20c Binary files /dev/null and b/bin/leanote-mac2 differ diff --git a/bin/release.sh b/bin/release.sh index 4b96d5d..efc8db9 100644 --- a/bin/release.sh +++ b/bin/release.sh @@ -37,6 +37,11 @@ cp -r ./messages ./public ./mongodb_backup $tmp/leanote/ # delete some files rm -r $tmp/leanote/public/tinymce/classes +rm -r $tmp/leanote/public/upload +mkdir $tmp/leanote/public/upload +rm -r $tmp/leanote/public/.codekit-cache +rm $tmp/leanote/public/.DS_Store +rm $tmp/leanote/public/config.codekit # make link cd $tmp/leanote/bin diff --git a/mongodb_backup/leanote_install_data/files.bson b/mongodb_backup/leanote_install_data/files.bson new file mode 100644 index 0000000..b311785 Binary files /dev/null and b/mongodb_backup/leanote_install_data/files.bson differ diff --git a/mongodb_backup/leanote_install_data/files.metadata.json b/mongodb_backup/leanote_install_data/files.metadata.json new file mode 100644 index 0000000..b18f019 --- /dev/null +++ b/mongodb_backup/leanote_install_data/files.metadata.json @@ -0,0 +1 @@ +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.files", "name" : "_id_" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/has_share_notes.bson b/mongodb_backup/leanote_install_data/has_share_notes.bson index 87417a7..472369c 100644 Binary files a/mongodb_backup/leanote_install_data/has_share_notes.bson and b/mongodb_backup/leanote_install_data/has_share_notes.bson differ diff --git a/mongodb_backup/leanote_install_data/has_share_notes.metadata.json b/mongodb_backup/leanote_install_data/has_share_notes.metadata.json index 1a0c071..6e75e5c 100644 --- a/mongodb_backup/leanote_install_data/has_share_notes.metadata.json +++ b/mongodb_backup/leanote_install_data/has_share_notes.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.has_share_notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1, "ToUserId" : 1 }, "unique" : true, "ns" : "leanote_public.has_share_notes", "name" : "UserId_1_ToUserId_1" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.has_share_notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1, "ToUserId" : 1 }, "unique" : true, "ns" : "leanote_public_3.has_share_notes", "name" : "UserId_1_ToUserId_1" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/note_content_histories.bson b/mongodb_backup/leanote_install_data/note_content_histories.bson index f23d81a..3b75602 100644 Binary files a/mongodb_backup/leanote_install_data/note_content_histories.bson and b/mongodb_backup/leanote_install_data/note_content_histories.bson differ diff --git a/mongodb_backup/leanote_install_data/note_content_histories.metadata.json b/mongodb_backup/leanote_install_data/note_content_histories.metadata.json index 0d7035d..29c1c82 100644 --- a/mongodb_backup/leanote_install_data/note_content_histories.metadata.json +++ b/mongodb_backup/leanote_install_data/note_content_histories.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.note_content_histories", "name" : "_id_" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.note_content_histories", "name" : "_id_" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/note_contents.bson b/mongodb_backup/leanote_install_data/note_contents.bson index 81a60a4..e8a1830 100644 Binary files a/mongodb_backup/leanote_install_data/note_contents.bson and b/mongodb_backup/leanote_install_data/note_contents.bson differ diff --git a/mongodb_backup/leanote_install_data/note_contents.metadata.json b/mongodb_backup/leanote_install_data/note_contents.metadata.json index 76f46c2..9fcd8f6 100644 --- a/mongodb_backup/leanote_install_data/note_contents.metadata.json +++ b/mongodb_backup/leanote_install_data/note_contents.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.note_contents", "name" : "_id_" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.note_contents", "name" : "_id_" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/notebooks.bson b/mongodb_backup/leanote_install_data/notebooks.bson index 961ddb2..54e73be 100644 Binary files a/mongodb_backup/leanote_install_data/notebooks.bson and b/mongodb_backup/leanote_install_data/notebooks.bson differ diff --git a/mongodb_backup/leanote_install_data/notebooks.metadata.json b/mongodb_backup/leanote_install_data/notebooks.metadata.json index 36e5787..dabb006 100644 --- a/mongodb_backup/leanote_install_data/notebooks.metadata.json +++ b/mongodb_backup/leanote_install_data/notebooks.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.notebooks", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public.notebooks", "name" : "UserId_1" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.notebooks", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public_3.notebooks", "name" : "UserId_1" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/notes.bson b/mongodb_backup/leanote_install_data/notes.bson index 5f4e5dd..fe29168 100644 Binary files a/mongodb_backup/leanote_install_data/notes.bson and b/mongodb_backup/leanote_install_data/notes.bson differ diff --git a/mongodb_backup/leanote_install_data/notes.metadata.json b/mongodb_backup/leanote_install_data/notes.metadata.json index e8aa4f3..5c7dc68 100644 --- a/mongodb_backup/leanote_install_data/notes.metadata.json +++ b/mongodb_backup/leanote_install_data/notes.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public.notes", "name" : "UserId_1" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public_3.notes", "name" : "UserId_1" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/share_notebooks.bson b/mongodb_backup/leanote_install_data/share_notebooks.bson index 21a1124..baf4a8f 100644 Binary files a/mongodb_backup/leanote_install_data/share_notebooks.bson and b/mongodb_backup/leanote_install_data/share_notebooks.bson differ diff --git a/mongodb_backup/leanote_install_data/share_notebooks.metadata.json b/mongodb_backup/leanote_install_data/share_notebooks.metadata.json index 59ba7b8..d9c92fc 100644 --- a/mongodb_backup/leanote_install_data/share_notebooks.metadata.json +++ b/mongodb_backup/leanote_install_data/share_notebooks.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.share_notebooks", "name" : "_id_" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.share_notebooks", "name" : "_id_" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/share_notes.bson b/mongodb_backup/leanote_install_data/share_notes.bson index 5e549f8..d17d360 100644 Binary files a/mongodb_backup/leanote_install_data/share_notes.bson and b/mongodb_backup/leanote_install_data/share_notes.bson differ diff --git a/mongodb_backup/leanote_install_data/share_notes.metadata.json b/mongodb_backup/leanote_install_data/share_notes.metadata.json index 8d224ab..68e637f 100644 --- a/mongodb_backup/leanote_install_data/share_notes.metadata.json +++ b/mongodb_backup/leanote_install_data/share_notes.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.share_notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1, "ToUserId" : 1, "NoteId" : 1 }, "unique" : true, "ns" : "leanote_public.share_notes", "name" : "UserId_1_ToUserId_1_NoteId_1" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.share_notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1, "ToUserId" : 1, "NoteId" : 1 }, "unique" : true, "ns" : "leanote_public_3.share_notes", "name" : "UserId_1_ToUserId_1_NoteId_1" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/system.indexes.bson b/mongodb_backup/leanote_install_data/system.indexes.bson index 542137a..c89de33 100644 Binary files a/mongodb_backup/leanote_install_data/system.indexes.bson and b/mongodb_backup/leanote_install_data/system.indexes.bson differ diff --git a/mongodb_backup/leanote_install_data/system.users.metadata.json b/mongodb_backup/leanote_install_data/system.users.metadata.json index 0e8679a..54a2869 100644 --- a/mongodb_backup/leanote_install_data/system.users.metadata.json +++ b/mongodb_backup/leanote_install_data/system.users.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.system.users", "name" : "_id_" }, { "v" : 1, "key" : { "user" : 1, "userSource" : 1 }, "unique" : true, "ns" : "leanote_public.system.users", "name" : "user_1_userSource_1" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.system.users", "name" : "_id_" }, { "v" : 1, "key" : { "user" : 1, "userSource" : 1 }, "unique" : true, "ns" : "leanote_public_3.system.users", "name" : "user_1_userSource_1" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/tags.metadata.json b/mongodb_backup/leanote_install_data/tags.metadata.json index b99c16b..d637332 100644 --- a/mongodb_backup/leanote_install_data/tags.metadata.json +++ b/mongodb_backup/leanote_install_data/tags.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.tags", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public.tags", "name" : "UserId_1" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.tags", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public_3.tags", "name" : "UserId_1" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/tokens.bson b/mongodb_backup/leanote_install_data/tokens.bson index e164514..3e70bbd 100644 Binary files a/mongodb_backup/leanote_install_data/tokens.bson and b/mongodb_backup/leanote_install_data/tokens.bson differ diff --git a/mongodb_backup/leanote_install_data/tokens.metadata.json b/mongodb_backup/leanote_install_data/tokens.metadata.json index e3e10b9..e7947c7 100644 --- a/mongodb_backup/leanote_install_data/tokens.metadata.json +++ b/mongodb_backup/leanote_install_data/tokens.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.tokens", "name" : "_id_" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.tokens", "name" : "_id_" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/user_blogs.bson b/mongodb_backup/leanote_install_data/user_blogs.bson index 35e56e5..0ff1552 100644 Binary files a/mongodb_backup/leanote_install_data/user_blogs.bson and b/mongodb_backup/leanote_install_data/user_blogs.bson differ diff --git a/mongodb_backup/leanote_install_data/user_blogs.metadata.json b/mongodb_backup/leanote_install_data/user_blogs.metadata.json index e8e4bc2..58e3996 100644 --- a/mongodb_backup/leanote_install_data/user_blogs.metadata.json +++ b/mongodb_backup/leanote_install_data/user_blogs.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.user_blogs", "name" : "_id_" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.user_blogs", "name" : "_id_" } ] } \ No newline at end of file diff --git a/mongodb_backup/leanote_install_data/users.bson b/mongodb_backup/leanote_install_data/users.bson index d623e13..fa1399e 100644 Binary files a/mongodb_backup/leanote_install_data/users.bson and b/mongodb_backup/leanote_install_data/users.bson differ diff --git a/mongodb_backup/leanote_install_data/users.metadata.json b/mongodb_backup/leanote_install_data/users.metadata.json index 50d6dcf..ac86660 100644 --- a/mongodb_backup/leanote_install_data/users.metadata.json +++ b/mongodb_backup/leanote_install_data/users.metadata.json @@ -1 +1 @@ -{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public.users", "name" : "_id_" } ] } \ No newline at end of file +{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.users", "name" : "_id_" } ] } \ No newline at end of file diff --git a/public/images/logo/README b/public/images/logo/README new file mode 100644 index 0000000..e58a1b2 --- /dev/null +++ b/public/images/logo/README @@ -0,0 +1 @@ +leanote logo is designed by jaguarWang(https://github.com/jaguarWang) \ No newline at end of file