Merge pull request #1587 from DonKirkham/dkirkham-react-word-game
This commit is contained in:
commit
83ddd64e68
|
@ -2,10 +2,11 @@
|
|||
"@microsoft/generator-sharepoint": {
|
||||
"isCreatingSolution": true,
|
||||
"environment": "onprem19",
|
||||
"version": "1.10.0",
|
||||
"version": "1.11.0",
|
||||
"libraryName": "word-game",
|
||||
"libraryId": "751649b4-2c99-4349-9d65-9a6cc7533dfa",
|
||||
"packageManager": "npm",
|
||||
"componentType": "webpart"
|
||||
"componentType": "webpart",
|
||||
"isDomainIsolated": false
|
||||
}
|
||||
}
|
|
@ -8,7 +8,7 @@ A fun game where you unscramble the words before the time runs out. It stores ev
|
|||
|
||||
## Used SharePoint Framework Version
|
||||
|
||||
![1.4.0](https://img.shields.io/badge/version-1.4.0-green.svg)
|
||||
![1.11.0](https://img.shields.io/badge/version-1.11.0-green.svg)
|
||||
|
||||
## Applies to
|
||||
|
||||
|
@ -25,12 +25,14 @@ A fun game where you unscramble the words before the time runs out. It stores ev
|
|||
Solution|Author(s)
|
||||
--------|---------
|
||||
react-word-game | Neil Barkhina ([www.neilb.net](https://www.neilb.net/))
|
||||
react-word-game | Don Kirkham ([@DonKirkham](https://twitter.com/DonKirkham/))
|
||||
|
||||
## Version history
|
||||
|
||||
Version|Date|Comments
|
||||
-------|----|--------
|
||||
1.0|May 27, 2020|Initial release
|
||||
2.0|Nov 4, 2020|Upgrade to SPFx v1.11.0 (Don Kirkham)
|
||||
|
||||
## Disclaimer
|
||||
|
||||
|
@ -49,7 +51,7 @@ Version|Date|Comments
|
|||
* To Deploy it in your SharePoint Environment
|
||||
* `gulp --ship`
|
||||
* `gulp package-solution --ship`
|
||||
* Upload the .sppkg file from sharepoint\solution folder into your App Catalog
|
||||
* Upload the `.sppkg` file from the `sharepoint\solution` folder into your App Catalog
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
@ -5,7 +5,15 @@
|
|||
"id": "751649b4-2c99-4349-9d65-9a6cc7533dfa",
|
||||
"version": "1.0.0.3",
|
||||
"includeClientSideAssets": true,
|
||||
"skipFeatureDeployment": true
|
||||
"skipFeatureDeployment": true,
|
||||
"isDomainIsolated": false,
|
||||
"developer": {
|
||||
"name": "Contoso",
|
||||
"privacyUrl": "https://contoso.com/privacy",
|
||||
"termsOfUseUrl": "https://contoso.com/terms-of-use",
|
||||
"websiteUrl": "https://contoso.com/my-app",
|
||||
"mpnId": "000000"
|
||||
}
|
||||
},
|
||||
"paths": {
|
||||
"zippedPackage": "solution/word-game.sppkg"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -12,27 +12,27 @@
|
|||
"test": "gulp test"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "15.6.2",
|
||||
"react-dom": "15.6.2",
|
||||
"@types/react": "15.6.6",
|
||||
"@types/react-dom": "15.5.6",
|
||||
"@microsoft/sp-core-library": "~1.4.0",
|
||||
"@microsoft/sp-webpart-base": "~1.4.0",
|
||||
"@microsoft/sp-lodash-subset": "~1.4.0",
|
||||
"@microsoft/sp-office-ui-fabric-core": "~1.4.0",
|
||||
"@types/webpack-env": "1.13.1",
|
||||
"@types/es6-promise": "0.0.33"
|
||||
"@microsoft/sp-core-library": "1.11.0",
|
||||
"@microsoft/sp-lodash-subset": "1.11.0",
|
||||
"@microsoft/sp-office-ui-fabric-core": "1.11.0",
|
||||
"@microsoft/sp-property-pane": "1.11.0",
|
||||
"@microsoft/sp-webpart-base": "1.11.0",
|
||||
"office-ui-fabric-react": "6.214.0",
|
||||
"react": "16.8.5",
|
||||
"react-dom": "16.8.5"
|
||||
},
|
||||
"resolutions": {
|
||||
"@types/react": "15.6.6"
|
||||
"@types/react": "16.8.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/sp-build-web": "~1.4.1",
|
||||
"@microsoft/sp-module-interfaces": "~1.4.1",
|
||||
"@microsoft/sp-webpart-workbench": "~1.4.1",
|
||||
"gulp": "~3.9.1",
|
||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||
"@microsoft/sp-build-web": "1.11.0",
|
||||
"@microsoft/sp-module-interfaces": "1.11.0",
|
||||
"@microsoft/sp-tslint-rules": "1.11.0",
|
||||
"@microsoft/sp-webpart-workbench": "1.11.0",
|
||||
"@types/chai": "3.4.34",
|
||||
"@types/mocha": "2.2.38",
|
||||
"ajv": "~5.2.2"
|
||||
"ajv": "~5.2.2",
|
||||
"gulp": "~3.9.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,24 +3,32 @@
|
|||
"id": "e33f043c-3d0d-4873-a5aa-3dd37f70d3bd",
|
||||
"alias": "WordGameWebPart",
|
||||
"componentType": "WebPart",
|
||||
|
||||
// The "*" signifies that the version should be taken from the package.json
|
||||
"version": "*",
|
||||
"manifestVersion": 2,
|
||||
|
||||
"supportedHosts": [
|
||||
"SharePointWebPart"
|
||||
],
|
||||
// If true, the component can only be installed on sites where Custom Script is allowed.
|
||||
// Components that allow authors to embed arbitrary script code should set this to true.
|
||||
// https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f
|
||||
"requiresCustomScript": false,
|
||||
|
||||
"preconfiguredEntries": [{
|
||||
"preconfiguredEntries": [
|
||||
{
|
||||
"groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Other
|
||||
"group": { "default": "Other" },
|
||||
"title": { "default": "WordGame" },
|
||||
"description": { "default": "A fun game where you unscramble the words before the time runs out" },
|
||||
"group": {
|
||||
"default": "Other"
|
||||
},
|
||||
"title": {
|
||||
"default": "WordGame"
|
||||
},
|
||||
"description": {
|
||||
"default": "A fun game where you unscramble the words before the time runs out"
|
||||
},
|
||||
"officeFabricIconFontName": "TextField",
|
||||
"properties": {
|
||||
"description": "WordGame"
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -2,12 +2,13 @@ import * as React from 'react';
|
|||
import * as ReactDom from 'react-dom';
|
||||
import { Version } from '@microsoft/sp-core-library';
|
||||
import {
|
||||
BaseClientSideWebPart,
|
||||
BaseClientSideWebPart
|
||||
} from '@microsoft/sp-webpart-base';
|
||||
import {
|
||||
IPropertyPaneConfiguration,
|
||||
PropertyPaneTextField,
|
||||
PropertyPaneCheckbox
|
||||
} from '@microsoft/sp-webpart-base';
|
||||
|
||||
} from "@microsoft/sp-property-pane";
|
||||
import WordGame from './components/WordGame';
|
||||
import { IWordGameProps } from './components/IWordGameProps';
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
@import '~@microsoft/sp-office-ui-fabric-core/dist/sass/SPFabricCore.scss';
|
||||
@import "~office-ui-fabric-react/dist/sass/References.scss";
|
||||
|
||||
// WORDGAME STYLES
|
||||
|
||||
:global .wordGameCustom {
|
||||
|
||||
input[type=text], select {
|
||||
input[type="text"],
|
||||
select {
|
||||
width: 100%;
|
||||
padding: 12px 20px;
|
||||
margin: 8px 0;
|
||||
|
@ -15,9 +15,9 @@
|
|||
}
|
||||
|
||||
button,
|
||||
input[type=submit] {
|
||||
input[type="submit"] {
|
||||
width: 100%;
|
||||
background-color: #4CAF50;
|
||||
background-color: #4caf50;
|
||||
color: white;
|
||||
padding: 14px 20px;
|
||||
margin: 8px 0;
|
||||
|
@ -26,7 +26,7 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
input[type=submit]:hover {
|
||||
input[type="submit"]:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
|
||||
|
@ -103,16 +103,11 @@
|
|||
padding-bottom: 3px;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// OFFICE STYLES
|
||||
|
||||
.wordGame {
|
||||
|
||||
|
||||
.container {
|
||||
max-width: 700px;
|
||||
margin: 0px auto;
|
||||
|
@ -163,7 +158,8 @@
|
|||
// Basic Button
|
||||
outline: transparent;
|
||||
position: relative;
|
||||
font-family: "Segoe UI WestEuropean","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif;
|
||||
font-family: "Segoe UI WestEuropean", "Segoe UI", -apple-system,
|
||||
BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: $ms-font-size-m;
|
||||
font-weight: $ms-font-weight-regular;
|
||||
|
|
|
@ -36,8 +36,8 @@ export default class WordGame extends React.Component<IWordGameProps, IWordGameS
|
|||
private timerInterval: number = -1;
|
||||
private numTimer: number;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
constructor(props: IWordGameProps) {
|
||||
super(props);
|
||||
|
||||
console.log('wordgame constructor finished');
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ export interface IWordHighScoresProps {
|
|||
|
||||
export default class WordHighScores extends React.Component<IWordHighScoresProps, {}> {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
constructor(props: IWordHighScoresProps) {
|
||||
super(props);
|
||||
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 933 B |
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.3/includes/tsconfig-web.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
@ -9,6 +10,10 @@
|
|||
"sourceMap": true,
|
||||
"experimentalDecorators": true,
|
||||
"skipLibCheck": true,
|
||||
"outDir": "lib",
|
||||
"inlineSources": false,
|
||||
"strictNullChecks": false,
|
||||
"noUnusedLocals": false,
|
||||
"typeRoots": [
|
||||
"./node_modules/@types",
|
||||
"./node_modules/@microsoft"
|
||||
|
@ -22,5 +27,13 @@
|
|||
"dom",
|
||||
"es2015.collection"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"lib"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue