Skip to content

Commit f4c72a5

Browse files
authored
Merge pull request #13 from violetviolinist/angular9sdk-testing
Support for Angular 9 and fresh sample apps
2 parents b52277c + 3b02fb3 commit f4c72a5

File tree

88 files changed

+1043
-266
lines changed

Some content is hidden

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

88 files changed

+1043
-266
lines changed

samples/imagekitio-angular4-sample/.angular-cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"project": {
4-
"name": "imagekitio-angular4-sample"
4+
"name": "angular4app"
55
},
66
"apps": [
77
{
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
# Imagekit Angular 4 Sample
22

3-
This project shows the usage of ImageKit Angular SDK in an Angular 4 app. Please note that you need to have `@angular/cli v1.4.*` installed to run this application. If you are on latest version, you can uninstall current version and install required one like this:
3+
This project shows the usage of ImageKit Angular SDK in an Angular 4 app. Please note that you need to have `@angular/cli v1.4.10` installed to run this application. You can install that version locally by running this command in the folder for this sample application:
44

55

66
```sh
7-
> npm remove -g @angular/cli
8-
> npm install -g @angular/[email protected]
9-
> ng --version
10-
@angular/cli: 1.4.10
7+
> npm install
118
```
129

1310
## Running the application
1411

1512
Before you can use Imagekit SDK, you need to provide config values required in `app.module.ts` and `app.component.ts`. You can either configure your environment and take values from there, or directly provide in respective files.
1613

17-
To start the application, use `npm start` command.
18-
14+
To start the application, use `npm start` command.

samples/imagekitio-angular4-sample/e2e/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AppPage } from './app.po';
22

3-
describe('imagekitio-angular4-sample App', () => {
3+
describe('angular4app App', () => {
44
let page: AppPage;
55

66
beforeEach(() => {

samples/imagekitio-angular4-sample/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "imagekitio-angular4-sample",
2+
"name": "angular4app",
33
"version": "0.0.0",
44
"license": "MIT",
55
"scripts": {
@@ -21,8 +21,8 @@
2121
"@angular/platform-browser": "^4.2.4",
2222
"@angular/platform-browser-dynamic": "^4.2.4",
2323
"@angular/router": "^4.2.4",
24+
"imagekitio-angular": "^1.0.0",
2425
"core-js": "^2.4.1",
25-
"imagekitio-angular": "file:../../sdk/dist/imagekitio-angular/imagekitio-angular-0.0.1.tgz",
2626
"rxjs": "^5.4.2",
2727
"zone.js": "^0.8.14"
2828
},

samples/imagekitio-angular4-sample/src/app/app.component.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ <h1>Hi! This is an ImageKit Angular SDK Demo!</h1>
1212
<p>Upload</p>
1313
<p>To use this funtionality please remember to setup the server</p>
1414
<p>Provide custom upload method</p>
15-
<ik-upload fileName="test_new" [useUniqueFileName]="false" [isPrivateFile]="false"
16-
(onSuccess)="handleUploadSuccess($event)" (onError)="handleUploadError($event)" [onFileInput]="handleFileInput"></ik-upload>
15+
<ik-upload fileName="test_new" [useUniqueFileName]="false" [isPrivateFile]="false" (onSuccess)="handleUploadSuccess($event)" (onError)="handleUploadError($event)" [onFileInput]="handleFileInput"></ik-upload>
1716
<p>Use imagekit upload method</p>
18-
<ik-upload fileName="test_new" [useUniqueFileName]="false" [isPrivateFile]="false"
19-
(onSuccess)="handleUploadSuccess($event)" (onError)="handleUploadError($event)"></ik-upload>
20-
</div>
17+
<ik-upload fileName="test_new" [useUniqueFileName]="false" [isPrivateFile]="false" (onSuccess)="handleUploadSuccess($event)" (onError)="handleUploadError($event)"></ik-upload>
18+
</div>
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
import { BrowserModule } from "@angular/platform-browser";
2-
import { NgModule } from "@angular/core";
1+
import { BrowserModule } from '@angular/platform-browser';
2+
import { NgModule } from '@angular/core';
33

4-
import { AppComponent } from "./app.component";
5-
import { ImagekitioAngularModule } from "imagekitio-angular";
4+
import { AppComponent } from './app.component';
5+
6+
import { ImagekitioAngularModule } from 'imagekitio-angular';
67

78
@NgModule({
8-
declarations: [AppComponent],
9+
declarations: [
10+
AppComponent
11+
],
912
imports: [
1013
BrowserModule,
1114
ImagekitioAngularModule.forRoot({
@@ -17,4 +20,4 @@ import { ImagekitioAngularModule } from "imagekitio-angular";
1720
providers: [],
1821
bootstrap: [AppComponent]
1922
})
20-
export class AppModule {}
23+
export class AppModule { }

samples/imagekitio-angular4-sample/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>ImagekitioAngular4Sample</title>
5+
<title>Angular4app</title>
66
<base href="/">
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">

samples/imagekitio-angular5-sample/.angular-cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"project": {
4-
"name": "imagekitio-angular5-sample"
4+
"name": "angular5app"
55
},
66
"apps": [
77
{

samples/imagekitio-angular5-sample/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
/coverage
3232
/libpeerconnection.log
3333
npm-debug.log
34+
yarn-error.log
3435
testem.log
3536
/typings
3637

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
# Imagekit Angular 5 Sample
22

3-
This project shows the usage of ImageKit Angular SDK in an Angular 5 app. Please note that you need to have `@angular/cli v1.6.*` installed to run this application. If you are on latest version, you can uninstall current version and install required one like this:
3+
This project shows the usage of ImageKit Angular SDK in an Angular 5 app. Please note that you need to have `@angular/cli v1.7.4` installed to run this application. You can install that version locally by running this command in the folder for this sample application:
44

55

66
```sh
7-
> npm remove -g @angular/cli
8-
> npm install -g @angular/[email protected]
9-
> ng --version
10-
@angular/cli: 1.6.6
7+
> npm install
118
```
129

1310
## Running the application
1411

1512
Before you can use Imagekit SDK, you need to provide config values required in `app.module.ts` and `app.component.ts`. You can either configure your environment and take values from there, or directly provide in respective files.
1613

17-
To start the application, use `npm start` command.
18-
14+
To start the application, use `npm start` command.

0 commit comments

Comments
 (0)