Skip to content

Commit 66d10dc

Browse files
committed
fix: removing port from url in test and fixing import of JS SDK
1 parent 4227c57 commit 66d10dc

File tree

13 files changed

+25
-63
lines changed

13 files changed

+25
-63
lines changed

samples/imagekitio-angular4-sample/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@angular/platform-browser-dynamic": "^4.2.4",
2323
"@angular/router": "^4.2.4",
2424
"core-js": "^2.4.1",
25+
"imagekitio-angular": "file:../../sdk/dist/imagekitio-angular/imagekitio-angular-0.0.1.tgz",
2526
"rxjs": "^5.4.2",
2627
"zone.js": "^0.8.14"
2728
},

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div className="App">
22
<h1>Hi! This is an ImageKit Angular SDK Demo!</h1>
33
<p>Let's add an Image</p>
4-
<ik-image src={{src}} alt="This is an alt">
4+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" alt="This is an alt">
55
</ik-image>
66
<p>Let's transform this once</p>
7-
<ik-image src={{src}} [transformation]="transformationOne"></ik-image>
7+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" [transformation]="transformationOne"></ik-image>
88
<p>Let's transform this more than once</p>
99
<ik-image path="{{path}}" [transformation]="transformationTwo"></ik-image>
1010
<p>LQIP</p>
11-
<ik-image path="{{path}}" [lqip]="lqip"></ik-image>
11+
<ik-image path="{{path}}" [lqip]="lqip" alt="this is alt"></ik-image>
1212
<p>Upload</p>
1313
<p>To use this funtionality please remember to setup the server</p>
1414
<p>Provide custom upload method</p>

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,14 @@ export class AppComponent {
99
title = 'app';
1010
transformationOne = [{ height: "200", width: "200" }];
1111
path = "/default-image.jpg";
12-
urlEndpoint = '<YOUR_URL_ENDPOINT>';
13-
getSrcFromPath = function getSrcFromPath(path: string, urlEndpoint:string) {
14-
if(path[0] === "/")
15-
path = path.split("/")[1];
16-
return `${urlEndpoint}/${path}`;
17-
};
18-
19-
src = this.getSrcFromPath(this.path, this.urlEndpoint);
2012

2113
transformationTwo = [
2214
{ height: "200", width: "200" },
2315
{
2416
rotation: "90"
2517
}
2618
];
27-
lqip = { active: true, quality: 30 };
19+
lqip = { active: true, quality: 1 };
2820

2921
handleUploadSuccess(res) {
3022
console.log('File upload success with response: ', res);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div className="App">
22
<h1>Hi! This is an ImageKit Angular SDK Demo!</h1>
33
<p>Let's add an Image</p>
4-
<ik-image src={{src}} alt="This is an alt">
4+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" alt="This is an alt">
55
</ik-image>
66
<p>Let's transform this once</p>
7-
<ik-image src={{src}} [transformation]="transformationOne"></ik-image>
7+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" [transformation]="transformationOne"></ik-image>
88
<p>Let's transform this more than once</p>
99
<ik-image path="{{path}}" [transformation]="transformationTwo"></ik-image>
1010
<p>LQIP</p>
11-
<ik-image path="{{path}}" [lqip]="lqip"></ik-image>
11+
<ik-image path="{{path}}" [lqip]="lqip" alt="this is alt"></ik-image>
1212
<p>Upload</p>
1313
<p>To use this funtionality please remember to setup the server</p>
1414
<p>Provide custom upload method</p>

samples/imagekitio-angular5-sample/src/app/app.component.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,14 @@ export class AppComponent {
99
title = 'app';
1010
transformationOne = [{ height: "200", width: "200" }];
1111
path = "/default-image.jpg";
12-
urlEndpoint = '<YOUR_URL_ENDPOINT>';
13-
getSrcFromPath = function getSrcFromPath(path: string, urlEndpoint:string) {
14-
if(path[0] === "/")
15-
path = path.split("/")[1];
16-
return `${urlEndpoint}/${path}`;
17-
};
18-
19-
src = this.getSrcFromPath(this.path, this.urlEndpoint);
2012

2113
transformationTwo = [
2214
{ height: "200", width: "200" },
2315
{
2416
rotation: "90"
2517
}
2618
];
27-
lqip = { active: true, quality: 30 };
19+
lqip = { active: true, quality: 1 };
2820

2921
handleUploadSuccess(res) {
3022
console.log('File upload success with response: ', res);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div className="App">
22
<h1>Hi! This is an ImageKit Angular SDK Demo!</h1>
33
<p>Let's add an Image</p>
4-
<ik-image src={{src}} alt="This is an alt">
4+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" alt="This is an alt">
55
</ik-image>
66
<p>Let's transform this once</p>
7-
<ik-image src={{src}} [transformation]="transformationOne"></ik-image>
7+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" [transformation]="transformationOne"></ik-image>
88
<p>Let's transform this more than once</p>
99
<ik-image path="{{path}}" [transformation]="transformationTwo"></ik-image>
1010
<p>LQIP</p>
11-
<ik-image path="{{path}}" [lqip]="lqip"></ik-image>
11+
<ik-image path="{{path}}" [lqip]="lqip" alt="this is alt"></ik-image>
1212
<p>Upload</p>
1313
<p>To use this funtionality please remember to setup the server</p>
1414
<p>Provide custom upload method</p>

samples/imagekitio-angular6-sample/src/app/app.component.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,14 @@ export class AppComponent {
99
title = 'app';
1010
transformationOne = [{ height: "200", width: "200" }];
1111
path = "/default-image.jpg";
12-
urlEndpoint = '';
13-
getSrcFromPath = function getSrcFromPath(path: string, urlEndpoint:string) {
14-
if(path[0] === "/")
15-
path = path.split("/")[1];
16-
return `${urlEndpoint}/${path}`;
17-
};
18-
19-
src = this.getSrcFromPath(this.path, this.urlEndpoint);
2012

2113
transformationTwo = [
2214
{ height: "200", width: "200" },
2315
{
2416
rotation: "90"
2517
}
2618
];
27-
lqip = { active: true, quality: 30 };
19+
lqip = { active: true, quality: 1 };
2820

2921
handleUploadSuccess(res) {
3022
console.log('File upload success with response: ', res);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div className="App">
22
<h1>Hi! This is an ImageKit Angular SDK Demo!</h1>
33
<p>Let's add an Image</p>
4-
<ik-image src={{src}} alt="This is an alt">
4+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" alt="This is an alt">
55
</ik-image>
66
<p>Let's transform this once</p>
7-
<ik-image src={{src}} [transformation]="transformationOne"></ik-image>
7+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" [transformation]="transformationOne"></ik-image>
88
<p>Let's transform this more than once</p>
99
<ik-image path="{{path}}" [transformation]="transformationTwo"></ik-image>
1010
<p>LQIP</p>
11-
<ik-image path="{{path}}" [lqip]="lqip"></ik-image>
11+
<ik-image path="{{path}}" [lqip]="lqip" alt="this is alt"></ik-image>
1212
<p>Upload</p>
1313
<p>To use this funtionality please remember to setup the server</p>
1414
<p>Provide custom upload method</p>

samples/imagekitio-angular7-sample/src/app/app.component.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,14 @@ export class AppComponent {
99
title = 'app';
1010
transformationOne = [{ height: "200", width: "200" }];
1111
path = "/default-image.jpg";
12-
urlEndpoint = '';
13-
getSrcFromPath = function getSrcFromPath(path: string, urlEndpoint:string) {
14-
if(path[0] === "/")
15-
path = path.split("/")[1];
16-
return `${urlEndpoint}/${path}`;
17-
};
18-
19-
src = this.getSrcFromPath(this.path, this.urlEndpoint);
2012

2113
transformationTwo = [
2214
{ height: "200", width: "200" },
2315
{
2416
rotation: "90"
2517
}
2618
];
27-
lqip = { active: true, quality: 30 };
19+
lqip = { active: true, quality: 1 };
2820

2921
handleUploadSuccess(res) {
3022
console.log('File upload success with response: ', res);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div className="App">
22
<h1>Hi! This is an ImageKit Angular SDK Demo!</h1>
33
<p>Let's add an Image</p>
4-
<ik-image src={{src}} alt="This is an alt">
4+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" alt="This is an alt">
55
</ik-image>
66
<p>Let's transform this once</p>
7-
<ik-image src={{src}} [transformation]="transformationOne"></ik-image>
7+
<ik-image src="https://ik.imagekit.io/18ykd9wzp/default-image.jpg" [transformation]="transformationOne"></ik-image>
88
<p>Let's transform this more than once</p>
99
<ik-image path="{{path}}" [transformation]="transformationTwo"></ik-image>
1010
<p>LQIP</p>
11-
<ik-image path="{{path}}" [lqip]="lqip"></ik-image>
11+
<ik-image path="{{path}}" [lqip]="lqip" alt="this is alt"></ik-image>
1212
<p>Upload</p>
1313
<p>To use this funtionality please remember to setup the server</p>
1414
<p>Provide custom upload method</p>

0 commit comments

Comments
 (0)