vue-layout-gitcode 1.9.58 → 1.9.60

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,10 +1,10 @@
1
1
  import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CazfTHcx.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BudQy8bT.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Czd_kZWd.js";
7
- import "./transWebUrl-UoztbKuK.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BGONRlSK.js";
7
+ import "./transWebUrl-CzhgLBPp.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, y as useLayoutConfig, z as ThemeType, A as currentTheme, L as LANG_ZH, B as LANG_EN, x as getLocaleLang, G as GIcon, C as emitEvent, D as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-CazfTHcx.js";
2
+ import { a as i18n, y as useLayoutConfig, z as ThemeType, A as currentTheme, L as LANG_ZH, B as LANG_EN, x as getLocaleLang, G as GIcon, C as emitEvent, D as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BudQy8bT.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, F as _sfc_main$1, H as loadAsideData, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-CazfTHcx.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, F as _sfc_main$1, H as loadAsideData, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-BudQy8bT.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-UoztbKuK.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CzhgLBPp.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, G as GIcon, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-CazfTHcx.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-BudQy8bT.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-UoztbKuK.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CzhgLBPp.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -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-CazfTHcx.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BudQy8bT.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-CazfTHcx.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BudQy8bT.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-CazfTHcx.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-BudQy8bT.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, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-Czd_kZWd.js";
3
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-CazfTHcx.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-BGONRlSK.js";
3
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-BudQy8bT.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-CazfTHcx.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BudQy8bT.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, t as transformUrl } from "./index-CazfTHcx.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-BudQy8bT.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]" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as getLocaleLang, L as LANG_ZH, y as useLayoutConfig, _ as _export_sfc } from "./index-CazfTHcx.js";
2
+ import { x as getLocaleLang, L as LANG_ZH, y as useLayoutConfig, _ as _export_sfc } from "./index-BudQy8bT.js";
3
3
  import { FixedOverlay } from "vue-devui-lal/overlay";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const TARGET_TEXT = "Click in order:";
@@ -1,7 +1,7 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-CazfTHcx.js";
4
- import { t as transWebUrl } from "./transWebUrl-UoztbKuK.js";
3
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-BudQy8bT.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CzhgLBPp.js";
5
5
  import { useRouter } from "vue-router";
6
6
  import { Row, Col } from "vue-devui-lal/grid";
