refactor frontend to use WP REST API instead of WP AJAX

Query new ticks using GET request to the REST API.
Also we now trigger one request per ticker, if more than one is
available on the same page.

HTML markup (list element, content container) is generated client side,
s.t. we can work on the generic response data model
This commit is contained in:
2020-11-10 15:30:12 +01:00
parent 547fc521d0
commit 68efc83273
3 changed files with 122 additions and 135 deletions

View File

@@ -4,7 +4,7 @@
"browser": true
},
"globals": {
"sclivetickerAjax": "readonly",
"scliveticker": "readonly",
"wp": "readonly"
},
"extends": [