-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding demo project #8
base: master
Are you sure you want to change the base?
Conversation
demo/config.xml
Outdated
<plugin name="cordova-plugin-whitelist" spec="1.3.3" /> | ||
<plugin name="cordova-plugin-statusbar" spec="2.4.2" /> | ||
<plugin name="cordova-plugin-device" spec="2.0.2" /> | ||
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" /> | ||
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" /> | ||
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plugin tag not used now with new cordova version
<plugin name="cordova-plugin-whitelist" spec="1.3.3" /> | |
<plugin name="cordova-plugin-statusbar" spec="2.4.2" /> | |
<plugin name="cordova-plugin-device" spec="2.0.2" /> | |
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" /> | |
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" /> | |
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
demo/resources/README.md
Outdated
These are Cordova resources. You can replace icon.png and splash.png and run | ||
`ionic cordova resources` to generate custom icons and splash screens for your | ||
app. See `ionic cordova resources --help` for details. | ||
|
||
Cordova reference documentation: | ||
|
||
- Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html | ||
- Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little description on how to build and launch app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
demo/src/app/home/home.page.ts
Outdated
outputType: 1, | ||
}; | ||
|
||
window.imagePicker.getPictures( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can try to declare imagePicker var as any at the top and use it directly instead of using window
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
demo/src/app/home/home.page.ts
Outdated
this.images = []; | ||
this.images = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate assignment
this.images = []; | |
this.images = []; | |
this.images = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
demo/src/app/home/home.page.html
Outdated
<ion-grid> | ||
<ion-row *ngFor="let row of grid"> | ||
<ion-col width-33 *ngFor="let img of row"> | ||
<div class="img-container" *ngIf="img"> | ||
<div class="close-btn"> | ||
<ion-icon | ||
name="trash-outline" | ||
(click)="removeImage(img)" | ||
></ion-icon> | ||
</div> | ||
<img [src]="img | safe" height="150" /> | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
</ion-grid> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can simplify the grid display using a flat array of urls and property size=4 to get 3 columns
In home.page.ts
images = [
"path",
"path",
"path",
"path",
.
.
etc
];
in home.page.html
<ion-grid>
<ion-row>
<ion-col *ngFor="let url of images" ion-col [size="4"]>
<div class="img-container">
<div class="close-btn">
<ion-icon
name="trash-outline"
(click)="removeImage(img)"
></ion-icon>
</div>
<img [src]="url | safe" height="150" />
</ion-col>
</ion-row>
</ion-grid>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Co-authored-by: dinitri-ragoo <[email protected]>
demo/.editorconfig
Outdated
@@ -0,0 +1,16 @@ | |||
# Editor configuration, see https://editorconfig.org |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fichier à supprimer.
demo/config.xml
Outdated
<name>demo</name> | ||
<description>An awesome Ionic/Cordova app.</description> | ||
<author email="[email protected]" href="http://ionicframework.com/">Ionic Framework Team</author> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<name>demo</name> | |
<description>An awesome Ionic/Cordova app.</description> | |
<author email="hi@ionicframework.com" href="http://ionicframework.com/">Ionic Framework Team</author> | |
<name>ImagePicker demo</name> | |
<description>Demo app for image picker cordova app.</description> | |
<author email="nick.andrianaharimalala@sc-mauritius.com" href="http://spoonconsulting.com/">Spoon Consulting Ltd</author> |
demo/ionic.config.json
Outdated
@@ -0,0 +1,7 @@ | |||
{ | |||
"name": "demo", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "demo", | |
"name": "ImagePicker demo", |
@@ -0,0 +1,90 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package-lock.json
à supprimer.
demo/package.json
Outdated
@@ -0,0 +1,90 @@ | |||
{ | |||
"name": "demo", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "demo", | |
"name": "ImagePicker demo", |
demo/package.json
Outdated
"cordova": { | ||
"plugins": { | ||
"@spoonconsulting/cordova-plugin-telerik-imagepicker": { | ||
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "DemoIPicker require access to photo library to choose from existing photos." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "DemoIPicker require access to photo library to choose from existing photos." | |
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "ImagePicker demo require access to photo library to choose from existing photos." |
demo/src/app/app.component.spec.ts
Outdated
const app = fixture.debugElement.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
// TODO: add more tests! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idem, je ne pense pas qu'on voudrait des tests sur l'app demo.
demo/src/app/home/home.page.html
Outdated
<input type="button" value="Open gallery" (click)="openGallery()" /> | ||
<ion-grid> | ||
<ion-row> | ||
<ion-col *ngFor="let url of images" ion-col size="4"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<ion-col *ngFor="let url of images" ion-col size="4"> | |
<ion-col *ngFor="let url of images" size="4"> |
Besoin de ça ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non
); | ||
} | ||
|
||
hasReadPermission() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est utilisé où ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dsl, c reglé
@@ -0,0 +1,14 @@ | |||
import { AppPage } from './app.po'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On n'a pas besoin de tests sur l'app demo. Tu peux supprimer les fichiers pour les tests. @ombr on est d'accord ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@azharbeebeejaun je pense que c bon |
No description provided.