├── white
├── lang
│ ├── en_GB
│ │ ├── __init__.py
│ │ ├── menu.py
│ │ ├── category.py
│ │ ├── comment.py
│ │ ├── page.py
│ │ ├── post.py
│ │ ├── metadata.py
│ │ ├── global.py
│ │ ├── user.py
│ │ └── extend.py
│ ├── zh_CN
│ │ ├── __init__.py
│ │ ├── menu.py
│ │ ├── category.py
│ │ ├── comment.py
│ │ ├── page.py
│ │ ├── post.py
│ │ ├── metadata.py
│ │ ├── global.py
│ │ ├── user.py
│ │ └── extend.py
│ ├── zh_TW
│ │ ├── __init__.py
│ │ ├── menu.py
│ │ ├── category.py
│ │ ├── comment.py
│ │ ├── page.py
│ │ ├── post.py
│ │ ├── metadata.py
│ │ ├── global.py
│ │ ├── user.py
│ │ └── extend.py
│ └── __init__.py
├── asset
│ ├── img
│ │ ├── cloud.png
│ │ ├── cross.gif
│ │ ├── icons.png
│ │ ├── logo.png
│ │ ├── piggy.gif
│ │ ├── tick.gif
│ │ ├── tick.png
│ │ ├── favicon.ico
│ │ └── statuses.png
│ ├── theme
│ │ └── default
│ │ │ ├── img
│ │ │ ├── search.png
│ │ │ ├── favicon.png
│ │ │ ├── og_image.gif
│ │ │ └── categories.png
│ │ │ ├── css
│ │ │ ├── small.css
│ │ │ └── reset.css
│ │ │ └── js
│ │ │ └── main.js
│ ├── js
│ │ ├── page-name.js
│ │ ├── upload-fields.js
│ │ ├── custom-fields.js
│ │ ├── redirect.js
│ │ ├── text-resize.js
│ │ ├── slug.js
│ │ ├── focus-mode.js
│ │ ├── sortable.js
│ │ ├── dragdrop.js
│ │ └── editor.js
│ └── css
│ │ ├── reset.css
│ │ ├── small.css
│ │ ├── login.css
│ │ └── notifications.css
├── view
│ ├── theme
│ │ └── default
│ │ │ ├── page.html
│ │ │ ├── 403.html
│ │ │ ├── layout.html
│ │ │ ├── 404.html
│ │ │ ├── footer.html
│ │ │ ├── search.html
│ │ │ ├── posts.html
│ │ │ ├── header.html
│ │ │ ├── body.html
│ │ │ └── article.html
│ └── admin
│ │ ├── 403.html
│ │ ├── extend
│ │ ├── plugin
│ │ │ └── index.html
│ │ ├── index.html
│ │ ├── field
│ │ │ ├── index.html
│ │ │ ├── add.html
│ │ │ └── edit.html
│ │ └── metadata
│ │ │ └── edit.html
│ │ ├── layout
│ │ ├── edit.html
│ │ ├── footer.html
│ │ └── header.html
│ │ ├── category
│ │ ├── index.html
│ │ ├── add.html
│ │ └── edit.html
│ │ ├── user
│ │ ├── login.html
│ │ ├── index.html
│ │ ├── add.html
│ │ └── edit.html
│ │ ├── menu
│ │ └── index.html
│ │ ├── comment
│ │ ├── index.html
│ │ └── edit.html
│ │ ├── page
│ │ ├── index.html
│ │ ├── add.html
│ │ └── edit.html
│ │ └── post
│ │ ├── index.html
│ │ ├── add.html
│ │ └── edit.html
├── lib
│ ├── __init__.py
│ ├── image.py
│ └── paginator.py
├── domain
│ ├── __init__.py
│ ├── menu.py
│ ├── category.py
│ ├── storage.py
│ ├── page.py
│ ├── comment.py
│ └── post.py
├── __init__.py
├── config
│ ├── __init__.py
│ └── errors.py
├── ext.py
├── controller
│ ├── admin
│ │ ├── __init__.py
│ │ ├── extend.py
│ │ ├── menu.py
│ │ ├── category.py
│ │ ├── comment.py
│ │ ├── metadata.py
│ │ ├── field.py
│ │ └── user.py
│ └── __init__.py
├── util.py
├── orm
│ ├── base.py
│ ├── __init__.py
│ ├── pair.py
│ ├── meta.py
│ ├── comment.py
│ ├── category.py
│ ├── extend.py
│ ├── user.py
│ └── page.py
├── flash.py
├── helper.py
├── setting.py
├── security.py
└── patch.py
├── snap
├── admin.png
├── home.png
├── login.png
└── article.png
├── script
└── secretgen.py
├── requirements.txt
├── .gitattributes
├── whited
├── conf
└── config
├── t
└── panigationort.py
├── setup.py
└── .gitignore
/white/lang/en_GB/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/white/lang/zh_CN/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/white/lang/zh_TW/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/white/lang/zh_CN/menu.py:
--------------------------------------------------------------------------------
1 | t = {
2 |
3 | 'menu' : u'导航',
4 |
5 | }
--------------------------------------------------------------------------------
/white/lang/zh_TW/menu.py:
--------------------------------------------------------------------------------
1 | t = {
2 |
3 | 'menu' : u'選單',
4 |
5 | }
--------------------------------------------------------------------------------
/white/lang/en_GB/menu.py:
--------------------------------------------------------------------------------
1 | t = {
2 |
3 | 'menu': 'Menu',
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/snap/admin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/snap/admin.png
--------------------------------------------------------------------------------
/snap/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/snap/home.png
--------------------------------------------------------------------------------
/snap/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/snap/login.png
--------------------------------------------------------------------------------
/snap/article.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/snap/article.png
--------------------------------------------------------------------------------
/white/asset/img/cloud.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/cloud.png
--------------------------------------------------------------------------------
/white/asset/img/cross.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/cross.gif
--------------------------------------------------------------------------------
/white/asset/img/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/icons.png
--------------------------------------------------------------------------------
/white/asset/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/logo.png
--------------------------------------------------------------------------------
/white/asset/img/piggy.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/piggy.gif
--------------------------------------------------------------------------------
/white/asset/img/tick.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/tick.gif
--------------------------------------------------------------------------------
/white/asset/img/tick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/tick.png
--------------------------------------------------------------------------------
/white/asset/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/favicon.ico
--------------------------------------------------------------------------------
/white/asset/img/statuses.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/img/statuses.png
--------------------------------------------------------------------------------
/script/secretgen.py:
--------------------------------------------------------------------------------
1 | import base64
2 | import uuid
3 |
4 | print base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes)
--------------------------------------------------------------------------------
/white/asset/theme/default/img/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/theme/default/img/search.png
--------------------------------------------------------------------------------
/white/asset/theme/default/img/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/theme/default/img/favicon.png
--------------------------------------------------------------------------------
/white/asset/theme/default/img/og_image.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/theme/default/img/og_image.gif
--------------------------------------------------------------------------------
/white/asset/theme/default/img/categories.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whiteclover/white/HEAD/white/asset/theme/default/img/categories.png
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | dbpy==0.1.2
2 | Flask==1.0
3 | Flask-Session==0.1.1
4 | itsdangerous==0.24
5 | Jinja2==2.7.3
6 | Markdown==2.6.1
7 | MarkupSafe==0.23
8 | MySQL-python==1.2.5
9 | Pillow==2.7.0
10 | Werkzeug==0.15.3
11 |
--------------------------------------------------------------------------------
/white/view/theme/default/page.html:
--------------------------------------------------------------------------------
1 | {% extends "theme/default/layout.html" %}
2 | {% block body %}
3 |
5 | You cant's access this page{{page_title}}
5 | {{page_content|markdown|safe}}
6 | 403 Forbidden
6 |
4 |
You cant's access this module {{message}}
6 | 7 |7 | Soon. 8 |
9 |