update db retrieval
This commit is contained in:
parent
9933cbf2bd
commit
7683c156ff
8 changed files with 22 additions and 90 deletions
|
@ -30,6 +30,6 @@
|
|||
"commit": "14d2ca3df97da64c820829a8310f9198fbafbcfa"
|
||||
},
|
||||
"_source": "git://github.com/desandro/eventie.git",
|
||||
"_target": "~1.0.3",
|
||||
"_target": "^1",
|
||||
"_originalSource": "eventie"
|
||||
}
|
|
@ -31,6 +31,6 @@
|
|||
"commit": "34fc5e4a0f252964ed2790138b8d7d30d04b55c1"
|
||||
},
|
||||
"_source": "git://github.com/desandro/get-style-property.git",
|
||||
"_target": "1.x",
|
||||
"_target": "~1.0.4",
|
||||
"_originalSource": "get-style-property"
|
||||
}
|
|
@ -25,14 +25,14 @@
|
|||
"web-component-tester": "*",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/iron-meta",
|
||||
"homepage": "https://github.com/polymerelements/iron-meta",
|
||||
"_release": "1.1.0",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.0",
|
||||
"commit": "be7ccf8df650aef1446a4e23af33f5d4e9f3000f"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-meta.git",
|
||||
"_source": "git://github.com/polymerelements/iron-meta.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-meta"
|
||||
"_originalSource": "polymerelements/iron-meta"
|
||||
}
|
39
dashboard-ui/cordova/iap.js
vendored
39
dashboard-ui/cordova/iap.js
vendored
|
@ -59,44 +59,12 @@
|
|||
store.refresh();
|
||||
}
|
||||
|
||||
var transactionIds = {};
|
||||
|
||||
function updateOriginalTransactionInfo(transactionId, originalTransactionId) {
|
||||
|
||||
if (!transactionId) {
|
||||
return;
|
||||
}
|
||||
if (!originalTransactionId) {
|
||||
return;
|
||||
}
|
||||
if (transactionId == 'null') {
|
||||
return;
|
||||
}
|
||||
if (originalTransactionId == 'null') {
|
||||
return;
|
||||
}
|
||||
|
||||
transactionIds[transactionId] = originalTransactionId;
|
||||
}
|
||||
|
||||
function validateProduct(product, callback) {
|
||||
|
||||
// product attributes:
|
||||
// https://github.com/j3k0/cordova-plugin-purchase/blob/master/doc/api.md#validation-error-codes
|
||||
|
||||
if (!product.transaction) {
|
||||
Logger.log('Transaction info missing. Failing validateProduct');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!product.transaction.id) {
|
||||
Logger.log('Transaction id missing. Failing validateProduct');
|
||||
return;
|
||||
}
|
||||
|
||||
var productId = product.id;
|
||||
var transactionId = product.transaction.id;
|
||||
transactionId = transactionIds[transactionId] || transactionId;
|
||||
var receipt = product.transaction.appStoreReceipt;
|
||||
var price = product.price;
|
||||
|
||||
|
@ -107,12 +75,12 @@
|
|||
type: "Subscription",
|
||||
feature: "MBSClubMonthly",
|
||||
storeToken: receipt,
|
||||
amt: price,
|
||||
storeId: transactionId
|
||||
amt: price
|
||||
};
|
||||
|
||||
if (enteredEmail) {
|
||||
postData.email = enteredEmail;
|
||||
postData.storeId = enteredEmail;
|
||||
}
|
||||
|
||||
ApiClient.ajax({
|
||||
|
@ -229,8 +197,7 @@
|
|||
getProductInfo: getProduct,
|
||||
beginPurchase: beginPurchase,
|
||||
restorePurchase: restorePurchase,
|
||||
getSubscriptionOptions: getSubscriptionOptions,
|
||||
updateOriginalTransactionInfo: updateOriginalTransactionInfo
|
||||
getSubscriptionOptions: getSubscriptionOptions
|
||||
};
|
||||
|
||||
initializeStore();
|
||||
|
|
|
@ -70,30 +70,17 @@
|
|||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.cardOverlayPlayButton {
|
||||
.cardOverlayMoreButton, .cardOverlayPlayButton {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
color: #333;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-color: rgba(210,210,210,.9);
|
||||
border-radius: 500px;
|
||||
padding: 6px;
|
||||
margin: 0 .5em .5em 0;
|
||||
}
|
||||
|
||||
.cardOverlayMoreButton {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
color: #333;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-color: rgba(210,210,210,.9);
|
||||
border-radius: 500px;
|
||||
padding: 6px;
|
||||
margin: 0 .5em .5em 0;
|
||||
margin: 0 .3em .3em 0;
|
||||
padding: 5px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.grayscale {
|
||||
|
|
|
@ -16,12 +16,6 @@
|
|||
margin: .5em 0;
|
||||
}
|
||||
|
||||
.headerButton {
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.headerUserImage {
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
|
@ -93,25 +87,14 @@
|
|||
}
|
||||
|
||||
.headerButton {
|
||||
margin: 0;
|
||||
margin: 0 5px;
|
||||
background-color: transparent;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
border: 0 !important;
|
||||
outline: none;
|
||||
padding: 0 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.headerButton img {
|
||||
height: 26px !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.headerButtonLeft {
|
||||
padding: 0 15px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.menuArrow {
|
||||
|
@ -123,7 +106,6 @@
|
|||
|
||||
.headerButtonRight {
|
||||
border-width: 0 !important;
|
||||
padding: 0 15px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
@ -182,6 +164,9 @@
|
|||
z-index: 999;
|
||||
top: 0;
|
||||
border: 0;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hiddenViewMenuBar .viewMenuBar {
|
||||
|
@ -262,6 +247,8 @@
|
|||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.selectedMediaFolder {
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
}
|
||||
|
||||
.mediaButton {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
box-sizing: content-box !important;
|
||||
}
|
||||
|
||||
.mediaButton.remoteControlButton, .mediaButton.muteButton, .mediaButton.unmuteButton {
|
||||
|
@ -157,10 +156,6 @@
|
|||
z-index: 2;
|
||||
}
|
||||
|
||||
.mediaButton img {
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.nowPlayingBarCurrentTime {
|
||||
vertical-align: middle;
|
||||
font-weight: normal;
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
paper-icon-button {
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
paper-fab.keyboard-focus.paper-fab-0 {
|
||||
paper-fab.keyboard-focus.paper-fab-0 {
|
||||
background: #444;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue