Commit Graph

487 Commits

Author SHA1 Message Date
b3bd9c6cf0 update htmx to 2.0.0 2024-06-27 16:37:05 +02:00
dadff8329e update uikit to 3.21.5 2024-06-27 11:46:45 +02:00
c30b7db041 add closing dialogs, redirecting and removing content functionality to the winix framework
add such new methods to FunctionBase:
- bool can_push_url_to_browser_history();
- void add_standard_models();
- void close_modal_dialogs();

- void prepare_doc_url(const wchar_t * local_url, pt::WTextStream & url);
- void prepare_doc_url(const wchar_t * local_url, std::wstring & url);
- std::wstring prepare_doc_url(const wchar_t * local_url = nullptr);
- std::wstring prepare_doc_url(const std::wstring & local_url);

- void redirect_to(const wchar_t * url, bool append_domain = true);
- void redirect_to(const std::wstring & url, bool append_domain = true);
- void redirect_to(const pt::WTextStream & url, bool append_domain = true);

- void redirect_to(const wchar_t * url, const wchar_t * frame_url, const wchar_t * dom_target);
- void redirect_to(const std::wstring & url, const std::wstring & frame_url, const std::wstring & dom_target);
- void redirect_to(pt::WTextStream & url, pt::WTextStream & frame_url, pt::WTextStream & dom_target);
- void redirect_to(pt::WTextStream & url, pt::WTextStream & frame_url, const wchar_t * dom_target);
- void redirect_to(const wchar_t * url, const wchar_t * frame_url, pt::WTextStream & dom_target);

- void retarged(const wchar_t * frame, const wchar_t * dom_target, const wchar_t * push_url = nullptr, const wchar_t * swap_algorithm = nullptr);
- void retarged(const std::wstring & frame, const std::wstring & dom_target, const std::wstring & push_url, const wchar_t * swap_algorithm = nullptr);
- void retarged(const wchar_t * frame, pt::WTextStream & dom_target, const wchar_t * push_url = nullptr, const wchar_t * swap_algorithm = nullptr);

- void remove_content(pt::WTextStream & dom_target, bool close_dialogs = false);
- void remove_content(const wchar_t * dom_target, bool has_postfix, long dom_target_postfix, bool close_dialogs = false);
- void remove_content(const wchar_t * dom_target, long dom_target_postfix, bool close_dialogs = false);
- void remove_content(const wchar_t * dom_target, bool close_dialogs = false);

- void update_content(const wchar_t * frame, pt::WTextStream & dom_target, bool close_dialogs = false);
- void update_content(const wchar_t * frame, const wchar_t * dom_target, bool has_postfix, long dom_target_postfix, bool close_dialogs = false);
- void update_content(const wchar_t * frame, const wchar_t * dom_target, long dom_target_postfix, bool close_dialogs = false);
- void update_content(const wchar_t * frame, const wchar_t * dom_target, bool close_dialogs = false);

while here:
- refactor PascalCase to snake_case in FunctionBase
- add start_request() and finish_request() methods to FunctionBase
- add has_*_access() methods to FunctionBase
- fix: FunctionBase::clear() method was not called if a request was assigned to a job
- add a WinixEzcHelper model
- allow to serialize a header if the header value is neither a string nor an integer
- refactor PascalCase to snake_case in functions: Emacs, Mkdir, Upload
2024-06-27 10:57:08 +02:00
6aa100f12c WIP: remove the old database abstraction layer
remove such classes:
- DbBase
- DbConn
- DbTextStream
- Db

while here:
- remove: TextStream, SLog, TexTextStream
2024-06-22 18:03:54 +02:00
5d457f3d4b (update to the new pikotools api): use a char32_t character as a main character when converting strings
Use a char32_t instead of a wchar_t type. This is needed on systems
where sizeof(wchar_t) is equal to 2.

