Remove Sencha Touch.
|
@ -99,7 +99,6 @@ module.exports = function(grunt) {
|
|||
doRegisterTask('sockjs');
|
||||
doRegisterTask('xregexp');
|
||||
doRegisterTask('megapixel');
|
||||
doRegisterTask('touch');
|
||||
doRegisterTask('jquery');
|
||||
doRegisterTask('underscore');
|
||||
doRegisterTask('zeroclipboard');
|
||||
|
@ -398,7 +397,6 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('deploy-sockjs', ['sockjs-init', 'clean', 'copy']);
|
||||
grunt.registerTask('deploy-xregexp', ['xregexp-init', 'clean', 'copy']);
|
||||
grunt.registerTask('deploy-megapixel', ['megapixel-init', 'clean', 'copy']);
|
||||
grunt.registerTask('deploy-touch', ['touch-init', 'clean', 'copy']);
|
||||
grunt.registerTask('deploy-jquery', ['jquery-init', 'clean', 'copy']);
|
||||
grunt.registerTask('deploy-underscore', ['underscore-init', 'clean', 'copy']);
|
||||
grunt.registerTask('deploy-zeroclipboard', ['zeroclipboard-init', 'clean', 'copy']);
|
||||
|
|
|
@ -328,16 +328,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/bootstrap"
|
||||
|
@ -448,6 +438,6 @@
|
|||
]
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-megapixel deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-megapixel deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
}
|
||||
}
|
|
@ -77,18 +77,6 @@ module.exports = function(grunt) {
|
|||
});
|
||||
});
|
||||
|
||||
grunt.registerTask('touch-init', function() {
|
||||
grunt.initConfig({
|
||||
clean: packageFile['touch']['clean'],
|
||||
|
||||
copy: {
|
||||
script: {
|
||||
files: packageFile['touch']["copy"]["script"]
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
grunt.registerTask('jquery-init', function() {
|
||||
grunt.initConfig({
|
||||
clean: packageFile['jquery']['clean'],
|
||||
|
@ -307,7 +295,6 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('deploy-3rdparty-bootstrap', 'bootstrap-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-extjs', 'extjs-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-megapixel', 'megapixel-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-touch', 'touch-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-jquery', 'jquery-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-sockjs', 'sockjs-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-xregexp', 'xregexp-init clean copy');
|
||||
|
@ -380,7 +367,7 @@ module.exports = function(grunt) {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('init-obfuscate-api', 'Obfuscate api.', function(){
|
||||
grunt.initConfig({
|
||||
exec: {
|
||||
|
@ -401,10 +388,10 @@ module.exports = function(grunt) {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('obfuscate-api', 'init-obfuscate-api exec');
|
||||
grunt.registerTask('obfuscate-app', 'init-obfuscate-app exec');
|
||||
|
||||
|
||||
grunt.registerTask('deploy-documenteditor', 'init-build-documenteditor deploy-app');
|
||||
grunt.registerTask('deploy-spreadsheeteditor', 'init-build-spreadsheeteditor deploy-app');
|
||||
grunt.registerTask('deploy-presentationeditor', 'init-build-presentationeditor deploy-app');
|
||||
|
@ -412,59 +399,59 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('obfuscate-documenteditor', 'deploy-documenteditor obfuscate-api obfuscate-app');
|
||||
grunt.registerTask('obfuscate-spreadsheeteditor', 'deploy-spreadsheeteditor obfuscate-app');
|
||||
grunt.registerTask('obfuscate-presentationeditor', 'deploy-presentationeditor obfuscate-api obfuscate-app');
|
||||
|
||||
|
||||
grunt.registerTask('obfuscate-all', 'obfuscate-documenteditor obfuscate-spreadsheeteditor obfuscate-presentationeditor');
|
||||
|
||||
|
||||
grunt.registerTask('init-deploy-isa209', 'Initialize deploy to isa209.', function(){
|
||||
deployConfig = 'isa209.json';
|
||||
|
||||
|
||||
deployFile = require('./' + deployConfig);
|
||||
|
||||
if (deployFile)
|
||||
|
||||
if (deployFile)
|
||||
grunt.log.ok('isa209 config loaded successfully'.green);
|
||||
else
|
||||
grunt.log.error().writeln('Could not load config file'.red);
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('init-deploy-testserver', 'Initialize deploy to testserver.', function(){
|
||||
deployConfig = 'testserver.json';
|
||||
|
||||
|
||||
deployFile = require('./' + deployConfig);
|
||||
|
||||
if (deployFile)
|
||||
|
||||
if (deployFile)
|
||||
grunt.log.ok('testserver config loaded successfully'.green);
|
||||
else
|
||||
grunt.log.error().writeln('Could not load config file'.red);
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('init-deploy-com', 'Initialize deploy to com.', function(){
|
||||
deployConfig = 'com.json';
|
||||
|
||||
|
||||
deployFile = require('./' + deployConfig);
|
||||
|
||||
if (deployFile)
|
||||
|
||||
if (deployFile)
|
||||
grunt.log.ok('com config loaded successfully'.green);
|
||||
else
|
||||
grunt.log.error().writeln('Could not load config file'.red);
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('init-deploy-com.eu', 'Initialize deploy to com.', function(){
|
||||
deployConfig = 'com.eu.json';
|
||||
|
||||
|
||||
deployFile = require('./' + deployConfig);
|
||||
|
||||
if (deployFile)
|
||||
|
||||
if (deployFile)
|
||||
grunt.log.ok('com config loaded successfully'.green);
|
||||
else
|
||||
grunt.log.error().writeln('Could not load config file'.red);
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('init-deploy-nct', 'Initialize deploy to nct.', function(){
|
||||
deployConfig = 'nct.json';
|
||||
|
||||
|
||||
deployFile = require('./' + deployConfig);
|
||||
|
||||
if (deployFile)
|
||||
|
||||
if (deployFile)
|
||||
grunt.log.ok('nct config loaded successfully'.green);
|
||||
else
|
||||
grunt.log.error().writeln('Could not load config file'.red);
|
||||
|
@ -472,15 +459,15 @@ module.exports = function(grunt) {
|
|||
|
||||
grunt.registerTask('init-deploy-doc-test', 'Initialize deploy to doc-test.', function(){
|
||||
deployConfig = 'doc-test.json';
|
||||
|
||||
|
||||
deployFile = require('./' + deployConfig);
|
||||
|
||||
if (deployFile)
|
||||
|
||||
if (deployFile)
|
||||
grunt.log.ok('doc-test config loaded successfully'.green);
|
||||
else
|
||||
grunt.log.error().writeln('Could not load config file'.red);
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('run-deploy-task', 'Run deploy task.', function(){
|
||||
if (deployFile) {
|
||||
if (deployFile['tasks']['deploy'])
|
||||
|
@ -491,52 +478,52 @@ module.exports = function(grunt) {
|
|||
grunt.log.error().writeln('Is not load configure file.'.red);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('insert-version-to-url', function() {
|
||||
var dst_folder = 'v' + deployFile['version']['major'] + '.' + deployFile['version']['minor'];
|
||||
|
||||
|
||||
if(undefined !== process.env['BUILD_NUMBER'])
|
||||
{
|
||||
grunt.log.ok('Use Jenkins build number as minor version!'.yellow);
|
||||
grunt.log.ok('Use Jenkins build number as minor version!'.yellow);
|
||||
dst_folder = 'v' + deployFile['version']['major'] + '.' + process.env['BUILD_NUMBER'];
|
||||
}
|
||||
|
||||
|
||||
//change current config:
|
||||
//set version's named folder as rootDir for archived sources
|
||||
if(undefined !== deployFile['compress'])
|
||||
deployFile['compress']['dist']['options']['rootDir'] = dst_folder;
|
||||
|
||||
|
||||
if(undefined !== deployFile['dst'])
|
||||
deployFile['dst'] = deployFile['dst'] + '/' + dst_folder;
|
||||
|
||||
//add version's named folder to full path url
|
||||
var full_url = deployFile['replace']['url']['options']['variables'];
|
||||
for(var i in full_url){
|
||||
for(var i in full_url){
|
||||
full_url[i] = full_url[i] + dst_folder + '/';
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('increment-deploy-version', function() {
|
||||
|
||||
var pkg = grunt.file.readJSON(deployConfig);
|
||||
pkg.version.minor = parseInt(pkg.version.minor) + 1;
|
||||
|
||||
|
||||
//write changes
|
||||
grunt.file.write(deployConfig, JSON.stringify(pkg, null, 4));
|
||||
});
|
||||
|
||||
|
||||
grunt.registerTask('init-deploy-compress', function(){
|
||||
grunt.initConfig({
|
||||
pkg: '<json:' + deployConfig + '>',
|
||||
compress: deployFile['compress']
|
||||
});
|
||||
});
|
||||
|
||||
grunt.registerTask('deploy-compress-all', 'init-deploy-compress');
|
||||
|
||||
|
||||
grunt.registerTask('deploy-compress-all', 'init-deploy-compress');
|
||||
|
||||
grunt.registerTask('init-deploy-configure', 'Init configure task.', function(){
|
||||
var replace_path_array = {};
|
||||
|
||||
|
||||
if(deployFile['path']){
|
||||
//Generate structure for the replace tasks
|
||||
//for each pattern
|
||||
|
@ -544,10 +531,10 @@ module.exports = function(grunt) {
|
|||
//and for each file
|
||||
for(var j in deployFile['path']['src_path']){
|
||||
var replace_task_name = 'path_subtask_' + i + j;
|
||||
replace_path_array[replace_task_name] = {};
|
||||
replace_path_array[replace_task_name] = {};
|
||||
replace_path_array[replace_task_name]['options'] = {};
|
||||
var find = deployFile['path']['pattern'][i];
|
||||
|
||||
|
||||
var replace = '';
|
||||
//find the count of slash
|
||||
var start_index = 0;
|
||||
|
@ -565,14 +552,14 @@ module.exports = function(grunt) {
|
|||
if(last_slash != -1)
|
||||
replace = replace + deployFile['path']['src_path'][j].substring(0, last_slash + 1);
|
||||
replace = replace + find;
|
||||
|
||||
|
||||
replace_path_array[replace_task_name]['options']['variables'] = {};
|
||||
replace_path_array[replace_task_name]['options']['variables'][find] = replace;
|
||||
replace_path_array[replace_task_name]['options']['prefix'] = "";
|
||||
var file = deployFile['path']['base_path'] + '/' + deployFile['path']['src_path'][j];
|
||||
replace_path_array[replace_task_name]['files'] = {};
|
||||
replace_path_array[replace_task_name]['files'][file] = file;
|
||||
grunt.log.ok(JSON.stringify(replace_path_array[replace_task_name], null, 4).green);
|
||||
grunt.log.ok(JSON.stringify(replace_path_array[replace_task_name], null, 4).green);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -580,7 +567,7 @@ module.exports = function(grunt) {
|
|||
for(var i in deployFile['replace']){
|
||||
replace_path_array[i] = deployFile['replace'][i];
|
||||
}
|
||||
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: deployFile,
|
||||
pkg_origin: '<json:' + deployConfig + '>',
|
||||
|
@ -592,12 +579,12 @@ module.exports = function(grunt) {
|
|||
}
|
||||
}
|
||||
},
|
||||
replace: replace_path_array
|
||||
replace: replace_path_array
|
||||
});
|
||||
});
|
||||
|
||||
grunt.registerTask('deploy-configure-all', 'init-deploy-configure clean copy replace');
|
||||
|
||||
|
||||
grunt.registerTask('deploy-configure-all', 'init-deploy-configure clean copy replace');
|
||||
|
||||
grunt.registerTask('deploy-to-isa209', 'init-deploy-isa209 run-deploy-task');
|
||||
grunt.registerTask('deploy-to-testserver', 'init-deploy-testserver run-deploy-task');
|
||||
grunt.registerTask('deploy-to-com', 'init-deploy-com run-deploy-task');
|
||||
|
@ -605,6 +592,6 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('deploy-to-nct', 'init-deploy-nct run-deploy-task');
|
||||
grunt.registerTask('deploy-to-doc-test', 'init-deploy-doc-test run-deploy-task');
|
||||
grunt.registerTask('deploy-to-all', 'deploy-to-isa209 deploy-to-testserver deploy-to-com deploy-to-com.eu deploy-to-nct deploy-to-doc-test');
|
||||
|
||||
|
||||
grunt.registerTask('default', 'deploy-documenteditor deploy-spreadsheeteditor deploy-presentationeditor');
|
||||
};
|
|
@ -300,16 +300,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/bootstrap"
|
||||
|
@ -409,6 +399,6 @@
|
|||
]
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
}
|
||||
}
|
|
@ -315,16 +315,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/bootstrap"
|
||||
|
@ -412,6 +402,6 @@
|
|||
]
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
}
|
||||
}
|
|
@ -425,17 +425,6 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../deploy/web-apps/vendor/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"src": "../vendor/touch/sencha-touch-all.js",
|
||||
"dest": "../deploy/web-apps/vendor/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../deploy/web-apps/vendor/bootstrap"
|
||||
|
@ -611,7 +600,6 @@
|
|||
"deploy-xregexp",
|
||||
"deploy-requirejs",
|
||||
"deploy-megapixel",
|
||||
"deploy-touch",
|
||||
"deploy-jquery",
|
||||
"deploy-underscore",
|
||||
"deploy-zeroclipboard",
|
||||
|
|
|
@ -302,16 +302,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/bootstrap"
|
||||
|
@ -397,6 +387,6 @@
|
|||
}
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-megapixel deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-megapixel deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
}
|
||||
}
|
|
@ -75,18 +75,6 @@ module.exports = function(grunt) {
|
|||
});
|
||||
});
|
||||
|
||||
grunt.registerTask('touch-init', function() {
|
||||
grunt.initConfig({
|
||||
clean: packageFile['touch']['clean'],
|
||||
|
||||
copy: {
|
||||
script: {
|
||||
files: packageFile['touch']["copy"]["script"]
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
grunt.registerTask('jquery-init', function() {
|
||||
grunt.initConfig({
|
||||
clean: packageFile['jquery']['clean'],
|
||||
|
@ -329,7 +317,6 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('deploy-3rdparty-bootstrap', 'bootstrap-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-extjs', 'extjs-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-megapixel', 'megapixel-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-touch', 'touch-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-jquery', 'jquery-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-sockjs', 'sockjs-init clean copy');
|
||||
grunt.registerTask('deploy-3rdparty-xregexp', 'xregexp-init clean copy');
|
||||
|
|
|
@ -273,16 +273,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/bootstrap"
|
||||
|
@ -358,6 +348,6 @@
|
|||
}
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
}
|
||||
}
|
|
@ -291,16 +291,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../../deploy/3rdparty/bootstrap"
|
||||
|
@ -376,6 +366,6 @@
|
|||
}
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
|
||||
}
|
||||
}
|
|
@ -322,17 +322,6 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../deploy/web-apps/vendor/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"src": "../vendor/touch/sencha-touch-all.js",
|
||||
"dest": "../deploy/web-apps/vendor/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../deploy/web-apps/vendor/bootstrap"
|
||||
|
@ -507,7 +496,6 @@
|
|||
"deploy-xregexp",
|
||||
"deploy-requirejs",
|
||||
"deploy-megapixel",
|
||||
"deploy-touch",
|
||||
"deploy-jquery",
|
||||
"deploy-underscore",
|
||||
"deploy-zeroclipboard",
|
||||
|
|
|
@ -352,17 +352,6 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"touch": {
|
||||
"clean": [
|
||||
"../deploy/web-apps/vendor/touch"
|
||||
],
|
||||
"copy": {
|
||||
"script": {
|
||||
"src": "../vendor/touch/sencha-touch-all.js",
|
||||
"dest": "../deploy/web-apps/vendor/touch/sencha-touch-all.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"clean": [
|
||||
"../deploy/web-apps/vendor/bootstrap"
|
||||
|
@ -525,7 +514,6 @@
|
|||
"deploy-xregexp",
|
||||
"deploy-requirejs",
|
||||
"deploy-megapixel",
|
||||
"deploy-touch",
|
||||
"deploy-jquery",
|
||||
"deploy-underscore",
|
||||
"deploy-zeroclipboard",
|
||||
|
|
78
vendor/touch/SETUP.html
vendored
|
@ -1,78 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<style>
|
||||
h1 {font-family: Calibri; font-size: 18pt;}
|
||||
h2 {font-family: Calibri; font-size: 14pt;}
|
||||
h3 {font-family: Calibri; font-size: 12pt;}
|
||||
body {font-family: Calibri; font-size: 11pt;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="width: 700px">
|
||||
<a href="http://sencha.com"><span style="left: 50px"></span><img src="SenchaLogo.png" width="110" height="40" /></a>
|
||||
<h1>Sencha Touch Setup Guide</h1>
|
||||
<p><b>Topics:</b></p>
|
||||
<ul>
|
||||
<li><a href="Intro">Introduction</a></li>
|
||||
<li><a href="Install">Installing Sencha Touch</a></li>
|
||||
<li><a href="Info">Sencha Touch Information</a></li>
|
||||
</ul>
|
||||
<a name="Intro"></a>
|
||||
<h2>Introduction</h2>
|
||||
<p>Sencha Touch, a high-performance HTML5 mobile application framework, is the cornerstone
|
||||
of the Sencha HTML5 platform. Built for enabling world-class user experiences,
|
||||
Sencha Touch is the only framework that enables developers to build powerful apps
|
||||
that work on iOS, Android, BlackBerry, Windows Phone, and Internet Explorer 10.
|
||||
<br>Learn more at <a href="http://docs.sencha.com/touch/#!/guide/whats_new">What's New</a>.
|
||||
<br>Learn about new APIs in the "New in this version"
|
||||
section near the end of the <a href="http://docs.sencha.com/touch/#!/api">API page</a>.</p>
|
||||
|
||||
<a name="Install"></a>
|
||||
<h2>Installing Sencha Touch</h2>
|
||||
<p>To install Sencha Touch:</p>
|
||||
<ol>
|
||||
<li>Download <a href="http://www.sencha.com/products/sencha-cmd/download">Sencha Cmd</a>.
|
||||
Sencha Cmd enables you to publish, package, and simulate an application, as well as to upgrade Sencha software.
|
||||
Sencha Cmd also installs Apache Ant, Compass, and Sass.</li>
|
||||
<li>Download <a href="http://www.ruby-lang.org/en/downloads/">Ruby</a>
|
||||
<ul>
|
||||
<li><b>Mac OS</b>: Ruby is pre-installed. You can verify
|
||||
it with the <b>ruby -v</b> command.</li>
|
||||
<li><b>Windows</b> Download the open source <a href="http://www.7-zip.org">7-Zip</a> archiver.
|
||||
Download Ruby (any version) from <a href="http://rubyinstaller.org/downloads/">rubyinstaller.org</a>.
|
||||
Set the Path environment variable to point to the directory in which you unzip the installer file.</li>
|
||||
<li><b>Ubuntu</b>: Use <b>sudo apt-get install ruby2.0.0</b> to download and install Ruby.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Start your web server.
|
||||
If using the Sencha Cmd web server, change directory to where you want to serve
|
||||
your application, open a new command line window and start the server with the
|
||||
<b>sencha web start</b> command. You can stop the server by typing
|
||||
CTRL+c or opening another command line and typing the <b>sencha web stop</b> command.
|
||||
You can access the Sencha Cmd web server using
|
||||
the <code>http://localhost:1841/<app_name></code> URL.</li>
|
||||
<li>If you are using Windows and running the IIS web server, add "application/x-json"
|
||||
as a MIME type; otherwise, IIS returns the JSON file with an error when you preview
|
||||
your project. In Windows, enable IIS from the add/remove programs or programs and features dialog
|
||||
(add/remove windows features), you can also add extra functionality by downloading the web platform
|
||||
toolkit to make config of IIS features extra simple.
|
||||
For information on adding this MIME type, see this
|
||||
<a href="http://stackoverflow.com/a/1121114/273985">Stackoverflow article</a>.</li>
|
||||
<li>Use a modern web browser such as
|
||||
<a href="https://www.google.com/intl/en/chrome/browser">Chrome</a>
|
||||
or <a href="http://www.apple.com/safari/">Safari</a>.</li>
|
||||
</ol>
|
||||
|
||||
<a name="Info"></a>
|
||||
<h2>Sencha Touch Information</h2>
|
||||
<ul>
|
||||
<li><a href="http://sencha.com/">Sencha.com</a></li>
|
||||
<li><a href="http://docs.sencha.com/">Sencha Documentation</a></li>
|
||||
<li><a href="release-notes.html">Sencha Touch Release Notes</a></li>
|
||||
<li><a href="examples/">Sencha Touch Examples</a></li>
|
||||
<li><a href="http://www.sencha.com/products/touch-bundle/">Sencha Touch Bundle</a></li>
|
||||
<li><a href="http://www.sencha.com/training/">Sencha Training</a></li>
|
||||
<li><a href="http://www.sencha.com/support/">Sencha Support</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
BIN
vendor/touch/SenchaLogo.png
vendored
Before Width: | Height: | Size: 5.1 KiB |
13
vendor/touch/index.html
vendored
|
@ -1,13 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="1;url=examples/">
|
||||
|
||||
<title>Welcome to Sencha Touch 2</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.location = "examples/";
|
||||
</script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
68
vendor/touch/license.txt
vendored
|
@ -1,68 +0,0 @@
|
|||
Sencha Touch & Sencha Touch Charts - JavaScript Libraries
|
||||
Copyright (c) 2010-2015, Sencha, Inc.
|
||||
All rights reserved.
|
||||
licensing@sencha.com
|
||||
|
||||
http://www.sencha.com/products/touch/license.php
|
||||
|
||||
|
||||
Open Source License
|
||||
------------------------------------------------------------------------------------------
|
||||
This version of Sencha Touch and Sencha Touch Charts is licensed under the terms of the Open
|
||||
Source GPL 3.0 license.
|
||||
|
||||
http://www.gnu.org/licenses/gpl.html
|
||||
|
||||
There are several FLOSS exceptions available for use with this release for
|
||||
open source applications that are distributed under a license other than the GPL.
|
||||
|
||||
* Open Source License Exception for Applications
|
||||
|
||||
http://www.sencha.com/products/floss-exception.php
|
||||
|
||||
* Open Source License Exception for Development
|
||||
|
||||
http://www.sencha.com/products/ux-exception.php
|
||||
|
||||
|
||||
Alternate Licensing for Sencha Touch
|
||||
------------------------------------------------------------------------------------------
|
||||
Commercial and OEM Licenses are available for an alternate download of Sencha Touch.
|
||||
This is the appropriate option if you are creating proprietary applications and you are
|
||||
not prepared to distribute and share the source code of your application under the
|
||||
GPL v3 license. Please visit http://www.sencha.com/store/touch/license.php for more details.
|
||||
|
||||
|
||||
Alternate Licensing for Sencha Touch Charts
|
||||
------------------------------------------------------------------------------------------
|
||||
Commercial and OEM Licenses are available for an alternate download of Sencha Touch Charts.
|
||||
This is the appropriate option if you are creating proprietary applications and you are
|
||||
not prepared to distribute and share the source code of your application under the
|
||||
GPL v3 license.
|
||||
|
||||
Sencha Touch Charts is available commercially only as a part of Sencha Complete or Sencha
|
||||
Complete Team. Please visit http://www.sencha.com/products/complete/license or
|
||||
http://www.sencha.com/products/complete-team/license for more details.
|
||||
|
||||
|
||||
Third Party Content
|
||||
------------------------------------------------------------------------------------------
|
||||
The following third party software is distributed with Sencha Touch and is
|
||||
provided under other licenses and/or has source available from other locations.
|
||||
|
||||
Library: JSON parser
|
||||
License: Public Domain
|
||||
Location: http://www.JSON.org/js.html
|
||||
|
||||
Library: flexible-js-formatting - date parsing and formatting
|
||||
License: MIT
|
||||
Location: http://code.google.com/p/flexible-js-formatting/
|
||||
|
||||
Library: Jasmine Š unit testing
|
||||
License: MIT
|
||||
Location: https://github.com/pivotal/jasmine
|
||||
|
||||
|
||||
--
|
||||
|
||||
THIS SOFTWARE IS DISTRIBUTED "AS-IS" WITHOUT ANY WARRANTIES, CONDITIONS AND REPRESENTATIONS WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, MERCHANTABLE QUALITY, FITNESS FOR A PARTICULAR PURPOSE, DURABILITY, NON-INFRINGEMENT, PERFORMANCE AND THOSE ARISING BY STATUTE OR FROM CUSTOM OR USAGE OF TRADE OR COURSE OF DEALING.
|
185
vendor/touch/microloader/development.js
vendored
|
@ -1,185 +0,0 @@
|
|||
/**
|
||||
* Sencha Blink - Development
|
||||
* @author Jacky Nguyen <jacky@sencha.com>
|
||||
*/
|
||||
(function() {
|
||||
var head = document.head;
|
||||
|
||||
function write(content) {
|
||||
document.write(content);
|
||||
}
|
||||
|
||||
function addMeta(name, content) {
|
||||
var meta = document.createElement('meta');
|
||||
|
||||
meta.setAttribute('name', name);
|
||||
meta.setAttribute('content', content);
|
||||
head.appendChild(meta);
|
||||
}
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'app.json', false);
|
||||
xhr.send(null);
|
||||
|
||||
var options = eval("(" + xhr.responseText + ")"),
|
||||
scripts = options.js || [],
|
||||
styleSheets = options.css || [],
|
||||
i, ln, path, platform, theme, exclude;
|
||||
|
||||
if(options.platform && options.platforms && options.platforms[options.platform] && options.platforms[options.platform].js) {
|
||||
scripts = options.platforms[options.platform].js.concat(scripts);
|
||||
}
|
||||
|
||||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
||||
var msViewportStyle = document.createElement("style");
|
||||
msViewportStyle.appendChild(
|
||||
document.createTextNode(
|
||||
"@media screen and (orientation: portrait) {" +
|
||||
"@-ms-viewport {width: 320px !important;}" +
|
||||
"}" +
|
||||
"@media screen and (orientation: landscape) {" +
|
||||
"@-ms-viewport {width: 560px !important;}" +
|
||||
"}"
|
||||
)
|
||||
);
|
||||
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
|
||||
}
|
||||
|
||||
addMeta('viewport', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no');
|
||||
addMeta('apple-mobile-web-app-capable', 'yes');
|
||||
addMeta('apple-touch-fullscreen', 'yes');
|
||||
|
||||
if (!window.Ext) {
|
||||
window.Ext = {};
|
||||
}
|
||||
Ext.microloaded = true;
|
||||
|
||||
var filterPlatform = window.Ext.filterPlatform = function(platform) {
|
||||
var profileMatch = false,
|
||||
ua = navigator.userAgent,
|
||||
j, jln;
|
||||
|
||||
platform = [].concat(platform);
|
||||
|
||||
function isPhone(ua) {
|
||||
var isMobile = /Mobile(\/|\s)/.test(ua);
|
||||
|
||||
// Either:
|
||||
// - iOS but not iPad
|
||||
// - Android 2
|
||||
// - Android with "Mobile" in the UA
|
||||
|
||||
return /(iPhone|iPod)/.test(ua) ||
|
||||
(!/(Silk)/.test(ua) && (/(Android)/.test(ua) && (/(Android 2)/.test(ua) || isMobile))) ||
|
||||
(/(BlackBerry|BB)/.test(ua) && isMobile) ||
|
||||
/(Windows Phone)/.test(ua);
|
||||
}
|
||||
|
||||
function isTablet(ua) {
|
||||
return !isPhone(ua) && (/iPad/.test(ua) || /Android|Silk/.test(ua) || /(RIM Tablet OS)/.test(ua) ||
|
||||
(/MSIE 10/.test(ua) && /; Touch/.test(ua)));
|
||||
}
|
||||
|
||||
// Check if the ?platform parameter is set in the URL
|
||||
var paramsString = window.location.search.substr(1),
|
||||
paramsArray = paramsString.split("&"),
|
||||
params = {},
|
||||
testPlatform, i;
|
||||
|
||||
for (i = 0; i < paramsArray.length; i++) {
|
||||
var tmpArray = paramsArray[i].split("=");
|
||||
params[tmpArray[0]] = tmpArray[1];
|
||||
}
|
||||
|
||||
testPlatform = params.platform;
|
||||
if (testPlatform) {
|
||||
return platform.indexOf(testPlatform) != -1;
|
||||
}
|
||||
|
||||
for (j = 0, jln = platform.length; j < jln; j++) {
|
||||
switch (platform[j]) {
|
||||
case 'phone':
|
||||
profileMatch = isPhone(ua);
|
||||
break;
|
||||
case 'tablet':
|
||||
profileMatch = isTablet(ua);
|
||||
break;
|
||||
case 'desktop':
|
||||
profileMatch = !isPhone(ua) && !isTablet(ua);
|
||||
break;
|
||||
case 'ios':
|
||||
profileMatch = /(iPad|iPhone|iPod)/.test(ua);
|
||||
break;
|
||||
case 'android':
|
||||
profileMatch = /(Android|Silk)/.test(ua);
|
||||
break;
|
||||
case 'blackberry':
|
||||
profileMatch = /(BlackBerry|BB)/.test(ua);
|
||||
break;
|
||||
case 'safari':
|
||||
profileMatch = /Safari/.test(ua) && !(/(BlackBerry|BB)/.test(ua));
|
||||
break;
|
||||
case 'chrome':
|
||||
profileMatch = /Chrome/.test(ua);
|
||||
break;
|
||||
case 'ie10':
|
||||
profileMatch = /MSIE 10/.test(ua);
|
||||
break;
|
||||
case 'windows':
|
||||
profileMatch = /MSIE 10/.test(ua) || /Trident/.test(ua);
|
||||
break;
|
||||
case 'tizen':
|
||||
profileMatch = /Tizen/.test(ua);
|
||||
break;
|
||||
case 'firefox':
|
||||
profileMatch = /Firefox/.test(ua);
|
||||
}
|
||||
if (profileMatch) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
for (i = 0,ln = styleSheets.length; i < ln; i++) {
|
||||
path = styleSheets[i];
|
||||
|
||||
if (typeof path != 'string') {
|
||||
platform = path.platform;
|
||||
exclude = path.exclude;
|
||||
theme = path.theme;
|
||||
path = path.path;
|
||||
}
|
||||
|
||||
if (platform) {
|
||||
if (!filterPlatform(platform) || filterPlatform(exclude)) {
|
||||
continue;
|
||||
}
|
||||
Ext.theme = {
|
||||
name: theme || 'Default'
|
||||
};
|
||||
}
|
||||
|
||||
write('<link rel="stylesheet" href="'+path+'">');
|
||||
}
|
||||
|
||||
for (i = 0,ln = scripts.length; i < ln; i++) {
|
||||
path = scripts[i];
|
||||
|
||||
if (typeof path != 'string') {
|
||||
platform = path.platform;
|
||||
exclude = path.exclude;
|
||||
path = path.path;
|
||||
}
|
||||
|
||||
if (platform) {
|
||||
if (!filterPlatform(platform) || filterPlatform(exclude)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
write('<script src="'+path+'"></'+'script>');
|
||||
}
|
||||
|
||||
})();
|
742
vendor/touch/microloader/production.js
vendored
|
@ -1,742 +0,0 @@
|
|||
/**
|
||||
* Sencha Blink
|
||||
* @author Jacky Nguyen <jacky@sencha.com>
|
||||
*/
|
||||
(function(global) {
|
||||
var emptyFn = function(){},
|
||||
callbacks = [],
|
||||
doc = global.document,
|
||||
head = doc.head,
|
||||
addWindowListener = global.addEventListener,
|
||||
removeWindowListener = global.removeEventListener,
|
||||
jsonParse = JSON.parse,
|
||||
a = doc.createElement('a'),
|
||||
documentLocation = doc.location,
|
||||
documentUri = documentLocation.protocol + '//' + documentLocation.hostname + documentLocation.pathname + documentLocation.search,
|
||||
manifestFile = 'app.json',
|
||||
isRefreshing = false,
|
||||
activeManifest, appCache, storage;
|
||||
|
||||
try {
|
||||
storage = global.localStorage;
|
||||
appCache = global.applicationCache;
|
||||
}
|
||||
catch(e) {}
|
||||
|
||||
function getManifestStorageKey(id) {
|
||||
return id + '-' + documentUri + manifestFile;
|
||||
}
|
||||
|
||||
function Manifest(manifest) {
|
||||
var manifestContent;
|
||||
|
||||
if (typeof manifest == 'string') {
|
||||
manifestContent = manifest;
|
||||
manifest = jsonParse(manifestContent);
|
||||
}
|
||||
else {
|
||||
manifestContent = JSON.stringify(manifest);
|
||||
}
|
||||
|
||||
var applicationId = manifest.id,
|
||||
key = getManifestStorageKey(applicationId),
|
||||
assetMap = {};
|
||||
|
||||
function processAsset(asset) {
|
||||
var uri;
|
||||
|
||||
if (typeof asset == 'string') {
|
||||
asset = {
|
||||
path: asset
|
||||
};
|
||||
}
|
||||
|
||||
if (asset.shared) {
|
||||
asset.version = asset.shared;
|
||||
uri = asset.shared + asset.path;
|
||||
}
|
||||
else {
|
||||
uri = toAbsoluteUri(asset.path);
|
||||
}
|
||||
|
||||
asset.uri = uri;
|
||||
asset.key = applicationId + '-' + uri;
|
||||
assetMap[uri] = asset;
|
||||
|
||||
return asset;
|
||||
}
|
||||
|
||||
function processAssets(assets, type) {
|
||||
var ln = assets.length,
|
||||
i, asset;
|
||||
|
||||
for (i = 0; i < ln; i++) {
|
||||
asset = assets[i];
|
||||
|
||||
assets[i] = asset = processAsset(asset);
|
||||
|
||||
asset.type = type;
|
||||
asset.index = i;
|
||||
asset.collection = assets;
|
||||
asset.ready = false;
|
||||
asset.evaluated = false;
|
||||
}
|
||||
|
||||
return assets;
|
||||
}
|
||||
|
||||
this.key = key;
|
||||
this.css = processAssets(manifest.css, 'css');
|
||||
this.js = processAssets(manifest.js, 'js');
|
||||
|
||||
Ext.microloaded = true;
|
||||
|
||||
var filterPlatform = window.Ext.filterPlatform = function(platform) {
|
||||
var profileMatch = false,
|
||||
ua = navigator.userAgent,
|
||||
j, jln;
|
||||
|
||||
platform = [].concat(platform);
|
||||
|
||||
function isPhone(ua) {
|
||||
var isMobile = /Mobile(\/|\s)/.test(ua);
|
||||
|
||||
// Either:
|
||||
// - iOS but not iPad
|
||||
// - Android 2
|
||||
// - Android with "Mobile" in the UA
|
||||
|
||||
return /(iPhone|iPod)/.test(ua) ||
|
||||
(!/(Silk)/.test(ua) && (/(Android)/.test(ua) && (/(Android 2)/.test(ua) || isMobile))) ||
|
||||
(/(BlackBerry|BB)/.test(ua) && isMobile) ||
|
||||
/(Windows Phone)/.test(ua);
|
||||
}
|
||||
|
||||
function isTablet(ua) {
|
||||
return !isPhone(ua) && (/iPad/.test(ua) || /Android|Silk/.test(ua) || /(RIM Tablet OS)/.test(ua) ||
|
||||
(/MSIE 10/.test(ua) && /; Touch/.test(ua)));
|
||||
}
|
||||
|
||||
// Check if the ?platform parameter is set in the URL
|
||||
var paramsString = window.location.search.substr(1),
|
||||
paramsArray = paramsString.split("&"),
|
||||
params = {},
|
||||
testPlatform, i;
|
||||
|
||||
for (i = 0; i < paramsArray.length; i++) {
|
||||
var tmpArray = paramsArray[i].split("=");
|
||||
params[tmpArray[0]] = tmpArray[1];
|
||||
}
|
||||
|
||||
testPlatform = params.platform;
|
||||
if (testPlatform) {
|
||||
return platform.indexOf(testPlatform) != -1;
|
||||
}
|
||||
|
||||
for (j = 0, jln = platform.length; j < jln; j++) {
|
||||
switch (platform[j]) {
|
||||
case 'phone':
|
||||
profileMatch = isPhone(ua);
|
||||
break;
|
||||
case 'tablet':
|
||||
profileMatch = isTablet(ua);
|
||||
break;
|
||||
case 'desktop':
|
||||
profileMatch = !isPhone(ua) && !isTablet(ua);
|
||||
break;
|
||||
case 'ios':
|
||||
profileMatch = /(iPad|iPhone|iPod)/.test(ua);
|
||||
break;
|
||||
case 'android':
|
||||
profileMatch = /(Android|Silk)/.test(ua);
|
||||
break;
|
||||
case 'blackberry':
|
||||
profileMatch = /(BlackBerry|BB)/.test(ua);
|
||||
break;
|
||||
case 'safari':
|
||||
profileMatch = /Safari/.test(ua) && !(/(BlackBerry|BB)/.test(ua));
|
||||
break;
|
||||
case 'chrome':
|
||||
profileMatch = /Chrome/.test(ua);
|
||||
break;
|
||||
case 'ie10':
|
||||
profileMatch = /MSIE 10/.test(ua);
|
||||
break;
|
||||
case 'windows':
|
||||
profileMatch = /MSIE 10/.test(ua) || /Trident/.test(ua);
|
||||
break;
|
||||
case 'tizen':
|
||||
profileMatch = /Tizen/.test(ua);
|
||||
break;
|
||||
case 'firefox':
|
||||
profileMatch = /Firefox/.test(ua);
|
||||
}
|
||||
if (profileMatch) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
this.css = this.css.filter(function(css) {
|
||||
var platform = css.platform,
|
||||
exclude = css.exclude;
|
||||
|
||||
if (platform) {
|
||||
if (filterPlatform(platform) && !filterPlatform(exclude)) {
|
||||
Ext.theme = {
|
||||
name: css.theme || 'Default'
|
||||
};
|
||||
return true;
|
||||
}
|
||||
css.filtered = true;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
this.js = this.js.filter(function(js) {
|
||||
var platform = js.platform,
|
||||
exclude = js.exclude;
|
||||
|
||||
if (platform) {
|
||||
if (filterPlatform(platform) && !filterPlatform(exclude)) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
js.filtered = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
this.assets = this.css.concat(this.js);
|
||||
this.getAsset = function(uri) {
|
||||
return assetMap[uri];
|
||||
};
|
||||
this.store = function() {
|
||||
store(key, manifestContent);
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof global.Ext === 'undefined') {
|
||||
var Ext = global.Ext = {};
|
||||
}
|
||||
|
||||
function toAbsoluteUri(uri) {
|
||||
a.href = uri;
|
||||
return a.href;
|
||||
}
|
||||
|
||||
function addMeta(name, content) {
|
||||
var meta = document.createElement('meta');
|
||||
|
||||
meta.setAttribute('name', name);
|
||||
meta.setAttribute('content', content);
|
||||
head.appendChild(meta);
|
||||
}
|
||||
|
||||
function request(uri, isShared, onSuccess, onFailure) {
|
||||
(isShared ? requestIframe : requestXhr)(uri, onSuccess, onFailure);
|
||||
}
|
||||
|
||||
function requestXhr(uri, onSuccess, onFailure) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
|
||||
onFailure = onFailure || emptyFn;
|
||||
|
||||
uri = uri + ((uri.indexOf('?') == -1) ? '?' : '&') + Date.now();
|
||||
|
||||
try {
|
||||
xhr.open('GET', uri, true);
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == 4) {
|
||||
var status = xhr.status,
|
||||
content = xhr.responseText;
|
||||
|
||||
if ((status >= 200 && status < 300) || status == 304 || (status == 0 && content.length > 0)) {
|
||||
onSuccess(content);
|
||||
}
|
||||
else {
|
||||
onFailure();
|
||||
}
|
||||
}
|
||||
};
|
||||
xhr.send(null);
|
||||
} catch (e) {
|
||||
onFailure();
|
||||
}
|
||||
}
|
||||
|
||||
function requestIframe(uri, onSuccess) {
|
||||
var iframe = doc.createElement('iframe');
|
||||
|
||||
callbacks.push({
|
||||
iframe: iframe,
|
||||
callback: onSuccess
|
||||
});
|
||||
|
||||
iframe.src = uri + '.html';
|
||||
iframe.style.cssText = 'width:0;height:0;border:0;position:absolute;z-index:-999;visibility:hidden';
|
||||
doc.body.appendChild(iframe);
|
||||
}
|
||||
|
||||
function requestAsset(asset, onSuccess, onFailure) {
|
||||
var isRemote = !!asset.remote,
|
||||
isShared = !!asset.shared;
|
||||
|
||||
if (isRemote) {
|
||||
onSuccess('');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isShared) {
|
||||
var onRequestSuccess = onSuccess,
|
||||
version = asset.version,
|
||||
versionLn = version.length,
|
||||
checksumFail, checksumType;
|
||||
|
||||
onSuccess = function(content) {
|
||||
checksumType = content.substring(0, 1);
|
||||
if (checksumType == '/') {
|
||||
if (content.substring(2, versionLn + 2) !== version) {
|
||||
checksumFail = true;
|
||||
}
|
||||
}
|
||||
else if (checksumType == 'f') {
|
||||
if (content.substring(9, versionLn + 9) !== version) {
|
||||
checksumFail = true;
|
||||
}
|
||||
}
|
||||
else if (checksumType == '.') {
|
||||
if (content.substring(1, versionLn + 1) !== version) {
|
||||
checksumFail = true;
|
||||
}
|
||||
}
|
||||
if (checksumFail === true) {
|
||||
if (confirm("Requested: '" + asset.uri + " seems to have been changed. Attempt to refresh the application?")) {
|
||||
refresh();
|
||||
}
|
||||
return;
|
||||
}
|
||||
onRequestSuccess(content);
|
||||
};
|
||||
}
|
||||
|
||||
request(asset.uri, isShared, onSuccess, onFailure);
|
||||
}
|
||||
|
||||
function onMessage(e) {
|
||||
var data = e.data,
|
||||
sourceWindow = e.source.window,
|
||||
i, ln, callback, iframe;
|
||||
|
||||
for (i = 0, ln = callbacks.length; i < ln; i++) {
|
||||
callback = callbacks[i];
|
||||
iframe = callback.iframe;
|
||||
|
||||
if (iframe.contentWindow === sourceWindow) {
|
||||
callback.callback(data);
|
||||
doc.body.removeChild(iframe);
|
||||
callbacks.splice(i, 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function patch(content, delta) {
|
||||
var output = [],
|
||||
chunk, i, ln;
|
||||
|
||||
if (delta.length === 0) {
|
||||
return content;
|
||||
}
|
||||
|
||||
for (i = 0,ln = delta.length; i < ln; i++) {
|
||||
chunk = delta[i];
|
||||
|
||||
if (typeof chunk === 'number') {
|
||||
output.push(content.substring(chunk, chunk + delta[++i]));
|
||||
}
|
||||
else {
|
||||
output.push(chunk);
|
||||
}
|
||||
}
|
||||
|
||||
return output.join('');
|
||||
}
|
||||
|
||||
function log(message) {
|
||||
if (typeof console != 'undefined') {
|
||||
(console.error || console.log).call(console, message);
|
||||
}
|
||||
}
|
||||
|
||||
function store(key, value) {
|
||||
try {
|
||||
storage.setItem(key, value);
|
||||
}
|
||||
catch (e) {
|
||||
if (storage && e.code == e.QUOTA_EXCEEDED_ERR && activeManifest) {
|
||||
log("LocalStorage Quota exceeded, cannot store " + key + " locally");
|
||||
// Quota exceeded, clean up unused items
|
||||
// var items = activeManifest.assets.map(function(asset) {
|
||||
// return asset.key;
|
||||
// }),
|
||||
// i = 0,
|
||||
// ln = storage.length,
|
||||
// cleaned = false,
|
||||
// item;
|
||||
//
|
||||
// items.push(activeManifest.key);
|
||||
//
|
||||
// while (i <= ln - 1) {
|
||||
// item = storage.key(i);
|
||||
//
|
||||
// if (items.indexOf(item) == -1) {
|
||||
// storage.removeItem(item);
|
||||
// cleaned = true;
|
||||
// ln--;
|
||||
// }
|
||||
// else {
|
||||
// i++;
|
||||
// }
|
||||
// }
|
||||
|
||||
// Done cleaning up, attempt to store the value again
|
||||
// If there's still not enough space, no other choice
|
||||
// but to skip this item from being stored
|
||||
// if (cleaned) {
|
||||
// store(key, value);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function retrieve(key) {
|
||||
try {
|
||||
return storage.getItem(key);
|
||||
}
|
||||
catch (e) {
|
||||
// Private browsing mode
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function retrieveAsset(asset) {
|
||||
return retrieve(asset.key);
|
||||
}
|
||||
|
||||
function storeAsset(asset, content) {
|
||||
return store(asset.key, content);
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
if (!isRefreshing) {
|
||||
isRefreshing = true;
|
||||
requestXhr(manifestFile, function(content) {
|
||||
new Manifest(content).store();
|
||||
global.location.reload();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function blink(currentManifest) {
|
||||
var currentAssets = currentManifest.assets,
|
||||
assetsCount = currentAssets.length,
|
||||
newManifest;
|
||||
|
||||
activeManifest = currentManifest;
|
||||
|
||||
addWindowListener('message', onMessage, false);
|
||||
|
||||
function onAssetReady(asset, content) {
|
||||
var assets = asset.collection,
|
||||
index = asset.index,
|
||||
ln = assets.length,
|
||||
i;
|
||||
|
||||
asset.ready = true;
|
||||
asset.content = content;
|
||||
|
||||
for (i = index - 1; i >= 0; i--) {
|
||||
asset = assets[i];
|
||||
if (!asset.filtered && (!asset.ready || !asset.evaluated)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = index; i < ln; i++) {
|
||||
asset = assets[i];
|
||||
if (asset.ready) {
|
||||
if (!asset.evaluated) {
|
||||
evaluateAsset(asset);
|
||||
}
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function evaluateAsset(asset) {
|
||||
asset.evaluated = true;
|
||||
|
||||
if (asset.type == 'js') {
|
||||
try {
|
||||
eval(asset.content);
|
||||
}
|
||||
catch (e) {
|
||||
log("Error evaluating " + asset.uri + " with message: " + e);
|
||||
}
|
||||
}
|
||||
else {
|
||||
var style = doc.createElement('style'),
|
||||
base;
|
||||
|
||||
style.type = 'text/css';
|
||||
style.textContent = asset.content;
|
||||
|
||||
if ('id' in asset) {
|
||||
style.id = asset.id;
|
||||
}
|
||||
|
||||
if ('disabled' in asset) {
|
||||
style.disabled = asset.disabled;
|
||||
}
|
||||
|
||||
base = document.createElement('base');
|
||||
base.href = asset.path.replace(/\/[^\/]*$/, '/');
|
||||
head.appendChild(base);
|
||||
head.appendChild(style);
|
||||
head.removeChild(base);
|
||||
}
|
||||
|
||||
delete asset.content;
|
||||
|
||||
if (--assetsCount == 0) {
|
||||
onReady();
|
||||
}
|
||||
}
|
||||
|
||||
function onReady() {
|
||||
var updatingAssets = [],
|
||||
appCacheReady = false,
|
||||
onAppCacheIdle = function() {},
|
||||
onAppCacheReady = function() {
|
||||
appCache.swapCache();
|
||||
appCacheReady = true;
|
||||
onAppCacheIdle();
|
||||
},
|
||||
updatingCount;
|
||||
|
||||
removeWindowListener('message', onMessage, false);
|
||||
|
||||
if (appCache.status == appCache.UPDATEREADY) {
|
||||
onAppCacheReady();
|
||||
}
|
||||
else if (appCache.status == appCache.CHECKING || appCache.status == appCache.DOWNLOADING) {
|
||||
appCache.onupdateready = onAppCacheReady;
|
||||
appCache.onnoupdate = appCache.onobsolete = function() {
|
||||
onAppCacheIdle();
|
||||
};
|
||||
}
|
||||
|
||||
function notifyUpdateIfAppCacheReady() {
|
||||
if (appCacheReady) {
|
||||
notifyUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
function notifyUpdate() {
|
||||
var updatedCallback = Ext.onUpdated || emptyFn;
|
||||
|
||||
if ('onSetup' in Ext) {
|
||||
Ext.onSetup(updatedCallback);
|
||||
}
|
||||
else {
|
||||
updatedCallback();
|
||||
}
|
||||
}
|
||||
|
||||
function doUpdate() {
|
||||
newManifest.store();
|
||||
|
||||
updatingAssets.forEach(function(asset) {
|
||||
storeAsset(asset, asset.content);
|
||||
});
|
||||
|
||||
notifyUpdate();
|
||||
}
|
||||
|
||||
function onAssetUpdated(asset, content) {
|
||||
asset.content = content;
|
||||
|
||||
if (--updatingCount == 0) {
|
||||
if (appCache.status == appCache.IDLE) {
|
||||
doUpdate();
|
||||
}
|
||||
else {
|
||||
onAppCacheIdle = doUpdate;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function checkForUpdate() {
|
||||
removeWindowListener('online', checkForUpdate, false);
|
||||
requestXhr(manifestFile, function(manifestContent) {
|
||||
activeManifest = newManifest = new Manifest(manifestContent);
|
||||
|
||||
var assets = newManifest.assets,
|
||||
currentAsset;
|
||||
|
||||
assets.forEach(function(asset) {
|
||||
currentAsset = currentManifest.getAsset(asset.uri);
|
||||
|
||||
if (!currentAsset || asset.version !== currentAsset.version) {
|
||||
updatingAssets.push(asset);
|
||||
}
|
||||
});
|
||||
|
||||
updatingCount = updatingAssets.length;
|
||||
|
||||
if (updatingCount == 0) {
|
||||
if (appCache.status == appCache.IDLE) {
|
||||
notifyUpdateIfAppCacheReady();
|
||||
}
|
||||
else {
|
||||
onAppCacheIdle = notifyUpdateIfAppCacheReady;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
updatingAssets.forEach(function(asset) {
|
||||
var currentAsset = currentManifest.getAsset(asset.uri),
|
||||
path = asset.path,
|
||||
update = asset.update;
|
||||
|
||||
function updateFull() {
|
||||
requestAsset(asset, function(content) {
|
||||
onAssetUpdated(asset, content);
|
||||
});
|
||||
}
|
||||
|
||||
// New asset (never used before)
|
||||
// OR Shared from CDN
|
||||
// OR Missing local storage
|
||||
// OR Full update
|
||||
if (!currentAsset || !update || retrieveAsset(asset) === null || update != 'delta') {
|
||||
updateFull();
|
||||
}
|
||||
else {
|
||||
requestXhr('deltas/' + path + '/' + currentAsset.version + '.json',
|
||||
function(content) {
|
||||
try {
|
||||
onAssetUpdated(asset, patch(retrieveAsset(asset), jsonParse(content)));
|
||||
}
|
||||
catch (e) {
|
||||
log("Malformed delta content received for " + asset.uri);
|
||||
}
|
||||
},
|
||||
updateFull
|
||||
);
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
if (navigator.onLine !== false) {
|
||||
checkForUpdate();
|
||||
}
|
||||
else {
|
||||
addWindowListener('online', checkForUpdate, false);
|
||||
}
|
||||
}
|
||||
|
||||
if (assetsCount == 0) {
|
||||
onReady();
|
||||
return;
|
||||
}
|
||||
|
||||
currentAssets.forEach(function(asset) {
|
||||
var content = retrieveAsset(asset);
|
||||
|
||||
if (content === null) {
|
||||
requestAsset(asset, function(content) {
|
||||
if (!asset.remote) {
|
||||
storeAsset(asset, content);
|
||||
}
|
||||
onAssetReady(asset, content);
|
||||
}, function() {
|
||||
onAssetReady(asset, '');
|
||||
});
|
||||
}
|
||||
else {
|
||||
onAssetReady(asset, content);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function blinkOnDomReady(manifest) {
|
||||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
||||
var msViewportStyle = document.createElement("style");
|
||||
msViewportStyle.appendChild(
|
||||
document.createTextNode(
|
||||
"@media screen and (orientation: portrait) {" +
|
||||
"@-ms-viewport {width: 320px !important;}" +
|
||||
"}" +
|
||||
"@media screen and (orientation: landscape) {" +
|
||||
"@-ms-viewport {width: 560px !important;}" +
|
||||
"}"
|
||||
)
|
||||
);
|
||||
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
|
||||
}
|
||||
|
||||
var readyStateRe = (/MSIE 10/.test(navigator.userAgent)) ? /complete|loaded/ : /interactive|complete|loaded/;
|
||||
if (doc.readyState.match(readyStateRe) !== null) {
|
||||
blink(manifest);
|
||||
}
|
||||
else {
|
||||
addWindowListener('DOMContentLoaded', function() {
|
||||
if (navigator.standalone) {
|
||||
// When running from Home Screen, the splash screen will not disappear until all
|
||||
// external resource requests finish.
|
||||
// The first timeout clears the splash screen
|
||||
// The second timeout allows inital HTML content to be displayed
|
||||
setTimeout(function() {
|
||||
setTimeout(function() {
|
||||
blink(manifest);
|
||||
}, 1);
|
||||
}, 1);
|
||||
}
|
||||
else {
|
||||
setTimeout(function() {
|
||||
blink(manifest);
|
||||
}, 1);
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
|
||||
Ext.blink = function(manifest) {
|
||||
var manifestContent = retrieve(getManifestStorageKey(manifest.id));
|
||||
|
||||
addMeta('viewport', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no');
|
||||
addMeta('apple-mobile-web-app-capable', 'yes');
|
||||
addMeta('apple-touch-fullscreen', 'yes');
|
||||
|
||||
if (manifestContent) {
|
||||
manifest = new Manifest(manifestContent);
|
||||
blinkOnDomReady(manifest);
|
||||
}
|
||||
else {
|
||||
requestXhr(manifestFile, function(content) {
|
||||
manifest = new Manifest(content);
|
||||
manifest.store();
|
||||
blinkOnDomReady(manifest);
|
||||
});
|
||||
}
|
||||
};
|
||||
})(this);
|
177
vendor/touch/microloader/testing.js
vendored
|
@ -1,177 +0,0 @@
|
|||
/**
|
||||
* Sencha Blink - Testing
|
||||
* @author Jacky Nguyen <jacky@sencha.com>
|
||||
*/
|
||||
(function(global) {
|
||||
var head = global.document.head,
|
||||
Ext = global.Ext;
|
||||
|
||||
if (typeof Ext == 'undefined') {
|
||||
global.Ext = Ext = {};
|
||||
}
|
||||
|
||||
function write(content) {
|
||||
document.write(content);
|
||||
}
|
||||
|
||||
function addMeta(name, content) {
|
||||
var meta = document.createElement('meta');
|
||||
|
||||
meta.setAttribute('name', name);
|
||||
meta.setAttribute('content', content);
|
||||
head.appendChild(meta);
|
||||
}
|
||||
|
||||
Ext.blink = function(options) {
|
||||
var scripts = options.js || [],
|
||||
styleSheets = options.css || [],
|
||||
i, ln, path, platform, theme;
|
||||
|
||||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
||||
var msViewportStyle = document.createElement("style");
|
||||
msViewportStyle.appendChild(
|
||||
document.createTextNode(
|
||||
"@media screen and (orientation: portrait) {" +
|
||||
"@-ms-viewport {width: 320px !important;}" +
|
||||
"}" +
|
||||
"@media screen and (orientation: landscape) {" +
|
||||
"@-ms-viewport {width: 560px !important;}" +
|
||||
"}"
|
||||
)
|
||||
);
|
||||
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
|
||||
}
|
||||
addMeta('viewport', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no');
|
||||
addMeta('apple-mobile-web-app-capable', 'yes');
|
||||
addMeta('apple-touch-fullscreen', 'yes');
|
||||
|
||||
Ext.microloaded = true;
|
||||
|
||||
var filterPlatform = window.Ext.filterPlatform = function(platform) {
|
||||
var profileMatch = false,
|
||||
ua = navigator.userAgent,
|
||||
j, jln, exclude;
|
||||
|
||||
platform = [].concat(platform);
|
||||
|
||||
function isPhone(ua) {
|
||||
var isMobile = /Mobile(\/|\s)/.test(ua);
|
||||
|
||||
// Either:
|
||||
// - iOS but not iPad
|
||||
// - Android 2
|
||||
// - Android with "Mobile" in the UA
|
||||
|
||||
return /(iPhone|iPod)/.test(ua) ||
|
||||
(!/(Silk)/.test(ua) && (/(Android)/.test(ua) && (/(Android 2)/.test(ua) || isMobile))) ||
|
||||
(/(BlackBerry|BB)/.test(ua) && isMobile) ||
|
||||
/(Windows Phone)/.test(ua);
|
||||
}
|
||||
|
||||
function isTablet(ua) {
|
||||
return !isPhone(ua) && (/iPad/.test(ua) || /Android|Silk/.test(ua) || /(RIM Tablet OS)/.test(ua) ||
|
||||
(/MSIE 10/.test(ua) && /; Touch/.test(ua)));
|
||||
}
|
||||
|
||||
// Check if the ?platform parameter is set in the URL
|
||||
var paramsString = window.location.search.substr(1),
|
||||
paramsArray = paramsString.split("&"),
|
||||
params = {},
|
||||
testPlatform, i;
|
||||
|
||||
for (i = 0; i < paramsArray.length; i++) {
|
||||
var tmpArray = paramsArray[i].split("=");
|
||||
params[tmpArray[0]] = tmpArray[1];
|
||||
}
|
||||
|
||||
testPlatform = params.platform;
|
||||
if (testPlatform) {
|
||||
return platform.indexOf(testPlatform) != -1;
|
||||
}
|
||||
|
||||
for (j = 0, jln = platform.length; j < jln; j++) {
|
||||
switch (platform[j]) {
|
||||
case 'phone':
|
||||
profileMatch = isPhone(ua);
|
||||
break;
|
||||
case 'tablet':
|
||||
profileMatch = isTablet(ua);
|
||||
break;
|
||||
case 'desktop':
|
||||
profileMatch = !isPhone(ua) && !isTablet(ua);
|
||||
break;
|
||||
case 'ios':
|
||||
profileMatch = /(iPad|iPhone|iPod)/.test(ua);
|
||||
break;
|
||||
case 'android':
|
||||
profileMatch = /(Android|Silk)/.test(ua);
|
||||
break;
|
||||
case 'blackberry':
|
||||
profileMatch = /(BlackBerry|BB)/.test(ua);
|
||||
break;
|
||||
case 'safari':
|
||||
profileMatch = /Safari/.test(ua) && !(/(BlackBerry|BB)/.test(ua));
|
||||
break;
|
||||
case 'chrome':
|
||||
profileMatch = /Chrome/.test(ua);
|
||||
break;
|
||||
case 'ie10':
|
||||
profileMatch = /MSIE 10/.test(ua);
|
||||
break;
|
||||
case 'windows':
|
||||
profileMatch = /MSIE 10/.test(ua) || /Trident/.test(ua);
|
||||
break;
|
||||
case 'tizen':
|
||||
profileMatch = /Tizen/.test(ua);
|
||||
break;
|
||||
case 'firefox':
|
||||
profileMatch = /Firefox/.test(ua);
|
||||
}
|
||||
if (profileMatch) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
for (i = 0,ln = styleSheets.length; i < ln; i++) {
|
||||
path = styleSheets[i];
|
||||
|
||||
if (typeof path != 'string') {
|
||||
platform = path.platform;
|
||||
exclude = path.exclude;
|
||||
theme = path.theme;
|
||||
path = path.path;
|
||||
}
|
||||
|
||||
if (platform) {
|
||||
if (!filterPlatform(platform) || filterPlatform(exclude)) {
|
||||
continue;
|
||||
}
|
||||
Ext.theme = {
|
||||
name: theme || 'Default'
|
||||
};
|
||||
}
|
||||
write('<link rel="stylesheet" href="'+path+'">');
|
||||
}
|
||||
|
||||
for (i = 0,ln = scripts.length; i < ln; i++) {
|
||||
path = scripts[i];
|
||||
|
||||
if (typeof path != 'string') {
|
||||
platform = path.platform;
|
||||
exclude = path.exclude;
|
||||
path = path.path;
|
||||
}
|
||||
|
||||
if (platform) {
|
||||
if (!filterPlatform(platform) || filterPlatform(exclude)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
write('<script src="'+path+'"></'+'script>');
|
||||
}
|
||||
}
|
||||
|
||||
})(this);
|
4610
vendor/touch/release-notes.html
vendored
5067
vendor/touch/resources/css-debug/apple.css
vendored
3697
vendor/touch/resources/css-debug/base.css
vendored
6456
vendor/touch/resources/css-debug/bb10.css
vendored
5840
vendor/touch/resources/css-debug/bb103.css
vendored
6077
vendor/touch/resources/css-debug/cupertino-classic.css
vendored
5781
vendor/touch/resources/css-debug/cupertino.css
vendored
5312
vendor/touch/resources/css-debug/mountainview.css
vendored
7718
vendor/touch/resources/css-debug/sencha-touch.css
vendored
6720
vendor/touch/resources/css-debug/tizen.css
vendored
6569
vendor/touch/resources/css-debug/wp.css
vendored
21
vendor/touch/resources/css/base.css
vendored
21
vendor/touch/resources/css/bb10.css
vendored
21
vendor/touch/resources/css/bb103.css
vendored
21
vendor/touch/resources/css/cupertino-classic.css
vendored
21
vendor/touch/resources/css/cupertino.css
vendored
21
vendor/touch/resources/css/mountainview.css
vendored
21
vendor/touch/resources/css/sencha-touch.css
vendored
21
vendor/touch/resources/css/tizen.css
vendored
21
vendor/touch/resources/css/wp.css
vendored
BIN
vendor/touch/resources/images/icon1.png
vendored
Before Width: | Height: | Size: 616 B |
BIN
vendor/touch/resources/images/icon2.png
vendored
Before Width: | Height: | Size: 318 B |
BIN
vendor/touch/resources/images/icon3.png
vendored
Before Width: | Height: | Size: 854 B |
BIN
vendor/touch/resources/images/icon4.png
vendored
Before Width: | Height: | Size: 472 B |
BIN
vendor/touch/resources/images/welcome.png
vendored
Before Width: | Height: | Size: 158 KiB |
3
vendor/touch/resources/sass/base.scss
vendored
|
@ -1,3 +0,0 @@
|
|||
@import 'sencha-touch/base';
|
||||
|
||||
@include icon-font('Pictos', inline-font-files('pictos/pictos-web.woff', woff, 'pictos/pictos-web.ttf', truetype,'pictos/pictos-web.svg', svg));
|
2
vendor/touch/resources/sass/bb10.scss
vendored
|
@ -1,2 +0,0 @@
|
|||
@import 'sencha-touch/bb10';
|
||||
@import 'sencha-touch/bb10/all';
|
2
vendor/touch/resources/sass/bb103.scss
vendored
|
@ -1,2 +0,0 @@
|
|||
@import 'sencha-touch/bb103';
|
||||
@import 'sencha-touch/bb103/all';
|
12
vendor/touch/resources/sass/config-debug.rb
vendored
|
@ -1,12 +0,0 @@
|
|||
# Get the directory that this configuration file exists in
|
||||
dir = File.dirname(__FILE__)
|
||||
|
||||
# Load the sencha-touch framework automatically.
|
||||
load File.join(dir, '..', 'themes')
|
||||
|
||||
# Compass configurations
|
||||
sass_path = dir
|
||||
css_path = File.join(dir, "..", "css-debug")
|
||||
fonts_path = File.join(dir, '..', 'themes/fonts/')
|
||||
environment = :development
|
||||
output_style = :expanded
|
12
vendor/touch/resources/sass/config.rb
vendored
|
@ -1,12 +0,0 @@
|
|||
# Get the directory that this configuration file exists in
|
||||
dir = File.dirname(__FILE__)
|
||||
|
||||
# Load the sencha-touch framework automatically.
|
||||
load File.join(dir, '..', 'themes')
|
||||
|
||||
# Compass configurations
|
||||
fonts_path = File.join(dir, '..', 'themes/fonts/')
|
||||
sass_path = dir
|
||||
css_path = File.join(dir, "..", "css")
|
||||
environment = :development
|
||||
output_style = :compressed
|
|
@ -1,2 +0,0 @@
|
|||
@import 'sencha-touch/cupertino-classic';
|
||||
@import 'sencha-touch/cupertino-classic/all';
|
2
vendor/touch/resources/sass/cupertino.scss
vendored
|
@ -1,2 +0,0 @@
|
|||
@import 'sencha-touch/cupertino';
|
||||
@import 'sencha-touch/cupertino/all';
|
|
@ -1,2 +0,0 @@
|
|||
@import 'sencha-touch/mountainview';
|
||||
@import 'sencha-touch/mountainview/all';
|
|
@ -1,2 +0,0 @@
|
|||
@import 'sencha-touch/default';
|
||||
@import 'sencha-touch/default/all';
|
2
vendor/touch/resources/sass/tizen.scss
vendored
|
@ -1,2 +0,0 @@
|
|||
@import 'sencha-touch/tizen';
|
||||
@import 'sencha-touch/tizen/all';
|
2
vendor/touch/resources/sass/wp.scss
vendored
|
@ -1,2 +0,0 @@
|
|||
@import 'sencha-touch/windows';
|
||||
@import 'sencha-touch/windows/all';
|
10
vendor/touch/resources/themes/compass_init.rb
vendored
|
@ -1,10 +0,0 @@
|
|||
# This file registers the sencha-touch framework with compass
|
||||
# It's a magic name that compass knows how to find.
|
||||
dir = File.dirname(__FILE__)
|
||||
require File.join(dir, 'lib', 'theme_images.rb')
|
||||
|
||||
# Include compass-recipes
|
||||
require File.join(File.dirname(__FILE__), 'vendor', 'compass-recipes', 'config')
|
||||
|
||||
Compass::BrowserSupport.add_support('repeating-linear-gradient', 'webkit', 'moz', 'o', 'ms')
|
||||
Compass::Frameworks.register 'sencha-touch', dir
|
BIN
vendor/touch/resources/themes/fonts/ios7/ios7.eot
vendored
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
This is a custom SVG font generated by IcoMoon.
|
||||
<iconset grid="16"></iconset>
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="512" >
|
||||
<font-face units-per-em="512" ascent="480" descent="-32" />
|
||||
<missing-glyph horiz-adv-x="512" />
|
||||
<glyph class="hidden" unicode="" d="M0,480L 512 -32L0 -32 z" horiz-adv-x="0" />
|
||||
<glyph unicode="!" d="M 236.48-16.76L 175.652,48.016L 357.208,223.24L 175.652,406.38L 236.48,463.236L 476.48,223.24 z" />
|
||||
<glyph unicode=""" d="M 203.884,223.992L 410.68,21.364L 357.32-32L 101.32,223.992L 357.32,480L 409.596,427.74 z" />
|
||||
<glyph unicode=" " horiz-adv-x="256" />
|
||||
</font></defs></svg>
|
Before Width: | Height: | Size: 826 B |
BIN
vendor/touch/resources/themes/fonts/ios7/ios7.ttf
vendored
BIN
vendor/touch/resources/themes/fonts/ios7/ios7.woff
vendored
Before Width: | Height: | Size: 40 KiB |
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>Generated by IcoMoon</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="1024">
|
||||
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " d="" horiz-adv-x="512" />
|
||||
<glyph unicode="a" d="M877.714 256v-73.143q0-14.857-10.857-25.714t-25.714-10.857h-804.571q-14.857 0-25.714 10.857t-10.857 25.714v73.143q0 14.857 10.857 25.714t25.714 10.857h804.571q14.857 0 25.714-10.857t10.857-25.714zM877.714 548.571v-73.143q0-14.857-10.857-25.714t-25.714-10.857h-804.571q-14.857 0-25.714 10.857t-10.857 25.714v73.143q0 14.857 10.857 25.714t25.714 10.857h804.571q14.857 0 25.714-10.857t10.857-25.714zM877.714 841.143v-73.143q0-14.857-10.857-25.714t-25.714-10.857h-804.571q-14.857 0-25.714 10.857t-10.857 25.714v73.143q0 14.857 10.857 25.714t25.714 10.857h804.571q14.857 0 25.714-10.857t10.857-25.714z" horiz-adv-x="878" />
|
||||
<glyph unicode="b" d="M731.429 475.429v73.143q0 14.857-10.857 25.714t-25.714 10.857h-286.857l108 108q10.857 10.857 10.857 25.714t-10.857 25.714l-52 52q-10.286 10.286-25.714 10.286t-25.714-10.286l-258.857-258.857q-10.286-10.286-10.286-25.714t10.286-25.714l258.857-258.857q10.286-10.286 25.714-10.286t25.714 10.286l52 52q10.286 10.286 10.286 25.714t-10.286 25.714l-108 108h286.857q14.857 0 25.714 10.857t10.857 25.714zM877.714 512q0-119.429-58.857-220.286t-159.714-159.714-220.286-58.857-220.286 58.857-159.714 159.714-58.857 220.286 58.857 220.286 159.714 159.714 220.286 58.857 220.286-58.857 159.714-159.714 58.857-220.286z" horiz-adv-x="878" />
|
||||
<glyph unicode="c" d="M409.714 226.857l259.429 259.429q10.857 10.857 10.857 25.714t-10.857 25.714l-259.429 259.429q-10.857 10.857-25.714 10.857t-25.714-10.857l-58.286-58.286q-10.857-10.857-10.857-25.714t10.857-25.714l175.429-175.429-175.429-175.429q-10.857-10.857-10.857-25.714t10.857-25.714l58.286-58.286q10.857-10.857 25.714-10.857t25.714 10.857zM877.714 512q0-119.429-58.857-220.286t-159.714-159.714-220.286-58.857-220.286 58.857-159.714 159.714-58.857 220.286 58.857 220.286 159.714 159.714 220.286 58.857 220.286-58.857 159.714-159.714 58.857-220.286z" horiz-adv-x="878" />
|
||||
</font></defs></svg>
|
Before Width: | Height: | Size: 2.3 KiB |
BIN
vendor/touch/resources/themes/images/bb10/check.png
vendored
Before Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 439 B |
Before Width: | Height: | Size: 634 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 941 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 836 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1,000 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 994 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 927 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1,008 B |
Before Width: | Height: | Size: 737 B |