Skip to content

Commit c0ac645

Browse files
committed
Initial commit of the react components
1 parent e3a757d commit c0ac645

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1683
-43
lines changed

.editorconfig

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
10+
# change these settings to your own preference
11+
indent_style = space
12+
indent_size = 2
13+
14+
# we recommend you to keep these unchanged
15+
end_of_line = lf
16+
charset = utf-8
17+
trim_trailing_whitespace = true
18+
insert_final_newline = true
19+
20+
[*.md]
21+
trim_trailing_whitespace = false
22+
23+
[{package,bower}.json]
24+
indent_style = space
25+
indent_size = 2

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.gitignore

+22-43
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,37 @@
22
logs
33
*.log
44
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
75

8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
6+
# Dependency directories
7+
node_modules
138

14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
9+
# Build generated files
10+
dist
11+
lib
12+
solution
13+
temp
14+
*.sppkg
1615

1716
# Coverage directory used by tools like istanbul
1817
coverage
1918

20-
# nyc test coverage
21-
.nyc_output
22-
23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
31-
32-
# Compiled binary addons (http://nodejs.org/api/addons.html)
33-
build/Release
19+
# OSX
20+
.DS_Store
3421

35-
# Dependency directories
36-
node_modules/
37-
jspm_packages/
38-
39-
# Typescript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
22+
# Visual Studio files
23+
.ntvs_analysis.dat
24+
.vs
25+
bin
26+
obj
4427

45-
# Optional eslint cache
46-
.eslintcache
28+
# Resx Generated Code
29+
*.resx.ts
4730

48-
# Optional REPL history
49-
.node_repl_history
31+
# Styles Generated Code
32+
*.scss.ts
5033

51-
# Output of 'npm pack'
34+
# NPM packages
5235
*.tgz
5336

54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
58-
.env
59-
37+
# VSCode
38+
.vscode

.npmignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Folders
2+
.vscode
3+
coverage
4+
node_modules
5+
sharepoint
6+
src
7+
temp
8+
config
9+
typings
10+
lib/webparts
11+
assets
12+
dist
13+
14+
# Files
15+
*.csproj
16+
.git*
17+
.yo-rc.json
18+
.editorconfig
19+
gulpfile.js
20+
tsconfig.json
21+
yarn.lock
22+
*.tgz

.yo-rc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"@microsoft/generator-sharepoint": {
3+
"version": "1.2.0",
4+
"libraryName": "sp-dev-fx-controls-react",
5+
"libraryId": "92b1e52c-a5fa-490a-bcf4-76080f39442c",
6+
"environment": "spo"
7+
}
8+
}

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# sp-dev-fx-controls-react
2+
3+
React controls for the SharePoint Framework solutions.
4+
5+
# work in progress
16

27
# Contributing
38

config/config.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://dev.office.com/json-schemas/spfx-build/config.2.0.schema.json",
3+
"version": "2.0",
4+
"bundles": {
5+
"controls-test-web-part": {
6+
"components": [{
7+
"entrypoint": "./lib/webparts/controlsTest/ControlsTestWebPart.js",
8+
"manifest": "./src/webparts/controlsTest/ControlsTestWebPart.manifest.json"
9+
}]
10+
}
11+
},
12+
"externals": {},
13+
"localizedResources": {
14+
"ControlStrings": "lib/loc/{locale}.js",
15+
"ControlsTestWebPartStrings": "lib/webparts/controlsTest/loc/{locale}.js"
16+
}
17+
}

config/copy-assets.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://dev.office.com/json-schemas/spfx-build/copy-assets.schema.json",
3+
"deployCdnPath": "temp/deploy"
4+
}

config/deploy-azure-storage.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://dev.office.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
3+
"workingDir": "./temp/deploy/",
4+
"account": "<!-- STORAGE ACCOUNT NAME -->",
5+
"container": "sp-dev-fx-controls-react",
6+
"accessKey": "<!-- ACCESS KEY -->"
7+
}

config/package-solution.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://dev.office.com/json-schemas/spfx-build/package-solution.schema.json",
3+
"solution": {
4+
"name": "sp-dev-fx-controls-react-client-side-solution",
5+
"id": "92b1e52c-a5fa-490a-bcf4-76080f39442c",
6+
"version": "1.0.0.0",
7+
"skipFeatureDeployment": true
8+
},
9+
"paths": {
10+
"zippedPackage": "solution/sp-dev-fx-controls-react.sppkg"
11+
}
12+
}

