mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
1 line
23 KiB
JavaScript
Vendored
1 line
23 KiB
JavaScript
Vendored
(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[822],{73739:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const a={data:function(){return{tokens:[]}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens()},getTokens:function(){var t=this;axios.get("/oauth/tokens").then((function(e){t.tokens=e.data}))},revoke:function(t){var e=this;axios.delete("/oauth/tokens/"+t.id).then((function(t){e.getTokens()}))}}}},20204:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(19755);function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}const o={data:function(){return{clients:[],createForm:{errors:[],name:"",redirect:""},editForm:{errors:[],name:"",redirect:""}}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getClients(),a("#modal-create-client").on("shown.bs.modal",(function(){a("#create-client-name").focus()})),a("#modal-edit-client").on("shown.bs.modal",(function(){a("#edit-client-name").focus()}))},getClients:function(){var t=this;axios.get("/oauth/clients").then((function(e){t.clients=e.data}))},showCreateClientForm:function(){a("#modal-create-client").modal("show")},store:function(){this.persistClient("post","/oauth/clients",this.createForm,"#modal-create-client")},edit:function(t){this.editForm.id=t.id,this.editForm.name=t.name,this.editForm.redirect=t.redirect,a("#modal-edit-client").modal("show")},update:function(){this.persistClient("put","/oauth/clients/"+this.editForm.id,this.editForm,"#modal-edit-client")},persistClient:function(t,e,s,o){var r=this;s.errors=[],axios[t](e,s).then((function(t){r.getClients(),s.name="",s.redirect="",s.errors=[],a(o).modal("hide")})).catch((function(t){"object"===n(t.response.data)?s.errors=_.flatten(_.toArray(t.response.data.errors)):s.errors=["Something went wrong. Please try again."]}))},destroy:function(t){var e=this;axios.delete("/oauth/clients/"+t.id).then((function(t){e.getClients()}))}}}},31518:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(19755);function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}const o={data:function(){return{accessToken:null,tokens:[],scopes:[],form:{name:"",scopes:[],errors:[]}}},ready:function(){this.prepareComponent()},mounted:function(){this.prepareComponent()},methods:{prepareComponent:function(){this.getTokens(),this.getScopes(),a("#modal-create-token").on("shown.bs.modal",(function(){a("#create-token-name").focus()}))},getTokens:function(){var t=this;axios.get("/oauth/personal-access-tokens").then((function(e){t.tokens=e.data}))},getScopes:function(){var t=this;axios.get("/oauth/scopes").then((function(e){t.scopes=e.data}))},showCreateTokenForm:function(){a("#modal-create-token").modal("show")},store:function(){var t=this;this.accessToken=null,this.form.errors=[],axios.post("/oauth/personal-access-tokens",this.form).then((function(e){t.form.name="",t.form.scopes=[],t.form.errors=[],t.tokens.push(e.data.token),t.showAccessToken(e.data.accessToken)})).catch((function(e){"object"===n(e.response.data)?t.form.errors=_.flatten(_.toArray(e.response.data.errors)):t.form.errors=["Something went wrong. Please try again."]}))},toggleScope:function(t){this.scopeIsAssigned(t)?this.form.scopes=_.reject(this.form.scopes,(function(e){return e==t})):this.form.scopes.push(t)},scopeIsAssigned:function(t){return _.indexOf(this.form.scopes,t)>=0},showAccessToken:function(t){a("#modal-create-token").modal("hide"),this.accessToken=t,a("#modal-access-token").modal("show")},revoke:function(t){var e=this;axios.delete("/oauth/personal-access-tokens/"+t.id).then((function(t){e.getTokens()}))}}}},89831:(t,e,s)=>{Vue.component("passport-clients",s(12638).default),Vue.component("passport-authorized-clients",s(95702).default),Vue.component("passport-personal-access-tokens",s(61720).default)},31388:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),n=s.n(a)()((function(t){return t[1]}));n.push([t.id,".action-link[data-v-1b737fda]{cursor:pointer}",""]);const o=n},57697:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),n=s.n(a)()((function(t){return t[1]}));n.push([t.id,".action-link[data-v-d71fe564]{cursor:pointer}",""]);const o=n},54094:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),n=s.n(a)()((function(t){return t[1]}));n.push([t.id,".action-link[data-v-bf6d3a58]{cursor:pointer}",""]);const o=n},14919:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(93379),n=s.n(a),o=s(31388),r={insert:"head",singleton:!1};n()(o.default,r);const i=o.default.locals||{}},37258:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(93379),n=s.n(a),o=s(57697),r={insert:"head",singleton:!1};n()(o.default,r);const i=o.default.locals||{}},72460:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(93379),n=s.n(a),o=s(54094),r={insert:"head",singleton:!1};n()(o.default,r);const i=o.default.locals||{}},95702:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(80235),n=s(35775),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(51467);const r=(0,s(51900).default)(n.default,a.render,a.staticRenderFns,!1,null,"1b737fda",null).exports},12638:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(17338),n=s(23537),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(52236);const r=(0,s(51900).default)(n.default,a.render,a.staticRenderFns,!1,null,"d71fe564",null).exports},61720:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(69914),n=s(81303),o={};for(const t in n)"default"!==t&&(o[t]=()=>n[t]);s.d(e,o);s(46246);const r=(0,s(51900).default)(n.default,a.render,a.staticRenderFns,!1,null,"bf6d3a58",null).exports},35775:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(73739),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},23537:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(20204),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},81303:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(31518),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n);const o=a.default},51467:(t,e,s)=>{"use strict";s.r(e);var a=s(14919),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},52236:(t,e,s)=>{"use strict";s.r(e);var a=s(37258),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},46246:(t,e,s)=>{"use strict";s.r(e);var a=s(72460),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},80235:(t,e,s)=>{"use strict";s.r(e);var a=s(33873),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},17338:(t,e,s)=>{"use strict";s.r(e);var a=s(48831),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},69914:(t,e,s)=>{"use strict";s.r(e);var a=s(36120),n={};for(const t in a)"default"!==t&&(n[t]=()=>a[t]);s.d(e,n)},33873:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>n});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.tokens.length>0?s("div",[s("div",{staticClass:"card card-default mb-4"},[s("div",{staticClass:"card-header font-weight-bold bg-white"},[t._v("Authorized Applications")]),t._v(" "),s("div",{staticClass:"card-body"},[s("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),s("tbody",t._l(t.tokens,(function(e){return s("tr",[s("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.client.name)+"\n ")]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[e.scopes.length>0?s("span",[t._v("\n "+t._s(e.scopes.join(", "))+"\n ")]):t._e()]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[s("a",{staticClass:"action-link text-danger",on:{click:function(s){return t.revoke(e)}}},[t._v("\n Revoke\n ")])])])})),0)])])])]):t._e()])},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Scopes")]),t._v(" "),s("th")])])}]},48831:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>n});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card card-default mb-4"},[s("div",{staticClass:"card-header font-weight-bold bg-white"},[s("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[s("span",[t._v("\n OAuth Clients\n ")]),t._v(" "),s("a",{staticClass:"action-link",attrs:{tabindex:"-1"},on:{click:t.showCreateClientForm}},[t._v("\n Create New Client\n ")])])]),t._v(" "),s("div",{staticClass:"card-body"},[0===t.clients.length?s("p",{staticClass:"mb-0 font-weight-bold text-center lead p-5"},[t._v("\n You have not created any OAuth clients.\n ")]):t._e(),t._v(" "),t.clients.length>0?s("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),s("tbody",t._l(t.clients,(function(e){return s("tr",[s("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.id)+"\n ")]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[s("code",[t._v(t._s(e.secret))])]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[s("a",{staticClass:"btn btn-outline-secondary btn-sm py-1",attrs:{tabindex:"-1"},on:{click:function(s){return t.edit(e)}}},[t._v("\n Edit\n ")])]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[s("a",{staticClass:"btn btn-outline-danger btn-sm py-1",attrs:{href:""},on:{click:function(s){return t.destroy(e)}}},[t._v("\n Delete\n ")])])])})),0)]):t._e()])]),t._v(" "),s("div",{staticClass:"modal fade",attrs:{id:"modal-create-client",tabindex:"-1",role:"dialog"}},[s("div",{staticClass:"modal-dialog"},[s("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),s("div",{staticClass:"modal-body"},[t.createForm.errors.length>0?s("div",{staticClass:"alert alert-danger"},[t._m(2),t._v(" "),s("br"),t._v(" "),s("ul",t._l(t.createForm.errors,(function(e){return s("li",[t._v("\n "+t._s(e)+"\n ")])})),0)]):t._e(),t._v(" "),s("form",{attrs:{role:"form"}},[s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-3 col-form-label"},[t._v("Name")]),t._v(" "),s("div",{staticClass:"col-md-9"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.name,expression:"createForm.name"}],staticClass:"form-control",attrs:{id:"create-client-name",type:"text",autocomplete:"off"},domProps:{value:t.createForm.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.store.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.createForm,"name",e.target.value)}}}),t._v(" "),s("span",{staticClass:"form-text text-muted"},[t._v("\n Something your users will recognize and trust.\n ")])])]),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-3 col-form-label"},[t._v("Redirect URL")]),t._v(" "),s("div",{staticClass:"col-md-9"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.createForm.redirect,expression:"createForm.redirect"}],staticClass:"form-control",attrs:{type:"text",name:"redirect"},domProps:{value:t.createForm.redirect},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.store.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.createForm,"redirect",e.target.value)}}}),t._v(" "),s("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's authorization callback URL.\n ")])])]),t._v(" "),t._m(5)])]),t._v(" "),s("div",{staticClass:"modal-footer"},[s("button",{staticClass:"btn btn-secondary font-weight-bold",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),s("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:t.store}},[t._v("\n Create\n ")])])])])]),t._v(" "),s("div",{staticClass:"modal fade",attrs:{id:"modal-edit-client",tabindex:"-1",role:"dialog"}},[s("div",{staticClass:"modal-dialog"},[s("div",{staticClass:"modal-content"},[t._m(6),t._v(" "),s("div",{staticClass:"modal-body"},[t.editForm.errors.length>0?s("div",{staticClass:"alert alert-danger"},[t._m(7),t._v(" "),s("br"),t._v(" "),s("ul",t._l(t.editForm.errors,(function(e){return s("li",[t._v("\n "+t._s(e)+"\n ")])})),0)]):t._e(),t._v(" "),s("form",{attrs:{role:"form"}},[s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-3 col-form-label"},[t._v("Name")]),t._v(" "),s("div",{staticClass:"col-md-9"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.name,expression:"editForm.name"}],staticClass:"form-control",attrs:{id:"edit-client-name",type:"text"},domProps:{value:t.editForm.name},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.editForm,"name",e.target.value)}}}),t._v(" "),s("span",{staticClass:"form-text text-muted"},[t._v("\n Something your users will recognize and trust.\n ")])])]),t._v(" "),s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-3 col-form-label"},[t._v("Redirect URL")]),t._v(" "),s("div",{staticClass:"col-md-9"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.editForm.redirect,expression:"editForm.redirect"}],staticClass:"form-control",attrs:{type:"text",name:"redirect"},domProps:{value:t.editForm.redirect},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.editForm,"redirect",e.target.value)}}}),t._v(" "),s("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's authorization callback URL.\n ")])])])])]),t._v(" "),s("div",{staticClass:"modal-footer"},[s("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),s("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.update}},[t._v("\n Save Changes\n ")])])])])])])},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("thead",[s("tr",[s("th",[t._v("Client ID")]),t._v(" "),s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Secret")]),t._v(" "),s("th"),t._v(" "),s("th")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-header"},[s("h4",{staticClass:"modal-title"},[t._v("\n Create Client\n ")]),t._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("×")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0"},[s("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-3 col-form-label"},[t._v("Description")]),t._v(" "),s("div",{staticClass:"col-md-9"},[s("textarea",{staticClass:"form-control",attrs:{rows:"3"}}),t._v(" "),s("span",{staticClass:"form-text text-muted"},[t._v("\n A brief description of your app\n ")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-3 col-form-label"},[t._v("Website")]),t._v(" "),s("div",{staticClass:"col-md-9"},[s("input",{staticClass:"form-control",attrs:{type:"text",autocomplete:"off"}}),t._v(" "),s("span",{staticClass:"form-text text-muted"},[t._v("\n Your website url\n ")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-3 col-form-label"},[t._v("Scopes")]),t._v(" "),s("div",{staticClass:"col-md-9"},[s("div",{staticClass:"custom-control custom-switch"},[s("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customSwitch1"}}),t._v(" "),s("label",{staticClass:"custom-control-label",attrs:{for:"customSwitch1"}},[t._v("Read")])]),t._v(" "),s("div",{staticClass:"custom-control custom-switch"},[s("input",{staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customSwitch2"}}),t._v(" "),s("label",{staticClass:"custom-control-label",attrs:{for:"customSwitch2"}},[t._v("Write")])]),t._v(" "),s("span",{staticClass:"form-text text-muted"},[t._v("\n Your application's scopes.\n ")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-header"},[s("h4",{staticClass:"modal-title"},[t._v("\n Edit Client\n ")]),t._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("×")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0"},[s("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])}]},36120:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>n});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",[s("div",{staticClass:"card card-default mb-4"},[s("div",{staticClass:"card-header font-weight-bold bg-white"},[s("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[s("span",[t._v("\n Personal Access Tokens\n ")]),t._v(" "),s("a",{staticClass:"action-link",attrs:{tabindex:"-1"},on:{click:t.showCreateTokenForm}},[t._v("\n Create New Token\n ")])])]),t._v(" "),s("div",{staticClass:"card-body"},[0===t.tokens.length?s("p",{staticClass:"mb-0"},[t._v("\n You have not created any personal access tokens.\n ")]):t._e(),t._v(" "),t.tokens.length>0?s("table",{staticClass:"table table-borderless mb-0"},[t._m(0),t._v(" "),s("tbody",t._l(t.tokens,(function(e){return s("tr",[s("td",{staticStyle:{"vertical-align":"middle"}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),s("td",{staticStyle:{"vertical-align":"middle"}},[s("a",{staticClass:"action-link text-danger",on:{click:function(s){return t.revoke(e)}}},[t._v("\n Delete\n ")])])])})),0)]):t._e()])])]),t._v(" "),s("div",{staticClass:"modal fade",attrs:{id:"modal-create-token",tabindex:"-1",role:"dialog"}},[s("div",{staticClass:"modal-dialog"},[s("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),s("div",{staticClass:"modal-body"},[t.form.errors.length>0?s("div",{staticClass:"alert alert-danger"},[t._m(2),t._v(" "),s("br"),t._v(" "),s("ul",t._l(t.form.errors,(function(e){return s("li",[t._v("\n "+t._s(e)+"\n ")])})),0)]):t._e(),t._v(" "),s("form",{attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),t.store.apply(null,arguments)}}},[s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-4 col-form-label"},[t._v("Name")]),t._v(" "),s("div",{staticClass:"col-md-6"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{id:"create-token-name",type:"text",name:"name",autocomplete:"off"},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),t.scopes.length>0?s("div",{staticClass:"form-group row"},[s("label",{staticClass:"col-md-4 col-form-label"},[t._v("Scopes")]),t._v(" "),s("div",{staticClass:"col-md-6"},t._l(t.scopes,(function(e){return s("div",[s("div",{staticClass:"checkbox"},[s("label",[s("input",{attrs:{type:"checkbox"},domProps:{checked:t.scopeIsAssigned(e.id)},on:{click:function(s){return t.toggleScope(e.id)}}}),t._v("\n\n "+t._s(e.id)+"\n ")])])])})),0)]):t._e()])]),t._v(" "),s("div",{staticClass:"modal-footer"},[s("button",{staticClass:"btn btn-secondary font-weight-bold",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),s("button",{staticClass:"btn btn-primary font-weight-bold",attrs:{type:"button"},on:{click:t.store}},[t._v("\n Create\n ")])])])])]),t._v(" "),s("div",{staticClass:"modal fade",attrs:{id:"modal-access-token",tabindex:"-1",role:"dialog"}},[s("div",{staticClass:"modal-dialog"},[s("div",{staticClass:"modal-content"},[t._m(3),t._v(" "),s("div",{staticClass:"modal-body"},[s("p",[t._v("\n Here is your new personal access token. This is the only time it will be shown so don't lose it!\n You may now use this token to make API requests.\n ")]),t._v(" "),s("textarea",{staticClass:"form-control",attrs:{rows:"10"}},[t._v(t._s(t.accessToken))])]),t._v(" "),t._m(4)])])])])},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-header"},[s("h4",{staticClass:"modal-title"},[t._v("\n Create Token\n ")]),t._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("×")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0"},[s("strong",[t._v("Whoops!")]),t._v(" Something went wrong!")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-header"},[s("h4",{staticClass:"modal-title"},[t._v("\n Personal Access Token\n ")]),t._v(" "),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}},[t._v("×")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-footer"},[s("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])}]}},t=>{t.O(0,[898],(()=>{return e=89831,t(t.s=e);var e}));t.O()}]); |