|<\/div>| |
|<\/pre>||<\/code>||<\/span>)/g,
8 | ''
9 | );
10 | }
11 |
12 | function array_unique(arr) {
13 | var a = [], o = {}, i, v, len = arr.length;
14 |
15 | if (len < 2) {
16 | return arr;
17 | }
18 |
19 | for (i = len - 1; i >= 0; i--) {
20 | v = arr[i];
21 | if (o[v] !== 1) {
22 | a.unshift(v);
23 | o[v] = 1;
24 | }
25 | }
26 | return a;
27 | }
28 |
29 | function array_remove_all(arr, value) {
30 | var a = [];
31 | for (var i = 0; i < arr.length; i++) {
32 | if (arr[i] != value) {
33 | a.push(arr[i]);
34 | }
35 | }
36 | return a;
37 | }
38 |
39 | function validateEmail(email) {
40 | var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
41 | return re.test(email);
42 | }
43 |
44 |
45 | function getCookie(name) {
46 | var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
47 | return r ? r[1] : undefined;
48 | }
49 |
50 | function unicode_to_utf8(str) {
51 | return unescape(str.replace(/\\u/gi, '%u'));
52 | };
53 |
54 | function font_number(str) {
55 | var regex = /\w+/g;
56 | if (!!str) {
57 | var words = str.match(regex);
58 | for(var w in words) {
59 | if (w.length > 50) {
60 | return str.length;
61 | }
62 | }
63 |
64 | str = str.replace(regex, "");
65 |
66 | var _words_cnt = 0;
67 | if(words){
68 | _words_cnt = words.length;
69 | }
70 | return _words_cnt + str.length;
71 | }
72 | return 0;
73 | }
74 |
75 | // http://blog.csdn.net/coder_andy/article/details/6202231.
76 | jQuery.fn.extend({
77 | getCurPos: function() {
78 | var e = $(this).get(0);
79 | e.focus();
80 | if (e.selectionStart) {
81 | //FF
82 | return e.selectionStart;
83 | }
84 |
85 | if (document.selection) {
86 | //IE
87 | var r = document.selection.createRange();
88 | if (r == null) {
89 | return e.value.length;
90 | }
91 |
92 | var re = e.createTextRange();
93 | var rc = re.duplicate();
94 |
95 | re.moveToBookmark(r.getBookmark());
96 | rc.setEndPoint('EndToStart', re);
97 | return rc.text.length;
98 | }
99 | return e.value.length;
100 | },
101 | setCurPos: function(pos) {
102 | var e = $(this).get(0);
103 | e.focus();
104 |
105 | if (e.setSelectionRange) {
106 | e.setSelectionRange(pos, pos);
107 | } else if (e.createTextRange) {
108 | var range = e.createTextRange();
109 |
110 | range.collapse(true);
111 | range.moveEnd('character', pos);
112 | range.moveStart('character', pos);
113 | range.select();
114 | }
115 | }
116 | });
117 |
--------------------------------------------------------------------------------
/static/app/chat/css/chat.css:
--------------------------------------------------------------------------------
1 | .chat-panel{
2 | width: 500px;
3 | min-height: 500px;
4 | }
5 | .chat-panel .header{
6 | background: url(/static/app/chat/img/chat-header-bg.png);
7 | padding: 8px;
8 | border-bottom: 1px solid #cccccc;
9 | }
10 | .chat-panel .header .minimize-panel{
11 | position: absolute;
12 | top: 8px;
13 | right: 28px;
14 | display: block;
15 | color: #666;
16 | width: 14px;
17 | height: 14px;
18 | z-index: 2;
19 | }
20 | .chat-panel .header .close-panel{
21 | position: absolute;
22 | top: 8px;
23 | right: 8px;
24 | display: block;
25 | color: #666;
26 | width: 14px;
27 | height: 14px;
28 | z-index: 2;
29 | }
30 | .chat-panel .body{
31 | padding: 10px 8px;
32 | height: 400px;
33 | overflow-y: scroll;
34 | }
35 | .chat-panel .body .chat-label{
36 | text-align: center;
37 | color: gray;
38 | }
39 | .chat-panel .body table th,
40 | .chat-panel .body table td{
41 | padding: 5px;
42 | }
43 | .chat-panel .chat-input-field{
44 | min-width: 100%;
45 | max-width: 100%;
46 | height: 80px;
47 | border-width: 0px;
48 | border-top: 1px solid #eee;
49 | }
50 | .message .left-part,
51 | .message .right-part {
52 | width: 50px;
53 | }
54 | .message .middle-part {
55 | max-width: 384px;
56 | min-width: 384px;
57 | }
58 |
--------------------------------------------------------------------------------
/static/app/chat/img/chat-header-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/chat/img/chat-header-bg.png
--------------------------------------------------------------------------------
/static/app/chat/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/chat/img/spinner.gif
--------------------------------------------------------------------------------
/static/app/community/css/topic-new.css:
--------------------------------------------------------------------------------
1 | .wysiwyg-editor {
2 | min-height: 330px;
3 | }
4 | .text-wrap {
5 | width: 100%!important;
6 | }
7 | #question-title {
8 | width: 686px;
9 | }
10 | #node-list-input {
11 | width: 100%;
12 | }
13 | .block .text-content {
14 | padding: 40px!important;
15 | }
--------------------------------------------------------------------------------
/static/app/community/css/topic-one.css:
--------------------------------------------------------------------------------
1 | .topic-comment-list{
2 | margin-top: 40px;
3 | padding: 0 15px;
4 | }
5 | .topic-comment-list .topic-comment-item{
6 | padding: 10px 0;
7 | }
8 | .topic-comment-list .topic-comment-item:first-child{
9 | padding-top: 15px;
10 | }
11 | .topic-comment-list .topic-comment-item:last-child{
12 | padding-bottom: 15px;
13 | border-bottom-width: 0
14 | }
15 | .topic-comment-list .topic-comment-item .topic-author-avatar{
16 | width: 40px
17 | }
18 | .topic-comment-list .topic-comment-item .topic-main{
19 | width: 605px
20 | }
21 | .topic-comment-list .topic-comment-item .topic-publish-time{
22 | margin-left: 5px
23 | }
24 | .topic-comment-list .topic-comment-item .topic-main .topic-comment-action{
25 | display: none;
26 | margin-right: 10px
27 | }
28 | .topic-comment-list .topic-comment-item .topic-main .topic-comment-content{
29 | padding: 5px 30px 0 0
30 | }
31 |
32 | .topic{
33 | padding: 15px;
34 | }
35 | .topic .topic-title{
36 | font-size: 18px;
37 | margin-top: 10px;
38 | }
39 | .topic .topic-content{
40 | margin-top: 15px;
41 | /*font-size: 14px!important;*/
42 | }
43 | .topic .topic-info{
44 | margin-top: 20px
45 | }
46 |
47 | .submit-comment-part{
48 | margin-top: 10px
49 | }
50 | .submit-comment-part .anonymous-checkbox{
51 | width: 200px
52 | }
53 |
54 | .similar-topic-list{
55 | min-height: 200px;
56 | }
57 | .similar-topic-list li{
58 | border-bottom: 1px solid #eeeeee;
59 | padding: 5px 0;
60 | }
61 | .similar-topic-list li:last-child{
62 | border-bottom-width: 0;
63 | }
64 | .similar-topic-list tr td:first-child {
65 | min-width: 40px;
66 | max-width: 40px;
67 | }
68 |
69 | .recommend-topic-list{
70 | padding: 0 10px!important
71 | }
72 | .no-recommend-topic-list{
73 | min-height: 150px;
74 | }
75 | .no-recommend-topic-list .no-recommend-topic-list-inner{
76 | padding-top: 50px;
77 | }
78 |
79 |
80 | .like-list-part{
81 | margin-bottom: 15px
82 | }
83 | .like-list{
84 | min-height: 100px;
85 | padding: 5px
86 | }
87 | .like-list table th,
88 | .like-list table td{
89 | padding: 5px 0;
90 | }
91 | .like-list-none{
92 | text-align: center;
93 | margin-top: 20px
94 | }
95 |
--------------------------------------------------------------------------------
/static/app/community/js/community.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | 'use strict';
3 |
4 | var Controller = {
5 | getRecommendFriends: function() {
6 | $.ajax({
7 | type: "post",
8 | url: "/profile/friend/recommend",
9 | data: {
10 | _xsrf: getCookie("_xsrf")
11 | },
12 | dataType: "json",
13 | success: function(data, textStatus, jqXHR) {
14 | $("#recommend-friend-block").replaceWith(data.html);
15 | },
16 | error: function(jqXHR, textStatus, errorThrown) {
17 | Messenger().post({
18 | id: 0,
19 | message: "加载失败!",
20 | showCloseButton: true,
21 | type: "error"
22 | })
23 | }
24 | });
25 | },
26 | fetchReward: function() {
27 | $.ajax({
28 | type: "post",
29 | url: "/reward/login/fetch",
30 | data: {
31 | _xsrf: getCookie("_xsrf")
32 | },
33 | dataType: "json",
34 | success: function(data, textStatus, jqXHR) {
35 | if(data.error){
36 | Messenger().post({
37 | id: 0,
38 | message: data.error,
39 | showCloseButton: true,
40 | type: "error"
41 | })
42 | }
43 | else{
44 | $("#fetch-login-reward-label").html(sprintf(
45 | '连续 %s 天',
46 | data.continuous_login_days
47 | ));
48 | $("#wealth-quantity-label").html(data.wealth);
49 | }
50 | },
51 | error: function(jqXHR, textStatus, errorThrown) {
52 | Messenger().post({
53 | id: 0,
54 | message: "领取失败!",
55 | showCloseButton: true,
56 | type: "error"
57 | })
58 | }
59 | });
60 | }
61 | };
62 |
63 | $(document).ready(function() {
64 | $("#friend-recommend-link").live(
65 | "click", Controller.getRecommendFriends
66 | );
67 | $("#fetch-login-reward-link").click(Controller.fetchReward);
68 | });
69 | }(jQuery));
70 |
--------------------------------------------------------------------------------
/static/app/community/js/community_base.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | 'use strict';
3 |
4 | var Controller = {
5 | like: function(event) {
6 | var _this = $(this);
7 | var topic_id = _this.data("topic-id");
8 |
9 | $.ajax({
10 | url: '/community/topic/like',
11 | type: 'POST',
12 | dataType: 'json',
13 | data: {
14 | topic_id: topic_id,
15 | _xsrf: getCookie("_xsrf"),
16 | },
17 | success: function(data, textStatus, jqXHR){
18 | if(data.error){
19 | Messenger().post({
20 | id: 0,
21 | message: data.error,
22 | showCloseButton: true,
23 | type: "error"
24 | })
25 | }
26 | else{
27 | var t = '\
28 | 赞%s\
30 | ';
31 | var html = sprintf(t, data.like_times)
32 | _this.replaceWith(html);
33 | }
34 | },
35 | error: function(jqXHR , textStatus , errorThrown){
36 | Messenger().post({
37 | id: 0,
38 | message: "点赞失败!",
39 | showCloseButton: true,
40 | type: "error"
41 | })
42 | }
43 | });
44 | }
45 | };
46 |
47 | $(document).ready(function(){
48 | $(".topic-image").fancybox({
49 | padding: 5,
50 | maxWidth: 1000,
51 | prevEffect: 'none',
52 | nextEffect: 'none',
53 | helpers: {
54 | thumbs: {
55 | width: 50,
56 | height: 50
57 | }
58 | }
59 | });
60 |
61 | $(".topic-like-link").live("click", Controller.like);
62 | });
63 | }(jQuery));
64 |
--------------------------------------------------------------------------------
/static/app/home/css/friends.css:
--------------------------------------------------------------------------------
1 | .friends-list{
2 | padding: 0 10px
3 | }
4 | .friends-list .flat-block{
5 | min-height: 640px
6 | }
7 | .friends-list .friends-list-inner{
8 | padding: 8px
9 | }
10 | .friends-list .friends-list-inner .action-list{
11 | display: none;
12 | }
13 | .friends-list .friends-list-inner .action-list li{
14 | display: inline-block;
15 | padding: 0 5px
16 | }
17 | .no-friends{
18 | text-align: center;
19 | margin-top: 20%
20 | }
21 |
--------------------------------------------------------------------------------
/static/app/home/css/home.css:
--------------------------------------------------------------------------------
1 | .sidebar-left{
2 | float: left;
3 | width: 180px;
4 | }
5 | .sidebar-left .summary-numbers{
6 | min-height: 130px;
7 | }
8 | .sidebar-left .summary-numbers .info{
9 | margin-top: 10px;
10 | }
11 | .sidebar-left .summary-numbers .info .number{
12 | font-size: 16px;
13 | }
14 | .sidebar-left .summary-numbers .info table tr td{
15 | border-right: 1px solid #eeeeee;
16 | }
17 | .sidebar-left .summary-numbers .info table tr td:last-child{
18 | border-right-width: 0;
19 | }
20 |
21 | .sidebar-left .home-navbar{
22 | margin-top: 10px;
23 | min-height: 500px;
24 | }
25 | .sidebar-left .home-navbar .home-navbar-item{
26 | padding: 8px 10px 8px 15px;
27 | border-bottom: 1px solid #EEE;
28 | cursor: pointer;
29 | }
30 | .sidebar-left .home-navbar .active{
31 | border-left: 3px solid #DD4B39;
32 | }
33 | .sidebar-left .home-navbar .message-collapse{
34 | font-size: 12px;
35 | padding: 5px 0 0 10px
36 | }
37 | .sidebar-left .home-navbar .message-collapse li:first-child{
38 | border-top: 1px solid #EEE;
39 | padding-top: 5px;
40 | }
41 |
42 | .sidebar-right{
43 | float: right;;
44 | width: 180px;
45 | }
46 |
47 | .main-content{
48 | width: 600px;
49 | margin: 0 180px;
50 | }
51 | .main-content .main-content-inner{
52 | margin:0 10px;
53 | }
54 |
55 | .recommand-friend-list-part{
56 | margin-bottom: 15px
57 | }
58 | .recommand-friend-list{
59 | padding: 8px
60 | }
61 | .recommand-friend-list table tr th,
62 | .recommand-friend-list table tr td{
63 | padding: 5px 0;
64 | border-bottom: 1px dashed #ccc;
65 | }
66 | .recommand-friend-list table tr:first-child th,
67 | .recommand-friend-list table tr:first-child td{
68 | padding-top: 0;
69 | }
70 | .recommand-friend-list table tr:last-child th,
71 | .recommand-friend-list table tr:last-child td{
72 | padding-bottom: 0;
73 | border-bottom-width: 0
74 | }
75 | .recommand-friend-list img{
76 | width: 40px;
77 | height: 40px;
78 | }
79 | .no-recommand-friend-list{
80 | min-height: 150px;
81 | color: #999999;
82 | text-align: center;
83 | padding-top: 50px;
84 | }
85 |
--------------------------------------------------------------------------------
/static/app/home/css/message.css:
--------------------------------------------------------------------------------
1 | .message-list{
2 | padding: 10px;
3 | min-height: 589px;
4 | }
5 | .message-list .message-list-item td{
6 | padding: 10px 0;
7 | }
8 | .message-list .message-list-item:first-child td{
9 | padding-top: 0;
10 | }
11 | .message-list .message-list-item:last-child td{
12 | border-bottom-width: 0
13 | }
14 | .message-list .message-list-item img{
15 | max-width: 200px
16 | }
17 |
18 | .no-message-list{
19 | min-height: 640px
20 | }
21 | .no-message-list .no-message-list-inner{
22 | padding-top: 160px
23 | }
24 | .load-more-message-part{
25 | margin-top: 10px;
26 | }
27 |
--------------------------------------------------------------------------------
/static/app/home/js/home.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | var Controller = {
5 | recommendFriend: function() {
6 | $.ajax({
7 | type: "post",
8 | url: "/home/friend/recommend",
9 | data: {
10 | _xsrf: getCookie("_xsrf")
11 | },
12 | dataType: "json",
13 | success: function(data, textStatus, jqXHR) {
14 | $("#random-recommend-block").replaceWith(data.html);
15 | },
16 | error: function(jqXHR, textStatus, errorThrown) {}
17 | });
18 | }
19 | };
20 |
21 | $(document).ready(function() {
22 | $(".home-navbar-item").live({
23 | mouseenter: function() {
24 | $($(this).children()[0]).addClass('red-color-force');
25 | },
26 | mouseleave: function() {
27 | $($(this).children()[0]).removeClass('red-color-force');
28 | }
29 | });
30 |
31 | $(".message-collapse li").live({
32 | mouseenter: function() {
33 | $($(this).children()[0]).addClass('red-color-force');
34 | },
35 | mouseleave: function() {
36 | $($(this).children()[0]).removeClass('red-color-force');
37 | }
38 | });
39 |
40 | $(".home-navbar-item").click(function() {
41 | window.location.href=$(this).children()[0].href;
42 | });
43 |
44 | $(".message-collapse li").click(function(e){
45 | window.location.href=$(this).children()[0].href;
46 | return false;
47 | });
48 | $("#friend-recommend-link").live("click", Controller.recommendFriend);
49 | });
50 |
51 | }(jQuery));
52 |
--------------------------------------------------------------------------------
/static/app/home/js/league.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | var Controller = {
5 | removeMember: function() {
6 | var user_id = $(this).data("extra-userid");
7 | $.ajax({
8 | type: "post",
9 | url: "/profile/remove-leauge-member",
10 | data: {
11 | user_id: user_id,
12 | _xsrf: getCookie("_xsrf")
13 | },
14 | dataType: "json",
15 | success: function(data, textStatus, jqXHR) {
16 | $('#member-' + user_id).remove();
17 | if (data.member_number == 0) {
18 | $("#member-list-table").html(
19 | '还没有成员加入\
21 |
'
22 | );
23 | }
24 | }
25 | });
26 | }
27 | };
28 |
29 | $(document).ready(function(){
30 | $(".remove-member-link").live("click", Controller.removeMember);
31 | });
32 | }(jQuery));
33 |
--------------------------------------------------------------------------------
/static/app/profile/css/topic.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-03-07 16:17:26
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-06-02 15:16:56
6 | */
7 |
8 | .topic-list-part{
9 | margin-bottom: 15px;
10 | }
11 | .topic-list{
12 | min-height: 647px;
13 | padding: 10px 15px
14 | }
15 | .topic-list table tr td{
16 | padding: 8px 0;
17 | }
18 | .topic-list table tr:first-child td{
19 | padding-top: 0;
20 | }
21 | .topic-list table tr:last-child td{
22 | padding-bottom: 0;
23 | border-bottom-width: 0;
24 | }
25 | .topic-list .topic-title{
26 |
27 | font-size: 14px;
28 | }
29 | .no-topic-list .no-topic-list-inner{
30 | padding-top: 100px;
31 | }
32 |
33 | .recommend-topic-list-part{
34 | min-height: 200px;
35 | }
36 | .recommend-topic-list{
37 | padding: 10px
38 | }
39 | .recommend-topic-list .recommend-topic-list-item{
40 | padding: 5px 0;
41 | border-bottom: 1px dashed #ccc;
42 | }
43 | .recommend-topic-list .recommend-topic-list-item:first-child{
44 | padding-top: 0;
45 | }
46 | .recommend-topic-list .recommend-topic-list-item:last-child{
47 | padding-bottom: 0;
48 | border-bottom-width: 0
49 | }
50 | .no-recommend-topic-list{
51 | padding-top: 50px;
52 | }
--------------------------------------------------------------------------------
/static/app/profile/js/profile.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/profile/js/profile.js
--------------------------------------------------------------------------------
/static/app/profile/js/topic.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/profile/js/topic.js
--------------------------------------------------------------------------------
/static/app/search/css/search.css:
--------------------------------------------------------------------------------
1 | .tt-dropdown-menu {
2 | width: 300px;
3 | margin: 2px 0;
4 | list-style: none;
5 | background-color: #ffffff;
6 | -webkit-border-radius: 3px;
7 | -moz-border-radius: 3px;
8 | border-radius: 3px;
9 | -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
10 | -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
11 | box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
12 | }
13 | .tt-suggestion {
14 | padding: 8px 10px;
15 | }
16 | .tt-suggestion.tt-cursor {
17 | background: rgba(0,0,0,0.02);
18 | cursor: pointer;
19 | }
20 |
21 | .tt-header{
22 | background: #f6f6f6;
23 | padding: 5px;
24 | border-top: 1px solid #ddd;
25 | border-bottom: 1px solid #ddd;
26 | }
27 | .tt-header-first{
28 | background: #f6f6f6;
29 | padding: 5px;
30 | -webkit-border-radius: 3px 3px 0 0;
31 | -moz-border-radius: 3px 3px 0 0;
32 | border-radius: 3px 3px 0 0;
33 | border-bottom: 1px solid #ddd;
34 | }
35 |
--------------------------------------------------------------------------------
/static/app/search/js/search.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | $(document).ready(function(){
5 | var user = new Bloodhound({
6 | datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
7 | queryTokenizer: Bloodhound.tokenizers.whitespace,
8 | limit: 10,
9 | rateLimitWait: 0,
10 | remote: {
11 | url: "/search?category=user&query=%QUERY"
12 | }
13 | });
14 |
15 | var topic = new Bloodhound({
16 | datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
17 | queryTokenizer: Bloodhound.tokenizers.whitespace,
18 | limit: 10,
19 | rateLimitWait: 0,
20 | remote: {
21 | url: "/search?category=topic&query=%QUERY"
22 | }
23 | });
24 |
25 | var share = new Bloodhound({
26 | datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
27 | queryTokenizer: Bloodhound.tokenizers.whitespace,
28 | limit: 10,
29 | rateLimitWait: 0,
30 | remote: {
31 | url: "/search?category=share&query=%QUERY"
32 | }
33 | });
34 |
35 | user.initialize();
36 | topic.initialize();
37 | share.initialize();
38 |
39 | $('.search-query').typeahead(null, {
40 | name: 'user',
41 | displayKey: 'user',
42 | source: user.ttAdapter(),
43 | templates: {
44 | header: '',
45 | suggestion: Handlebars.compile(
46 | ' \
47 |
{{ name }}\
49 | '
50 | )
51 | }
52 | }, {
53 | name: 'topic',
54 | displayKey: 'topic',
55 | source: topic.ttAdapter(),
56 | templates: {
57 | header: '',
58 | suggestion: Handlebars.compile(
59 | ' {{ title }}\
61 | '
62 | )
63 | }
64 | }, {
65 | name: 'share',
66 | displayKey: 'share',
67 | source: share.ttAdapter(),
68 | templates: {
69 | header: '',
70 | suggestion: Handlebars.compile(
71 | ' \
72 | {{ title }}\
73 | '
74 | )
75 | }
76 | });
77 |
78 | $(".tt-suggestion").live({
79 | mouseenter: function() {
80 | $($(this).children()[0]).addClass('red-color-force');
81 | },
82 | mouseleave: function() {
83 | $($(this).children()[0]).removeClass('red-color-force');
84 | }
85 | });
86 |
87 | $(".tt-suggestion").live("click", function() {
88 | window.location.href=$(this).children()[0].href;
89 | })
90 | });
91 | }(jQuery));
92 |
--------------------------------------------------------------------------------
/static/app/setting/css/setting-avatar.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-03-02 09:49:55
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-03-02 10:38:33
6 | */
7 |
8 | .setting-avatar{
9 | padding: 10px 20px 20px 20px;
10 | min-height: 602px
11 | }
12 | .setting-avatar .setting-avatar-inner{
13 | padding: 50px 0 0 110px;
14 | width: 500px
15 | }
16 | .setting-avatar-left{
17 | width: 350px
18 | }
19 | .setting-avatar-left img{
20 | width: 350px!important;
21 | max-width: none!important
22 | }
23 | .setting-avatar-actions{
24 | margin-top: 30px
25 | }
26 | .setting-avatar-preview{
27 | width:80px;
28 | height:80px;
29 | overflow:hidden;
30 | }
31 | .setting-avatar-preview img{
32 | max-width: none!important
33 | }
--------------------------------------------------------------------------------
/static/app/setting/css/setting-notification.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-05-13 09:06:36
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-05-13 09:06:58
6 | */
7 |
8 | .setting-notification{
9 | padding: 10px 20px 20px 20px;
10 | min-height: 602px
11 | }
12 |
13 | .setting-notification form{
14 | padding: 70px 230px;
15 | width: 500px
16 | }
17 |
--------------------------------------------------------------------------------
/static/app/setting/css/setting-password.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-03-01 17:25:08
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-03-01 17:30:02
6 | */
7 |
8 | input{
9 | width: 310px;
10 | }
11 |
12 | .setting-password{
13 | padding: 10px 20px 20px 20px;
14 | min-height: 602px
15 | }
16 | .setting-password form{
17 | padding: 70px 50px;
18 | width: 500px
19 | }
20 |
--------------------------------------------------------------------------------
/static/app/setting/css/setting-private.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-03-21 09:13:50
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-03-21 12:11:57
6 | */
7 |
8 | .setting-private{
9 | padding: 10px 20px 20px 20px;
10 | min-height: 602px
11 | }
12 |
13 | .setting-private form{
14 | padding: 70px 230px;
15 | width: 500px
16 | }
17 |
--------------------------------------------------------------------------------
/static/app/setting/css/setting-profile-cover.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-03-01 17:59:29
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-03-01 18:05:02
6 | */
7 |
8 | .setting-profile-cover-part{
9 | padding: 10px 20px 20px 20px
10 | }
11 |
12 | .setting-profile-cover-part .form{
13 | padding: 10px 50px
14 | }
15 |
16 | .setting-profile-cover-item{
17 | padding: 5px;
18 | border: 1px solid #cccccc
19 | }
20 |
21 | .setting-profile-cover-selected{
22 | position: relative;
23 | margin-top: -40px;
24 | margin-right: 20px;
25 | }
--------------------------------------------------------------------------------
/static/app/setting/css/setting-profile.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-03-01 16:46:13
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-03-21 12:12:55
6 | */
7 |
8 | input{
9 | width: 310px;
10 | }
11 | textarea{
12 | min-width: 310px;
13 | min-height: 80px;
14 | max-height: 80px;
15 | }
16 | .setting-profile{
17 | padding: 10px 20px 20px 20px;
18 | min-height: 602px;
19 | }
20 | .setting-profile form{
21 | padding: 20px 30px
22 | }
23 |
--------------------------------------------------------------------------------
/static/app/setting/css/setting-theme.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-06-01 12:00:42
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-06-01 12:12:28
6 | */
7 |
8 | .setting-theme{
9 | padding: 10px 20px 20px 20px;
10 | min-height: 602px
11 | }
12 |
13 | .setting-theme form{
14 | padding: 100px 60px;
15 | width: 500px
16 | }
17 |
--------------------------------------------------------------------------------
/static/app/setting/css/setting.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @Author: lime
3 | * @Date: 2014-03-01 08:48:56
4 | * @Last Modified by: lime
5 | * @Last Modified time: 2014-06-01 15:36:22
6 | */
7 | .main-content{
8 | position: relative;
9 | float: right;
10 | width: 780px;
11 | }
12 | .main-content .inner{
13 | padding: 0px 0px 0px 10px;
14 | }
15 | .sidebar{
16 | position: relative;
17 | float: left;
18 | width: 180px;
19 | }
20 | .setting-navbar{
21 | min-height: 570px
22 | }
23 | .setting-navbar li{
24 | font-size: 13px;
25 | padding: 8px 10px 8px 15px;
26 | border-left-width: 3px;
27 | }
28 | .setting-navbar .active{
29 | border-left: 3px solid #D32;
30 | color: #D32!important;
31 | }
32 | .setting-navbar .active a{
33 | color: #D32!important;
34 | }
35 | .select2-container{
36 | margin-right: 10px;
37 | }
--------------------------------------------------------------------------------
/static/app/setting/js/setting-notification.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | var Controller = {
5 | setNotification: function() {
6 | var email_notify_when_offline = $(
7 | "#email-notify-when-offline"
8 | ).get(0).checked;
9 |
10 | $.ajax({
11 | type: "post",
12 | url: "/setting/notification/set",
13 | data: {
14 | email_notify_when_offline: email_notify_when_offline,
15 | _xsrf: getCookie("_xsrf")
16 | },
17 | dataType: "json",
18 | error: function(jqXHR, textStatus, errorThrown) {
19 | Messenger().post({
20 | id: 0,
21 | message: "设置失败!",
22 | showCloseButton: true,
23 | type: "error"
24 | });
25 | }
26 | });
27 | }
28 | };
29 |
30 | $(document).ready(function() {
31 | var elem = $(".switchery");
32 | for (var i = 0; i < elem.size(); i++) {
33 | var checkbox = elem.get(i);
34 | var init = new Switchery(checkbox);
35 | checkbox.onchange = Controller.setNotification;
36 | };
37 | });
38 | }(jQuery));
39 |
--------------------------------------------------------------------------------
/static/app/setting/js/setting-private.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | var Controller = {
5 | setPrivate: function() {
6 | var require_verify_when_add_friend = $(
7 | "#require-verify-when-add-friend").get(0).checked;
8 | var allow_stranger_visiting_profile = $(
9 | "#allow-stranger-visiting-profile").get(0).checked;
10 | var allow_stranger_chat_with_me = $(
11 | "#allow-stranger-chat-with-me").get(0).checked;
12 | var enable_leaving_message = $(
13 | "#enable-leaving-message").get(0).checked;
14 |
15 | $.ajax({
16 | type: "post",
17 | url: "/setting/private/set",
18 | data: {
19 | require_verify_when_add_friend: require_verify_when_add_friend,
20 | allow_stranger_visiting_profile: allow_stranger_visiting_profile,
21 | allow_stranger_chat_with_me: allow_stranger_chat_with_me,
22 | enable_leaving_message: enable_leaving_message,
23 | _xsrf: getCookie("_xsrf")
24 | },
25 | dataType: "json",
26 | error: function() {
27 | Messenger().post({
28 | id: 0,
29 | message: "设置失败!",
30 | showCloseButton: true,
31 | type: "error"
32 | });
33 | }
34 | });
35 | }
36 | };
37 |
38 | $(document).ready(function() {
39 | var elem = $(".switchery");
40 |
41 | for (var i = 0; i < elem.size(); i++) {
42 | var checkbox = elem.get(i);
43 | var init = new Switchery(checkbox);
44 | checkbox.onchange = Controller.setPrivate;
45 | };
46 | });
47 | }(jQuery));
48 |
--------------------------------------------------------------------------------
/static/app/setting/js/setting-profile.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | var Controller = {
5 | saveProfile: function() {
6 | var sex = $.trim($('input[name="sex"]:checked').val());
7 | var province = $.trim($('select[name="province"]').val());
8 | var city = $.trim($('select[name="city"]').val());
9 | var birthday = $.trim($('input[name="birthday"]').val());
10 | var relationship_status = $.trim($("#relationship-status").val());
11 | var phone = $.trim($('input[name="phone"]').val());
12 | var qq = $.trim($('input[name="qq"]').val());
13 | var signature = $.trim($('textarea[name="signature"]').val());
14 |
15 | if(is_null(signature)){
16 | signature = ""
17 | }
18 |
19 | $.ajax({
20 | type: "post",
21 | url: "/setting/profile/set",
22 | data: {
23 | 'sex': sex,
24 | 'province': province,
25 | 'city': city,
26 | 'birthday': birthday,
27 | 'relationship_status': relationship_status,
28 | 'phone': phone,
29 | 'qq': qq,
30 | 'signature': signature,
31 | _xsrf: getCookie("_xsrf")
32 | },
33 | dataType: "json",
34 | success: function(data, textStatus, jqXHR) {
35 | if(data.error){
36 | Messenger().post({
37 | id: 0,
38 | message: data.error,
39 | showCloseButton: true,
40 | type: "error"
41 | });
42 | return;
43 | }
44 | Messenger().post({
45 | id: 0,
46 | message: "保存成功!",
47 | showCloseButton: true,
48 | type: "success"
49 | });
50 | },
51 | error: function(jqXHR, textStatus, errorThrown) {
52 | Messenger().post({
53 | id: 0,
54 | message: "保存失败!",
55 | showCloseButton: true,
56 | type: "error"
57 | });
58 | }
59 | });
60 | }
61 | };
62 |
63 | $(document).ready(function() {
64 | $("input").iCheck({
65 | checkboxClass: 'icheckbox_minimal-red',
66 | radioClass: 'iradio_minimal-red',
67 | });
68 |
69 | $("#relationship-status").select2({
70 | width: "324",
71 | placeholder: "请选择",
72 | });
73 |
74 | $("#save-profile-button").click(Controller.saveProfile);
75 | });
76 | }(jQuery));
77 |
--------------------------------------------------------------------------------
/static/app/setting/js/setting-theme.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | var Controller = {
5 | setTheme: function() {
6 | var theme = $('select[name="theme"]').val();
7 |
8 | $.ajax({
9 | type: "post",
10 | url: "/setting/theme/set",
11 | data: {
12 | theme: theme,
13 | _xsrf: getCookie("_xsrf"),
14 | },
15 | dataType: "json",
16 | success: function(data, textStatus, jqXHR) {
17 | Messenger().post({
18 | id: 0,
19 | message: "保存成功!",
20 | showCloseButton: true,
21 | type: "success"
22 | });
23 | window.location.reload();
24 | },
25 | error: function(jqXHR, textStatus, errorThrown) {
26 | Messenger().post({
27 | id: 0,
28 | message: "保存失败!",
29 | showCloseButton: true,
30 | type: "error"
31 | });
32 | }
33 | });
34 | }
35 | };
36 |
37 | $(document).ready(function(){
38 | $("#save-theme-button").click(Controller.setTheme);
39 | });
40 | }(jQuery));
41 |
--------------------------------------------------------------------------------
/static/app/share/css/share-base.css:
--------------------------------------------------------------------------------
1 | .main-content {
2 | position: relative;
3 | float: right;
4 | width: 755px;
5 | }
6 | .main-content .main-content-inner{
7 | padding-left: 10px;
8 | }
9 | .main-content-item{
10 | padding: 15px;
11 | margin-bottom: 10px
12 | }
13 | .main-content-item .main-content-item-header{
14 | padding-bottom: 8px
15 | }
16 |
17 | .sidebar{
18 | position: relative;
19 | float: left;
20 | width: 205px;
21 | }
22 | .sidebar .sidebar-item{
23 | margin-bottom: 10px;
24 | padding: 15px
25 | }
26 | .sidebar .sidebar-item .sidebar-item-header{
27 | padding-bottom: 8px;
28 | }
29 |
30 | .share-navbar li{
31 | padding: 8px 0 8px 2px;
32 | font-size: 14px;
33 | }
34 | .share-navbar li:first-child{
35 | padding-top: 8px;
36 | }
37 | .share-navbar li:last-child{
38 | padding-bottom: 0px;
39 | border-bottom-width: 0
40 | }
41 | .share-navbar li:hover{
42 | background: rgba(0,0,0,0.04);
43 | cursor: pointer;
44 | }
45 | .tags li{
46 | margin: 0 7px 6px 0;
47 | }
48 |
49 | .share-modal{
50 | width: 415px;
51 | padding: 20px
52 | }
53 |
54 | .share-modal .share-field{
55 | margin-top: 10px
56 | }
57 |
58 | input[name="title"]{
59 | width: 400px
60 | }
61 | input[name="tags"]{
62 | width: 415px
63 | }
64 | input[name="cost"]{
65 | width: 220px
66 | }
67 |
68 | .download-button{
69 | display: inline-block;
70 | font-size: 13px;
71 | color: #fff;
72 | font-family: inherit;
73 | padding: 4px 12px;
74 | margin-bottom: 0;
75 | line-height: 1.1;
76 | background-color: #825d5b;
77 | border: 1px solid #825d5b;
78 | -webkit-border-radius: 2px;
79 | border-radius: 2px;
80 | cursor: pointer;
81 | vertical-align: middle;
82 | text-decoration: none;
83 | }
84 | .download-button:hover{
85 | color: #ddd;
86 | }
87 |
--------------------------------------------------------------------------------
/static/app/share/css/share-category.css:
--------------------------------------------------------------------------------
1 | .share-table tr:nth-child(odd){
2 | border-top: 1px solid #eee;
3 | }
4 | .share-table tr:first-child {
5 | border-top-width: 0;
6 | }
7 | .share-table tr td{
8 | padding: 10px 0
9 | }
10 | .no-share-table{
11 | min-height: 300px;
12 | padding-top: 200px;
13 | }
14 |
--------------------------------------------------------------------------------
/static/app/share/css/share-one.css:
--------------------------------------------------------------------------------
1 | .main-content {
2 | position: relative;
3 | float: left;
4 | width: 680px;
5 | }
6 | .sidebar {
7 | position: relative;
8 | float: right;
9 | width: 280px;
10 | }
11 | .sidebar .sidebar-inner {
12 | padding: 0px 0px 0px 10px;
13 | }
14 |
15 | .share{
16 | padding: 15px
17 | }
18 | .share .share-file-type{
19 | width: 150px
20 | }
21 | .share .share-main{
22 | width: 500px
23 | }
24 | .share .share-main .share-name{
25 | width: 450px
26 | }
27 | .share .share-main .share-uploader{
28 | width: 50px
29 | }
30 | .share .share-actions{
31 | margin-top: 10px
32 | }
33 |
34 | .share-comment-list{
35 | margin-top: 40px;
36 | padding: 0 15px;
37 | }
38 | .share-comment-list .share-comment-item{
39 | padding: 10px 0;
40 | }
41 | .share-comment-list .share-comment-item:first-child{
42 | padding-top: 15px;
43 | }
44 | .share-comment-list .share-comment-item:last-child{
45 | padding-bottom: 15px;
46 | border-bottom-width: 0
47 | }
48 | .share-comment-list .share-comment-item .share-author-avatar{
49 | width: 40px
50 | }
51 | .share-comment-list .share-comment-item .share-main{
52 | width: 605px
53 | }
54 | .share-comment-list .share-comment-item .share-publish-time{
55 | margin-left: 5px
56 | }
57 | .share-comment-list .share-comment-item .share-main .share-comment-action{
58 | display: none;
59 | margin-right: 10px
60 | }
61 | .share-comment-list .share-comment-item .share-main .share-comment-content{
62 | padding: 5px 30px 0 0
63 | }
64 |
65 | .submit-comment-part{
66 | margin-top: 10px
67 | }
68 | .submit-comment-part .anonymous-checkbox{
69 | width: 200px
70 | }
71 |
72 | .like-list-part{
73 | margin-bottom: 15px
74 | }
75 | .like-list{
76 | min-height: 100px;
77 | padding: 5px
78 | }
79 | .like-list table th,
80 | .like-list table td{
81 | padding: 5px 0;
82 | }
83 | .like-list-none{
84 | text-align: center;
85 | margin-top: 20px
86 | }
87 |
88 | .similar-share-list{
89 | min-height: 200px;
90 | }
91 | .similar-share-list li{
92 | border-bottom: 1px dashed #ccc;
93 | padding: 5px 0;
94 | }
95 | .similar-share-list li:last-child{
96 | border-bottom-width: 0px;
97 | }
98 | .similar-share-list li:first-child{
99 | padding-top: 10px;
100 | }
101 | .recommend-share-list{
102 | padding: 0 10px!important
103 | }
104 | .no-recommend-share-list{
105 | min-height: 150px;
106 | }
107 | .no-recommend-share-list .no-recommend-share-list-inner{
108 | padding-top: 50px;
109 | }
110 |
--------------------------------------------------------------------------------
/static/app/share/css/share.css:
--------------------------------------------------------------------------------
1 | .recommend-share-table tr{
2 | }
3 | .recommend-share-table tr:last-child{
4 | border-bottom-width: 0
5 | }
6 | .recommend-share-table tr td{
7 | padding: 10px 0
8 | }
9 | .no-share-table{
10 | min-height: 200px;
11 | padding-top: 100px
12 | }
13 |
14 | .uploader-table tr td{
15 | padding: 5px 0
16 | }
17 | .uploader-table tr:first-child td{
18 | padding-top: 10px
19 | }
20 | .uploader-table tr:last-child td{
21 | padding-bottom: 10px
22 | }
23 |
--------------------------------------------------------------------------------
/static/app/share/img/category/bittorrent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/bittorrent.png
--------------------------------------------------------------------------------
/static/app/share/img/category/book.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/book.png
--------------------------------------------------------------------------------
/static/app/share/img/category/course.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/course.png
--------------------------------------------------------------------------------
/static/app/share/img/category/document.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/document.png
--------------------------------------------------------------------------------
/static/app/share/img/category/homework.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/homework.png
--------------------------------------------------------------------------------
/static/app/share/img/category/music.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/music.png
--------------------------------------------------------------------------------
/static/app/share/img/category/music1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/music1.png
--------------------------------------------------------------------------------
/static/app/share/img/category/music2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/music2.png
--------------------------------------------------------------------------------
/static/app/share/img/category/note.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/note.png
--------------------------------------------------------------------------------
/static/app/share/img/category/notebook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/notebook.png
--------------------------------------------------------------------------------
/static/app/share/img/category/paper.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/paper.png
--------------------------------------------------------------------------------
/static/app/share/img/category/picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/picture.png
--------------------------------------------------------------------------------
/static/app/share/img/category/software.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/software.png
--------------------------------------------------------------------------------
/static/app/share/img/category/video.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/category/video.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/accdb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/accdb.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/avi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/avi.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/bmp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/bmp.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/css.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/css.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/doc.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/docx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/docx.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/eml.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/eml.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/eps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/eps.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/fla.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/fla.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/gif.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/gif.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/html.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/html.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/ind.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/ind.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/ini.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/ini.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/jpg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/jpg.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/jsf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/jsf.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/midi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/midi.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/mov.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/mov.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/mp3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/mp3.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/mpeg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/mpeg.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/pdf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/pdf.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/png.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/ppt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/ppt.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/pptx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/pptx.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/proj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/proj.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/psd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/psd.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/pst.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/pst.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/pub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/pub.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/rar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/rar.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/readme.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/readme.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/settings.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/tiff.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/tiff.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/txt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/txt.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/url.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/url.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/vsd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/vsd.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/wav.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/wav.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/wma.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/wma.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/wmv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/wmv.png
--------------------------------------------------------------------------------
/static/app/share/img/icons/zip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/img/icons/zip.png
--------------------------------------------------------------------------------
/static/app/share/js/share-category.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/js/share-category.js
--------------------------------------------------------------------------------
/static/app/share/js/share-new.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | $(document).ready(function(){
5 |
6 | $("input").iCheck({
7 | checkboxClass: 'icheckbox_minimal-red',
8 | radioClass: 'iradio_minimal',
9 | });
10 |
11 | $(".wysiwyg-editor").wysiwyg({
12 | hotKeys: {}
13 | });
14 |
15 | $('select[name="category"]').select2({
16 | width: 415,
17 | placeholder: '请选择类别'
18 | });
19 | });
20 |
21 | }(jQuery));
22 |
--------------------------------------------------------------------------------
/static/app/share/js/share.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/share/js/share.js
--------------------------------------------------------------------------------
/static/app/share/js/share_.js:
--------------------------------------------------------------------------------
1 | ;(function($) {
2 | "use strict";
3 |
4 | var Controller = {
5 | likeShare: function() {
6 | var _this = $(this);
7 | var share_id = _this.data("share-id");
8 |
9 | $.ajax({
10 | url: '/share/like',
11 | type: 'POST',
12 | dataType: 'json',
13 | data: {
14 | share_id: share_id,
15 | _xsrf: getCookie("_xsrf"),
16 | },
17 | success: function(data){
18 | if(data.error){
19 | Messenger().post({
20 | id: 0,
21 | message: data.error,
22 | showCloseButton: true,
23 | type: "error"
24 | })
25 | return;
26 | }
27 |
28 | var html = sprintf(
29 | ' 赞%s',
31 | data.like_times
32 | );
33 | _this.replaceWith(html);
34 | },
35 | error: function() {
36 | Messenger().post({
37 | id: 0,
38 | message: "点赞失败!",
39 | showCloseButton: true,
40 | type: "error"
41 | })
42 | }
43 | });
44 | },
45 | downloadShare: function() {
46 | var _this = $(this);
47 | var cost = parseInt(_this.data("cost"));
48 | var share_id = _this.data("share-id");
49 |
50 | if(cost && cost > 0){
51 | alertify.set({labels: {
52 | ok: "确定",
53 | cancel : "取消"
54 | }});
55 |
56 | alertify.confirm(sprintf(
57 | "下载将会花费你 %s 金币,你确定要下载?", cost
58 | ), function (e){
59 |
60 | if(e) {
61 | window.location.href = sprintf(
62 | "/share/download/%s", share_id
63 | );
64 | }
65 | });
66 | }
67 | else {
68 | window.location.href=sprintf("/share/download/%s", share_id);
69 | }
70 | }
71 | };
72 |
73 | $(document).ready(function(){
74 | $(".share-like-link").live("click", Controller.likeShare);
75 | $(".share-download-button").click(Controller.downloadShare);
76 | });
77 |
78 | }(jQuery));
79 |
--------------------------------------------------------------------------------
/static/app/user/css/login.css:
--------------------------------------------------------------------------------
1 | body{
2 | background-image: url("");
3 | }
4 | .main-content{
5 | background-image: url("/static/img/landing.jpg");
6 | background-size: cover;
7 | background-repeat: no-repeat;
8 | }
9 | .main-content .main-content-inner{
10 | height: 450px;
11 | padding-top: 100px;
12 | }
13 | .main-content .main-content-inner .slogan{
14 | -webkit-font-smoothing: antialiased;
15 | font-size: 48px;
16 | padding-top: 70px;
17 | color: #fff;
18 | }
19 | .main-content .main-content-inner .slogan .slogan-content{
20 | margin-top: 50px;
21 | font-size: 20px;
22 | word-break: break-word;
23 | }
24 | .main-content .main-content-inner .login-form{
25 | padding-top: 40px;
26 | color: #ffffff;
27 | text-align: center
28 | }
29 | .main-content .main-content-inner .login-form .login-item{
30 | margin-top: 20px;
31 | }
32 | .main-content .main-content-inner .login-form .login-item:first-child{
33 | margin-top: 0px;
34 | }
35 | .main-content .main-content-inner .login-form .login-item input {
36 | font-size: 14px;
37 | padding: 10px 12px;
38 | width: 275px;
39 | }
40 |
41 | .register-list{
42 | list-style: none;
43 | }
44 | .register-list li{
45 | display: inline-block;
46 | margin: 2px 0px!important;
47 | }
48 |
49 | .register-form{
50 | width: 400px;
51 | min-height: 200px
52 | }
53 | .register-form .register-form-inner{
54 | padding: 30px
55 | }
56 | .register-form .register-form-inner .register-field{
57 | margin-top: 20px
58 | }
59 | .register-form .register-form-inner .register-field input {
60 | width: 325px;
61 | }
62 | .register-form .register-form-inner .register-actions{
63 | margin-top: 50px
64 | }
65 |
66 | .hot-topic-table td{
67 | padding: 4px 0;
68 | }
69 | .hot-topic-table tr td:first-child{
70 | padding-right: 8px;
71 | }
72 |
73 | .white-color,
74 | .white-color:focus,
75 | .white-color:visited{
76 | color: #f1f1f1;
77 | }
78 | .white-color:hover{
79 | color: #ffffff;
80 | }
81 |
--------------------------------------------------------------------------------
/static/app/user/css/password-reset.css:
--------------------------------------------------------------------------------
1 | .password-reset-form{
2 | padding-top: 250px
3 | }
4 | .password-reset-form .password-reset-actions{
5 | margin-top: 15px;
6 | }
7 |
--------------------------------------------------------------------------------
/static/app/user/img/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/user/img/1.png
--------------------------------------------------------------------------------
/static/app/user/img/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/app/user/img/2.png
--------------------------------------------------------------------------------
/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/favicon.ico
--------------------------------------------------------------------------------
/static/icons/girl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/icons/girl.png
--------------------------------------------------------------------------------
/static/icons/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/icons/loading.gif
--------------------------------------------------------------------------------
/static/icons/man.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/icons/man.png
--------------------------------------------------------------------------------
/static/icons/right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/icons/right.png
--------------------------------------------------------------------------------
/static/img/black-bg.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/black-bg.gif
--------------------------------------------------------------------------------
/static/img/black-bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/black-bg.jpg
--------------------------------------------------------------------------------
/static/img/coin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/coin.png
--------------------------------------------------------------------------------
/static/img/default.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/default.jpg
--------------------------------------------------------------------------------
/static/img/landing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/landing.jpg
--------------------------------------------------------------------------------
/static/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/logo.png
--------------------------------------------------------------------------------
/static/img/node.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/node.png
--------------------------------------------------------------------------------
/static/img/profile-cover/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/1.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/10.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/11.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/12.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/13.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/13.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/14.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/14.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/15.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/15.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/16.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/16.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/17.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/17.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/18.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/18.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/19.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/19.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/2.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/20.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/20.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/21.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/21.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/22.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/22.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/23.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/23.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/24.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/24.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/3.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/4.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/5.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/6.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/7.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/8.jpg
--------------------------------------------------------------------------------
/static/img/profile-cover/9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/profile-cover/9.jpg
--------------------------------------------------------------------------------
/static/img/white-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/static/img/white-bg.png
--------------------------------------------------------------------------------
/young/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shiyanhui/Young/184d2d85831b0c54db1002fad9ac1bce98738bf6/young/__init__.py
--------------------------------------------------------------------------------
/young/setting.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | import os
4 |
5 | ROOT_LOCATION = os.path.dirname(os.path.dirname(__file__))
6 |
7 | APPLICATION_SETTINGS = {
8 | # NOTE: please use nginx to serve static file in production environment
9 | 'static_path': ROOT_LOCATION + '/static/',
10 | 'login_url': '/login',
11 | 'xsrf_cookies': True,
12 | # 生成方式 base64.b64encode(str(uuid.uuid5(uuid.NAMESPACE_DNS, str(uuid.uuid4()))))
13 | 'cookie_secret': 'Y2VjMTM4MzYtYWM4MC01Zjc3LWJiYmEtN2MxODQxNmIyMzky',
14 | }
15 |
16 | EMAIL_SETTINGS = {
17 | "host": "localhost",
18 | "port": 25,
19 | "robot": "root@mail.beyoung.io",
20 | 'url': 'http://beyoung.io',
21 | }
22 |
--------------------------------------------------------------------------------
/young/urlmap.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | import app.base.urlmap
4 | import app.chat.urlmap
5 | import app.community.urlmap
6 | import app.home.urlmap
7 | import app.message.urlmap
8 | import app.profile.urlmap
9 | import app.search.urlmap
10 | import app.setting.urlmap
11 | import app.share.urlmap
12 | import app.user.urlmap
13 |
14 | from young.handler import BaseHandler
15 |
16 | urlpattern = ()
17 |
18 | urlpattern += app.base.urlmap.urlpattern
19 | urlpattern += app.chat.urlmap.urlpattern
20 | urlpattern += app.community.urlmap.urlpattern
21 | urlpattern += app.home.urlmap.urlpattern
22 | urlpattern += app.message.urlmap.urlpattern
23 | urlpattern += app.profile.urlmap.urlpattern
24 | urlpattern += app.search.urlmap.urlpattern
25 | urlpattern += app.setting.urlmap.urlpattern
26 | urlpattern += app.share.urlmap.urlpattern
27 | urlpattern += app.user.urlmap.urlpattern
28 |
29 | urlpattern += (
30 | (r'.*', BaseHandler),
31 | )
32 |
--------------------------------------------------------------------------------