From 7502039efcc08687b47438b680d45b49b67eac0e Mon Sep 17 00:00:00 2001 From: jongfoster Date: Wed, 23 Jan 2002 00:26:45 +0000 Subject: [PATCH] Reducing length of URLs Where encoded and unencoded versions of a string existed, removing the unencoded one. --- templates/cgi-error-file | 2 +- templates/cgi-error-modified | 2 +- templates/cgi-error-parse | 3 +- templates/edit-actions-add-url-form | 18 ++-- templates/edit-actions-for-url | 12 ++- templates/edit-actions-list | 132 ++++++++++++++++--------- templates/edit-actions-list-section | 66 ++++++------- templates/edit-actions-list-url | 23 +++-- templates/edit-actions-remove-url-form | 10 +- templates/edit-actions-url-form | 29 +++--- 10 files changed, 180 insertions(+), 117 deletions(-) diff --git a/templates/cgi-error-file b/templates/cgi-error-file index ffd0b703..591eff40 100644 --- a/templates/cgi-error-file +++ b/templates/cgi-error-file @@ -104,7 +104,7 @@

Actions file not found

-

The actions file you are trying to edit (@filename@.action) +

The actions file you are trying to edit (@f@.action) does not exist, or cannot be read.

diff --git a/templates/cgi-error-modified b/templates/cgi-error-modified index 97494e4d..7ebe20de 100644 --- a/templates/cgi-error-modified +++ b/templates/cgi-error-modified @@ -123,7 +123,7 @@

You can go back into the edit interface using the menu below, or by clicking here.

diff --git a/templates/cgi-error-parse b/templates/cgi-error-parse index 969f1703..8f7bf16e 100644 --- a/templates/cgi-error-parse +++ b/templates/cgi-error-parse @@ -112,8 +112,7 @@ badly using the web-based editor, please file a bug report!

When you've fixed the problem, you can go back into the edit interface using the menu below, or by clicking here.

+ href="edit-actions-list?f=@f@">here.

diff --git a/templates/edit-actions-add-url-form b/templates/edit-actions-add-url-form index 73512986..89839363 100644 --- a/templates/edit-actions-add-url-form +++ b/templates/edit-actions-add-url-form @@ -31,6 +31,10 @@ # # Revisions : # $Log: edit-actions-add-url-form,v $ +# Revision 1.3 2002/01/17 21:33:00 jongfoster +# Replacing all references to the URL of the config interface +# with @default-cgi@ +# # Revision 1.2 2002/01/17 21:21:03 jongfoster # DOS->Unix line endings # @@ -124,16 +128,16 @@ function validate(text)

Add URL Pattern

-
+

- - - -
+ + + +
    - Cancel + Cancel

diff --git a/templates/edit-actions-for-url b/templates/edit-actions-for-url index 2004c16e..5b6e13bf 100644 --- a/templates/edit-actions-for-url +++ b/templates/edit-actions-for-url @@ -32,6 +32,10 @@ # # Revisions : # $Log: edit-actions-for-url,v $ +# Revision 1.8 2002/01/17 21:33:00 jongfoster +# Replacing all references to the URL of the config interface +# with @default-cgi@ +# # Revision 1.7 2002/01/17 21:21:03 jongfoster # DOS->Unix line endings # @@ -286,7 +290,7 @@ function show_wafer_opts(tf) -
+ @@ -318,9 +322,9 @@ function show_wafer_opts(tf) diff --git a/templates/edit-actions-list b/templates/edit-actions-list index 863cd1cb..3cc0affa 100644 --- a/templates/edit-actions-list +++ b/templates/edit-actions-list @@ -31,6 +31,10 @@ # # Revisions : # $Log: edit-actions-list,v $ +# Revision 1.6 2002/01/17 21:33:00 jongfoster +# Replacing all references to the URL of the config interface +# with @default-cgi@ +# # Revision 1.5 2002/01/17 21:21:05 jongfoster # DOS->Unix line endings # @@ -83,48 +87,80 @@ -JunkBuster: Edit actions file - @filename@.action +JunkBuster: Edit actions file - @f@.action @@ -139,10 +175,10 @@ function not_yet() // JavaScript-capable browsers will call this function, which does a // client-side prompt for speed. It may kick off the delete directly. // It always returns false to cancel following the link. -function remove_pattern(section,pattern,curtext) +function rm_p(pattern,curtext) { if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext))) - { window.location.href="@default-cgi@edit-actions-remove-url?filename=@filename@&ver=@ver@§ion="+section+"&pattern="+pattern+"#s"+section+"urls"; } + { window.location.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern+"#l"+pattern; } return false; } @@ -178,19 +214,23 @@ function remove_pattern(section,pattern,curtext) +

