Skip to content
Permalink
Browse files

Commit to master

  • Loading branch information...
adreno-abhi committed Jul 21, 2019
1 parent aa4a53f commit ee02c46352c6461625c569a8e342f33647d219f8
Showing with 38,602 additions and 0 deletions.
  1. +25 −0 TestForm/.editorconfig
  2. +32 −0 TestForm/.gitignore
  3. +5 −0 TestForm/.vscode/extensions.json
  4. +43 −0 TestForm/.vscode/launch.json
  5. +13 −0 TestForm/.vscode/settings.json
  6. +12 −0 TestForm/.yo-rc.json
  7. +26 −0 TestForm/README.md
  8. +40 −0 TestForm/config/config.json
  9. +4 −0 TestForm/config/copy-assets.json
  10. +7 −0 TestForm/config/deploy-azure-storage.json
  11. +13 −0 TestForm/config/package-solution.json
  12. +10 −0 TestForm/config/serve.json
  13. +4 −0 TestForm/config/write-manifests.json
  14. +7 −0 TestForm/gulpfile.js
  15. +17,440 −0 TestForm/package-lock.json
  16. +35 −0 TestForm/package.json
  17. +1 −0 TestForm/src/index.ts
  18. +27 −0 TestForm/src/webparts/testForm/TestFormWebPart.manifest.json
  19. +74 −0 TestForm/src/webparts/testForm/TestFormWebPart.module.scss
  20. +232 −0 TestForm/src/webparts/testForm/TestFormWebPart.ts
  21. BIN TestForm/src/webparts/testForm/css/images/ui-icons_444444_256x240.png
  22. BIN TestForm/src/webparts/testForm/css/images/ui-icons_555555_256x240.png
  23. BIN TestForm/src/webparts/testForm/css/images/ui-icons_777620_256x240.png
  24. BIN TestForm/src/webparts/testForm/css/images/ui-icons_777777_256x240.png
  25. BIN TestForm/src/webparts/testForm/css/images/ui-icons_cc0000_256x240.png
  26. BIN TestForm/src/webparts/testForm/css/images/ui-icons_ffffff_256x240.png
  27. +1,311 −0 TestForm/src/webparts/testForm/css/jquery-ui.css
  28. +7 −0 TestForm/src/webparts/testForm/loc/en-us.js
  29. +10 −0 TestForm/src/webparts/testForm/loc/mystrings.d.ts
  30. +139 −0 TestForm/src/webparts/testForm/scripts/app.js
  31. +18,706 −0 TestForm/src/webparts/testForm/scripts/jquery-ui.js
  32. +311 −0 TestForm/src/webparts/testForm/scripts/sp.peoplepicker.js
  33. BIN TestForm/teams/be0bc8a5-48df-4244-a48d-60ee48cd285e_color.png
  34. BIN TestForm/teams/be0bc8a5-48df-4244-a48d-60ee48cd285e_outline.png
  35. +38 −0 TestForm/tsconfig.json
  36. +30 −0 TestForm/tslint.json
@@ -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
@@ -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
@@ -0,0 +1,5 @@
{
"recommendations": [
"msjsdiag.debugger-for-chrome"
]
}
@@ -0,0 +1,43 @@
{
/**
* Install Chrome Debugger Extension for Visual Studio Code to debug your components with the
* Chrome browser: https://aka.ms/spfx-debugger-extensions
*/
"version": "0.2.0",
"configurations": [{
"name": "Local workbench",
"type": "chrome",
"request": "launch",
"url": "https://localhost:4321/temp/workbench.html",
"webRoot": "${workspaceRoot}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"runtimeArgs": [
"--remote-debugging-port=9222"
]
},
{
"name": "Hosted workbench",
"type": "chrome",
"request": "launch",
"url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
"webRoot": "${workspaceRoot}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"runtimeArgs": [
"--remote-debugging-port=9222",
"-incognito"
]
}
]
}
@@ -0,0 +1,13 @@
// Place your settings in this file to overwrite default and user settings.
{
// Configure glob patterns for excluding files and folders in the file explorer.
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/bower_components": true,
"**/coverage": true,
"**/lib-amd": true,
"src/**/*.scss.ts": true
},
"typescript.tsdk": ".\\node_modules\\typescript\\lib"
}
@@ -0,0 +1,12 @@
{
"@microsoft/generator-sharepoint": {
"isCreatingSolution": true,
"environment": "spo",
"version": "1.8.2",
"libraryName": "test-form",
"libraryId": "c08430ad-431a-4d5f-96e1-f4bbd013b58a",
"packageManager": "npm",
"isDomainIsolated": true,
"componentType": "webpart"
}
}
@@ -0,0 +1,26 @@
## test-form

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
@@ -0,0 +1,40 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"test-form-web-part": {
"components": [
{
"entrypoint": "./lib/webparts/testForm/TestFormWebPart.js",
"manifest": "./src/webparts/testForm/TestFormWebPart.manifest.json"
}
]
}
},
"externals": {
"jquery": {
"path": "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js",
"globalName": "jquery"
},
"bootstrap": {
"path": "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js",
"globalName": "bootstrap",
"globalDependencies": ["jquery"]
},
"appjs": {
"path": "lib/webparts/testForm/scripts/app.js",
"globalName": "appjs"
},
"sppeoplepicker": {
"path": "lib/webparts/testForm/scripts/sp.peoplepicker.js",
"globalName": "sppeoplepicker"
},
"jqueryui": {
"path": "lib/webparts/testForm/scripts/jquery-ui.js",
"globalName": "jqueryui"
}
},
"localizedResources": {
"TestFormWebPartStrings": "lib/webparts/testForm/loc/{locale}.js"
}
}
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json",
"deployCdnPath": "temp/deploy"
}
@@ -0,0 +1,7 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
"workingDir": "./temp/deploy/",
"account": "<!-- STORAGE ACCOUNT NAME -->",
"container": "test-form",
"accessKey": "<!-- ACCESS KEY -->"
}
@@ -0,0 +1,13 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": {
"name": "test-form-client-side-solution",
"id": "c08430ad-431a-4d5f-96e1-f4bbd013b58a",
"version": "1.0.0.0",
"includeClientSideAssets": true,
"isDomainIsolated": true
},
"paths": {
"zippedPackage": "solution/test-form.sppkg"
}
}
@@ -0,0 +1,10 @@
{
"$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/"
}
}
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/write-manifests.schema.json",
"cdnBasePath": "<!-- PATH TO CDN -->"
}
@@ -0,0 +1,7 @@
'use strict';

const gulp = require('gulp');
const build = require('@microsoft/sp-build-web');
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);

build.initialize(gulp);

0 comments on commit ee02c46

Please sign in to comment.
You can’t perform that action at this time.