vue-layout-gitcode 1.9.59 → 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-DqA5a0nA.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-Ew6BP8P9.js";
7
- import "./transWebUrl-DQ_XjaaE.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-DqA5a0nA.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-DqA5a0nA.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-DQ_XjaaE.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-DqA5a0nA.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-DQ_XjaaE.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-DqA5a0nA.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-DqA5a0nA.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-DqA5a0nA.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-Ew6BP8P9.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-DqA5a0nA.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-DqA5a0nA.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-DqA5a0nA.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-DqA5a0nA.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-DqA5a0nA.js";
4
- import { t as transWebUrl } from "./transWebUrl-DQ_XjaaE.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"
@@ -17078,13 +17080,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17078
17080
  var _a;
17079
17081
  const layoutConfig2 = useLayoutConfig();
17080
17082
  const { t: $t } = i18n.global;
17081
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-ByVoVgeC.js"));
17082
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BSoeTIPA.js"));
17083
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-D9KeuPfq.js"));
17084
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DpGtohnP.js"));
17085
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Z1dVrTba.js"));
17086
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CR3WCIkG.js"));
17087
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CnxhLayZ.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"));
17088
17090
  const props = __props;
17089
17091
  const repoInfo = inject("repoInfo");
17090
17092
  const orgInfo = inject("orgInfo");
@@ -17833,7 +17835,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17833
17835
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17834
17836
  }
17835
17837
  };
17836
- const NoticeModal = defineAsyncComponent(() => import("./notice-BWtOdaqP.js"));
17838
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CRRIdEY6.js"));
17837
17839
  function clearNotice() {
17838
17840
  if (localStorage$2.getItem("validator_email")) {
17839
17841
  localStorage$2.removeItem("validator_email");
@@ -18635,9 +18637,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18635
18637
  const layoutConfig2 = useLayoutConfig();
18636
18638
  const { t: t2 } = i18n.global;
18637
18639
  const route = useRoute();
18638
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CQXqQ8xO.js"));
18639
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CJrdAIsV.js"));
18640
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-DN4s_Mky.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"));
18641
18643
  const props = __props;
18642
18644
  console.log("slotKeys", props.slotKeys);
18643
18645
  console.log("props", props);
@@ -21628,7 +21630,48 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21628
21630
  }
21629
21631
  });
21630
21632
  const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21631
- 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" };
21632
21675
  const _hoisted_2$5 = { class: "text-[var(--theme-placeholder)]" };
21633
21676
  const _hoisted_3$5 = { class: "text-[var(--theme-placeholder)]" };
21634
21677
  const _hoisted_4$3 = { class: "text-[var(--theme-placeholder)]" };
@@ -21642,15 +21685,17 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21642
21685
  setup(__props, { emit: __emit }) {
21643
21686
  const { t: $t } = i18n.global;
21644
21687
  const emits = __emit;
21688
+ const { declareNotClicked, markAsClicked } = useDeclareStatus();
21645
21689
  const handleClick = (type) => {
21646
21690
  emits("declares", type);
21691
+ markAsClicked(type);
21647
21692
  };
21648
21693
  const dataShareName = computed(() => {
21649
21694
  var _a, _b;
21650
21695
  if ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode")) {
21651
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
21696
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "AtomGit" });
21652
21697
  } else {
21653
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
21698
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "GitCode" });
21654
21699
  }
21655
21700
  });
21656
21701
  return (_ctx, _cache) => {
@@ -21663,24 +21708,30 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21663
21708
  default: withCtx(() => [
21664
21709
  createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
21665
21710
  createElementVNode("span", {
21666
- 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" : ""]),
21667
21712
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21668
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
21713
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
21669
21714
  createElementVNode("span", _hoisted_3$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21670
21715
  createElementVNode("span", {
21671
- 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" : ""]),
21672
21717
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21673
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1)
21718
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 3)
21674
21719
  ]),
21675
21720
  _: 1
21676
21721
  }, 8, ["model-value"]),
21677
21722
  createVNode(unref(Checkbox), {
21678
21723
  "model-value": _ctx.dataShareChecked,
21679
- "onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
21724
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = (val) => emits("update:dataShareChecked", val)),
21680
21725
  size: "sm"
21681
21726
  }, {
21682
21727
  default: withCtx(() => [
21683
- 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
+ ])
21684
21735
  ]),
21685
21736
  _: 1
21686
21737
  }, 8, ["model-value"])
@@ -21688,6 +21739,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21688
21739
  };
21689
21740
  }
21690
21741
  });
21742
+ const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21691
21743
  const _hoisted_1$6 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
21692
21744
  const _hoisted_2$4 = { class: "text-[var(--devui-aide-text)]" };
21693
21745
  const _hoisted_3$4 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
@@ -21701,15 +21753,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21701
21753
  setup(__props, { emit: __emit }) {
21702
21754
  const { t: $t } = i18n.global;
21703
21755
  const emits = __emit;
21756
+ const { declareNotClicked, markAsClicked } = useDeclareStatus();
21704
21757
  const handleClick = (type) => {
21705
21758
  emits("declares", type);
21759
+ markAsClicked(type);
21706
21760
  };
21707
21761
  const dataShareName = computed(() => {
21708
21762
  var _a, _b;
21709
21763
  if ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode")) {
21710
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
21764
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "AtomGit" });
21711
21765
  } else {
21712
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
21766
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "GitCode" });
21713
21767
  }
21714
21768
  });
