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
2 years ago
1.0.28
2 years ago
1.0.27
2 years ago
1.0.26
2 years ago
1.0.25
2 years ago
1.0.24
2 years ago
1.0.23
2 years ago
1.0.22
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago