From 9de23407aab567da718346cfa43089591fb7506c Mon Sep 17 00:00:00 2001 From: yangjian Date: Sun, 6 Dec 2020 09:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E9=9B=86=E7=AE=80?= =?UTF-8?q?=E4=BB=8B=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 15 ++ MrDoc/settings.py | 15 +- static/sortablejs/test.html | 221 ------------------ template/app_doc/doc.html | 3 + template/app_doc/docs_base.html | 13 +- .../manage/manage_project_options.html | 2 +- template/app_doc/pro_list.html | 3 - template/app_doc/project.html | 4 +- 8 files changed, 43 insertions(+), 233 deletions(-) delete mode 100644 static/sortablejs/test.html diff --git a/CHANGES.md b/CHANGES.md index ee0ace0..0b8c535 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,20 @@ ## 版本更新记录 +### v0.6.2 2020-12 + +- [优化]个人中心和后台管理页面加载页面时间; +- [优化]文集文档页面左侧文集目录交互体验; +- [优化]Editor.md编辑器模式下图片上传异常交互; +- [优化]同步Vditor编辑器组件版本至3.6.6; +- [优化]HTML模板文件结构和代码结构; +- [优化]后台管理、个人中心的文集管理、文档管理界面切换为动态表格; +- [新增]个人中心文集文档拖拽排序功能; +- [新增]文档搜索全文搜索功能; +- [新增]个人中心文集管理的文集搜索功能; +- [新增]文档编辑器浏览器缓存功能; +- [合并]文集简介优化[!1](https://gitee.com/zmister/MrDoc/pulls/1) +- [合并]Editor.md编辑器自定义文档样式[#42](https://github.com/zmister2016/MrDoc/pull/42) + ### v0.6.1 2020-11-16 - 优化文集介绍页面,文集简介支持Markdown渲染; diff --git a/MrDoc/settings.py b/MrDoc/settings.py index af9ab11..99d854b 100644 --- a/MrDoc/settings.py +++ b/MrDoc/settings.py @@ -40,7 +40,7 @@ SECRET_KEY = '5&71mt9@^58zdg*_!t(x6g14q*@84d%ptr%%s6e0l50zs0we3d' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = CONFIG.getboolean('site','debug') -VERSIONS = '0.6.1' +VERSIONS = '0.6.2' ALLOWED_HOSTS = ['*'] @@ -64,6 +64,7 @@ INSTALLED_APPS = [ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', @@ -83,6 +84,7 @@ TEMPLATES = [ 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ + 'django.template.context_processors.i18n', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', @@ -166,6 +168,17 @@ USE_L10N = True USE_TZ = False +# 多语言配置 +LANGUAGES = ( + ('zh-hans',('中文简体')), + ('zh-hant',('中文繁體')), + ('en',('english')), +) +# 翻译文件 +LOCALE_PATHS = ( + os.path.join(BASE_DIR,'locale'), +) + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.1/howto/static-files/ diff --git a/static/sortablejs/test.html b/static/sortablejs/test.html deleted file mode 100644 index 085e09c..0000000 --- a/static/sortablejs/test.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - layout 后台大布局 - Layui - - - - -
-
- - - - -
- - - -
- -
- -
- 导入文集到MrDoc -
-
- -
-
- -
    -
  • 万视电商数据助手脑图.
    • -
    • 《读懂一本书》思维导图.
      • -
      • 六类群体可得到慈善组织、红十字会优先帮扶_滚动新闻_中国政府网.
        • -
        -
        -
        - -
        - - -
        - - - - - - \ No newline at end of file diff --git a/template/app_doc/doc.html b/template/app_doc/doc.html index 6afec8c..288e4a9 100644 --- a/template/app_doc/doc.html +++ b/template/app_doc/doc.html @@ -171,8 +171,10 @@ {% endblock %} \ No newline at end of file diff --git a/template/app_doc/docs_base.html b/template/app_doc/docs_base.html index ba99fc5..934cc7b 100644 --- a/template/app_doc/docs_base.html +++ b/template/app_doc/docs_base.html @@ -285,12 +285,14 @@ + @@ -308,8 +310,9 @@