vue-layout-gitcode 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { inject, ref, watch, onMounted, createElementBlock, createCommentVNode, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-nUZBHDww.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DjPSWlud.js";
4
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-50gBvRq3.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CTItrn9G.js";
6
6
  const _hoisted_1 = {
7
7
  key: 0,
8
8
  class: "px-[8px] history-list-project pl-[8px]"
@@ -1,5 +1,5 @@
1
1
  import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-nUZBHDww.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-50gBvRq3.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-nUZBHDww.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-50gBvRq3.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "history-list" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
2
- import { G as GIcon, _ as _export_sfc } from "./index-nUZBHDww.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-50gBvRq3.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "ellipsis" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-DjPSWlud.js";
3
- import { a as i18n, h as headRequest, R as REPO_MODULE, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-nUZBHDww.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-CTItrn9G.js";
3
+ import { a as i18n, h as headRequest, R as REPO_MODULE, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-50gBvRq3.js";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { SkeletonItem } from "vue-devui-lal/skeleton";
6
6
  import "vue-devui-lal/grid/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-nUZBHDww.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-50gBvRq3.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon } from "./index-nUZBHDww.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-50gBvRq3.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
@@ -453,6 +453,12 @@ const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
453
453
  const UTM_SOURCE = "utm_source";
454
454
  const PASSPORT_PREFIX = "/uc";
455
455
  const AUTH_WINDOW = "auth_window";
456
+ const LOGIN_MODAL_TAB_SWITCH = "loginModal_click";
457
+ const REGISTER_SOURCE_TAB_REPORT = "loginModal_register_click";
458
+ const OAUTH_CANCEL = "oauth_cancel";
459
+ const OAUTH_LOGIN_TYPE_KEY = "oauthType";
460
+ const REGISTER_SOURCE_TAB = "register_source_tab";
461
+ const LOGIN_MODAL_TRIGGER_SOURCE = "login_trigger_source";
456
462
  /*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
457
463
  const {
458
464
  entries,
@@ -14168,7 +14174,8 @@ function headRequest(request) {
14168
14174
  method: "post",
14169
14175
  data,
14170
14176
  headers: {
14171
- "content-type": "application/x-www-form-urlencoded"
14177
+ "content-type": "application/x-www-form-urlencoded",
14178
+ "X-Source": getLoginTriggerSource()
14172
14179
  }
14173
14180
  })
14174
14181
  );
@@ -14192,7 +14199,8 @@ function headRequest(request) {
14192
14199
  method: "post",
14193
14200
  data: userInfo,
14194
14201
  headers: {
14195
- "content-type": "application/x-www-form-urlencoded"
14202
+ "content-type": "application/x-www-form-urlencoded",
14203
+ "X-Source": getLoginTriggerSource()
14196
14204
  }
14197
14205
  }),
14198
14206
  userInfo
@@ -14206,7 +14214,8 @@ function headRequest(request) {
14206
14214
  method: "post",
14207
14215
  data,
14208
14216
  headers: {
14209
- "last-repo-id": getLastTimeRepoId()
14217
+ "last-repo-id": getLastTimeRepoId(),
14218
+ "X-Source": getRegisterSourceTab()
14210
14219
  }
14211
14220
  })
14212
14221
  );
@@ -14216,7 +14225,10 @@ function headRequest(request) {
14216
14225
  return reqCatch(
14217
14226
  () => request({
14218
14227
  url: `/uc/api/v1/qrcode/${data.platform}`,
14219
- method: "post"
14228
+ method: "post",
14229
+ headers: {
14230
+ "X-Source": getLoginTriggerSource()
14231
+ }
14220
14232
  })
14221
14233
  );
14222
14234
  },
@@ -14244,24 +14256,30 @@ function headRequest(request) {
14244
14256
  );
14245
14257
  },
14246
14258
  // mfa 恢复码登陆
14247
- postMfaRecover(data, headers) {
14259
+ postMfaRecover(data) {
14248
14260
  return reqCatchV2(
14249
14261
  () => request({
14250
14262
  url: "/api/v1/user/oauth/login/mfa_recover",
14251
14263
  method: "post",
14252
14264
  data,
14253
- headers
14265
+ headers: {
14266
+ "content-type": "application/x-www-form-urlencoded",
14267
+ "X-Source": getLoginTriggerSource()
14268
+ }
14254
14269
  })
14255
14270
  );
14256
14271
  },
14257
14272
  // mfa 验证码登陆
14258
- postMfaLogin(data, headers) {
14273
+ postMfaLogin(data) {
14259
14274
  return reqCatchV2(
14260
14275
  () => request({
14261
14276
  url: "/api/v1/user/oauth/login/mfa",
14262
14277
  method: "post",
14263
14278
  data,
14264
- headers
14279
+ headers: {
14280
+ "content-type": "application/x-www-form-urlencoded",
14281
+ "X-Source": getLoginTriggerSource()
14282
+ }
14265
14283
  })
14266
14284
  );
14267
14285
  },
@@ -17597,13 +17615,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17597
17615
  setup(__props) {
17598
17616
  var _a;
17599
17617
  const { t: $t } = i18n.global;
17600
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C4qpEV9n.js"));
17601
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-Bh1cUWeG.js"));
17602
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-bLGdUZ9B.js"));
17603
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BNmz8bGY.js"));
17604
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Cf9lDKYH.js"));
17605
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Cx0sD9xo.js"));
17606
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-5hv5iUfd.js"));
17618
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CnymV5fU.js"));
17619
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DE_W7_Dg.js"));
17620
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C8TasGXl.js"));
17621
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BRHUa9Jt.js"));
17622
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B60GU3n7.js"));
17623
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BvFEVuJg.js"));
17624
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Cv2fhrtH.js"));
17607
17625
  const props = __props;
17608
17626
  const repoInfo = inject("repoInfo");
17609
17627
  const orgInfo = inject("orgInfo");
@@ -18161,7 +18179,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18161
18179
  }
18162
18180
  });
18163
18181
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18164
- const NoticeModal = defineAsyncComponent(() => import("./notice-LLTB90Mk.js"));
18182
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CKRH2mf1.js"));
18165
18183
  function clearNotice() {
18166
18184
  if (localStorage$2.getItem("validator_email")) {
18167
18185
  localStorage$2.removeItem("validator_email");
@@ -18942,6 +18960,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18942
18960
  };
18943
18961
  const createRepoOrOrg = () => {
18944
18962
  if (!props.isLogin) {
18963
+ setLoginTriggerSource(props.type === "project" ? "aside_createRepo" : "aside_createOrg");
18945
18964
  useReport2("login_exposure", { source: props.type === "project" ? "aside_createRepo" : "aside_createOrg" });
18946
18965
  }
18947
18966
  router2.push(props.type === "project" ? projectRoute : teamRoute);
@@ -19204,6 +19223,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19204
19223
  };
19205
19224
  const createRepoOrOrg = () => {
19206
19225
  if (!props.isLogin) {
19226
+ setLoginTriggerSource("aside_createRepo");
19207
19227
  useReport2("login_exposure", { source: "aside_createRepo" });
19208
19228
  }
19209
19229
  router2.push({
@@ -20982,6 +21002,21 @@ function saveSignPath() {
20982
21002
  function saveLoginType(triggerType = "") {
20983
21003
  sessionStorage.setItem("loginType", triggerType);
20984
21004
  }
21005
+ function saveOauthType(oauthType = "") {
21006
+ sessionStorage.setItem(OAUTH_LOGIN_TYPE_KEY, oauthType);
21007
+ }
21008
+ function getOauthType() {
21009
+ return sessionStorage.getItem(OAUTH_LOGIN_TYPE_KEY);
21010
+ }
21011
+ function setLoginTriggerSource(triggerSource) {
21012
+ sessionStorage.setItem(LOGIN_MODAL_TRIGGER_SOURCE, triggerSource);
21013
+ }
21014
+ function getLoginTriggerSource() {
21015
+ return sessionStorage.getItem(LOGIN_MODAL_TRIGGER_SOURCE);
21016
+ }
21017
+ function getRegisterSourceTab() {
21018
+ return sessionStorage.getItem(REGISTER_SOURCE_TAB);
21019
+ }
20985
21020
  function getLoginReturnUrl() {
20986
21021
  return api.get("third_utm_source_sign_path") || localStorage$2.getItem("loginReturnUrl") || "/";
20987
21022
  }
@@ -21008,11 +21043,11 @@ function goAuthPage(type, noOpen = false) {
21008
21043
  function bindResultResolve(params, API) {
21009
21044
  const { responseType } = params;
21010
21045
  if (responseType === AuthResType.CANCEL) {
21011
- cancelAuth(params);
21046
+ cancelAuth(params, API);
21012
21047
  } else if (responseType === AuthResType.SUCCESS) {
21013
21048
  successResolve(params, API);
21014
21049
  } else if (responseType === AuthResType.FAIL) {
21015
- failResolve(params);
21050
+ failResolve(params, API);
21016
21051
  }
21017
21052
  }
21018
21053
  function sendMessageToParent(message) {
@@ -21103,10 +21138,15 @@ async function handleReturnUrl(API, path) {
21103
21138
  }
21104
21139
  defaultBackResolve(returnUrl);
21105
21140
  }
21106
- function cancelAuth(params) {
21141
+ function reportCancelAuth(API) {
21142
+ const currentAuthType = getOauthType();
21143
+ currentAuthType && useReport(OAUTH_CANCEL, { source: currentAuthType }, API.report);
21144
+ }
21145
+ function cancelAuth(params, API) {
21107
21146
  var _a;
21108
21147
  const { noTip = false } = params;
21109
21148
  if (isAuthWindow()) {
21149
+ reportCancelAuth(API);
21110
21150
  !noTip && ((_a = window.opener) == null ? void 0 : _a.postMessage({ type: AuthResType.FAIL, message: t$2("gitCodeLayout.oauth.revokedAuthorization") }, "*"));
21111
21151
  window == null ? void 0 : window.close();
21112
21152
  return;
@@ -21115,11 +21155,12 @@ function cancelAuth(params) {
21115
21155
  removeStatusAfterLogin();
21116
21156
  defaultBackResolve(returnUrl);
21117
21157
  }
21118
- function failResolve(params) {
21158
+ function failResolve(params, API) {
21119
21159
  var _a;
21120
21160
  const { errorInfo } = params;
21121
21161
  const msg = errorInfo || t$2("gitCodeLayout.userSetting.tips.autFai");
21122
21162
  if (isAuthWindow()) {
21163
+ reportCancelAuth(API);
21123
21164
  (_a = window.opener) == null ? void 0 : _a.postMessage({ type: AuthResType.FAIL, message: msg }, "*");
21124
21165
  window == null ? void 0 : window.close();
21125
21166
  return;
@@ -21155,6 +21196,7 @@ const HandleParentWindowGetLoginInfo = (request) => {
21155
21196
  checkUserRepositoryIssue(API);
21156
21197
  },
21157
21198
  [AuthResType.FAIL]: (event) => {
21199
+ reportCancelAuth(API);
21158
21200
  Message.warning(event.data.message || "授权失败");
21159
21201
  }
21160
21202
  };
@@ -21728,9 +21770,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21728
21770
  },
21729
21771
  emits: ["auth"],
21730
21772
  setup(__props, { emit: __emit }) {
21773
+ const request = inject("request");
21774
+ const API = headRequest(request);
21731
21775
  const { t: $t } = i18n.global;
21732
21776
  const emits = __emit;
21733
21777
  const handleClick = (icon) => {
21778
+ useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
21734
21779
  emits("auth", icon.alt);
21735
21780
  };
21736
21781
  return (_ctx, _cache) => {
@@ -24437,10 +24482,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24437
24482
  code: code2
24438
24483
  };
24439
24484
  const loginFunc = mode.value === "code" ? props.API.postMfaLogin : props.API.postMfaRecover;
24440
- const header = {
24441
- "content-type": "application/x-www-form-urlencoded"
24442
- };
24443
- const { error, data } = await loginFunc(params, header);
24485
+ const { error, data } = await loginFunc(params);
24444
24486
  loading.value = false;
24445
24487
  if (error) {
24446
24488
  errorMsg.value = error.error_message;
@@ -24544,7 +24586,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24544
24586
  }
24545
24587
  });
24546
24588
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24547
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Dz5FySOA.js"));
24589
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-DanD_ZjE.js"));
24548
24590
  const useSlidCaptcha = () => {
24549
24591
  const { mount, unMount } = usePopup("slid-captcha-popup");
24550
24592
  const open = (config) => {
@@ -25496,6 +25538,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25496
25538
  const authType = ref(null);
25497
25539
  const pcAuthLogin = (type) => {
25498
25540
  authType.value = type;
25541
+ saveOauthType(type);
25542
+ if (tabPanel.value === "miniProgram") {
25543
+ stopPoll();
25544
+ miniProgramStatus.value = "TIMEOUT";
25545
+ }
25499
25546
  if (localStorage$2.getItem("access_token")) {
25500
25547
  emits("close", true);
25501
25548
  } else {
@@ -25558,6 +25605,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25558
25605
  });
25559
25606
  const clickRegister = () => {
25560
25607
  formType.value = "register";
25608
+ sessionStorage.setItem(REGISTER_SOURCE_TAB, tabPanel.value);
25609
+ useReport(REGISTER_SOURCE_TAB_REPORT, { source: tabPanel.value }, API.report);
25561
25610
  };
25562
25611
  const handleRegisterHarmony = () => {
25563
25612
  emits("openHarmonyGuide");
@@ -25621,6 +25670,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25621
25670
  const handleTabPanelChange = async (val) => {
25622
25671
  tabPanel.value = val;
25623
25672
  authType.value = null;
25673
+ useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
25624
25674
  if (val !== "miniProgram") {
25625
25675
  stopPoll();
25626
25676
  handleMiniProgramReset();
@@ -25931,6 +25981,7 @@ function useLogin(request, globalStore) {
25931
25981
  return;
25932
25982
  }
25933
25983
  if (loginTriggerSource) {
25984
+ setLoginTriggerSource(loginTriggerSource);
25934
25985
  useReport2("login_exposure", { source: loginTriggerSource });
25935
25986
  }
25936
25987
  if (isPhone()) {
@@ -26087,13 +26138,14 @@ const index = {
26087
26138
  }
26088
26139
  };
26089
26140
  export {
26090
- setLayoutConfig as A,
26091
- GitCodeLayoutEmitter as B,
26092
- currentTheme as C,
26093
- setTheme as D,
26141
+ useLogin as A,
26142
+ setLayoutConfig as B,
26143
+ GitCodeLayoutEmitter as C,
26144
+ currentTheme as D,
26094
26145
  EVENT_NAME as E,
26095
- index as F,
26146
+ setTheme as F,
26096
26147
  GIcon as G,
26148
+ index as H,
26097
26149
  LANG_KEY as L,
26098
26150
  REPO_MODULE as R,
26099
26151
  SceneValue as S,
@@ -26117,12 +26169,12 @@ export {
26117
26169
  highlightWords as p,
26118
26170
  _frEventTrack as q,
26119
26171
  reqCatch as r,
26120
- useLayoutConfig as s,
26172
+ setLoginTriggerSource as s,
26121
26173
  transWebUrl as t,
26122
26174
  useModel as u,
26123
- ToolsFloat as v,
26124
- _sfc_main as w,
26125
- GitCodeAside as x,
26126
- GitCodeHeader as y,
26127
- useLogin as z
26175
+ useLayoutConfig as v,
26176
+ ToolsFloat as w,
26177
+ _sfc_main as x,
26178
+ GitCodeAside as y,
26179
+ GitCodeHeader as z
26128
26180
  };
@@ -1,5 +1,5 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, unref, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
2
- import { d as debounce, G as GIcon, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-nUZBHDww.js";
2
+ import { d as debounce, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-50gBvRq3.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -143,6 +143,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
143
143
  const handleStar = async (e) => {
144
144
  e.preventDefault();
145
145
  if (!isLogin.value) {
146
+ setLoginTriggerSource(props.loginTriggerSource || "search_star_repo_recommend");
146
147
  useReport("login_exposure", { source: props.loginTriggerSource || "search_star_repo_recommend" });
147
148
  }
148
149
  try {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { s as useLayoutConfig, _ as _export_sfc } from "./index-nUZBHDww.js";
3
+ import { v as useLayoutConfig, _ as _export_sfc } from "./index-50gBvRq3.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { x, y, B, w, S, v, C, F, A, D, z } from "./index-nUZBHDww.js";
1
+ import { y, z, C, x, S, w, D, H, B, F, A } from "./index-50gBvRq3.js";
2
2
  export {
3
- x as GitCodeAside,
4
- y as GitCodeHeader,
5
- B as GitCodeLayoutEmitter,
6
- w as Login,
3
+ y as GitCodeAside,
4
+ z as GitCodeHeader,
5
+ C as GitCodeLayoutEmitter,
6
+ x as Login,
7
7
  S as SceneValue,
8
- v as ToolsFloat,
9
- C as currentTheme,
10
- F as default,
11
- A as setLayoutConfig,
12
- D as setTheme,
13
- z as useLogin
8
+ w as ToolsFloat,
9
+ D as currentTheme,
10
+ H as default,
11
+ B as setLayoutConfig,
12
+ F as setTheme,
13
+ A as useLogin
14
14
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel } from "./index-nUZBHDww.js";
2
+ import { i as isPhone, u as useModel } from "./index-50gBvRq3.js";
3
3
  import { Notification } from "vue-devui-lal/notification";
4
4
  import { Button } from "vue-devui-lal/button";
5
5
  import "vue-devui-lal/notification/style.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",