Extract out static text into a json file #15

Closed
opened 2021-10-20 14:18:02 +13:00 by danalambert · 3 comments
danalambert commented 2021-10-20 14:18:02 +13:00 (Migrated from gitlab.catalyst.net.nz)

Currently there is static text that is used in a number of files on the frontend, these should really be extracted into a json file or similar. This will allow the text content to be more easily edited.

The only difficulty I can see here will perhaps be adding static text for those blocks that require bold or tooltips.

Currently there is static text that is used in a number of files on the frontend, these should really be extracted into a json file or similar. This will allow the text content to be more easily edited. The only difficulty I can see here will perhaps be adding static text for those blocks that require **bold** or tooltips.
danalambert commented 2021-10-20 15:44:48 +13:00 (Migrated from gitlab.catalyst.net.nz)

An idea to deal with bold, tooltip and hyperlinked text:

{
    "description": "some description with a tooltip and some bold and some anchor",
    "hyperlinks": [{"some anchor": "http://somelink.com"}],
    "tooltips": [],
    "bold": ["some bold"]
}
An idea to deal with **bold**, tooltip and [hyperlinked](#) text: ``` { "description": "some description with a tooltip and some bold and some anchor", "hyperlinks": [{"some anchor": "http://somelink.com"}], "tooltips": [], "bold": ["some bold"] } ```
danalambert commented 2021-10-20 16:55:18 +13:00 (Migrated from gitlab.catalyst.net.nz)

mentioned in merge request !8

mentioned in merge request !8
alistairmcintyre commented 2022-04-05 12:57:56 +12:00 (Migrated from gitlab.catalyst.net.nz)

Closing until we pick up development again

Closing until we pick up development again
alistairmcintyre (Migrated from gitlab.catalyst.net.nz) closed this issue 2022-04-05 12:57:58 +12:00
Sign in to join this conversation.
No description provided.