EnglishPal/app
邱忠辉 9d420acd8b [REFACTOR] user_service.py: Added id to user name, word and frequency for click to execute AJAX request in JS (#30)
1. Add jquery.js and word_operation.js to the static folder.

2. Changed the return type of the familiar, unfamiliar and deleteword methods of user_service.py.
    ```
    original: return redirect(url_for('userpage', username=username))
    now: return "success"
    ```
3. In order to get elements in JS to make ajax requests we add ids in userpage_get.html for familiar, unfamiliar, delete buttons and so on.

4. When the user's word book was retrieved, the list returned was already sorted in descending order of frequency, so redundant code was removed in userpage_get.html.

Co-authored-by: PeterQiu <www.1392993990@qq.com>
Co-authored-by: Lan Hui <1348141770@qq.com>
Reviewed-on: http://121.4.94.30:3000/mrlan/EnglishPal/pulls/30
Co-authored-by: 邱忠辉 <1392993990@qq.com>
Co-committed-by: 邱忠辉 <1392993990@qq.com>
2022-07-18 13:29:04 +08:00
..
layout/partial Repalce old app folder with SoftArch王炫/english-pal-master/app/ 2022-01-26 21:10:09 +08:00
static [REFACTOR] user_service.py: Added id to user name, word and frequency for click to execute AJAX request in JS (#30) 2022-07-18 13:29:04 +08:00
templates [REFACTOR] user_service.py: Added id to user name, word and frequency for click to execute AJAX request in JS (#30) 2022-07-18 13:29:04 +08:00
test [REFACTOR] user_service.py: Added id to user name, word and frequency for click to execute AJAX request in JS (#30) 2022-07-18 13:29:04 +08:00
Article.py Use named style for sqlite3 execute() 2022-01-27 17:01:03 +08:00
Login.py 修复 Bug394 2022-06-05 23:36:55 +08:00
UseSqlite.py Use named style for sqlite3 execute() 2022-01-27 17:01:03 +08:00
WordFreq.py Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
Yaml.py build.sh: deploy the new code 2022-02-05 22:59:45 +08:00
account_service.py Use named style for sqlite3 execute() 2022-01-27 17:01:03 +08:00
difficulty.py requirements.txt includes dependencies of the program. difficulty.py is modified in this fix. Not sure why build.sh is included. 2021-08-20 19:27:44 +08:00
main.py Repalce old app folder with SoftArch王炫/english-pal-master/app/ 2022-01-26 21:10:09 +08:00
pickle_idea.py Update pickle_idea.py 2021-05-31 08:48:03 +08:00
pickle_idea2.py 添加删除单词功能 2021-05-30 21:30:18 +08:00
user_service.py [REFACTOR] user_service.py: Added id to user name, word and frequency for click to execute AJAX request in JS (#30) 2022-07-18 13:29:04 +08:00
wordfreqCMD.py Publish EnglishPal source code 2021-04-06 16:22:03 +08:00