Commit graph

28 commits

Author SHA1 Message Date
Chris Keller
4f1b7e5bcd Update node version and transitive deps 2023-10-18 18:39:10 +00:00
Martin Hebnes Pedersen
700edb6f8b Fix missing URI component encoding
Accidentally removed in PR #410
2023-05-22 00:04:21 +02:00
Martin Hebnes Pedersen
605cfd5c64 Restore previous connect params from local storage
Ref https://groups.google.com/g/pat-users/c/-fOnlGzzMIE
2023-05-21 22:03:59 +02:00
Martin Hebnes Pedersen
e19b28976f Align address field in connect modal 2023-05-21 13:00:23 +02:00
Martin Hebnes Pedersen
04ccdf2fa0 make.bash web
For PR #411 and 4c1a249b3e.
2023-05-21 12:20:38 +02:00
Martin Hebnes Pedersen
4c1a249b3e Re-align connect modal input fields 2023-05-21 12:18:30 +02:00
Martin Hebnes Pedersen
2de9520a58 Separate optgroup for ax25+... transports
Also removed legacy serial-tnc scheme.
2023-05-21 12:12:20 +02:00
Corey Minyard
b514a0a704 web: Add all the ax25 transports to the transport menu
So they can be individually selected and used from the web page.

Signed-off-by: Corey Minyard <minyard@acm.org>
2023-05-21 12:12:20 +02:00
Martin Hebnes Pedersen
62a62403a6 Fix error handling in /connect ajax call 2023-05-19 21:18:09 +02:00
Martin Hebnes Pedersen
de4743b2bf Fix clearing of To/Cc after message is posted
It seems bootstrap-tokenfield's API changed.

Resolves #408
2023-05-18 11:32:31 +02:00
Martin Hebnes Pedersen
7633f0a47a make.bash web
For changes in #394
2023-04-17 07:29:09 +02:00
Corey Minyard
3f386d459e forms: Fix fetching To: and Cc: from a form
There are forms that have "Send To" or whatnot in them that are supposed
to fill in the To: field of the message, but this wasn't working.
There were two issues:

Modify the split operation for msg_to and msg_cc to use a regular
expression with ' ', ';', and ',' per how the rest of the system works.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
2023-04-16 13:57:20 +02:00
Emil Sit
b901f76a1a forms: better parse support for to/cc/body
Add support for parsing To/Cc fields and passing an array
of addresses back to the compose window.

Improve handling of Msg. As per the templates [spec][]:

> Msg: -- Start of message body. All text following Msg: is placed in the body of the message.

and a few templates have text and variables on the same line as the "Msg:".
Therefore, simply strip out the Msg: and use that to mark the rest of
the template as being part of the body.

[spec]: http://www.philsherrod.com/Winlink/RMS_Express_Message_Templates.pdf

[Changed "var inBody = true" to "inBody := true" per Martin's
 suggestion]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
2023-04-16 13:57:20 +02:00
Martin Hebnes Pedersen
0b696c08eb Re-init Form Templates list after updating
Resolves #396
2023-04-04 17:36:41 +02:00
Chris Keller
22ad8ec756 Get web build working
I can't currently build this at all because `node-sass` is old and requires python2. The replacement `sass` does not.
2023-03-28 19:44:32 +02:00
Chris Keller
6756d994eb Integrate with github.com/n8jja/Pat-Vara
Co-authored-by: gh42lb <92827417+gh42lb@users.noreply.github.com>
2022-08-20 21:25:03 +02:00
Martin Hebnes Pedersen
829fb196c2 Use bandwidth from config as default in web gui 2022-05-12 08:28:41 +02:00
Chris Keller
f1a4bd9f73 Add ARDOP dial bandwidth 2022-05-12 08:28:41 +02:00
Martin Hebnes Pedersen
6759b140b1 Reverse proxy for webpack-dev-server
`PAT_WEB_DEV_ADDR=http://localhost:8081 go run . http`
2022-04-10 08:16:48 +02:00
Chris Keller
7850c5f036 Fix loading forms on develop branch
After af07b47b05, trying to launch a form from the compose dialog is broken. That's because the javascript functions are no longer in the global namespace, but clicking a form name was still using `onclick=onFormLaunching`. I had purged other uses of `onclick` from the HTML, but apparently not dynamically generated ones from the JS. I looked and didn't find any other problems in the same category.
2022-04-03 21:37:07 +02:00
Chris Keller
af07b47b05 Start using npm and webpack
This deletes all vendored libraries, uses npm to declare them (same version that was deleted), and uses webpack to compile and optimize web assets.
2022-03-27 15:37:03 +02:00
Chris Keller
c6f3bfb2e6 Remove WINMOR support
Resolves #331.
2022-03-21 19:51:03 +01:00
Martin Hebnes Pedersen
b60cfbe25d Fix missing URI encoding of MID in API paths
Resolves #303
2021-12-03 22:46:44 +01:00
Chris Keller
5a6764bce1 Revamp customized file paths
* Deprecate `forms_path` in the config file and replace with `--forms` flag
* Clean up `optionsSet()` to show correct defaults
* Clean up places that detected when `forms_path` was not configured (before it had a default)

Resolves https://github.com/la5nta/pat/issues/287
2021-10-24 22:42:46 +02:00
Chris Keller
e59c37bf8a Upgrade jQuery from v1.11.1 to v3.6.0
I did some manual testing and didn't see issues. Let me know if there are specific things you would like to test.
2021-09-09 23:27:26 +02:00
Chris Keller
5463ab22fa Move from old-style var to new let and const 2021-08-13 20:23:00 +02:00
Chris Keller
39a228c7cd Start using Prettier formatter for web resources 2021-08-04 08:09:34 +02:00
Chris Keller
b4f384b417 Move web resources to subdirectory
Preparation for adding node packages for formatting. Getting `res/` to remain the content root was a little tricky, see https://stackoverflow.com/a/66248259/587091.
2021-08-04 08:09:34 +02:00