-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wallet): init wallet packaged-plugin
- Loading branch information
Showing
27 changed files
with
534 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ export class LandingPage { | |
} | ||
} | ||
closePlugin(){ | ||
console.log('Trying to close plugin'); | ||
this.icv2.close(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Specifies files to intentionally ignore when using Git | ||
# http://git-scm.com/docs/gitignore | ||
|
||
node_modules | ||
www/build/ | ||
|
||
*.swp | ||
.DS_Store | ||
Thumbs.db | ||
*.log | ||
|
||
/platforms | ||
/plugins | ||
app/**/*.js | ||
app/**/*.js.map | ||
|
||
typings/main* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { App, Platform } from 'ionic-angular'; | ||
import { LandingPage } from './pages/landing/landing'; | ||
import { Icv2, Activity } from 'icv2-plugin-client'; | ||
|
||
@App({ | ||
template: '<ion-nav [root]="rootPage"></ion-nav>', | ||
providers: [Icv2], | ||
config: {} | ||
}) | ||
export class MyApp { | ||
rootPage: any = LandingPage; | ||
|
||
constructor(platform: Platform, private icv2: Icv2) { | ||
platform.ready().then(() => { | ||
console.log('Wallet ready.'); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<ion-navbar *navbar> | ||
<ion-title>{{name}}</ion-title> | ||
<ion-buttons start> | ||
<button (click)="closePlugin()"> | ||
<ion-icon name="close"></ion-icon> | ||
</button> | ||
</ion-buttons> | ||
</ion-navbar> | ||
|
||
<ion-content padding> | ||
<h2>{{name}}</h2> | ||
<!-- <p>This image should not load within the icv2 sandbox:</p> | ||
<img src="http://baconmockup.com/100/50"> --> | ||
</ion-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {Page} from 'ionic-angular'; | ||
import { Icv2 } from 'icv2-plugin-client'; | ||
|
||
@Page({ | ||
templateUrl: 'build/pages/landing/landing.html' | ||
}) | ||
export class LandingPage { | ||
name: string; | ||
constructor(private icv2: Icv2) { | ||
this.name = 'Wallet'; | ||
} | ||
closePlugin(){ | ||
this.icv2.close(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// http://ionicframework.com/docs/v2/theming/ | ||
|
||
|
||
// App Shared Imports | ||
// -------------------------------------------------- | ||
// These are the imports which make up the design of this app. | ||
// By default each design mode includes these shared imports. | ||
// App Shared Sass variables belong in app.variables.scss. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
// http://ionicframework.com/docs/v2/theming/ | ||
|
||
|
||
// App Shared Variables | ||
// -------------------------------------------------- | ||
// Shared Sass variables go in the app.varialbes.scss file | ||
@import 'app.variables'; | ||
|
||
|
||
// App iOS Variables | ||
// -------------------------------------------------- | ||
// iOS only Sass variables can go here | ||
|
||
|
||
// Ionic iOS Sass | ||
// -------------------------------------------------- | ||
// Custom App variables must be declared before importing Ionic. | ||
// Ionic will use its default values when a custom variable isn't provided. | ||
@import 'ionic.ios'; | ||
|
||
|
||
// App Shared Sass | ||
// -------------------------------------------------- | ||
// All Sass files that make up this app goes into the app.core.scss file. | ||
// For simpler CSS overrides, custom app CSS must come after Ionic's CSS. | ||
@import 'app.core'; | ||
|
||
|
||
// App iOS Only Sass | ||
// -------------------------------------------------- | ||
// CSS that should only apply to the iOS app |
Oops, something went wrong.