mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-09 06:25:01 +00:00
Updated sample,json and readme
This commit is contained in:
parent
cf701b2f27
commit
3d8ff2dc7e
4
samples/react-hero-webpart/.gitignore
vendored
4
samples/react-hero-webpart/.gitignore
vendored
@ -31,3 +31,7 @@ obj
|
||||
|
||||
# Styles Generated Code
|
||||
*.scss.ts
|
||||
# .CER Certificates
|
||||
*.cer
|
||||
# .PEM Certificates
|
||||
*.pem
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
## Summary
|
||||
|
||||
This solution creates a customisable Hero web part, it uses a stored collection from the PnP PropertyFieldCollectionData control
|
||||
This solution creates a customisable Hero web part, it uses a stored collection from the PnP `PropertyFieldCollectionData` control
|
||||
|
||||
![Preview](./assets/Hero-Webpart.gif)
|
||||
![Preview](./assets/collage-hero-webpart.PNG)
|
||||
@ -41,11 +41,11 @@ Version|Date|Comments
|
||||
|
||||
## Minimal Path to Awesome
|
||||
|
||||
- Clone this repository
|
||||
- Ensure that you are at the solution folder
|
||||
- in the command-line run:
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
* Clone this repository (or [download this solution as a .ZIP file](https://pnp.github.io/download-partial/?url=https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-hero-webpart) then unzip it)
|
||||
* From your command line, change your current directory to the directory containing this sample (`react-hero-webpart`, located under `samples`)
|
||||
* in the command line run:
|
||||
* `npm install`
|
||||
* `gulp serve`
|
||||
|
||||
> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit https://aka.ms/spfx-devcontainer for further instructions.
|
||||
|
||||
@ -67,16 +67,22 @@ This extension illustrates the following concepts:
|
||||
- [Publish SharePoint Framework applications to the Marketplace](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/publish-to-marketplace-overview)
|
||||
- [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - Guidance, tooling, samples and open-source controls for your Microsoft 365 development
|
||||
|
||||
|
||||
## Help
|
||||
|
||||
We do not support samples, but we this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
|
||||
|
||||
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
|
||||
|
||||
If you're having issues building the solution, please run [spfx doctor](https://pnp.github.io/cli-microsoft365/cmd/spfx/spfx-doctor/) from within the solution folder to diagnose incompatibility issues with your environment.
|
||||
|
||||
You can try looking at [issues related to this sample](https://github.com/pnp/sp-dev-fx-webparts/issues?q=label%3A%22sample%3A%20react-hero-webpart%22) to see if anybody else is having the same issues.
|
||||
|
||||
You can also try looking at [discussions related to this sample](https://github.com/pnp/sp-dev-fx-webparts/discussions?discussions_q=react-hero-webpart) and see what the community is saying.
|
||||
|
||||
If you encounter any issues while using this sample, [create a new issue](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected%2Csample%3A%20react-hero-webpart&template=bug-report.yml&sample=react-hero-webpart&authors=@omarelanis&title=react-hero-webpart%20-%20).
|
||||
|
||||
For questions regarding this sample, [create a new question](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aquestion%2Csample%3A%20react-hero-webpart&template=question.yml&sample=react-hero-webpart&authors=@omarelanis&title=react-hero-webpart%20-%20).
|
||||
|
||||
Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aenhancement%2Csample%3A%20react-hero-webpart&template=question.yml&sample=react-hero-webpart&authors=@omarelanis&title=react-hero-webpart%20-%20).
|
||||
Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aenhancement%2Csample%3A%20react-hero-webpart&template=suggestion.yml&sample=react-hero-webpart&authors=@omarelanis&title=react-hero-webpart%20-%20).
|
||||
|
||||
## Disclaimer
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
"This solution creates a customisable Hero web part, it uses a stored collection from the PnP PropertyFieldCollectionData control "
|
||||
],
|
||||
"creationDateTime": "2021-04-02",
|
||||
"updateDateTime": "2021-07-27",
|
||||
"updateDateTime": "2022-03-11",
|
||||
"products": [
|
||||
"SharePoint",
|
||||
"Office"
|
||||
|
2
samples/react-hero-webpart/package-lock.json
generated
2
samples/react-hero-webpart/package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hero-webpart",
|
||||
"version": "1.2.0",
|
||||
"version": "1.3.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -39,7 +39,7 @@
|
||||
"scriptResources": {
|
||||
"hero-webpart-web-part": {
|
||||
"type": "path",
|
||||
"path": "hero-webpart-web-part_4c4b4dd248301a34b3c1.js"
|
||||
"path": "hero-webpart-web-part.js"
|
||||
},
|
||||
"@microsoft/sp-property-pane": {
|
||||
"type": "component",
|
||||
@ -54,37 +54,37 @@
|
||||
"ControlStrings": {
|
||||
"type": "localizedPath",
|
||||
"paths": {
|
||||
"bg-BG": "ControlStrings_bg-bg_522a1ea5f2de16de592b8ca46886a63d.js",
|
||||
"ca-ES": "ControlStrings_ca-es_4d8eff889005afac31fb9d4e1c7aabf9.js",
|
||||
"da-DK": "ControlStrings_da-dk_90787dedf6fb622a9dae71c1d7764b90.js",
|
||||
"de-DE": "ControlStrings_de-de_971cd16ae82bba3c5393fbe77a37f64a.js",
|
||||
"el-GR": "ControlStrings_el-gr_81adcbb1dec84c9a6f15f57eca76afbc.js",
|
||||
"en-US": "ControlStrings_en-us_63006e9d59b60928ead38f6a06a326c4.js",
|
||||
"es-ES": "ControlStrings_es-es_287531b61d4be7e9691260b4d1d0d6b1.js",
|
||||
"et-EE": "ControlStrings_et-ee_af355596ad64e360fcc4ca95bdc10033.js",
|
||||
"eu-ES": "ControlStrings_eu-es_9dfb544c9b7e3123a5ced2bfc6d4afa6.js",
|
||||
"fi-FI": "ControlStrings_fi-fi_cd3fe25eea686995f3de5c826b7e50aa.js",
|
||||
"fr-CA": "ControlStrings_fr-ca_9b20b8b5f326cf8234aaa9c813f71415.js",
|
||||
"fr-FR": "ControlStrings_fr-fr_2890edc1e9781767448052400b504f62.js",
|
||||
"it-IT": "ControlStrings_it-it_195888750e288a74f99acdf90f6c683c.js",
|
||||
"ja-JP": "ControlStrings_ja-jp_f105e3d297271c160ad6af8c9d08e3f6.js",
|
||||
"lt-LT": "ControlStrings_lt-lt_edd93d27847240c2054dd02a8b5d3134.js",
|
||||
"lv-LV": "ControlStrings_lv-lv_590c96898d146fc81e7dc13cb1b28e18.js",
|
||||
"nb-NO": "ControlStrings_nb-no_1cea890bdecd2c1ebc54c75131db5b6b.js",
|
||||
"nl-NL": "ControlStrings_nl-nl_abe9a666eb069f686e180ac68bb0ec35.js",
|
||||
"pl-PL": "ControlStrings_pl-pl_7049b952d1206fcac235bfbdd4206632.js",
|
||||
"pt-PT": "ControlStrings_pt-pt_914f407858a0aaf2a59502e54aa8919a.js",
|
||||
"ro-RO": "ControlStrings_ro-ro_29109407ad73b7ae4fac55965c2f4d85.js",
|
||||
"ru-RU": "ControlStrings_ru-ru_a2c976e189d064c9f644ca749dce2a2b.js",
|
||||
"sk-SK": "ControlStrings_sk-sk_983adf8b958ff4892c7ac666bde1e681.js",
|
||||
"sr-Latn-RS": "ControlStrings_sr-latn-rs_0f882286bd699ed51c4d34450c8346b7.js",
|
||||
"sv-SE": "ControlStrings_sv-se_a6ddd05b01b7d1a0f400c118386d125a.js",
|
||||
"tr-TR": "ControlStrings_tr-tr_7c466b15c9744c65b58f5362b874b1d4.js",
|
||||
"vi-VN": "ControlStrings_vi-vn_673fee8a45d447962de929d733683bd0.js",
|
||||
"zh-CN": "ControlStrings_zh-cn_3b2b2a89753426ad0480e9faada9be8f.js",
|
||||
"zh-TW": "ControlStrings_zh-tw_0307fc58f9fecd4ad8623f4971b03ae3.js"
|
||||
"bg-BG": "ControlStrings_bg-bg.js",
|
||||
"ca-ES": "ControlStrings_ca-es.js",
|
||||
"da-DK": "ControlStrings_da-dk.js",
|
||||
"de-DE": "ControlStrings_de-de.js",
|
||||
"el-GR": "ControlStrings_el-gr.js",
|
||||
"en-US": "ControlStrings_en-us.js",
|
||||
"es-ES": "ControlStrings_es-es.js",
|
||||
"et-EE": "ControlStrings_et-ee.js",
|
||||
"eu-ES": "ControlStrings_eu-es.js",
|
||||
"fi-FI": "ControlStrings_fi-fi.js",
|
||||
"fr-CA": "ControlStrings_fr-ca.js",
|
||||
"fr-FR": "ControlStrings_fr-fr.js",
|
||||
"it-IT": "ControlStrings_it-it.js",
|
||||
"ja-JP": "ControlStrings_ja-jp.js",
|
||||
"lt-LT": "ControlStrings_lt-lt.js",
|
||||
"lv-LV": "ControlStrings_lv-lv.js",
|
||||
"nb-NO": "ControlStrings_nb-no.js",
|
||||
"nl-NL": "ControlStrings_nl-nl.js",
|
||||
"pl-PL": "ControlStrings_pl-pl.js",
|
||||
"pt-PT": "ControlStrings_pt-pt.js",
|
||||
"ro-RO": "ControlStrings_ro-ro.js",
|
||||
"ru-RU": "ControlStrings_ru-ru.js",
|
||||
"sk-SK": "ControlStrings_sk-sk.js",
|
||||
"sr-Latn-RS": "ControlStrings_sr-latn-rs.js",
|
||||
"sv-SE": "ControlStrings_sv-se.js",
|
||||
"tr-TR": "ControlStrings_tr-tr.js",
|
||||
"vi-VN": "ControlStrings_vi-vn.js",
|
||||
"zh-CN": "ControlStrings_zh-cn.js",
|
||||
"zh-TW": "ControlStrings_zh-tw.js"
|
||||
},
|
||||
"defaultPath": "ControlStrings_en-us_63006e9d59b60928ead38f6a06a326c4.js"
|
||||
"defaultPath": "ControlStrings_en-us.js"
|
||||
},
|
||||
"@microsoft/sp-core-library": {
|
||||
"type": "component",
|
||||
@ -108,7 +108,7 @@
|
||||
},
|
||||
"HeroWebpartWebPartStrings": {
|
||||
"type": "path",
|
||||
"path": "HeroWebpartWebPartStrings_en-us_af5a857c999c217dfbb52a3aee0e9d8a.js"
|
||||
"path": "HeroWebpartWebPartStrings_en-us.js"
|
||||
},
|
||||
"@microsoft/sp-http": {
|
||||
"type": "component",
|
||||
@ -118,36 +118,36 @@
|
||||
"PropertyControlStrings": {
|
||||
"type": "localizedPath",
|
||||
"paths": {
|
||||
"bg-BG": "PropertyControlStrings_bg-bg_8ed72ece3685811017132eb844d74d2b.js",
|
||||
"ca-ES": "PropertyControlStrings_ca-es_4584e999630b4da0f3943516915be8f0.js",
|
||||
"da-DK": "PropertyControlStrings_da-dk_1d0932d33a05e1bfcf90ff2073389182.js",
|
||||
"de-DE": "PropertyControlStrings_de-de_d40342425b678318d0419e6ad9dd6f70.js",
|
||||
"el-GR": "PropertyControlStrings_el-gr_85080a0fd923b34329ed3afc8e24f0ca.js",
|
||||
"en-US": "PropertyControlStrings_en-us_3770839de1f3a0bef2a56730368aab40.js",
|
||||
"es-ES": "PropertyControlStrings_es-es_69e478d7c5043b45e6628ac2c9e2de4b.js",
|
||||
"et-EE": "PropertyControlStrings_et-ee_598f724341a6fb38723922f994e302e0.js",
|
||||
"fi-FI": "PropertyControlStrings_fi-fi_0f6d7d22b90096f65e849824ea36f036.js",
|
||||
"fr-FR": "PropertyControlStrings_fr-fr_f17d1581e1807a854fa5df15365797bb.js",
|
||||
"it-IT": "PropertyControlStrings_it-it_8f63bbadd3620640d822549f04da2ccb.js",
|
||||
"ja-JP": "PropertyControlStrings_ja-jp_1ab0c1b344e245022153106fc5722a75.js",
|
||||
"lt-LT": "PropertyControlStrings_lt-lt_1e9c7953e8515297e074b213288dfaaa.js",
|
||||
"lv-LV": "PropertyControlStrings_lv-lv_56d7a5f081517fa938fa8bc2d903cd97.js",
|
||||
"nb-NO": "PropertyControlStrings_nb-no_357d85cd6acd4c9cdfc5cc8c0b198986.js",
|
||||
"nl-NL": "PropertyControlStrings_nl-nl_217fc5878d50553567c652e81c1b743c.js",
|
||||
"no": "PropertyControlStrings_no_819bcb574a9a9b7bee923721da82f3af.js",
|
||||
"pl-PL": "PropertyControlStrings_pl-pl_c233eab225f8a0a54bfd72e8cf26fcad.js",
|
||||
"pt-PT": "PropertyControlStrings_pt-pt_4e8ff2c4c080c29048b237bec8d6c857.js",
|
||||
"ro-RO": "PropertyControlStrings_ro-ro_5a1eb0ace969b2930de4c2b89f9791cc.js",
|
||||
"ru-RU": "PropertyControlStrings_ru-ru_f2b220073240303d6e0a4693c7a95d24.js",
|
||||
"sk-SK": "PropertyControlStrings_sk-sk_753cba40099869f50de2c9bc8d1f54e3.js",
|
||||
"sr-Latn-RS": "PropertyControlStrings_sr-latn-rs_673d7d1f6c33e4e706753cf7dceb0655.js",
|
||||
"sv-SE": "PropertyControlStrings_sv-se_5dbecd28947c574648adbe0516fa2b3b.js",
|
||||
"tr-TR": "PropertyControlStrings_tr-tr_cda80038fa0f28a0926730ba014ef8d2.js",
|
||||
"vi-VN": "PropertyControlStrings_vi-vn_e285a250de584da19f4d2bcda40cd095.js",
|
||||
"zh-CN": "PropertyControlStrings_zh-cn_f54e63ffc9812984f622f4eef90882c9.js",
|
||||
"zh-TW": "PropertyControlStrings_zh-tw_c48095a54869748740db4e3387cd8006.js"
|
||||
"bg-BG": "PropertyControlStrings_bg-bg.js",
|
||||
"ca-ES": "PropertyControlStrings_ca-es.js",
|
||||
"da-DK": "PropertyControlStrings_da-dk.js",
|
||||
"de-DE": "PropertyControlStrings_de-de.js",
|
||||
"el-GR": "PropertyControlStrings_el-gr.js",
|
||||
"en-US": "PropertyControlStrings_en-us.js",
|
||||
"es-ES": "PropertyControlStrings_es-es.js",
|
||||
"et-EE": "PropertyControlStrings_et-ee.js",
|
||||
"fi-FI": "PropertyControlStrings_fi-fi.js",
|
||||
"fr-FR": "PropertyControlStrings_fr-fr.js",
|
||||
"it-IT": "PropertyControlStrings_it-it.js",
|
||||
"ja-JP": "PropertyControlStrings_ja-jp.js",
|
||||
"lt-LT": "PropertyControlStrings_lt-lt.js",
|
||||
"lv-LV": "PropertyControlStrings_lv-lv.js",
|
||||
"nb-NO": "PropertyControlStrings_nb-no.js",
|
||||
"nl-NL": "PropertyControlStrings_nl-nl.js",
|
||||
"no": "PropertyControlStrings_no.js",
|
||||
"pl-PL": "PropertyControlStrings_pl-pl.js",
|
||||
"pt-PT": "PropertyControlStrings_pt-pt.js",
|
||||
"ro-RO": "PropertyControlStrings_ro-ro.js",
|
||||
"ru-RU": "PropertyControlStrings_ru-ru.js",
|
||||
"sk-SK": "PropertyControlStrings_sk-sk.js",
|
||||
"sr-Latn-RS": "PropertyControlStrings_sr-latn-rs.js",
|
||||
"sv-SE": "PropertyControlStrings_sv-se.js",
|
||||
"tr-TR": "PropertyControlStrings_tr-tr.js",
|
||||
"vi-VN": "PropertyControlStrings_vi-vn.js",
|
||||
"zh-CN": "PropertyControlStrings_zh-cn.js",
|
||||
"zh-TW": "PropertyControlStrings_zh-tw.js"
|
||||
},
|
||||
"defaultPath": "PropertyControlStrings_en-us_3770839de1f3a0bef2a56730368aab40.js"
|
||||
"defaultPath": "PropertyControlStrings_en-us.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user