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
af0d34beb9
make depend
2024-05-31 00:32:56 +02:00
74c0c936f6
make depend
2023-11-02 05:15:30 +01:00
7476048da6
make depend
2023-04-12 17:21:42 +02:00
2e455f97ac
add support for serializing to xml
2023-02-27 00:34:29 +01:00
1015baf111
make depend
2022-10-17 08:16:45 +02:00
a81839fd9c
make depend
2022-09-23 18:34:08 +02:00
778ed01a55
make depend
2022-08-30 01:52:20 +02:00
c730b85629
make depend
2022-08-22 16:04:10 +02:00
5f77ce619e
make depend
2022-08-20 00:31:30 +02:00
33f6a9a213
make depend
2022-07-30 03:33:45 +02:00
979ef907fe
allow a request to be processed in a job
...
Now we allow a request to be passed into a job queue,
and after the job finishes the request is passed into
a controller again. In order to achieve this we have
a requests queue in System, when we put a request
to the job this Request structure is preserved in the
queue and for a new request a new Request is added to
the queue.
while here:
- remove App::Lock()/Unlock(), use scoped locking
- fix: Plugin now has a Call method which takes ModelConnector
and a logger (used in multithreaded environment)
- BaseThread has a main_model_connector pointer
to the main (from the main thread) model connector
- the FastCGI structure fcgi_request moved from App to Request
- some methods for handling requests moved from App to Request
- small refactoring in main.cpp
- add Http class (a http client)
2022-07-25 14:21:21 +02:00
b2d92b85a0
make depend
2022-07-11 17:52:05 +02:00
179daf743e
make depend
2022-07-03 14:25:53 +02:00
26226de865
global winixd/Makefile uses now 'find' for looking for *.cpp files
...
and we don't need Makefiles in subdirectories anymore (except plugins)
2022-06-26 06:22:27 +02:00
5e89c4004a
make depend
2022-05-26 00:35:24 +02:00
f99191aa6f
make depend
2022-04-26 23:46:57 +02:00
9c5c74ba84
added: setting a correct mime type for static files - using magic library
...
added: std::wstring file_mime_type to ItemContent - a mime type for static file
added: Header (core/header.h) - there will be header names defined, at the moment only content_type
added: FuncionsBase::Finish() - it is called at the end when the winix finishes
2021-09-22 00:23:25 +02:00
b424988d1b
updated to the new pikotools api (api2021): HTMLFilter renamed to HTMLParser
...
added to config: int html_filter_white_char_mode;
how white characters between html tags are treated
0 - WHITE_MODE_ORIGIN - they are copied from input to output
1 - WHITE_MODE_SINGLE_LINE - new line characters are removed
2 - WHITE_MODE_TREE - try to create a tree (some kind of pretty printing)
default: 2
2021-08-07 02:16:48 +02:00
f861c0761e
make depend
2021-07-17 13:57:39 +02:00
619936c12e
make depend
2021-07-01 23:35:08 +02:00
ccbbb59af7
make depend
2021-06-27 23:34:06 +02:00
472490c239
make depend
2021-06-24 21:17:11 +02:00
443c2023d9
make depend
2021-06-23 17:04:21 +02:00
94f96c11cb
make depend
2021-06-18 19:18:46 +02:00
f2f2c851df
make depend
2021-06-16 18:09:01 +02:00
81df52f6ca
make depend
2021-05-31 18:59:49 +02:00
801c9a2cda
make depend
2021-05-11 22:22:10 +02:00
bb513b0187
make depend
2021-04-30 01:35:40 +02:00
8d87d9a875
changed in Makefile: we have now one lib pikotools/pikotools.a
...
make depend
2021-03-31 20:25:09 +02:00
23f1c112a4
make depend
2021-03-10 16:40:22 +01:00
3e84eb9dbf
Makefile deps
2021-02-25 00:15:03 +01:00
32e93a04c5
Item class has been moved to a new directory 'models', a new class has been added: ItemContent
...
and same fields from Item were moved to ItemContent
Item
- id
- parent_id
- type (file, dir, symlink)
- url
- subject
- template (html template)
- sort_index
- content_id
ItemContent
- id
- ref -> references (renamed)
- user_id
- modification_user_id
- group_id
- privileges
- date_creation
- date_modification
- guest_name
- link_to
- link_redirect
- file_path
- file_fs
- file_type
- file_size
- has_thumb -> file_has_thumb (renamed)
- hash -> file_hash (renamed)
- hash_type -> file_hash_type (renamed)
- content -> content_raw (renamed)
- content_type -> content_raw_type (renamed)
- content_parsed
- content_parsed_type
- meta
- ameta -> meta_admin (renamed)
- modify_index (removed)
WIP: #4
2021-02-24 01:19:47 +01:00
76160a5ba6
Makefile deps
...
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1219 e52654a7-88a9-db11-a3e9-0013d4bc506e
2019-09-25 16:25:44 +00:00
be81307faa
Makefiles deps
...
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1199 e52654a7-88a9-db11-a3e9-0013d4bc506e
2019-08-20 12:24:22 +00:00
ab005118ba
added: a new plugin: seo
...
new winix function: "seo", it allowes to edit subject, description and keywords for a page
description and keywords are stored in meta
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1179 e52654a7-88a9-db11-a3e9-0013d4bc506e
2019-03-14 13:33:40 +00:00