Skip to content

Commit 08f6b3d

Browse files
Merge pull request #52 from SyncfusionExamples/1050116-SharepointJs
1050116: Updated Share Point in JavaScript Samples
2 parents f9137db + 14a59f1 commit 08f6b3d

31 files changed

Lines changed: 18307 additions & 0 deletions
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Dependency directories
7+
node_modules
8+
9+
# Build generated files
10+
dist
11+
lib
12+
lib-dts
13+
lib-commonjs
14+
lib-esm
15+
jest-output
16+
release
17+
solution
18+
temp
19+
*.sppkg
20+
.heft
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
25+
# OSX
26+
.DS_Store
27+
28+
# Visual Studio files
29+
.ntvs_analysis.dat
30+
.vs
31+
bin
32+
obj
33+
34+
# Resx Generated Code
35+
*.resx.ts
36+
37+
# Styles Generated Code
38+
*.scss.ts
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Ignore everything by default
2+
**
3+
4+
# Use negative patterns to bring back the specific things we want to publish
5+
!/bin/**
6+
!/dist/**
7+
!/EULA/**
8+
!/lib/**
9+
!ThirdPartyNotice.txt
10+
11+
# Ignore certain files in the above folders
12+
/dist/*.stats.*
13+
/dist/**/*.js.map
14+
/lib/**/*.js.map
15+
/lib/**/test/**
16+
17+
# NOTE: These don't need to be specified, because NPM includes them automatically.
18+
#
19+
# package.json
20+
# README (and its variants)
21+
# CHANGELOG (and its variants)
22+
# LICENSE / LICENCE
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"@microsoft/generator-sharepoint": {
3+
"useGulp": false,
4+
"plusBeta": false,
5+
"isCreatingSolution": true,
6+
"nodeVersion": "22.22.3",
7+
"sdksVersions": {},
8+
"version": "1.23.2",
9+
"libraryName": "pdfviewer-spfx-js",
10+
"libraryId": "93130457-0e71-47d0-95c5-7bd807ae1e1b",
11+
"environment": "spo",
12+
"packageManager": "npm",
13+
"solutionName": "pdfviewer-spfx-js",
14+
"solutionShortDescription": "pdfviewer-spfx-js description",
15+
"skipFeatureDeployment": true,
16+
"isDomainIsolated": false,
17+
"componentType": "webpart"
18+
}
19+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# pdfviewer-spfx-js
2+
3+
## Summary
4+
5+
Short summary on functionality and used technologies.
6+
7+
[picture of the solution in action, if possible]
8+
9+
## Used SharePoint Framework Version
10+
11+
![version](https://img.shields.io/badge/version-1.23.2-green.svg)
12+
13+
## Applies to
14+
15+
- [SharePoint Framework](https://aka.ms/spfx)
16+
- [Microsoft 365 tenant](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-developer-tenant)
17+
18+
> Get your own free development tenant by subscribing to [Microsoft 365 developer program](http://aka.ms/o365devprogram)
19+
20+
## Prerequisites
21+
22+
> Any special pre-requisites?
23+
24+
## Solution
25+
26+
| Solution | Author(s) |
27+
| ----------- | ------------------------------------------------------- |
28+
| folder name | Author details (name, company, twitter alias with link) |
29+
30+
## Version history
31+
32+
| Version | Date | Comments |
33+
| ------- | ---------------- | --------------- |
34+
| 1.1 | March 10, 2021 | Update comment |
35+
| 1.0 | January 29, 2021 | Initial release |
36+
37+
## Disclaimer
38+
39+
**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.**
40+
41+
---
42+
43+
## Minimal Path to Awesome
44+
45+
- Clone this repository
46+
- Ensure that you are at the solution folder
47+
- in the command-line run:
48+
- `npm install -g @rushstack/heft`
49+
- `npm install`
50+
- `heft start`
51+
52+
> Include any additional steps as needed.
53+
54+
Other build commands can be listed using `heft --help`.
55+
56+
## Features
57+
58+
Description of the extension that expands upon high-level summary above.
59+
60+
This extension illustrates the following concepts:
61+
62+
- topic 1
63+
- topic 2
64+
- topic 3
65+
66+
> Notice that better pictures and documentation will increase the sample usage and the value you are providing for others. Thanks for your submissions advance.
67+
68+
> Share your web part with others through Microsoft 365 Patterns and Practices program to get visibility and exposure. More details on the community, open-source projects and other activities from http://aka.ms/m365pnp.
69+
70+
## References
71+
72+
- [Getting started with SharePoint Framework](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-developer-tenant)
73+
- [Building for Microsoft teams](https://docs.microsoft.com/sharepoint/dev/spfx/build-for-teams-overview)
74+
- [Use Microsoft Graph in your solution](https://docs.microsoft.com/sharepoint/dev/spfx/web-parts/get-started/using-microsoft-graph-apis)
75+
- [Publish SharePoint Framework applications to the Marketplace](https://docs.microsoft.com/sharepoint/dev/spfx/publish-to-marketplace-overview)
76+
- [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - Guidance, tooling, samples and open-source controls for your Microsoft 365 development
77+
- [Heft Documentation](https://heft.rushstack.io/)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
3+
"version": "2.0",
4+
"bundles": {
5+
"pdf-viewer-web-part": {
6+
"components": [
7+
{
8+
"entrypoint": "./lib/webparts/pdfViewer/PdfViewerWebPart.js",
9+
"manifest": "./src/webparts/pdfViewer/PdfViewerWebPart.manifest.json"
10+
}
11+
]
12+
}
13+
},
14+
"externals": {},
15+
"localizedResources": {
16+
"PdfViewerWebPartStrings": "lib/webparts/pdfViewer/loc/{locale}.js"
17+
}
18+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
3+
"workingDir": "./release/assets/",
4+
"account": "<!-- STORAGE ACCOUNT NAME -->",
5+
"container": "pdfviewer-spfx-js",
6+
"accessKey": "<!-- ACCESS KEY -->"
7+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
3+
"solution": {
4+
"name": "pdfviewer-spfx-js-client-side-solution",
5+
"id": "93130457-0e71-47d0-95c5-7bd807ae1e1b",
6+
"version": "1.0.0.0",
7+
"includeClientSideAssets": true,
8+
"skipFeatureDeployment": true,
9+
"isDomainIsolated": false,
10+
"developer": {
11+
"name": "",
12+
"websiteUrl": "",
13+
"privacyUrl": "",
14+
"termsOfUseUrl": "",
15+
"mpnId": "Undefined-1.23.2"
16+
},
17+
"metadata": {
18+
"shortDescription": {
19+
"default": "pdfviewer-spfx-js description"
20+
},
21+
"longDescription": {
22+
"default": "pdfviewer-spfx-js description"
23+
},
24+
"screenshotPaths": [],
25+
"videoUrl": "",
26+
"categories": []
27+
},
28+
"features": [
29+
{
30+
"title": "pdfviewer-spfx-js Feature",
31+
"description": "The feature that activates elements of the pdfviewer-spfx-js solution.",
32+
"id": "0b962008-df98-4114-a82d-0f9ad08fd5ee",
33+
"version": "1.0.0.0"
34+
}
35+
]
36+
},
37+
"paths": {
38+
"zippedPackage": "solution/pdfviewer-spfx-js.sppkg"
39+
}
40+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// The "rig.json" file directs tools to look for their config files in an external package.
3+
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
4+
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
5+
6+
"rigPackageName": "@microsoft/spfx-web-build-rig"
7+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft-sass-plugin.schema.json",
3+
4+
"extends": "@microsoft/spfx-web-build-rig/profiles/default/config/sass.json"
5+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json",
3+
"port": 4321,
4+
"https": true,
5+
"initialPage": "https://syncfusion.sharepoint.com/sites/syncfusionPdfviewer/_layouts/workbench.aspx"
6+
}

0 commit comments

Comments
 (0)