Commit 4cc8efb4b1cb90723200e7c065a4c9095fd37da0

Authored by David RENÉ
1 parent 61e55d80

start refactoring filename without CXM prefix

Showing 46 changed files with 103 additions and 101 deletions   Show diff stats
mail/send_mail.anubis
@@ -25,7 +25,7 @@ read authentication.anubis @@ -25,7 +25,7 @@ read authentication.anubis
25 read smtp_client.anubis 25 read smtp_client.anubis
26 26
27 public define String send_mail_log = "SendMail". 27 public define String send_mail_log = "SendMail".
28 -public define String cxm_lib = "cxm_lib". 28 +public define String xlib = "Xlib".
29 29
30 public define LogMask send_mail_mask = logMask("send_mail"). 30 public define LogMask send_mail_mask = logMask("send_mail").
31 31
@@ -214,8 +214,8 @@ public define Result(SmtpClientResult, One) @@ -214,8 +214,8 @@ public define Result(SmtpClientResult, One)
214 param, 214 param,
215 prepare_mail_callback, 215 prepare_mail_callback,
216 (Int _) |-> unique, 216 (Int _) |-> unique,
217 - (LogLevel level, String txt) |-> if level is logTrace then log(cxm_lib, logDebug, send_mail_log, txt)  
218 - else log(cxm_lib, level, send_mail_log, txt), 217 + (LogLevel level, String txt) |-> if level is logTrace then log(xlib, logDebug, send_mail_log, txt)
  218 + else log(xlib, level, send_mail_log, txt),
