Skip to content

Commit

Permalink
feat: 接入wework,feishu,wechat,dingtalk的pc认证登录。 [权限专题相关](https://docs.p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ncqwer committed Mar 7, 2024
1 parent e2e4c1a commit d7382ae
Show file tree
Hide file tree
Showing 23 changed files with 70,156 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ yarn-error.log*
# package-lock.json
*/**/yarn.lock
*/yarn.lock
*/.env.local
*/**/.env.local

# Cache
.DS_Store
Expand Down
8 changes: 8 additions & 0 deletions packages/cw/cw_oauth_library/CHANGELOG.md
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)

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: 需要传入的值
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### 基本用法

```html
<cw-oauth-page-embed></cw-oauth-page-embed>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### 基本用法

```html
<cw-oauth-page-embed></cw-oauth-page-embed>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import CwOauthPageEmbed from './index.vue';

export default CwOauthPageEmbed;
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>
Loading

0 comments on commit d7382ae

Please sign in to comment.