![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@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#
For Development, read here
npm install @dp-websolutions/affiliates-dashboard vue vue-router
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/dist/kiwin/affiliates-dashboard.umd.js"></script>
<link rel="stylesheet" href="node_modules/@dp-websolutions/affiliates-dashboard/dist/kiwin/style.css" />
window.AffiliatesDashboard
In a compilation step, that will later generate a javascript bundle and loaded into a page
const {AffiliatesDashboard, AffiliatesDashboardRoutes} = require('@dp-websolutions/affiliates-dashboard/kiwin')
Using import and build step
import {AffiliatesDashboard, AffiliatesDashboardRoutes} from '@dp-websolutions/affiliates-dashboard/kiwin';
import '@dp-websolutions/affiliates-dashboard/kiwin/style';
After importing the module, we can create and mount the app.
import { createApp } from "vue";
import { createRouter, createWebHistory } from "vue-router";
const app = createApp(
{
template: '<affiliates-dashboard :config="config" />',
},
{ config }
);
const router = createRouter({
history: createWebHistory(),
routes: AffiliatesDashboardRoutes,
});
app.use(router);
app.component("affiliates-dashboard", AffiliatesDashboard);
app.mount("#affiliates-vue-app");
<!-- 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.