blob: f8f1f647a15d685224bec908634b0eaef2e3d1b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import Vue from 'vue';
import OAuthSecret from './components/oauth_secret.vue';
export const initOAuthApplicationSecret = () => {
const el = document.querySelector('#js-oauth-application-secret');
if (!el) {
return null;
}
const { initialSecret, renewPath } = el.dataset;
return new Vue({
el,
name: 'OAuthSecretRoot',
provide: { initialSecret, renewPath },
render(h) {
return h(OAuthSecret);
},
});
};
|