![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
demoway-sdk
Advanced tools
pnpm add demoway-sdk
npm install demoway-sdk --save
yarn add demoway-sdk
Initialize DemoWay SDK before application rendering
import { initialize, IUserInfo } from 'demoway-sdk';
import { createApp } from 'vue';
initialize({
accessToken: '',
appId: '',
userInfo: {
openId: '',
userName: '',
nickName: ''
xxx: '',
company: {
id: ''
name: ''
}
} as IUserInfo, // IUserInfo is TS interface, you can remove it if you are not using TS
})
/**
* render your app
*/
createApp(App).mount();
import { initialize, IUserInfo } from 'demoway-sdk';
import { createRoot } from 'react-dom/client';
initialize({
accessToken: '',
appId: '',
userInfo: {
openId: '',
userName: '',
nickName: ''
xxx: '',
company: {
id: ''
name: ''
}
} as IUserInfo, // IUserInfo is TS interface, you can remove it if you are not using TS
})
/**
* render your app
*/
const domNode = document.getElementById('root');
const root = createRoot(domNode);
root.render(<App />);
Name | Required | Description |
---|---|---|
accessToken | required | temporary access token fot test, you can get it from your DemoWay dashboard |
appId | required | your DemoWay application id, you can get it from your DemoWay dashboard |
userInfo | optional | strongly recommend |
userInfo.openId | optional | open user id of the user in your system, you can associate each user with the users in your own system when retrieving user access records through the API. strongly recommend |
userInfo.nickName | optional | the nick name of the user in your system |
userInfo.xxx | optional | you can add string value with any key name to "userInfo" |
userInfo.company | optional | strongly recommend |
userInfo.company.id | optional | the company id of the user in your system |
userInfo.company.name | required | the company or organization name of the user, required in userInfo.company |
When a user accesses the demo, Demoway will create an anonymous user for them. If you provide the "userInfo" field when initializing the SDK, this information will be associated with the anonymous user. In the Demoway dashboard, when viewing the user's access records, you may also see this information. This makes it convenient to identify different users. If the "userInfo" includes the "openId" field, you can associate each user with the users in your own system when retrieving access records through the API.
Open a demo in dialog, which can switch to full screen mode.
import { openDemoDialog } from 'demoway-sdk';
openDemoDialog('demo-id'); // demo-id can be got from DemoWay dashboard
Open a checklist in dialog, which can switch to full screen mode.
import { openDemoDialog } from 'demoway-sdk';
openDemoDialog('demo-id', {checklistId: 'checklist-id'}); // demo-id and checklist-id can be got from DemoWay dashboard
Enable recording feature and show recording board by calling enableRecord
function.
import { enableRecord } from 'demoway-sdk';
// enable recording feature and show recording board
enableRecord();
Enable recording feature and show recording board by rage click.
import { enableRecord, rageClick } from 'demoway-sdk';
const button = document.querySelector('button');
// rage click button 5 times with 1000ms interval
rageClick(button, 5, 1000).then(() => {
// enable recording feature and show recording board
return enableRecord();
});
FAQs
## Install
The npm package demoway-sdk receives a total of 5 weekly downloads. As such, demoway-sdk popularity was classified as not popular.
We found that demoway-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.