2
0
Fork 0

Move question and added issue tracker

This commit is contained in:
Willem 2016-01-21 20:42:18 +01:00
parent c63093cd95
commit bb9a04aa2f
3 changed files with 24 additions and 16 deletions

View file

@ -88,10 +88,10 @@ A javascript library providing server defined loading of assets for a single pag
* server.assets = The server path to the assets resources definition file, is required (default: null) * server.assets = The server path to the assets resources definition file, is required (default: null)
* server.timeout = The timeout to download the server resources. (default: 4096) * server.timeout = The timeout to download the server resources. (default: 4096)
* server.flag = The window flag which is set when the server.url is know. (default: 'FFServerUrl') * server.flag = The window flag which is set when the server.url is know. (default: 'FFServerUrl')
* server.question.transport = The transport to prefix the server.url with. (default: 'http://') * question.transport = The transport to prefix the server.url with. (default: 'http://')
* server.question.title = The question ui title. (default: 'Server') * question.title = The question ui title. (default: 'Server')
* server.question.text = The question ui text. (default: 'Please provide the server name;') * question.text = The question ui text. (default: 'Please provide the server name;')
* server.question.style = The question ui css style.(note: pending change) (default: green border box) * question.style = The question ui css style.(note: pending change) (default: green border box)
* cache.meta = The cache backend for the meta information(server.url+content), null is auto select. (default: null) * cache.meta = The cache backend for the meta information(server.url+content), null is auto select. (default: null)
* cache.js = The cache backend for for js, null is auto select. (default: null) * cache.js = The cache backend for for js, null is auto select. (default: null)
* cache.css = The cache backend for for css, null is auto select. (default: null) * cache.css = The cache backend for for css, null is auto select. (default: null)
@ -164,6 +164,9 @@ Add unit tests for any new or changed functionality. Lint and test your code.
## Release History ## Release History
### 0.1.0
* Moved options.server.question to options.question
### 0.0.4 ### 0.0.4
* Added auto cache clean code * Added auto cache clean code
* Disable cordova timeout per default. * Disable cordova timeout per default.

View file

@ -74,13 +74,13 @@
}, },
response: { response: {
} }
}
}, },
question: { question: {
transport: 'http://', transport: 'http://',
title: 'Server', title: 'Server',
text: 'Please provide the server name;', // TODO: rename .ffAskUrl text: 'Please provide the server name;', // TODO: rename .ffAskUrl
style: '.ffAskUrl { font-size: 1em;margin: auto;width: 90%;border: 3px solid #73AD21;padding-left: 1em;padding-bottom: 1em;} .ffAskUrl > div {font-size: 0.8em;color: #ccc;} .ffAskUrl > div > * {} .ffAskUrl > div > input {} .ffAskUrlError{ color: red}', style: '.ffAskUrl { font-size: 1em;margin: auto;width: 90%;border: 3px solid #73AD21;padding-left: 1em;padding-bottom: 1em;} .ffAskUrl > div {font-size: 0.8em;color: #ccc;} .ffAskUrl > div > * {} .ffAskUrl > div > input {} .ffAskUrlError{ color: red}',
}
}, },
cache: { cache: {
meta: null, meta: null,
@ -590,7 +590,7 @@
options.server.url = ''; options.server.url = '';
if (inputTag.value.indexOf('http') === -1) { if (inputTag.value.indexOf('http') === -1) {
options.server.url += options.server.question.transport; options.server.url += options.question.transport;
} }
options.server.url += inputTag.value; options.server.url += inputTag.value;
// TODO: auto rm ending / // TODO: auto rm ending /
@ -635,15 +635,15 @@
var cssTag = document.createElement('style'); var cssTag = document.createElement('style');
cssTag.type = 'text/css'; cssTag.type = 'text/css';
cssTag.innerHTML = options.server.question.style; cssTag.innerHTML = options.question.style;
rootTag.appendChild(cssTag); rootTag.appendChild(cssTag);
var titleTag = document.createElement('h1'); var titleTag = document.createElement('h1');
titleTag.appendChild(document.createTextNode(options.server.question.title)); titleTag.appendChild(document.createTextNode(options.question.title));
rootTag.appendChild(titleTag); rootTag.appendChild(titleTag);
var questionTag = document.createElement('p'); var questionTag = document.createElement('p');
questionTag.appendChild(document.createTextNode(options.server.question.text)); questionTag.appendChild(document.createTextNode(options.question.text));
rootTag.appendChild(questionTag); rootTag.appendChild(questionTag);
var formTag = document.createElement('div'); var formTag = document.createElement('div');
@ -651,7 +651,7 @@
var transportTag = document.createElement('label'); var transportTag = document.createElement('label');
rootTag.setAttribute('for','serverInput'); rootTag.setAttribute('for','serverInput');
transportTag.appendChild(document.createTextNode(options.server.question.transport)); transportTag.appendChild(document.createTextNode(options.question.transport));
formTag.appendChild(transportTag); formTag.appendChild(transportTag);
var inputTag = document.createElement('input'); var inputTag = document.createElement('input');

View file

@ -23,12 +23,17 @@
"sync", "sync",
"cache", "cache",
"localStorage", "localStorage",
"openDatabase" "openDatabase",
"sqlitePlugin"
], ],
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"repository": { "repository": {
"type": "git",
"url": "https://bitbucket.org/im_ik/es5-ff-spa-loader.git" "url": "https://bitbucket.org/im_ik/es5-ff-spa-loader.git"
}, },
"bugs": {
"url": "https://bitbucket.org/im_ik/es5-ff-spa-loader/issues"
},
"devDependencies": { "devDependencies": {
"gulp": "^3.9.0", "gulp": "^3.9.0",
"gulp-clean": "^0.3.1", "gulp-clean": "^0.3.1",