219 handle_result 219 handle_result
220 ). 220 ).
221 221
@@ -243,17 +243,17 @@ public define Result(SmtpClientResult, One) @@ -243,17 +243,17 @@ public define Result(SmtpClientResult, One)
243 { 243 {
244 failure then 244 failure then
245 //println("IP address NOT found for Mail server ["+server+"]"); 245 //println("IP address NOT found for Mail server ["+server+"]");
246 - logWarning(cxm_lib, send_mail_log,"IP address NOT found for Mail server ["+server+"]"); 246 + logWarning(xlib, send_mail_log,"IP address NOT found for Mail server ["+server+"]");
247 error(error), 247 error(error),
248 248
249 success(ip_addr) then 249 success(ip_addr) then
250 with ip_txt = ip_addr_to_string(ip_addr), 250 with ip_txt = ip_addr_to_string(ip_addr),
251 - logTrace(cxm_lib, send_mail_log, send_mail_mask, "send_mail: Trying to connect to "+ip_txt); 251 + logTrace(xlib, send_mail_log, send_mail_mask, "send_mail: Trying to connect to "+ip_txt);
252 //println("send_mail: Trying to connect to "+ip_txt); 252 //println("send_mail: Trying to connect to "+ip_txt);
253 if (Result(NetworkConnectError,RWStream))connect(ip_addr, port) is 253 if (Result(NetworkConnectError,RWStream))connect(ip_addr, port) is
254 { 254 {
255 error(e) then 255 error(e) then
256 - logWarning(cxm_lib, send_mail_log, "send_mail: Can't connect to "+ip_txt); 256 + logWarning(xlib, send_mail_log, "send_mail: Can't connect to "+ip_txt);
257 error(error), 257 error(error),
258 258
259 ok(server_conn) then 259 ok(server_conn) then
net_services/CXM_generic_client.anubis renamed to net_services/generic_client.anubis
net_services/CXM_generic_protocol.anubis renamed to net_services/generic_protocol.anubis
1 /* 1 /*
2 * 2 *
3 - * User: David RENE 3 + * User: フランスのトトロ aka (David RENÉ)
4 * Date: 25/04/2007 4 * Date: 25/04/2007
5 * Time: 16:20 5 * Time: 16:20
6 - * (c) Calexium 6 + * © David RENÉ
7 * 7 *
8 */ 8 */
9 9
@@ -13,7 +13,7 @@ read system/string.anubis @@ -13,7 +13,7 @@ read system/string.anubis
13 read system/files.anubis 13 read system/files.anubis
14 read tools/basis.anubis 14 read tools/basis.anubis
15 read system/message_queue.anubis 15 read system/message_queue.anubis
16 -read xlib/CXM_message_constants.anubis 16 +read xlib/message_constants.anubis
17 read xlib/types/generated/file_ref.anubis 17 read xlib/types/generated/file_ref.anubis
18 18
19 19
net_services/get_file.anubis
@@ -7,9 +7,9 @@ @@ -7,9 +7,9 @@
7 */ 7 */
8 8
9 9
10 -read xlib/CXM_message_constants.anubis  
11 -read xlib/net_services/CXM_generic_protocol.anubis  
12 -read xlib/net_services/CXM_generic_client.anubis //for get_ip 10 +read xlib/message_constants.anubis
  11 +read xlib/net_services/generic_protocol.anubis
  12 +read xlib/net_services/generic_client.anubis //for get_ip
13 read xlib/types/generated/file_ref.anubis 13 read xlib/types/generated/file_ref.anubis
14 read system/message_queue.anubis 14 read system/message_queue.anubis
15 read system/message_transceiver.anubis 15 read system/message_transceiver.anubis
net_services/CXM_net_services.anubis renamed to net_services/net_services.anubis
1 /* 1 /*
2 * 2 *
3 - * User: David RENE 3 + * User: フランスのトトロ aka (David RENÉ)
4 * Date: 25/04/2007 4 * Date: 25/04/2007
5 * Time: 11:01 5 * Time: 11:01
6 - * (c) Calexium 6 + * © David RENÉ
7 * 7 *
8 */ 8 */
  9 +
9 read tools/basis.anubis 10 read tools/basis.anubis
10 read system/convert.anubis 11 read system/convert.anubis
11 read system/string.anubis 12 read system/string.anubis
@@ -14,8 +15,8 @@ read system/data_io.anubis @@ -14,8 +15,8 @@ read system/data_io.anubis
14 read system/message_queue.anubis 15 read system/message_queue.anubis
15 read system/message_transceiver.anubis 16 read system/message_transceiver.anubis
16 read system/logger.anubis 17 read system/logger.anubis
17 -read CXM_generic_protocol.anubis  
18 -read xlib/CXM_message_constants.anubis 18 +read xlib/net_services/generic_protocol.anubis
  19 +read xlib/message_constants.anubis
19 20
20 public type NetService: 21 public type NetService:
21 net_service( 22 net_service(
net_services/send_file.anubis
@@ -19,9 +19,9 @@ read system/files.anubis @@ -19,9 +19,9 @@ read system/files.anubis
19 read system/logger.anubis 19 read system/logger.anubis
20 20
21 read xlib/net_services_protocols/logger_client.anubis 21 read xlib/net_services_protocols/logger_client.anubis
22 -read xlib/CXM_message_constants.anubis  
23 -read xlib/net_services/CXM_net_services.anubis  
24 -read xlib/net_services/CXM_generic_protocol.anubis 22 +read xlib/message_constants.anubis
  23 +read xlib/net_services/net_services.anubis
  24 +read xlib/net_services/generic_protocol.anubis
25 read xlib/types/generated/file_ref.anubis 25 read xlib/types/generated/file_ref.anubis
26 read app_constants.anubis 26 read app_constants.anubis
27 27
net_services_protocols/ftp_client.anubis
@@ -8,9 +8,9 @@ @@ -8,9 +8,9 @@
8 * 8 *
9 */ 9 */
10 10
11 -read xlib/CXM_message_constants.anubis  
12 -read xlib/net_services/CXM_generic_protocol.anubis  
13 -read xlib/net_services/CXM_generic_client.anubis //for get_ip 11 +read xlib/message_constants.anubis
  12 +read xlib/net_services/generic_protocol.anubis
  13 +read xlib/net_services/generic_client.anubis //for get_ip
14 read system/message_queue.anubis 14 read system/message_queue.anubis
15 read system/message_transceiver.anubis 15 read system/message_transceiver.anubis
16 read system/muscle.anubis 16 read system/muscle.anubis
net_services_protocols/logger_server.anubis
@@ -13,7 +13,7 @@ read system/string.anubis @@ -13,7 +13,7 @@ read system/string.anubis
13 read system/files.anubis 13 read system/files.anubis
14 read system/parameter/inifile.anubis 14 read system/parameter/inifile.anubis
15 read system/message_queue.anubis 15 read system/message_queue.anubis
16 -read xlib/CXM_message_constants.anubis 16 +read xlib/message_constants.anubis
17 17
18 read logger_client.anubis 18 read logger_client.anubis
19 19
unit_test/xml_rpc.unit_test.anubis
1 -  
2 -read web/CXM_xml_rpc.anubis  
3 -read asterisk/ami.anubis  
4 - 1 +
  2 +read web/xml_rpc.anubis
  3 +read asterisk/ami.anubis
  4 +
@@ -231,7 +231,7 @@ public type Redirections: @@ -231,7 +231,7 @@ public type Redirections:
231 Now, you may also want to recover web argument values which have been encoded (by 231 Now, you may also want to recover web argument values which have been encoded (by
232 'web_arg_encode'). In this case, use the following: 232 'web_arg_encode'). In this case, use the following:
233 233
234 -read CXM_web_arg_encode.anubis 234 +read web_arg_encode.anubis
235 235
236 236
237 public define Maybe($T) 237 public define Maybe($T)
web/controllers_web_site.anubis
@@ -151,7 +151,7 @@ define HTTP_Answer @@ -151,7 +151,7 @@ define HTTP_Answer
151 151
152 // content of page 152 // content of page
153 sequence([ 153 sequence([
154 - preformated([size(14)],"Anubis Web Server - Standard Lib v1.14.0.0 - Anubis language v1.14"), 154 + preformated([size(14)],"Anubis Web Server - Standard Lib v1.19.0.0 - Anubis language v1.19"),
155 preformated([size(12)],"Error "+to_String(http_status)), 155 preformated([size(12)],"Error "+to_String(http_status)),
156 preformated([size(12)],"Internal message :"+message), 156 preformated([size(12)],"Internal message :"+message),
157 br, 157 br,
web/CXM_dojo.anubis renamed to web/dojo.anubis
@@ -12,9 +12,9 @@ read locale/L3LanguageInfo.anubis @@ -12,9 +12,9 @@ read locale/L3LanguageInfo.anubis
12 read system/string.anubis 12 read system/string.anubis
13 read system/logger.anubis 13 read system/logger.anubis
14 14
15 -read xlib/web/CXM_common.anubis  
16 -read xlib/web/CXM_making_a_web_site.anubis  
17 -read xlib/web/CXM_multihost_http_server.anubis 15 +read xlib/web/common.anubis
  16 +read xlib/web/making_a_web_site.anubis
  17 +read xlib/web/multihost_http_server.anubis
18 read xlib/net_services_protocols/logger_service.anubis 18 read xlib/net_services_protocols/logger_service.anubis
19 19
20 public type Dojo_Grid_Data : 20 public type Dojo_Grid_Data :
web/CXM_dropzone.anubis renamed to web/dropzone.anubis
@@ -8,8 +8,8 @@ @@ -8,8 +8,8 @@
8 8
9 read tools/basis.anubis 9 read tools/basis.anubis
10 read system/string.anubis 10 read system/string.anubis
11 -read xlib/web/CXM_making_a_web_site.anubis  
12 -read xlib/web/CXM_jquery.anubis 11 +read xlib/web/making_a_web_site.anubis
  12 +read xlib/web/jquery.anubis
13 13
14 public define HTML_Partial_Content 14 public define HTML_Partial_Content
15 dropzone 15 dropzone
@@ -24,8 +24,8 @@ public define HTML_Partial_Content @@ -24,8 +24,8 @@ public define HTML_Partial_Content
24 ) = 24 ) =
25 with dropzone_form_id = to_lower(dropzone_form_name+"_"+generate_random_string(15)), 25 with dropzone_form_id = to_lower(dropzone_form_name+"_"+generate_random_string(15)),
26 partial_content( 26 partial_content(
27 - [ js(js_file("js/dropzone.js")),  
28 - css(css_file("css/dropzone.css")), 27 + [ js(js_file("xlib/js/dropzone.js")),
  28 + css(css_file("xlib/css/dropzone.css")),
29 js_script(" 29 js_script("
30 Dropzone.options." + to_Camel_case(dropzone_form_id) + " = { 30 Dropzone.options." + to_Camel_case(dropzone_form_id) + " = {
31 dictDefaultMessage : \"" + dict_default_message + "\", 31 dictDefaultMessage : \"" + dict_default_message + "\",
web/fonts/awesome.anubis
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 * © David RENÉ 6 * © David RENÉ
7 */ 7 */
8 8
9 -read xlib/web/CXM_making_a_web_site.anubis 9 +read xlib/web/making_a_web_site.anubis
10 10
11 public type Font_Awesome: 11 public type Font_Awesome:
12 awesome( 12 awesome(
web/CXM_generic_form.anubis renamed to web/generic_form.anubis
web/CXM_generic_login.anubis renamed to web/generic_login.anubis
web/CXM_generic_table.anubis renamed to web/generic_table.anubis
web/CXM_http_get.anubis renamed to web/http_get.anubis
@@ -32,8 +32,8 @@ @@ -32,8 +32,8 @@
32 32
33 read tools/basis.anubis 33 read tools/basis.anubis
34 read system/string.anubis 34 read system/string.anubis
35 -transmit xlib/web/CXM_common.anubis  
36 -transmit xlib/web/CXM_http_get_common.anubis 35 +transmit xlib/web/common.anubis
  36 +transmit xlib/web/http_get_common.anubis
37 37
38 38
39 public type HTTP_GET_Result: 39 public type HTTP_GET_Result:
web/CXM_https_get.anubis renamed to web/https_get.anubis
web/jQuery/jq_animate.anubis
@@ -65,12 +65,12 @@ @@ -65,12 +65,12 @@
65 read tools/basis.anubis 65 read tools/basis.anubis
66 read tools/printable_tree.anubis 66 read tools/printable_tree.anubis
67 67
68 -read xlib/web/CXM_making_a_web_site.anubis  
69 -read xlib/web/CXM_json.anubis  
70 -read xlib/web/CXM_jquery.anubis  
71 -read xlib/web/jQuery/CXM_jquery_easing.anubis 68 +read xlib/web/making_a_web_site.anubis
  69 +read xlib/web/json.anubis
  70 +read xlib/web/jquery.anubis
  71 +read xlib/web/jQuery/jq_easing.anubis
72 72
73 -read xlib/web/CXM_style_tools.anubis 73 +read xlib/web/style_tools.anubis
74 read xlib/web/js_tools.anubis 74 read xlib/web/js_tools.anubis
75 75
76 public type AnimatableCSSStyle: 76 public type AnimatableCSSStyle:
@@ -130,9 +130,9 @@ public type JQueryAnimation: @@ -130,9 +130,9 @@ public type JQueryAnimation:
130 type JQueryFormattedAnimation: 130 type JQueryFormattedAnimation:
131 formatted_animation(String id, String trigger_name, JsonValue stop_anim_id, JsonValue css_props, JsonValue options). 131 formatted_animation(String id, String trigger_name, JsonValue stop_anim_id, JsonValue css_props, JsonValue options).
132 132
133 -define HTML_Head_Tag required_js = js(js_file("js/cxm/cxm_jquery_animate.js")). 133 +define HTML_Head_Tag required_js = js(js_file("xlib/js/jquery_animate.js")).
134 134
135 -define String js_anim_function_name = "CalexiumToolBox.CXM_Animate.animate". 135 +define String js_anim_function_name = "Xlib.CXM_Animate.animate".
136 136
137 define List(JsonMember) 137 define List(JsonMember)
138 animatables_to_json_members 138 animatables_to_json_members
web/jQuery/jq_button.anubis
@@ -286,7 +286,7 @@ public define HTML_Partial_Content @@ -286,7 +286,7 @@ public define HTML_Partial_Content
286 )= 286 )=
287 with uid = generate_random_string(10), 287 with uid = generate_random_string(10),
288 288
289 - js_confirm_dialog_data_obj = "CalexiumToolBox.data.confirm_dialog['" + uid + "']", 289 + js_confirm_dialog_data_obj = "Xlib.data.confirm_dialog['" + uid + "']",
290 js_data = js_confirm_dialog_data_obj + " = { 290 js_data = js_confirm_dialog_data_obj + " = {
291 title: " + to_JS_String(dlg_title) + ", 291 title: " + to_JS_String(dlg_title) + ",
292 text: " + to_JS_String(dlg_text) + ", 292 text: " + to_JS_String(dlg_text) + ",
@@ -294,7 +294,7 @@ public define HTML_Partial_Content @@ -294,7 +294,7 @@ public define HTML_Partial_Content
294 cancel: " + to_JS_String(dlg_cancel) + "};", 294 cancel: " + to_JS_String(dlg_cancel) + "};",
295 295
296 button_name = uid, 296 button_name = uid,
297 - _actioner = jQuery_actioner(same, jqscript("CalexiumToolBox.make_confirm_dialog(this, " /*+ to_js_string("/?a=" + url + format_extra_operands(extra_ops))+*/ + to_JS_String(jquery_button_get_onclick_action(actioner)) + ");")), 297 + _actioner = jQuery_actioner(same, jqscript("Xlib.make_confirm_dialog(this, " /*+ to_js_string("/?a=" + url + format_extra_operands(extra_ops))+*/ + to_JS_String(jquery_button_get_onclick_action(actioner)) + ");")),
298 298
299 partial_content([ 299 partial_content([
300 js(js_file("js/cxm/cxm.js")), 300 js(js_file("js/cxm/cxm.js")),
@@ -322,7 +322,7 @@ public define HTML_Partial_Content @@ -322,7 +322,7 @@ public define HTML_Partial_Content
322 since button is jquery_img_button(img_url, button_label, button_name, actioner, orientation), 322 since button is jquery_img_button(img_url, button_label, button_name, actioner, orientation),
323 with uid = generate_random_string(10), 323 with uid = generate_random_string(10),
324 324
325 - js_confirm_dialog_data_obj = "CalexiumToolBox.data.confirm_dialog['" + uid + "']", 325 + js_confirm_dialog_data_obj = "Xlib.data.confirm_dialog['" + uid + "']",
326 js_data = js_confirm_dialog_data_obj + " = { 326 js_data = js_confirm_dialog_data_obj + " = {
327 title: " + to_JS_String(dlg_title) + ", 327 title: " + to_JS_String(dlg_title) + ",
328 text: " + to_JS_String(dlg_text) + ", 328 text: " + to_JS_String(dlg_text) + ",
@@ -330,7 +330,7 @@ public define HTML_Partial_Content @@ -330,7 +330,7 @@ public define HTML_Partial_Content
330 cancel: " + to_JS_String(dlg_cancel) + "};", 330 cancel: " + to_JS_String(dlg_cancel) + "};",
331 331
332 _button_name = uid, 332 _button_name = uid,
333 - _actioner = jQuery_actioner(same, jqscript("CalexiumToolBox.make_confirm_dialog(this, " + to_JS_String(jquery_button_get_onclick_action(actioner)) +");")), 333 + _actioner = jQuery_actioner(same, jqscript("Xlib.make_confirm_dialog(this, " + to_JS_String(jquery_button_get_onclick_action(actioner)) +");")),
334 334
335 partial_content([ 335 partial_content([
336 js(js_file("js/cxm/cxm.js")), 336 js(js_file("js/cxm/cxm.js")),
web/jQuery/jq_dialog.anubis
@@ -130,7 +130,7 @@ public define String @@ -130,7 +130,7 @@ public define String
130 WEB_Action_Name action, 130 WEB_Action_Name action,
131 List((String,String)) extra_ops 131 List((String,String)) extra_ops
132 )= 132 )=
133 - "CalexiumToolBox.jq_dialog_load('"+id(dialog_id)+"',"+format_web_action_name_to_js(action, extra_ops)+");" 133 + "Xlib.jq_dialog_load('"+id(dialog_id)+"',"+format_web_action_name_to_js(action, extra_ops)+");"
134 . 134 .
135 135
136 136
@@ -150,7 +150,7 @@ define String @@ -150,7 +150,7 @@ define String
150 JQuery_dialog_id dialog_id, 150 JQuery_dialog_id dialog_id,
151 String params 151 String params
152 )= 152 )=
153 - with js_function = "CalexiumToolBox.jquery_dialog_click('"+id(dialog_id)+"', "+(if length(params)=0 then "''" else params) +");", 153 + with js_function = "Xlib.jquery_dialog_click('"+id(dialog_id)+"', "+(if length(params)=0 then "''" else params) +");",
154 if mb_html is 154 if mb_html is
155 { 155 {
156 failure then js_function, 156 failure then js_function,
web/jQuery/jq_flot.anubis
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 * © David RENÉ 6 * © David RENÉ
7 */ 7 */
8 8
9 -read xlib/web/CXM_making_a_web_site.anubis 9 +read xlib/web/making_a_web_site.anubis
10 10
11 public define List(HTML_Head_Tag) 11 public define List(HTML_Head_Tag)
12 jq_flot_init 12 jq_flot_init
web/jQuery/jq_radio.anubis
@@ -6,10 +6,10 @@ @@ -6,10 +6,10 @@
6 * © Calexium 6 * © Calexium
7 */ 7 */
8 8
9 -transmit xlib/web/CXM_making_a_web_site.anubis  
10 -transmit xlib/web/CXM_jquery.anubis  
11 -transmit xlib/web/jQuery/CXM_jquery_button.anubis  
12 -transmit xlib/web/jQuery/CXM_jquery_icons.anubis 9 +transmit xlib/web/making_a_web_site.anubis
  10 +transmit xlib/web/jquery.anubis
  11 +transmit xlib/web/jQuery/jq_button.anubis
  12 +transmit xlib/web/jQuery/jq_icons.anubis
13 transmit xlib/web/js_tools.anubis 13 transmit xlib/web/js_tools.anubis
14 transmit tools/basis.anubis 14 transmit tools/basis.anubis
15 transmit system/string.anubis 15 transmit system/string.anubis
web/jQuery/jq_tabs.anubis
@@ -90,8 +90,8 @@ public define HTML_Partial_Content @@ -90,8 +90,8 @@ public define HTML_Partial_Content
90 $(this).attr('value', ui.newTab.index()); 90 $(this).attr('value', ui.newTab.index());
91 }); 91 });
92 92
93 - if (typeof CalexiumToolBox !== 'undefined' && typeof CalexiumToolBox.jq_tab_activate !== 'undefined') {  
94 - CalexiumToolBox.jq_tab_activate(event, ui); 93 + if (typeof Xlib !== 'undefined' && typeof Xlib.jq_tab_activate !== 'undefined') {
  94 + Xlib.jq_tab_activate(event, ui);
95 } 95 }
96 }, 96 },
97 create: function( event, ui ) { 97 create: function( event, ui ) {
@@ -92,7 +92,7 @@ public define String @@ -92,7 +92,7 @@ public define String
92 }+ 92 }+
93 "$('#"+form+"').submit();\n", 93 "$('#"+form+"').submit();\n",
94 jqformload(form_id, target_id, web_action, extra_args) then 94 jqformload(form_id, target_id, web_action, extra_args) then
95 - "CalexiumToolBox.jq_form_submit_and_load('"+form_id+"', '"+format_web_action_name(web_action, extra_args)+"', '"+target_id+"');\n" 95 + "Xlib.jq_form_submit_and_load('"+form_id+"', '"+format_web_action_name(web_action, extra_args)+"', '"+target_id+"');\n"
96 jqlink(control_action, extra_ops) then 96 jqlink(control_action, extra_ops) then
97 if control_action is 97 if control_action is
98 { 98 {
@@ -121,7 +121,7 @@ public define String @@ -121,7 +121,7 @@ public define String
121 }+ 121 }+
122 "$('#"+form+"').submit();\n", 122 "$('#"+form+"').submit();\n",
123 jqformload(form_id, target_id, web_action, extra_args) then 123 jqformload(form_id, target_id, web_action, extra_args) then
124 - "CalexiumToolBox.jq_form_submit_and_load('"+form_id+"', '"+format_web_action_name(web_action, extra_args)+"', '"+target_id+"');\n" 124 + "Xlib.jq_form_submit_and_load('"+form_id+"', '"+format_web_action_name(web_action, extra_args)+"', '"+target_id+"');\n"
125 jqlink(control_action, extra_ops) then 125 jqlink(control_action, extra_ops) then
126 if control_action is 126 if control_action is
127 { 127 {
@@ -150,7 +150,7 @@ public define String @@ -150,7 +150,7 @@ public define String
150 }+ 150 }+
151 "$('#"+form+"').submit();\n", 151 "$('#"+form+"').submit();\n",
152 jqformload(form_id, target_id, web_action, extra_args) then 152 jqformload(form_id, target_id, web_action, extra_args) then
153 - "CalexiumToolBox.jq_form_submit_and_load('"+form_id+"', '"+format_web_action_name(web_action, extra_args)+"', '"+target_id+"');\n" 153 + "Xlib.jq_form_submit_and_load('"+form_id+"', '"+format_web_action_name(web_action, extra_args)+"', '"+target_id+"');\n"
154 jqlink(control_action, extra_ops) then 154 jqlink(control_action, extra_ops) then
155 if control_action is 155 if control_action is
156 { 156 {
web/js/cxm_jquery_animate.js renamed to web/js/jquery_animate.js
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 jquery-ui (if you want to use advanced animating functions, ie: easing) 6 jquery-ui (if you want to use advanced animating functions, ie: easing)
7 7
8 Usage: 8 Usage:
9 - CalexiumToolBox.CXM_Animate.animate(selector, trigger_type, css_props, options, second_options); 9 + Xlib.CXM_Animate.animate(selector, trigger_type, css_props, options, second_options);
10 10
11 Arguments: 11 Arguments:
12 - selector 12 - selector
@@ -37,17 +37,17 @@ @@ -37,17 +37,17 @@
37 */ 37 */
38 38
39 $(document).ready(function () { 39 $(document).ready(function () {
40 - if (window.CalexiumToolBox === undefined) {  
41 - CalexiumToolBox = {}; 40 + if (window.Xlib === undefined) {
  41 + Xlib = {};
42 } 42 }
43 43
44 - if (CalexiumToolBox.CXM_Animate === undefined) {  
45 - CalexiumToolBox.CXM_Animate = { 44 + if (Xlib.CXM_Animate === undefined) {
  45 + Xlib.CXM_Animate = {
46 animate: null // see below 46 animate: null // see below
47 }; 47 };
48 } 48 }
49 49
50 - CalexiumToolBox.CXM_Animate.animate = function (selector, anims) { 50 + Xlib.CXM_Animate.animate = function (selector, anims) {
51 $(selector).each(function() { 51 $(selector).each(function() {
52 var elem = $(this), 52 var elem = $(this),
53 53
web/load_content.anubis
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 read system/convert.anubis 9 read system/convert.anubis
10 read xlib/web/types/making_a_web_site.anubis 10 read xlib/web/types/making_a_web_site.anubis
11 read xlib/web/web_action.anubis 11 read xlib/web/web_action.anubis
12 -//read xlib/web/CXM_jquery.anubis 12 +//read xlib/web/jquery.anubis
13 read xlib/web/js_tools.anubis 13 read xlib/web/js_tools.anubis
14 14
15 public define String 15 public define String
@@ -21,7 +21,7 @@ public define String @@ -21,7 +21,7 @@ public define String
21 Bool replace 21 Bool replace
22 )= 22 )=
23 23
24 - "Xlib.ajax_load_content('"+target+"', '"+format_web_action_name(web_action, extra_args)+"', "+to_String(replace)+");" 24 + "Xlib.load_content('"+target+"', '"+format_web_action_name(web_action, extra_args)+"', "+to_String(replace)+");"
25 . 25 .
26 26
27 public define String 27 public define String
@@ -32,7 +32,7 @@ public define String @@ -32,7 +32,7 @@ public define String
32 List((String,String)) extra_args, 32 List((String,String)) extra_args,
33 Bool replace 33 Bool replace
34 )= 34 )=
35 - to_JS_String("Xlib.ajax_load_content('"+target+"', "+format_web_action_name_to_js(web_action, extra_args)+", "+to_String(replace)+")") 35 + to_JS_String("Xlib.load_content('"+target+"', "+format_web_action_name_to_js(web_action, extra_args)+", "+to_String(replace)+")")
36 . 36 .
37 37
38 public define String 38 public define String
web/making_a_web_site.anubis
@@ -366,7 +366,7 @@ public define List(HTTP_header) @@ -366,7 +366,7 @@ public define List(HTTP_header)
366 = 366 =
367 //println("Set-Cookie state_"+website_name+"="+state_name); 367 //println("Set-Cookie state_"+website_name+"="+state_name);
368 [ 368 [
369 - http_header("Set-Cookie", "session_"+website_name+"="+session_name) 369 + http_header("Set-Cookie", "session_"+website_name+"="+session_name+"; SameSite=Strict")
370 ] 370 ]
371 . 371 .
372 372
@@ -2362,7 +2362,7 @@ public define String @@ -2362,7 +2362,7 @@ public define String
2362 'web_arg_encode'. The name of the file into which the state is saved is the 2362 'web_arg_encode'. The name of the file into which the state is saved is the
2363 concatenation of "s" and the name of the state. 2363 concatenation of "s" and the name of the state.
2364 2364
2365 -read CXM_web_arg_encode.anubis 2365 +read web_arg_encode.anubis
2366 2366
2367 The tool below constructs the function which is able to save a state on the server's 2367 The tool below constructs the function which is able to save a state on the server's
2368 disk. 2368 disk.
web/CXM_mime.anubis renamed to web/mime.anubis
web/multihost_http_server.anubis
@@ -2469,7 +2469,7 @@ public define List(HTTP_header) @@ -2469,7 +2469,7 @@ public define List(HTTP_header)
2469 = 2469 =
2470 [ 2470 [
2471 http_header("Date", format_http_date(now)), 2471 http_header("Date", format_http_date(now)),
2472 - http_header("Server", "Anubis Calexium Embedded Server v" + major_version_number + "." + minor_version_number), 2472 + http_header("Server", "Anubis Embedded Web Server v" + major_version_number + "." + minor_version_number),
2473 /*http_header("Connection", "close"), */ 2473 /*http_header("Connection", "close"), */
2474 ]. 2474 ].
2475 2475
web/piwik/CXM_piwik.anubis renamed to web/piwik/piwik.anubis
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 * To change this template use Tools | Options | Coding | Edit Standard Headers. 11 * To change this template use Tools | Options | Coding | Edit Standard Headers.
12 */ 12 */
13 13
14 -read xlib/web/CXM_making_a_web_site.anubis 14 +read xlib/web/making_a_web_site.anubis
15 read tools/basis.anubis 15 read tools/basis.anubis
16 16
17 // this js code is to include in the <head> section of a webpage, it enable Piwik tracking for the given site/domains (Note: Only if the website was added to the Piwik tracker) 17 // this js code is to include in the <head> section of a webpage, it enable Piwik tracking for the given site/domains (Note: Only if the website was added to the Piwik tracker)
web/CXM_style_tools.anubis renamed to web/style_tools.anubis
web/types/XL_web_stepper.anubis renamed to web/types/web_stepper.anubis
web/CXM_web_arg_encode.anubis renamed to web/web_arg_encode.anubis
web/XL_web_stepper.anubis renamed to web/web_stepper.anubis
@@ -6,11 +6,11 @@ @@ -6,11 +6,11 @@
6 * © David RENÉ 6 * © David RENÉ
7 */ 7 */
8 8
9 -transmit xlib/web/CXM_jquery.anubis  
10 -transmit xlib/web/types/XL_web_stepper.anubis 9 +transmit xlib/web/jquery.anubis
  10 +transmit xlib/web/types/web_stepper.anubis
11 transmit xlib/web/controllers_web_site.anubis 11 transmit xlib/web/controllers_web_site.anubis
12 -read xlib/web/CXM_page_message.anubis  
13 -read xlib/web/jQuery/CXM_jquery_button.anubis 12 +read xlib/web/page_message.anubis
  13 +read xlib/web/jQuery/jq_button.anubis
14 read xlib/web_controllers/language/language_management.anubis 14 read xlib/web_controllers/language/language_management.anubis
15 read xlib/web/widgets/icons_set.anubis 15 read xlib/web/widgets/icons_set.anubis
16 16
web/widgets/button.anubis
@@ -209,7 +209,8 @@ define List(CoreAttrs) @@ -209,7 +209,8 @@ define List(CoreAttrs)
209 with ok_action = if load_content_target = "" then 209 with ok_action = if load_content_target = "" then
210 to_JS_String("Xlib.jq_query("+format_web_action_name_to_js(web_action, extra_ops)+")") 210 to_JS_String("Xlib.jq_query("+format_web_action_name_to_js(web_action, extra_ops)+")")
211 else 211 else
212 - to_JS_String("Xlib.ajax_load_content('"+load_content_target+"', "+format_web_action_name_to_js(web_action, extra_ops)+", true)"), 212 + load_content_JS_String(load_content_target, web_action, extra_ops, true),
  213 + //to_JS_String("Xlib.ajax_load_content('"++"', "+format_web_action_name_to_js(web_action, extra_ops)+", true)"),
213 214
214 core_attrs + [id(uid), style("cursor: pointer"), event(onclick, "Xlib.make_confirm_dialog(this, "+ ok_action +");")]. 215 core_attrs + [id(uid), style("cursor: pointer"), event(onclick, "Xlib.make_confirm_dialog(this, "+ ok_action +");")].
215 216
@@ -299,7 +300,7 @@ public define HTML_Partial_Content @@ -299,7 +300,7 @@ public define HTML_Partial_Content
299 String load_content_target //if empty doesn't use load content 300 String load_content_target //if empty doesn't use load content
300 ) = 301 ) =
301 with uid = generate_random_string(20), 302 with uid = generate_random_string(20),
302 - //with event_click = (CoreAttrs)event(onclick, "CalexiumToolBox.jq_query("+format_web_action_name_to_js(web_action, extra_ops)+")"), 303 + //with event_click = (CoreAttrs)event(onclick, "Xlib.jq_query("+format_web_action_name_to_js(web_action, extra_ops)+")"),
303 304
304 partial_content([js(js_file("xlib/js/xlib.js")), js_inline(jquery_ready(img_button_confirm_js(uid, dlg_title, dlg_text, dlg_ok, dlg_cancel)))], 305 partial_content([js(js_file("xlib/js/xlib.js")), js_inline(jquery_ready(img_button_confirm_js(uid, dlg_title, dlg_text, dlg_ok, dlg_cancel)))],
305 img(img_button_confirm_image_attrs(core_attrs, uid, web_action, extra_ops, load_content_target), img_path)) 306 img(img_button_confirm_image_attrs(core_attrs, uid, web_action, extra_ops, load_content_target), img_path))
web/widgets/dashboard.anubis
@@ -8,8 +8,8 @@ @@ -8,8 +8,8 @@
8 8
9 read tools/basis.anubis 9 read tools/basis.anubis
10 10
11 -read xlib/web/CXM_common.anubis  
12 -read xlib/web/CXM_making_a_web_site.anubis 11 +read xlib/web/common.anubis
  12 +read xlib/web/making_a_web_site.anubis
13 13
14 transmit css_helper.anubis 14 transmit css_helper.anubis
15 15
web/widgets/fisheye_menu.anubis
@@ -7,9 +7,9 @@ @@ -7,9 +7,9 @@
7 */ 7 */
8 8
9 transmit tools/basis.anubis 9 transmit tools/basis.anubis
10 -transmit xlib/web/CXM_making_a_web_site.anubis  
11 -read xlib/web/jQuery/CXM_jquery_animate.anubis  
12 -read xlib/web/CXM_jquery.anubis 10 +transmit xlib/web/making_a_web_site.anubis
  11 +read xlib/web/jQuery/jquery_animate.anubis
  12 +read xlib/web/jquery.anubis
13 13
14 public type FisheyeEntry: 14 public type FisheyeEntry:
15 fisheye_entry( 15 fisheye_entry(
web/widgets/icon.anubis
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 */ 7 */
8 8
9 transmit xlib/web/fonts/awesome.anubis 9 transmit xlib/web/fonts/awesome.anubis
10 -read xlib/web/CXM_making_a_web_site.anubis 10 +read xlib/web/making_a_web_site.anubis
11 11
12 public type Icon: 12 public type Icon:
13 no_icon, 13 no_icon,
web/widgets/left_menu_html.anubis
@@ -7,8 +7,8 @@ @@ -7,8 +7,8 @@
7 */ 7 */
8 8
9 transmit xlib/web/widgets/left_menu.anubis 9 transmit xlib/web/widgets/left_menu.anubis
10 -read xlib/web/CXM_making_a_web_site.anubis  
11 -read xlib/web/CXM_web_action.anubis 10 +read xlib/web/making_a_web_site.anubis
  11 +read xlib/web/web_action.anubis
12 read xlib/web/load_content.anubis 12 read xlib/web/load_content.anubis
13 13
14 define List(HTML_Off_Form) 14 define List(HTML_Off_Form)
@@ -33,7 +33,7 @@ define List(HTML_Off_Form) @@ -33,7 +33,7 @@ define List(HTML_Off_Form)
33 failure then p([class(item_class+_menu_id+"_icon"+if _menu_id=selected then " selected" else ""+ " "+join(" ", _classes))],actioner(same,same, link(_T(_text)),_action,_extra)), 33 failure then p([class(item_class+_menu_id+"_icon"+if _menu_id=selected then " selected" else ""+ " "+join(" ", _classes))],actioner(same,same, link(_T(_text)),_action,_extra)),
34 success(target_id) then 34 success(target_id) then
35 p([class(item_class+"clickable "+_menu_id+"_icon"+if _menu_id=selected then " selected" else ""+ " "+join(" ", _classes)), 35 p([class(item_class+"clickable "+_menu_id+"_icon"+if _menu_id=selected then " selected" else ""+ " "+join(" ", _classes)),
36 -// event(onclick, "CalexiumToolBox.ajax_load_content('"+target_id+"', "+format_web_action_name_to_js(_action, _extra)+")")],text(_T(_text))), 36 +// event(onclick, "Xlib.load_content('"+target_id+"', "+format_web_action_name_to_js(_action, _extra)+")")],text(_T(_text))),
37 event(onclick, load_content(target_id, _action, _extra))],text(_T(_text))), 37 event(onclick, load_content(target_id, _action, _extra))],text(_T(_text))),
38 } 38 }
39 39
web/widgets/menu.anubis
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 transmit tools/basis.anubis 10 transmit tools/basis.anubis
11 read system/string.anubis 11 read system/string.anubis
12 12
13 -read xlib/web/CXM_making_a_web_site.anubis 13 +read xlib/web/making_a_web_site.anubis
14 transmit xlib/web/widgets/icon.anubis 14 transmit xlib/web/widgets/icon.anubis
15 15
16 public type Menu_Item: 16 public type Menu_Item:
@@ -224,7 +224,7 @@ public define HTML_Partial_Content @@ -224,7 +224,7 @@ public define HTML_Partial_Content
224 { 224 {
225 no_menu then partial_content(empty), 225 no_menu then partial_content(empty),
226 menu(items) then 226 menu(items) then
227 - partial_content([css(css_file("/css/cxm/cxm_menu.css"))], 227 + partial_content([css(css_file("xlib/css/menu.css"))],
228 //partial_content([css(css_file("/css/admin_theme.css"))], 228 //partial_content([css(css_file("/css/admin_theme.css"))],
229 sequence(make_menu(_T, items, _direction))) 229 sequence(make_menu(_T, items, _direction)))
230 }. 230 }.
web/widgets/pager.anubis
@@ -6,8 +6,8 @@ @@ -6,8 +6,8 @@
6 * © David RENÉ 6 * © David RENÉ
7 */ 7 */
8 8
9 -read xlib/web/CXM_making_a_web_site.anubis  
10 -read xlib/web/CXM_web_session.anubis 9 +read xlib/web/making_a_web_site.anubis
  10 +read xlib/web/web_session.anubis
11 11
12 public define HTML_Partial_Content 12 public define HTML_Partial_Content
13 control_panel_pager 13 control_panel_pager
@@ -17,7 +17,7 @@ public define HTML_Partial_Content @@ -17,7 +17,7 @@ public define HTML_Partial_Content
17 String next 17 String next
18 ) 18 )
19 = 19 =
20 - partial_content([js(js_file("js/cxm/cxm_pager.js"))], 20 + partial_content([js(js_file("xlib/js/pager.js"))],
21 div(id(pager_id), [ 21 div(id(pager_id), [
22 text(class("o_pager_current_page"),"0"), 22 text(class("o_pager_current_page"),"0"),
23 text("/"), 23 text("/"),
web/CXM_xml_rpc.anubis renamed to web/xml_rpc.anubis
@@ -11,11 +11,11 @@ transmit tools/basis.anubis @@ -11,11 +11,11 @@ transmit tools/basis.anubis
11 read tools/connections.anubis 11 read tools/connections.anubis
12 read system/convert.anubis 12 read system/convert.anubis
13 transmit system/string.anubis 13 transmit system/string.anubis
14 -read xlib/web/CXM_common.anubis  
15 -read xlib/web/CXM_http_get_common.anubis  
16 -read xlib/web/CXM_multihost_http_server.anubis  
17 -transmit xlib/web/CXM_xml_rpc_parser.anubis  
18 -transmit xlib/web/CXM_xml_rpc_types.anubis 14 +read xlib/web/common.anubis
  15 +read xlib/web/http_get_common.anubis
  16 +read xlib/web/multihost_http_server.anubis
  17 +transmit xlib/web/xml_rpc_parser.anubis
  18 +transmit xlib/web/xml_rpc_types.anubis
19 19
20 20
21 define XML_RPC_parameters sysinfo_params = 21 define XML_RPC_parameters sysinfo_params =
web/CXM_xml_rpc_parser.anubis renamed to web/xml_rpc_parser.anubis
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 * 6 *
7 */ 7 */
8 8
9 -read xlib/web/CXM_xml_rpc_types.anubis 9 +read xlib/web/xml_rpc_types.anubis
10 read tools/streams.anubis 10 read tools/streams.anubis
11 read tools/basis.anubis 11 read tools/basis.anubis
12 read system/string.anubis 12 read system/string.anubis
web/CXM_xml_rpc_types.anubis renamed to web/xml_rpc_types.anubis