diff --git a/.gitignore b/.gitignore index f3efbce0..e87a22f7 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ src/uploads/soft/*/ src/static/allimg/*/ src/data/time.lock src/static/enums/*.json +src/static/litimg/*/ diff --git a/src/admin/templets/index_body.htm b/src/admin/templets/index_body.htm index 6e835bd7..17ad7b6b 100644 --- a/src/admin/templets/index_body.htm +++ b/src/admin/templets/index_body.htm @@ -358,10 +358,6 @@ table.stattable td.today{font-size:12px;color:#000} vvs.push(typeof data.result.vv=="undefined"? 0 : data.result.vv); } } - console.log(pvs); - console.log(ips); - console.log(uvs); - console.log(vvs); const myChart = new Chart(ctx, { type: 'line', options: { diff --git a/src/static/ckeditor/plugins/scayt/CHANGELOG.md b/src/static/ckeditor/plugins/scayt/CHANGELOG.md new file mode 100644 index 00000000..ebd566ca --- /dev/null +++ b/src/static/ckeditor/plugins/scayt/CHANGELOG.md @@ -0,0 +1,4 @@ +SCAYT plugin for CKEditor 4 Changelog +==================== + +The full changelog of the SCAYT plugin for CKEditor 4 can be found on our website under the [release notes](https://webspellchecker.com/release-notes/) section. diff --git a/src/static/ckeditor/plugins/scayt/LICENSE.md b/src/static/ckeditor/plugins/scayt/LICENSE.md new file mode 100644 index 00000000..844ab4de --- /dev/null +++ b/src/static/ckeditor/plugins/scayt/LICENSE.md @@ -0,0 +1,28 @@ +Software License Agreement +========================== + +**CKEditor SCAYT Plugin** +Copyright © 2012, [CKSource](http://cksource.com) - Frederico Knabben. All rights reserved. + +Licensed under the terms of any of the following licenses at your choice: + +* GNU General Public License Version 2 or later (the "GPL"): + http://www.gnu.org/licenses/gpl.html + +* GNU Lesser General Public License Version 2.1 or later (the "LGPL"): + http://www.gnu.org/licenses/lgpl.html + +* Mozilla Public License Version 1.1 or later (the "MPL"): + http://www.mozilla.org/MPL/MPL-1.1.html + +You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice. + +Sources of Intellectual Property Included in this plugin +-------------------------------------------------------- + +Where not otherwise indicated, all plugin content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, the plugin will incorporate work done by developers outside of CKSource with their express permission. + +Trademarks +---------- + +CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/src/static/ckeditor/plugins/scayt/README.md b/src/static/ckeditor/plugins/scayt/README.md new file mode 100644 index 00000000..6d234cde --- /dev/null +++ b/src/static/ckeditor/plugins/scayt/README.md @@ -0,0 +1,81 @@ +SCAYT plugin for CKEditor 4 +===================== + +SpellCheckAsYouType (SCAYT) instantly underlines spelling and grammar errors while users type. To correct spelling or grammar error, a user simply needs to right-click the marked word to select from suggested corrections. +![SCAYT Plugin for CKEditor 4 View](https://webspellchecker.com/app/images/scayt_plugin_for_ckeditor4.png) + +This plugin brings the multi-language SCAYT functionality into CKEditor 4. It is integrated by default starting with [Standard Package of CKEditor 4](https://ckeditor.com/ckeditor-4/download/). You can find it on the CKEditor 4 toolbar panel under the ABC button (Enable SCAYT). + +If your version of CKEditor doesn’t have SCAYT built-in, you can easily add it by following the steps outlined in the Get Started section. + +The default version of SCAYT plugin for CKEditor 4 is using the free services of WebSpellChecker. It is provided with a banner ad and has some [limitations](https://docs.webspellchecker.net/display/WebSpellCheckerCloud/Free+and+Paid+WebSpellChecker+Cloud+Services+Comparison+for+CKEditor). + +To lift the limitations and get rid of the banner, [obtain a license](https://webspellchecker.com/wsc-scayt-ckeditor4/#pricing). Depending on your needs, you can choose a Cloud-based or Server (self-hosted) solution. + +Demo +------------ +SCAYT plugin for CKEditor 4: https://webspellchecker.com/wsc-scayt-ckeditor4/ + +Supported languages +------------ + +The SCAYT plugin for CKEditor as a part of the free services supports the next languages for check spelling: American English, British English, Canadian English, Canadian French, Danish, Dutch, Finnish, French, German, Greek, Italian, Norwegian Bokmal, Spanish, Swedish. + +There are also additional languages and specialized dictionaries available for a commercial license, you can check the full list [here](https://webspellchecker.com/additional-dictionaries/). + +Get started +------------ + +1. Clone/copy this repository contents in a new "plugins/scayt" folder in your CKEditor installation. +2. Enable the "scayt" plugin in the CKEditor configuration file (config.js): + + config.extraPlugins = 'scayt'; + +That's all. SCAYT will appear on the editor toolbar under the ABC button and will be ready to use. + +Supported browsers +------- + +This is the list of officially supported browsers for the SCAYT plugin for CKEditor 4. SCAYT may also work in other browsers and environments but we unable to check all of them and guarantee proper work. + +* Chrome (the latest) +* Firefox (the latest) +* Safari (the latest) +* MS Edge (the latest) +* Internet Explorer 8.0 (limited support) +* Internet Explorer 9.0+ (close to full support) + +Note: All browsers are to be supported for web pages that work in Standards Mode. + +Resources +------- + +* Demo: https://webspellchecker.com/wsc-scayt-ckeditor4/ +* Documentation: https://docs.webspellchecker.net/ +* YouTube video “How to Configure CKEditor 4 and SpellCheckAsYouType Plugin”: https://youtu.be/D0ahmVjYBq8 +* Term of Service: https://webspellchecker.com/terms-of-service/ +* CKEditor’s How-Tos for SCAYT: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_howtos_scayt.html +* CKEditor’s example of SCAYT: https://ckeditor.com/docs/ckeditor4/latest/examples/spellchecker.html + +Technical support or questions +------- + +In cooperation with the CKEditor team, during the past 10 years we have simplified the installation and built the extensive amount of documentation devoted to SCAYT plugin for CKEditor 4 and less. + +If you are experiencing any difficulties with the setup of the plugin, please check the links provided in the Resources section. + +Holders of an active subscription to the services or a commercial license have access to professional technical assistance directly from the WebSpellChecker team. [Contact us here](https://webspellchecker.com/contact-us/)! + +Reporting issues +------- + +Please use the [SCAYT plugin for CKEditor 4 GitHub issue page](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues) to report bugs and feature requests. We will do our best to reply at our earliest convenience. + +License +------- + +This plugin is licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). + +See LICENSE.md for more information. + +Developed by [WebSpellChecker](https://webspellchecker.com/) in cooperation with CKSource. diff --git a/src/static/ckeditor/plugins/scayt/dialogs/dialog.css b/src/static/ckeditor/plugins/scayt/dialogs/dialog.css new file mode 100644 index 00000000..aef75684 --- /dev/null +++ b/src/static/ckeditor/plugins/scayt/dialogs/dialog.css @@ -0,0 +1,23 @@ +div.cke_dialog_ui_scaytItemList { + border: 1px solid #c9cccf; +} + +.cke_scaytItemList-child { + position: relative; + padding: 6px 30px 6px 5px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.cke_scaytItemList-child:hover { + background: #ebebeb; +} + +.cke_scaytItemList-child .cke_scaytItemList_remove { + position: absolute; + top: 0; + right: 5px; + width: 26px; + height: 26px; +} diff --git a/src/static/ckeditor/plugins/scayt/dialogs/options.js b/src/static/ckeditor/plugins/scayt/dialogs/options.js new file mode 100644 index 00000000..e47c97e9 --- /dev/null +++ b/src/static/ckeditor/plugins/scayt/dialogs/options.js @@ -0,0 +1,32 @@ +CKEDITOR.dialog.add("scaytDialog",function(d){var c=d.scayt,k='\x3cp\x3e\x3cimg alt\x3d"logo" title\x3d"logo" src\x3d"'+c.getLogo()+'" /\x3e\x3c/p\x3e\x3cp\x3e'+c.getLocal("version")+c.getVersion()+'\x3c/p\x3e\x3cp\x3e\x3ca href\x3d"'+c.getOption("CKUserManual")+'" target\x3d"_blank" style\x3d"text-decoration: underline; color: blue; cursor: pointer;"\x3e'+c.getLocal("btn_userManual")+"\x3c/a\x3e\x3c/p\x3e\x3cp\x3e"+c.getLocal("text_copyrights")+"\x3c/p\x3e",n=CKEDITOR.document,l={isChanged:function(){return null=== +this.newLang||this.currentLang===this.newLang?!1:!0},currentLang:c.getLang(),newLang:null,reset:function(){this.currentLang=c.getLang();this.newLang=null},id:"lang"},k=[{id:"options",label:c.getLocal("tab_options"),onShow:function(){},elements:[{type:"vbox",id:"scaytOptions",children:function(){var b=c.getApplicationConfig(),a=[],g={"ignore-all-caps-words":"label_allCaps","ignore-domain-names":"label_ignoreDomainNames","ignore-words-with-mixed-cases":"label_mixedCase","ignore-words-with-numbers":"label_mixedWithDigits"}, +h;for(h in b)b={type:"checkbox"},b.id=h,b.label=c.getLocal(g[h]),a.push(b);return a}(),onShow:function(){this.getChild();for(var b=d.scayt,a=0;ab[1]?c=1:a[1] div +{ + padding-bottom: 6px !important; +} + +.scayt-lang-list > div input +{ + margin-right: 4px; +} + +#scayt_about_ +{ + margin: 30px auto 0 auto; +} + +#scayt_about_ p +{ + text-align: center; + margin-bottom: 10px; +} + +.cke_dialog_contents_body div[name=dictionaries] .cke_dialog_ui_hbox_last > a.cke_dialog_ui_button +{ + margin-top: 0; +} diff --git a/src/user/templets/index-notlogin.htm b/src/user/templets/index-notlogin.htm index 546cffca..9c91d743 100755 --- a/src/user/templets/index-notlogin.htm +++ b/src/user/templets/index-notlogin.htm @@ -46,7 +46,7 @@ 注 册 - 忘记密码 + 忘记密码 diff --git a/src/user/templets/login.htm b/src/user/templets/login.htm index 760886dc..6ee1b77c 100755 --- a/src/user/templets/login.htm +++ b/src/user/templets/login.htm @@ -46,7 +46,7 @@ 注 册 - 忘记密码 + 忘记密码 diff --git a/src/user/templets/resetpassword.htm b/src/user/templets/resetpassword.htm index df765892..00857b61 100755 --- a/src/user/templets/resetpassword.htm +++ b/src/user/templets/resetpassword.htm @@ -61,7 +61,7 @@

找回密码第一步还没注册 点击这里

-
+ diff --git a/src/user/templets/resetpassword2.htm b/src/user/templets/resetpassword2.htm index e4c356ea..1358e394 100755 --- a/src/user/templets/resetpassword2.htm +++ b/src/user/templets/resetpassword2.htm @@ -17,7 +17,7 @@

找回密码第二步还没注册 点击这里

- + diff --git a/src/user/templets/resetpassword3.htm b/src/user/templets/resetpassword3.htm index cdce63b9..c2fe28bf 100755 --- a/src/user/templets/resetpassword3.htm +++ b/src/user/templets/resetpassword3.htm @@ -20,7 +20,7 @@

找回密码第三步还没注册 点击这里

- +