From cada82b83bdb0290c4d1ba426d5c49e45b910652 Mon Sep 17 00:00:00 2001 From: SaravanaPriya31 Date: Thu, 28 Sep 2023 16:26:45 +0530 Subject: [PATCH] 848600 : GitHub sample changed as standalone PDF Viewer --- .../index.html | 106 ++++++++--------- .../index.html | 104 ++++++++--------- .../index.html | 110 +++++++++--------- .../index.html | 44 ++++--- .../index.html | 89 +++++++------- .../Free text annotation/index.html | 90 +++++++------- .../JavaScriptClient/.gitignore | 3 - .../JavaScriptClient/README.md | 75 ------------ .../JavaScriptClient/e2e/index.spec.js | 0 .../JavaScriptClient/e2e/protractor.conf.js | 20 ---- .../JavaScriptClient/gulpfile.js | 98 ---------------- .../JavaScriptClient/license | 10 -- .../JavaScriptClient/package.json | 29 ----- .../JavaScriptClient/src/app/app.ts | 12 -- .../JavaScriptClient/src/index.html | 26 ----- .../src/resources/favicon.ico | Bin 6574 -> 0 bytes .../JavaScriptClient/src/styles/styles.css | 8 -- .../JavaScriptClient/src/system.config.js | 37 ------ .../JavaScriptClient/tsconfig.json | 23 ---- .../JavaScriptClient/index.html | 53 +++++++++ .../JavaScriptClient/.gitignore | 3 - .../JavaScriptClient/README.md | 75 ------------ .../JavaScriptClient/e2e/index.spec.js | 0 .../JavaScriptClient/e2e/protractor.conf.js | 20 ---- .../JavaScriptClient/gulpfile.js | 98 ---------------- .../JavaScriptClient/license | 10 -- .../JavaScriptClient/package.json | 29 ----- .../JavaScriptClient/src/app/app.ts | 12 -- .../JavaScriptClient/src/index.html | 26 ----- .../src/resources/favicon.ico | Bin 6574 -> 0 bytes .../JavaScriptClient/src/styles/styles.css | 8 -- .../JavaScriptClient/src/system.config.js | 37 ------ .../JavaScriptClient/tsconfig.json | 23 ---- 33 files changed, 311 insertions(+), 967 deletions(-) delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/.gitignore delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/README.md delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/e2e/index.spec.js delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/e2e/protractor.conf.js delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/gulpfile.js delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/license delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/package.json delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/src/app/app.ts delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/src/index.html delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/src/resources/favicon.ico delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/src/styles/styles.css delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/src/system.config.js delete mode 100644 Save and Load/Load PDF file from URL/JavaScriptClient/tsconfig.json create mode 100644 Save and Load/Load PDF file from base64 string/JavaScriptClient/index.html delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/.gitignore delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/README.md delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/e2e/index.spec.js delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/e2e/protractor.conf.js delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/gulpfile.js delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/license delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/package.json delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/src/app/app.ts delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/src/index.html delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/src/resources/favicon.ico delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/src/styles/styles.css delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/src/system.config.js delete mode 100644 Save and Load/Save PDF file to server/JavaScriptClient/tsconfig.json diff --git a/Annotations/How to change the rectangle annotation's border color/index.html b/Annotations/How to change the rectangle annotation's border color/index.html index b1a0a1b..9770981 100644 --- a/Annotations/How to change the rectangle annotation's border color/index.html +++ b/Annotations/How to change the rectangle annotation's border color/index.html @@ -1,69 +1,63 @@ - - - - - - + + Essential JS 2 + + + + + + + + + + - - - - - -
-
- - - - -
-
-
- + + +
+
+ + + + +
+
+
+ - + viewer.annotation.setAnnotationMode('Rectangle'); +}); + + \ No newline at end of file diff --git a/Download/Download the pdf document before closing window or refresh/index.html b/Download/Download the pdf document before closing window or refresh/index.html index cc5571f..d920ce9 100644 --- a/Download/Download the pdf document before closing window or refresh/index.html +++ b/Download/Download the pdf document before closing window or refresh/index.html @@ -1,64 +1,58 @@ - - - - - - + + Essential JS 2 + + + + + + + + + + - - - - - -
-
- -
-
-
- + + +
+
+ +
+
+
+ - + + \ No newline at end of file diff --git a/Download/Get the base64 string while downloading/index.html b/Download/Get the base64 string while downloading/index.html index ad7c5f6..c4ed556 100644 --- a/Download/Get the base64 string while downloading/index.html +++ b/Download/Get the base64 string while downloading/index.html @@ -1,72 +1,66 @@ - - - - - - + + Essential JS 2 + + + + + + + + + + - - - - - -
-
- - - -
-
-
- + + +
+
+ + + +
+
+
+ - + + \ No newline at end of file diff --git a/Form Fields/Focusing the form fields while loading/index.html b/Form Fields/Focusing the form fields while loading/index.html index 82d35cd..cf8a505 100644 --- a/Form Fields/Focusing the form fields while loading/index.html +++ b/Form Fields/Focusing the form fields while loading/index.html @@ -1,25 +1,19 @@ - - - - - - - + + Essential JS 2 + + + + + + + + + + - - - + +
@@ -30,10 +24,12 @@
- - - - - -
-
- -
-
-
- + + +
+
+ +
+
+
+ - + + + \ No newline at end of file diff --git a/Localization/Free text annotation with thai character/Free text annotation/index.html b/Localization/Free text annotation with thai character/Free text annotation/index.html index cb2dd29..4b67bde 100644 --- a/Localization/Free text annotation with thai character/Free text annotation/index.html +++ b/Localization/Free text annotation with thai character/Free text annotation/index.html @@ -1,54 +1,50 @@ - - - - - - + + Essential JS 2 + + + + + + + + + + - - - - - -
-
- -
-
-
- + + +
+
+ +
+
+
+ - + + + \ No newline at end of file diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/.gitignore b/Save and Load/Load PDF file from URL/JavaScriptClient/.gitignore deleted file mode 100644 index ff70e16..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -src/**/*.js -!src/system.config.js -node_modules/ diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/README.md b/Save and Load/Load PDF file from URL/JavaScriptClient/README.md deleted file mode 100644 index 9b5c7c3..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/README.md +++ /dev/null @@ -1,75 +0,0 @@ -# Essential JS 2 QuickStart - -This project is a skeleton application used to create [Essential JS 2](https://www.syncfusion.com/products/essential-js2) web application. - -The application contains Essential JS 2 button component for preview and all common settings are preconfigured. - -## Getting Started - -To get started you need to clone the `ej2-quickstart` repository and navigate to `ej2-quickstart` location. - -``` -git clone https://github.com/syncfusion/ej2-quickstart.git quickstart -cd quickstart -``` - -## Installing - -We can get all the Essential JS 2 components in a single npm package [`ej2`](https://www.npmjs.com/package/@syncfusion/ej2). - -We already configure the required packages in the `package.json` file. - -You can run the below command to install all dependent packages related to this seed project. - -``` -npm install -``` - -## Testing - -This application is preconfigured with End-to-End testing and the test case is written in Jasmine. - -We run the test scripts with [Protractor](http://www.protractortest.org/#/) end-to-end test runner. The test case file can be found in the `e2e` folder. - -Protractor can interact with our web application and verify the test scripts. - -We have to install WebDriver and also need to ensure it is updated. Open a separate terminal and run the below npm script. - -``` -npm run update-webdriver -``` - -Open another terminal and run the below npm script. It will start web server to serve our application. - -``` -npm run serve -``` - -Once the web server is up and running, we can run the end-to-end tests using the below npm script - -``` -npm run test -``` - -> **Note:** Since Protractor is using the Selenium Standalone Server, the Java Development Kit (JDK) need to be installed in your local machine. - -If JDK is not installed in your local machine, you can download it from [here](http://www.oracle.com/technetwork/java/javase/downloads/index.html). - -## Running - -The application is configured with `browser-sync`, so it will serve the web application in your default browser. - -We used `SystemJS` for module loading. - -You can use the below npm script to run the web application. - -``` -npm run start -``` - -## Resources - -You can also refer the below resources to know more details about Essential JS 2 components. - -* [Pure JS Demos](http://ej2.syncfusion.com/demos/) -* [Pure JS Documentation](http://ej2.syncfusion.com/documentation/) diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/e2e/index.spec.js b/Save and Load/Load PDF file from URL/JavaScriptClient/e2e/index.spec.js deleted file mode 100644 index e69de29..0000000 diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/e2e/protractor.conf.js b/Save and Load/Load PDF file from URL/JavaScriptClient/e2e/protractor.conf.js deleted file mode 100644 index 0a54984..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/e2e/protractor.conf.js +++ /dev/null @@ -1,20 +0,0 @@ -exports.config = { - - allScriptsTimeout: 11000, - - capabilities: { - 'browserName': 'chrome' - }, - - framework: 'jasmine', - - jasmineNodeOpts: { - defaultTimeoutInterval: 10000 - }, - - onPrepare: function() { - browser.waitForAngularEnabled(false); - }, - - specs: ['./*.spec.js'] -}; \ No newline at end of file diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/gulpfile.js b/Save and Load/Load PDF file from URL/JavaScriptClient/gulpfile.js deleted file mode 100644 index 4f597a9..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/gulpfile.js +++ /dev/null @@ -1,98 +0,0 @@ -'use strict'; - -var gulp = require('gulp'); - -/** - * Compile TypeScript to JS - */ -gulp.task('compile', gulp.series(function(done) { - var ts = require('gulp-typescript'); - // Default typescript config - var defaultConfig = { - typescript: require('typescript') - }; - var tsProject, tsResult; - // Create the typescript project - tsProject = ts.createProject('tsconfig.json', defaultConfig); - // Get typescript result - tsResult = gulp.src(['./src/**/*.ts'], { base: '.' }) - .pipe(ts(tsProject)) - .pipe(gulp.dest('./')) - .on('error', function(e) { - done(e); - process.exit(1); - }).on('end', function() { - done(); - }); -})); - -/** - * Load the sample in src/app/index - */ -gulp.task('start', gulp.series('compile', function(done) { - var browserSync = require('browser-sync'); - var bs = browserSync.create('Essential JS 2'); - var options = { - server: { - baseDir: ['./src', './'] - }, - ui: false - }; - bs.init(options, done); - - /** - * Watching typescript file changes - */ - gulp.watch('src/**/*.ts', gulp.series('compile', bs.reload)).on('change', reportChanges); -})); - - - -function reportChanges(event) { - console.log('File ' + event.path + ' was ' + event.type + ', running tasks...'); -} -/** - * Testing spec files - */ -var protractor = require('gulp-protractor').protractor; -var webdriver_standalone = require('gulp-protractor').webdriver_standalone; -var webdriver_update = require('gulp-protractor').webdriver_update_specific; - -gulp.task('e2e-serve', webdriver_standalone); - -gulp.task('e2e-webdriver-update', webdriver_update({ - webdriverManagerArgs: ['--ie', '--edge'] -})); - -gulp.task('e2e-test', gulp.series('compile', function(done) { - var browserSync = require('browser-sync'); - var bs = browserSync.create('Essential JS 2'); - var options = { - server: { - baseDir: [ - './src/app/', - './src/resource/', - './node_modules/@syncfusion/ej2/' - ], - directory: true - }, - ui: false, - open: false, - notify: false - }; - bs.init(options, function() { - gulp.src(['./spec/**/*.spec.js']) - .pipe(protractor({ - configFile: 'e2e/protractor.conf.js' - })) - .on('error', function(e) { - console.error('Error: ' + e.message); - done(); - process.exit(1); - }) - .on('end', function() { - done(); - process.exit(0); - }); - }); -})); \ No newline at end of file diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/license b/Save and Load/Load PDF file from URL/JavaScriptClient/license deleted file mode 100644 index 1d0d352..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/license +++ /dev/null @@ -1,10 +0,0 @@ -Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license. - -To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions. - -Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options. - -Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions. - -The Syncfusion license that contains the terms and conditions can be found at -https://www.syncfusion.com/content/downloads/syncfusion_license.pdf diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/package.json b/Save and Load/Load PDF file from URL/JavaScriptClient/package.json deleted file mode 100644 index 94a15c0..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "ej2-quickstart", - "version": "0.0.1", - "description": "Essential JS 2 typescript quick start application", - "author": "Syncfusion Inc.", - "license": "SEE LICENSE IN license", - "repository": { - "type": "git", - "url": "https://github.com/syncfusion/ej2-quickstart.git" - }, - "dependencies": { - "@syncfusion/ej2": "*" - }, - "devDependencies": { - "browser-sync": "^2.18.12", - "gulp": "*", - "gulp-protractor": "*", - "gulp-typescript": "*", - "jasmine": "^2.6.0", - "systemjs": "^0.20.14", - "typescript": "*" - }, - "scripts": { - "start": "gulp start", - "serve": "gulp e2e-serve", - "test": "gulp e2e-test", - "update-webdriver": "gulp e2e-webdriver-update" - } -} diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/src/app/app.ts b/Save and Load/Load PDF file from URL/JavaScriptClient/src/app/app.ts deleted file mode 100644 index e10cd4e..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/src/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { PdfViewer, Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, - ThumbnailView, BookmarkView, TextSelection, TextSearch, FormFields, FormDesigner} from '@syncfusion/ej2-pdfviewer'; - -PdfViewer.Inject( Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, ThumbnailView, - BookmarkView, TextSelection, TextSearch, FormFields, FormDesigner); - -let pdfviewer: PdfViewer = new PdfViewer(); -// Replace the "localhost:44396" with the actual URL of your server -pdfviewer.serviceUrl = 'https://localhost:44396/pdfviewer'; -// Replace correct PDF Document URL want to load -pdfviewer.documentPath ="https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf"; -pdfviewer.appendTo('#PdfViewer'); \ No newline at end of file diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/src/index.html b/Save and Load/Load PDF file from URL/JavaScriptClient/src/index.html deleted file mode 100644 index 5d79135..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/src/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Essential JS 2 - - - - - - - - - - - - - - - - - -
- - - \ No newline at end of file diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/src/resources/favicon.ico b/Save and Load/Load PDF file from URL/JavaScriptClient/src/resources/favicon.ico deleted file mode 100644 index d8d5c152e7353a07c3e519c9e53ac9328e515fa8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6574 zcmeHLZ)jUp6o1J}(=>U>YhL@3w0TL>C8MsL+H`gkEVxdkmO9tb;jBuvbG9p5I^2g+ zoQ_RobEu4M#mx^QI7C|n@y`&)zU<3BbPQB*vVCzdnHEGebfLH<{!U+RdizYC2_~~j z1HasR&O7J+&b{}%bKiS{U=c*2x>`UR5q8-GVZ9(Mk>7TV@$vY-_rFZ=hz7$<%I*YLf(BcUQQv$12qd1n5&7W;6a-9p|6b zEhm49g@-KH`gmCjM%xIyj%eKs>3FcY z7n(o3J#i>co_LArxZI=s%9(%6R(@pPpgxCWiu%Ry6DQk0y}gm7yr6rAVRyV~hT>x~ zwUqzFqjN9j0FA-VgT-jp@-Yrp@Q=->eJHEXYL9=tkj!kdk!e*gDhmYScQgOFnb;OE~-vz&&w zQajg1Pn+N~)SZTV{K{q%o6~)<&}%H8s9lI*l^4D+KY9dvo5Ozg=*(Ki>YA>-a|SZ~p!SYpRMR diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/src/styles/styles.css b/Save and Load/Load PDF file from URL/JavaScriptClient/src/styles/styles.css deleted file mode 100644 index 9e44230..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/src/styles/styles.css +++ /dev/null @@ -1,8 +0,0 @@ -@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css'; -@import "../node_modules/@syncfusion/ej2-pdfviewer/styles/material.css"; diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/src/system.config.js b/Save and Load/Load PDF file from URL/JavaScriptClient/src/system.config.js deleted file mode 100644 index 339e189..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/src/system.config.js +++ /dev/null @@ -1,37 +0,0 @@ -System.config({ - paths: { - 'syncfusion:': './node_modules/@syncfusion/', - }, - map: { - app: 'app', - - //Syncfusion packages mapping - "@syncfusion/ej2-base": "syncfusion:ej2-base/dist/ej2-base.umd.min.js", - "@syncfusion/ej2-buttons": "syncfusion:ej2-buttons/dist/ej2-buttons.umd.min.js", - "@syncfusion/ej2-popups": "syncfusion:ej2-popups/dist/ej2-popups.umd.min.js", - "@syncfusion/ej2-navigations": "syncfusion:ej2-navigations/dist/ej2-navigations.umd.min.js", - "@syncfusion/ej2-inputs": "syncfusion:ej2-inputs/dist/ej2-inputs.umd.min.js", - "@syncfusion/ej2-inplace-editor": "syncfusion:ej2-inplace-editor/dist/ej2-inplace-editor.umd.min.js", - "@syncfusion/ej2-splitbuttons": "syncfusion:ej2-splitbuttons/dist/ej2-splitbuttons.umd.min.js", - "@syncfusion/ej2-dropdowns": "syncfusion:ej2-dropdowns/dist/ej2-dropdowns.umd.min.js", - "@syncfusion/ej2-lists": "syncfusion:ej2-lists/dist/ej2-lists.umd.min.js", - "@syncfusion/ej2-data": "syncfusion:ej2-data/dist/ej2-data.umd.min.js", - "@syncfusion/ej2-notifications": "syncfusion:ej2-notifications/dist/ej2-notifications.umd.min.js", - "@syncfusion/ej2-pdfviewer": "syncfusion:ej2-pdfviewer/dist/ej2-pdfviewer.umd.min.js", - "@syncfusion/ej2-drawings": "syncfusion:ej2-drawings/dist/ej2-drawings.umd.min.js", - "@syncfusion/ej2-calendars": "syncfusion:ej2-calendars/dist/ej2-calendars.umd.min.js", - "@syncfusion/ej2-richtexteditor": "syncfusion:ej2-richtexteditor/dist/ej2-richtexteditor.umd.min.js", - "@syncfusion/ej2-filemanager": "syncfusion:ej2-filemanager/dist/ej2-filemanager.umd.min.js", - "@syncfusion/ej2-layouts": "syncfusion:ej2-layouts/dist/ej2-layouts.umd.min.js", - "@syncfusion/ej2-grids": "syncfusion:ej2-grids/dist/ej2-grids.umd.min.js", - "@syncfusion/ej2-excel-export": "syncfusion:ej2-excel-export/dist/ej2-excel-export.umd.min.js", - "@syncfusion/ej2-pdf-export": "syncfusion:ej2-pdf-export/dist/ej2-pdf-export.umd.min.js", - "@syncfusion/ej2-compression": "syncfusion:ej2-compression/dist/ej2-compression.umd.min.js", - "@syncfusion/ej2-file-utils": "syncfusion:ej2-file-utils/dist/ej2-file-utils.umd.min.js" - }, - packages: { - 'app': { main: 'app', defaultExtension: 'js' } - } -}); - -System.import('app'); \ No newline at end of file diff --git a/Save and Load/Load PDF file from URL/JavaScriptClient/tsconfig.json b/Save and Load/Load PDF file from URL/JavaScriptClient/tsconfig.json deleted file mode 100644 index ea1dbda..0000000 --- a/Save and Load/Load PDF file from URL/JavaScriptClient/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "removeComments": true, - "noLib": false, - "sourceMap": true, - "pretty": true, - "allowUnreachableCode": false, - "allowUnusedLabels": false, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitUseStrict": false, - "noFallthroughCasesInSwitch": true, - "allowJs": false, - "noEmitOnError": true, - "forceConsistentCasingInFileNames": true, - "moduleResolution": "node", - "suppressImplicitAnyIndexErrors": true, - "lib": ["es6", "dom"] - }, - "compileOnSave": false -} \ No newline at end of file diff --git a/Save and Load/Load PDF file from base64 string/JavaScriptClient/index.html b/Save and Load/Load PDF file from base64 string/JavaScriptClient/index.html new file mode 100644 index 0000000..6bc8186 --- /dev/null +++ b/Save and Load/Load PDF file from base64 string/JavaScriptClient/index.html @@ -0,0 +1,53 @@ + + Essential JS 2 + + + + + + + + + + + + + + + +
+
+ + +
+
+
+ + + \ No newline at end of file diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/.gitignore b/Save and Load/Save PDF file to server/JavaScriptClient/.gitignore deleted file mode 100644 index ff70e16..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -src/**/*.js -!src/system.config.js -node_modules/ diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/README.md b/Save and Load/Save PDF file to server/JavaScriptClient/README.md deleted file mode 100644 index 9b5c7c3..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/README.md +++ /dev/null @@ -1,75 +0,0 @@ -# Essential JS 2 QuickStart - -This project is a skeleton application used to create [Essential JS 2](https://www.syncfusion.com/products/essential-js2) web application. - -The application contains Essential JS 2 button component for preview and all common settings are preconfigured. - -## Getting Started - -To get started you need to clone the `ej2-quickstart` repository and navigate to `ej2-quickstart` location. - -``` -git clone https://github.com/syncfusion/ej2-quickstart.git quickstart -cd quickstart -``` - -## Installing - -We can get all the Essential JS 2 components in a single npm package [`ej2`](https://www.npmjs.com/package/@syncfusion/ej2). - -We already configure the required packages in the `package.json` file. - -You can run the below command to install all dependent packages related to this seed project. - -``` -npm install -``` - -## Testing - -This application is preconfigured with End-to-End testing and the test case is written in Jasmine. - -We run the test scripts with [Protractor](http://www.protractortest.org/#/) end-to-end test runner. The test case file can be found in the `e2e` folder. - -Protractor can interact with our web application and verify the test scripts. - -We have to install WebDriver and also need to ensure it is updated. Open a separate terminal and run the below npm script. - -``` -npm run update-webdriver -``` - -Open another terminal and run the below npm script. It will start web server to serve our application. - -``` -npm run serve -``` - -Once the web server is up and running, we can run the end-to-end tests using the below npm script - -``` -npm run test -``` - -> **Note:** Since Protractor is using the Selenium Standalone Server, the Java Development Kit (JDK) need to be installed in your local machine. - -If JDK is not installed in your local machine, you can download it from [here](http://www.oracle.com/technetwork/java/javase/downloads/index.html). - -## Running - -The application is configured with `browser-sync`, so it will serve the web application in your default browser. - -We used `SystemJS` for module loading. - -You can use the below npm script to run the web application. - -``` -npm run start -``` - -## Resources - -You can also refer the below resources to know more details about Essential JS 2 components. - -* [Pure JS Demos](http://ej2.syncfusion.com/demos/) -* [Pure JS Documentation](http://ej2.syncfusion.com/documentation/) diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/e2e/index.spec.js b/Save and Load/Save PDF file to server/JavaScriptClient/e2e/index.spec.js deleted file mode 100644 index e69de29..0000000 diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/e2e/protractor.conf.js b/Save and Load/Save PDF file to server/JavaScriptClient/e2e/protractor.conf.js deleted file mode 100644 index 0a54984..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/e2e/protractor.conf.js +++ /dev/null @@ -1,20 +0,0 @@ -exports.config = { - - allScriptsTimeout: 11000, - - capabilities: { - 'browserName': 'chrome' - }, - - framework: 'jasmine', - - jasmineNodeOpts: { - defaultTimeoutInterval: 10000 - }, - - onPrepare: function() { - browser.waitForAngularEnabled(false); - }, - - specs: ['./*.spec.js'] -}; \ No newline at end of file diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/gulpfile.js b/Save and Load/Save PDF file to server/JavaScriptClient/gulpfile.js deleted file mode 100644 index 4f597a9..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/gulpfile.js +++ /dev/null @@ -1,98 +0,0 @@ -'use strict'; - -var gulp = require('gulp'); - -/** - * Compile TypeScript to JS - */ -gulp.task('compile', gulp.series(function(done) { - var ts = require('gulp-typescript'); - // Default typescript config - var defaultConfig = { - typescript: require('typescript') - }; - var tsProject, tsResult; - // Create the typescript project - tsProject = ts.createProject('tsconfig.json', defaultConfig); - // Get typescript result - tsResult = gulp.src(['./src/**/*.ts'], { base: '.' }) - .pipe(ts(tsProject)) - .pipe(gulp.dest('./')) - .on('error', function(e) { - done(e); - process.exit(1); - }).on('end', function() { - done(); - }); -})); - -/** - * Load the sample in src/app/index - */ -gulp.task('start', gulp.series('compile', function(done) { - var browserSync = require('browser-sync'); - var bs = browserSync.create('Essential JS 2'); - var options = { - server: { - baseDir: ['./src', './'] - }, - ui: false - }; - bs.init(options, done); - - /** - * Watching typescript file changes - */ - gulp.watch('src/**/*.ts', gulp.series('compile', bs.reload)).on('change', reportChanges); -})); - - - -function reportChanges(event) { - console.log('File ' + event.path + ' was ' + event.type + ', running tasks...'); -} -/** - * Testing spec files - */ -var protractor = require('gulp-protractor').protractor; -var webdriver_standalone = require('gulp-protractor').webdriver_standalone; -var webdriver_update = require('gulp-protractor').webdriver_update_specific; - -gulp.task('e2e-serve', webdriver_standalone); - -gulp.task('e2e-webdriver-update', webdriver_update({ - webdriverManagerArgs: ['--ie', '--edge'] -})); - -gulp.task('e2e-test', gulp.series('compile', function(done) { - var browserSync = require('browser-sync'); - var bs = browserSync.create('Essential JS 2'); - var options = { - server: { - baseDir: [ - './src/app/', - './src/resource/', - './node_modules/@syncfusion/ej2/' - ], - directory: true - }, - ui: false, - open: false, - notify: false - }; - bs.init(options, function() { - gulp.src(['./spec/**/*.spec.js']) - .pipe(protractor({ - configFile: 'e2e/protractor.conf.js' - })) - .on('error', function(e) { - console.error('Error: ' + e.message); - done(); - process.exit(1); - }) - .on('end', function() { - done(); - process.exit(0); - }); - }); -})); \ No newline at end of file diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/license b/Save and Load/Save PDF file to server/JavaScriptClient/license deleted file mode 100644 index 1d0d352..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/license +++ /dev/null @@ -1,10 +0,0 @@ -Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license. - -To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions. - -Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options. - -Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions. - -The Syncfusion license that contains the terms and conditions can be found at -https://www.syncfusion.com/content/downloads/syncfusion_license.pdf diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/package.json b/Save and Load/Save PDF file to server/JavaScriptClient/package.json deleted file mode 100644 index 94a15c0..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "ej2-quickstart", - "version": "0.0.1", - "description": "Essential JS 2 typescript quick start application", - "author": "Syncfusion Inc.", - "license": "SEE LICENSE IN license", - "repository": { - "type": "git", - "url": "https://github.com/syncfusion/ej2-quickstart.git" - }, - "dependencies": { - "@syncfusion/ej2": "*" - }, - "devDependencies": { - "browser-sync": "^2.18.12", - "gulp": "*", - "gulp-protractor": "*", - "gulp-typescript": "*", - "jasmine": "^2.6.0", - "systemjs": "^0.20.14", - "typescript": "*" - }, - "scripts": { - "start": "gulp start", - "serve": "gulp e2e-serve", - "test": "gulp e2e-test", - "update-webdriver": "gulp e2e-webdriver-update" - } -} diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/src/app/app.ts b/Save and Load/Save PDF file to server/JavaScriptClient/src/app/app.ts deleted file mode 100644 index f83d532..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/src/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { PdfViewer, Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, - ThumbnailView, BookmarkView, TextSelection, TextSearch, FormFields, FormDesigner} from '@syncfusion/ej2-pdfviewer'; - -PdfViewer.Inject( Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, ThumbnailView, - BookmarkView, TextSelection, TextSearch, FormFields, FormDesigner); - -let pdfviewer: PdfViewer = new PdfViewer(); -// Replace the "localhost:44396" with the actual URL of your server -pdfviewer.serviceUrl = 'https://localhost:44396/pdfviewer'; -// Replace PDF_Succinctly.pdf with the actual document name that you want to load -pdfviewer.documentPath = "PDF_Succinctly.pdf" -pdfviewer.appendTo('#PdfViewer'); \ No newline at end of file diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/src/index.html b/Save and Load/Save PDF file to server/JavaScriptClient/src/index.html deleted file mode 100644 index 5d79135..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/src/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Essential JS 2 - - - - - - - - - - - - - - - - - -
- - - \ No newline at end of file diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/src/resources/favicon.ico b/Save and Load/Save PDF file to server/JavaScriptClient/src/resources/favicon.ico deleted file mode 100644 index d8d5c152e7353a07c3e519c9e53ac9328e515fa8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6574 zcmeHLZ)jUp6o1J}(=>U>YhL@3w0TL>C8MsL+H`gkEVxdkmO9tb;jBuvbG9p5I^2g+ zoQ_RobEu4M#mx^QI7C|n@y`&)zU<3BbPQB*vVCzdnHEGebfLH<{!U+RdizYC2_~~j z1HasR&O7J+&b{}%bKiS{U=c*2x>`UR5q8-GVZ9(Mk>7TV@$vY-_rFZ=hz7$<%I*YLf(BcUQQv$12qd1n5&7W;6a-9p|6b zEhm49g@-KH`gmCjM%xIyj%eKs>3FcY z7n(o3J#i>co_LArxZI=s%9(%6R(@pPpgxCWiu%Ry6DQk0y}gm7yr6rAVRyV~hT>x~ zwUqzFqjN9j0FA-VgT-jp@-Yrp@Q=->eJHEXYL9=tkj!kdk!e*gDhmYScQgOFnb;OE~-vz&&w zQajg1Pn+N~)SZTV{K{q%o6~)<&}%H8s9lI*l^4D+KY9dvo5Ozg=*(Ki>YA>-a|SZ~p!SYpRMR diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/src/styles/styles.css b/Save and Load/Save PDF file to server/JavaScriptClient/src/styles/styles.css deleted file mode 100644 index 9e44230..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/src/styles/styles.css +++ /dev/null @@ -1,8 +0,0 @@ -@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css'; -@import "../node_modules/@syncfusion/ej2-pdfviewer/styles/material.css"; diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/src/system.config.js b/Save and Load/Save PDF file to server/JavaScriptClient/src/system.config.js deleted file mode 100644 index 339e189..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/src/system.config.js +++ /dev/null @@ -1,37 +0,0 @@ -System.config({ - paths: { - 'syncfusion:': './node_modules/@syncfusion/', - }, - map: { - app: 'app', - - //Syncfusion packages mapping - "@syncfusion/ej2-base": "syncfusion:ej2-base/dist/ej2-base.umd.min.js", - "@syncfusion/ej2-buttons": "syncfusion:ej2-buttons/dist/ej2-buttons.umd.min.js", - "@syncfusion/ej2-popups": "syncfusion:ej2-popups/dist/ej2-popups.umd.min.js", - "@syncfusion/ej2-navigations": "syncfusion:ej2-navigations/dist/ej2-navigations.umd.min.js", - "@syncfusion/ej2-inputs": "syncfusion:ej2-inputs/dist/ej2-inputs.umd.min.js", - "@syncfusion/ej2-inplace-editor": "syncfusion:ej2-inplace-editor/dist/ej2-inplace-editor.umd.min.js", - "@syncfusion/ej2-splitbuttons": "syncfusion:ej2-splitbuttons/dist/ej2-splitbuttons.umd.min.js", - "@syncfusion/ej2-dropdowns": "syncfusion:ej2-dropdowns/dist/ej2-dropdowns.umd.min.js", - "@syncfusion/ej2-lists": "syncfusion:ej2-lists/dist/ej2-lists.umd.min.js", - "@syncfusion/ej2-data": "syncfusion:ej2-data/dist/ej2-data.umd.min.js", - "@syncfusion/ej2-notifications": "syncfusion:ej2-notifications/dist/ej2-notifications.umd.min.js", - "@syncfusion/ej2-pdfviewer": "syncfusion:ej2-pdfviewer/dist/ej2-pdfviewer.umd.min.js", - "@syncfusion/ej2-drawings": "syncfusion:ej2-drawings/dist/ej2-drawings.umd.min.js", - "@syncfusion/ej2-calendars": "syncfusion:ej2-calendars/dist/ej2-calendars.umd.min.js", - "@syncfusion/ej2-richtexteditor": "syncfusion:ej2-richtexteditor/dist/ej2-richtexteditor.umd.min.js", - "@syncfusion/ej2-filemanager": "syncfusion:ej2-filemanager/dist/ej2-filemanager.umd.min.js", - "@syncfusion/ej2-layouts": "syncfusion:ej2-layouts/dist/ej2-layouts.umd.min.js", - "@syncfusion/ej2-grids": "syncfusion:ej2-grids/dist/ej2-grids.umd.min.js", - "@syncfusion/ej2-excel-export": "syncfusion:ej2-excel-export/dist/ej2-excel-export.umd.min.js", - "@syncfusion/ej2-pdf-export": "syncfusion:ej2-pdf-export/dist/ej2-pdf-export.umd.min.js", - "@syncfusion/ej2-compression": "syncfusion:ej2-compression/dist/ej2-compression.umd.min.js", - "@syncfusion/ej2-file-utils": "syncfusion:ej2-file-utils/dist/ej2-file-utils.umd.min.js" - }, - packages: { - 'app': { main: 'app', defaultExtension: 'js' } - } -}); - -System.import('app'); \ No newline at end of file diff --git a/Save and Load/Save PDF file to server/JavaScriptClient/tsconfig.json b/Save and Load/Save PDF file to server/JavaScriptClient/tsconfig.json deleted file mode 100644 index ea1dbda..0000000 --- a/Save and Load/Save PDF file to server/JavaScriptClient/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "removeComments": true, - "noLib": false, - "sourceMap": true, - "pretty": true, - "allowUnreachableCode": false, - "allowUnusedLabels": false, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitUseStrict": false, - "noFallthroughCasesInSwitch": true, - "allowJs": false, - "noEmitOnError": true, - "forceConsistentCasingInFileNames": true, - "moduleResolution": "node", - "suppressImplicitAnyIndexErrors": true, - "lib": ["es6", "dom"] - }, - "compileOnSave": false -} \ No newline at end of file