1.1.13 • Published 3 years ago
sunnygreen-service v1.1.13
SUNNYGREEN SERVICE
This service is provided to control the operation between front end and back end
Install
# with npm
npm i sunnygreen-service
Usage
Create a .env
file in the root directory of your project. Add
environment-specific variables on new lines in the form of NAME=VALUE
.
For example:
BASE_URL=<URL>//your url
FIREBASE_URL=<FIREBASE_YEL>//your firebase url
SECRETKEY=<KEY>//your secretky
RULES_URL=<URL>//your url
REGISTER_URL=<URL>//your url
Plugin registration
Add it as a Vue plugin:
// main.js
// this import all
import service from 'sunnygreen-service/byPass'
Vue.prototype.$Service = service
Add it in local plugin
// main.js
// web service function
import webService from 'sunnygreen-service/webService'
Vue.prototype.$webService = webService
//local file
// index.js or index.vue
import webService from 'sunnygreen-service/<SERVICE_NAME>'
Example import local in vue
// example
import PACService from 'sunnygreen-service/PACService'
created() {
this.pacService = new PACService()
}
mounted() {
this.pacService
.getInstance()
.getIP()
.then((res) => {
//bra bra
})
}
SERVICE NAME
import AffiliateService from 'sunnygreen-service/AffiliateService'
import BankService from 'sunnygreen-service/BankService'
import BonusService from 'sunnygreen-service/BonusService'
import CashbackService from 'sunnygreen-service/CashbackService'
import CreditService from 'sunnygreen-service/CreditService'
import HistoryService from 'sunnygreen-service/HistoryService'
import PACService from 'sunnygreen-service/PACService'
import SysConfigService from 'sunnygreen-service/SysConfigService'
import WalletService from 'sunnygreen-service/WalletService'
CHANGE LOG
See CHANGELOG.md
1.1.9
3 years ago
1.1.12
3 years ago
1.1.11
3 years ago
1.1.10
3 years ago
1.1.13
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.11
3 years ago
1.0.10
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