open telegram link to user, resizing faircoin qr address to 300x300pixels, changed travel icon, copy faircoin address string
arnaucode arnaucode@gmail.com
Sun, 18 Feb 2018 16:26:08 +0100
11 files changed,
41 insertions(+),
13 deletions(-)
M
config.xml
→
config.xml
@@ -48,5 +48,6 @@ <plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
<icon src="resources/android/icon/drawable-xhdpi-icon.png" /> <preference name="SplashShowOnlyFirstTime" value="false" /> <plugin name="cordova-plugin-camera" spec="^4.0.2" /> + <plugin name="cordova-plugin-inappbrowser" spec="^2.0.2" /> <engine name="android" spec="7.0.0" /> </widget>
M
package-lock.json
→
package-lock.json
@@ -750,6 +750,11 @@ "version": "1.1.7",
"resolved": "https://registry.npmjs.org/cordova-plugin-device/-/cordova-plugin-device-1.1.7.tgz", "integrity": "sha1-/JQRG+aTJijGaGiTjd89yCyfv+Y=" }, + "cordova-plugin-inappbrowser": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/cordova-plugin-inappbrowser/-/cordova-plugin-inappbrowser-2.0.2.tgz", + "integrity": "sha1-pEj8vpdMprQpiL00VRCdkj1sl2k=" + }, "cordova-plugin-splashscreen": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/cordova-plugin-splashscreen/-/cordova-plugin-splashscreen-4.0.3.tgz",
M
package.json
→
package.json
@@ -7,6 +7,7 @@ "cordova-android": "7.0.0",
"cordova-plugin-camera": "^4.0.2", "cordova-plugin-console": "^1.0.7", "cordova-plugin-device": "^1.1.7", + "cordova-plugin-inappbrowser": "^2.0.2", "cordova-plugin-splashscreen": "^4.0.3", "cordova-plugin-whitelist": "^1.3.3", "gulp": "^3.5.6",@@ -37,7 +38,8 @@ "cordova-plugin-device": {},
"cordova-plugin-splashscreen": {}, "cordova-plugin-console": {}, "ionic-plugin-keyboard": {}, - "cordova-plugin-camera": {} + "cordova-plugin-camera": {}, + "cordova-plugin-inappbrowser": {} }, "platforms": [ "android"
A
version.md
@@ -0,0 +1,12 @@
+ +### commonroutes-prealpha02 +18 Feb 2018 update +- resizing faircoin qr address to 300x300 pixels +- open telegram link to user +- changed travel icon +- made more easy to copy the faircoin address + + +### commonroutes-prealpha01 +14 Feb 2018 +- first prealpha version
M
www/js/editUser.js
→
www/js/editUser.js
@@ -41,8 +41,8 @@ destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY, allowEdit: true, encodingType: Camera.EncodingType.JPEG, - targetWidth: 100, - targetHeight: 100, + targetWidth: 300, + targetHeight: 300, popoverOptions: CameraPopoverOptions, saveToPhotoAlbum: false, correctOrientation:true
M
www/js/user.js
→
www/js/user.js
@@ -187,4 +187,9 @@ $scope.showImg = function() {
console.log("show image"); $scope.openModal(); }; + + $scope.openTelegram = function(telegramuser) { + window.open('http://telegram.me/' + telegramuser, '_system', 'location=yes'); + return false; + }; });
M
www/templates/editUser.html
→
www/templates/editUser.html
@@ -28,10 +28,11 @@ </a>
</p> </div> <div class="item"> - <p> - <input ng-model="user.faircoinString" class="o_transparentInputBlack" - placeholder="{{'FaircoinWallet' | translate}}"> - </p> + FairCoin Address: + <p> + <input ng-model="user.faircoinString" class="o_transparentInputBlack" + placeholder="{{'FaircoinWallet' | translate}}"> + </p> <img src="{{user.faircoin}}" style="width: 100%;" ng-click="selectFaircoinPublicKey()" /> </div>
M
www/templates/main.html
→
www/templates/main.html
@@ -18,7 +18,7 @@ <i class="icon ion-search"></i>
{{'Search' | translate }} </a> <a ng-href="#/app/travels" class="item item-icon-left o_purpleG300to500"> - <i class="icon ion-android-car"></i> + <i class="icon ion-android-pin"></i> {{'Travels_feed' | translate }} </a> <a href="#/app/users" class="item item-icon-left o_purpleG300to500">
M
www/templates/travelListTemplate.html
→
www/templates/travelListTemplate.html
@@ -9,6 +9,7 @@ <h2 class="o_text_grey800">{{travel.title}}</h2>
<div class="item-note text-right"> <div class="o_text_purple300">{{travel.date | date:"dd/MM"}}</div> <div class="o_text_purple300">{{travel.date | date:"HH:mm"}}h</div> + <div>{{travel.joins.length}}/{{travel.seats}} seats</div> </div> <p> {{travel.from.name}}
M
www/templates/user.html
→
www/templates/user.html
@@ -27,7 +27,7 @@ </p>
</div> <div class=""> <div class="row"> - <a class="tab-item" ng-show="user.telegram" ng-href="http://telegram.me/{{user.telegram}}"> + <a class="tab-item" ng-show="user.telegram" ng-click="openTelegram(user.telegram)"> <i class="icon ion-paper-airplane"></i> @{{user.telegram}} </a>@@ -50,9 +50,10 @@ </a>
</div> </div> <div class="item"> - <p> - {{user.faircoinString}} - </p> + FairCoin Address: + <textarea ng-model="user.faircoinString" rows="1" style="width: 100%;" + onclick="this.focus();this.select()" readonly="readonly" + ></textarea> <img src="{{user.faircoin}}" style="width: 100%;" /> </div> <!--<div class="item item-body">