Edit Actions - - - + + +

+ +
+
-

Editing Actions File - @filename@.action

-

- Insert new section at top -

+

Editing Actions File - @f@.action

+

Insert new section at top

@sections@ +
+ - - +# +# ** Important note: ** +# +# It is *extremely* important to keep this file small. That's why all the +# identifiers in the HTML are short and cryptic. Currently, the main +# edit-actions page is ~300k. Before it was optimized, it was ~550k. +# +############################################################################# + + - diff --git a/templates/edit-actions-remove-url-form b/templates/edit-actions-remove-url-form index c7e9de74..46adcb3d 100644 --- a/templates/edit-actions-remove-url-form +++ b/templates/edit-actions-remove-url-form @@ -33,6 +33,10 @@ # # Revisions : # $Log: edit-actions-remove-url-form,v $ +# Revision 1.3 2002/01/17 21:33:00 jongfoster +# Replacing all references to the URL of the config interface +# with @default-cgi@ +# # Revision 1.2 2002/01/17 21:21:05 jongfoster # DOS->Unix line endings # @@ -114,11 +118,11 @@ td.dark { background-color: #dddddd } diff --git a/templates/edit-actions-url-form b/templates/edit-actions-url-form index 0bec38f6..bd25c2f2 100644 --- a/templates/edit-actions-url-form +++ b/templates/edit-actions-url-form @@ -31,6 +31,10 @@ # # Revisions : # $Log: edit-actions-url-form,v $ +# Revision 1.3 2002/01/17 21:33:00 jongfoster +# Replacing all references to the URL of the config interface +# with @default-cgi@ +# # Revision 1.2 2002/01/17 21:21:05 jongfoster # DOS->Unix line endings # @@ -51,11 +55,11 @@ # # Available variables include: # -# filename -# ver -# section -# pattern -# oldval +# f - filename +# v - version +# s - section +# p - pattern +# u - old value of URL # ############################################################################# @@ -126,17 +130,16 @@ function validate(text) -- 2.39.2
diff --git a/templates/edit-actions-list-section b/templates/edit-actions-list-section index 68ea8145..2bd6ba9a 100644 --- a/templates/edit-actions-list-section +++ b/templates/edit-actions-list-section @@ -31,6 +31,10 @@ # # Revisions : # $Log: edit-actions-list-section,v $ +# Revision 1.4 2002/01/17 21:33:00 jongfoster +# Replacing all references to the URL of the config interface +# with @default-cgi@ +# # Revision 1.3 2001/11/13 00:58:18 jongfoster # New version of actions file editor templates # @@ -45,51 +49,47 @@ # urls # ############################################################################# +# +# ** Important note: ** +# +# It is important to keep this file small. That's why all the +# identifiers in the HTML are short and cryptic. Currently, the main +# edit-actions page is ~300k. Before it was optimized, it was ~550k. +# +############################################################################# - - - + + + - + - - - + + + - @urls@ - - + - - + +
Actions:Edit@actions@Actions:Edit@actions@
--------
URLs:Add URLs:Add 
--
Advanced: - - - - - - - - - -
  Move section up     - Insert new section below  
  Move section down     - Delete whole section  
-
Advanced: + + + + + + + + + +
  @if-s-prev-exists-start@Move section up   @if-s-prev-exists-end@   Insert new section below  
  @if-s-next-exists-start@Move section down   @if-s-next-exists-end@   @if-empty-section-start@Delete whole section  @if-empty-section-end@
+

 

- - diff --git a/templates/edit-actions-list-url b/templates/edit-actions-list-url index c3a99dd4..7c83f9b3 100644 --- a/templates/edit-actions-list-url +++ b/templates/edit-actions-list-url @@ -31,6 +31,10 @@ # # Revisions : # $Log: edit-actions-list-url,v $ +# Revision 1.4 2002/01/17 21:33:00 jongfoster +# Replacing all references to the URL of the config interface +# with @default-cgi@ +# # Revision 1.3 2001/11/13 00:58:18 jongfoster # New version of actions file editor templates # @@ -45,12 +49,17 @@ # urls # ############################################################################# -
 Remove   Edit 
 Remove   Edit  @url-html@

Remove URL Pattern

Are you sure you want to delete this URL pattern? The pattern is:

-

@oldval@

+

@u@

- OK + OK   - Cancel + Cancel

Edit URL Pattern

- +

- - - - -
+ + + +
    - Cancel + Cancel