-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 接入wework,feishu,wechat,dingtalk的pc认证登录。 [权限专题相关](https://docs.p…
- Loading branch information
Showing
23 changed files
with
70,156 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## 0.1.4 | ||
|
||
Associated Task: [#281165](https://projectmanage.netease-official.lcap.163yun.com/dashboard/TaskDetail?id=2811653205430528) | ||
|
||
### ✨Features | ||
|
||
- [b568202](https://github.com/vusion/cloud-ui-materials/commit/b568202d4fd835f8c1ea9f7844ec91ae32d373dc) Thanks [ncqwer](https://github.com/ncqwer) ! - 接入wework,feishu,wechat,dingtalk的pc认证登录。 [权限专题相关](https://docs.popo.netease.com/team/pc/0u6nqau4/pageDetail/3a61e1408f9d4006bc12961c17c1c2b5?appVersion=3.87.0&deviceType=4&popolocale=zh-CN&popo_hidenativebar=1&popo_noindicator=1&disposable_login_token=1) | ||
|
10 changes: 10 additions & 0 deletions
10
packages/cw/cw_oauth_library/components/cw-oauth-page-embed/api.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- name: cw-oauth-page-embed | ||
title: oauth内嵌组件 | ||
type: pc | ||
belong: component | ||
labels: [Runtime] | ||
attrs: | ||
- name: value | ||
type: string | ||
default: 请在这里编写代码 | ||
description: 需要传入的值 |
5 changes: 5 additions & 0 deletions
5
packages/cw/cw_oauth_library/components/cw-oauth-page-embed/docs/blocks.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### 基本用法 | ||
|
||
```html | ||
<cw-oauth-page-embed></cw-oauth-page-embed> | ||
``` |
5 changes: 5 additions & 0 deletions
5
packages/cw/cw_oauth_library/components/cw-oauth-page-embed/docs/examples.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### 基本用法 | ||
|
||
```html | ||
<cw-oauth-page-embed></cw-oauth-page-embed> | ||
``` |
3 changes: 3 additions & 0 deletions
3
packages/cw/cw_oauth_library/components/cw-oauth-page-embed/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import CwOauthPageEmbed from './index.vue'; | ||
|
||
export default CwOauthPageEmbed; |
51 changes: 51 additions & 0 deletions
51
packages/cw/cw_oauth_library/components/cw-oauth-page-embed/index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<template> | ||
<div :class="$style.root"> | ||
<iframe | ||
v-if="iframeSrc" | ||
:src="iframeSrc" | ||
:class="$style.content" | ||
referrerpolicy="origin" | ||
frameborder="0" | ||
allowtransparency="true"></iframe> | ||
<div v-else :class="$style.content">正在获取配置参数</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import getOauth2Url from '../../logics/getOauth2Url'; | ||
import getOauthCodeAndState from '../../logics/getOauthCodeAndState'; | ||
export default { | ||
name: 'cw-oauth-page-embed', | ||
props: { | ||
currentSrc: { | ||
type: String, | ||
default: '请在这里编写代码', | ||
}, | ||
}, | ||
data() { | ||
return { | ||
iframeSrc: null, | ||
}; | ||
}, | ||
created() { | ||
getOauth2Url('wework').then((v) => { | ||
this.iframeSrc = v; | ||
}); | ||
// const a = getOauthCodeAndState(); | ||
// console.log('🚀 ~ file: index.vue:37 ~ created ~ a:', a); | ||
}, | ||
}; | ||
</script> | ||
|
||
<style module> | ||
.root { | ||
height: 416px; | ||
width: 480px; | ||
} | ||
.content { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> |
Oops, something went wrong.