winix/winixd/html
Tomasz Sowa d5ebb7ca12 changed the way how the request's answer is created,
now winix can return json, xml, csv from out_main_stream or from frames and json from models

removed from Request:
  bool send_bin_stream
  bool return_json
  bool return_info_only
  pt::Space info
  bool page_generated
  bool out_main_stream_use_html_filter
  bool out_streams_use_html_filter

added to Request:
  enum AnswerSource
  enum AnswerContainer
  AnswerSource answer_source
  AnswerContainer answer_container
  bool use_ezc_engine
  std::wstring frame
  bool send_all_frames
  bool use_html_filter

added to Config:
 // the name of the url parameter for returning all frames, e.g. https://domain.tld/mydir/myfunction/allframes
 // default: allframes
 std::wstring request_all_frames_parameter;

 // the name of the root element when serializing request answer to xml
 // default: winix
 std::wstring xml_root;

algorithm (the whole algorithm is described in core/request.h):
at the beginning of a request winix sets
   answer_source to models
   answer_container to text
   use_ezc_engine to true

next answer_container and use_ezc_engine can be changed in the following way:

1. winix will look for 'Accept' http header and depending on the header winix will set:
   (not implemented yet)

             Accept | answer_container | use_ezc_engine
	     ------------------------------------|-----------------
	     application/json | json             | false
	      application/xml | xml              | false
	              text/csv | csv              | false

2. next answer_container is set depending on 'container' url parameter
       container | answer_container
 ---------------------------------------------------------
     not present | don't change the value
            text | text
            json | json
             xml | xml
             csv | csv

use_ezc_engine is set depending on 'answer' url parameter:
          answer | use_ezc_engine
 ---------------------------------
     not present | don't change the value
            html | true
            data | false

if 'answer' is html then we take into account two more parameters:
 frame: frame_name (empty default) - if set then winix returns this specific frame
 allframes: (if present then winix returns all frames)
2021-10-13 01:27:14 +02:00
..
antispam.html added: antispam mechanism 2018-07-02 11:16:36 +00:00
ckeditor.html added basic support for htmx (ajax) 2021-05-27 19:36:04 +02:00
dir_last_info.html added uikit markup for: createthread, reply, showthreads and thread winix functions 2021-02-12 18:57:14 +01:00
err_404.html moved winix directories to winixdsubdirectory 2016-03-17 08:26:02 +00:00
err_per_denied.html moved winix directories to winixdsubdirectory 2016-03-17 08:26:02 +00:00
fun_account.html updated some html templates 2021-06-27 23:33:10 +02:00
fun_adduser.html updated some html templates 2021-06-27 23:33:10 +02:00
fun_cat.html ItemContent::user_name(EzcEnv & env) changed to ItemContent::user(morm::ModelWrapper ** model_wrapper) and we return a User class 2021-06-19 23:48:12 +02:00
fun_chmod.html moved winix directories to winixdsubdirectory 2016-03-17 08:26:02 +00:00
fun_chown.html moved winix directories to winixdsubdirectory 2016-03-17 08:26:02 +00:00
fun_ckeditor.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_cp.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_createthread.html updated ticket plugin to the new ezc api (child spaces were removed) 2021-06-29 23:42:57 +02:00
fun_createticket.html updated ticket plugin to the new ezc api (child spaces were removed) 2021-06-29 23:42:57 +02:00
fun_default.html added uikit markup for 'default' winix function 2021-01-26 16:19:20 +01:00
fun_editticket.html moved winix directories to winixdsubdirectory 2016-03-17 08:26:02 +00:00
fun_emacs.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_emacs_post.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_env.html updated ticket plugin to the new ezc api (child spaces were removed) 2021-06-29 23:42:57 +02:00
fun_export.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_gallery.html added uikit markup for gallery winix funcion (gallery plugin) 2021-02-16 16:31:52 +01:00
fun_imgcrop.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_ipban.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_last.html added uikit markup for last winix function 2021-02-16 18:56:18 +01:00
fun_ln.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_locale.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_login.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_ls.html some methods from templates/item.cpp moved to ItemContent 2021-06-20 21:22:08 +02:00
fun_man.html added uikit markup for man winix function 2021-02-16 19:03:01 +01:00
fun_meta.html renamed: ItemContent::meta_admin -> ItemContent::admin_meta 2021-07-03 01:18:28 +02:00
fun_mkdir.html added uikit markup for mkdir winix function 2021-01-26 16:26:34 +01:00
fun_mount.html added uk-table-responsive attribute to mount winix function markup 2021-01-26 16:11:09 +01:00
fun_mv.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_nicedit.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_passwd.html updated some html templates 2021-06-27 23:33:10 +02:00
fun_priv.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_pw.html added uikit markup for pw winix function 2021-02-16 19:12:15 +01:00
fun_registermail.html moved winix directories to winixdsubdirectory 2016-03-17 08:26:02 +00:00
fun_reload.html moved winix directories to winixdsubdirectory 2016-03-17 08:26:02 +00:00
fun_reply.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_rm.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_rmuser.html updated some html templates 2021-06-27 23:33:10 +02:00
fun_run.html changed the way how the request's answer is created, 2021-10-13 01:27:14 +02:00
fun_seo.html updated some html templates 2021-06-27 23:33:10 +02:00
fun_showthreads.html - added to Request: is_htmx_request (bool) - true if the request is made by htmx library (ajax) 2021-05-31 10:58:34 +02:00
fun_showtickets.html added uikit markup for createticket, showtickets, ticket winix functions (plugin ticket) 2021-02-15 19:52:03 +01:00
fun_sort.html renamed: ItemContent::meta_admin -> ItemContent::admin_meta 2021-07-03 01:18:28 +02:00
fun_stat.html added uikit markup for stat winix function 2021-02-16 19:25:36 +01:00
fun_subject.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_template.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_thread.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_ticket.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_timezone.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
fun_tinymce.html changed the way how the request's answer is created, 2021-10-13 01:27:14 +02:00
fun_uname.html added uikit markup for uname winix function 2021-02-16 19:28:42 +01:00
fun_upload.html changed the way how the request's answer is created, 2021-10-13 01:27:14 +02:00
fun_uptime.html added uikit markup for uptime winix function 2021-02-09 18:26:30 +01:00
fun_vim.html moved some ezc functions from templates/item.cpp to Item and ItemContent 2021-07-06 21:52:29 +02:00
fun_who.html added uikit markup for who winix function 2021-02-09 18:11:37 +01:00
index.html changed html in index templates: [include "index_head_functions_add.html"] -> [include "index_head_adder.html"] 2021-02-16 20:10:29 +01:00
index_bottom_adder.html some work in html templates: changed some functions from item_* to item.* 2021-06-20 18:12:43 +02:00
index_generic.html changed html in index templates: [include "index_head_functions_add.html"] -> [include "index_head_adder.html"] 2021-02-16 20:10:29 +01:00
index_head_adder.html htmx updated to 1.6.0 2021-10-08 17:44:34 +02:00
index_raw.html changed: the way how raw template is set 2016-04-04 16:02:36 +00:00
slog.html added uikit markup for slog.html 2021-01-25 18:15:26 +01:00
stats_info.html moved winix directories to winixdsubdirectory 2016-03-17 08:26:02 +00:00
thread_sort_tab_info.html added uikit markup for: createthread, reply, showthreads and thread winix functions 2021-02-12 18:57:14 +01:00