2024-01-23 19:47:31 +08:00
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://github.com/codercup/unibest">
|
|
|
|
|
<img width="200" src="./src/static/logo.svg">
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
2024-01-20 14:45:33 +08:00
|
|
|
|
|
2024-01-23 19:47:31 +08:00
|
|
|
|
<h1 align="center">
|
2024-01-25 08:31:22 +08:00
|
|
|
|
<a href="https://github.com/codercup/unibest" target="_blank">unibest - 最好用的 uniapp 开发模板</a>
|
2024-01-23 19:47:31 +08:00
|
|
|
|
</h1>
|
2024-01-22 14:21:17 +08:00
|
|
|
|
|
2024-01-23 19:47:31 +08:00
|
|
|
|
<div align="center">
|
2024-01-23 10:42:55 +08:00
|
|
|
|
|
2024-01-23 16:12:07 +08:00
|
|
|
|
[](https://github.com/codercup/unibest)
|
|
|
|
|
[](https://github.com/codercup/unibest)
|
|
|
|
|
[](https://gitee.com/codercup/unibest/stargazers)
|
2024-01-24 19:29:52 +08:00
|
|
|
|
[](https://gitee.com/codercup/unibest/members)
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|

|
2024-01-25 15:11:52 +08:00
|
|
|
|

|
2024-01-23 16:12:07 +08:00
|
|
|
|

|
2024-01-23 10:42:55 +08:00
|
|
|
|
|
2024-01-23 19:47:31 +08:00
|
|
|
|
</div>
|
2024-01-23 10:42:55 +08:00
|
|
|
|
|
2024-01-30 11:39:02 +08:00
|
|
|
|
<div align="center"><b>unibest 是由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI + VSCode 驱动的跨端快速启动模板,具有代码提示、自动格式化、统一配置、代码片段、多语言支持等功能,内置了许多常用的基本组件和基本功能,开箱即用,让你编写 uniapp 拥有 best 体验。</b></div>
|
2024-01-23 10:42:55 +08:00
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
2024-01-28 19:24:10 +08:00
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://codercup.github.io/unibest/">📱 在线预览(github)</a>
|
|
|
|
|
<span style="margin:0 10px;">|</span>
|
|
|
|
|
<a href="https://codercup.gitee.io/unibest/">📱 在线预览(gitee)</a>
|
|
|
|
|
<span style="margin:0 10px;">|</span>
|
|
|
|
|
<a href="#">📖 阅读文档(github)</a>
|
|
|
|
|
<span style="margin:0 10px;">|</span>
|
|
|
|
|
<a href="#">📖 阅读文档(gitee)</a>
|
|
|
|
|
</p>
|
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
## ✨ 特性
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
|
|
|
|
- ⚡️ [Vue 3](https://github.com/vuejs/core), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/), [esbuild](https://github.com/evanw/esbuild) - 就是快!
|
|
|
|
|
|
2024-01-25 09:04:33 +08:00
|
|
|
|
- 🔥 最新语法:使用新的 `<script setup>` 语法
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-03 17:34:52 +08:00
|
|
|
|
- 🎨 [UnoCSS](https://unocss.dev/) - 高性能且极具灵活性的即时原子化 CSS 引擎
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-25 09:04:33 +08:00
|
|
|
|
- 🍍 [pinia](https://pinia.vuejs.org/) & [pinia-plugin-persistedstate](https://prazdevs.github.io/pinia-plugin-persistedstate/zh/guide/) - 全端适配的全局数据管理
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-25 09:04:33 +08:00
|
|
|
|
- 🦾 [TypeScript](https://www.typescriptlang.org/) & [ESLint](https://eslint.org/) & [stylelint](https://stylelint.io/) - 保证代码质量
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-25 09:04:33 +08:00
|
|
|
|
- 😃 [UnoCSS Icons](https://unocss.dev/presets/icons) & [icones](https://icones.js.org/) - 海量图标供你选择
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-25 09:04:33 +08:00
|
|
|
|
- 📦 [组件自动化加载](./src/components) - 可配置化的组件加载方式,轻松加载组件
|
|
|
|
|
|
|
|
|
|
- 📥 [API 自动加载](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 无需引入
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
- 🌈 [husky](https://typicode.github.io/husky/) & [lint-staged](https://github.com/lint-staged/lint-staged) + [commitlint](https://commitlint.js.org/) - 保证代码提交质量
|
2024-01-03 10:52:59 +08:00
|
|
|
|
|
2024-01-25 09:04:33 +08:00
|
|
|
|
- 🎉 `v3` Code Snippets 加快你的页面生成
|
2024-01-03 10:52:59 +08:00
|
|
|
|
|
2024-01-28 19:24:10 +08:00
|
|
|
|
- 🗂 `uni.request` 请求封装 & 请求拦截,一键引入,快捷使用
|
2024-01-03 10:52:59 +08:00
|
|
|
|
|
2024-01-25 09:04:33 +08:00
|
|
|
|
- 💡 ES6 import 顺序自动排序,css 属性自动排序,增强编码一致性
|
2024-01-03 10:52:59 +08:00
|
|
|
|
|
2024-01-25 09:04:33 +08:00
|
|
|
|
- 🖥 多环境配置分开,想则怎么配置就怎么配置
|
2024-01-24 14:39:06 +08:00
|
|
|
|
|
2024-01-29 10:33:28 +08:00
|
|
|
|
## 👍 业务功能
|
|
|
|
|
|
|
|
|
|
- [x] 页面下拉刷新(全局+局部)
|
|
|
|
|
- [x] 页面上拉加载
|
|
|
|
|
- [x] 导航栏返回 or 去首页
|
|
|
|
|
- [x] 导航栏渐变(微信+h5+App)
|
|
|
|
|
- [x] 自定义导航栏顶部机型适配
|
|
|
|
|
- [x] 微信小程序分享(好友+朋友圈)
|
|
|
|
|
- [x] 微信登录
|
2024-01-30 11:39:02 +08:00
|
|
|
|
- [ ] 非微信登录(h5 和 App)
|
|
|
|
|
- [ ] 微信一键登录(基于手机号)- 需要非个人认证用户
|
2024-01-29 10:33:28 +08:00
|
|
|
|
- [x] 微信小程序获取头像昵称+隐私协议
|
|
|
|
|
- [x] 微信小程序 vconsole 调试
|
2024-01-30 11:39:02 +08:00
|
|
|
|
- [x] 多语言模板
|
2024-01-29 10:33:28 +08:00
|
|
|
|
- [x] 页面悬浮球(floating bubble)
|
|
|
|
|
- [x] 多 tab 列表功能
|
2024-01-29 10:58:37 +08:00
|
|
|
|
- [ ] 瀑布流
|
2024-01-29 10:33:28 +08:00
|
|
|
|
- [ ] 仿`BOSS直聘`个人中心
|
|
|
|
|
- [ ] 仿华为商城个人中心
|
|
|
|
|
- [ ] 仿网易云音乐 APP(独立项目)
|
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
## ⚙️ 环境
|
2024-01-03 10:52:59 +08:00
|
|
|
|
|
2024-01-09 09:56:52 +08:00
|
|
|
|
- node>=18
|
2024-01-24 19:29:52 +08:00
|
|
|
|
- pnpm>=7.30
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-24 14:35:10 +08:00
|
|
|
|
## 📦 运行(支持热更新)
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-03 10:52:59 +08:00
|
|
|
|
- web平台: `pnpm dev:h5`, 然后打开 [http://localhost:9000/](http://localhost:9000/)。
|
|
|
|
|
- weixin平台:`pnpm dev:mp-weixin` 然后打开微信开发者工具,导入本地文件夹,选择本项目的`dist/dev/mp-weixin` 文件。
|
2024-01-23 10:42:55 +08:00
|
|
|
|
- APP平台:`pnpm dev:app`, 然后打开 `HBuilderX`,导入刚刚生成的`dist/dev/app` 文件夹,选择运行到模拟器(开发时优先使用),或者运行的安卓/ios基座。
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
## 🔗 发布
|
2023-12-23 14:18:42 +08:00
|
|
|
|
|
2024-01-29 10:58:37 +08:00
|
|
|
|
- web平台: `pnpm build:h5`,打包后的文件在 `dist/build/h5`,可以放到web服务器,如nginx运行。如果最终不是放在根目录,可以在 `manifest.config.ts` 文件的 `h5.router.base` 属性进行修改。
|
2024-01-03 10:52:59 +08:00
|
|
|
|
- weixin平台:`pnpm build:h5`, 打包后的文件在 `dist/build/mp-weixin`,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。
|
2024-01-19 17:53:21 +08:00
|
|
|
|
- APP平台:`pnpm build:app`, 然后打开 `HBuilderX`,导入刚刚生成的`dist/build/app` 文件夹,选择发行 - APP云打包。
|
2024-01-09 16:39:20 +08:00
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
## 🎨 `v3` 代码段
|
2024-01-20 15:49:43 +08:00
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
在 `vue` 文件里面输入 `v3` 触发这个代码段。如下图,用户可以在`.vscode/vue3.code-snippets` 里面自行修改。
|
2024-01-20 15:49:43 +08:00
|
|
|
|
|
2024-01-24 15:28:38 +08:00
|
|
|
|

|
2024-01-21 04:52:51 +08:00
|
|
|
|
|
2024-01-29 10:52:32 +08:00
|
|
|
|
## 📄 License
|
2024-01-22 09:46:38 +08:00
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
[MIT](https://opensource.org/license/mit/)
|
2024-01-22 09:46:38 +08:00
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
Copyright (c) 2024 菲鸽
|
2024-01-22 09:46:38 +08:00
|
|
|
|
|
2024-01-29 10:33:28 +08:00
|
|
|
|
## 📊 Github Star History
|
2024-01-27 21:11:36 +08:00
|
|
|
|
|
|
|
|
|
[](https://star-history.com/#codercup/unibest&Date)
|
|
|
|
|
|
2024-01-29 10:33:28 +08:00
|
|
|
|
## 💓 捐赠鼓励
|
2024-01-21 04:52:51 +08:00
|
|
|
|
|
2024-01-30 10:22:16 +08:00
|
|
|
|
开源不易,如果 `unibest` 对你有些帮助,可以请作者吃块糖果 ,算是对开源做出的一点点鼓励吧!
|
2024-01-25 09:43:40 +08:00
|
|
|
|
|
2024-01-23 10:42:55 +08:00
|
|
|
|
<p align='center'>
|
2024-01-29 11:01:04 +08:00
|
|
|
|
<img alt="special sponsor appwrite" src="./screenshots/pay-wx-2.png" width="150" style="margin-left:0px;">
|
|
|
|
|
<img alt="special sponsor appwrite" src="./screenshots/pay-wx.png" width="150" style="margin-left:2px;">
|
2024-01-24 18:22:23 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
2024-01-27 21:11:36 +08:00
|
|
|
|
## 🤝 微信交流群
|
2024-01-25 09:43:40 +08:00
|
|
|
|
|
2024-01-25 15:23:42 +08:00
|
|
|
|
扫码进微信群,微信群7天过期,作者会定期维护,争取读者每次打开都是可用的。
|
2024-01-25 10:22:30 +08:00
|
|
|
|
|
2024-01-24 18:22:23 +08:00
|
|
|
|
<p align='center'>
|
2024-01-29 10:33:28 +08:00
|
|
|
|
<img alt="special sponsor appwrite" src="./screenshots/wx-group.png" width="300" style="margin-left:0px;">
|
2024-01-23 10:42:55 +08:00
|
|
|
|
</p>
|
2024-01-30 10:22:16 +08:00
|
|
|
|
|
2024-01-29 10:33:28 +08:00
|
|
|
|
## 💖 微信公众号
|
2024-01-25 15:45:45 +08:00
|
|
|
|
|
2024-01-27 21:11:36 +08:00
|
|
|
|
欢迎关注公众号“菲鸽爱编程”——坚持原创,用心写文,分享知识,共同成长。里面会不定期分享前端、Nodejs、微信小程序、开源库等方面的优秀文章。
|
2024-01-25 15:45:45 +08:00
|
|
|
|
|
2024-01-27 21:11:36 +08:00
|
|
|
|
<p align='center'>
|
2024-01-29 10:33:28 +08:00
|
|
|
|
<img alt="special sponsor appwrite" src="./screenshots/wx-gzh.png" width="300" style="margin-left:0px;">
|
2024-01-27 21:11:36 +08:00
|
|
|
|
</p>
|