Skip to content
This repository was archived by the owner on Sep 25, 2023. It is now read-only.

Commit ca345c5

Browse files
authored
Merge pull request #7 from meathill/main
change: 提交参赛作品“姆伊用药助手”
2 parents 5e0a136 + f4bd9c9 commit ca345c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+5074
-0
lines changed

用药助手-roudan.io/README.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
Mui 用药助手
2+
==========
3+
4+
作为一名糖尿病患者,我发现市场上的用药助手和智能药盒可能都不是患者设计的,存在设计缺憾。主要表现在对用药时间的控制上:
5+
6+
1. 比如二甲双胍,要求餐后半小时服用。这里的半小时是指从吃第一口开始半小时,所以跟吃饭时间密切相关。而不是固定时间。
7+
2. 比如尿酸药,最好早上吃,因为二小时后浓度最大,要辅以喝水促排尿。
8+
9+
大部分现成产品都只做了固定时间提醒而已,其实是不够的。
10+
11+
我希望在这个产品中,能够帮助患者计时,并且在超过特定时间后,再提醒一次。
12+
13+
14+
体验
15+
--------
16+
17+
[https://meathill-hackathon-2022.vercel.app/](https://meathill-hackathon-2022.vercel.app/)
18+
19+
![设计稿(未实施)](./good-patient/assets/design.png)
20+
21+
22+
技术选型
23+
--------
24+
25+
* Vue3 + Pinia + Vue-Router
26+
* TypeScript
27+
* PWA
28+
29+
### Google 技术
30+
31+
* Chrome 浏览器
32+
* PWA (Progressive Web Application)
33+
34+
### 潜在问题
35+
36+
* 存储使用 LocalStorage
37+
* 容量有限(5MB)
38+
* Service worker 无法直接使用 localStorage
39+
40+
41+
开发
42+
--------
43+
44+
### 基本需求
45+
46+
1. Node.js >= 16
47+
2. pnpm >= 7
48+
3. 支持 Service worker 的现代浏览器
49+
50+
### 环境配置
51+
52+
1. Clone this repo to `/path/to/good-patient`
53+
2. Install dependencies via `pnpm i`
54+
3. For development, run `pnpm run dev`, and open browser to `http://localhost:5173`
55+
4. For production, run `pnpm run build`, then serve `dist` directory as a static web server
56+
57+
58+
团队
59+
--------
60+
61+
团队名称:[roudan.io](https://roudan.io/)
62+
63+
### 团队成员
64+
65+
* [Meathill](https://blog.meathill.com/) 主创+开发
66+
* 微信 wakabanga
67+
* [邮箱](mailto:meathill@gmail.com)
68+
* [GitHub](https://github.com/meathill)
69+
* [微博](https://weibo.com/meathill)
70+
* Eggeast 设计师
71+
72+
73+
LICENSE
74+
-------
75+
76+
[MIT](https://opensource.org/licenses/MIT)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.DS_Store
3+
public/*.js
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}
449 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env node
2+
3+
const esbuild = require('esbuild');
4+
const {resolve} = require('path');
5+
6+
console.log('count-down.js started');
7+
(async () => {
8+
try {
9+
await esbuild.build({
10+
entryPoints: [resolve(__dirname, '../sw/count-down.ts')],
11+
bundle: true,
12+
outfile: resolve(__dirname, '../public/count-down.js'),
13+
tsconfig: resolve(__dirname, '../tsconfig.json'),
14+
minify: true,
15+
});
16+
console.log('count-down.js built');
17+
} catch (e) {
18+
console.error(e);
19+
process.exit(1);
20+
}
21+
})();
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>姆伊用药助手</title>
8+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9+
<meta name="description" content="科学吃药,可以让药效发挥更好,副作用更少。慢性病患者献给病友的小应用。">
10+
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
11+
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
12+
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
13+
<meta name="msapplication-TileColor" content="#ffe4b0">
14+
<meta name="theme-color" content="#ffe4b0">
15+
</head>
16+
<body>
17+
<div id="app"></div>
18+
<script type="module" src="/src/main.ts"></script>
19+
</body>
20+
</html>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "good-patient",
3+
"version": "0.1.4",
4+
"scripts": {
5+
"dev:vite": "vite",
6+
"dev:sw": "esbuild sw/count-down.ts --outfile=public/count-down.js --watch --tsconfig=tsconfig.sw.json",
7+
"build": "vite build && build/sw.js",
8+
"preview": "vite preview"
9+
},
10+
"dependencies": {
11+
"bootstrap-icons": "^1.9.1",
12+
"esbuild": "^0.15.6",
13+
"lodash": "^4.17.21",
14+
"pinia": "^2.0.21",
15+
"tailwindcss": "^3.1.8",
16+
"vue": "^3.2.38",
17+
"vue-router": "^4.1.5"
18+
},
19+
"devDependencies": {
20+
"@types/lodash": "^4.14.184",
21+
"@vitejs/plugin-vue": "^3.0.3",
22+
"autoprefixer": "^10.4.8",
23+
"postcss": "^8.4.16",
24+
"pug": "^3.0.2",
25+
"stylus": "^0.59.0",
26+
"typescript": "^4.8.2",
27+
"vite": "^3.0.9",
28+
"vite-plugin-pwa": "^0.12.4",
29+
"workbox-window": "^6.5.4"
30+
}
31+
}

0 commit comments

Comments
 (0)