diff --git a/src/frontend/devops-repository/package.json b/src/frontend/devops-repository/package.json index dfd6b107db..0d261023f9 100644 --- a/src/frontend/devops-repository/package.json +++ b/src/frontend/devops-repository/package.json @@ -17,8 +17,7 @@ "marked": "^4.0.8", "qrcode": "^1.5.0", "vue-i18n": "^8.18.1", - "vuedraggable": "^2.24.1", - "yarn": "^1.22.19" + "vuedraggable": "^2.24.1" }, "devDependencies": { "copy-webpack-plugin": "9.0.1", diff --git a/src/frontend/devops-repository/src/store/actions/oauth.js b/src/frontend/devops-repository/src/store/actions/oauth.js new file mode 100644 index 0000000000..b5ce2756ff --- /dev/null +++ b/src/frontend/devops-repository/src/store/actions/oauth.js @@ -0,0 +1,20 @@ +import Vue from 'vue' + +const prefix = 'auth/api/oauth' + +export default { + getAuthorizeInfo (_, { clientId, state, scope, nonce }) { + console.log(clientId, state, scope, nonce) + return Vue.prototype.$ajax.get( + `${prefix}/authorize`, + { + params: { + client_id: clientId, + state, + scope, + nonce + } + } + ) + } +} diff --git a/src/frontend/devops-repository/src/views/oauth/index.vue b/src/frontend/devops-repository/src/views/oauth/index.vue new file mode 100644 index 0000000000..2e885f86f6 --- /dev/null +++ b/src/frontend/devops-repository/src/views/oauth/index.vue @@ -0,0 +1,92 @@ + + + + + 授权 + + + 请授权应用{{ appId }}申请访问您({{ userId }})的帐户: + + + 项目权限 + 仓库权限 + 节点权限 + + + 确认授权 + + + + + + +
请授权应用{{ appId }}申请访问您({{ userId }})的帐户: