Project

General

Profile

追加功能 #439

v4.0: Login

Added by Junyi Zhang about 1 year ago. Updated 10 months ago.

Status:
已关闭
Priority:
普通
Assignee:
Target version:
IT: Easytryck (Sweden) - v4.0
Start date:
10/22/2024
Due date:
10/25/2024
% Done:

100%

Estimated time:

Description

Background
  1. New requirement for v4.0 OTS
    See: OneDrive\赤蓝商贸(上海)有限公司\Shanghai Group - IT\开发相关\OTS V4\开发需求
Task Details
  1. Login module: mobile/desktop
v4 coding standard:
  1. Git提交
    #xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
      
  2. 代码规范
    2.1: 结构:Public -> Protected -> Private
    2.2: 其他代码规范同SBX
      
  3. 数据层规范(Model)
    3.1: 数据库操作只应出现在model或者system中。
    3.2: v3/v4的model分为两个文件,比如: order.php, order_v3.php
     
  4. 前台代码
    twig, js, css (js, css尽量写在单独的css文件中)
     
  5. 后台代码
    MVCL (L:en,cn)
     
  6. 注释
    1. 类名:
      /**
       * xxx
       *
       * @copyright RedBlue-OTS 2024
       * @version v4
       *
       */
      
    2. 函数名:参数类型 + 返回值类型
          /**
           * xxx
           *
           * @param  xxx $xxx
           * @param  xxx $xxx
           * @return xxx
           */
      
Output
  • Report and Solution

Others

#1

Updated by Junyi Zhang about 1 year ago

  • Status changed from 新建 to 进行中
#2

Updated by Junyi Zhang about 1 year ago

Output (2024/10/28), Output (2024/10/22 - 2024/10/25)

  1. 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.
  2. 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
  3. Unify some config settings to web/system/config/default.php
        - db
        - session
        - template
  4. About js files:
    - Namespace for js : for example: web/catalog/view/javascript/easydingzhi/common.js
  5. 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
  6. Change the language directory and support switch language in front.
    1. The language directory
      - Old: en-gb
      - New: en/zh
    2. The priority of front language
      1. session/cookie.
      2. Browser's language preference.
      3. admin setting 'config_language'.
  7. Add redis config and the format of the cache key should be CACHE_PREFIX.xxx
    1. CACHE_PREFIX
    2. CACHE_HOSTNAME
    3. CACHE_PORT
  8. Fix the input background when autofill.
    1. Add css: -webkit-background-clip: text;
  9. 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
#3

Updated by Junyi Zhang about 1 year ago

  • % Done changed from 0 to 20
#4

Updated by Junyi Zhang about 1 year ago

  • Description updated (diff)
#5

Updated by Junyi Zhang about 1 year ago

  • Description updated (diff)
#6

Updated by Junyi Zhang about 1 year ago

  • % Done changed from 20 to 40
#7

Updated by Junyi Zhang about 1 year ago

  • % Done changed from 40 to 80
#8

Updated by Junyi Zhang about 1 year ago

  • Status changed from 进行中 to 已关闭
  • % Done changed from 80 to 100
#9

Updated by Xihua Fan 10 months ago

  • Tracker changed from 其他 to 追加功能

Also available in: Atom PDF