mirror of https://github.com/BTCPrivate/copay.git
Removes package json
This commit is contained in:
parent
f81077edd3
commit
f60665a07c
23
package.json
23
package.json
|
@ -1,23 +0,0 @@
|
||||||
{
|
|
||||||
"name": "distribution-not-selected",
|
|
||||||
"description": "Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.",
|
|
||||||
"primary-package-json": "See the tempate in app-template/package.json",
|
|
||||||
"pre-commit": "unstage-package",
|
|
||||||
"changes": "changes to this file can be commited with the --no-verify option",
|
|
||||||
"scripts": {
|
|
||||||
"postinstall": "npm run apply:copay && echo && echo \"Repo configured for standard Copay distribution. To switch to the BitPay distribution, run 'npm run apply:bitpay'.\" && echo",
|
|
||||||
"start": "echo && echo \"Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.\" && echo",
|
|
||||||
"apply:copay": "npm i fs-extra@0.30 && cd app-template && node apply.js copay && cd .. && npm i",
|
|
||||||
"apply:bitpay": "npm i fs-extra@0.30 && cd app-template && node apply.js bitpay && cd .. && npm i",
|
|
||||||
"unstage-package": "git reset package.json",
|
|
||||||
"clean-all": "git clean -dfx"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"pre-commit": "^1.1.3"
|
|
||||||
},
|
|
||||||
"license": "MIT",
|
|
||||||
"repository": {
|
|
||||||
"url": "git://github.com/bitpay/bitpay-wallet.git",
|
|
||||||
"type": "git"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -9,6 +9,8 @@ import { SendPage } from '../pages/send/send';
|
||||||
import { SettingPage } from '../pages/setting/setting';
|
import { SettingPage } from '../pages/setting/setting';
|
||||||
import { TabsPage } from '../pages/tabs/tabs';
|
import { TabsPage } from '../pages/tabs/tabs';
|
||||||
|
|
||||||
|
import { AboutPage } from '../pages/about/about';
|
||||||
|
|
||||||
import { StatusBar } from '@ionic-native/status-bar';
|
import { StatusBar } from '@ionic-native/status-bar';
|
||||||
import { SplashScreen } from '@ionic-native/splash-screen';
|
import { SplashScreen } from '@ionic-native/splash-screen';
|
||||||
|
|
||||||
|
@ -22,6 +24,7 @@ import { StorageService } from '../providers/storage-service/storage-service';
|
||||||
ReceivePage,
|
ReceivePage,
|
||||||
SendPage,
|
SendPage,
|
||||||
SettingPage,
|
SettingPage,
|
||||||
|
AboutPage,
|
||||||
TabsPage
|
TabsPage
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -35,6 +38,7 @@ import { StorageService } from '../providers/storage-service/storage-service';
|
||||||
ReceivePage,
|
ReceivePage,
|
||||||
SendPage,
|
SendPage,
|
||||||
SettingPage,
|
SettingPage,
|
||||||
|
AboutPage,
|
||||||
TabsPage
|
TabsPage
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
|
|
@ -15,4 +15,10 @@
|
||||||
|
|
||||||
<ion-content padding>
|
<ion-content padding>
|
||||||
|
|
||||||
|
<ion-list>
|
||||||
|
<button ion-item *ngFor="let item of items" (click)="openPage(item.page)">
|
||||||
|
{{ item.name }}
|
||||||
|
</button>
|
||||||
|
</ion-list>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
|
@ -1,24 +1,34 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { NavController, NavParams } from 'ionic-angular';
|
import { NavController, NavParams } from 'ionic-angular';
|
||||||
|
|
||||||
/**
|
import { AboutPage } from '../about/about';
|
||||||
* Generated class for the SettingPage page.
|
|
||||||
*
|
|
||||||
* See http://ionicframework.com/docs/components/#navigation for more info
|
|
||||||
* on Ionic pages and navigation.
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'page-setting',
|
selector: 'page-setting',
|
||||||
templateUrl: 'setting.html',
|
templateUrl: 'setting.html',
|
||||||
})
|
})
|
||||||
export class SettingPage {
|
export class SettingPage {
|
||||||
|
items: Object[];
|
||||||
|
|
||||||
constructor(public navCtrl: NavController, public navParams: NavParams) {
|
constructor(public navCtrl: NavController, public navParams: NavParams) {
|
||||||
|
this.items = [
|
||||||
|
{
|
||||||
|
name: 'Address book',
|
||||||
|
page: null
|
||||||
|
}, {
|
||||||
|
name: 'About Copay',
|
||||||
|
page: AboutPage
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
ionViewDidLoad() {
|
ionViewDidLoad() {
|
||||||
console.log('ionViewDidLoad SettingPage');
|
console.log('ionViewDidLoad SettingPage');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openPage(page: any) {
|
||||||
|
if (!page) return;
|
||||||
|
this.navCtrl.push(page);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue