From bb7b335491e97a071efa4dc119cee8c9fcc9dd88 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Aug 2018 18:38:02 +0900 Subject: nameId廃止 & アプリ作成時にシークレットを返すように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/dev/views/new-app.vue | 41 ------------------------------------ 1 file changed, 41 deletions(-) (limited to 'src/client/app/dev') diff --git a/src/client/app/dev/views/new-app.vue b/src/client/app/dev/views/new-app.vue index 87b35db259..7321df00c0 100644 --- a/src/client/app/dev/views/new-app.vue +++ b/src/client/app/dev/views/new-app.vue @@ -5,16 +5,6 @@ - - -

%fa:spinner .pulse .fw%確認しています...

-

%fa:fw check%利用できます

-

%fa:fw exclamation-triangle%既に利用されています

-

%fa:fw exclamation-triangle%通信エラー

-

%fa:fw exclamation-triangle%a~z、A~Z、0~9、_が使えます

-

%fa:fw exclamation-triangle%1文字以上でお願いします!

-

%fa:fw exclamation-triangle%30文字以内でお願いします

-
@@ -50,47 +40,16 @@ export default Vue.extend({ data() { return { name: '', - nid: '', description: '', cb: '', nidState: null, permission: [] }; }, - watch: { - nid() { - if (this.nid == null || this.nid == '') { - this.nidState = null; - return; - } - - const err = - !this.nid.match(/^[a-zA-Z0-9_]+$/) ? 'invalid-format' : - this.nid.length < 1 ? 'min-range' : - this.nid.length > 30 ? 'max-range' : - null; - - if (err) { - this.nidState = err; - return; - } - - this.nidState = 'wait'; - - (this as any).api('app/name_id/available', { - nameId: this.nid - }).then(result => { - this.nidState = result.available ? 'ok' : 'unavailable'; - }).catch(err => { - this.nidState = 'error'; - }); - } - }, methods: { onSubmit() { (this as any).api('app/create', { name: this.name, - nameId: this.nid, description: this.description, callbackUrl: this.cb, permission: this.permission -- cgit v1.2.3-freya