Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦想橡皮擦
uni-starter
提交
e09da5ed
U
uni-starter
项目概览
梦想橡皮擦
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e09da5ed
编写于
4月 30, 2021
作者:
DCloud_JSON
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加初始化的uni-config-center/uni-id/config.json
方便开发者填写参数而不需要自己创建
上级
1083bc4a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
111 addition
and
56 deletion
+111
-56
.gitignore
.gitignore
+0
-2
README.md
README.md
+14
-9
manifest.json
manifest.json
+5
-21
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
...loudfunctions/common/uni-config-center/uni-id/config.json
+52
-0
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package-lock.json
...d/uniCloud/cloudfunctions/common/uni-id/package-lock.json
+26
-10
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
...uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
+14
-14
未找到文件。
.gitignore
浏览文件 @
e09da5ed
...
...
@@ -2,8 +2,6 @@ unpackage/
.hbuilderx
node_modules
.DS_Store
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/config.json
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
pages/grid/banner.json
pages/list/list.json
manifest.json
\ No newline at end of file
README.md
浏览文件 @
e09da5ed
> baseapp目前还处于内测阶段,内测QQ群号:869926521,欢迎大家加入!内测期间享受有疑问实时解答的福利。
> 内测群反馈的已知问题,正在修复中
-
[ ] 账号登录限制11位了。注册的时候好像没限制
-
[ ] 缺了小程序授权登陆
-
[ ] 服务端,应当加个空的config配置方便二开使用
-
[ ] 密码注册把pwd2也存在本地了,暴露了密码
### 介绍
base app,是一个云端一体的、集成了商用项目开发常见功能的项目模板。
如果说uniCloud admin是管理端项目的基础模板,那么base app则是用户端、尤其是移动端的基础模板。
...
...
@@ -7,8 +13,7 @@ base app,是一个云端一体的、集成了商用项目开发常见功能的
#### 项目背景
我们一直想出一个结合uni-app、uniCloud和openDB以及uni-id和uniCloud admin等,uni全家桶的项目模板;
为了照顾各类应用的开发者,我们最终取交集推出了baseapp.
无论是什么类型的应用都需要这些功能。换句话来说开发者直接基于baseapp开发项目会事半功倍!
为了照顾各类应用的开发者,我们取交最终集罗列了如下功能,发现这些就是除业务逻辑外的项目基本功能并把它命名为baseapp。
### base app集成的功能包括:
1.
个人中心:登录注册(含用户名密码登录、手机号验证码登录、app一键登陆、微信登录、Apple登录、支付宝小程序登录)、修改密码、忘记密码、头像更换、昵称修改、积分查看、指纹绑定、退出
...
...
@@ -40,13 +45,13 @@ base app + uniCloud admin,应用开发从未如此简单快捷!
判断入口页是否为强制登陆页面,Y.检测本地的token是否有效(存在且并未过期)否则跳转到登陆页面
#### 应用配置
##### 前端配置
baseconfig
manifest.json
##### 服务端配置
uni-config-center
提下直接在uni-id下的config配置
| |_cloudfunctions
| |_common
| |_uni-config-center
| |_uni-id
| |_config.json
|- baseconfig
|- manifest.json
### 界面如下:
...
...
manifest.json
浏览文件 @
e09da5ed
{
"name"
:
"base-app"
,
"appid"
:
""
,
"appid"
:
"
__UNI__03B096E
"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
...
...
@@ -74,31 +74,15 @@
"sdkConfigs"
:
{
"oauth"
:
{
"univerify"
:
{},
"weixin"
:
{
"appid"
:
""
,
"appsecret"
:
""
,
"UniversalLinks"
:
""
},
"apple"
:
{}
},
"ad"
:
{},
"share"
:
{
"weixin"
:
{
"appid"
:
""
,
"UniversalLinks"
:
""
}
},
"share"
:
{},
"geolocation"
:
{},
"push"
:
{
"unipush"
:
{}
},
"payment"
:
{
"weixin"
:
{
"__platform__"
:
[
"ios"
,
"android"
],
"appid"
:
""
,
"UniversalLinks"
:
""
}
}
"payment"
:
{}
}
},
"nvueLaunchMode"
:
""
...
...
@@ -112,8 +96,8 @@
"urlCheck"
:
false
,
"es6"
:
true
},
"usingComponents"
:
true
,
"betterScopedSlots"
:
true
"usingComponents"
:
true
,
"betterScopedSlots"
:
true
},
"mp-alipay"
:
{
"usingComponents"
:
true
...
...
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
0 → 100644
浏览文件 @
e09da5ed
{
"passwordSecret"
:
"passwordSecret-demo"
,
"tokenSecret"
:
"tokenSecret-demo"
,
"tokenExpiresIn"
:
7200
,
"tokenExpiresThreshold"
:
600
,
"passwordErrorLimit"
:
6
,
"bindTokenToDevice"
:
true
,
"passwordErrorRetryTime"
:
3600
,
"autoSetInviteCode"
:
false
,
"forceInviteCode"
:
false
,
"app-plus"
:
{
"tokenExpiresIn"
:
2592000
,
"oauth"
:
{
"weixin"
:
{
"appid"
:
""
,
"appsecret"
:
""
},
"apple"
:
{
"bundleId"
:
""
}
}
},
"mp-weixin"
:
{
"oauth"
:
{
"weixin"
:
{
"appid"
:
""
,
"appsecret"
:
""
}
}
},
"mp-alipay"
:
{
"oauth"
:
{
"alipay"
:
{
"appid"
:
"alipay appid"
,
"privateKey"
:
"alipay privateKey"
}
}
},
"service"
:
{
"sms"
:
{
"name"
:
""
,
"codeExpiresIn"
:
300
,
"smsKey"
:
""
,
"smsSecret"
:
""
},
"univerify"
:
{
"appid"
:
""
,
"apiKey"
:
""
,
"apiSecret"
:
""
}
}
}
\ No newline at end of file
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package-lock.json
浏览文件 @
e09da5ed
{
"name"
:
"uni-id"
,
"version"
:
"3.0.12"
,
"lockfileVersion"
:
2
,
"requires"
:
true
,
"packages"
:
{
""
:
{
"version"
:
"3.0.12"
,
"license"
:
"Apache-2.0"
}
}
"name"
:
"uni-id"
,
"version"
:
"3.0.12"
,
"lockfileVersion"
:
2
,
"requires"
:
true
,
"packages"
:
{
""
:
{
"version"
:
"3.0.12"
,
"license"
:
"Apache-2.0"
,
"dependencies"
:
{
"uni-config-center"
:
"file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
},
"../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
:
{
"version"
:
"0.0.2"
,
"license"
:
"Apache-2.0"
},
"node_modules/uni-config-center"
:
{
"resolved"
:
"../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
,
"link"
:
true
}
},
"dependencies"
:
{
"uni-config-center"
:
{
"version"
:
"file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
}
}
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/package.json
浏览文件 @
e09da5ed
{
"name"
:
"uni-id"
,
"version"
:
"3.0.12"
,
"description"
:
"uni-id for uniCloud"
,
"main"
:
"index.js"
,
"homepage"
:
"https://uniapp.dcloud.io/uniCloud/uni-id"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://gitee.com/dcloud/uni-id.git"
},
"author"
:
""
,
"license"
:
"Apache-2.0"
,
"dependencies"
:
{
"uni-config-center"
:
"file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
"name"
:
"uni-id"
,
"version"
:
"3.0.12"
,
"description"
:
"uni-id for uniCloud"
,
"main"
:
"index.js"
,
"homepage"
:
"https://uniapp.dcloud.io/uniCloud/uni-id"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://gitee.com/dcloud/uni-id.git"
},
"author"
:
""
,
"license"
:
"Apache-2.0"
,
"dependencies"
:
{
"uni-config-center"
:
"file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录