config/serve.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://dev.office.com/json-schemas/core-build/serve.schema.json",
3+
"port": 4321,
4+
"initialPage": "https://localhost:5432/workbench",
5+
"https": true,
6+
"api": {
7+
"port": 5432,
8+
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
9+
}
10+
}

config/tslint.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "https://dev.office.com/json-schemas/core-build/tslint.schema.json",
3+
// Display errors as warnings
4+
"displayAsWarning": true,
5+
// The TSLint task may have been configured with several custom lint rules
6+
// before this config file is read (for example lint rules from the tslint-microsoft-contrib
7+
// project). If true, this flag will deactivate any of these rules.
8+
"removeExistingRules": true,
9+
// When true, the TSLint task is configured with some default TSLint "rules.":
10+
"useDefaultConfigAsBase": false,
11+
// Since removeExistingRules=true and useDefaultConfigAsBase=false, there will be no lint rules
12+
// which are active, other than the list of rules below.
13+
"lintConfig": {
14+
// Opt-in to Lint rules which help to eliminate bugs in JavaScript
15+
"rules": {
16+
"class-name": false,
17+
"export-name": false,
18+
"forin": false,
19+
"label-position": false,
20+
"member-access": true,
21+
"no-arg": false,
22+
"no-console": false,
23+
"no-construct": false,
24+
"no-duplicate-case": true,
25+
"no-duplicate-variable": true,
26+
"no-eval": false,
27+
"no-function-expression": true,
28+
"no-internal-module": true,
29+
"no-shadowed-variable": true,
30+
"no-switch-case-fall-through": true,
31+
"no-unnecessary-semicolons": true,
32+
"no-unused-expression": true,
33+
"no-use-before-declare": true,
34+
"no-with-statement": true,
35+
"semicolon": true,
36+
"trailing-comma": false,
37+
"typedef": false,
38+
"typedef-whitespace": false,
39+
"use-named-parameter": true,
40+
"valid-typeof": true,
41+
"variable-name": false,
42+
"whitespace": false
43+
}
44+
}
45+
}

config/write-manifests.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://dev.office.com/json-schemas/spfx-build/write-manifests.schema.json",
3+
"cdnBasePath": "<!-- PATH TO CDN -->"
4+
}

gulpfile.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
const gulp = require('gulp');
4+
const build = require('@microsoft/sp-build-web');
5+
6+
build.initialize(gulp);

package.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "sp-dev-fx-controls-react",
3+
"version": "0.0.1",
4+
"private": true,
5+
"engines": {
6+
"node": ">=0.10.0"
7+
},
8+
"scripts": {
9+
"build": "gulp bundle",
10+
"clean": "gulp clean",
11+
"test": "gulp test"
12+
},
13+
"dependencies": {
14+
"@microsoft/sp-core-library": "~1.2.0",
15+
"@microsoft/sp-webpart-base": "~1.2.0",
16+
"@types/webpack-env": ">=1.12.1 <1.14.0",
17+
"react": "15.4.2",
18+
"react-dom": "15.4.2",
19+
"@types/react": "15.0.38",
20+
"@types/react-dom": "0.14.18",
21+
"@types/react-addons-shallow-compare": "0.14.17",
22+
"@types/react-addons-update": "0.14.14",
23+
"@types/react-addons-test-utils": "0.14.15"
24+
},
25+
"devDependencies": {
26+
"@microsoft/sp-build-web": "~1.2.0",
27+
"@microsoft/sp-module-interfaces": "~1.2.0",
28+
"@microsoft/sp-webpart-workbench": "~1.2.0",
29+
"gulp": "~3.9.1",
30+
"@types/chai": ">=3.4.34 <3.6.0",
31+
"@types/mocha": ">=2.2.33 <2.6.0"
32+
}
33+
}

src/FileTypeIcon.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './controls/fileTypeIcon/index';

src/ListView.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './controls/listView/index';

src/Placeholder.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './controls/placeholder/index';

src/SiteBreadcrumb.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './controls/siteBreadcrumb/index';

0 commit comments

Comments
 (0)