https://github.com/3ds-cpe-emed/ds-3dx-custom-widget-samples
Examples of 3DEXPERIENCE Custom Widgets
https://github.com/3ds-cpe-emed/ds-3dx-custom-widget-samples
3dexperience custom-widgets customwidgets web-services webservices
Last synced: 14 days ago
JSON representation
Examples of 3DEXPERIENCE Custom Widgets
- Host: GitHub
- URL: https://github.com/3ds-cpe-emed/ds-3dx-custom-widget-samples
- Owner: 3ds-cpe-emed
- License: mit
- Created: 2024-03-28T12:51:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-29T11:04:49.000Z (about 1 year ago)
- Last Synced: 2025-03-31T18:07:10.746Z (about 2 months ago)
- Topics: 3dexperience, custom-widgets, customwidgets, web-services, webservices
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 11
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ds-3dx-custom-widget-samples
Examples of 3DEXPERIENCE Custom Widgets. The samples provided in this repository are merely for learning purposes and should not be used as-is in any production deployment.## custom-widget-basic-authcall
Exercise WAFData authenticatedRequest in the main.js. Makes Web service calls using DS Passport authentication. It must be used for services of the 3DEXPERIENCE.## custom-widget-basic-proxycall
Exercise WAFData proxifiedRequest in the main.js. The proxified request avoids CORS issues when calling a backend/some API that doesn't accept calls from a different domain (3dexperience.3ds.com).## custom-widget-vuejs-template01
Basic - with minimal dependencies and simplified as possible - VueJS with webpack custom widget "Hello World" demo. Requires NodeJs installed for building. I have used NodeJS 20.12.0.### Deployment considerations
#### Azure
In some of the samples if you are deploying them as an Azure Static Web App you might need to include the staticwebapp.config.json file with the distribution. This might be needed if the sample is using a straight fetch (and not a WAFData proxified call). The file should contain the following:
```json
{
"globalHeaders": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST, GET, OPTIONS"
}
}
```