Config.xml angepasst, Kaufabwicklung funktioniert jetzt reibungslos
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* This file is auto-generated. DO NOT MODIFY.
|
||||
* Original file: C:\\Projekte\\wolle-rosen-kaufen\\platforms\\android\\src\\com\\android\\vending\\billing\\IInAppBillingService.aidl
|
||||
* Original file: G:\\Projekte\\Android\\wolle-rosen-kaufen\\platforms\\android\\src\\com\\android\\vending\\billing\\IInAppBillingService.aidl
|
||||
*/
|
||||
package com.android.vending.billing;
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* This file is auto-generated. DO NOT MODIFY.
|
||||
* Original file: C:\\Ionic\\Ionic\\git\\wolle-rosen-kaufen\\platforms\\android\\src\\com\\android\\vending\\billing\\IInAppBillingService.aidl
|
||||
* Original file: G:\\Projekte\\Android\\wolle-rosen-kaufen\\platforms\\android\\src\\com\\android\\vending\\billing\\IInAppBillingService.aidl
|
||||
*/
|
||||
package com.android.vending.billing;
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,6 @@ public final class BuildConfig {
|
||||
public static final String APPLICATION_ID = "com.raataar.wolle_rosen_kaufen";
|
||||
public static final String BUILD_TYPE = "debug";
|
||||
public static final String FLAVOR = "";
|
||||
public static final int VERSION_CODE = 18;
|
||||
public static final String VERSION_NAME = "";
|
||||
public static final int VERSION_CODE = 2008;
|
||||
public static final String VERSION_NAME = "0.0.2";
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ public final class BuildConfig {
|
||||
public static final String APPLICATION_ID = "com.raataar.wolle_rosen_kaufen";
|
||||
public static final String BUILD_TYPE = "release";
|
||||
public static final String FLAVOR = "";
|
||||
public static final int VERSION_CODE = 18;
|
||||
public static final String VERSION_NAME = "";
|
||||
public static final int VERSION_CODE = 2008;
|
||||
public static final String VERSION_NAME = "0.0.2";
|
||||
}
|
||||
|
||||
@@ -79,12 +79,26 @@ function onMessageFromNative(msg) {
|
||||
case 'searchbutton':
|
||||
// App life cycle events
|
||||
case 'pause':
|
||||
case 'resume':
|
||||
// Volume events
|
||||
case 'volumedownbutton':
|
||||
case 'volumeupbutton':
|
||||
cordova.fireDocumentEvent(action);
|
||||
break;
|
||||
case 'resume':
|
||||
if(arguments.length > 1 && msg.pendingResult) {
|
||||
if(arguments.length === 2) {
|
||||
msg.pendingResult.result = arguments[1];
|
||||
} else {
|
||||
// The plugin returned a multipart message
|
||||
var res = [];
|
||||
for(var i = 1; i < arguments.length; i++) {
|
||||
res.push(arguments[i]);
|
||||
}
|
||||
msg.pendingResult.result = res;
|
||||
}
|
||||
}
|
||||
cordova.fireDocumentEvent(action, msg);
|
||||
break;
|
||||
default:
|
||||
throw new Error('Unknown event action ' + action);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Platform: android
|
||||
// 2c29e187e4206a6a77fba940ef6f77aef5c7eb8c
|
||||
// ded62dda172755defaf75378ed007dc05730ec22
|
||||
/*
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
@@ -19,7 +19,7 @@
|
||||
under the License.
|
||||
*/
|
||||
;(function() {
|
||||
var PLATFORM_VERSION_BUILD_LABEL = '4.1.1';
|
||||
var PLATFORM_VERSION_BUILD_LABEL = '5.1.0';
|
||||
// file: src/scripts/require.js
|
||||
|
||||
/*jshint -W079 */
|
||||
@@ -101,7 +101,9 @@ if (typeof module === "object" && typeof require === "function") {
|
||||
// file: src/cordova.js
|
||||
define("cordova", function(require, exports, module) {
|
||||
|
||||
if(window.cordova){
|
||||
// Workaround for Windows 10 in hosted environment case
|
||||
// http://www.w3.org/html/wg/drafts/html/master/browsers.html#named-access-on-the-window-object
|
||||
if (window.cordova && !(window.cordova instanceof HTMLElement)) {
|
||||
throw new Error("cordova already defined");
|
||||
}
|
||||
|
||||
@@ -1291,10 +1293,12 @@ define("cordova/init_b", function(require, exports, module) {
|
||||
|
||||
var channel = require('cordova/channel');
|
||||
var cordova = require('cordova');
|
||||
var modulemapper = require('cordova/modulemapper');
|
||||
var platform = require('cordova/platform');
|
||||
var pluginloader = require('cordova/pluginloader');
|
||||
var utils = require('cordova/utils');
|
||||
|
||||
var platformInitChannelsArray = [channel.onDOMContentLoaded, channel.onNativeReady];
|
||||
var platformInitChannelsArray = [channel.onDOMContentLoaded, channel.onNativeReady, channel.onPluginsReady];
|
||||
|
||||
// setting exec
|
||||
cordova.exec = require('cordova/exec');
|
||||
@@ -1379,10 +1383,19 @@ if (window._nativeReady) {
|
||||
// Call the platform-specific initialization.
|
||||
platform.bootstrap && platform.bootstrap();
|
||||
|
||||
// Wrap in a setTimeout to support the use-case of having plugin JS appended to cordova.js.
|
||||
// The delay allows the attached modules to be defined before the plugin loader looks for them.
|
||||
setTimeout(function() {
|
||||
pluginloader.load(function() {
|
||||
channel.onPluginsReady.fire();
|
||||
});
|
||||
}, 0);
|
||||
|
||||
/**
|
||||
* Create all cordova objects once native side is ready.
|
||||
*/
|
||||
channel.join(function() {
|
||||
modulemapper.mapModules(window);
|
||||
|
||||
platform.initialize && platform.initialize();
|
||||
|
||||
@@ -1499,6 +1512,103 @@ exports.getOriginalSymbol = function(context, symbolPath) {
|
||||
exports.reset();
|
||||
|
||||
|
||||
});
|
||||
|
||||
// file: src/common/modulemapper_b.js
|
||||
define("cordova/modulemapper_b", function(require, exports, module) {
|
||||
|
||||
var builder = require('cordova/builder'),
|
||||
symbolList = [],
|
||||
deprecationMap;
|
||||
|
||||
exports.reset = function() {
|
||||
symbolList = [];
|
||||
deprecationMap = {};
|
||||
};
|
||||
|
||||
function addEntry(strategy, moduleName, symbolPath, opt_deprecationMessage) {
|
||||
symbolList.push(strategy, moduleName, symbolPath);
|
||||
if (opt_deprecationMessage) {
|
||||
deprecationMap[symbolPath] = opt_deprecationMessage;
|
||||
}
|
||||
}
|
||||
|
||||
// Note: Android 2.3 does have Function.bind().
|
||||
exports.clobbers = function(moduleName, symbolPath, opt_deprecationMessage) {
|
||||
addEntry('c', moduleName, symbolPath, opt_deprecationMessage);
|
||||
};
|
||||
|
||||
exports.merges = function(moduleName, symbolPath, opt_deprecationMessage) {
|
||||
addEntry('m', moduleName, symbolPath, opt_deprecationMessage);
|
||||
};
|
||||
|
||||
exports.defaults = function(moduleName, symbolPath, opt_deprecationMessage) {
|
||||
addEntry('d', moduleName, symbolPath, opt_deprecationMessage);
|
||||
};
|
||||
|
||||
exports.runs = function(moduleName) {
|
||||
addEntry('r', moduleName, null);
|
||||
};
|
||||
|
||||
function prepareNamespace(symbolPath, context) {
|
||||
if (!symbolPath) {
|
||||
return context;
|
||||
}
|
||||
var parts = symbolPath.split('.');
|
||||
var cur = context;
|
||||
for (var i = 0, part; part = parts[i]; ++i) {
|
||||
cur = cur[part] = cur[part] || {};
|
||||
}
|
||||
return cur;
|
||||
}
|
||||
|
||||
exports.mapModules = function(context) {
|
||||
var origSymbols = {};
|
||||
context.CDV_origSymbols = origSymbols;
|
||||
for (var i = 0, len = symbolList.length; i < len; i += 3) {
|
||||
var strategy = symbolList[i];
|
||||
var moduleName = symbolList[i + 1];
|
||||
var module = require(moduleName);
|
||||
// <runs/>
|
||||
if (strategy == 'r') {
|
||||
continue;
|
||||
}
|
||||
var symbolPath = symbolList[i + 2];
|
||||
var lastDot = symbolPath.lastIndexOf('.');
|
||||
var namespace = symbolPath.substr(0, lastDot);
|
||||
var lastName = symbolPath.substr(lastDot + 1);
|
||||
|
||||
var deprecationMsg = symbolPath in deprecationMap ? 'Access made to deprecated symbol: ' + symbolPath + '. ' + deprecationMsg : null;
|
||||
var parentObj = prepareNamespace(namespace, context);
|
||||
var target = parentObj[lastName];
|
||||
|
||||
if (strategy == 'm' && target) {
|
||||
builder.recursiveMerge(target, module);
|
||||
} else if ((strategy == 'd' && !target) || (strategy != 'd')) {
|
||||
if (!(symbolPath in origSymbols)) {
|
||||
origSymbols[symbolPath] = target;
|
||||
}
|
||||
builder.assignOrWrapInDeprecateGetter(parentObj, lastName, module, deprecationMsg);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
exports.getOriginalSymbol = function(context, symbolPath) {
|
||||
var origSymbols = context.CDV_origSymbols;
|
||||
if (origSymbols && (symbolPath in origSymbols)) {
|
||||
return origSymbols[symbolPath];
|
||||
}
|
||||
var parts = symbolPath.split('.');
|
||||
var obj = context;
|
||||
for (var i = 0; i < parts.length; ++i) {
|
||||
obj = obj && obj[parts[i]];
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
|
||||
exports.reset();
|
||||
|
||||
|
||||
});
|
||||
|
||||
// file: /Users/steveng/repo/cordova/cordova-android/cordova-js-src/platform.js
|
||||
@@ -1564,12 +1674,26 @@ function onMessageFromNative(msg) {
|
||||
case 'searchbutton':
|
||||
// App life cycle events
|
||||
case 'pause':
|
||||
case 'resume':
|
||||
// Volume events
|
||||
case 'volumedownbutton':
|
||||
case 'volumeupbutton':
|
||||
cordova.fireDocumentEvent(action);
|
||||
break;
|
||||
case 'resume':
|
||||
if(arguments.length > 1 && msg.pendingResult) {
|
||||
if(arguments.length === 2) {
|
||||
msg.pendingResult.result = arguments[1];
|
||||
} else {
|
||||
// The plugin returned a multipart message
|
||||
var res = [];
|
||||
for(var i = 1; i < arguments.length; i++) {
|
||||
res.push(arguments[i]);
|
||||
}
|
||||
msg.pendingResult.result = res;
|
||||
}
|
||||
}
|
||||
cordova.fireDocumentEvent(action, msg);
|
||||
break;
|
||||
default:
|
||||
throw new Error('Unknown event action ' + action);
|
||||
}
|
||||
@@ -1673,10 +1797,6 @@ module.exports = {
|
||||
// file: src/common/pluginloader.js
|
||||
define("cordova/pluginloader", function(require, exports, module) {
|
||||
|
||||
/*
|
||||
NOTE: this file is NOT used when we use the browserify workflow
|
||||
*/
|
||||
|
||||
var modulemapper = require('cordova/modulemapper');
|
||||
var urlutil = require('cordova/urlutil');
|
||||
|
||||
@@ -1784,6 +1904,54 @@ exports.load = function(callback) {
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
|
||||
// file: src/common/pluginloader_b.js
|
||||
define("cordova/pluginloader_b", function(require, exports, module) {
|
||||
|
||||
var modulemapper = require('cordova/modulemapper');
|
||||
|
||||
// Handler for the cordova_plugins.js content.
|
||||
// See plugman's plugin_loader.js for the details of this object.
|
||||
function handlePluginsObject(moduleList) {
|
||||
// if moduleList is not defined or empty, we've nothing to do
|
||||
if (!moduleList || !moduleList.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Loop through all the modules and then through their clobbers and merges.
|
||||
for (var i = 0, module; module = moduleList[i]; i++) {
|
||||
if (module.clobbers && module.clobbers.length) {
|
||||
for (var j = 0; j < module.clobbers.length; j++) {
|
||||
modulemapper.clobbers(module.id, module.clobbers[j]);
|
||||
}
|
||||
}
|
||||
|
||||
if (module.merges && module.merges.length) {
|
||||
for (var k = 0; k < module.merges.length; k++) {
|
||||
modulemapper.merges(module.id, module.merges[k]);
|
||||
}
|
||||
}
|
||||
|
||||
// Finally, if runs is truthy we want to simply require() the module.
|
||||
if (module.runs) {
|
||||
modulemapper.runs(module.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Loads all plugins' js-modules. Plugin loading is syncronous in browserified bundle
|
||||
// but the method accepts callback to be compatible with non-browserify flow.
|
||||
// onDeviceReady is blocked on onPluginsReady. onPluginsReady is fired when there are
|
||||
// no plugins to load, or they are all done.
|
||||
exports.load = function(callback) {
|
||||
var moduleList = require("cordova/plugin_list");
|
||||
handlePluginsObject(moduleList);
|
||||
|
||||
callback();
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
|
||||
// file: src/common/urlutil.js
|
||||
|
||||
@@ -3,7 +3,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/com.smartmobilesoftware.androidinappbilling/www/inappbilling.js",
|
||||
"id": "com.smartmobilesoftware.androidinappbilling.InAppBillingPlugin",
|
||||
"pluginId": "com.smartmobilesoftware.androidinappbilling",
|
||||
"clobbers": [
|
||||
"inappbilling"
|
||||
]
|
||||
@@ -11,55 +10,13 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-device/www/device.js",
|
||||
"id": "cordova-plugin-device.device",
|
||||
"pluginId": "cordova-plugin-device",
|
||||
"clobbers": [
|
||||
"device"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
|
||||
"id": "cordova-plugin-splashscreen.SplashScreen",
|
||||
"pluginId": "cordova-plugin-splashscreen",
|
||||
"clobbers": [
|
||||
"navigator.splashscreen"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-statusbar/www/statusbar.js",
|
||||
"id": "cordova-plugin-statusbar.statusbar",
|
||||
"pluginId": "cordova-plugin-statusbar",
|
||||
"clobbers": [
|
||||
"window.StatusBar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-whitelist/whitelist.js",
|
||||
"id": "cordova-plugin-whitelist.whitelist",
|
||||
"pluginId": "cordova-plugin-whitelist",
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/ionic-plugin-keyboard/www/android/keyboard.js",
|
||||
"id": "ionic-plugin-keyboard.keyboard",
|
||||
"pluginId": "ionic-plugin-keyboard",
|
||||
"clobbers": [
|
||||
"cordova.plugins.Keyboard"
|
||||
],
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js",
|
||||
"id": "cordova-plugin-inappbrowser.inappbrowser",
|
||||
"pluginId": "cordova-plugin-inappbrowser",
|
||||
"clobbers": [
|
||||
"cordova.InAppBrowser.open",
|
||||
"window.open"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/DirectoryEntry.js",
|
||||
"id": "cordova-plugin-file.DirectoryEntry",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.DirectoryEntry"
|
||||
]
|
||||
@@ -67,7 +24,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/DirectoryReader.js",
|
||||
"id": "cordova-plugin-file.DirectoryReader",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.DirectoryReader"
|
||||
]
|
||||
@@ -75,7 +31,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/Entry.js",
|
||||
"id": "cordova-plugin-file.Entry",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.Entry"
|
||||
]
|
||||
@@ -83,7 +38,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/File.js",
|
||||
"id": "cordova-plugin-file.File",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.File"
|
||||
]
|
||||
@@ -91,7 +45,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileEntry.js",
|
||||
"id": "cordova-plugin-file.FileEntry",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileEntry"
|
||||
]
|
||||
@@ -99,7 +52,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileError.js",
|
||||
"id": "cordova-plugin-file.FileError",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileError"
|
||||
]
|
||||
@@ -107,7 +59,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileReader.js",
|
||||
"id": "cordova-plugin-file.FileReader",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileReader"
|
||||
]
|
||||
@@ -115,7 +66,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileSystem.js",
|
||||
"id": "cordova-plugin-file.FileSystem",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileSystem"
|
||||
]
|
||||
@@ -123,7 +73,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileUploadOptions.js",
|
||||
"id": "cordova-plugin-file.FileUploadOptions",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileUploadOptions"
|
||||
]
|
||||
@@ -131,7 +80,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileUploadResult.js",
|
||||
"id": "cordova-plugin-file.FileUploadResult",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileUploadResult"
|
||||
]
|
||||
@@ -139,7 +87,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileWriter.js",
|
||||
"id": "cordova-plugin-file.FileWriter",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileWriter"
|
||||
]
|
||||
@@ -147,7 +94,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/Flags.js",
|
||||
"id": "cordova-plugin-file.Flags",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.Flags"
|
||||
]
|
||||
@@ -155,7 +101,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/LocalFileSystem.js",
|
||||
"id": "cordova-plugin-file.LocalFileSystem",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.LocalFileSystem"
|
||||
],
|
||||
@@ -166,7 +111,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/Metadata.js",
|
||||
"id": "cordova-plugin-file.Metadata",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.Metadata"
|
||||
]
|
||||
@@ -174,20 +118,17 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/ProgressEvent.js",
|
||||
"id": "cordova-plugin-file.ProgressEvent",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.ProgressEvent"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/fileSystems.js",
|
||||
"id": "cordova-plugin-file.fileSystems",
|
||||
"pluginId": "cordova-plugin-file"
|
||||
"id": "cordova-plugin-file.fileSystems"
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/requestFileSystem.js",
|
||||
"id": "cordova-plugin-file.requestFileSystem",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.requestFileSystem"
|
||||
]
|
||||
@@ -195,7 +136,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js",
|
||||
"id": "cordova-plugin-file.resolveLocalFileSystemURI",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"merges": [
|
||||
"window"
|
||||
]
|
||||
@@ -203,7 +143,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/android/FileSystem.js",
|
||||
"id": "cordova-plugin-file.androidFileSystem",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"merges": [
|
||||
"FileSystem"
|
||||
]
|
||||
@@ -211,13 +150,11 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/fileSystems-roots.js",
|
||||
"id": "cordova-plugin-file.fileSystems-roots",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/fileSystemPaths.js",
|
||||
"id": "cordova-plugin-file.fileSystemPaths",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"merges": [
|
||||
"cordova"
|
||||
],
|
||||
@@ -226,7 +163,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file-transfer/www/FileTransferError.js",
|
||||
"id": "cordova-plugin-file-transfer.FileTransferError",
|
||||
"pluginId": "cordova-plugin-file-transfer",
|
||||
"clobbers": [
|
||||
"window.FileTransferError"
|
||||
]
|
||||
@@ -234,23 +170,55 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file-transfer/www/FileTransfer.js",
|
||||
"id": "cordova-plugin-file-transfer.FileTransfer",
|
||||
"pluginId": "cordova-plugin-file-transfer",
|
||||
"clobbers": [
|
||||
"window.FileTransfer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js",
|
||||
"id": "cordova-plugin-inappbrowser.inappbrowser",
|
||||
"clobbers": [
|
||||
"cordova.InAppBrowser.open",
|
||||
"window.open"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
|
||||
"id": "cordova-plugin-splashscreen.SplashScreen",
|
||||
"clobbers": [
|
||||
"navigator.splashscreen"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-statusbar/www/statusbar.js",
|
||||
"id": "cordova-plugin-statusbar.statusbar",
|
||||
"clobbers": [
|
||||
"window.StatusBar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-whitelist/whitelist.js",
|
||||
"id": "cordova-plugin-whitelist.whitelist",
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-sqlite-storage/www/SQLitePlugin.js",
|
||||
"id": "cordova-sqlite-storage.SQLitePlugin",
|
||||
"pluginId": "cordova-sqlite-storage",
|
||||
"clobbers": [
|
||||
"SQLitePlugin"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/ionic-plugin-keyboard/www/android/keyboard.js",
|
||||
"id": "ionic-plugin-keyboard.keyboard",
|
||||
"clobbers": [
|
||||
"cordova.plugins.Keyboard"
|
||||
],
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/me.rahul.plugins.sqlDB/www/sqlDB.js",
|
||||
"id": "me.rahul.plugins.sqlDB.sqlDB",
|
||||
"pluginId": "me.rahul.plugins.sqlDB",
|
||||
"clobbers": [
|
||||
"window.plugins.sqlDB"
|
||||
]
|
||||
@@ -258,19 +226,6 @@ module.exports = [
|
||||
];
|
||||
module.exports.metadata =
|
||||
// TOP OF METADATA
|
||||
{
|
||||
"com.smartmobilesoftware.androidinappbilling": "3.0.2",
|
||||
"cordova-plugin-console": "1.0.2",
|
||||
"cordova-plugin-device": "1.1.0",
|
||||
"cordova-plugin-splashscreen": "3.0.0",
|
||||
"cordova-plugin-statusbar": "2.0.0",
|
||||
"cordova-plugin-whitelist": "1.2.0",
|
||||
"ionic-plugin-keyboard": "1.0.8",
|
||||
"cordova-plugin-inappbrowser": "1.1.1",
|
||||
"cordova-plugin-file": "3.0.0",
|
||||
"cordova-plugin-file-transfer": "1.4.0",
|
||||
"cordova-sqlite-storage": "0.7.15-pre",
|
||||
"me.rahul.plugins.sqlDB": "1.0.3"
|
||||
}
|
||||
{}
|
||||
// BOTTOM OF METADATA
|
||||
});
|
||||
@@ -81,4 +81,37 @@
|
||||
|
||||
.tab-item{
|
||||
background-color: #A50505 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.image-list-thumb {
|
||||
padding: 2px 2px 2px 2px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.image-modal {
|
||||
width: 100% !important;
|
||||
height: 100%;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
}
|
||||
|
||||
.transparent {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.fullscreen-image {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
overflow: auto;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.slider {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -59,28 +59,46 @@ angular.module('starter', ['ionic', 'ngCordova', 'starter.controllers', 'starter
|
||||
}
|
||||
|
||||
|
||||
function successHandler (result) {
|
||||
/*
|
||||
|
||||
/*
|
||||
* Google-Stroe Initialisieren START
|
||||
*/
|
||||
function StoreInitsuccessHandler (result) {
|
||||
$rootScope.storeinit=1;
|
||||
inappbilling.getPurchases(purchasessuccess, purchasesfail)
|
||||
}
|
||||
|
||||
function StoreIniterrorHandler (error) {
|
||||
$rootScope.storeinit=0;
|
||||
}
|
||||
|
||||
|
||||
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
||||
inappbilling.init(StoreInitsuccessHandler, StoreIniterrorHandler, {showLog:true});
|
||||
}
|
||||
|
||||
|
||||
function purchasessuccess (result) {
|
||||
var strResult = "";
|
||||
if(typeof result === 'object') {
|
||||
strResult = JSON.stringify(result);
|
||||
} else {
|
||||
strResult = result;
|
||||
}
|
||||
|
||||
alert("SUCCESS: \r\n"+strResult );
|
||||
*/
|
||||
$rootScope.storeinit=1;
|
||||
}
|
||||
|
||||
function errorHandler (error) {
|
||||
//alert("ERROR: \r\n"+error );
|
||||
$rootScope.storeinit=0;
|
||||
function purchasesfail (error) {
|
||||
alert("ERROR: \r\n"+error );
|
||||
}
|
||||
|
||||
/*
|
||||
* Google-Stroe Initialisieren ENDE
|
||||
*/
|
||||
|
||||
|
||||
|
||||
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
||||
inappbilling.init(successHandler, errorHandler, {showLog:true});
|
||||
}
|
||||
|
||||
// Initialize database through $database service
|
||||
db = $database.initDB();
|
||||
@@ -121,6 +139,7 @@ angular.module('starter', ['ionic', 'ngCordova', 'starter.controllers', 'starter
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
.state('tab.buys', {
|
||||
url: '/buys',
|
||||
views: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
angular.module('starter.controllers', [])
|
||||
|
||||
.controller('DashCtrl', function($scope,$ionicPopup,$http, $database, $timeout,$rootScope, $cordovaFileTransfer,$cordovaFile) {
|
||||
.controller('DashCtrl', function($scope,$ionicPopup,$http, $database, $timeout,$rootScope, $cordovaFileTransfer,$cordovaFile,$ionicLoading,$state) {
|
||||
|
||||
$scope.preis="";
|
||||
$scope.name="";
|
||||
@@ -8,6 +8,47 @@ angular.module('starter.controllers', [])
|
||||
$scope.items=[];
|
||||
$scope.item=[];
|
||||
|
||||
$scope.producitems=[];
|
||||
|
||||
$scope.rosen1titel="";
|
||||
$scope.rosen1preis="";
|
||||
$scope.rosen1beschreibung="";
|
||||
$scope.rosen1preiscurrency="";
|
||||
$scope.rosen1preistag="";
|
||||
|
||||
$scope.rosen3titel="";
|
||||
$scope.rosen3preis="";
|
||||
$scope.rosen3beschreibung="";
|
||||
$scope.rosen3preiscurrency="";
|
||||
$scope.rosen3preistag="";
|
||||
|
||||
$scope.rosen9titel="";
|
||||
$scope.rosen9preis="";
|
||||
$scope.rosen9beschreibung="";
|
||||
$scope.rosen9preiscurrency="";
|
||||
$scope.rosen9preistag="";
|
||||
|
||||
$scope.flateraterosentitel="";
|
||||
$scope.flateraterosenpreis="";
|
||||
$scope.flateraterosenbeschreibung="";
|
||||
$scope.flateraterosenpreiscurrency="";
|
||||
$scope.flateraterosenpreistag="";
|
||||
|
||||
$scope.showrosen = false;
|
||||
$scope.showflatrate = true;
|
||||
|
||||
|
||||
|
||||
$scope.show = function() {
|
||||
$ionicLoading.show({
|
||||
template: '<p>Kauf wird abgeschlossen.</p><ion-spinner></ion-spinner>'
|
||||
});
|
||||
};
|
||||
|
||||
$scope.hide = function(){
|
||||
$ionicLoading.hide();
|
||||
};
|
||||
|
||||
|
||||
$scope.validate = function() {
|
||||
|
||||
@@ -22,38 +63,155 @@ angular.module('starter.controllers', [])
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.loaddata = function() {
|
||||
$scope.items=[];
|
||||
$database.getAllBuys().then(function (result) {
|
||||
if(result.length>0){
|
||||
alert("daten da");
|
||||
for(i=0;i<result.length;i++){
|
||||
$scope.items.push(result[i]);
|
||||
alert(i);
|
||||
}
|
||||
|
||||
} else {
|
||||
$scope.items=[];
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
$scope.savedata = function() {
|
||||
$scope.item={name: $scope.name, bild: "test"};
|
||||
$scope.items.push($scope.item);
|
||||
$database.setBuys($scope.name,"test");
|
||||
};
|
||||
|
||||
function successBuyHandler (result) {
|
||||
$timeout(consumesuccessHandler, 1000);
|
||||
/*
|
||||
* Produkt-Details abrufen START
|
||||
*/
|
||||
function getProducts(){
|
||||
inappbilling.getProductDetails(successProducts, errorProducts,["rosenflatrate","9xrose","3xrose","1xrose"]);
|
||||
}
|
||||
|
||||
function successConsumeHandler (result) {
|
||||
function successProducts (result) {
|
||||
|
||||
//alert(JSON.stringify(result));
|
||||
|
||||
$scope.producitems = [
|
||||
angular.fromJson(result[0]),
|
||||
angular.fromJson(result[1]),
|
||||
angular.fromJson(result[2]),
|
||||
angular.fromJson(result[3])
|
||||
];
|
||||
|
||||
|
||||
$scope.producitems[0].title=$scope.producitems[0].title.replace("(Wolle Rosen kaufen)", "");
|
||||
$scope.producitems[1].title=$scope.producitems[1].title.replace("(Wolle Rosen kaufen)", "");
|
||||
$scope.producitems[2].title=$scope.producitems[2].title.replace("(Wolle Rosen kaufen)", "");
|
||||
$scope.producitems[3].title=$scope.producitems[3].title.replace("(Wolle Rosen kaufen)", "");
|
||||
|
||||
|
||||
$scope.rosen1titel=$scope.producitems[2].title;
|
||||
$scope.rosen1preis=$scope.producitems[2].price;
|
||||
$scope.rosen1beschreibung=$scope.producitems[2].description;
|
||||
$scope.rosen1preiscurrency=$scope.producitems[2].price_currency_code;
|
||||
$scope.rosen1preistag="Preis: " + $scope.rosen1preis + " " + $scope.rosen1preiscurrency + " (inkl. MwSt.)";
|
||||
|
||||
$scope.rosen3titel=$scope.producitems[1].title;
|
||||
$scope.rosen3preis=$scope.producitems[1].price;
|
||||
$scope.rosen3beschreibung=$scope.producitems[1].description;
|
||||
$scope.rosen3preiscurrency=$scope.producitems[2].price_currency_code;
|
||||
$scope.rosen3preistag="Preis: " + $scope.rosen3preis + " " + $scope.rosen3preiscurrency + " (inkl. MwSt.)";
|
||||
|
||||
$scope.rosen9titel=$scope.producitems[0].title;
|
||||
$scope.rosen9preis=$scope.producitems[0].price;
|
||||
$scope.rosen9beschreibung=$scope.producitems[0].description;
|
||||
$scope.rosen9preiscurrency=$scope.producitems[2].price_currency_code;
|
||||
$scope.rosen9preistag="Preis: " + $scope.rosen9preis + " " + $scope.rosen9preiscurrency + " (inkl. MwSt.)";
|
||||
|
||||
$scope.flateraterosentitel=$scope.producitems[3].title;
|
||||
$scope.flateraterosenpreis=$scope.producitems[3].price;
|
||||
$scope.flateraterosenbeschreibung=$scope.producitems[3].description;
|
||||
$scope.flateraterosenpreiscurrency=$scope.producitems[2].price_currency_code;
|
||||
$scope.flateraterosenpreistag="Preis: " + $scope.flateraterosenpreis + " " + $scope.flateraterosenpreiscurrency + " (inkl. MwSt.)";
|
||||
|
||||
$scope.showrosen = true;
|
||||
$timeout(function(){
|
||||
$scope.showrosen = true;
|
||||
}, 500);
|
||||
|
||||
|
||||
}
|
||||
|
||||
function errorProducts (result) {
|
||||
var strResult = "";
|
||||
if(typeof result === 'object') {
|
||||
strResult = JSON.stringify(result);
|
||||
} else {
|
||||
strResult = result;
|
||||
}
|
||||
alert(strResult);
|
||||
}
|
||||
|
||||
|
||||
$timeout(getProducts, 1000);
|
||||
/*
|
||||
* Produkt-Details abrufen ENDE
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Rosen kaufen START
|
||||
*/
|
||||
$scope.buyRose = function() {
|
||||
|
||||
|
||||
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
||||
|
||||
if ($rootScope.storeinit==1){
|
||||
inappbilling.buy(successBuyHandler, errorBuyHandler, $scope.preis);
|
||||
}
|
||||
else{
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: 'Achtung',
|
||||
template: 'Der Google-Store konnte nicht initialisiert werden.'
|
||||
});
|
||||
|
||||
alertPopup.then(function(res) {
|
||||
console.log('Store steht nicht zur Verfuegung');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function errorBuyHandler (error) {
|
||||
|
||||
var strResult = "";
|
||||
var returnBool=false;
|
||||
|
||||
if(typeof error === 'object') {
|
||||
strResult = JSON.stringify(error);
|
||||
} else {
|
||||
strResult = error;
|
||||
}
|
||||
|
||||
/*
|
||||
* Prüfen ob Kuf schonmal durchgeführt wurde, aber noch nicht konsumiert
|
||||
*/
|
||||
returnBool=strResult.indexOf("Item Already Owned") != -1;
|
||||
if (returnBool==true){
|
||||
//Rose wurde schon gekauft, jetzt konsumieren
|
||||
$timeout(consumesuccessHandler, 500);
|
||||
}
|
||||
else{
|
||||
//Ein anderer Fehler ist auf getreten Kauf wird abgebrochen
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: 'Oh Nein',
|
||||
template: 'Der Kauf konnte nicht durchgeführt werden.'
|
||||
});
|
||||
|
||||
alertPopup.then(function(res) {
|
||||
console.log('Der Kauf konnte nicht durchgeführt werden');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function successBuyHandler (result) {
|
||||
$timeout(consumesuccessHandler, 500);
|
||||
}
|
||||
|
||||
/*
|
||||
* Rosen kaufen ENDE
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Rosen konsuieren START
|
||||
*/
|
||||
function successConsumeHandler (result) {
|
||||
$scope.show($ionicLoading);
|
||||
var link = 'http://api.raataar.de/rosen/kauf.php';
|
||||
|
||||
$http.post(link, {name : $scope.name, freitext: $scope.freitext, rosen: $scope.preis}).then(function (res){
|
||||
@@ -98,41 +256,17 @@ angular.module('starter.controllers', [])
|
||||
// error
|
||||
});
|
||||
|
||||
|
||||
$scope.hide($ionicLoading);
|
||||
$state.go('tab.buys');
|
||||
|
||||
}, function (error) {
|
||||
console.log('Error');
|
||||
}, function (progress) {
|
||||
// PROGRESS HANDLING GOES HERE
|
||||
});
|
||||
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function errorBuyHandler (error) {
|
||||
/*
|
||||
var strResult = "";
|
||||
if(typeof error === 'object') {
|
||||
strResult = JSON.stringify(error);
|
||||
} else {
|
||||
strResult = error;
|
||||
}
|
||||
alert("Feher: \r\n"+strResult );
|
||||
*/
|
||||
|
||||
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: 'Oh Nein',
|
||||
template: 'Der Kauf konnte nicht durchgeführt werden.'
|
||||
});
|
||||
|
||||
alertPopup.then(function(res) {
|
||||
console.log('Der Kauf konnte nicht durchgeführt werden');
|
||||
});
|
||||
}
|
||||
|
||||
function errorConsumeHandler (error) {
|
||||
@@ -150,40 +284,35 @@ angular.module('starter.controllers', [])
|
||||
function consumesuccessHandler (result) {
|
||||
inappbilling.consumePurchase(successConsumeHandler, errorConsumeHandler, $scope.preis);
|
||||
}
|
||||
/*
|
||||
* Rosen konsuieren ENDE
|
||||
*/
|
||||
|
||||
$scope.buyRose = function() {
|
||||
|
||||
|
||||
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
||||
|
||||
if ($rootScope.storeinit==1){
|
||||
//Wegenbug ausgehebelt
|
||||
//inappbilling.buy(successBuyHandler, errorBuyHandler, $scope.preis);
|
||||
successConsumeHandler();
|
||||
}
|
||||
else{
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: 'Achtung',
|
||||
template: 'Der Google-Store konnte nicht initialisiert werden.'
|
||||
});
|
||||
|
||||
alertPopup.then(function(res) {
|
||||
console.log('Store steht nicht zur Verfuegung');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
.controller('BuysCtrl', function($scope, $database,$location) {
|
||||
$scope.items=[];
|
||||
//$scope.items=$localstorage.getObject('items');
|
||||
.controller('BuysCtrl', function($scope, $database,$location,$ionicModal,$ionicLoading,$timeout) {
|
||||
|
||||
/*
|
||||
$scope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
|
||||
if ($location.path() == "/tab/buys") {
|
||||
|
||||
|
||||
if ($location.path() == "/tab/buys") {
|
||||
$scope.show($ionicLoading);
|
||||
$timeout(fill_list, 1000);
|
||||
}
|
||||
|
||||
});
|
||||
*/
|
||||
|
||||
$scope.$on( "$ionicView.enter", function( scopes, states ) {
|
||||
$scope.show($ionicLoading);
|
||||
$timeout(fill_list, 1000);
|
||||
});
|
||||
|
||||
|
||||
function fill_list(){
|
||||
$scope.items=[];
|
||||
$database.getAllBuys().then(function (result) {
|
||||
if(result.length>0){
|
||||
for(i=0;i<result.length;i++){
|
||||
@@ -192,10 +321,43 @@ angular.module('starter.controllers', [])
|
||||
} else {
|
||||
$scope.items=[];
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$scope.hide($ionicLoading);
|
||||
}
|
||||
|
||||
|
||||
$scope.show = function() {
|
||||
$ionicLoading.show({
|
||||
template: '<p>Lade...</p><ion-spinner></ion-spinner>'
|
||||
});
|
||||
};
|
||||
|
||||
$scope.hide = function(){
|
||||
$ionicLoading.hide();
|
||||
};
|
||||
|
||||
|
||||
$scope.showImages = function(imagesrc) {
|
||||
$scope.imagesrc=imagesrc;
|
||||
$scope.showModal('templates/image-popover.html');
|
||||
}
|
||||
|
||||
$scope.showModal = function(templateUrl) {
|
||||
$ionicModal.fromTemplateUrl(templateUrl, {
|
||||
scope: $scope,
|
||||
animation: 'slide-in-up'
|
||||
}).then(function(modal) {
|
||||
$scope.modal = modal;
|
||||
$scope.modal.show();
|
||||
});
|
||||
}
|
||||
|
||||
// Close the modal
|
||||
$scope.closeModal = function() {
|
||||
$scope.modal.hide();
|
||||
$scope.modal.remove()
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("com.smartmobilesoftware.androidinappbilling.InAppBillingPlugin", function(require, exports, module) { /*
|
||||
cordova.define("com.smartmobilesoftware.androidinappbilling.InAppBillingPlugin", function(require, exports, module) {
|
||||
/*
|
||||
* Copyright (C) 2012-2013 by Guillaume Charhon
|
||||
* Modifications 10/16/2013 by Brian Thurlow
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-device.device", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-device.device", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file-transfer.FileTransfer", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file-transfer.FileTransfer", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file-transfer.FileTransferError", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file-transfer.FileTransferError", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.DirectoryEntry", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.DirectoryEntry", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.DirectoryReader", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.DirectoryReader", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.Entry", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.Entry", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.File", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.File", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileEntry", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileEntry", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileError", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileError", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileReader", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileReader", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileSystem", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileSystem", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileUploadOptions", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileUploadOptions", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileUploadResult", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileUploadResult", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileWriter", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileWriter", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.Flags", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.Flags", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.LocalFileSystem", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.LocalFileSystem", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.Metadata", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.Metadata", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.ProgressEvent", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.ProgressEvent", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.androidFileSystem", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.androidFileSystem", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.fileSystemPaths", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.fileSystemPaths", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.fileSystems-roots", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.fileSystems-roots", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.fileSystems", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.fileSystems", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.requestFileSystem", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.requestFileSystem", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.resolveLocalFileSystemURI", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.resolveLocalFileSystemURI", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-inappbrowser.inappbrowser", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-inappbrowser.inappbrowser", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-splashscreen.SplashScreen", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-splashscreen.SplashScreen", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-statusbar.statusbar", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-statusbar.statusbar", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-whitelist.whitelist", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-whitelist.whitelist", function(require, exports, module) {
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-sqlite-storage.SQLitePlugin", function(require, exports, module) { (function() {
|
||||
cordova.define("cordova-sqlite-storage.SQLitePlugin", function(require, exports, module) {
|
||||
(function() {
|
||||
var DB_STATE_INIT, DB_STATE_OPEN, READ_ONLY_REGEX, SQLiteFactory, SQLitePlugin, SQLitePluginTransaction, argsArray, dblocations, newSQLError, nextTick, root, txLocks;
|
||||
|
||||
root = this;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("ionic-plugin-keyboard.keyboard", function(require, exports, module) {
|
||||
cordova.define("ionic-plugin-keyboard.keyboard", function(require, exports, module) {
|
||||
|
||||
var argscheck = require('cordova/argscheck'),
|
||||
utils = require('cordova/utils'),
|
||||
exec = require('cordova/exec'),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("me.rahul.plugins.sqlDB.sqlDB", function(require, exports, module) { var exec = require('cordova/exec');
|
||||
cordova.define("me.rahul.plugins.sqlDB.sqlDB", function(require, exports, module) {
|
||||
var exec = require('cordova/exec');
|
||||
|
||||
exports.copy = function(dbname, location, success, error) {
|
||||
exec(success, error, "sqlDB", "copy", [dbname, location]);
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<div class="item tabs tabs-secondary tabs-icon-left">
|
||||
<a href="#" class="tab-item"><i class="icon ion-trash-a button-custom"></i>Löschen</a>
|
||||
<a href="#" class="tab-item"><i class="icon ion-android-image button-custom"></i>Anzeigen</a>
|
||||
<a href="#" class="tab-item" ng-click="showImages(i.appimgpublicpath)"><i class="icon ion-android-image button-custom"></i>Anzeigen</a>
|
||||
<a href="#" class="tab-item"><i class="icon ion-share button-custom"></i>Teilen</a>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -18,10 +18,31 @@
|
||||
</div>
|
||||
<div style="padding-bottom:15px;">
|
||||
<div class="item item-divider oleo">Wählen Sie Ihre Rosen aus:</div>
|
||||
<ion-list>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'1xrose'" class="item item-thumbnail-left item-text-wrap"><img src="img/rose1.png"><h2 class="oleo">1 Rose </h2> <span class="oleo-vsmall"<p>Preis: 0,50 € (inkl. MwSt.)</p></span> </ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'3xrose'" class="item item-thumbnail-left item-text-wrap"><img src="img/rose3.png"><h2 class="oleo">3 Rosen</h2> <span class="oleo-vsmall"<p>Preis: 1,00 € (inkl. MwSt.)</p></span> </ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'9xrose'" class="item item-thumbnail-left item-text-wrap"><img src="img/rose10.png"><h2 class="oleo">9 Rosen</h2> <span class="oleo-vsmall"<p>Preis: 2,00 € (inkl. MwSt.)</p></span> </ion-radio>
|
||||
<ion-list ng-show="showrosen">
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'1xrose'" class="item item-thumbnail-left item-text-wrap">
|
||||
<img src="img/rose1.png">
|
||||
<h2 class="oleo">{{ rosen1titel }}</h2>
|
||||
<span class="oleo-vsmall">{{ rosen1beschreibung }}</span><br>
|
||||
<span class="oleo-vsmall">{{ rosen1preistag }}</span>
|
||||
</ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'3xrose'" class="item item-thumbnail-left item-text-wrap">
|
||||
<img src="img/rose3.png">
|
||||
<h2 class="oleo">{{ rosen3titel }}</h2>
|
||||
<span class="oleo-vsmall">{{ rosen3beschreibung }}</span><br>
|
||||
<span class="oleo-vsmall">{{ rosen3preistag }}</span>
|
||||
</ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'9xrose'" class="item item-thumbnail-left item-text-wrap">
|
||||
<img src="img/rose10.png">
|
||||
<h2 class="oleo">{{ rosen9titel }}</h2>
|
||||
<span class="oleo-vsmall">{{ rosen9beschreibung }}</span><br>
|
||||
<span class="oleo-vsmall">{{ rosen9preistag }}</span>
|
||||
</ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'rosenflatrate'" class="item item-thumbnail-left item-text-wrap" ng-show="showflatrate">
|
||||
<img src="img/rose10.png">
|
||||
<h2 class="oleo">{{ flateraterosentitel }}</h2>
|
||||
<span class="oleo-vsmall">{{ flateraterosenbeschreibung }}</span><br>
|
||||
<span class="oleo-vsmall">{{ flateraterosenpreistag }}</span>
|
||||
</ion-radio>
|
||||
</ion-list>
|
||||
</div>
|
||||
|
||||
@@ -33,10 +54,6 @@
|
||||
<div class="col col-50"><button class="button button-full button-small icon-left ion-social-euro button-custom" ng-disabled="!$parent.preis || !$parent.freitext || !$parent.name" ng-click="buyRose()">Jetzt Kaufen</button></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col col-50"><button class="button button-full button-small icon-left ion-image button-custom" ng-disabled="!$parent.preis || !$parent.name || !$parent.freitext" ng-click="loaddata()">Laden</button></div>
|
||||
<div class="col col-50"><button class="button button-full button-small icon-left ion-social-euro button-custom" ng-disabled="!$parent.preis || !$parent.freitext || !$parent.name" ng-click="savedata()">Speichern</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -79,12 +79,26 @@ function onMessageFromNative(msg) {
|
||||
case 'searchbutton':
|
||||
// App life cycle events
|
||||
case 'pause':
|
||||
case 'resume':
|
||||
// Volume events
|
||||
case 'volumedownbutton':
|
||||
case 'volumeupbutton':
|
||||
cordova.fireDocumentEvent(action);
|
||||
break;
|
||||
case 'resume':
|
||||
if(arguments.length > 1 && msg.pendingResult) {
|
||||
if(arguments.length === 2) {
|
||||
msg.pendingResult.result = arguments[1];
|
||||
} else {
|
||||
// The plugin returned a multipart message
|
||||
var res = [];
|
||||
for(var i = 1; i < arguments.length; i++) {
|
||||
res.push(arguments[i]);
|
||||
}
|
||||
msg.pendingResult.result = res;
|
||||
}
|
||||
}
|
||||
cordova.fireDocumentEvent(action, msg);
|
||||
break;
|
||||
default:
|
||||
throw new Error('Unknown event action ' + action);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Platform: android
|
||||
// 2c29e187e4206a6a77fba940ef6f77aef5c7eb8c
|
||||
// ded62dda172755defaf75378ed007dc05730ec22
|
||||
/*
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
@@ -19,7 +19,7 @@
|
||||
under the License.
|
||||
*/
|
||||
;(function() {
|
||||
var PLATFORM_VERSION_BUILD_LABEL = '4.1.1';
|
||||
var PLATFORM_VERSION_BUILD_LABEL = '5.1.0';
|
||||
// file: src/scripts/require.js
|
||||
|
||||
/*jshint -W079 */
|
||||
@@ -101,7 +101,9 @@ if (typeof module === "object" && typeof require === "function") {
|
||||
// file: src/cordova.js
|
||||
define("cordova", function(require, exports, module) {
|
||||
|
||||
if(window.cordova){
|
||||
// Workaround for Windows 10 in hosted environment case
|
||||
// http://www.w3.org/html/wg/drafts/html/master/browsers.html#named-access-on-the-window-object
|
||||
if (window.cordova && !(window.cordova instanceof HTMLElement)) {
|
||||
throw new Error("cordova already defined");
|
||||
}
|
||||
|
||||
@@ -1291,10 +1293,12 @@ define("cordova/init_b", function(require, exports, module) {
|
||||
|
||||
var channel = require('cordova/channel');
|
||||
var cordova = require('cordova');
|
||||
var modulemapper = require('cordova/modulemapper');
|
||||
var platform = require('cordova/platform');
|
||||
var pluginloader = require('cordova/pluginloader');
|
||||
var utils = require('cordova/utils');
|
||||
|
||||
var platformInitChannelsArray = [channel.onDOMContentLoaded, channel.onNativeReady];
|
||||
var platformInitChannelsArray = [channel.onDOMContentLoaded, channel.onNativeReady, channel.onPluginsReady];
|
||||
|
||||
// setting exec
|
||||
cordova.exec = require('cordova/exec');
|
||||
@@ -1379,10 +1383,19 @@ if (window._nativeReady) {
|
||||
// Call the platform-specific initialization.
|
||||
platform.bootstrap && platform.bootstrap();
|
||||
|
||||
// Wrap in a setTimeout to support the use-case of having plugin JS appended to cordova.js.
|
||||
// The delay allows the attached modules to be defined before the plugin loader looks for them.
|
||||
setTimeout(function() {
|
||||
pluginloader.load(function() {
|
||||
channel.onPluginsReady.fire();
|
||||
});
|
||||
}, 0);
|
||||
|
||||
/**
|
||||
* Create all cordova objects once native side is ready.
|
||||
*/
|
||||
channel.join(function() {
|
||||
modulemapper.mapModules(window);
|
||||
|
||||
platform.initialize && platform.initialize();
|
||||
|
||||
@@ -1499,6 +1512,103 @@ exports.getOriginalSymbol = function(context, symbolPath) {
|
||||
exports.reset();
|
||||
|
||||
|
||||
});
|
||||
|
||||
// file: src/common/modulemapper_b.js
|
||||
define("cordova/modulemapper_b", function(require, exports, module) {
|
||||
|
||||
var builder = require('cordova/builder'),
|
||||
symbolList = [],
|
||||
deprecationMap;
|
||||
|
||||
exports.reset = function() {
|
||||
symbolList = [];
|
||||
deprecationMap = {};
|
||||
};
|
||||
|
||||
function addEntry(strategy, moduleName, symbolPath, opt_deprecationMessage) {
|
||||
symbolList.push(strategy, moduleName, symbolPath);
|
||||
if (opt_deprecationMessage) {
|
||||
deprecationMap[symbolPath] = opt_deprecationMessage;
|
||||
}
|
||||
}
|
||||
|
||||
// Note: Android 2.3 does have Function.bind().
|
||||
exports.clobbers = function(moduleName, symbolPath, opt_deprecationMessage) {
|
||||
addEntry('c', moduleName, symbolPath, opt_deprecationMessage);
|
||||
};
|
||||
|
||||
exports.merges = function(moduleName, symbolPath, opt_deprecationMessage) {
|
||||
addEntry('m', moduleName, symbolPath, opt_deprecationMessage);
|
||||
};
|
||||
|
||||
exports.defaults = function(moduleName, symbolPath, opt_deprecationMessage) {
|
||||
addEntry('d', moduleName, symbolPath, opt_deprecationMessage);
|
||||
};
|
||||
|
||||
exports.runs = function(moduleName) {
|
||||
addEntry('r', moduleName, null);
|
||||
};
|
||||
|
||||
function prepareNamespace(symbolPath, context) {
|
||||
if (!symbolPath) {
|
||||
return context;
|
||||
}
|
||||
var parts = symbolPath.split('.');
|
||||
var cur = context;
|
||||
for (var i = 0, part; part = parts[i]; ++i) {
|
||||
cur = cur[part] = cur[part] || {};
|
||||
}
|
||||
return cur;
|
||||
}
|
||||
|
||||
exports.mapModules = function(context) {
|
||||
var origSymbols = {};
|
||||
context.CDV_origSymbols = origSymbols;
|
||||
for (var i = 0, len = symbolList.length; i < len; i += 3) {
|
||||
var strategy = symbolList[i];
|
||||
var moduleName = symbolList[i + 1];
|
||||
var module = require(moduleName);
|
||||
// <runs/>
|
||||
if (strategy == 'r') {
|
||||
continue;
|
||||
}
|
||||
var symbolPath = symbolList[i + 2];
|
||||
var lastDot = symbolPath.lastIndexOf('.');
|
||||
var namespace = symbolPath.substr(0, lastDot);
|
||||
var lastName = symbolPath.substr(lastDot + 1);
|
||||
|
||||
var deprecationMsg = symbolPath in deprecationMap ? 'Access made to deprecated symbol: ' + symbolPath + '. ' + deprecationMsg : null;
|
||||
var parentObj = prepareNamespace(namespace, context);
|
||||
var target = parentObj[lastName];
|
||||
|
||||
if (strategy == 'm' && target) {
|
||||
builder.recursiveMerge(target, module);
|
||||
} else if ((strategy == 'd' && !target) || (strategy != 'd')) {
|
||||
if (!(symbolPath in origSymbols)) {
|
||||
origSymbols[symbolPath] = target;
|
||||
}
|
||||
builder.assignOrWrapInDeprecateGetter(parentObj, lastName, module, deprecationMsg);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
exports.getOriginalSymbol = function(context, symbolPath) {
|
||||
var origSymbols = context.CDV_origSymbols;
|
||||
if (origSymbols && (symbolPath in origSymbols)) {
|
||||
return origSymbols[symbolPath];
|
||||
}
|
||||
var parts = symbolPath.split('.');
|
||||
var obj = context;
|
||||
for (var i = 0; i < parts.length; ++i) {
|
||||
obj = obj && obj[parts[i]];
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
|
||||
exports.reset();
|
||||
|
||||
|
||||
});
|
||||
|
||||
// file: /Users/steveng/repo/cordova/cordova-android/cordova-js-src/platform.js
|
||||
@@ -1564,12 +1674,26 @@ function onMessageFromNative(msg) {
|
||||
case 'searchbutton':
|
||||
// App life cycle events
|
||||
case 'pause':
|
||||
case 'resume':
|
||||
// Volume events
|
||||
case 'volumedownbutton':
|
||||
case 'volumeupbutton':
|
||||
cordova.fireDocumentEvent(action);
|
||||
break;
|
||||
case 'resume':
|
||||
if(arguments.length > 1 && msg.pendingResult) {
|
||||
if(arguments.length === 2) {
|
||||
msg.pendingResult.result = arguments[1];
|
||||
} else {
|
||||
// The plugin returned a multipart message
|
||||
var res = [];
|
||||
for(var i = 1; i < arguments.length; i++) {
|
||||
res.push(arguments[i]);
|
||||
}
|
||||
msg.pendingResult.result = res;
|
||||
}
|
||||
}
|
||||
cordova.fireDocumentEvent(action, msg);
|
||||
break;
|
||||
default:
|
||||
throw new Error('Unknown event action ' + action);
|
||||
}
|
||||
@@ -1673,10 +1797,6 @@ module.exports = {
|
||||
// file: src/common/pluginloader.js
|
||||
define("cordova/pluginloader", function(require, exports, module) {
|
||||
|
||||
/*
|
||||
NOTE: this file is NOT used when we use the browserify workflow
|
||||
*/
|
||||
|
||||
var modulemapper = require('cordova/modulemapper');
|
||||
var urlutil = require('cordova/urlutil');
|
||||
|
||||
@@ -1784,6 +1904,54 @@ exports.load = function(callback) {
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
|
||||
// file: src/common/pluginloader_b.js
|
||||
define("cordova/pluginloader_b", function(require, exports, module) {
|
||||
|
||||
var modulemapper = require('cordova/modulemapper');
|
||||
|
||||
// Handler for the cordova_plugins.js content.
|
||||
// See plugman's plugin_loader.js for the details of this object.
|
||||
function handlePluginsObject(moduleList) {
|
||||
// if moduleList is not defined or empty, we've nothing to do
|
||||
if (!moduleList || !moduleList.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Loop through all the modules and then through their clobbers and merges.
|
||||
for (var i = 0, module; module = moduleList[i]; i++) {
|
||||
if (module.clobbers && module.clobbers.length) {
|
||||
for (var j = 0; j < module.clobbers.length; j++) {
|
||||
modulemapper.clobbers(module.id, module.clobbers[j]);
|
||||
}
|
||||
}
|
||||
|
||||
if (module.merges && module.merges.length) {
|
||||
for (var k = 0; k < module.merges.length; k++) {
|
||||
modulemapper.merges(module.id, module.merges[k]);
|
||||
}
|
||||
}
|
||||
|
||||
// Finally, if runs is truthy we want to simply require() the module.
|
||||
if (module.runs) {
|
||||
modulemapper.runs(module.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Loads all plugins' js-modules. Plugin loading is syncronous in browserified bundle
|
||||
// but the method accepts callback to be compatible with non-browserify flow.
|
||||
// onDeviceReady is blocked on onPluginsReady. onPluginsReady is fired when there are
|
||||
// no plugins to load, or they are all done.
|
||||
exports.load = function(callback) {
|
||||
var moduleList = require("cordova/plugin_list");
|
||||
handlePluginsObject(moduleList);
|
||||
|
||||
callback();
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
|
||||
// file: src/common/urlutil.js
|
||||
|
||||
@@ -3,7 +3,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/com.smartmobilesoftware.androidinappbilling/www/inappbilling.js",
|
||||
"id": "com.smartmobilesoftware.androidinappbilling.InAppBillingPlugin",
|
||||
"pluginId": "com.smartmobilesoftware.androidinappbilling",
|
||||
"clobbers": [
|
||||
"inappbilling"
|
||||
]
|
||||
@@ -11,55 +10,13 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-device/www/device.js",
|
||||
"id": "cordova-plugin-device.device",
|
||||
"pluginId": "cordova-plugin-device",
|
||||
"clobbers": [
|
||||
"device"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
|
||||
"id": "cordova-plugin-splashscreen.SplashScreen",
|
||||
"pluginId": "cordova-plugin-splashscreen",
|
||||
"clobbers": [
|
||||
"navigator.splashscreen"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-statusbar/www/statusbar.js",
|
||||
"id": "cordova-plugin-statusbar.statusbar",
|
||||
"pluginId": "cordova-plugin-statusbar",
|
||||
"clobbers": [
|
||||
"window.StatusBar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-whitelist/whitelist.js",
|
||||
"id": "cordova-plugin-whitelist.whitelist",
|
||||
"pluginId": "cordova-plugin-whitelist",
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/ionic-plugin-keyboard/www/android/keyboard.js",
|
||||
"id": "ionic-plugin-keyboard.keyboard",
|
||||
"pluginId": "ionic-plugin-keyboard",
|
||||
"clobbers": [
|
||||
"cordova.plugins.Keyboard"
|
||||
],
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js",
|
||||
"id": "cordova-plugin-inappbrowser.inappbrowser",
|
||||
"pluginId": "cordova-plugin-inappbrowser",
|
||||
"clobbers": [
|
||||
"cordova.InAppBrowser.open",
|
||||
"window.open"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/DirectoryEntry.js",
|
||||
"id": "cordova-plugin-file.DirectoryEntry",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.DirectoryEntry"
|
||||
]
|
||||
@@ -67,7 +24,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/DirectoryReader.js",
|
||||
"id": "cordova-plugin-file.DirectoryReader",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.DirectoryReader"
|
||||
]
|
||||
@@ -75,7 +31,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/Entry.js",
|
||||
"id": "cordova-plugin-file.Entry",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.Entry"
|
||||
]
|
||||
@@ -83,7 +38,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/File.js",
|
||||
"id": "cordova-plugin-file.File",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.File"
|
||||
]
|
||||
@@ -91,7 +45,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileEntry.js",
|
||||
"id": "cordova-plugin-file.FileEntry",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileEntry"
|
||||
]
|
||||
@@ -99,7 +52,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileError.js",
|
||||
"id": "cordova-plugin-file.FileError",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileError"
|
||||
]
|
||||
@@ -107,7 +59,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileReader.js",
|
||||
"id": "cordova-plugin-file.FileReader",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileReader"
|
||||
]
|
||||
@@ -115,7 +66,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileSystem.js",
|
||||
"id": "cordova-plugin-file.FileSystem",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileSystem"
|
||||
]
|
||||
@@ -123,7 +73,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileUploadOptions.js",
|
||||
"id": "cordova-plugin-file.FileUploadOptions",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileUploadOptions"
|
||||
]
|
||||
@@ -131,7 +80,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileUploadResult.js",
|
||||
"id": "cordova-plugin-file.FileUploadResult",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileUploadResult"
|
||||
]
|
||||
@@ -139,7 +87,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/FileWriter.js",
|
||||
"id": "cordova-plugin-file.FileWriter",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.FileWriter"
|
||||
]
|
||||
@@ -147,7 +94,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/Flags.js",
|
||||
"id": "cordova-plugin-file.Flags",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.Flags"
|
||||
]
|
||||
@@ -155,7 +101,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/LocalFileSystem.js",
|
||||
"id": "cordova-plugin-file.LocalFileSystem",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.LocalFileSystem"
|
||||
],
|
||||
@@ -166,7 +111,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/Metadata.js",
|
||||
"id": "cordova-plugin-file.Metadata",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.Metadata"
|
||||
]
|
||||
@@ -174,20 +118,17 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/ProgressEvent.js",
|
||||
"id": "cordova-plugin-file.ProgressEvent",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.ProgressEvent"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/fileSystems.js",
|
||||
"id": "cordova-plugin-file.fileSystems",
|
||||
"pluginId": "cordova-plugin-file"
|
||||
"id": "cordova-plugin-file.fileSystems"
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/requestFileSystem.js",
|
||||
"id": "cordova-plugin-file.requestFileSystem",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"clobbers": [
|
||||
"window.requestFileSystem"
|
||||
]
|
||||
@@ -195,7 +136,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js",
|
||||
"id": "cordova-plugin-file.resolveLocalFileSystemURI",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"merges": [
|
||||
"window"
|
||||
]
|
||||
@@ -203,7 +143,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/android/FileSystem.js",
|
||||
"id": "cordova-plugin-file.androidFileSystem",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"merges": [
|
||||
"FileSystem"
|
||||
]
|
||||
@@ -211,13 +150,11 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/fileSystems-roots.js",
|
||||
"id": "cordova-plugin-file.fileSystems-roots",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file/www/fileSystemPaths.js",
|
||||
"id": "cordova-plugin-file.fileSystemPaths",
|
||||
"pluginId": "cordova-plugin-file",
|
||||
"merges": [
|
||||
"cordova"
|
||||
],
|
||||
@@ -226,7 +163,6 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file-transfer/www/FileTransferError.js",
|
||||
"id": "cordova-plugin-file-transfer.FileTransferError",
|
||||
"pluginId": "cordova-plugin-file-transfer",
|
||||
"clobbers": [
|
||||
"window.FileTransferError"
|
||||
]
|
||||
@@ -234,23 +170,55 @@ module.exports = [
|
||||
{
|
||||
"file": "plugins/cordova-plugin-file-transfer/www/FileTransfer.js",
|
||||
"id": "cordova-plugin-file-transfer.FileTransfer",
|
||||
"pluginId": "cordova-plugin-file-transfer",
|
||||
"clobbers": [
|
||||
"window.FileTransfer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js",
|
||||
"id": "cordova-plugin-inappbrowser.inappbrowser",
|
||||
"clobbers": [
|
||||
"cordova.InAppBrowser.open",
|
||||
"window.open"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
|
||||
"id": "cordova-plugin-splashscreen.SplashScreen",
|
||||
"clobbers": [
|
||||
"navigator.splashscreen"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-statusbar/www/statusbar.js",
|
||||
"id": "cordova-plugin-statusbar.statusbar",
|
||||
"clobbers": [
|
||||
"window.StatusBar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-plugin-whitelist/whitelist.js",
|
||||
"id": "cordova-plugin-whitelist.whitelist",
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/cordova-sqlite-storage/www/SQLitePlugin.js",
|
||||
"id": "cordova-sqlite-storage.SQLitePlugin",
|
||||
"pluginId": "cordova-sqlite-storage",
|
||||
"clobbers": [
|
||||
"SQLitePlugin"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "plugins/ionic-plugin-keyboard/www/android/keyboard.js",
|
||||
"id": "ionic-plugin-keyboard.keyboard",
|
||||
"clobbers": [
|
||||
"cordova.plugins.Keyboard"
|
||||
],
|
||||
"runs": true
|
||||
},
|
||||
{
|
||||
"file": "plugins/me.rahul.plugins.sqlDB/www/sqlDB.js",
|
||||
"id": "me.rahul.plugins.sqlDB.sqlDB",
|
||||
"pluginId": "me.rahul.plugins.sqlDB",
|
||||
"clobbers": [
|
||||
"window.plugins.sqlDB"
|
||||
]
|
||||
@@ -258,19 +226,6 @@ module.exports = [
|
||||
];
|
||||
module.exports.metadata =
|
||||
// TOP OF METADATA
|
||||
{
|
||||
"com.smartmobilesoftware.androidinappbilling": "3.0.2",
|
||||
"cordova-plugin-console": "1.0.2",
|
||||
"cordova-plugin-device": "1.1.0",
|
||||
"cordova-plugin-splashscreen": "3.0.0",
|
||||
"cordova-plugin-statusbar": "2.0.0",
|
||||
"cordova-plugin-whitelist": "1.2.0",
|
||||
"ionic-plugin-keyboard": "1.0.8",
|
||||
"cordova-plugin-inappbrowser": "1.1.1",
|
||||
"cordova-plugin-file": "3.0.0",
|
||||
"cordova-plugin-file-transfer": "1.4.0",
|
||||
"cordova-sqlite-storage": "0.7.15-pre",
|
||||
"me.rahul.plugins.sqlDB": "1.0.3"
|
||||
}
|
||||
{}
|
||||
// BOTTOM OF METADATA
|
||||
});
|
||||
@@ -65,3 +65,53 @@
|
||||
font-size: 1.3em !important;
|
||||
}
|
||||
|
||||
.oleo-small{
|
||||
font-family: 'Bubblegum Sans', cursive;
|
||||
font-weight: 200 !important;
|
||||
font-size: 1.2em;
|
||||
|
||||
}
|
||||
|
||||
.oleo-vsmall{
|
||||
font-family: 'Bubblegum Sans', cursive;
|
||||
font-weight: 200 !important;
|
||||
font-size: 0.9em;
|
||||
|
||||
}
|
||||
|
||||
.tab-item{
|
||||
background-color: #A50505 !important;
|
||||
}
|
||||
|
||||
.image-list-thumb {
|
||||
padding: 2px 2px 2px 2px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.image-modal {
|
||||
width: 100% !important;
|
||||
height: 100%;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
}
|
||||
|
||||
.transparent {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.fullscreen-image {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
overflow: auto;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.slider {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -59,28 +59,46 @@ angular.module('starter', ['ionic', 'ngCordova', 'starter.controllers', 'starter
|
||||
}
|
||||
|
||||
|
||||
function successHandler (result) {
|
||||
/*
|
||||
|
||||
/*
|
||||
* Google-Stroe Initialisieren START
|
||||
*/
|
||||
function StoreInitsuccessHandler (result) {
|
||||
$rootScope.storeinit=1;
|
||||
inappbilling.getPurchases(purchasessuccess, purchasesfail)
|
||||
}
|
||||
|
||||
function StoreIniterrorHandler (error) {
|
||||
$rootScope.storeinit=0;
|
||||
}
|
||||
|
||||
|
||||
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
||||
inappbilling.init(StoreInitsuccessHandler, StoreIniterrorHandler, {showLog:true});
|
||||
}
|
||||
|
||||
|
||||
function purchasessuccess (result) {
|
||||
var strResult = "";
|
||||
if(typeof result === 'object') {
|
||||
strResult = JSON.stringify(result);
|
||||
} else {
|
||||
strResult = result;
|
||||
}
|
||||
|
||||
alert("SUCCESS: \r\n"+strResult );
|
||||
*/
|
||||
$rootScope.storeinit=1;
|
||||
}
|
||||
|
||||
function errorHandler (error) {
|
||||
//alert("ERROR: \r\n"+error );
|
||||
$rootScope.storeinit=0;
|
||||
function purchasesfail (error) {
|
||||
alert("ERROR: \r\n"+error );
|
||||
}
|
||||
|
||||
/*
|
||||
* Google-Stroe Initialisieren ENDE
|
||||
*/
|
||||
|
||||
|
||||
|
||||
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
||||
inappbilling.init(successHandler, errorHandler, {showLog:true});
|
||||
}
|
||||
|
||||
// Initialize database through $database service
|
||||
db = $database.initDB();
|
||||
@@ -121,6 +139,7 @@ angular.module('starter', ['ionic', 'ngCordova', 'starter.controllers', 'starter
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
.state('tab.buys', {
|
||||
url: '/buys',
|
||||
views: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
angular.module('starter.controllers', [])
|
||||
|
||||
.controller('DashCtrl', function($scope,$ionicPopup,$http, $database, $timeout,$rootScope, $cordovaFileTransfer) {
|
||||
.controller('DashCtrl', function($scope,$ionicPopup,$http, $database, $timeout,$rootScope, $cordovaFileTransfer,$cordovaFile,$ionicLoading,$state) {
|
||||
|
||||
$scope.preis="";
|
||||
$scope.name="";
|
||||
@@ -8,9 +8,47 @@ angular.module('starter.controllers', [])
|
||||
$scope.items=[];
|
||||
$scope.item=[];
|
||||
|
||||
//db = Database.getDb();
|
||||
$scope.producitems=[];
|
||||
|
||||
$scope.rosen1titel="";
|
||||
$scope.rosen1preis="";
|
||||
$scope.rosen1beschreibung="";
|
||||
$scope.rosen1preiscurrency="";
|
||||
$scope.rosen1preistag="";
|
||||
|
||||
$scope.rosen3titel="";
|
||||
$scope.rosen3preis="";
|
||||
$scope.rosen3beschreibung="";
|
||||
$scope.rosen3preiscurrency="";
|
||||
$scope.rosen3preistag="";
|
||||
|
||||
$scope.rosen9titel="";
|
||||
$scope.rosen9preis="";
|
||||
$scope.rosen9beschreibung="";
|
||||
$scope.rosen9preiscurrency="";
|
||||
$scope.rosen9preistag="";
|
||||
|
||||
$scope.flateraterosentitel="";
|
||||
$scope.flateraterosenpreis="";
|
||||
$scope.flateraterosenbeschreibung="";
|
||||
$scope.flateraterosenpreiscurrency="";
|
||||
$scope.flateraterosenpreistag="";
|
||||
|
||||
$scope.showrosen = false;
|
||||
$scope.showflatrate = true;
|
||||
|
||||
|
||||
|
||||
$scope.show = function() {
|
||||
$ionicLoading.show({
|
||||
template: '<p>Kauf wird abgeschlossen.</p><ion-spinner></ion-spinner>'
|
||||
});
|
||||
};
|
||||
|
||||
$scope.hide = function(){
|
||||
$ionicLoading.hide();
|
||||
};
|
||||
|
||||
//$scope.items=$localstorage.getObject('items');
|
||||
|
||||
$scope.validate = function() {
|
||||
|
||||
@@ -25,126 +63,85 @@ angular.module('starter.controllers', [])
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.loaddata = function() {
|
||||
$scope.items=[];
|
||||
$database.getAllBuys().then(function (result) {
|
||||
if(result.length>0){
|
||||
alert("daten da");
|
||||
for(i=0;i<result.length;i++){
|
||||
$scope.items.push(result[i]);
|
||||
alert(i);
|
||||
}
|
||||
|
||||
} else {
|
||||
$scope.items=[];
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
$scope.savedata = function() {
|
||||
$scope.item={name: $scope.name, bild: "test"};
|
||||
$scope.items.push($scope.item);
|
||||
$database.setBuys($scope.name,"test");
|
||||
};
|
||||
|
||||
function successBuyHandler (result) {
|
||||
/*
|
||||
var strResult = "";
|
||||
if(typeof result === 'object') {
|
||||
strResult = JSON.stringify(result);
|
||||
} else {
|
||||
strResult = result;
|
||||
}
|
||||
alert("SUCCESS: \r\n"+strResult );
|
||||
*/
|
||||
$timeout(consumesuccessHandler, 1000);
|
||||
/*
|
||||
* Produkt-Details abrufen START
|
||||
*/
|
||||
function getProducts(){
|
||||
inappbilling.getProductDetails(successProducts, errorProducts,["rosenflatrate","9xrose","3xrose","1xrose"]);
|
||||
}
|
||||
|
||||
function successConsumeHandler (result) {
|
||||
/*
|
||||
var strResult = "";
|
||||
if(typeof result === 'object') {
|
||||
strResult = JSON.stringify(result);
|
||||
} else {
|
||||
strResult = result;
|
||||
}
|
||||
alert("SUCCESS: \r\n"+strResult );
|
||||
*/
|
||||
var link = 'http://api.raataar.de/rosen/kauf.php';
|
||||
function successProducts (result) {
|
||||
|
||||
$http.post(link, {name : $scope.name, freitext: $scope.freitext, rosen: $scope.preis}).then(function (res){
|
||||
$scope.filetodownload = res.data;
|
||||
|
||||
// File for download
|
||||
var url = "http://api.raataar.de/rosen/" + $scope.filetodownload;
|
||||
//alert(JSON.stringify(result));
|
||||
|
||||
alert(url);
|
||||
// File name only
|
||||
var filename = url.split("/").pop();
|
||||
|
||||
alert(filename);
|
||||
// Save location
|
||||
//var targetPath = cordova.file.externalRootDirectory + filename;
|
||||
var targetPath = cordova.file.applicationStorageDirectory + filename;
|
||||
|
||||
alert(targetPath);
|
||||
$scope.targetPath='';
|
||||
$scope.targetPath=targetPath;
|
||||
$cordovaFileTransfer.download(url, targetPath, {}, true).then(function (result) {
|
||||
|
||||
$scope.item={name: $scope.name, bild: $scope.targetPath};
|
||||
$scope.items.push($scope.item);
|
||||
$scope.producitems = [
|
||||
angular.fromJson(result[0]),
|
||||
angular.fromJson(result[1]),
|
||||
angular.fromJson(result[2]),
|
||||
angular.fromJson(result[3])
|
||||
];
|
||||
|
||||
alert ($scope.targetPath);
|
||||
$database.setBuys($scope.name,$scope.targetPath);
|
||||
|
||||
}, function (error) {
|
||||
console.log('Error');
|
||||
}, function (progress) {
|
||||
// PROGRESS HANDLING GOES HERE
|
||||
});
|
||||
$scope.producitems[0].title=$scope.producitems[0].title.replace("(Wolle Rosen kaufen)", "");
|
||||
$scope.producitems[1].title=$scope.producitems[1].title.replace("(Wolle Rosen kaufen)", "");
|
||||
$scope.producitems[2].title=$scope.producitems[2].title.replace("(Wolle Rosen kaufen)", "");
|
||||
$scope.producitems[3].title=$scope.producitems[3].title.replace("(Wolle Rosen kaufen)", "");
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$scope.rosen1titel=$scope.producitems[2].title;
|
||||
$scope.rosen1preis=$scope.producitems[2].price;
|
||||
$scope.rosen1beschreibung=$scope.producitems[2].description;
|
||||
$scope.rosen1preiscurrency=$scope.producitems[2].price_currency_code;
|
||||
$scope.rosen1preistag="Preis: " + $scope.rosen1preis + " " + $scope.rosen1preiscurrency + " (inkl. MwSt.)";
|
||||
|
||||
$scope.rosen3titel=$scope.producitems[1].title;
|
||||
$scope.rosen3preis=$scope.producitems[1].price;
|
||||
$scope.rosen3beschreibung=$scope.producitems[1].description;
|
||||
$scope.rosen3preiscurrency=$scope.producitems[2].price_currency_code;
|
||||
$scope.rosen3preistag="Preis: " + $scope.rosen3preis + " " + $scope.rosen3preiscurrency + " (inkl. MwSt.)";
|
||||
|
||||
$scope.rosen9titel=$scope.producitems[0].title;
|
||||
$scope.rosen9preis=$scope.producitems[0].price;
|
||||
$scope.rosen9beschreibung=$scope.producitems[0].description;
|
||||
$scope.rosen9preiscurrency=$scope.producitems[2].price_currency_code;
|
||||
$scope.rosen9preistag="Preis: " + $scope.rosen9preis + " " + $scope.rosen9preiscurrency + " (inkl. MwSt.)";
|
||||
|
||||
$scope.flateraterosentitel=$scope.producitems[3].title;
|
||||
$scope.flateraterosenpreis=$scope.producitems[3].price;
|
||||
$scope.flateraterosenbeschreibung=$scope.producitems[3].description;
|
||||
$scope.flateraterosenpreiscurrency=$scope.producitems[2].price_currency_code;
|
||||
$scope.flateraterosenpreistag="Preis: " + $scope.flateraterosenpreis + " " + $scope.flateraterosenpreiscurrency + " (inkl. MwSt.)";
|
||||
|
||||
$scope.showrosen = true;
|
||||
$timeout(function(){
|
||||
$scope.showrosen = true;
|
||||
}, 500);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function errorBuyHandler (error) {
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: 'Oh Nein',
|
||||
template: 'Der Kauf konnte nicht durchgeführt werden.'
|
||||
});
|
||||
|
||||
alertPopup.then(function(res) {
|
||||
console.log('Der Kauf konnte nicht durchgeführt werden');
|
||||
});
|
||||
}
|
||||
|
||||
function errorConsumeHandler (error) {
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: 'Oh Nein',
|
||||
template: 'Der Kauf wurde durchgeführt, aber deine Rosen konnten freigeschaltet werden.'
|
||||
});
|
||||
|
||||
alertPopup.then(function(res) {
|
||||
console.log('Der Kauf wurde durchgeführt, aber deine Rosen konnten freigeschaltet werden');
|
||||
});
|
||||
function errorProducts (result) {
|
||||
var strResult = "";
|
||||
if(typeof result === 'object') {
|
||||
strResult = JSON.stringify(result);
|
||||
} else {
|
||||
strResult = result;
|
||||
}
|
||||
alert(strResult);
|
||||
}
|
||||
|
||||
|
||||
function consumesuccessHandler (result) {
|
||||
inappbilling.consumePurchase(successConsumeHandler, errorConsumeHandler, $scope.preis);
|
||||
}
|
||||
$timeout(getProducts, 1000);
|
||||
/*
|
||||
* Produkt-Details abrufen ENDE
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Rosen kaufen START
|
||||
*/
|
||||
$scope.buyRose = function() {
|
||||
|
||||
//alert($scope.preis);
|
||||
|
||||
if((window.device && device.platform == "Android") && typeof inappbilling !== "undefined") {
|
||||
|
||||
@@ -166,14 +163,156 @@ angular.module('starter.controllers', [])
|
||||
}
|
||||
}
|
||||
|
||||
function errorBuyHandler (error) {
|
||||
|
||||
var strResult = "";
|
||||
var returnBool=false;
|
||||
|
||||
if(typeof error === 'object') {
|
||||
strResult = JSON.stringify(error);
|
||||
} else {
|
||||
strResult = error;
|
||||
}
|
||||
|
||||
/*
|
||||
* Prüfen ob Kuf schonmal durchgeführt wurde, aber noch nicht konsumiert
|
||||
*/
|
||||
returnBool=strResult.indexOf("Item Already Owned") != -1;
|
||||
if (returnBool==true){
|
||||
//Rose wurde schon gekauft, jetzt konsumieren
|
||||
$timeout(consumesuccessHandler, 500);
|
||||
}
|
||||
else{
|
||||
//Ein anderer Fehler ist auf getreten Kauf wird abgebrochen
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: 'Oh Nein',
|
||||
template: 'Der Kauf konnte nicht durchgeführt werden.'
|
||||
});
|
||||
|
||||
alertPopup.then(function(res) {
|
||||
console.log('Der Kauf konnte nicht durchgeführt werden');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function successBuyHandler (result) {
|
||||
$timeout(consumesuccessHandler, 500);
|
||||
}
|
||||
|
||||
/*
|
||||
* Rosen kaufen ENDE
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Rosen konsuieren START
|
||||
*/
|
||||
function successConsumeHandler (result) {
|
||||
$scope.show($ionicLoading);
|
||||
var link = 'http://api.raataar.de/rosen/kauf.php';
|
||||
|
||||
$http.post(link, {name : $scope.name, freitext: $scope.freitext, rosen: $scope.preis}).then(function (res){
|
||||
$scope.filetodownload = res.data;
|
||||
|
||||
// File for download
|
||||
var url = "http://api.raataar.de/rosen/" + $scope.filetodownload;
|
||||
|
||||
// File name only
|
||||
var filename = url.split("/").pop();
|
||||
|
||||
// Save location
|
||||
//var targetPath = cordova.file.externalRootDirectory + filename;
|
||||
var targetPath = cordova.file.applicationStorageDirectory + filename;
|
||||
var targetpublicPath = cordova.file.externalRootDirectory + "/WolleRosenKaufen/" + filename;
|
||||
|
||||
$scope.targetPath='';
|
||||
$scope.targetPath=targetPath;
|
||||
$scope.targetpublicPath=targetpublicPath;
|
||||
|
||||
$scope.filename=filename;
|
||||
|
||||
$cordovaFileTransfer.download(url, targetPath, {}, true).then(function (result) {
|
||||
|
||||
$scope.item={name: $scope.name, bild: $scope.targetpublicPath};
|
||||
$scope.items.push($scope.item);
|
||||
|
||||
//itemName,itemBild,itemBildtext,itemKaufdatum,itemappimgpath,itemappimgpublicpath
|
||||
$database.setBuys($scope.name,$scope.filename,$scope.freitext,'','', $scope.targetpublicPath);
|
||||
//Ordner erstellen auf SD-Karte
|
||||
$cordovaFile.createDir(cordova.file.externalRootDirectory, "WolleRosenKaufen", false)
|
||||
.then(function (success) {
|
||||
// success
|
||||
}, function (error) {
|
||||
// error
|
||||
});
|
||||
|
||||
$cordovaFile.copyFile(cordova.file.applicationStorageDirectory, $scope.filename, cordova.file.externalRootDirectory + "/WolleRosenKaufen", $scope.filename)
|
||||
.then(function (success) {
|
||||
// success
|
||||
}, function (error) {
|
||||
// error
|
||||
});
|
||||
|
||||
$scope.hide($ionicLoading);
|
||||
$state.go('tab.buys');
|
||||
|
||||
}, function (error) {
|
||||
console.log('Error');
|
||||
}, function (progress) {
|
||||
// PROGRESS HANDLING GOES HERE
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
function errorConsumeHandler (error) {
|
||||
var alertPopup = $ionicPopup.alert({
|
||||
title: 'Oh Nein',
|
||||
template: 'Der Kauf wurde durchgeführt, aber deine Rosen konnten freigeschaltet werden.'
|
||||
});
|
||||
|
||||
alertPopup.then(function(res) {
|
||||
console.log('Der Kauf wurde durchgeführt, aber deine Rosen konnten freigeschaltet werden');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function consumesuccessHandler (result) {
|
||||
inappbilling.consumePurchase(successConsumeHandler, errorConsumeHandler, $scope.preis);
|
||||
}
|
||||
/*
|
||||
* Rosen konsuieren ENDE
|
||||
*/
|
||||
|
||||
|
||||
})
|
||||
|
||||
.controller('BuysCtrl', function($scope, $database,$location) {
|
||||
$scope.items=[];
|
||||
//$scope.items=$localstorage.getObject('items');
|
||||
.controller('BuysCtrl', function($scope, $database,$location,$ionicModal,$ionicLoading,$timeout) {
|
||||
|
||||
/*
|
||||
$scope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
|
||||
if ($location.path() == "/tab/buys") {
|
||||
|
||||
|
||||
if ($location.path() == "/tab/buys") {
|
||||
$scope.show($ionicLoading);
|
||||
$timeout(fill_list, 1000);
|
||||
}
|
||||
|
||||
});
|
||||
*/
|
||||
|
||||
$scope.$on( "$ionicView.enter", function( scopes, states ) {
|
||||
$scope.show($ionicLoading);
|
||||
$timeout(fill_list, 1000);
|
||||
});
|
||||
|
||||
|
||||
function fill_list(){
|
||||
$scope.items=[];
|
||||
$database.getAllBuys().then(function (result) {
|
||||
if(result.length>0){
|
||||
for(i=0;i<result.length;i++){
|
||||
@@ -182,10 +321,43 @@ angular.module('starter.controllers', [])
|
||||
} else {
|
||||
$scope.items=[];
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$scope.hide($ionicLoading);
|
||||
}
|
||||
|
||||
|
||||
$scope.show = function() {
|
||||
$ionicLoading.show({
|
||||
template: '<p>Lade...</p><ion-spinner></ion-spinner>'
|
||||
});
|
||||
};
|
||||
|
||||
$scope.hide = function(){
|
||||
$ionicLoading.hide();
|
||||
};
|
||||
|
||||
|
||||
$scope.showImages = function(imagesrc) {
|
||||
$scope.imagesrc=imagesrc;
|
||||
$scope.showModal('templates/image-popover.html');
|
||||
}
|
||||
|
||||
$scope.showModal = function(templateUrl) {
|
||||
$ionicModal.fromTemplateUrl(templateUrl, {
|
||||
scope: $scope,
|
||||
animation: 'slide-in-up'
|
||||
}).then(function(modal) {
|
||||
$scope.modal = modal;
|
||||
$scope.modal.show();
|
||||
});
|
||||
}
|
||||
|
||||
// Close the modal
|
||||
$scope.closeModal = function() {
|
||||
$scope.modal.hide();
|
||||
$scope.modal.remove()
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
|
||||
@@ -61,9 +61,9 @@ angular.module('starter.services', [])
|
||||
console.log('Database opened');
|
||||
return self.db;
|
||||
},
|
||||
setBuys: function(itemName,itemBild) {
|
||||
query="INSERT INTO buys (Name, Bild) VALUES (?,?);";
|
||||
return $cordovaSQLite.execute(self.db,query,[itemName,itemBild]).
|
||||
setBuys: function(itemName,itemBild,itemBildtext,itemKaufdatum,itemappimgpath,itemappimgpublicpath) {
|
||||
query="INSERT INTO buys (Name, Bild, Bildtext, Kaufdatum, appimgpath, appimgpublicpath) VALUES (?,?,?,?,?,?);";
|
||||
return $cordovaSQLite.execute(self.db,query,[itemName,itemBild,itemBildtext,itemKaufdatum,itemappimgpath,itemappimgpublicpath]).
|
||||
then(function(result) {
|
||||
console.log("Gespeichert");
|
||||
query=null;
|
||||
@@ -81,6 +81,10 @@ angular.module('starter.services', [])
|
||||
//console.log(result.rows.item(j));
|
||||
List.name=result.rows.item(j).Name;
|
||||
List.bild=result.rows.item(j).Bild;
|
||||
List.bildtext=result.rows.item(j).Bildtext;
|
||||
List.kaufdatum=result.rows.item(j).Kaufdatum;
|
||||
List.appimgpath=result.rows.item(j).appimgpath;
|
||||
List.appimgpublicpath=result.rows.item(j).appimgpublicpath;
|
||||
ArrayQ.push(List);
|
||||
}
|
||||
//console.log(ArrayQ);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("com.smartmobilesoftware.androidinappbilling.InAppBillingPlugin", function(require, exports, module) { /*
|
||||
cordova.define("com.smartmobilesoftware.androidinappbilling.InAppBillingPlugin", function(require, exports, module) {
|
||||
/*
|
||||
* Copyright (C) 2012-2013 by Guillaume Charhon
|
||||
* Modifications 10/16/2013 by Brian Thurlow
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-device.device", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-device.device", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file-transfer.FileTransfer", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file-transfer.FileTransfer", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file-transfer.FileTransferError", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file-transfer.FileTransferError", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.DirectoryEntry", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.DirectoryEntry", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.DirectoryReader", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.DirectoryReader", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.Entry", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.Entry", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.File", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.File", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileEntry", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileEntry", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileError", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileError", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileReader", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileReader", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileSystem", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileSystem", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileUploadOptions", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileUploadOptions", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileUploadResult", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileUploadResult", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.FileWriter", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.FileWriter", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.Flags", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.Flags", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.LocalFileSystem", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.LocalFileSystem", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.Metadata", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.Metadata", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.ProgressEvent", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.ProgressEvent", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.androidFileSystem", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.androidFileSystem", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.fileSystemPaths", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.fileSystemPaths", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.fileSystems-roots", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.fileSystems-roots", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.fileSystems", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.fileSystems", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.requestFileSystem", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.requestFileSystem", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-file.resolveLocalFileSystemURI", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-file.resolveLocalFileSystemURI", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-inappbrowser.inappbrowser", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-inappbrowser.inappbrowser", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-splashscreen.SplashScreen", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-splashscreen.SplashScreen", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-statusbar.statusbar", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-statusbar.statusbar", function(require, exports, module) {
|
||||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-plugin-whitelist.whitelist", function(require, exports, module) { /*
|
||||
cordova.define("cordova-plugin-whitelist.whitelist", function(require, exports, module) {
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("cordova-sqlite-storage.SQLitePlugin", function(require, exports, module) { (function() {
|
||||
cordova.define("cordova-sqlite-storage.SQLitePlugin", function(require, exports, module) {
|
||||
(function() {
|
||||
var DB_STATE_INIT, DB_STATE_OPEN, READ_ONLY_REGEX, SQLiteFactory, SQLitePlugin, SQLitePluginTransaction, argsArray, dblocations, newSQLError, nextTick, root, txLocks;
|
||||
|
||||
root = this;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("ionic-plugin-keyboard.keyboard", function(require, exports, module) {
|
||||
cordova.define("ionic-plugin-keyboard.keyboard", function(require, exports, module) {
|
||||
|
||||
var argscheck = require('cordova/argscheck'),
|
||||
utils = require('cordova/utils'),
|
||||
exec = require('cordova/exec'),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cordova.define("me.rahul.plugins.sqlDB.sqlDB", function(require, exports, module) { var exec = require('cordova/exec');
|
||||
cordova.define("me.rahul.plugins.sqlDB.sqlDB", function(require, exports, module) {
|
||||
var exec = require('cordova/exec');
|
||||
|
||||
exports.copy = function(dbname, location, success, error) {
|
||||
exec(success, error, "sqlDB", "copy", [dbname, location]);
|
||||
|
||||
Binary file not shown.
@@ -1,29 +1,34 @@
|
||||
<ion-view view-title="Gekaufte Rosen">
|
||||
<ion-content class="padding">
|
||||
<ion-view view-title="Gekaufte Rosen ..">
|
||||
<ion-content class="padding">
|
||||
|
||||
<div style="padding-bottom:15px;">
|
||||
|
||||
<ul class="list card">
|
||||
<div class="item item-divider oleo">Hier können Sie Ihre gekauften Rosen ansehen oder nochmals versenden!</div>
|
||||
|
||||
<a class="item item-thumbnail-left item-button-right" href="#" ng-repeat="i in items" ng-model="items">
|
||||
<img ng-src="{{i.bild}}>
|
||||
<h1>{{i.name}}</h1>
|
||||
<p>{{i.freitext}} </p>
|
||||
<div class="buttons" style="margin-top:30px;">
|
||||
<button class="button button-small" >
|
||||
<i class="icon ion-image"> Vorschau</i>
|
||||
</button>
|
||||
<button class="button button-small">
|
||||
<i class="icon ion-android-share-alt"> Teilen</i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
</ul>
|
||||
<div style="padding-bottom:20px;"></div>
|
||||
<div class="item item-divider oleo">.. Löschen, Anzeigen oder Teilen?</div>
|
||||
|
||||
<a href="#" ></a>
|
||||
|
||||
<ion-card ng-repeat="i in items" ng-model="items">
|
||||
|
||||
<div class="list card">
|
||||
<div class="item item-avatar"> <img ng-src="{{i.appimgpublicpath}}">
|
||||
<h2> <div class="oleo">{{i.name}}</div> </h2>
|
||||
</div>
|
||||
|
||||
<div class="item item-body">
|
||||
<div class="oleo-vsmall">{{i.bildtext}}</div>
|
||||
</div>
|
||||
|
||||
<ion-item>
|
||||
|
||||
</ion-content>
|
||||
<div class="item tabs tabs-secondary tabs-icon-left">
|
||||
<a href="#" class="tab-item"><i class="icon ion-trash-a button-custom"></i>Löschen</a>
|
||||
<a href="#" class="tab-item" ng-click="showImages(i.appimgpublicpath)"><i class="icon ion-android-image button-custom"></i>Anzeigen</a>
|
||||
<a href="#" class="tab-item"><i class="icon ion-share button-custom"></i>Teilen</a>
|
||||
</div>
|
||||
|
||||
</ion-item>
|
||||
</div>
|
||||
|
||||
</ion-card>
|
||||
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
||||
@@ -1,22 +1,48 @@
|
||||
<ion-view view-title='Rosen kaufen'>
|
||||
<ion-view view-title='Rosen kaufen ..'>
|
||||
<ion-content class="padding">
|
||||
<div class="list card">
|
||||
<div class="item item-divider oleo">Schenken Sie einem besonderen Menschen eine außergewöhnliche Aufmerksamkeit!</div>
|
||||
<div class="item item-divider oleo">.. für einen besonderen Menschen!</div>
|
||||
<label class="item item-input item-stacked-label">
|
||||
<span class="input-label">Name Ihres Liebsten:</span>
|
||||
<input type="text" placeholder="" class="oleo" ng-model="$parent.name">
|
||||
<span class="oleo-small" class="input-label">Name:</span>
|
||||
<textarea placeholder="" rows="1" cols="1" class="oleo-small" ng-model="$parent.name"></textarea>
|
||||
</label>
|
||||
<label class="item item-input item-stacked-label">
|
||||
<span class="input-label">Ihre persönliche Nachricht:</span>
|
||||
<textarea placeholder="" rows="4" cols="10" class="oleo" ng-model="$parent.freitext"></textarea>
|
||||
<span class="oleo-small" class="input-label">Persönliche Nachricht:</span>
|
||||
<textarea placeholder="" rows="4" cols="10" class="oleo-small" ng-model="$parent.freitext"></textarea>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div
|
||||
<div class="col col-100"><button class="button button-full button-small icon-left ion-android-hangout button-custom" ng-click="loadzitat()">kleine Hilfe?</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div style="padding-bottom:15px;">
|
||||
<div class="item item-divider oleo">Wählen Sie Ihre Rosen aus:</div>
|
||||
<ion-list>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'1xrose'" class="item item-thumbnail-left item-text-wrap"><img src="img/rose1.png"><h2 class="oleo">1 Rose </h2><p>Preis: 0,50 € (zzgl. gesetzl. MwSt.)</p></ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'3xrose'" class="item item-thumbnail-left item-text-wrap"><img src="img/rose3.png"><h2 class="oleo">3 Rosen</h2><p>Preis: 1,00 € (zzgl. gesetzl. MwSt.)</p></ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'9xrose'" class="item item-thumbnail-left item-text-wrap"><img src="img/rose10.png"><h2 class="oleo">9 Rosen</h2><p>Preis: 2,00 € (zzgl. gesetzl. MwSt.)</p></ion-radio>
|
||||
<ion-list ng-show="showrosen">
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'1xrose'" class="item item-thumbnail-left item-text-wrap">
|
||||
<img src="img/rose1.png">
|
||||
<h2 class="oleo">{{ rosen1titel }}</h2>
|
||||
<span class="oleo-vsmall">{{ rosen1beschreibung }}</span><br>
|
||||
<span class="oleo-vsmall">{{ rosen1preistag }}</span>
|
||||
</ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'3xrose'" class="item item-thumbnail-left item-text-wrap">
|
||||
<img src="img/rose3.png">
|
||||
<h2 class="oleo">{{ rosen3titel }}</h2>
|
||||
<span class="oleo-vsmall">{{ rosen3beschreibung }}</span><br>
|
||||
<span class="oleo-vsmall">{{ rosen3preistag }}</span>
|
||||
</ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'9xrose'" class="item item-thumbnail-left item-text-wrap">
|
||||
<img src="img/rose10.png">
|
||||
<h2 class="oleo">{{ rosen9titel }}</h2>
|
||||
<span class="oleo-vsmall">{{ rosen9beschreibung }}</span><br>
|
||||
<span class="oleo-vsmall">{{ rosen9preistag }}</span>
|
||||
</ion-radio>
|
||||
<ion-radio ng-model="$parent.preis" ng-value="'rosenflatrate'" class="item item-thumbnail-left item-text-wrap" ng-show="showflatrate">
|
||||
<img src="img/rose10.png">
|
||||
<h2 class="oleo">{{ flateraterosentitel }}</h2>
|
||||
<span class="oleo-vsmall">{{ flateraterosenbeschreibung }}</span><br>
|
||||
<span class="oleo-vsmall">{{ flateraterosenpreistag }}</span>
|
||||
</ion-radio>
|
||||
</ion-list>
|
||||
</div>
|
||||
|
||||
@@ -28,10 +54,6 @@
|
||||
<div class="col col-50"><button class="button button-full button-small icon-left ion-social-euro button-custom" ng-disabled="!$parent.preis || !$parent.freitext || !$parent.name" ng-click="buyRose()">Jetzt Kaufen</button></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col col-50"><button class="button button-full button-small icon-left ion-image button-custom" ng-disabled="!$parent.preis || !$parent.name || !$parent.freitext" ng-click="loaddata()">Laden</button></div>
|
||||
<div class="col col-50"><button class="button button-full button-small icon-left ion-social-euro button-custom" ng-disabled="!$parent.preis || !$parent.freitext || !$parent.name" ng-click="savedata()">Speichern</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user