Tomasz Sowa
e95dc834a3
uikit updated to 3.7.2
2021-08-07 21:23:47 +02:00
Tomasz Sowa
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
Tomasz Sowa
22134b6cc0
commented some method calls to html_filter
2021-07-26 03:54:02 +02:00
Tomasz Sowa
f861c0761e
make depend
2021-07-17 13:57:39 +02:00
Tomasz Sowa
1899d5ee17
BBCODEParser has been moved to pikotools library
2021-07-17 13:56:37 +02:00
Tomasz Sowa
17bd48ece3
HTMLFilter has been moved to pikotools library
2021-07-17 13:42:04 +02:00
Tomasz Sowa
c5c02d7f44
HtmlTextStream has now pt::Stream as a based class and uses pt::WTextStream as a buffer
2021-07-16 18:17:57 +02:00
Tomasz Sowa
ba6159964b
htmx updated to 1.5.0
2021-07-16 13:16:02 +02:00
Tomasz Sowa
b834971f5e
uikit updated to 3.7.1
2021-07-16 12:28:38 +02:00
Tomasz Sowa
9dc15d536c
Makefile: removed macros: EZC_GENERATOR_HAS_PT_STREAM and EZC_GENERATOR_HAS_WINIX_STREAM
2021-07-13 01:49:58 +02:00
Tomasz Sowa
2e45cb6ac9
updated to the new ezc api (Generator has three additional parameters now)
2021-07-13 01:46:07 +02:00
Tomasz Sowa
2dcfeaa688
fixed: in Item do_migration_to_3(...) admin meta was called admin_meta (not meta_admin)
2021-07-07 01:04:48 +02:00
Tomasz Sowa
9d65d931d0
moved some ezc functions from templates/item.cpp to Item and ItemContent
...
removed: templates/item.cpp
updated: some html templates which use [item] or [item_tab]
removed some old html templates: item_info.html and itam_tab_info.html
2021-07-06 21:52:29 +02:00
Tomasz Sowa
746aa41111
renamed: ItemContent::meta_admin -> ItemContent::admin_meta
2021-07-03 01:18:28 +02:00
Tomasz Sowa
175dd17416
added request.last_item ezc function
2021-07-03 01:14:53 +02:00
Tomasz Sowa
619936c12e
make depend
2021-07-01 23:35:08 +02:00
Tomasz Sowa
732144df01
updated to the new morm api - models methods which take 'morm::ModelWrapper ** model_wrapper' now take 'morm::Wrapper & wrapper'
2021-07-01 23:34:49 +02:00
Tomasz Sowa
df3f04a951
added to misc: timespec_to_stream_with_unit() for printing times either is seconds or miliseconds
2021-06-30 16:30:11 +02:00
Tomasz Sowa
0f78968579
updated ticket plugin to the new ezc api (child spaces were removed)
2021-06-29 23:42:57 +02:00
Tomasz Sowa
66173c7a31
removed old meta ezc functions from gallery plugin
2021-06-28 21:34:41 +02:00
Tomasz Sowa
3f934d9aec
removed old meta ezc functions from menu plugin
2021-06-28 21:34:22 +02:00
Tomasz Sowa
df0cc131fe
fixed in thread winix function: answers were not sorted correctly
2021-06-28 21:33:33 +02:00
Tomasz Sowa
ba60f9da8a
updated group plugin to the new pikotools api (child spaces were removed)
2021-06-28 20:58:39 +02:00
Tomasz Sowa
4569198b9d
fixed in index_head_adder.html: winix_function_is "emacs" should be in parentheses
2021-06-27 23:43:01 +02:00
Tomasz Sowa
ccbbb59af7
make depend
2021-06-27 23:34:06 +02:00
Tomasz Sowa
3a5af25eaf
updated some html templates
2021-06-27 23:33:10 +02:00
Tomasz Sowa
1d18b7fa12
- updated to the new pikotools api (child spaces were removed)
...
some plugins need to be fixed yet: ticket, gallery, group, menu
- added current user to default models as "user"
- renamed in User: super_user -> is_super_user, env -> admin_env, pass_hash_salted -> is_pass_hash_salted
- now Users class has a WinixModel as a base class
some plugin calls have to be fixed yet
- added UserWrapper model with a pointer to User class
- removed from ItemContent: methods for accessing 'meta' and 'admin_meta', now ezc can iterate through Space classes
- fixed in env winix function: if there is "changeuser" parameter then we should only switch the user (not save anything)
2021-06-27 23:31:50 +02:00
Tomasz Sowa
472490c239
make depend
2021-06-24 21:17:11 +02:00
Tomasz Sowa
b6340a30d2
updated to the new pikotools api (changes in Log)
2021-06-24 21:17:03 +02:00
Tomasz Sowa
bf1f0954b9
fixed: changed "%g" to "%f" when printing request/ezc times
...
SetNonZeroDigitsAfterComma() incorrectly terminated the string if the format was "%g" (in the case where it was used as %e)
2021-06-24 16:11:02 +02:00
Tomasz Sowa
2f1cdcf379
added printing info how much time winix spent in the ezc engine
...
added to Request:
timespec timespec_req_stop;
timespec timespec_req_diff;
timespec timespec_ezc_engine_start;
timespec timespec_ezc_engine_stop;
2021-06-24 15:33:44 +02:00
Tomasz Sowa
443c2023d9
make depend
2021-06-23 17:04:21 +02:00
Tomasz Sowa
2c5062ba22
UrlEncode() methods from core/misc.h are now thread safe
2021-06-23 17:04:07 +02:00
Tomasz Sowa
99df807095
Makefile: added new macros to CFLAGS
2021-06-21 20:22:15 +02:00
Tomasz Sowa
8ab07d11b1
fixed: cur.request->function->fun didn't have a model connector set when a request started
2021-06-21 16:51:35 +02:00
Tomasz Sowa
a1c0f6f7f0
added config option: add_header_cache_no_store_in_htmx_request
...
send "Cache-Control: no-store, max-age=0" http header if a request is made by htmx library (ajax)
if a webbrowser get a page from the cache then it will render just the last request without the whole html page (css, js, etc)
https://github.com/bigskysoftware/htmx/issues/497
2021-06-21 11:43:59 +02:00
Tomasz Sowa
672737a0d8
added a comment in ItemContent
2021-06-20 22:27:06 +02:00
Tomasz Sowa
ade96bf6d3
some methods from templates/item.cpp moved to ItemContent
2021-06-20 21:22:08 +02:00
Tomasz Sowa
801fc062ef
added FunctionBase::Clear() which is called at the end of a request
2021-06-20 20:47:59 +02:00
Tomasz Sowa
f35840e7de
some work in html templates: changed some functions from item_* to item.*
2021-06-20 18:12:43 +02:00
Tomasz Sowa
79eda7abb0
- added to FunctionBase: bool register_default_models (default true)
...
if true then winix will add default models for ezc templates such as "request", "item", etc.
- some methods from templates/item.cpp moved to Item
2021-06-20 18:04:50 +02:00
Tomasz Sowa
e7c7324058
ItemContent::user_name(EzcEnv & env) changed to ItemContent::user(morm::ModelWrapper ** model_wrapper) and we return a User class
...
ItemContent::group_name(EzcEnv & env) changed to ItemContent::group(morm::ModelWrapper ** model_wrapper) and we return a Group class
added ItemContent::display_user_name(EzcEnv & env)
some functions in templates/item.cpp moved to Item
2021-06-19 23:48:12 +02:00
Tomasz Sowa
d8c1a81bcb
removed config options: ezc_error_prefix and ezc_error_postfix
...
Ezc::PatternParser and Ezc::Generator use only pt::Log as a logger now
2021-06-19 20:33:35 +02:00
Tomasz Sowa
94f96c11cb
make depend
2021-06-18 19:18:46 +02:00
Tomasz Sowa
ec94dff7d7
some ezc functions from templates/item.cpp moved to Item and ItemContent
...
methods HasAccess() HasReadAccess() and similar moved from System to Item and ItemContent
2021-06-18 19:18:13 +02:00
Tomasz Sowa
ebd791a256
changed: now Request class is a model class - we have fields() method there to map fields for ezc templates (currently only dir_tab)
...
removed: [dir_tab] ezc statement
changed: Ls winix function loads its own dir_tab container (beforehand it was loaded by [dir_tab] ezc statement)
it's available by [child_dirs] name
2021-06-17 21:44:29 +02:00
Tomasz Sowa
4db421d6c3
make depend
2021-06-16 23:43:57 +02:00
Tomasz Sowa
ab89ffe096
fixed in Item: void Item::link(Ezc::FunInfo<HtmlTextStream> & env) now returns a correct directory for the item (before the current directory was returned)
...
added to Item: void Item::dir_link(Ezc::FunInfo<HtmlTextStream> & env)
added to WinixModel:
Dirs * get_dirs();
Mounts * get_mounts();
Users * get_users();
Groups * get_groups();
SLog * get_session_logger(); // not finished yet
2021-06-16 23:42:23 +02:00
Tomasz Sowa
53fe5c35b9
added .editorconfig file
2021-06-16 18:09:18 +02:00
Tomasz Sowa
f2f2c851df
make depend
2021-06-16 18:09:01 +02:00