1.0.33 • Published 2 years ago
@huongnv080/vn v1.0.33
nodejs-frontend-template
Installation
- Install the dependencies.
``` $ yarn add -D @huongnv080/vn ```
Set to index.tsx or App.tsx
Apply uikit css
```javascript import "@huongnv080/vn/src/uikit" ```
Import Compoment
``` ```javascript import { DT, // Alert Msg DL, // Dailog Loading DDL, // Dailog File Download Icon, // Uikit Icon A, // Link B, // Button C, // Checkbox D, // Year, Month, Datetime, Date, Time F, // File L, // Label I, // Input[text, number, range] M, // Munlti Select R, // Radio S, // Select T, // Textarea } from "@huongnv080/vn/src/components" ```
Use i18n
Add I18n
・Create dir labels ・Create dir [ja, en] in labels
・Create File common.json in dir [ja, en] { "system_auth": "Test label" }
・Create File index.ts in dir labels ・Not set ns same[cml, btl, ael]
export const APP_MSG = { ja : { ns: 'app_cml', json: require('./ja/commons.json') }, en : { ns: 'app_cml', json: require('./en/commons.json') } }
import { addResource } from '@huongnv080/vn/src/utils/I18n' import { APP_MSG } from './labels' addResource(APP_MSG)
1.0.33
2 years ago
1.0.32
2 years ago
1.0.31
2 years ago
1.0.30
2 years ago
1.0.29
3 years ago
1.0.28
3 years ago
1.0.27
3 years ago
1.0.26
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago