Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@dp-websolutions/affiliates-dashboard
Advanced tools
This repository contains the code of a Vue app bundled as an installable plugin from npm.
This repository contains the code of a Vue app bundled as an installable plugin from npm.
https://docs.google.com/document/d/18z9dX3NaaV23x8_qmUBRTKj3vsL_LRTeaoF2wWeelYk/edit#
npm install @dp-websolutions/affiliates-dashboard vue vue-router tailwindcss
This module exports a function that receives a config
object and it will return a new vue app.
You can load this module in different ways:
Load the script directly into a page
<script src="node_modules/@dp-websolutions/affiliates-dashboard/affiliates-dashboard.umd.js"></script>
window.AffiliatesDashboard
In a compilation step, that will later generate a javascript bundle and loaded into a page
const AffiliatesDashboard = require('@dp-websolutions/affiliates-dashboard')
Using import
import AffiliatesDashboard from '@dp-websolutions/affiliates-dashboard'
After importing the module, we can create and mount the app.
const app = AffiliatesDashboard({}); // See below the required configuration
app.mount("#affiliates-dashboard");
<!-- The app will render here -->
<div id="affiliates-dashboard"></div>
The configuration object passed to this component should provide the following:
type: string
Default: ''
Options: 'jemlit'
'kiwin'
Tell which platform is loading the dashboard
type: string
Default: en
Will use this value to select the right translations.
type: float
Default: 0
This is the percentage of bonus that the affiliate gets every time another user makes a purchase using their referral code.
type: float
Default: 0
This is the percentage of bonus that users get on top of their purchase every time they user a referral code.
type: string
Default: ''
Example: 'https://jemlit.com/r/'
'https://kiwin.io/r/'
This is the url that points to the affiliates dashboard or referral page
type: object
Default: {}
key, value list of api endpoints.
type: string
Example: 'https://jemlit.com/api/affiliates/nickname'
type: string
Example: 'https://jemlit.com/api/affiliates/me'
type: string
Example: 'https://jemlit.com/api/affiliates/claim'
type: string
Example: 'https://jemlit.com/api/affiliates/claim'
type: string
Example: 'https://jemlit.com/api/affiliates/history/referrals'
type: string
Example: 'https://jemlit.com/api/affiliates/history/transactions'
type: object
Default: {}
Example:
translations: {
affiliates_landing: {
'cta-authenticated': 'Set the nickname & Start!',
'cta-visitor': 'Start now!'
},
affiliates_dashboard: {
referrals: 'You have :count referrals'
}
}
key, value list of translated texts
type: object
Default: {}
Example:
assets: {
logo: 'https://..../logo.png'
}
To develop locally, clone the repository and run the following commands from within the directory
npm run install
npm run dev
localhost:8080
any changes will automatically reload the pageFAQs
This repository contains the code of a Vue app bundled as an installable plugin from npm.
The npm package @dp-websolutions/affiliates-dashboard receives a total of 5 weekly downloads. As such, @dp-websolutions/affiliates-dashboard popularity was classified as not popular.
We found that @dp-websolutions/affiliates-dashboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.