7
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -7862,6 +7862,7 @@ const gitCodeLayout$1 = {
7862
7862
  gitCodeProtocol: "GitCode用户协议",
7863
7863
  gitCodePrivacy: "GitCode隐私政策",
7864
7864
  dataShare: "我同意将账号、组织、仓库等信息提供给{name}进行数据共享",
7865
+ dataShare01: "我同意将账号、组织、仓库等信息提供给{name}进行",
7865
7866
  chiCloDevSerAgr: "华为云开发者服务协议",
7866
7867
  chiCloDevPriPolSta: "华为云开发者隐私政策声明",
7867
7868
  dataShareTip: "数据共享"
@@ -8187,6 +8188,7 @@ const gitCodeLayout = {
8187
8188
  gitCodeProtocol: "GitCode User Agreement",
8188
8189
  gitCodePrivacy: "GitCode Privacy Policy",
8189
8190
  dataShare: "I agree to share my account, organization, repository information with {name} for data sharing",
8191
+ dataShare01: "I agree to share my account, organization, repository information with {name} for",
8190
8192
  chiCloDevSerAgr: "Huawei Cloud Developer Service Agreement",
8191
8193
  chiCloDevPriPolSta: "Huawei Cloud Developer Privacy Policy Statement",
8192
8194
  dataShareTip: "Data Sharing"
@@ -11059,11 +11061,13 @@ const transformUrl = (url) => {
11059
11061
  return url;
11060
11062
  }
11061
11063
  const host = location.host;
11064
+ const hasTrailingSlash = url.endsWith("/");
11062
11065
  if (host.includes("gitcode.host")) {
11063
11066
  try {
11064
11067
  const urlObj = new URL(url);
11065
11068
  urlObj.host = urlObj.host.replace(/gitcode\.com/g, "gitcode.host");
11066
- return urlObj.toString();
11069
+ const result2 = urlObj.toString();
11070
+ return hasTrailingSlash ? result2 : result2.replace(/\/$/, "");
11067
11071
  } catch (error) {
11068
11072
  console.error("transformUrl: URL 解析失败", error);
11069
11073
  return url.replace(/gitcode\.com/g, "gitcode.host");
@@ -11076,7 +11080,8 @@ const transformUrl = (url) => {
11076
11080
  try {
11077
11081
  const urlObj = new URL(url);
11078
11082
  urlObj.host = urlObj.host.replace(/gitcode\.net/g, "atomgit.com").replace(/gitcode\.com/g, "atomgit.com");
11079
- return urlObj.toString();
11083
+ const result2 = urlObj.toString();
11084
+ return hasTrailingSlash ? result2 : result2.replace(/\/$/, "");
11080
11085
  } catch (error) {
11081
11086
  console.error("transformUrl: URL 解析失败", error);
11082
11087
  return url.replace(/gitcode\.net/g, "atomgit.com").replace(/gitcode\.com/g, "atomgit.com");
@@ -17075,13 +17080,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17075
17080
  var _a;
17076
17081
  const layoutConfig2 = useLayoutConfig();
17077
17082
  const { t: $t } = i18n.global;
17078
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DdqQAkxq.js"));
17079
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-hs-3KGgN.js"));
17080
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C_JeIvkC.js"));
17081
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DoaidhU7.js"));
17082
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-sQj1hGVq.js"));
17083
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CNa2eQxd.js"));
17084
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C8deUUSd.js"));
17083
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B6QeFgUK.js"));
17084
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-33O9tPcl.js"));
17085
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DsCQQmrk.js"));
17086
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-aYRVgecw.js"));
17087
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DEc26Q5k.js"));
17088
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DLeHu9UI.js"));
17089
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DnvU4dJf.js"));
17085
17090
  const props = __props;
17086
17091
  const repoInfo = inject("repoInfo");
17087
17092
  const orgInfo = inject("orgInfo");
@@ -17830,7 +17835,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17830
17835
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17831
17836
  }
17832
17837
  };
17833
- const NoticeModal = defineAsyncComponent(() => import("./notice-CXJxZGGs.js"));
17838
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CRRIdEY6.js"));
17834
17839
  function clearNotice() {
17835
17840
  if (localStorage$2.getItem("validator_email")) {
17836
17841
  localStorage$2.removeItem("validator_email");
@@ -18632,9 +18637,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18632
18637
  const layoutConfig2 = useLayoutConfig();
18633
18638
  const { t: t2 } = i18n.global;
18634
18639
  const route = useRoute();
18635
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-GaAvqF_i.js"));
18636
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-B6CRc-d4.js"));
18637
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BxTBTtKp.js"));
18640
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-09jK8k9D.js"));
18641
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DXDyc0Ni.js"));
18642
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BeHMo6uJ.js"));
18638
18643
  const props = __props;
18639
18644
  console.log("slotKeys", props.slotKeys);
18640
18645
  console.log("props", props);
@@ -21625,7 +21630,48 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21625
21630
  }
21626
21631
  });
21627
21632
  const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21628
- const _hoisted_1$7 = { class: "flex-col items-center" };
21633
+ const LOGIN_DECLARE_KEY = "g-login-declare-status";
21634
+ const useDeclareStatus = () => {
21635
+ const declareNotClicked = ref({
21636
+ agreement: true,
21637
+ privacy: true,
21638
+ dataShare: true
21639
+ });
21640
+ const loadDeclareStatus = () => {
21641
+ const loginDeclare = localStorage$2.getItem(LOGIN_DECLARE_KEY);
21642
+ if (loginDeclare) {
21643
+ try {
21644
+ declareNotClicked.value = JSON.parse(loginDeclare);
21645
+ } catch (error) {
21646
+ console.error("解析声明状态失败:", error);
21647
+ }
21648
+ }
21649
+ };
21650
+ const saveDeclareStatus = () => {
21651
+ localStorage$2.setItem(LOGIN_DECLARE_KEY, JSON.stringify(declareNotClicked.value));
21652
+ };
21653
+ const markAsClicked = (type) => {
21654
+ declareNotClicked.value[type] = false;
21655
+ saveDeclareStatus();
21656
+ };
21657
+ const resetDeclareStatus = () => {
21658
+ declareNotClicked.value = {
21659
+ agreement: true,
21660
+ privacy: true,
21661
+ dataShare: true
21662
+ };
21663
+ saveDeclareStatus();
21664
+ };
21665
+ onMounted(() => {
21666
+ loadDeclareStatus();
21667
+ });
21668
+ return {
21669
+ declareNotClicked,
21670
+ markAsClicked,
21671
+ resetDeclareStatus
21672
+ };
21673
+ };
21674
+ const _hoisted_1$7 = { class: "flex-col items-center agreement" };
21629
21675
  const _hoisted_2$5 = { class: "text-[var(--theme-placeholder)]" };
21630
21676
  const _hoisted_3$5 = { class: "text-[var(--theme-placeholder)]" };
21631
21677
  const _hoisted_4$3 = { class: "text-[var(--theme-placeholder)]" };
@@ -21639,15 +21685,17 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21639
21685
  setup(__props, { emit: __emit }) {
21640
21686
  const { t: $t } = i18n.global;
21641
21687
  const emits = __emit;
21688
+ const { declareNotClicked, markAsClicked } = useDeclareStatus();
21642
21689
  const handleClick = (type) => {
21643
21690
  emits("declares", type);
21691
+ markAsClicked(type);
21644
21692
  };
21645
21693
  const dataShareName = computed(() => {
21646
21694
  var _a, _b;
21647
21695
  if ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode")) {
21648
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
21696
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "AtomGit" });
21649
21697
  } else {
21650
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
21698
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "GitCode" });
21651
21699
  }
21652
21700
  });
