Commit Graph

230 Commits

Author SHA1 Message Date
Buckaroo Banzai
07f2c2888d
add screenshot / update readme / prepare for cdb release (#32)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2023-04-02 16:39:38 +03:00
Athozus
980323ee20
Upgrade actions/checkout from v2 to v3 2023-04-02 14:54:29 +02:00
Athozus
07003275a6
Add 5.0 to 5.2 Minetest versions in checks 2023-04-02 14:47:55 +02:00
Athozus
418cda1adc
Fix maillists issues (#49)
* Fix maillist deletion

* Fix duplicating of maillist while changing its name

* Permit sub-lists

* Fix messages with no mailing lists
2023-04-02 10:37:58 +02:00
1F616EMO~nya
2f996b59cd
zh_TW translation (#48) 2023-04-02 10:00:28 +02:00
Athozus
0556229429
Fix luacheck 2023-04-02 09:59:15 +02:00
Athozus
bfabed9b52
Fix read messages becoming unread while migrating (#47) 2023-04-01 19:49:40 +02:00
Athozus
56e86cd5e1
Fix message notifications (#46)
* Fix mail notification on login

* Fix HUD notification
2023-04-01 19:14:53 +02:00
Niklp
3e3ea414ba
german translation (#44) 2023-04-01 18:29:21 +02:00
Athozus
831829c9dc
Merge pull request #36 from Athozus/master
Fix deletion in inbox trivial issue (#35)
2023-04-01 10:36:51 +02:00
Athozus
6fb46be679
Fix deletion in inbox trivial issue (#35) 2023-04-01 10:38:00 +02:00
BuckarooBanzay
af03f9439b declare the translator in every module instead of a global 2023-03-31 18:12:48 +02:00
Athozus
4d4fd90eee
Minor fixes (#34)
* Minor fixes

* Security fix

* Minor button fix
2023-03-31 18:08:51 +02:00
Athozus
0ea3777b51
Implement drafts (#31)
* Add drafts

* Update translations

* Fix luacheck

* Fix luacheck (2)
2023-03-31 17:14:52 +02:00
Athozus
eae547b2f7
Add internationalization (and French translation) (#30)
* Add translation tags

* Add translating template.txt

* Add French translation

* Rework buttons size to fix UI due to big translations

* Add translations for selecting contacts
2023-03-29 19:23:16 +02:00
Athozus
b3e0c158f7
View sent messages (new database, add maillists) (#26)
* Add tabheader & sent formspec

* Add show_sent function and show sent messages

* Remove comment on selected_idxs test (show_sent)

* Add variable to keep the previous tab instead of going back to the first one

* Remove index variable verification on mark read/unread buttons since they are necessarily clicked on inbox view

* Resize messages table to be aligned with close button at the bottom

* Show date time (#27)

* Show date in message reading

* Fix wrong registered dates

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

* Rework header layout to add better space for date

---------

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

* Add insertion of messages into global storage mail.messages.json

* Receive player messages from global storage

* Add automatic generation of status for a new message (unread)

* Mark read/unread/delete a message

* Fix messages loading

* Show every message received/sent via specific functions

* Use global contacts functions and reconfigure add/remove functions

* Create mail lists formspec based on contacts

* Add deleting contact

* Add ability to create mail lists

* Fix inability to edit contact

* Rework on editing/deletion of contacts/maillists

* Add at symbol as prefix on maillists view

* Add ability to choose default status (to/cc/bcc)

Signed-off-by: Athozus <athozus@gmail.com>

* Add ability to add multiples players and choose their default status (to/cc/bcc)

* Add ability to use maillist in messages and receive messages from them

* Fix repetition of code causing a crash

* Avoid multiples occurences of the same messages due to player both in maillist and receivers

* Fix selected indexes for inbox/sent

Now separated, fixed show_message() func selection of id from table dcl/read btn

* Fix many issues related to maillists

Notably : edit, delete, selection, creation, registration of players

* Set up database version v3 and its migration from v2

+ Check versions to choose v1->v2 or v2->v3

* Fix mtt.lua

Due to old function getMessages(), replaced by getPlayerInboxMessages()

* Add 10 seconds security to mtt.lua

* Fix migrate.lua non-declared variable

* Send msg table with string keys in mtt

* Better log messages

* Add message check

* Fix mtt crash

* Better syntax in storage.lua

* Fix bcc forgotten in mail.send()

* Fix mtt issue

* Better compatibility for messages storage

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

* Replace mail.split by builtin func

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

* Use builtin split func

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

* Use builtin split func in storage.lua

* re-add mtt if

* luacheck on PR

* add check for an ancient issue with missing `to` field

* Fix luacheck on storage.lua

* Fix luacheck warnings in migrate.lua

* Fix luacheck warnings in gui.lua

* Fix luacheck (too long lines) in storage.lua

* Unused loop values in migrate.lua

* Whitespace line in gui.lua

* Whitespace line (init.lua)

* Whitespace line (api.lua)

* Significantly improve maillist behaviour

Replace maillist by its players when sending a message
List of players separated by ,
Avoid doublons when editing more than 2 times a maillist

* Fix luacheck

* Fix table insertions at first index when no needed

* Use funcs

* Do not add maillist as a new contact when sending a mail

* Fix removing elements from tables

* Check maillists not added in contacts

* storage rewrite wip

* storage format docs

* refactor ui components

* show_compose cleanup

* remove unused channel.lua

* error -> err

* status refactoring

* contacts refactoring

* maillist refactoring

* docs

* tests

* fix some issues

* re-enable migrations

* contributors

* prefix mail entries in the mod storage

* internalize old mail-paths to migration module

* add v1 and v2 player db examples and migration test

* Ui improvements & fixes

Move events code (if fields.x then) to events.lua (instead of inbox.lua), fix tab selection when going backward

* Show most recent messages at first (outbox)

* unified-inv fix

---------

Signed-off-by: Athozus <athozus@gmail.com>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2023-03-29 17:25:01 +02:00
Athozus
b0a5bc7e47
Repair forward button in read view #29
Due to an extra statement (message.subject)
2023-03-01 15:54:05 +02:00
Athozus
e190d19dc1
Show date time (#27)
* Show date in message reading

* Fix wrong registered dates

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

* Rework header layout to add better space for date

---------

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
Co-authored-by: AirSThib <75171564+AirSThib@users.noreply.github.com>
2023-02-26 02:54:34 +02:00
BuckarooBanzay
140608f1ca add canonical_name to luacheck config 2023-02-23 23:32:57 +01:00
BuckarooBanzay
f53221e742 fix smoke test 2023-02-23 23:31:01 +01:00
flux
f7a7ef361a
use canonical_name if it is available; report error when trying to send mail to non-existent players 2023-02-23 13:41:41 -08:00
fluxionary
43bf5b9a6f
don't forget which message was selected (#25) 2022-11-21 18:30:52 +01:00
fluxionary
8062173a5a
fix unified inventory integration (#23) 2022-09-23 21:26:36 -04:00
BuckarooBanzay
d1254a7c5b check messages for missing time field 2022-08-06 20:23:35 +02:00
BuckarooBanzay
bbd6e9123f update ci status badges 2022-08-02 15:06:42 +02:00
BuckarooBanzay
abe3c29e6d strip down to bare mail mod 2022-08-02 15:03:31 +02:00
BuckarooBanzay
3327be9bf4 consistent function syntax 2022-08-02 14:58:42 +02:00
BuckarooBanzay
5642f139df use mtt for integration tests 2022-08-02 14:56:32 +02:00
BuckarooBanzay
4b496a1e61 order received mails by date descending
fixes #21
2022-08-02 14:49:22 +02:00
Dennis Jenkins
d9771ded2a Fixes https://github.com/EdenLostMinetest/edenlost/issues/8 2022-01-20 12:48:25 +01:00
BuckarooBanzay
390c431b96 readonly received msg view
fixes #15
2022-01-07 13:19:05 +01:00
BuckarooBanzay
461f57cde8 fix global var typo 2021-03-21 10:45:38 +01:00
SX
ef2a4d02e0 Optional QoS support 2021-03-19 20:35:33 +01:00
SX
0aaea28a2f Optional QoS support 2021-03-19 20:35:33 +01:00
SX
dd429cbed4 Optional QoS support 2021-03-19 20:35:33 +01:00
Buckaroo Banzai
416d616a3c
Merge pull request #11 from DiamondPlane/DiamondPlane-patch-1
Colorize on join message
2021-03-16 20:12:37 +01:00
Toby1710
47df85a16a
Update onjoin.lua 2021-03-16 18:13:43 +02:00
Buckaroo Banzai
0f1b3c6260
check field arg for nil 2020-10-30 15:04:18 +01:00
Buckaroo Banzai
6537d205d4
add some nil-checks to edit form callback
fixes #9
2020-10-23 12:54:29 +02:00
BuckarooBanzay
51e80c6d9d satisfy luacheck 2020-10-13 19:20:18 +02:00
BuckarooBanzay
63521f5e85 check fields of forwarded mail
fixes https://github.com/pandorabox-io/pandorabox.io/issues/556
2020-10-13 19:15:58 +02:00
BuckarooBanzay
18592b0a35 more sanity checks and default values 2020-09-20 20:18:34 +02:00
BuckarooBanzay
be51cff470 field fix 2020-09-20 13:11:38 +02:00
BuckarooBanzay
64262c95a6 map legacy "dst" field to "to"
fixes https://github.com/pandorabox-io/pandorabox.io/issues/542
2020-09-19 13:22:33 +02:00
Buckaroo Banzai
35d29789ca
Merge pull request #6 from PeterNerlich/contacts
Contacts
2020-08-17 09:07:15 +02:00
Peter Nerlich
f35b62649b recipient selection: indicate what is TO and what is CC 2020-08-15 14:53:59 +02:00
Peter Nerlich
0d937711aa fix mail.ensure_new_format() (had lead to wrong TO field when using Reply All), remove player from CC when using Reply All 2020-08-15 14:44:25 +02:00
Peter Nerlich
93d1af947c always sort contacts alphabetically
- introduce pairsByKeys() (from http://www.lua.org/pil/19.3.html but adding current index and total length as iterator return values)
- use pairsByKeys() everywhere, where contacts are iterated over (for now only when displaying in gui.lua) so the order stays the same although the structure is a hashmap
- correctly update selected position when adding/removing contacts to TO/CC/BCC fields
- remove print statements in storage.lua
2020-08-15 13:52:26 +02:00
Peter Nerlich
39f47437b6 migration fixes 2020-08-12 12:23:46 +02:00
Peter Nerlich
106e94eee7 Merge branch 'cc-bcc' into contacts 2020-08-12 12:23:12 +02:00