Updated PHP4 sites, added four new shortcuts for looking up crontabs and dns configur...
authorunknown <JKKN@.(none)>
Fri, 12 Jun 2009 17:12:04 +0000 (19:12 +0200)
committerunknown <JKKN@.(none)>
Fri, 12 Jun 2009 17:12:04 +0000 (19:12 +0200)
content/quickbox.js
defaults/preferences/tv2developer.js
version
webroot/index.html

index cca0cedc14dc205e5fee9053ef57f95daa2d1ef8..d757a57a8e4cf85a1d7c03901e9aa29f0a256382 100644 (file)
@@ -125,6 +125,7 @@ var TV2DeveloperQuickBox = {
     _reg_classname: /^[A-Z][a-zA-Z0-9_/]*(\.(p(hp?)?)?)?$/,
     _reg_cvs_nopostfix: /^(?:archive|conf|default|phpincludes|symfoni|titoonic-includes)$/,
     _reg_cvs_rootfolders: /^\/(((Java|build|inc|opdatering|robot|scripts|sql|template|views|php|php5|fonts|webroot)(\/|$)|\/))/,
+       _reg_cvs_dnsdomains: /^\/(tv2|tv2news|tv2film|sputnik|charlie|zulu)(\.|\.d|\.dk)?$/,
     _sitetypes: ['opdatering', 'robot', 'template'],
     _envs:      ['test', 'snapshot'],
     updateQuickbox: function(manual) {
@@ -437,14 +438,38 @@ var TV2DeveloperQuickBox = {
                 } else if (this._reg_cvs_nopostfix.exec(cvs_sitename)) {
                     url += cvs_sitename;
                     cvs_root = '';
+                                       if (cvs_sitename == 'conf') {
+                                               // Magic shortcuts for the 'conf' project:
+                                               var magicChangeShowSource = true;
+                                               var magicToShowSource = true;
+                                               if (uriOnly=='/dns') {
+                                                       uriOnly = '/hosts/dns-master/master/';
+                                                       magicToShowSource = false;
+                                               } else if (dns_domain=this._reg_cvs_dnsdomains.exec(uriOnly)) {
+                                                       uriOnly = '/hosts/dns-master/master/'+dns_domain[1]+'.dk';
+                                               } else if (uriOnly=='/cron') {
+                                                       uriOnly = '/hosts/robot-new/cronrun.crontab';
+                                               } else if (uriOnly=='/cron4') {
+                                                       uriOnly = '/hosts/robot/cronrun.crontab';
+                                               } else {
+                                                       magicChangeShowSource = false;
+                                               }
+                                               if (magicChangeShowSource && !manual && cvs_viewsource != magicToShowSource) {
+                                                       // auto default to show source for files, not for directories
+                                                       this._autoChange = true;
+                                                       cvs_viewsource = document.getElementById('viewsource').checked = magicToShowSource;
+                                                       this._autoChange = false;
+                                               }
+                                       }
                 } else {
                     url += cvs_sitename + '.tv2.dk';
                 }
                 var entered_root = null;
                 if (uriOnly && (entered_root=this._reg_cvs_rootfolders.exec(uriOnly))) {
+                                       // checks for standard cvs project root folders like: webroot, inc, opdatering, scripts, ...
                     cvs_root = '';
                     if (entered_root[1]=='/') {
-                        // you can exclude 'webroot' by written two slashes: '//'
+                        // you can exclude 'webroot/opdatering' by written two slashes: '//'
                         uriOnly = uriOnly.substr(1);
                     } else if (entered_root[4]!='/') {
                         // be clever and add the missing slash
index bc119ed692fc2d3f7434db1552fa642c99bddf19..fe9f3b9bcc574919d7f3205e68744ecf6e5c9e43 100644 (file)
@@ -3,5 +3,5 @@
 pref('tv2developer.firstRun', true);
 pref('tv2developer.developer-initials', 'CHANGE-THIS');
 pref('tv2developer.lastaction-linktype', 'tango/entry');
-pref('tv2developer.php4sites', '2000,auth,betaling,betalingsputnik,harris,inc,konsol,loginsputnik,playmoney,pokermoney,preview3finans,preview3nyhederne,preview3sporten,preview3tour,preview3film,preview324,spil,spil-deal,spil-million,spil-solo,titoonic,tvsputnik,vejnet,wptmoney,zulu');
+pref('tv2developer.php4sites', '2000,auth,betaling,betalingsputnik,harris,inc,konsol,loginsputnik,playmoney,pokermoney,preview3finans,preview3nyhederne,preview3sporten,preview3tour,preview3film,preview324,spil,spil-deal,spil-million,spil-solo,titoonic,tvsputnik,vejnet,wptmoney,oldzulu');
 pref('tv2developer.useStatusBarMode', false);
diff --git a/version b/version
index b80f98e66f1ad104c7e99b11be968fedf7e038b9..1ee43fc53c133677d5763d16500dcd78a9001b95 100644 (file)
--- a/version
+++ b/version
@@ -1 +1 @@
-0.11.7
+0.11.8
index b3a77c851bccea64e4d266ccd7a9f7dc77bafcf0..defbd242bd49904e0456bd6a8c8dac469e9c707b 100644 (file)
                 <li>Slå TV 2 Login brugere op pr. navn eller id</li>
                 <li>Slå Bugzilla opgave op</li>
                 <li>Slå et I2 Regsitry namespace op i node-værktøjet</li>
+                               <li>Shortcuts for CVS opslag:</li>
+                               <ul>
+                                       <li>Skriv <code>conf/cron</code> for direkte at vise crontab for robot-new.webdmz.tv2.dk.</li>
+                                       <li>Skriv <code>conf/cron4</code> for direkte at vise crontab for robot.webdmz.tv2.dk (PHP4).</li>
+                                       <li>Skriv <code>conf/dns</code> for at gå dirkete til DNS master folderen.</li>
+                                       <li>Skriv <code>conf/tv2.dk</code>, <code>conf/zulu.dk</code>, osv. for at gå dirkete til DNS zone filen.</li>
+                               </ul>
             </ul>
             <div class="center">
                 <a href="https://jkkn.dk/tv2developer/tv2developer.xpi">Install now</a>