File tree Expand file tree Collapse file tree 13 files changed +25
-63
lines changed
imagekitio-angular4-sample
imagekitio-angular5-sample/src/app
imagekitio-angular6-sample/src/app
imagekitio-angular7-sample/src/app
imagekitio-angular8-sample/src/app
lib/src/imagekitio-angular Expand file tree Collapse file tree 13 files changed +25
-63
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments