尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A web page that lists common patient text messages for Annan North Surgery. Click Copy on any snippet and paste it into the clinical system's text messaging tool.
Every message automatically ends with "Annan North Surgery" on a new line (set by SIGN_OFF in app.js), so don't type it into the snippet text.
No patient data is stored, only message templates.
Anyone with the link can view and copy snippets. Editing is hidden by default:
Editing also switches off after 10 minutes without activity, or when the page is reloaded. The PIN isn't remembered, so it's needed every time. After 10 wrong guesses from the same address, PIN entry is blocked for 15 minutes.
Off the NHS network, the Add / edit snippets button isn't shown, and the server refuses any changes. The page shows the internet address it sees, which helps if the allowed range needs updating.
| Variable | Purpose |
|---|---|
EDIT_PIN | The practice PIN needed to edit. If not set, no PIN is asked for. |
ALLOWED_IP_RANGES | Addresses allowed to edit, comma-separated. Defaults to 62.6.52.0/24 (every address starting 62.6.52.). Example: 62.6.52.0/24, 194.1.2.0/24. |
KV_REST_API_URL, KV_REST_API_TOKEN | Set automatically when the Upstash database is connected (see below). |
After changing any of these, redeploy (Deployments → ⋯ → Redeploy) for them to take effect.
main redeploys automatically.KV prefix.EDIT_PIN (see above), then redeploy.If the database isn't connected, the page says so and shows the starter list from snippets.json, read-only.
snippets.json holds the starter list and a version number. On first use, its snippets are copied into the database. After that, the database is the master copy, and edits made in the app are kept.
To reset the shared list to the file's contents:
Edit snippets.json on GitHub with the snippets you want. Each entry looks like this (category is optional; watch the commas between entries):
{"id": "smear-due", "title": "Cervical screening due", "category": "Screening", "text": "You are due your cervical screening test. Please book an appointment with the practice nurse via reception."}
Change "version" to a new number (e.g. 1 → 2) and commit.
Vercel redeploys, and the next time anyone opens the page the shared list is replaced with the file's contents. Anything added in the app that isn't in the file is removed, so use Export all snippets first if you might want it. Editing the file without changing the version number has no effect.
Export all snippets, at the bottom of the page, downloads a copy. In editing mode, Import snippets adds snippets from such a file, skipping any that already exist.
Any static file server (e.g. npx serve .) shows the page read-only from snippets.json. To run the editing features locally, use npx vercel dev with the environment variables above set.