2019-10-03 18:08:39 +03:00
|
|
|
import { loadState } from '@nextcloud/initial-state'
|
2018-10-08 15:03:22 +03:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
2018-10-15 13:01:42 +03:00
|
|
|
import AdminTwoFactor from './components/AdminTwoFactor.vue'
|
2019-01-10 18:04:13 +03:00
|
|
|
import store from './store/admin-security'
|
2018-10-15 13:01:42 +03:00
|
|
|
|
2019-09-25 19:19:42 +03:00
|
|
|
// eslint-disable-next-line camelcase
|
2018-10-15 13:01:42 +03:00
|
|
|
__webpack_nonce__ = btoa(OC.requestToken)
|
2018-10-08 15:03:22 +03:00
|
|
|
|
2019-09-25 19:19:42 +03:00
|
|
|
Vue.prototype.t = t
|
2018-10-08 15:03:22 +03:00
|
|
|
|
2019-02-26 21:43:59 +03:00
|
|
|
// Not used here but required for legacy templates
|
2019-09-25 19:19:42 +03:00
|
|
|
window.OC = window.OC || {}
|
|
|
|
window.OC.Settings = window.OC.Settings || {}
|
2019-02-26 21:43:59 +03:00
|
|
|
|
2019-01-10 18:04:13 +03:00
|
|
|
store.replaceState(
|
2019-10-03 18:08:39 +03:00
|
|
|
loadState('settings', 'mandatory2FAState')
|
2019-01-10 18:04:13 +03:00
|
|
|
)
|
|
|
|
|
2018-10-15 13:01:42 +03:00
|
|
|
const View = Vue.extend(AdminTwoFactor)
|
2019-01-10 18:04:13 +03:00
|
|
|
new View({
|
2019-11-13 15:05:10 +03:00
|
|
|
store,
|
2019-01-10 18:04:13 +03:00
|
|
|
}).$mount('#two-factor-auth-settings')
|