21653
21701
  return (_ctx, _cache) => {
@@ -21660,24 +21708,30 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21660
21708
  default: withCtx(() => [
21661
21709
  createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
21662
21710
  createElementVNode("span", {
21663
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
21711
+ class: normalizeClass(["text-[var(--theme-link)] cursor-pointer mx-[1px]", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
21664
21712
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21665
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
21713
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
21666
21714
  createElementVNode("span", _hoisted_3$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21667
21715
  createElementVNode("span", {
21668
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
21716
+ class: normalizeClass(["text-[var(--theme-link)] cursor-pointer mx-[1px]", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
21669
21717
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21670
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1)
21718
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 3)
21671
21719
  ]),
21672
21720
  _: 1
21673
21721
  }, 8, ["model-value"]),
21674
21722
  createVNode(unref(Checkbox), {
21675
21723
  "model-value": _ctx.dataShareChecked,
21676
- "onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
21724
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = (val) => emits("update:dataShareChecked", val)),
21677
21725
  size: "sm"
21678
21726
  }, {
21679
21727
  default: withCtx(() => [
21680
- createElementVNode("span", _hoisted_4$3, toDisplayString$1(dataShareName.value), 1)
21728
+ createElementVNode("span", _hoisted_4$3, [
21729
+ createTextVNode(toDisplayString$1(dataShareName.value) + " ", 1),
21730
+ createElementVNode("span", {
21731
+ class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
21732
+ onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
21733
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.dataShareTip")), 1)
21734
+ ])
21681
21735
  ]),
21682
21736
  _: 1
21683
21737
  }, 8, ["model-value"])
@@ -21685,6 +21739,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21685
21739
  };
21686
21740
  }
21687
21741
  });
21742
+ const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21688
21743
  const _hoisted_1$6 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
21689
21744
  const _hoisted_2$4 = { class: "text-[var(--devui-aide-text)]" };
21690
21745
  const _hoisted_3$4 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
@@ -21698,15 +21753,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21698
21753
  setup(__props, { emit: __emit }) {
21699
21754
  const { t: $t } = i18n.global;
21700
21755
  const emits = __emit;
21756
+ const { declareNotClicked, markAsClicked } = useDeclareStatus();
21701
21757
  const handleClick = (type) => {
21702
21758
  emits("declares", type);
21759
+ markAsClicked(type);
21703
21760
  };
21704
21761
  const dataShareName = computed(() => {
21705
21762
  var _a, _b;
21706
21763
  if ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode")) {
21707
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
21764
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "AtomGit" });
21708
21765
  } else {
21709
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
21766
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "GitCode" });
21710
21767
  }
21711
21768
  });
