Add Dynamic Poll Web Part with core functionality and styling

- Initialize Gulp build process with gulpfile.js
- Create package.json for project dependencies and scripts
- Add TypeScript declarations for SCSS modules
- Implement DynamicPollWebPart with property pane configuration
- Create PollDataService for SharePoint list interactions
- Develop core polling logic in PollCore.ts
- Define types for polls and answers in PollTypes.ts
- Create React components for DynamicPoll UI
- Add localization support for English and German
- Implement unit tests for core polling functionality
- Set up TypeScript and TSLint configurations
This commit is contained in:
Torsten Brendgen
2026-08-23 22:51:10 +02:00
commit ca41674188
30 changed files with 955 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"dynamic-poll-web-part": {
"components": [{
"entrypoint": "./lib/webparts/dynamicPoll/DynamicPollWebPart.js",
"manifest": "./src/webparts/dynamicPoll/DynamicPollWebPart.manifest.json"
}]
}
},
"externals": {},
"localizedResources": {
"DynamicPollWebPartStrings": "lib/webparts/dynamicPoll/loc/{locale}.js"
}
}
+2
View File
@@ -0,0 +1,2 @@
{"$schema":"https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json","deployCdnPath":"temp/deploy"}
+12
View File
@@ -0,0 +1,12 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": {
"name": "dynamic-poll-client-side-solution",
"id": "900239c9-b6c7-495d-a386-2d08a81a66f3",
"version": "1.0.0.0",
"includeClientSideAssets": true,
"skipFeatureDeployment": true
},
"paths": { "zippedPackage": "solution/dynamic-poll.sppkg" }
}
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
"port": 4321, "https": true, "initialPage": "https://localhost:5432/workbench",
"api": { "port": 5432, "entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/" }
}
+2
View File
@@ -0,0 +1,2 @@
{"$schema":"https://developer.microsoft.com/json-schemas/spfx-build/write-manifests.schema.json","cdnBasePath":"<!-- PATH TO CDN -->"}