Updated to SPFX 1.14.0 in /samples/react-star-ratings

This commit is contained in:
Takashi Shinohara 2022-03-25 22:19:21 +09:00
parent 25bfa4e146
commit e6183b430b
7 changed files with 4861 additions and 3606 deletions

View File

@ -8,16 +8,15 @@ This web part demonstrates *Star Ratings* capablities to SharePoint News. The "R
## Compatibility ## Compatibility
![SPFx 1.12.1](https://img.shields.io/badge/SPFx-1.12.1-green.svg) ![SPFx 1.14.0](https://img.shields.io/badge/SPFx-1.14.0-green.svg)
![Node.js v14 | v12 | v10](https://img.shields.io/badge/Node.js-v14%20%7C%20v12%20%7C%20v10-green.svg) ![Node.js v14 | v12](https://img.shields.io/badge/Node.js-v14%20%7C%20v12-green.svg)
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg) ![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg)
![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower") ![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower")
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1") ![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
![Local Workbench Incompatible](https://img.shields.io/badge/Local%20Workbench-Incompatible-red.svg "This solution requires the ratings feature from SharePoint Online") ![Local Workbench Unsupported](https://img.shields.io/badge/Local%20Workbench-Unsupported-red.svg "Local workbench is no longer available as of SPFx 1.13 and above")
![Hosted Workbench Not Compatible](https://img.shields.io/badge/Hosted%20Workbench-Not-Compatible-red.svg "This web part needs to run on a page") ![Hosted Workbench Incompatible](https://img.shields.io/badge/Hosted%20Workbench-Incompatible-red.svg "This web part needs to run on a page")
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg) ![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
## Prerequisites ## Prerequisites
1. Enable the "Ratings" feature of the site collection. The feature GUID is `915c240e-a6cc-49b8-8b2c-0bff8b553ed3`. 1. Enable the "Ratings" feature of the site collection. The feature GUID is `915c240e-a6cc-49b8-8b2c-0bff8b553ed3`.
@ -45,6 +44,7 @@ react-star-ratings|[Takashi Shinohara](https://github.com/karamem0) ([@karamem0]
Version|Date|Comments Version|Date|Comments
-------|----|-------- -------|----|--------
1.2|March 28, 2022|Upgraded to SPFx v1.14
1.1|January 12, 2022|Updated to retrieve values from API 1.1|January 12, 2022|Updated to retrieve values from API
1.0|October 7, 2021|Initial release 1.0|October 7, 2021|Initial release
@ -64,5 +64,4 @@ Finally, if you have an idea for improvement, [make a suggestion](https://github
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** **THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
<img src="https://pnptelemetry.azurewebsites.net/sp-dev-fx-webparts/samples/react-star-ratings" /> <img src="https://pnptelemetry.azurewebsites.net/sp-dev-fx-webparts/samples/react-star-ratings" />

View File

@ -3,7 +3,7 @@
"solution": { "solution": {
"name": "ratings", "name": "ratings",
"id": "1fac5bb8-6a05-4c52-aee3-496f6921ac1a", "id": "1fac5bb8-6a05-4c52-aee3-496f6921ac1a",
"version": "1.0.0.0", "version": "1.2.0.0",
"includeClientSideAssets": true, "includeClientSideAssets": true,
"skipFeatureDeployment": true, "skipFeatureDeployment": true,
"isDomainIsolated": false, "isDomainIsolated": false,

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "ratings", "name": "ratings",
"version": "1.1.0", "version": "1.2.0",
"private": true, "private": true,
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {
@ -9,26 +9,24 @@
"test": "gulp test" "test": "gulp test"
}, },
"dependencies": { "dependencies": {
"@fluentui/react": "^7.177.2", "@microsoft/sp-core-library": "1.14.0",
"@microsoft/sp-core-library": "1.12.1", "@microsoft/sp-lodash-subset": "1.14.0",
"@microsoft/sp-lodash-subset": "1.12.1", "@microsoft/sp-office-ui-fabric-core": "1.14.0",
"@microsoft/sp-office-ui-fabric-core": "1.12.1", "@microsoft/sp-property-pane": "1.14.0",
"@microsoft/sp-property-pane": "1.12.1", "@microsoft/sp-webpart-base": "1.14.0",
"@microsoft/sp-webpart-base": "1.12.1", "office-ui-fabric-react": "7.183.1",
"office-ui-fabric-react": "7.156.0", "react": "16.13.1",
"react": "16.9.0", "react-dom": "16.13.1"
"react-dom": "16.9.0"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "16.9.36", "@microsoft/rush-stack-compiler-3.9": "0.4.48",
"@microsoft/sp-build-web": "1.14.0",
"@microsoft/sp-module-interfaces": "1.14.0",
"@microsoft/sp-tslint-rules": "1.14.0",
"@types/react": "16.9.51",
"@types/react-dom": "16.9.8", "@types/react-dom": "16.9.8",
"@microsoft/sp-build-web": "1.12.1", "@types/webpack-env": "1.16.3",
"@microsoft/sp-tslint-rules": "1.12.1",
"@microsoft/sp-module-interfaces": "1.12.1",
"@microsoft/sp-webpart-workbench": "1.12.1",
"@microsoft/rush-stack-compiler-3.7": "0.2.3",
"gulp": "~4.0.2",
"ajv": "~6.12.3", "ajv": "~6.12.3",
"@types/webpack-env": "1.13.1" "gulp": "~4.0.2"
} }
} }

View File

@ -7,7 +7,7 @@ import {
Rating, Rating,
RatingSize, RatingSize,
TooltipHost TooltipHost
} from '@fluentui/react'; } from 'office-ui-fabric-react';
import styles from './Ratings.module.scss'; import styles from './Ratings.module.scss';
import * as strings from 'RatingsWebPartStrings'; import * as strings from 'RatingsWebPartStrings';
import { IRatingsProps } from './IRatingsProps'; import { IRatingsProps } from './IRatingsProps';

View File

@ -1,5 +1,5 @@
{ {
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.7/includes/tsconfig-web.json", "extends": "./node_modules/@microsoft/rush-stack-compiler-3.9/includes/tsconfig-web.json",
"compilerOptions": { "compilerOptions": {
"target": "es5", "target": "es5",
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,

View File

@ -17,7 +17,6 @@
"no-switch-case-fall-through": true, "no-switch-case-fall-through": true,
"no-unnecessary-semicolons": true, "no-unnecessary-semicolons": true,
"no-unused-expression": true, "no-unused-expression": true,
"no-use-before-declare": true,
"no-with-statement": true, "no-with-statement": true,
"semicolon": true, "semicolon": true,
"trailing-comma": false, "trailing-comma": false,