21712
21769
  return (_ctx, _cache) => {
@@ -21720,26 +21777,30 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21720
21777
  default: withCtx(() => [
21721
21778
  createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
21722
21779
  createElementVNode("a", {
21723
- class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
21780
+ class: normalizeClass(["text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
21724
21781
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21725
- }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 1),
21782
+ }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 3),
21726
21783
  createElementVNode("span", _hoisted_2$4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21727
21784
  createElementVNode("a", {
21728
- class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
21785
+ class: normalizeClass(["text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
21729
21786
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21730
- }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy") + "》"), 1),
21787
+ }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy") + "》"), 3),
21731
21788
  renderSlot(_ctx.$slots, "default")
21732
21789
  ]),
21733
21790
  _: 3
21734
21791
  }, 8, ["model-value"]),
21735
21792
  createVNode(unref(Checkbox), {
21736
21793
  "model-value": _ctx.dataShareChecked,
21737
- "onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
21794
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = (val) => emits("update:dataShareChecked", val)),
21738
21795
  size: "sm",
21739
21796
  class: "mb-[12px]"
21740
21797
  }, {
21741
21798
  default: withCtx(() => [
21742
- createElementVNode("span", _hoisted_3$4, toDisplayString$1(dataShareName.value), 1)
21799
+ createElementVNode("span", _hoisted_3$4, toDisplayString$1(dataShareName.value), 1),
21800
+ createElementVNode("span", {
21801
+ class: "text-[var(--theme-link)] cursor-pointer mx-[1px] text-[12px]",
21802
+ onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
21803
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.dataShareTip")), 1)
21743
21804
  ]),
21744
21805
  _: 1
21745
21806
  }, 8, ["model-value"])
@@ -24124,8 +24185,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24124
24185
  const { t: $t } = i18n.global;
24125
24186
  const visible = useModel$1(__props, "visible");
24126
24187
  const emits = __emit;
24188
+ const { declareNotClicked, markAsClicked } = useDeclareStatus();
24127
24189
  const handleClick = (type) => {
24128
24190
  emits("declares", type);
24191
+ markAsClicked(type);
24129
24192
  };
24130
24193
  const handleConfirm = () => {
24131
24194
  emits("confirm");
@@ -24133,9 +24196,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24133
24196
  const dataShareName = computed(() => {
24134
24197
  var _a;
24135
24198
  if ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host.includes("gitcode")) {
24136
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
24199
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "AtomGit" });
24137
24200
  } else {
24138
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
24201
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "GitCode" });
24139
24202
  }
24140
24203
  });
