Tomasz Sowa
9e222f5b80
do not print white characters in log for the first migration
2022-05-28 06:10:39 +02:00
Tomasz Sowa
3b5658ff8f
fix: correctly sort post variables when they have the same name
...
In PostParser we add some prefix with a number if the name of a variable is the same,
we should use zero padding for the number to be correctly sorted.
2022-05-28 06:07:38 +02:00
Tomasz Sowa
5e89c4004a
make depend
2022-05-26 00:35:24 +02:00
Tomasz Sowa
9602c28d96
allow lang ezc function get more than one parameter
2022-05-11 14:22:46 +02:00
Tomasz Sowa
0fd680b496
update uikit to 3.14.1
2022-05-08 17:00:26 +02:00
Tomasz Sowa
37d3a44b24
update uikit to 3.14.0
2022-04-30 20:23:37 +02:00
Tomasz Sowa
da2dec447b
allow to specify how many times we can try to connect to the database at startup
...
add config options:
db_startup_connection_max_attempts - default 0 (infinite)
db_startup_connection_attempt_delay - delay in seconds between attempts (default 5)
BREAKING CHANGE: WINIX_PLUGIN_INIT plugin message requires to set result status,
you have to set the result status to true (env.res) if your
plugin was initialized correctly, otherwise winix will not start
2022-04-29 06:17:16 +02:00
Tomasz Sowa
c6c50a5d23
allow to use host database connection parameter
...
Add config option:
db_host (default empty) - name of host to connect to
2022-04-28 06:12:44 +02:00
Tomasz Sowa
98c1e8daad
allow to not change fast cgi socket permissions
...
New config options:
fcgi_set_socket_chmod (bool) - default true
fcgi_set_socket_owner (bool) - default true
2022-04-27 23:31:50 +02:00
Tomasz Sowa
f99191aa6f
make depend
2022-04-26 23:46:57 +02:00
Tomasz Sowa
df04075f1c
add methods to Request for adding and removing parameters
...
Added methods:
void AddParam(const std::wstring & param_name, const std::wstring & param_value);
void AddParam(const wchar_t * param_name, const wchar_t * param_value);
void RemoveParam(const wchar_t * param_name);
void RemoveParam(const std::wstring & param_name);
This is only temporarily, we will be using the pt::Space structure in the future.
2022-04-26 23:41:56 +02:00
Tomasz Sowa
3d2a635e34
fix: use TextStreamBase::to_str() instead of to_string()
2022-04-25 22:05:34 +02:00
Tomasz Sowa
aad5db9a6a
let Functions::Add() returns info whether the functions/controller has been added
2022-04-25 16:35:14 +02:00
Tomasz Sowa
43ebbdaa33
add WINIX_PLUGIN_QUIT and WINIX_QUIT plugins messages
...
While here:
- rename WINIX_CLOSE to WINIX_PREPARE_TO_CLOSE
2022-04-25 16:34:26 +02:00
Tomasz Sowa
92c7f90b95
fix: correctly propagate a migration status when the migration failed
2022-04-25 15:19:02 +02:00
Tomasz Sowa
aae93d018b
allow to use db_hostaddr, db_port or db_conn_string config parameters to connect to PostgreSQL
2022-04-20 18:37:52 +02:00
Tomasz Sowa
7a115a3970
fix(Log): treat pt::Log::Manipulators as enum and not as int
2022-04-16 21:52:53 +02:00
Tomasz Sowa
64e5114947
allow to read environment variables as config parameters
...
Environment variables must be prefixed with winix_ to be loaded by winix.
The winix_ prefix is then removed and the key value converted to lowercase.
Sample:
evn WINIX_MY_OPTION=TEST123test winix -c config_file
This will add my_option to the config with value TEST123test.
Environment variables are read last so they will overwrite the values
from the configuration files.
2022-04-16 21:50:23 +02:00
Tomasz Sowa
4f8b5e649a
recognize startup parameters
...
Usage: winix [options]
-c : a path to the config file
--config : a path to the config file
-h : print usage information
--help : print usage information
-? : print usage information
While here:
- let it be possible to parse multiple configs,
- fix: some error messages were not printed at startup.
2022-04-16 18:38:30 +02:00
Tomasz Sowa
e0d9989d74
fix(Item): id should be of type serial
2022-04-11 23:27:49 +02:00
Tomasz Sowa
0fe680ef4a
fix: migration to version 2 in User model
2022-04-11 23:19:30 +02:00
Tomasz Sowa
e182c0a21b
fix: create core schema before making a first select request
...
Migration uses Finder to get the current table version.
2022-04-11 23:11:00 +02:00
Tomasz Sowa
c8edd241d5
create core schema as a first migration
2022-04-11 20:57:49 +02:00
Tomasz Sowa
a544ccd1a7
fix: User model initial column name: aenv
2022-04-11 20:44:58 +02:00
Tomasz Sowa
7df2205b40
update flatpickr to 4.6.11
2022-04-05 17:37:24 +02:00
Tomasz Sowa
265e843d02
update uikit to 3.13.7
2022-04-05 16:59:57 +02:00
Tomasz Sowa
22a8a97389
update htmx to 1.7.0
2022-04-05 16:53:46 +02:00
Tomasz Sowa
bb74f2a423
update uikit to 3.11.1
2022-02-08 14:13:33 +01:00
Tomasz Sowa
2033168db2
Merge branch 'cli' into ajax
2022-02-08 14:01:50 +01:00
Tomasz Sowa
e377f144fd
fix: do not send headers again after binary content
2022-02-04 18:46:46 +01:00
Tomasz Sowa
234ebf8ce8
change HtmlTextStream iterators type to pt::WTextStream::iterator
2022-02-03 20:57:38 +01:00
Tomasz Sowa
09cf3c9fa9
add some comments in AcceptBaseParser
2022-02-02 18:34:56 +01:00
Tomasz Sowa
df32899581
move AcceptEncodingParser to utils
2022-02-02 18:34:22 +01:00
Tomasz Sowa
33e8df11c5
parse Accept-Language header to Request::accept_languages table
2022-02-02 18:20:32 +01:00
Tomasz Sowa
75daf37bbd
improve AcceptBaseParser parsing algorithm
...
remove AcceptParser - not needed now, AcceptBaseParser can prepare a table now
2022-02-02 17:58:27 +01:00
Tomasz Sowa
d0d2cfb22c
move AcceptBaseParser to utils directory
2022-02-02 17:11:46 +01:00
Tomasz Sowa
f7b5ac0dc8
change the way how winix answer is created
...
Now we can return ezc content and models serialized in the same json structure,
Xml and Csv are not implemented yet.
Ezc frames are returned in 'ezc_frames' field.
Main ezc stream is returned in 'main_stream' field.
Frame url parameter can take more than one frame (names separated by commas).
Honor Accept http header (AcceptParser).
Samples:
--------
http://domain.tld/dir/controller
returns html answer from the main ezc stream
http://domain.tld/dir/controller/container:raw
returns html answer from the main ezc stream (the same as above)
http://domain.tld/dir/controller/frame:abc
returns "abc" frame as html
http://domain.tld/dir/controller/container:json
returns all serialized models to json and no ezc streams
http://domain.tld/dir/controller/container:xml
returns all serialized models to xml and no ezc streams (not implemented yet)
http://domain.tld/dir/controller/container:json/frame:abc,xyz
returns all serialized models to json and two frames in 'ezc_frames' object
http://domain.tld/dir/controller/container:json/all_frames
returns all serialized models to json and all frames in 'ezc_frames' object
http://domain.tld/dir/controller/container:json/main_stream
returns all serialized models and the main ezc stream in 'main_stream' field
http://domain.tld/dir/controller/container:json/main_stream/all_frames
returns all serialized models to json, all frames and the main stream
2022-02-01 18:44:23 +01:00
Tomasz Sowa
227dd923d6
fix: correctly escape ezc stream to json/xml/csv
2022-01-28 15:54:11 +01:00
Tomasz Sowa
f6cb9a8aed
set correct timetable dst for 'Sarajevo, Skopje, Warsaw, Zagreb'
...
year: 2022 and 2023
2022-01-26 22:34:13 +01:00
Tomasz Sowa
b615dc7e6e
add cmp ezc function
2022-01-22 04:35:42 +01:00
Tomasz Sowa
944560dd2b
update uikit to 3.10.1
2022-01-19 15:47:11 +01:00
Tomasz Sowa
1d6d29e24d
add winixcli/src/winix to .gitignore
2022-01-18 19:46:12 +01:00
Tomasz Sowa
ff8e9e6b32
start working on winixcli
...
winixcli can now read a PGModeler file
and is able to generate a template through ezc
winixcli parameters:
--input-mode pgmodeler (only one parameter at the moment)
--input-file file (pgmodeler file)
--templates-dir dir_path (a path to templates directory)
--template file (template file)
2022-01-18 19:40:57 +01:00
Tomasz Sowa
557555c4b3
htmx updated to 1.6.1
2021-12-08 15:19:35 +01:00
Tomasz Sowa
f8e1037476
uikit updated to 3.9.4
2021-11-26 21:51:01 +01:00
Tomasz Sowa
35cb54324f
added a new item content type: markdown
...
- emacs editor has an option to select markdown, now it has two planes: one for content editing and the other to show preview
- CodeMirror editor updated to 5.64.0
- to convert markdown to html we use showdown https://github.com/showdownjs/showdown (conversion is done on the client side)
2021-11-26 21:49:21 +01:00
Tomasz Sowa
119497bb01
added winix_frame_is ezc winix function
2021-10-24 22:27:52 +02:00
Tomasz Sowa
dfd6475a81
uikit updated to 3.7.6
2021-10-24 22:27:35 +02:00
Tomasz Sowa
d6d5236a03
added fil_json_escape filter
2021-10-21 13:42:41 +02:00
Tomasz Sowa
a327a26bd5
added winix_uikit_version parameter to index_head_adder.html
2021-10-13 23:48:30 +02:00