aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2015-08-28 14:18:55 +0100
committerDave Arter <davea@mysociety.org>2015-08-28 14:27:16 +0100
commit7a3e9ac9d332ddd933d038499a19b8787a5b355a (patch)
treef82619ea88e86d739851b657628150073aab83b5 /www
parent671bb1705107fed62336e8a0d8697daddaafe4be (diff)
Only provide example config files; add cobrand docs to READMEphonegap-3
Diffstat (limited to 'www')
-rw-r--r--www/js/config.js11
-rw-r--r--www/js/config.js-example23
2 files changed, 17 insertions, 17 deletions
diff --git a/www/js/config.js b/www/js/config.js
deleted file mode 100644
index a34cd4b..0000000
--- a/www/js/config.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var CONFIG = {
- DEBUG: 0,
- TESTING: 0,
- LANGUAGE: 'en',
- APP_NAME: 'FixMyStreet',
- FMS_URL: 'https://www.fixmystreet.com/',
- NAMESPACE: 'fixmystreet',
- FILES_DIR: 'fixmystreet_photos',
- ACCURACY: 750,
- isUK: 1
-};
diff --git a/www/js/config.js-example b/www/js/config.js-example
index f5648a9..3e69b2d 100644
--- a/www/js/config.js-example
+++ b/www/js/config.js-example
@@ -1,12 +1,17 @@
var CONFIG = {
- // Language of templates to use ( should be name of directory under src/templates/ )
- LANGUAGE: '',
+ // Language of templates to use ( should be name of directory under www/templates/ )
+ LANGUAGE: 'en',
// Name of app to use in alert dialog titles amongst other things
- APP_NAME: '',
+ APP_NAME: 'FixMyStreet',
- // URL of the fixmystreet install to report to
- FMS_URL: '',
+ // URL of the fixmystreet install to report to. See also config.xml-example
+ FMS_URL: 'http://fixmystreet.example.org/',
+
+ // Name of the cobrand to use for templates, stylesheets etc.
+ // Cobrand files should be placed in a new directory within www/cobrands/
+ // Leave as null to use the default templates.
+ COBRAND: null,
// namespace for storing drafts etc in. Should not need to change
NAMESPACE: 'fixmystreet',
@@ -18,5 +23,11 @@ var CONFIG = {
ACCURACY: 100,
// how long, in milliseconds, before photo uploads timeout. Defaults to 120000 ( 2 minutes )
- UPLOAD_TIMEOUT: 120000
+ UPLOAD_TIMEOUT: 120000,
+
+ // Set to 1 to log debug messages to the console
+ DEBUG: 0,
+
+ // Whether the FMS installation is within the United Kingdom. Should not need to change.
+ isUK: 0
};