gima-common
v1.1.9
Published
```shell npm install gima-common ```
Downloads
354
Readme
gima-common
npm install gima-common
├── gima
│ ├── axiosWrapper.js # 1. auto add token to request, 2. retry on 502,504 error
│ ├── cache
│ │ ├── sharedConfig.js # cross subsystem config share: companyLogo, favicon, themeColor, .etc
│ │ ├── systemConfig.js
│ │ ├── userData.js
│ │ └── userToken.js # user token: get token, username, companyCode
│ ├── checkVersion.js # Check new version and popup
│ ├── index.js
│ └── useLogin.js # user session management,kick timeout session
├── index.js
└── utils
├── base64.js # b64Encode, b64Decode (fix atob, btoa only support ASCII)
├── cookies.js # cookies get, set, remove (domain: .toplevel.root)
├── download.js # downloadBlob, downloadUrl
├── index.js
├── object.js # object helpers: pick
└── searchParams.js # search parameters operation: getSearchParams, stringifySearchParams