Commit Graph

10 Commits

Author SHA1 Message Date
D. Berge
42697fe91d Provide a default replacement for @POS@ markers 2021-05-15 01:57:46 +02:00
D. Berge
f1953807db Add position filters to Vue.
Given some text and an item containing a Point geometry,
the `position` filter replaces occurences of @POS@ or
@POSITION@ with the item's geometry (it has to be lat/lon).

Occurrences of @DMS@ are replaced with the position in
sexagesimal degrees.

This can be used anywhere a Vue filter can. However, we
have used it in the event comments edit dialogue. The positions
are replaced before saving the comment to the database.
2021-05-15 01:57:46 +02:00
D. Berge
65b33a6b0f Add Vue Markdown filters.
{{ '**strong** _em_' |markdown }} gives:
<p><strong>strong</strong> <em>em</em></p>

{{ '**strong** _em_' |markdownInline }} gives:
<strong>strong</strong> <em>em</em>
2021-05-15 01:57:45 +02:00
D. Berge
ab2cf81327 Broadcast an already parsed JSON payload 2020-09-25 18:26:04 +02:00
D. Berge
c25f350c7a Show online indicator.
Closes #37.
2020-09-23 22:18:51 +02:00
D. Berge
8411eea29d Stop race condition between multiple WebSockets.
Only one websocket should be active or initialising
at any one time.
2020-09-06 18:09:04 +02:00
D. Berge
1a851fefdf Fix issue with protocol detection 2020-09-04 01:33:18 +02:00
D. Berge
34dfb4f862 Add websocket client to receive event notifications.
These are saved in the Vuex store and can be retrieved
via the `serverEvent` getter. There are also some
convenience getters for retrieving line status.
2020-09-04 01:33:18 +02:00
D. Berge
f366e99c35 Add Vue debounce plugin 2020-08-25 13:01:38 +02:00
D. Berge
4c5d29494c Initial commit 2020-08-08 23:59:13 +02:00