1.0.6 • Published 2 years ago
@piyush-ezee/yc-login v1.0.6
yc-login
Project setup
npm install
Compiles and hot-reloads for development
npm run start
Compiles and minifies for production
npm run build
For Publish package to public
1. update package version in package.json and npm install (1.0.0 -> 1.0.1)
2. npm run build is mendatory before publish package
npm publish --access public
For using YCLogin Components in frontend
npm install @piyush-ezee/yc-login
Usage
import { YCLogin } from '@piyush-ezee/yc-login'
import '@piyush-ezee/yc-login/dist/vinod-ezee-login2.css'
components: {
YCLogin,
}
// For Signage
<YC-login
type="signage"
data-id="btn-login"
:yc-url="'#'"
:yc-images=""
:yc-text-data="{
loginButtonText: 'Login',
title: 'Title-1',
subtitle1: 'Subtitle-1',
subtitle2: 'Subtitle-2',
footerText: 'Footer-text'
}"
:yc-mailto="`mail@mail.com`"
/>
// For Cm and Pms
<YC-login
type="cm"
:yc-url="{
loginUrl: '#',
signupUrl: '#',
}"
:yc-images="{
backgroundImage: '',
logo: '',
}"
:yc-text-data="{
loginButtonText: 'Login',
title: '<strong>Title</strong>',
subtitle1: 'Subtitle',
signupUrlText: 'Signup',
copyrightText: 'ⓒ Copyright',
}"
:yc-address-data="{
contact: 'Contact Name',
telephoneNumber: '1234-5678',
operationTime: 'Operating hours: 9 am to 10 pm',
}"
/>
Properties
Property | Type | Default | Description |
---|---|---|---|
type | String | - | Login view type (signage, cm, pms) |
yc-url | String or Object | # | Redirection URL |
yc-images | String or Object | - | Set image for eg. require(~/assets/images/login-bg.svg ) |
yc-text-data | Object | - | - |
yc-address-data | Object | - | - |
yc-mailto | String | - | Set Email id |
data-id | String | - | For testing purpose like WebDriverIO |