追加功能 #439
v4.0: Login
Start date:
10/22/2024
Due date:
10/25/2024
% Done:
100%
Estimated time:
Description
Background
- New requirement for v4.0 OTS
See: OneDrive\赤蓝商贸(上海)有限公司\Shanghai Group - IT\开发相关\OTS V4\开发需求
- Login module: mobile/desktop
- Git提交
#xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
- 代码规范
2.1: 结构:Public -> Protected -> Private
2.2: 其他代码规范同SBX
- 数据层规范(Model)
3.1: 数据库操作只应出现在model或者system中。
3.2: v3/v4的model分为两个文件,比如: order.php, order_v3.php
- 前台代码
twig, js, css (js, css尽量写在单独的css文件中)
- 后台代码
MVCL (L:en,cn)
- 注释
- 类名:
/** * xxx * * @copyright RedBlue-OTS 2024 * @version v4 * */
- 函数名:参数类型 + 返回值类型
/** * xxx * * @param xxx $xxx * @param xxx $xxx * @return xxx */
- 类名:
- Report and Solution
Others
Updated by Junyi Zhang about 1 year ago
Output (2024/10/28), Output (2024/10/22 - 2024/10/25)
- Add third-party files bootstrap 5.3.3.
- We use bootstrap for css framework since it already a lot of components and styles that will make development easier. - Restore the original opencart startup files since we might use them in the future.
- Change pre-action common/login/check to startup/login as login check - Unify some config settings to web/system/config/default.php
- db
- session
- template - About js files:
- Namespace for js : for example: web/catalog/view/javascript/easydingzhi/common.js - The login function:
- Empty check and format check use original form validate, and username/password valid check by php.
- Add easyDingZhi.account for user account operation
- Compatible with v3 user login - Change the language directory and support switch language in front.
- The language directory
- Old: en-gb
- New: en/zh - The priority of front language
- session/cookie.
- Browser's language preference.
- admin setting 'config_language'.
- The language directory
- Add redis config and the format of the cache key should be CACHE_PREFIX.xxx
- CACHE_PREFIX
- CACHE_HOSTNAME
- CACHE_PORT
- Fix the input background when autofill.
- Add css: -webkit-background-clip: text;
- Add footer and it should display at the bottom of every page.
- Currently, admin does not have the function that dynamic set footer, so I use the language way to set the content of the footer
Updated by Junyi Zhang about 1 year ago
- Status changed from 进行中 to 已关闭
- % Done changed from 80 to 100