From 17c8c94e097018ccaf15f8a9296b03b5195cc3f7 Mon Sep 17 00:00:00 2001 From: pzread Date: Wed, 26 Jun 2013 01:49:13 +0800 Subject: Add square page. Add AsyncMCD. Add sqmod manage --- src/css/index.less | 1 - src/css/square.less | 53 ++++++++ src/css/style.less | 6 + src/html/index.html | 28 +--- src/html/square.html | 9 ++ src/js/com.js | 4 +- src/js/index.js | 12 +- src/js/mail.js | 87 ++++++------- src/js/notice.js | 29 +++-- src/js/square.js | 275 ++++++++++++++++++++++++++++++++++++++++ src/js/user.js | 13 +- src/py/asyncmcd.py | 143 +++++++++++++++++++++ src/py/backend_server.py | 29 ++--- src/py/center_server.py | 10 +- src/py/mail.py | 33 ++--- src/py/mod.py | 50 ++++---- src/py/notice.py | 16 ++- src/py/square.py | 323 +++++++++++++++++++++++++++++++++++++++-------- src/py/user.py | 18 +-- 19 files changed, 898 insertions(+), 241 deletions(-) create mode 100644 src/css/square.less create mode 100644 src/html/square.html create mode 100644 src/js/square.js create mode 100644 src/py/asyncmcd.py diff --git a/src/css/index.less b/src/css/index.less index 81d9546..83885ba 100644 --- a/src/css/index.less +++ b/src/css/index.less @@ -143,6 +143,5 @@ body{ #index_footer{ margin-top:@MediumPad; padding:@MediumPad @MediumPad 0px @MediumPad; - background-color:@lightgray; text-align:right; } diff --git a/src/css/square.less b/src/css/square.less new file mode 100644 index 0000000..022f9e4 --- /dev/null +++ b/src/css/square.less @@ -0,0 +1,53 @@ +@import 'color.less'; +@import 'mixin.less'; + +#index_page{ + div.catelist{ + position:fixed; + } + div.indexlist{ + div.catebox{ + margin-bottom:@MediumPad; + + & > h4{ + display:none; + } + } + div.boxlist{ + margin-bottom:@MediumPad; + display:none; + + div.box{ + height:108px; + margin-bottom:12px; + box-shadow:0px 0px 6px 0px fade(@black,30%); + position:relative; + + img.logo{ + height:108px; + margin-right:@SmallPad; + float:left; + } + div.time{ + line-height:12px; + } + p.intro{ + margin-top:@SmallPad; + font-size:@SmallFontSize; + } + div.oper{ + position:absolute; + top:6px; + right:6px; + } + + &:hover{ + box-shadow:0px 0px 6px 1px fade(@black,30%); + } + &:nth-child(2n - 1){ + margin-left:0px; + } + } + } + } +} diff --git a/src/css/style.less b/src/css/style.less index c36c429..c754f57 100644 --- a/src/css/style.less +++ b/src/css/style.less @@ -2,6 +2,11 @@ @import "color.less"; @import "index.less"; +@font-face{ + font-family:monospace; + src:url('/DejaVuSansMono.woff'); +} + div.medium_modal{ width:970px; margin-left:-485px; @@ -28,6 +33,7 @@ span.check_bold{ } .time{ font-size:@SmallFontSize; + font-family:monospace; } .uneditable-input{ cursor:default; diff --git a/src/html/index.html b/src/html/index.html index b8795ea..28632de 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -25,6 +25,7 @@ +