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)
Tomasz Sowa2021-06-27 23:31:50 +02:00
b6340a30d2
updated to the new pikotools api (changes in Log)
Tomasz Sowa2021-06-24 21:17:03 +02:00
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)
Tomasz Sowa2021-06-24 16:11:02 +02:00
2f1cdcf379
added printing info how much time winix spent in the ezc engine
Tomasz Sowa2021-06-24 15:33:44 +02:00
2c5062ba22
UrlEncode() methods from core/misc.h are now thread safe
Tomasz Sowa2021-06-23 17:04:07 +02:00
99df807095
Makefile: added new macros to CFLAGS
Tomasz Sowa
2021-06-21 20:22:15 +02:00
8ab07d11b1
fixed: cur.request->function->fun didn't have a model connector set when a request started
Tomasz Sowa2021-06-21 16:51:35 +02:00
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/497Tomasz Sowa2021-06-21 11:43:59 +02:00
ade96bf6d3
some methods from templates/item.cpp moved to ItemContent
Tomasz Sowa2021-06-20 21:22:08 +02:00
801fc062ef
added FunctionBase::Clear() which is called at the end of a request
Tomasz Sowa2021-06-20 20:47:59 +02:00
f35840e7de
some work in html templates: changed some functions from item_* to item.*
Tomasz Sowa2021-06-20 18:12:43 +02:00
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
Tomasz Sowa2021-06-20 18:04:50 +02:00
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
Tomasz Sowa2021-06-19 23:48:12 +02:00
d8c1a81bcb
removed config options: ezc_error_prefix and ezc_error_postfix Ezc::PatternParser and Ezc::Generator use only pt::Log as a logger now
Tomasz Sowa2021-06-19 20:33:35 +02:00
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
Tomasz Sowa2021-06-18 19:18:13 +02:00
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
Tomasz Sowa2021-06-17 21:44:29 +02:00
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
Tomasz Sowa2021-06-16 23:42:23 +02:00
6dddc5e948
renamed: WinixModel -> WinixModelDeprecated (this class will be removed) added: WinixModel (models/winixmodel.h|cpp) - a class inheriting from morm::WinixModel, we have methods such as: get_config(), get_logger(), get_request() and this class will be a base class for our models added: WinixModelConnector (models/winixmodelconnector.h|cpp) - a class inheriting from morm::WinixModelConnector this connector we are using instead of morm::ModelConnector - there are pointers to winix objects there (config, request, log) added to Request: Ezc::Models models removed from TemplatesFunctions: Ezc::Models ezc_models; changed: ImgCrop winix functions is using its own item_tab vector now (not finished yet) added: Item::is(), Item::link(), ItemContent::print_content()
Tomasz Sowa2021-06-16 18:07:44 +02:00
6e4f8f5191
start adding support for Models objects from Ezc
Tomasz Sowa2021-05-31 18:59:20 +02:00
22de3322ae
- added to Request: is_htmx_request (bool) - true if the request is made by htmx library (ajax) - commented out using mount_page_arg_is "subject" and "info" from fun_cat.html and fun_run.html - they will be removed soon - some improvements in fun_reply.html, fun_showthreads.html and fun_thread.html (scrolling)
Tomasz Sowa2021-05-31 10:58:34 +02:00
e6fae4598c
updated to the new pikotools api: [ezc out] and [out] changed to [ezc frame] or just [frame] - when returning json streams changed "out" field to "frames" - renamed config parameter: allow_ezc_out_in_executable_items -> allow_ezc_frames_in_executable_items - added basic support for ajax requests in thread plugin
Tomasz Sowa2021-05-28 18:36:19 +02:00
ba331dea4a
added basic support for htmx (ajax) - if there is HX-Request header present we sent only a part of the whole html - we return only specific stream defined by [out ...] ezc statement - the name of the stream is passed in the 'frame' parameter (if not present then 'content' is assumed) - added ezc function: winix_is_htmx_request
Tomasz Sowa2021-05-27 19:36:04 +02:00
1292a56d1b
added htmx 1.4.0 loaded by default in html/index_head_adder.html
Tomasz Sowa2021-05-27 13:41:29 +02:00
fc24570062
fixed compilation: pikotools is in src subdirectory now
Tomek
2021-05-27 12:04:41 +02:00
aa71abd725
some workarounds in Thread plugin (don't show stale info in html forms)
Tomasz Sowa2021-05-27 10:29:26 +02:00
fb64f5e456
fixed: reply winix function (from thread plugin) didn't add a reply - system->Add() didn't set the model_connector to the item
Tomasz Sowa2021-05-26 19:55:50 +02:00
61fe6ea219
updated to the new api from ezc: changed semantic of [def] and Vars moved outside of Generator
Tomasz Sowa2021-05-23 10:14:08 +02:00
a94e09f0aa
added support for Model migrations now we have a table core.migration and each model (User, Group, Item, ItemContent and a new Migration) have its own row in the table with a version number
Tomasz Sowa2021-05-14 03:31:29 +02:00
4df10de6b7
methods eq() from finder can have now a table name
Tomasz Sowa2021-05-13 19:33:19 +02:00
ee354d2ded
renamed in Models: map_fields() to fields(), prepare_table() to table()
Tomasz Sowa2021-05-13 03:29:41 +02:00
e64bd1fba8
added more html tags to extraAllowedContent (ckeditor)
Tomasz Sowa2021-05-13 03:24:37 +02:00
031e673c51
fixed: passwd winix function: pass_encrypted was not cleared if we are not using rsa for encrypting passwords anymore
Tomasz Sowa2021-05-13 02:02:15 +02:00
4277f90bad
start working on User and Group classes - User and Group has been moved to 'models' directory - removed UserPass struct (passwords fields were put to User struct) not working yet, we need support for binary blobs in morm
Tomasz Sowa2021-04-30 01:34:48 +02:00
ccda2bc2fd
added option do_migration_to_winix_fullmorm do the config (only temporarily) if true then we make Item::do_migration() and exit
Tomasz Sowa2021-04-14 14:13:47 +02:00
4b71530f4c
added to Config: bool Config::HasValue(const wchar_t * name, const wchar_t * value)
Tomasz Sowa2021-04-12 18:55:04 +02:00
a8a9db53be
remove some Lock() and Unlock() from Plugin
Tomasz Sowa2021-04-11 12:09:42 +02:00
634cf07d44
using Winix::Lock object instead of Lock() method in ThreadManager
Tomasz Sowa2021-04-10 21:12:28 +02:00
0e0c006d5a
fixed: thread locking problem in Image: method Lock() was used instead of Winix::Lock object
Tomasz Sowa2021-04-10 19:46:50 +02:00
486067a4b2
clang thread sanitizer reported a data race in App::Start() synchro.was_stop_signal was read without locking
Tomasz Sowa2021-04-10 17:14:51 +02:00
35e10ed469
updated to the new Pikotools api (new Space struct)
Tomasz Sowa2021-04-09 17:50:58 +02:00
bbc0a67153
added support for new morm api - field(...) methods from Model take now FT structure instead of insertable/updatable/primary_key boolean flags - table name is set in a prepare_table() method now - added meta and admin_meta from ItemContent (morm has a field() method with PT::Space argument now)
Tomasz Sowa2021-03-11 18:48:18 +01:00
e8ba2a7bd1
fixed: incorrect status was set when editing a file now System::EditFile() returns boolean
Tomasz Sowa2021-03-11 18:42:26 +01:00
57aad8b454
removed from Item: update() and save() methods which take the 'url_was_changed' argument and added ItemModelData (based on morm::ModelData) class which has 'prepare_unique_url' field, an object of this class is passed to update(), insert() and save() methods
Tomasz Sowa2021-03-08 21:06:50 +01:00
ab5c44a2cb
removed some old methods for adding/editing Item from Db
Tomasz Sowa2021-02-25 00:17:07 +01:00
afbe82e9f4
changed the way how prefixes are added to urls instead at the end we adding a prefix before an extension, e.g: filename_(2).jpg
Tomasz Sowa2021-02-25 00:12:45 +01:00
51b1aed483
removed DbItemQuery and DbItemColumns which were used for database accessing for Item class
Tomasz Sowa2021-02-24 22:54:36 +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
Tomasz Sowa2021-02-24 01:19:47 +01:00
3191369ece
added 'using PT::FileLog::init' to FileLog to suppress clang warning: warning: 'Winix::FileLog::init' hides overloaded virtual function [-Woverloaded-virtual]
Tomasz Sowa2021-02-17 18:06:00 +01:00
a4de11d69c
fixed: Image did not use 'savelog' when creating logs
Tomasz Sowa2021-02-17 16:17:36 +01:00
4832c7db4b
fixed: clang address sanitizer reports that there is an use after free bug at the end when winix shuts down:
Tomasz Sowa2021-02-17 15:58:05 +01:00
be83d62f96
changed html in index templates: [include "index_head_functions_add.html"] -> [include "index_head_adder.html"]
Tomasz Sowa2021-02-16 20:10:29 +01:00
3fd2ef1da4
renamed: html/index_head_functions_add.html -> html/index_head_adder.html
Tomasz Sowa2021-02-16 20:01:38 +01:00
d861384889
Merge pull request 'uikit' (#3) from uikit into master
Tomasz Sowa2021-02-16 19:52:36 +01:00
cfd8e88e57
changed markup in fun_thread.html, removed item_options.html (was not used by winix)
Tomasz Sowa2021-02-16 19:44:57 +01:00
8169cb5a7e
added uikit markup for uname winix function
Tomasz Sowa2021-02-16 19:28:42 +01:00
8c85cd7346
added uikit markup for stat winix function
Tomasz Sowa2021-02-16 19:25:36 +01:00
4e202833b2
added uikit markup for rmuser winix function
Tomasz Sowa2021-02-16 19:21:53 +01:00
4a163bd170
added uikit markup for pw winix function
Tomasz Sowa2021-02-16 19:12:15 +01:00
85fbc1b882
added uikit markup for man winix function
Tomasz Sowa2021-02-16 19:03:01 +01:00