Move question and added issue tracker
This commit is contained in:
parent
c63093cd95
commit
bb9a04aa2f
11
README.md
11
README.md
|
@ -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.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.question.transport = The transport to prefix the server.url with. (default: 'http://')
|
||||
* server.question.title = The question ui title. (default: 'Server')
|
||||
* server.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.transport = The transport to prefix the server.url with. (default: 'http://')
|
||||
* question.title = The question ui title. (default: 'Server')
|
||||
* question.text = The question ui text. (default: 'Please provide the server name;')
|
||||
* 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.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)
|
||||
|
@ -164,6 +164,9 @@ Add unit tests for any new or changed functionality. Lint and test your code.
|
|||
|
||||
## Release History
|
||||
|
||||
### 0.1.0
|
||||
* Moved options.server.question to options.question
|
||||
|
||||
### 0.0.4
|
||||
* Added auto cache clean code
|
||||
* Disable cordova timeout per default.
|
||||
|
|
|
@ -74,13 +74,13 @@
|
|||
},
|
||||
response: {
|
||||
}
|
||||
}
|
||||
},
|
||||
question: {
|
||||
transport: 'http://',
|
||||
title: 'Server',
|
||||
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}',
|
||||
}
|
||||
},
|
||||
cache: {
|
||||
meta: null,
|
||||
|
@ -590,7 +590,7 @@
|
|||
|
||||
options.server.url = '';
|
||||
if (inputTag.value.indexOf('http') === -1) {
|
||||
options.server.url += options.server.question.transport;
|
||||
options.server.url += options.question.transport;
|
||||
}
|
||||
options.server.url += inputTag.value;
|
||||
// TODO: auto rm ending /
|
||||
|
@ -635,15 +635,15 @@
|
|||
|
||||
var cssTag = document.createElement('style');
|
||||
cssTag.type = 'text/css';
|
||||
cssTag.innerHTML = options.server.question.style;
|
||||
cssTag.innerHTML = options.question.style;
|
||||
rootTag.appendChild(cssTag);
|
||||
|
||||
var titleTag = document.createElement('h1');
|
||||
titleTag.appendChild(document.createTextNode(options.server.question.title));
|
||||
titleTag.appendChild(document.createTextNode(options.question.title));
|
||||
rootTag.appendChild(titleTag);
|
||||
|
||||
var questionTag = document.createElement('p');
|
||||
questionTag.appendChild(document.createTextNode(options.server.question.text));
|
||||
questionTag.appendChild(document.createTextNode(options.question.text));
|
||||
rootTag.appendChild(questionTag);
|
||||
|
||||
var formTag = document.createElement('div');
|
||||
|
@ -651,7 +651,7 @@
|
|||
|
||||
var transportTag = document.createElement('label');
|
||||
rootTag.setAttribute('for','serverInput');
|
||||
transportTag.appendChild(document.createTextNode(options.server.question.transport));
|
||||
transportTag.appendChild(document.createTextNode(options.question.transport));
|
||||
formTag.appendChild(transportTag);
|
||||
|
||||
var inputTag = document.createElement('input');
|
||||
|
|
|
@ -23,12 +23,17 @@
|
|||
"sync",
|
||||
"cache",
|
||||
"localStorage",
|
||||
"openDatabase"
|
||||
"openDatabase",
|
||||
"sqlitePlugin"
|
||||
],
|
||||
"license": "BSD-2-Clause",
|
||||
"repository": {
|
||||
"type": "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": {
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-clean": "^0.3.1",
|
||||
|
|
Loading…
Reference in a new issue