21715
21769
  return (_ctx, _cache) => {
@@ -21723,26 +21777,30 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21723
21777
  default: withCtx(() => [
21724
21778
  createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
21725
21779
  createElementVNode("a", {
21726
- 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" : ""]),
21727
21781
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21728
- }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 1),
21782
+ }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 3),
21729
21783
  createElementVNode("span", _hoisted_2$4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21730
21784
  createElementVNode("a", {
21731
- 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" : ""]),
21732
21786
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21733
- }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy") + "》"), 1),
21787
+ }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy") + "》"), 3),
21734
21788
  renderSlot(_ctx.$slots, "default")
21735
21789
  ]),
21736
21790
  _: 3
21737
21791
  }, 8, ["model-value"]),
21738
21792
  createVNode(unref(Checkbox), {
21739
21793
  "model-value": _ctx.dataShareChecked,
21740
- "onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
21794
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = (val) => emits("update:dataShareChecked", val)),
21741
21795
  size: "sm",
21742
21796
  class: "mb-[12px]"
21743
21797
  }, {
21744
21798
  default: withCtx(() => [
21745
- 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)
21746
21804
  ]),
21747
21805
  _: 1
21748
21806
  }, 8, ["model-value"])
@@ -24127,8 +24185,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24127
24185
  const { t: $t } = i18n.global;
24128
24186
  const visible = useModel$1(__props, "visible");
24129
24187
  const emits = __emit;
24188
+ const { declareNotClicked, markAsClicked } = useDeclareStatus();
24130
24189
  const handleClick = (type) => {
24131
24190
  emits("declares", type);
24191
+ markAsClicked(type);
24132
24192
  };
24133
24193
  const handleConfirm = () => {
24134
24194
  emits("confirm");
@@ -24136,9 +24196,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24136
24196
  const dataShareName = computed(() => {
24137
24197
  var _a;
24138
24198
  if ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host.includes("gitcode")) {
24139
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
24199
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "AtomGit" });
24140
24200
  } else {
24141
- return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
24201
+ return $t("gitCodeLayout.LoginModal.link.dataShare01", { name: "GitCode" });
24142
24202
  }
24143
24203
  });
24144
24204
  const close = () => {
@@ -24147,7 +24207,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24147
24207
  return (_ctx, _cache) => {
24148
24208
  return openBlock(), createBlock(unref(Modal), {
24149
24209
  modelValue: visible.value,
24150
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
24210
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event),
24151
24211
  "close-on-click-overlay": false,
24152
24212
  "show-overlay": true,
24153
24213
  class: "second-sure-proto",
@@ -24182,14 +24242,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24182
24242
  createElementVNode("div", null, [
24183
24243
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
24184
24244
  createElementVNode("span", {
24185
- 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" : ""]),
24186
24246
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
24187
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
24247
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
24188
24248
  createTextVNode(" " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")) + " ", 1),
24189
24249
  createElementVNode("span", {
24190
- 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" : ""]),
24191
24251
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
24192
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
24252
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 3),
24193
24253
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
24194
24254
  ]),
24195
24255
  createElementVNode("div", null, [
@@ -24197,12 +24257,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
24197
24257
  ]),
24198
24258
  createVNode(unref(Checkbox), {
24199
24259
  "model-value": _ctx.dataShareChecked,
24200
- "onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:dataShareChecked", val)),
24260
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
24201
24261
  size: "sm",
24202
24262
  class: "mt-[12px]"
24203
24263
  }, {
24204
24264
  default: withCtx(() => [
24205
- 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)
24206
24270
  ]),
24207
24271
  _: 1
24208
24272
  }, 8, ["model-value"])
@@ -24470,7 +24534,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24470
24534
  }
24471
24535
  });
24472
24536
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24473
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BF2RytwW.js"));
24537
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BF3kLhi3.js"));
24474
24538
  const useSlidCaptcha = () => {
24475
24539
  const { mount, unMount } = usePopup("slid-captcha-popup");
24476
24540
  const open = (config) => {
@@ -24489,7 +24553,7 @@ const useSlidCaptcha = () => {
24489
24553
  close: unMount
24490
24554
  };
24491
24555
  };
24492
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-CztunOZI.js"));
24556
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CqA8eDvB.js"));
24493
24557
  const useYunpianCaptcha = () => {
24494
24558
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24495
24559
  const open = (config) => {
@@ -25312,15 +25376,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25312
25376
  };
25313
25377
  const links = {
25314
25378
  agreement: currentHelpDocsUrl() + "/docs/help/home/protocol/terms-of-service",
25315
- 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#八数据同步与账户整合"
25316
25381
  };
25317
25382
  const links_hw = {
25318
25383
  agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
25319
- privacy: "https://www.huaweicloud.com/declaration/sa_prp.html"
25384
+ privacy: "https://www.huaweicloud.com/declaration/sa_prp.html",
25385
+ dataShare: ""
25320
25386
  };
25321
25387
  const handleDisplay = (type, url = "gitcode") => {
25322
25388
  const link = url === "gitcode" ? links[type] : links_hw[type];
25323
- window.open(link);
25389
+ link && window.open(link);
25324
25390
  };
25325
25391
  const setFormErrorKey = (conf) => {
25326
25392
  let message = "";
@@ -26126,7 +26192,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26126
26192
  class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
26127
26193
  }, [
26128
26194
  createElementVNode("div", _hoisted_39, [
26129
- createVNode(_sfc_main$8, {
26195
+ createVNode(GAgreement, {
26130
26196
  modelValue: status.value,
26131
26197
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => status.value = $event),
26132
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-DqA5a0nA.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-DqA5a0nA.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-DqA5a0nA.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.59",
3
+ "version": "1.9.60",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",