This affects classes based on the pt::Stream such as Log and HtmlTextStream.
2024-06-01 00:33:15 +02:00
af0d34beb9 make depend 2024-05-31 00:32:56 +02:00
d122917f83 fix: correctly activate a user account 2024-05-27 18:22:47 +02:00
612501217c update uikit to 3.20.9 2024-05-12 16:16:56 +02:00
d86ab8f9c0 update uikit to 3.20.8 2024-04-29 23:59:30 +02:00
5a33563722 update htmx to 1.9.12 2024-04-28 19:45:16 +02:00
1c850b12ec add a q_encode(...) method to misc 2024-04-28 16:14:57 +02:00
140b4495df update jquery-file-upload to 10.32.0 2024-04-15 08:20:02 +02:00
8b0b25ed0a fix: correctly flush logs when there was a db migration error 2024-04-15 06:38:23 +02:00
eacdcfb980 update htmx to 3.19.4 2024-04-11 05:52:09 +02:00
132e7aa937 update htmx to 1.9.11 2024-03-20 03:15:05 +01:00
d9f3b69dde update uikit to 3.19.2 2024-03-20 03:07:17 +01:00
de753070a8 do not overwrite WINIX_INSTALL_DIR if already set 2024-03-11 16:59:45 +01:00
c1c6e6a588 install winix.so to a lib subdirectory 2024-03-11 16:12:13 +01:00
291147503f update uikit to 3.19.1 2024-03-08 22:34:42 +01:00
dbf7dfab82 improve the startup help messages 2024-03-08 22:01:33 +01:00
b753464608 add some operators to the Log class
add:
virtual Log & operator<<(long double);
virtual Log & operator<<(float);
virtual Log & operator<<(long long unsigned int);
virtual Log & operator<<(unsigned int);
virtual Log & operator<<(short unsigned int);
virtual Log & operator<<(long long int);
virtual Log & operator<<(short int);
virtual Log & operator<<(bool);
virtual Log & operator<<(unsigned char);
virtual Log & operator<<(const pt::Stream &);
2024-02-13 22:29:22 +01:00
544ef298aa update uikit to 3.18.3 2024-02-13 18:54:41 +01:00
065a2d182f update htmx to 1.9.10 2024-01-16 23:17:14 +01:00
f4470ccbe7 allow to not set the res value from a plugin function
Add PluginInfo::has_res (bool, default true). If set to false by a plugin function
then the PluginInfo::res value is not taken into account when calculating how many plugins
have returned true or false.
2024-01-04 15:57:29 +01:00
71ad4869ce fix: take into account hours when calculating a relative timezone dst 2023-12-27 16:25:54 +01:00
09dc6782c8 fix: remember the first/last weekday flags from a timezone DST
If a date is given in a relative form with first/last parameters,
we must remember them in order to select the appropriate day
of the week from the appropriate year.
2023-12-24 14:55:39 +01:00
0cebb2dc52 allow to use a first|last weekday name when defining a timezone dst
the format of a 'start' or 'end' field in a dst is:
MM-[first|last]:[monday|tuesday|wednesday|thursday|friday|saturday|sunday] HH:MM:SS
or just as beforehand: MM-DD HH:MM:SS

a sample timezone:
{
name = "tz_+01:00d"
id = "40"
offset_str = "+01:00"

dst = (

{
year = "2001"
has_dst = true
offset_str = "+01:00"
start  	   = "03-last-sunday 01:00"
end    	   = "10-last-sunday 01:00"
}

) # end of dst
}
2023-12-20 03:58:21 +01:00
0724ca8eb3 update htmx to 1.9.9 2023-12-02 10:45:44 +01:00
53991e54e1 update uikit to 3.17.11 2023-11-21 18:59:51 +01:00
df7ae1c6ea update uikit to 3.17.9 2023-11-16 23:10:51 +01:00
a54d70bed4 add a 422 Header status - Unprocessable Entity 2023-11-08 17:59:40 +01:00
bcde5c628a update uikit to 3.17.8 2023-11-07 03:56:45 +01:00
f241eb0a18 update htmx to 1.9.7 2023-11-06 04:43:20 +01:00
74c0c936f6 make depend 2023-11-02 05:15:30 +01:00
79babc916a add a Request::raw_post buffer
This buffer is used when a Function::NeedToCopyRawPost() method returned true.

while here:
- remove WINIX_POST_PARAMS and WINIX_RAW_POST_STRING plugin messages
2023-11-02 05:14:48 +01:00
a08bf9f804 update uikit to 3.17.5 2023-10-24 21:36:25 +02:00
8f20c8f67c update uikit to 3.17.1 2023-10-10 13:42:49 +02:00
f6c04b2d00 downgrade ckeditor to 4.22.1 as 4.23.0 requires a license key 2023-09-30 01:03:54 +02:00
0474c76a3d update ckeditor to 4.23.0 2023-09-30 00:27:59 +02:00
7a29a072be update jquery to 3.7.1 2023-09-30 00:13:28 +02:00
24c2ecb8dd update htmx to 1.9.6 2023-09-30 00:06:57 +02:00
7a1cea63bf update uikit to 3.17.0 2023-09-30 00:02:00 +02:00
e600aebaae add a RequestJobBase base class for requests jobs 2023-09-28 07:47:06 +02:00
5e45ad3417 fix(Http): send body content for PATCH, DELETE and OPTIONS methods if exists
while here:
- use CURLOPT_UPLOAD instead of CURLOPT_PUT as the latter is depracated
2023-09-26 23:02:34 +02:00
79e971cb76 parse the input body for the PUT and PATCH methods too 2023-09-15 10:04:25 +02:00
edee581ecf update uikit to 3.16.26 2023-08-31 02:01:47 +02:00
f7e077a7c5 add a TimeZone::PrintOffset(...) method 2023-08-29 15:02:37 +02:00
6a9504fd5f update htmx to 1.9.5 2023-08-26 00:16:06 +02:00
6d256e6512 fix: correctly set a Request::RunState::job_run flag to the background request
The flag should be set to the task.request and not to the cur->request.
The cur->request could have been already changed by the main thread.
2023-08-25 16:24:27 +02:00
cf383fa026 update easepick to 1.2.1 2023-08-21 13:31:02 +02:00