{"id":25763885,"url":"https://github.com/bernankez/uniapptemplate","last_synced_at":"2025-07-23T00:32:59.292Z","repository":{"id":122926192,"uuid":"520331772","full_name":"Bernankez/UniAppTemplate","owner":"Bernankez","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-02T03:19:07.000Z","size":927,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T04:28:01.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bernankez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-02T02:59:02.000Z","updated_at":"2022-08-03T16:03:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ec2bbf6-a857-4646-aa67-490f0709b471","html_url":"https://github.com/Bernankez/UniAppTemplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Bernankez/UniAppTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2FUniAppTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2FUniAppTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2FUniAppTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2FUniAppTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bernankez","download_url":"https://codeload.github.com/Bernankez/UniAppTemplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2FUniAppTemplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266596748,"owners_count":23953892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-26T20:19:32.364Z","updated_at":"2025-07-23T00:32:59.268Z","avatar_url":"https://github.com/Bernankez.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 环境\n\n`Nodejs \u003e= 12`\n\n输入\n\n```sh\nnpm install // npm\npnpm install // pnpm\n```\n\n安装依赖\n\n## 运行\n\n`npm run dev:h5`运行h5端\n\n`npm run dev:mp-weixin`运行小程序端。小程序端启动后会build到根目录下`/dist/dev/mp-weixin`，使用微信开发者工具打开`mp-weixin`目录。\n\n## 配置\n\n项目全局变量配置在`/uni_configs`下。本地开发时，需要在`/uni_configs`下新建`.env.development.local`文件，文件中输入以下内容：\n\n```sh\n# 开发环境接口地址\nVITE_APP_DOMAIN = '...'\n# 开发环境token，优先级大于项目中store.state.token\nVITE_APP_TOKEN = 'token'\n```\n\n## 目录\n\n```\n- src\n-- api // 接口文件\n-- components // 全局组件\n-- composables // 全局composition API\n-- pages // 主包页面\n-- store // 状态管理\n-- styles // 全局样式\n-- subpackages // 分包\n-- types // 全局类型\n-- utils // utils\n-- env.d.ts // 全局类型声明\n-- manifest.json // uni-app配置\n-- pages.json // 路由及分包配置\n-- uni.scss // uni全局样式变量\n- uni_configs // 全局变量，参考 https://cn.vitejs.dev/guide/env-and-mode.html\n```\n\n## 文档\n\n- [Pinia](https://pinia.vuejs.org/)\n- [Day.js](https://dayjs.gitee.io/zh-CN/)\n- [Vite](https://cn.vitejs.dev/)\n- [uni-app 全局文件配置](https://uniapp.dcloud.io/collocation/pages.html#globalstyle)\n- [uni-ui](https://uniapp.dcloud.io/component/uniui/uni-ui.html#uni-ui产品特点)\n- [uni-app 全面屏安全区适配](https://ask.dcloud.net.cn/article/35564)\n- [在uniapp, taro中体验unocss](https://juejin.cn/post/7116730180252467236#heading-22)\n- [UnoCSS](https://github.com/unocss/unocss)\n- [UnoCss Interactive docs 交互式文档](https://uno.antfu.me/)\n- [Vitest](https://vitest.dev/)\n- [uni-echarts](https://ext.dcloud.net.cn/plugin?id=4899#detail)\n- [echarts](https://echarts.apache.org/zh/api.html#echarts)\n- [LimeEcharts](https://limeui.qcoon.cn/#/echart-example)\n- [iconify](https://icon-sets.iconify.design/)\n- [vite-plugin-mock](https://github.com/vbenjs/vite-plugin-mock/blob/HEAD/README.zh_CN.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernankez%2Funiapptemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernankez%2Funiapptemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernankez%2Funiapptemplate/lists"}