Commit Graph

230 Commits

Author SHA1 Message Date
Athozus
8a992b7a29
Bump version to 1.5.0-dev in about.lua 2024-09-01 16:41:39 +02:00
Maksym H.
1bffd98132 Localize get_translator call 2024-09-01 16:36:55 +02:00
Athozus
59667bd35c
Add 5.9.0 to workflows 2024-08-12 00:33:36 +02:00
Athozus
09b233b039
Update credits and bump to version 1.4.1
Some checks are pending
luacheck / luacheck (push) Waiting to run
test / build (5.8.0) (push) Waiting to run
test / build (latest) (push) Waiting to run
test / build (5.0.1) (push) Waiting to run
test / build (5.1.1) (push) Waiting to run
test / build (5.2.0) (push) Waiting to run
test / build (5.3.0) (push) Waiting to run
test / build (5.4.1) (push) Waiting to run
test / build (5.5.1) (push) Waiting to run
test / build (5.6.1) (push) Waiting to run
test / build (5.7.0) (push) Waiting to run
2024-08-09 00:35:42 +02:00
Athozus
b9982f11e6
Add support for a get_keys() equivalent for lower than 5.7 Minetest versions (#153)
* Add support for a get_keys() equivalent for lower than 5.7 Minetest versions

* Do not call the function itself to check if it exists

Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>

* Do not call the function itself to check if it exists (2)

Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>

* Fix an occurrence of get_keys() in is_uuid_existing()

---------

Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2024-08-09 00:31:28 +02:00
Athozus
4f15c2fe65
Update version to 1.4.1-dev in about.lua 2024-08-06 02:26:10 +02:00
1F616EMO
4cd06c5f5f Optimize performance of the inbox
Moves the `mail.get_setting(name, "mute_list")` call out of the message loop. Previously, this is called repeated, causing disastrous lag when using mail with beerchat.
2024-08-06 02:21:20 +02:00
Athozus
036d37695a
Update files to 1.4 (#149)
* Update README and screenshots

* Update version number in about.lua
2024-08-05 17:23:01 +02:00
Athozus
5cfec3a92a
Update api.md docs (#148)
* Update player entry format in API documentation

* Add spam flag
2024-08-05 17:01:20 +02:00
Athozus
a347a79e6a
Update actions workflows 2024-08-05 16:59:51 +02:00
Niklp
48b632fba2
Update German translations (#147) 2024-04-20 23:35:32 +02:00
Athozus
2938b74039
Update translation files 2024-04-20 18:23:52 +02:00
Athozus
ed6f36ab6d Move date and time settings to a sub-group of Other 2024-04-20 17:41:59 +02:00
Athozus
1dab26f0bf Add timezone offset setting
Clarify timezone offset tooltip

Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>
2024-04-20 17:41:59 +02:00
Athozus
9a52c1c181 Add support for number type settings
Fix reset issue
2024-04-20 17:41:59 +02:00
Athozus
19be2d46a2 Move sorting fields settings to new Fields settings group 2024-04-20 17:30:42 +02:00
Athozus
dc9c4f86b7 Add support for tree-hierarchized settings groups
Compute once the ordered settings groups list
2024-04-20 17:30:42 +02:00
Athozus
1f208c6a21 Add table.insert_all() to luacheck 2024-04-20 17:30:42 +02:00
Athozus
30b9a0fba4
Copy search icon into textures
In order to keep compatibility to 5.0.0, as the search icon was introduced for main menu in 5.3.0
2024-04-15 17:46:21 +02:00
Athozus
dfaa34c8c5
Ignore mtt tests and screenshot at release 2024-04-10 18:33:30 +02:00
Athozus
a3af9ee389
Repair UUIDs duplicates (storage 3.1 upgrade) (#143)
* Check if candidate uuid does not already exist before returning it

* Use get_keys() to iterate through entries

Else it can't be ran with mtt

* Do not give an initial value to candidate_uuid

Triggers luacheck because the blank value is unused. Just give it nil value.

* Add repairing storage script in migrate.lua

* Remove goto statements

Due to uncompatibility with LuaJIT

* Optimize functions

* Merge duplicated functions between migrate.lua and util/uuid.lua

* Mark repair has been done by incremeting version to 3.1

* Remove checking all UUIDs for generating new one

The risk is ridiculous compared to the performance lost, even for several millions of messages.

* Revert util/uuid.lua changes to master

* Rename repair_box() to fix_duplicate_uuids()
2024-04-09 21:54:39 +02:00
Athozus
fc7b438de3
Harmonize options widgets 2024-04-06 18:10:41 +02:00
Athozus
c6d8543c85
Move contributor_grouping to selected_idxs 2024-04-06 12:00:30 +02:00
Athozus
3670fe79cc
Add 5.8.0 to workflows 2024-04-06 11:22:26 +02:00
Athozus
f57473abd0
Adjusted options UI (#141)
* Optimize settings layout

* Optimize about layout

* Use codes for contributors list instead of overflowing texts

* Integrate version id in its translation string

Using @1 within the string

Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>

* Use contributions labels instead of code

* Fix formspec syntax error

Missing ]

* Implement grouping by contribution type (#142)

* Implement grouping by contribution type

* minor

---------

Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>
2024-03-30 23:21:18 +01:00
Athozus
e516fe04c4
Use main menu search icon
Instead of a subject to confusion Q
2024-03-24 17:42:51 +01:00
Athozus
1dde4097f9
Fix empty mailing lists 2024-03-24 17:38:54 +01:00
Athozus
ccf07b50e2
Simplify marking mail property with a local function in storage.lua 2024-03-22 23:04:31 +01:00
Athozus
1c5e4b6cd6
Harmonize function names with snake case 2024-03-22 22:43:26 +01:00
Athozus
6f7ccc77bd
Add patch files to gitignore 2024-03-22 22:06:31 +01:00
Athozus
163467379f
Fix nil player list concatenating 2024-03-22 22:05:48 +01:00
y5nw
2694ffa2dc
Cleanly handle player mailling lists (#140)
* Fix server hanging for certain recipient names

* Disallow recursive maillist inclusion

* Disallow sending to empty recipient

* Complement testcases
2024-03-22 21:59:04 +01:00
y5nw
851fa9f12a
Update zh translations (#139)
* Update zh translations

* zh_TW: 命令 -> 指令
2024-02-18 19:06:18 +01:00
Athozus
1eb3b7668d
Correct dev version 2024-02-03 16:13:54 +01:00
Athozus
ea7773730e
Minor improvements and fixes to message view layout 2024-02-03 01:07:25 +01:00
Athozus
0e06718a51
Update translations 2024-02-03 01:03:00 +01:00
Athozus
ae238ba143
Add mod_translation_updater.py to gitignore 2024-02-03 00:58:32 +01:00
y5nw
570cf788ec
Implement non-player recipients (#131)
* Implement non-player recipients

* Add API callback specifically for players receiving mail

* Exclude sender from (mailing list) recipients

* Complement test

* Fixup typos in complemented test

* Expand aliases at toplevel if the current expansion is at toplevel

This should allow players to send mail to their own aliases

* Also test on_(player_)receive callbacks

* Fix oversight in test case
2024-02-01 20:46:26 +01:00
Singularis
fcca0b7511
fix for bugs #135 and #136 (#137)
* fix for bugs #135 and #136

* Fix indentation in ui/compose.lua

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

---------

Co-authored-by: Athozus <athozus@gmail.com>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2024-02-01 14:33:33 +01:00
Niklp
c5fd218415 Fix luacheck
Fix luacheck warnings in spam.lua

Fix global variable initialization (was needed only locally)

Add beerchat to luacheck
2024-02-01 14:23:03 +01:00
Athozus
103c4ae441 Add mute list setting
Add sharing between mute_list and beerchat

Add check for mute list
2024-02-01 14:23:03 +01:00
Athozus
e45d56439f Add list setting type 2024-02-01 14:23:03 +01:00
Athozus
cd9e9ec8e1 Add (Un)mark spam buttons
Resize boxes view, and modify the layout of message view
2024-02-01 14:23:03 +01:00
Athozus
48fc8470f5 Add storage function to (un)mark message as spams 2024-02-01 14:23:03 +01:00
Athozus
bfe0ef2711 Initial implementation of spam check
It checks during the sends if there are spam warnings then give to the message an attribute spam=true (only for receivers)
2024-02-01 14:23:03 +01:00
Athozus
75510d2551 Add checks utils 2024-02-01 14:23:03 +01:00
Athozus
83842a8861 Add beerchat in optional depends 2024-02-01 14:23:03 +01:00
Athozus
aab7acf2b5 Add warning color
Based on Minetest main menu orange color
2024-02-01 14:23:03 +01:00
Athozus
46012a2b28
Add support for shared settings (#127)
* Add support for shared settings

* Optimize stored setting value getting

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

* Avoid false for default transfer value

In set_setting, to eventually transfer to another mod. Suggested by S-S-X in #127

---------

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2024-02-01 10:18:55 +01:00
BuckarooBanzay
721d882c26 evict cached storage entries periodically
fixes synchronization issues if other applications write directly to the mail-entries in the mod-storage
2024-01-13 18:18:16 +01:00