Skip to content

Commit 2b8383c

Browse files
authored
Merge pull request #38 from ReLive27/main
feat(app): add application create dialog
2 parents 600a641 + 9535fb5 commit 2b8383c

File tree

3 files changed

+454
-39
lines changed

3 files changed

+454
-39
lines changed

web/src/views/app/create.vue

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -72,27 +72,28 @@
7272

7373
</div>
7474

75-
<!--单页应用程序创建弹框-->
76-
<create-spa-dialog
77-
:visible.sync="showSpaDialog"
75+
<!--应用程序创建弹框-->
76+
<create-app-dialog
77+
:visible.sync="showAppDialog"
78+
:app-type="appType"
7879
@created="onCreated"
7980
/>
8081
</div>
8182
</template>
8283

8384
<script>
84-
import CreateSpaDialog from './createSpaDialog.vue'
85+
import CreateAppDialog from './createAppDialog.vue'
8586
8687
export default {
8788
name: 'AppCreatePage',
88-
components: { CreateSpaDialog },
89+
components: { CreateAppDialog },
8990
9091
data() {
9192
return {
9293
keyword: '',
9394
activeTag: '全部',
9495
95-
protocolTags: ['全部', 'OIDC', 'CAS', 'OAuth2'],
96+
protocolTags: ['全部', 'OIDC', 'OAuth2'],
9697
9798
apps: [
9899
{
@@ -105,19 +106,20 @@ export default {
105106
require('@/assets/img/vuejs.svg'),
106107
require('@/assets/img/javascript.svg')
107108
],
108-
proto: ['OIDC']
109+
proto: ['OIDC'],
110+
appType: 'SPA'
109111
},
110112
{
111113
id: 2,
112-
name: '传统 Web 应用程序',
113-
desc: '在服务器端运行应用程序逻辑的 Web 应用程序',
114-
icon: require('@/assets/img/web.svg'),
114+
name: '基于标准的应用程序',
115+
desc: '使用标准协议构建的应用',
116+
icon: require('@/assets/img/std.svg'),
115117
tech: [
116-
require('@/assets/img/java.svg'),
117-
require('@/assets/img/python.svg'),
118-
require('@/assets/img/go.svg')
118+
require('@/assets/img/oauth.svg'),
119+
require('@/assets/img/openid.png')
119120
],
120-
proto: ['OIDC', 'SAML']
121+
proto: ['OIDC', 'OAuth2'],
122+
appType: 'STANDARD'
121123
},
122124
{
123125
id: 3,
@@ -129,7 +131,8 @@ export default {
129131
require('@/assets/img/ios.png'),
130132
require('@/assets/img/flutter.svg')
131133
],
132-
proto: ['OIDC']
134+
proto: ['OIDC'],
135+
appType: 'MOBILE'
133136
},
134137
{
135138
id: 4,
@@ -139,22 +142,12 @@ export default {
139142
tech: [
140143
require('@/assets/img/oauth.svg')
141144
],
142-
proto: ['OAuth2']
143-
},
144-
{
145-
id: 5,
146-
name: '基于标准的应用程序',
147-
desc: '使用标准协议构建的应用。',
148-
icon: require('@/assets/img/std.svg'),
149-
tech: [
150-
require('@/assets/img/oauth.svg'),
151-
require('@/assets/img/openid.png'),
152-
require('@/assets/img/cas.png')
153-
],
154-
proto: ['OIDC', 'CAS', 'OAuth2']
145+
proto: ['OAuth2'],
146+
appType: 'M2M'
155147
}
156148
],
157-
showSpaDialog: false
149+
showAppDialog: false,
150+
appType: ''
158151
}
159152
},
160153
@@ -177,9 +170,8 @@ export default {
177170
},
178171
179172
selectApp(item) {
180-
if (item.id === 1) {
181-
this.showSpaDialog = true
182-
}
173+
this.appType = item.appType
174+
this.showAppDialog = true
183175
},
184176
185177
goBack() {

0 commit comments

Comments
 (0)