n8n-editor-ui
Version:
Workflow Editor UI for n8n
56 lines (55 loc) • 3.07 kB
JavaScript
;
(function () {
System.register(["./vue.runtime.esm-bundler-legacy--Sn1h8On.js", "./_MapCache-legacy-DlYNX_X1.js", "./truncate-legacy-BGje52Or.js", "./icon-legacy-CqVXaCIS.js", "./empty-legacy-CA9D6itE.js", "./useTelemetry-legacy-B3pzzkAE.js", "./useToast-legacy-C4Vu5mt9.js", "./constants-legacy-TKxWCqvM.js", "./merge-legacy-8xjIc_ts.js", "./_baseOrderBy-legacy-CB2Dh5d_.js", "./dateformat-legacy-C4HUJTCr.js", "./useDebounce-legacy-CqZ-fJEm.js", "./useExternalHooks-legacy-8pg6K3ln.js", "./useStyles-legacy-E8NPEyeD.js"], function (_export, _context) {
"use strict";
var createElementBlock, defineComponent, onMounted, openBlock, useI18n, useRouter, useUsersStore, useToast, VIEWS, SignoutView_vue_vue_type_script_setup_true_lang_default, SignoutView_default;
return {
setters: [function (_vueRuntimeEsmBundlerLegacy003Js) {
createElementBlock = _vueRuntimeEsmBundlerLegacy003Js.D;
defineComponent = _vueRuntimeEsmBundlerLegacy003Js.P;
onMounted = _vueRuntimeEsmBundlerLegacy003Js.Z;
openBlock = _vueRuntimeEsmBundlerLegacy003Js.et;
}, function (_MapCacheLegacy005Js) {
useI18n = _MapCacheLegacy005Js.gt;
}, function (_truncateLegacy00hJs) {
useRouter = _truncateLegacy00hJs.y;
}, function (_iconLegacy00nJs) {}, function (_emptyLegacy00vJs) {}, function (_useTelemetryLegacy00HJs) {
useUsersStore = _useTelemetryLegacy00HJs.nr;
}, function (_useToastLegacy00JJs) {
useToast = _useToastLegacy00JJs.t;
}, function (_constantsLegacy00TJs) {
VIEWS = _constantsLegacy00TJs.Io;
}, function (_mergeLegacy00VJs) {}, function (_baseOrderByLegacy00ZJs) {}, function (_dateformatLegacy00$Js) {}, function (_useDebounceLegacy011Js) {}, function (_useExternalHooksLegacy013Js) {}, function (_useStylesLegacy015Js) {}],
execute: function () {
//#region src/features/core/auth/views/SignoutView.vue?vue&type=script&setup=true&lang.ts
SignoutView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
__name: "SignoutView",
setup(__props) {
const usersStore = useUsersStore();
const toast = useToast();
const router = useRouter();
const i18n = useI18n();
const logout = async () => {
try {
await usersStore.logout();
window.location.href = router.resolve({
name: VIEWS.SIGNIN
}).href;
} catch (e) {
toast.showError(e, i18n.baseText("auth.signout.error"));
}
};
onMounted(() => {
logout();
});
return (_ctx, _cache) => {
return openBlock(), createElementBlock("div");
};
}
}); //#endregion
//#region src/features/core/auth/views/SignoutView.vue
_export("default", SignoutView_default = SignoutView_vue_vue_type_script_setup_true_lang_default); //#endregion
}
};
});
})();