webglade

JavaScript library to dynamically create XUL GUI from Glade XML files
git clone https://logand.com/git/webglade.git/
Log | Files | Refs | README | LICENSE

config.js (3493B)


      1 /**
      2 *
      3 *
      4 * @FileName: config.js
      5 * @$LastChangedDate: 2004-07-16 18:44:40 +0200 (Fri, 16 Jul 2004) $
      6 * @Author: Fabio Serra AKA Faser - faser@faser.net
      7 * @Copyright: Fabio Serra
      8 * @Licenze: MPL 1.1
      9 *
     10 */
     11 
     12 const MAB_NAME = "MAB - The Mozilla Amazon Browser";
     13 const MAB_VERSION = "1.3.4";
     14 const MAB_HOMEPAGE = "http://www.faser.net/mab";
     15 const MAB_FEEDBACK_PAGE = "http://www.faser.net/mab/feedback.cfm";
     16 const GUID = "{D580BE35-9342-4622-A635-08F640066C97}";
     17 
     18 
     19 //local || remote
     20 //Local have more permissione than the remote version.
     21 //eg: Local MAB can save file on disk
     22 const MAB_RUN = "remote";
     23 
     24 //Connect to proxy when MAB is used remotely
     25 //const AWSPROXY = "server/proxy.cfm";
     26 //const AWSPROXYPOST = "server/proxy_post.cfm";
     27 const AWSPROXY = "/cgi-bin/mab";
     28 const AWSPROXYPOST = "/cgi-bin/mab";
     29 
     30 //Amazon Web Service URL for each locale
     31 const AWSURL = {};
     32 
     33 if(MAB_RUN == "local") {
     34 	  AWSURL["us"] = "http://xml.amazon.com/onca/xml3";
     35 	  AWSURL["uk"] = "http://xml-eu.amazon.com/onca/xml3";
     36 	  AWSURL["de"] = "http://xml-eu.amazon.com/onca/xml3";
     37 	  AWSURL["jp"] = "http://xml.amazon.co.jp/onca/xml3";
     38 	  AWSURL["fr"] = "http://xml-eu.amazon.com/onca/xml3";
     39 	  AWSURL["ca"] = "http://xml.amazon.ca/onca/xml3";
     40 }else{
     41 	  AWSURL["us"] = AWSPROXY;
     42 	  AWSURL["uk"] = AWSPROXY;
     43 	  AWSURL["de"] = AWSPROXY;
     44 	  AWSURL["jp"] = AWSPROXY;
     45 	  AWSURL["fr"] = AWSPROXY;
     46 	  AWSURL["ca"] = AWSPROXY;
     47 }
     48 
     49 
     50 //Developer Token
     51 const DEVT = "D3MAIAYX2Q6JLY";
     52 
     53 //Associate ID
     54 const ASSID = {};
     55 	  ASSID["us"] = "faser-20";
     56 	  ASSID["uk"] = "faser-21";
     57 	  ASSID["de"] = "faser0f-21";
     58 	  ASSID["jp"] = "webservices-20";
     59 	  ASSID["fr"] = "faser02-21";
     60 	  ASSID["ca"] = "faser07-20";
     61 
     62 //Amazon HomePage URL
     63 const AMAZONURL = {};
     64 	  AMAZONURL["us"] = "http://www.amazon.com";
     65 	  AMAZONURL["uk"] = "http://www.amazon.co.uk";
     66 	  AMAZONURL["de"] = "http://www.amazon.de";
     67 	  AMAZONURL["jp"] = "http://www.amazon.co.jp";
     68 	  AMAZONURL["fr"] = "http://www.amazon.fr";
     69 	  AMAZONURL["ca"] = "http://www.amazon.ca";
     70 
     71 //Amazon Shopping Card URL
     72 const AMAZONCARD = {};
     73 if(MAB_RUN == "local") {
     74 	AMAZONCARD["us"] = "http://www.amazon.com/exec/obidos/dt/assoc/handle-buy-box=";
     75 	AMAZONCARD["uk"] = "http://www.amazon.co.uk/exec/obidos/dt/assoc/handle-buy-box=";
     76 	AMAZONCARD["de"] = "http://www.amazon.de/exec/obidos/dt/assoc/handle-buy-box=";
     77 	AMAZONCARD["fr"] = "http://www.amazon.fr/exec/obidos/dt/assoc/handle-buy-box=";
     78 	AMAZONCARD["ca"] = "http://www.amazon.ca/exec/obidos/dt/assoc/handle-buy-box=";
     79 	AMAZONCARD["jp"] = "http://www.amazon.co.jp/exec/obidos/dt/assoc/handle-buy-box=";
     80 }else{
     81 	AMAZONCARD["us"] = AWSPROXYPOST + "?locale=us&asin=";
     82 	AMAZONCARD["uk"] = AWSPROXYPOST + "?locale=uk&asin=";
     83 	AMAZONCARD["de"] = AWSPROXYPOST + "?locale=de&asin=";
     84 	AMAZONCARD["fr"] = AWSPROXYPOST + "?locale=fr&asin=";
     85 	AMAZONCARD["ca"] = AWSPROXYPOST + "?locale=ca&asin=";
     86 	AMAZONCARD["jp"] = AWSPROXYPOST + "?locale=jp&asin=";
     87 }
     88 
     89 //Google HomePage URL
     90 const GOOGLEURL = {};
     91 	  GOOGLEURL["us"] = "http://www.google.com";
     92 	  GOOGLEURL["uk"] = "http://www.google.co.uk";
     93 	  GOOGLEURL["de"] = "http://www.google.de";
     94 	  GOOGLEURL["jp"] = "http://www.google.jp";
     95 	  GOOGLEURL["fr"] = "http://www.google.fr";
     96 	  GOOGLEURL["ca"] = "http://www.google.ca";
     97 
     98 //How many days before a products should be considered expired
     99 const EXPIRED_SHORT = 1;
    100 const EXPIRED_LONG = 90;
    101 
    102 //CALL_INTERVAL - Call per second
    103 const CALL_INTERVAL = 500; //ms