| 39 | |
| 40 | let noteImages: Array<Awaited<ReturnType<typeof img>>> | undefined |
| 41 | export async function getNoteImages() { |
| 42 | if (noteImages) return noteImages |
| 43 | |
| 44 | noteImages = await Promise.all([ |
| 45 | img({ |
| 46 | altText: 'a nice country house', |
| 47 | filepath: './tests/fixtures/images/notes/0.png', |
| 48 | }), |
| 49 | img({ |
| 50 | altText: 'a city scape', |
| 51 | filepath: './tests/fixtures/images/notes/1.png', |
| 52 | }), |
| 53 | img({ |
| 54 | altText: 'a sunrise', |
| 55 | filepath: './tests/fixtures/images/notes/2.png', |
| 56 | }), |
| 57 | img({ |
| 58 | altText: 'a group of friends', |
| 59 | filepath: './tests/fixtures/images/notes/3.png', |
| 60 | }), |
| 61 | img({ |
| 62 | altText: 'friends being inclusive of someone who looks lonely', |
| 63 | filepath: './tests/fixtures/images/notes/4.png', |
| 64 | }), |
| 65 | img({ |
| 66 | altText: 'an illustration of a hot air balloon', |
| 67 | filepath: './tests/fixtures/images/notes/5.png', |
| 68 | }), |
| 69 | img({ |
| 70 | altText: |
| 71 | 'an office full of laptops and other office equipment that look like it was abandoned in a rush out of the building in an emergency years ago.', |
| 72 | filepath: './tests/fixtures/images/notes/6.png', |
| 73 | }), |
| 74 | img({ |
| 75 | altText: 'a rusty lock', |
| 76 | filepath: './tests/fixtures/images/notes/7.png', |
| 77 | }), |
| 78 | img({ |
| 79 | altText: 'something very happy in nature', |
| 80 | filepath: './tests/fixtures/images/notes/8.png', |
| 81 | }), |
| 82 | img({ |
| 83 | altText: `someone at the end of a cry session who's starting to feel a little better.`, |
| 84 | filepath: './tests/fixtures/images/notes/9.png', |
| 85 | }), |
| 86 | ]) |
| 87 | |
| 88 | return noteImages |
| 89 | } |
| 90 | |
| 91 | let userImages: Array<Awaited<ReturnType<typeof img>>> | undefined |
| 92 | export async function getUserImages() { |