-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b01a294
commit 96c934d
Showing
956 changed files
with
20,945 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+6.95 MB
01 Getting Started with the SharePoint Framework/01 Introducing SharePoint Framework.pptx
Binary file not shown.
Binary file added
BIN
+6.6 MB
...ng Started with the SharePoint Framework/02 SharePoint Framework Tools and Libraries.pptx
Binary file not shown.
Binary file added
BIN
+5.12 MB
...Started with the SharePoint Framework/03 SharePoint Framework Client-side Components.pptx
Binary file not shown.
Binary file added
BIN
+4.93 MB
01 Getting Started with the SharePoint Framework/04 Setup Development Environment.pptx
Binary file not shown.
Binary file added
BIN
+4.74 MB
01 Getting Started with the SharePoint Framework/05 Setup Office 365 Tenant.pptx
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
...g Started with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
|
||
# change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# we recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{package,bower}.json] | ||
indent_style = space | ||
indent_size = 2 |
1 change: 1 addition & 0 deletions
1
... Started with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/.gitattributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
32 changes: 32 additions & 0 deletions
32
...ting Started with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Dependency directories | ||
node_modules | ||
|
||
# Build generated files | ||
dist | ||
lib | ||
solution | ||
temp | ||
*.sppkg | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# OSX | ||
.DS_Store | ||
|
||
# Visual Studio files | ||
.ntvs_analysis.dat | ||
.vs | ||
bin | ||
obj | ||
|
||
# Resx Generated Code | ||
*.resx.ts | ||
|
||
# Styles Generated Code | ||
*.scss.ts |
14 changes: 14 additions & 0 deletions
14
...ting Started with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/.npmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Folders | ||
.vscode | ||
coverage | ||
node_modules | ||
sharepoint | ||
src | ||
temp | ||
|
||
# Files | ||
*.csproj | ||
.git* | ||
.yo-rc.json | ||
gulpfile.js | ||
tsconfig.json |
8 changes: 8 additions & 0 deletions
8
...ing Started with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/.yo-rc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"@microsoft/generator-sharepoint": { | ||
"libraryName": "helloworld-webpart", | ||
"framework": "none", | ||
"version": "1.0.0", | ||
"libraryId": "e0e3c008-4658-4bed-a0d6-a07703de7d26" | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ted with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## helloworld-webpart | ||
|
||
This is where you include your WebPart documentation. | ||
|
||
### Building the code | ||
|
||
```bash | ||
git clone the repo | ||
npm i | ||
npm i -g gulp | ||
gulp | ||
``` | ||
|
||
This package produces the following: | ||
|
||
* lib/* - intermediate-stage commonjs build artifacts | ||
* dist/* - the bundled script, along with other resources | ||
* deploy/* - all resources which should be uploaded to a CDN. | ||
|
||
### Build options | ||
|
||
gulp clean - TODO | ||
gulp test - TODO | ||
gulp serve - TODO | ||
gulp bundle - TODO | ||
gulp package-solution - TODO |
13 changes: 13 additions & 0 deletions
13
...rted with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/config/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"entries": [ | ||
{ | ||
"entry": "./lib/webparts/helloWorld/HelloWorldWebPart.js", | ||
"manifest": "./src/webparts/helloWorld/HelloWorldWebPart.manifest.json", | ||
"outputPath": "./dist/hello-world.bundle.js" | ||
} | ||
], | ||
"externals": {}, | ||
"localizedResources": { | ||
"helloWorldStrings": "webparts/helloWorld/loc/{locale}.js" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/config/copy-assets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"deployCdnPath": "temp/deploy" | ||
} |
6 changes: 6 additions & 0 deletions
6
...SharePoint Framework/Demos/Exercise 1/helloworld-webpart/config/deploy-azure-storage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"workingDir": "./temp/deploy/", | ||
"account": "<!-- STORAGE ACCOUNT NAME -->", | ||
"container": "helloworld-webpart", | ||
"accessKey": "<!-- ACCESS KEY -->" | ||
} |
10 changes: 10 additions & 0 deletions
10
...the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/config/package-solution.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"solution": { | ||
"name": "helloworld-webpart-client-side-solution", | ||
"id": "e0e3c008-4658-4bed-a0d6-a07703de7d26", | ||
"version": "1.0.0.0" | ||
}, | ||
"paths": { | ||
"zippedPackage": "solution/helloworld-webpart.sppkg" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...arted with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/config/serve.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"port": 4321, | ||
"initialPage": "https://localhost:5432/workbench", | ||
"https": true, | ||
"api": { | ||
"port": 5432, | ||
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/" | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...rted with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/config/tslint.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
// Display errors as warnings | ||
"displayAsWarning": true, | ||
// The TSLint task may have been configured with several custom lint rules | ||
// before this config file is read (for example lint rules from the tslint-microsoft-contrib | ||
// project). If true, this flag will deactivate any of these rules. | ||
"removeExistingRules": true, | ||
// When true, the TSLint task is configured with some default TSLint "rules.": | ||
"useDefaultConfigAsBase": false, | ||
// Since removeExistingRules=true and useDefaultConfigAsBase=false, there will be no lint rules | ||
// which are active, other than the list of rules below. | ||
"lintConfig": { | ||
// Opt-in to Lint rules which help to eliminate bugs in JavaScript | ||
"rules": { | ||
"class-name": false, | ||
"export-name": false, | ||
"forin": false, | ||
"label-position": false, | ||
"member-access": true, | ||
"no-arg": false, | ||
"no-console": false, | ||
"no-construct": false, | ||
"no-duplicate-case": true, | ||
"no-duplicate-variable": true, | ||
"no-eval": false, | ||
"no-function-expression": true, | ||
"no-internal-module": true, | ||
"no-shadowed-variable": true, | ||
"no-switch-case-fall-through": true, | ||
"no-unnecessary-semicolons": true, | ||
"no-unused-expression": true, | ||
"no-unused-imports": true, | ||
"no-use-before-declare": true, | ||
"no-with-statement": true, | ||
"semicolon": true, | ||
"trailing-comma": false, | ||
"typedef": false, | ||
"typedef-whitespace": false, | ||
"use-named-parameter": true, | ||
"valid-typeof": true, | ||
"variable-name": false, | ||
"whitespace": false, | ||
"prefer-const": true | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
... the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/config/write-manifests.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"cdnBasePath": "<!-- PATH TO CDN -->" | ||
} |
6 changes: 6 additions & 0 deletions
6
...ing Started with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/gulpfile.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
'use strict'; | ||
|
||
const gulp = require('gulp'); | ||
const build = require('@microsoft/sp-build-web'); | ||
|
||
build.initialize(gulp); |
27 changes: 27 additions & 0 deletions
27
...ng Started with the SharePoint Framework/Demos/Exercise 1/helloworld-webpart/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "helloworld-webpart", | ||
"version": "0.0.1", | ||
"private": true, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"dependencies": { | ||
"@microsoft/sp-client-base": "~1.0.0", | ||
"@microsoft/sp-core-library": "~1.0.0", | ||
"@microsoft/sp-webpart-base": "~1.0.0", | ||
"@types/webpack-env": ">=1.12.1 <1.14.0" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/sp-build-web": "~1.0.0", | ||
"@microsoft/sp-module-interfaces": "~1.0.0", | ||
"@microsoft/sp-webpart-workbench": "~1.0.0", | ||
"gulp": "~3.9.1", | ||
"@types/chai": ">=3.4.34 <3.6.0", | ||
"@types/mocha": ">=2.2.33 <2.6.0" | ||
}, | ||
"scripts": { | ||
"build": "gulp bundle", | ||
"clean": "gulp clean", | ||
"test": "gulp test" | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...mework/Demos/Exercise 1/helloworld-webpart/src/webparts/helloWorld/HelloWorld.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.helloWorld { | ||
.container { | ||
max-width: 700px; | ||
margin: 0px auto; | ||
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.row { | ||
padding: 20px; | ||
} | ||
|
||
.listItem { | ||
max-width: 715px; | ||
margin: 5px auto 5px auto; | ||
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.button { | ||
// Our button | ||
text-decoration: none; | ||
height: 32px; | ||
|
||
// Primary Button | ||
min-width: 80px; | ||
background-color: #0078d7; | ||
border-color: #0078d7; | ||
color: #ffffff; | ||
|
||
// Basic Button | ||
outline: transparent; | ||
position: relative; | ||
font-family: "Segoe UI WestEuropean","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
font-size: 14px; | ||
font-weight: 400; | ||
border-width: 0; | ||
text-align: center; | ||
cursor: pointer; | ||
display: inline-block; | ||
padding: 0 16px; | ||
|
||
.label { | ||
font-weight: 600; | ||
font-size: 14px; | ||
height: 32px; | ||
line-height: 32px; | ||
margin: 0 4px; | ||
vertical-align: top; | ||
display: inline-block; | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...mos/Exercise 1/helloworld-webpart/src/webparts/helloWorld/HelloWorldWebPart.manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "../../../node_modules/@microsoft/sp-module-interfaces/lib/manifestSchemas/jsonSchemas/clientSideComponentManifestSchema.json", | ||
|
||
"id": "dd331d09-a9cd-448d-a687-7e43060191e2", | ||
"alias": "HelloWorldWebPart", | ||
"componentType": "WebPart", | ||
"version": "0.0.1", | ||
"manifestVersion": 2, | ||
|
||
"preconfiguredEntries": [{ | ||
"groupId": "dd331d09-a9cd-448d-a687-7e43060191e2", | ||
"group": { "default": "Under Development" }, | ||
"title": { "default": "HelloWorld" }, | ||
"description": { "default": "HelloWorld description" }, | ||
"officeFabricIconFontName": "Page", | ||
"properties": { | ||
"description": "HelloWorld" | ||
} | ||
}] | ||
} |
58 changes: 58 additions & 0 deletions
58
...ramework/Demos/Exercise 1/helloworld-webpart/src/webparts/helloWorld/HelloWorldWebPart.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { Version } from '@microsoft/sp-core-library'; | ||
import { | ||
BaseClientSideWebPart, | ||
IPropertyPaneConfiguration, | ||
PropertyPaneTextField | ||
} from '@microsoft/sp-webpart-base'; | ||
import { escape } from '@microsoft/sp-lodash-subset'; | ||
|
||
import styles from './HelloWorld.module.scss'; | ||
import * as strings from 'helloWorldStrings'; | ||
import { IHelloWorldWebPartProps } from './IHelloWorldWebPartProps'; | ||
|
||
export default class HelloWorldWebPart extends BaseClientSideWebPart<IHelloWorldWebPartProps> { | ||
|
||
public render(): void { | ||
this.domElement.innerHTML = ` | ||
<div class="${styles.helloWorld}"> | ||
<div class="${styles.container}"> | ||
<div class="ms-Grid-row ms-bgColor-themeDark ms-fontColor-white ${styles.row}"> | ||
<div class="ms-Grid-col ms-u-lg10 ms-u-xl8 ms-u-xlPush2 ms-u-lgPush1"> | ||
<span class="ms-font-xl ms-fontColor-white">Welcome to SharePoint!</span> | ||
<p class="ms-font-l ms-fontColor-white">Customize SharePoint experiences using Web Parts.</p> | ||
<p class="ms-font-l ms-fontColor-white">${escape(this.properties.description)}</p> | ||
<a href="https://aka.ms/spfx" class="${styles.button}"> | ||
<span class="${styles.label}">Learn more</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div>`; | ||
} | ||
|
||
protected get dataVersion(): Version { | ||
return Version.parse('1.0'); | ||
} | ||
|
||
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration { | ||
return { | ||
pages: [ | ||
{ | ||
header: { | ||
description: strings.PropertyPaneDescription | ||
}, | ||
groups: [ | ||
{ | ||
groupName: strings.BasicGroupName, | ||
groupFields: [ | ||
PropertyPaneTextField('description', { | ||
label: strings.DescriptionFieldLabel | ||
}) | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...rk/Demos/Exercise 1/helloworld-webpart/src/webparts/helloWorld/IHelloWorldWebPartProps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface IHelloWorldWebPartProps { | ||
description: string; | ||
} |
7 changes: 7 additions & 0 deletions
7
...ePoint Framework/Demos/Exercise 1/helloworld-webpart/src/webparts/helloWorld/loc/en-us.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
define([], function() { | ||
return { | ||
"PropertyPaneDescription": "Description", | ||
"BasicGroupName": "Group Name", | ||
"DescriptionFieldLabel": "Description Field" | ||
} | ||
}); |
Oops, something went wrong.