17 | ${unsafeSVG(iconSpinner)} 18 | ${this.label} 19 |
20 | `; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/indexer/src/plugins/README.md: -------------------------------------------------------------------------------- 1 | # Plugins Folder 2 | 3 | Plugins define behavior that is common to all the routes in your 4 | application. Authentication, caching, templates, and all the other cross 5 | cutting concerns should be handled by plugins placed in this folder. 6 | 7 | Files in this folder are typically defined through the 8 | [`fastify-plugin`](https://github.com/fastify/fastify-plugin) module, 9 | making them non-encapsulated. They can define decorators and set hooks 10 | that will then be used in the rest of your application. 11 | 12 | Check out: 13 | 14 | - [The hitchhiker's guide to plugins](https://www.fastify.io/docs/latest/Guides/Plugins-Guide/) 15 | - [Fastify decorators](https://www.fastify.io/docs/latest/Reference/Decorators/). 16 | - [Fastify lifecycle](https://www.fastify.io/docs/latest/Reference/Lifecycle/). 17 | -------------------------------------------------------------------------------- /packages/search/src/plugins/README.md: -------------------------------------------------------------------------------- 1 | # Plugins Folder 2 | 3 | Plugins define behavior that is common to all the routes in your 4 | application. Authentication, caching, templates, and all the other cross 5 | cutting concerns should be handled by plugins placed in this folder. 6 | 7 | Files in this folder are typically defined through the 8 | [`fastify-plugin`](https://github.com/fastify/fastify-plugin) module, 9 | making them non-encapsulated. They can define decorators and set hooks 10 | that will then be used in the rest of your application. 11 | 12 | Check out: 13 | 14 | - [The hitchhiker's guide to plugins](https://www.fastify.io/docs/latest/Guides/Plugins-Guide/) 15 | - [Fastify decorators](https://www.fastify.io/docs/latest/Reference/Decorators/). 16 | - [Fastify lifecycle](https://www.fastify.io/docs/latest/Reference/Lifecycle/). 17 | -------------------------------------------------------------------------------- /packages/search/Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile:1 2 | 3 | # Build Node.js app 4 | # ------------------------------------ 5 | FROM node:22-alpine as build 6 | WORKDIR /app 7 | COPY ./package*.json ./ 8 | COPY ./packages/search ./packages/search 9 | RUN npm ci --cache /tmp/empty-cache 10 | RUN npm run build --workspace=search 11 | 12 | # Run Node.js app 13 | # ------------------------------------ 14 | FROM node:22-alpine 15 | ENV NODE_ENV=production 16 | 17 | WORKDIR /app 18 | COPY ./package*.json ./ 19 | COPY ./packages/search/package.json ./packages/search/ 20 | COPY ./packages/search/data/employee-info.csv ./packages/search/data/employee-info.csv 21 | RUN npm ci --omit=dev --workspace=search --cache /tmp/empty-cache 22 | COPY --from=build app/packages/search/dist packages/search/dist 23 | EXPOSE 3000 24 | CMD [ "npm", "start", "--workspace=search" ] 25 | -------------------------------------------------------------------------------- /packages/webapp/src/components/SupportingContent/SupportingContent.tsx: -------------------------------------------------------------------------------- 1 | import { parseSupportingContentItem } from './supporting-content-parser.js'; 2 | 3 | import styles from './SupportingContent.module.css'; 4 | 5 | interface Props { 6 | supportingContent: string[]; 7 | } 8 | 9 | export const SupportingContent = ({ supportingContent }: Props) => { 10 | return ( 11 |{parsed.content}
19 |