24141
24204
  const close = () => {
@@ -24144,7 +24207,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24144
24207
  return (_ctx, _cache) => {
24145
24208
  return openBlock(), createBlock(unref(Modal), {
24146
24209
  modelValue: visible.value,
24147
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
24210
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event),
24148
24211
  "close-on-click-overlay": false,
24149
24212
  "show-overlay": true,
24150
24213
  class: "second-sure-proto",
@@ -24179,14 +24242,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24179
24242
  createElementVNode("div", null, [
24180
24243
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
24181
24244
  createElementVNode("span", {
24182
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
24245
+ class: normalizeClass(["text-[var(--theme-link)] cursor-pointer mx-[1px]", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
24183
24246
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
24184
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
24247
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
24185
24248
  createTextVNode(" " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")) + " ", 1),
24186
24249
  createElementVNode("span", {
24187
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
24250
+ class: normalizeClass(["text-[var(--theme-link)] cursor-pointer mx-[1px]", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
24188
24251
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
24189
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
24252
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 3),
24190
24253
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
24191
24254
  ]),
24192
24255
  createElementVNode("div", null, [
@@ -24194,12 +24257,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24194
24257
  ]),
24195
24258
  createVNode(unref(Checkbox), {
24196
24259
  "model-value": _ctx.dataShareChecked,
24197
- "onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:dataShareChecked", val)),
24260
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
24198
24261
  size: "sm",
24199
24262
  class: "mt-[12px]"
24200
24263
  }, {
24201
24264
  default: withCtx(() => [
24202
- createElementVNode("span", _hoisted_2$2, toDisplayString$1(dataShareName.value), 1)
24265
+ createElementVNode("span", _hoisted_2$2, toDisplayString$1(dataShareName.value), 1),
24266
+ createElementVNode("span", {
24267
+ class: "text-[var(--theme-link)] cursor-pointer mx-[1px] text-[13px]",
24268
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
24269
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.dataShareTip")), 1)
24203
24270
  ]),
24204
24271
  _: 1
24205
24272
  }, 8, ["model-value"])
@@ -24467,7 +24534,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24467
24534
  }
24468
24535
  });
24469
24536
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24470
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BZZwVI0Q.js"));
24537
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BF3kLhi3.js"));
24471
24538
  const useSlidCaptcha = () => {
24472
24539
  const { mount, unMount } = usePopup("slid-captcha-popup");
24473
24540
  const open = (config) => {
@@ -24486,7 +24553,7 @@ const useSlidCaptcha = () => {
24486
24553
  close: unMount
24487
24554
  };
24488
24555
  };
24489
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-BmoJW_xG.js"));
24556
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CqA8eDvB.js"));
24490
24557
  const useYunpianCaptcha = () => {
24491
24558
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24492
24559
  const open = (config) => {
@@ -25309,15 +25376,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25309
25376
  };
25310
25377
  const links = {
25311
25378
  agreement: currentHelpDocsUrl() + "/docs/help/home/protocol/terms-of-service",
25312
- privacy: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy"
25379
+ privacy: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy",
25380
+ dataShare: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy#八数据同步与账户整合"
25313
25381
  };
25314
25382
  const links_hw = {
25315
25383
  agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
25316
- privacy: "https://www.huaweicloud.com/declaration/sa_prp.html"
25384
+ privacy: "https://www.huaweicloud.com/declaration/sa_prp.html",
25385
+ dataShare: ""
25317
25386
  };
25318
25387
  const handleDisplay = (type, url = "gitcode") => {
25319
25388
  const link = url === "gitcode" ? links[type] : links_hw[type];
25320
- window.open(link);
25389
+ link && window.open(link);
25321
25390
  };
25322
25391
  const setFormErrorKey = (conf) => {
25323
25392
  let message = "";
@@ -26123,7 +26192,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26123
26192
  class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
26124
26193
  }, [
26125
26194
  createElementVNode("div", _hoisted_39, [
26126
- createVNode(_sfc_main$8, {
26195
+ createVNode(GAgreement, {
26127
26196
  modelValue: status.value,
26128
26197
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => status.value = $event),
26129
26198
  dataShareChecked: dataShareChecked.value,
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
8
8
  import "vue-devui-lal/message/style.css";
9
9
  import { FixedOverlay } from "vue-devui-lal/overlay";
10
10
  import "vue-devui-lal/overlay/style.css";
11
- import { a as i18n, k as usePageResize, x as getLocaleLang, L as LANG_ZH, _ as _export_sfc } from "./index-CazfTHcx.js";
11
+ import { a as i18n, k as usePageResize, x as getLocaleLang, L as LANG_ZH, _ as _export_sfc } from "./index-BudQy8bT.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  constructor() {
14
14
  __publicField(this, "ypRiddlerInstance", null);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M, N, U, K, S, O, J, A, W, Q, V, P } from "./index-CazfTHcx.js";
1
+ import { M, N, U, K, S, O, J, A, W, Q, V, P } from "./index-BudQy8bT.js";
2
2
  export {
3
3
  M as GitCodeAside,
4
4
  N as GitCodeHeader,
@@ -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-CazfTHcx.js";
2
+ import { i as isPhone, u as useModel } from "./index-BudQy8bT.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.9.58",
3
+ "version": "1.9.60",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",