Commit graph

304 commits

Author SHA1 Message Date
Delyan Angelov
bd408289d5
vdoc: enable example lines that have explicit imports too, fixup the remaining vlib examples, so v doc -v -unsafe-run-examples -f none vlib/ could be added to the CI 2025-08-13 21:02:14 +03:00
yuyi
e97036a25b
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547) 2024-10-17 11:04:23 +03:00
Alexander Medvednikov
c004d0c899 examples: migrate vweb examples to veb 2024-09-17 09:15:07 +03:00
yuyi
cc7665ff32
tests: add a test for short enum syntax across modules (related #12183) (#22210) 2024-09-13 17:07:01 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Delyan Angelov
fbdc992b30
net.http, veb, vweb, x.vweb: add mime type text/x-vlang, for .v and .vsh file extensions (#21851) 2024-07-12 14:23:50 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
poggingfish
1a685c30aa
vweb, veb, x.vweb: add m3u8 MIME type application/vnd.apple.mpegurl for multimedia playlists (#21688) 2024-06-16 22:21:43 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00
Turiiya
8aa9314a99
vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Alexander Medvednikov
fa7af809fc veb: a new module veb.auth for authentication logic (tokens, hashed passwords) 2024-02-18 23:23:57 +03:00
Casper Küthe
8714233f79
vweb, x.vweb: update error checking for new error io.Eof (#20656) 2024-01-26 02:47:25 +02:00
Delyan Angelov
6cfca66e73
vweb: add an optional Context.before_accept_loop/0 method, to make testing easier and more robust (#20538) 2024-01-15 11:42:41 +02:00
Delyan Angelov
fc9b743c27
vweb: partial revert of fd19458, so that vweb.run listens again on both ipv4 and ipv6, by default, not just on ipv6 ::1 2024-01-14 23:59:45 +02:00
Carlos Esquerdo Bernat
fd19458ca7
vweb: unify listen addres from tcp and print (#20448) 2024-01-14 11:13:37 +02:00
Juan de Bruin
d3e62b4f24
vweb: update docstrings for response functions (#20422) 2024-01-07 05:13:18 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Delyan Angelov
423b34f03e
vweb: support a startup_message field too in app.run_at 2023-12-11 16:55:22 +02:00
balloondude2
d9e9c71b29
vweb: add an optional parameter to the .redirect/2 method, to be able to set the http code for the redirects (#20082) 2023-12-04 13:33:31 +02:00
Alexander Medvednikov
51bb2768ca vweb: .html('custom_template.html') 2023-11-26 03:01:48 +03:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Joe C
1e3d38255f
parser: deprecate old attribute syntax & update remaining (missed) attributes (#19879) 2023-11-15 13:07:59 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
koplenov
b5673c6172
vweb: add the mime type for .toml files (#19875) 2023-11-14 23:02:38 +02:00
Alexander Medvednikov
e7cad4f55d net,vweb: reduce allocations by ~80% 2023-11-11 01:10:34 +03:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Delyan Angelov
90f6010ef7
ci,vweb: fix v check-md vlib/vweb/ 2023-10-20 04:39:36 +03:00
Delyan Angelov
2766c8b4be
vweb: cleanup run_at 2023-10-20 04:07:15 +03:00
Delyan Angelov
e0e0987117
vweb: add mime type support for static .md files 2023-10-12 13:41:56 +03:00
emacser
13c9006667
vweb: fix typo in vweb.v (#19513) 2023-10-05 14:22:17 +03:00
Alexander Medvednikov
a1f5552529 checker: warn -> error for uninitialized ref fields 2023-09-24 15:10:39 +03:00
Brama Udi
8a1077a689
vweb: add a user_agent utility method to the vweb context (#19204) 2023-08-22 21:40:07 +03:00
Jaume
c9e6c672fa
vweb: avoid the controllers having to be defined in specific order (#19182) 2023-08-19 13:18:00 +03:00
Irving M
8e8bd857b0
vweb: add application/wasm to mime_types, for .wasm files (#19142) 2023-08-15 12:50:07 +03:00
Alexander Medvednikov
428fd7f57f all: do not allow uninitialized function pointers 2023-08-03 21:06:36 +03:00
Casper Kuethe
21d9730cde
context, vweb: add ability to set and get values on vweb.Context (#18564) 2023-06-27 01:25:45 +03:00
Lenni0451
9764342dbe
vweb: add support for host specific static files (#18322) 2023-06-02 10:55:59 +03:00
Casper Kuethe
4174048f96
vweb: add host option to controller (#18303) 2023-05-30 14:22:23 +02:00
Lenni0451
2904c399b5
vweb: host attribute (#18288) 2023-05-29 02:11:10 +02:00
sandbankdisperser
f833188234
vweb: return 404 on file not found (#18219) 2023-05-21 15:23:43 +02:00
yuyi
492a93ecd9
vweb: make controllers of struct Controller public (#18153) 2023-05-10 18:31:43 +03:00
Casper Kuethe
5f870f41b5
vweb: implement database pool (#18010) 2023-04-23 03:37:15 +03:00
Casper Kuethe
838083e610
vweb: add an overridable .not_found() method, for making a custom 404 page + tests fixes (#17936) 2023-04-12 00:50:03 +03:00
Casper Kuethe
930bdd935b
vweb: fix static files copying (#17891) 2023-04-06 03:10:23 +02:00
Casper Kuethe
b2735bf937
vweb: add controllers (#17840) 2023-04-02 15:46:43 +02:00