vue-layout-gitcode 1.2.12 → 1.3.0

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-V8OJRYgR.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DAsZH1rR.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-BmW1sJe6.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CXkIPtF1.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-V8OJRYgR.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BmW1sJe6.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-V8OJRYgR.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BmW1sJe6.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-V8OJRYgR.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-BmW1sJe6.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-DAsZH1rR.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-V8OJRYgR.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-CXkIPtF1.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-BmW1sJe6.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-V8OJRYgR.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BmW1sJe6.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-V8OJRYgR.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-BmW1sJe6.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]" };
@@ -459,7 +459,7 @@ const OAUTH_CANCEL = "oauth_cancel";
459
459
  const OAUTH_LOGIN_TYPE_KEY = "oauthType";
460
460
  const REGISTER_SOURCE_TAB = "register_source_tab";
461
461
  const LOGIN_MODAL_TRIGGER_SOURCE = "login_trigger_source";
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 */
462
+ /*! @license DOMPurify 3.2.6 | (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.6/LICENSE */
463
463
  const {
464
464
  entries,
465
465
  setPrototypeOf,
@@ -610,7 +610,7 @@ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
610
610
  const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
611
611
  const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
612
612
  const IS_ALLOWED_URI = seal(
613
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
613
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
614
614
  // eslint-disable-line no-useless-escape
615
615
  );
616
616
  const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
@@ -684,7 +684,7 @@ const _createHooksMap = function _createHooksMap2() {
684
684
  function createDOMPurify() {
685
685
  let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
686
686
  const DOMPurify = (root2) => createDOMPurify(root2);
687
- DOMPurify.version = "3.2.5";
687
+ DOMPurify.version = "3.2.6";
688
688
  DOMPurify.removed = [];
689
689
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
690
690
  DOMPurify.isSupported = false;
@@ -831,8 +831,8 @@ function createDOMPurify() {
831
831
  URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
832
832
  DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
833
833
  FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
834
- FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
835
- FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
834
+ FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
835
+ FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
836
836
  USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
837
837
  ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
838
838
  ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
@@ -1096,7 +1096,7 @@ function createDOMPurify() {
1096
1096
  tagName,
1097
1097
  allowedTags: ALLOWED_TAGS
1098
1098
  });
1099
- if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
1099
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
1100
1100
  _forceRemove(currentNode);
1101
1101
  return true;
1102
1102
  }
@@ -1209,7 +1209,8 @@ function createDOMPurify() {
1209
1209
  value: attrValue
1210
1210
  } = attr;
1211
1211
  const lcName = transformCaseFunc(name);
1212
- let value = name === "value" ? attrValue : stringTrim(attrValue);
1212
+ const initValue = attrValue;
1213
+ let value = name === "value" ? initValue : stringTrim(initValue);
1213
1214
  hookEvent.attrName = lcName;
1214
1215
  hookEvent.attrValue = value;
1215
1216
  hookEvent.keepAttr = true;
@@ -1227,8 +1228,8 @@ function createDOMPurify() {
1227
1228
  if (hookEvent.forceKeepAttr) {
1228
1229
  continue;
1229
1230
  }
1230
- _removeAttribute(name, currentNode);
1231
1231
  if (!hookEvent.keepAttr) {
1232
+ _removeAttribute(name, currentNode);
1232
1233
  continue;
1233
1234
  }
1234
1235
  if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
@@ -1242,6 +1243,7 @@ function createDOMPurify() {
1242
1243
  }
1243
1244
  const lcTag = transformCaseFunc(currentNode.nodeName);
1244
1245
  if (!_isValidAttribute(lcTag, lcName, value)) {
1246
+ _removeAttribute(name, currentNode);
1245
1247
  continue;
1246
1248
  }
1247
1249
  if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
@@ -1259,18 +1261,21 @@ function createDOMPurify() {
1259
1261
  }
1260
1262
  }
1261
1263
  }
1262
- try {
1263
- if (namespaceURI) {
1264
- currentNode.setAttributeNS(namespaceURI, name, value);
1265
- } else {
1266
- currentNode.setAttribute(name, value);
1267
- }
1268
- if (_isClobbered(currentNode)) {
1269
- _forceRemove(currentNode);
1270
- } else {
1271
- arrayPop(DOMPurify.removed);
1264
+ if (value !== initValue) {
1265
+ try {
1266
+ if (namespaceURI) {
1267
+ currentNode.setAttributeNS(namespaceURI, name, value);
1268
+ } else {
1269
+ currentNode.setAttribute(name, value);
1270
+ }
1271
+ if (_isClobbered(currentNode)) {
1272
+ _forceRemove(currentNode);
1273
+ } else {
1274
+ arrayPop(DOMPurify.removed);
1275
+ }
1276
+ } catch (_) {
1277
+ _removeAttribute(name, currentNode);
1272
1278
  }
1273
- } catch (_) {
1274
1279
  }
1275
1280
  }
1276
1281
  _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
@@ -1544,7 +1549,7 @@ function init(converter, defaultAttributes) {
1544
1549
  }
1545
1550
  var api = init(defaultConverter, { path: "/" });
1546
1551
  /*!
1547
- * shared v9.14.3
1552
+ * shared v9.14.4
1548
1553
  * (c) 2025 kazuya kawaguchi
1549
1554
  * Released under the MIT License.
1550
1555
  */
@@ -1718,7 +1723,7 @@ function deepCopy(src, des) {
1718
1723
  }
1719
1724
  }
1720
1725
  /*!
1721
- * message-compiler v9.14.3
1726
+ * message-compiler v9.14.4
1722
1727
  * (c) 2025 kazuya kawaguchi
1723
1728
  * Released under the MIT License.
1724
1729
  */
@@ -3268,7 +3273,7 @@ function baseCompile$1(source, options = {}) {
3268
3273
  }
3269
3274
  }
3270
3275
  /*!
3271
- * core-base v9.14.3
3276
+ * core-base v9.14.4
3272
3277
  * (c) 2025 kazuya kawaguchi
3273
3278
  * Released under the MIT License.
3274
3279
  */
@@ -3283,6 +3288,76 @@ function initFeatureFlags$1() {
3283
3288
  getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
3284
3289
  }
3285
3290
  }
3291
+ function isMessageAST(val) {
3292
+ return isObject$b(val) && resolveType(val) === 0 && (hasOwn(val, "b") || hasOwn(val, "body"));
3293
+ }
3294
+ const PROPS_BODY = ["b", "body"];
3295
+ function resolveBody(node) {
3296
+ return resolveProps(node, PROPS_BODY);
3297
+ }
3298
+ const PROPS_CASES = ["c", "cases"];
3299
+ function resolveCases(node) {
3300
+ return resolveProps(node, PROPS_CASES, []);
3301
+ }
3302
+ const PROPS_STATIC = ["s", "static"];
3303
+ function resolveStatic(node) {
3304
+ return resolveProps(node, PROPS_STATIC);
3305
+ }
3306
+ const PROPS_ITEMS = ["i", "items"];
3307
+ function resolveItems(node) {
3308
+ return resolveProps(node, PROPS_ITEMS, []);
3309
+ }
3310
+ const PROPS_TYPE = ["t", "type"];
3311
+ function resolveType(node) {
3312
+ return resolveProps(node, PROPS_TYPE);
3313
+ }
3314
+ const PROPS_VALUE = ["v", "value"];
3315
+ function resolveValue$1(node, type) {
3316
+ const resolved = resolveProps(node, PROPS_VALUE);
3317
+ if (resolved != null) {
3318
+ return resolved;
3319
+ } else {
3320
+ throw createUnhandleNodeError(type);
3321
+ }
3322
+ }
3323
+ const PROPS_MODIFIER = ["m", "modifier"];
3324
+ function resolveLinkedModifier(node) {
3325
+ return resolveProps(node, PROPS_MODIFIER);
3326
+ }
3327
+ const PROPS_KEY = ["k", "key"];
3328
+ function resolveLinkedKey(node) {
3329
+ const resolved = resolveProps(node, PROPS_KEY);
3330
+ if (resolved) {
3331
+ return resolved;
3332
+ } else {
3333
+ throw createUnhandleNodeError(
3334
+ 6
3335
+ /* NodeTypes.Linked */
3336
+ );
3337
+ }
3338
+ }
3339
+ function resolveProps(node, props, defaultValue) {
3340
+ for (let i = 0; i < props.length; i++) {
3341
+ const prop = props[i];
3342
+ if (hasOwn(node, prop) && node[prop] != null) {
3343
+ return node[prop];
3344
+ }
3345
+ }
3346
+ return defaultValue;
3347
+ }
3348
+ const AST_NODE_PROPS_KEYS = [
3349
+ ...PROPS_BODY,
3350
+ ...PROPS_CASES,
3351
+ ...PROPS_STATIC,
3352
+ ...PROPS_ITEMS,
3353
+ ...PROPS_KEY,
3354
+ ...PROPS_MODIFIER,
3355
+ ...PROPS_VALUE,
3356
+ ...PROPS_TYPE
3357
+ ];
3358
+ function createUnhandleNodeError(type) {
3359
+ return new Error(`unhandled node type: ${type}`);
3360
+ }
3286
3361
  const pathStateMachine = [];
3287
3362
  pathStateMachine[
3288
3363
  0
@@ -3689,7 +3764,7 @@ const cache = /* @__PURE__ */ new Map();
3689
3764
  function resolveWithKeyValue(obj, path) {
3690
3765
  return isObject$b(obj) ? obj[path] : null;
3691
3766
  }
3692
- function resolveValue$1(obj, path) {
3767
+ function resolveValue(obj, path) {
3693
3768
  if (!isObject$b(obj)) {
3694
3769
  return null;
3695
3770
  }
@@ -3707,7 +3782,11 @@ function resolveValue$1(obj, path) {
3707
3782
  let last = obj;
3708
3783
  let i = 0;
3709
3784
  while (i < len) {
3710
- const val = last[hit[i]];
3785
+ const key = hit[i];
3786
+ if (AST_NODE_PROPS_KEYS.includes(key) && isMessageAST(last)) {
3787
+ return null;
3788
+ }
3789
+ const val = last[key];
3711
3790
  if (val === void 0) {
3712
3791
  return null;
3713
3792
  }
@@ -4001,7 +4080,7 @@ function appendItemToChain(chain, target, blocks) {
4001
4080
  }
4002
4081
  return follow;
4003
4082
  }
4004
- const VERSION$3 = "9.14.3";
4083
+ const VERSION$3 = "9.14.4";
4005
4084
  const NOT_REOSLVED = -1;
4006
4085
  const DEFAULT_LOCALE = "en-US";
4007
4086
  const MISSING_RESOLVE_VALUE = "";
@@ -4188,14 +4267,6 @@ function formatParts(ctx, ast) {
4188
4267
  return formatMessageParts(ctx, body);
4189
4268
  }
4190
4269
  }
4191
- const PROPS_BODY = ["b", "body"];
4192
- function resolveBody(node) {
4193
- return resolveProps(node, PROPS_BODY);
4194
- }
4195
- const PROPS_CASES = ["c", "cases"];
4196
- function resolveCases(node) {
4197
- return resolveProps(node, PROPS_CASES, []);
4198
- }
4199
4270
  function formatMessageParts(ctx, node) {
4200
4271
  const static_ = resolveStatic(node);
4201
4272
  if (static_ != null) {
@@ -4205,22 +4276,14 @@ function formatMessageParts(ctx, node) {
4205
4276
  return ctx.normalize(messages);
4206
4277
  }
4207
4278
  }
4208
- const PROPS_STATIC = ["s", "static"];
4209
- function resolveStatic(node) {
4210
- return resolveProps(node, PROPS_STATIC);
4211
- }
4212
- const PROPS_ITEMS = ["i", "items"];
4213
- function resolveItems(node) {
4214
- return resolveProps(node, PROPS_ITEMS, []);
4215
- }
4216
4279
  function formatMessagePart(ctx, node) {
4217
4280
  const type = resolveType(node);
4218
4281
  switch (type) {
4219
4282
  case 3: {
4220
- return resolveValue(node, type);
4283
+ return resolveValue$1(node, type);
4221
4284
  }
4222
4285
  case 9: {
4223
- return resolveValue(node, type);
4286
+ return resolveValue$1(node, type);
4224
4287
  }
4225
4288
  case 4: {
4226
4289
  const named = node;
@@ -4249,56 +4312,15 @@ function formatMessagePart(ctx, node) {
4249
4312
  return ctx.linked(formatMessagePart(ctx, key), modifier ? formatMessagePart(ctx, modifier) : void 0, ctx.type);
4250
4313
  }
4251
4314
  case 7: {
4252
- return resolveValue(node, type);
4315
+ return resolveValue$1(node, type);
4253
4316
  }
4254
4317
  case 8: {
4255
- return resolveValue(node, type);
4318
+ return resolveValue$1(node, type);
4256
4319
  }
4257
4320
  default:
4258
4321
  throw new Error(`unhandled node on format message part: ${type}`);
4259
4322
  }
4260
4323
  }
4261
- const PROPS_TYPE = ["t", "type"];
4262
- function resolveType(node) {
4263
- return resolveProps(node, PROPS_TYPE);
4264
- }
4265
- const PROPS_VALUE = ["v", "value"];
4266
- function resolveValue(node, type) {
4267
- const resolved = resolveProps(node, PROPS_VALUE);
4268
- if (resolved) {
4269
- return resolved;
4270
- } else {
4271
- throw createUnhandleNodeError(type);
4272
- }
4273
- }
4274
- const PROPS_MODIFIER = ["m", "modifier"];
4275
- function resolveLinkedModifier(node) {
4276
- return resolveProps(node, PROPS_MODIFIER);
4277
- }
4278
- const PROPS_KEY = ["k", "key"];
4279
- function resolveLinkedKey(node) {
4280
- const resolved = resolveProps(node, PROPS_KEY);
4281
- if (resolved) {
4282
- return resolved;
4283
- } else {
4284
- throw createUnhandleNodeError(
4285
- 6
4286
- /* NodeTypes.Linked */
4287
- );
4288
- }
4289
- }
4290
- function resolveProps(node, props, defaultValue) {
4291
- for (let i = 0; i < props.length; i++) {
4292
- const prop = props[i];
4293
- if (hasOwn(node, prop) && node[prop] != null) {
4294
- return node[prop];
4295
- }
4296
- }
4297
- return defaultValue;
4298
- }
4299
- function createUnhandleNodeError(type) {
4300
- return new Error(`unhandled node type: ${type}`);
4301
- }
4302
4324
  const WARN_MESSAGE = `Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;
4303
4325
  function checkHtmlMessage(source, warnHtmlMessage) {
4304
4326
  if (warnHtmlMessage && detectHtmlTag(source)) {
@@ -4314,9 +4336,6 @@ reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-forma
4314
4336
  (message compiler warning message: ${_warn.message})`);
4315
4337
  }
4316
4338
  }
4317
- function isMessageAST(val) {
4318
- return isObject$b(val) && resolveType(val) === 0 && (hasOwn(val, "b") || hasOwn(val, "body"));
4319
- }
4320
4339
  function baseCompile(message, options = {}) {
4321
4340
  let detectError = false;
4322
4341
  const onError = options.onError || defaultOnError;
@@ -5145,11 +5164,11 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
5145
5164
  }
5146
5165
  }
5147
5166
  /*!
5148
- * vue-i18n v9.14.3
5167
+ * vue-i18n v9.14.4
5149
5168
  * (c) 2025 kazuya kawaguchi
5150
5169
  * Released under the MIT License.
5151
5170
  */
5152
- const VERSION$2 = "9.14.3";
5171
+ const VERSION$2 = "9.14.4";
5153
5172
  function initFeatureFlags() {
5154
5173
  if (typeof __VUE_I18N_FULL_INSTALL__ !== "boolean") {
5155
5174
  getGlobalThis().__VUE_I18N_FULL_INSTALL__ = true;
@@ -5282,6 +5301,9 @@ function handleFlatJson(obj) {
5282
5301
  if (!isObject$b(obj)) {
5283
5302
  return obj;
5284
5303
  }
5304
+ if (isMessageAST(obj)) {
5305
+ return obj;
5306
+ }
5285
5307
  for (const key in obj) {
5286
5308
  if (!hasOwn(obj, key)) {
5287
5309
  continue;
@@ -5312,11 +5334,20 @@ function handleFlatJson(obj) {
5312
5334
  currentObj = currentObj[subKeys[i]];
5313
5335
  }
5314
5336
  if (!hasStringValue) {
5315
- currentObj[subKeys[lastIndex]] = obj[key];
5316
- delete obj[key];
5337
+ if (!isMessageAST(currentObj)) {
5338
+ currentObj[subKeys[lastIndex]] = obj[key];
5339
+ delete obj[key];
5340
+ } else {
5341
+ if (!AST_NODE_PROPS_KEYS.includes(subKeys[lastIndex])) {
5342
+ delete obj[key];
5343
+ }
5344
+ }
5317
5345
  }
5318
- if (isObject$b(currentObj[subKeys[lastIndex]])) {
5319
- handleFlatJson(currentObj[subKeys[lastIndex]]);
5346
+ if (!isMessageAST(currentObj)) {
5347
+ const target = currentObj[subKeys[lastIndex]];
5348
+ if (isObject$b(target)) {
5349
+ handleFlatJson(target);
5350
+ }
5320
5351
  }
5321
5352
  }
5322
5353
  }
@@ -7507,7 +7538,7 @@ if (__INTLIFY_JIT_COMPILATION__) {
7507
7538
  } else {
7508
7539
  registerMessageCompiler(compileToFunction);
7509
7540
  }
7510
- registerMessageResolver(resolveValue$1);
7541
+ registerMessageResolver(resolveValue);
7511
7542
  registerLocaleFallbacker(fallbackWithLocaleChain);
7512
7543
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
7513
7544
  const target = getGlobalThis();
@@ -17667,13 +17698,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17667
17698
  setup(__props) {
17668
17699
  var _a;
17669
17700
  const { t: $t } = i18n.global;
17670
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-COlz1P94.js"));
17671
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-ybklO6i8.js"));
17672
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C3Ey-5q5.js"));
17673
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CPy5537r.js"));
17674
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B23AYdON.js"));
17675
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-D2ciSlOO.js"));
17676
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-8XZPId6l.js"));
17701
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DfNHtQ9a.js"));
17702
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-V43nXkFO.js"));
17703
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-4bu9_2qZ.js"));
17704
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DnCxBP8-.js"));
17705
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DPxyJ7ys.js"));
17706
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DRNbdQAm.js"));
17707
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DShDBlhd.js"));
17677
17708
  const props = __props;
17678
17709
  const repoInfo = inject("repoInfo");
17679
17710
  const orgInfo = inject("orgInfo");
@@ -18231,7 +18262,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18231
18262
  }
18232
18263
  });
18233
18264
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18234
- const NoticeModal = defineAsyncComponent(() => import("./notice-Cz1BwQDI.js"));
18265
+ const NoticeModal = defineAsyncComponent(() => import("./notice-1Cqn8Ju3.js"));
18235
18266
  function clearNotice() {
18236
18267
  if (localStorage$2.getItem("validator_email")) {
18237
18268
  localStorage$2.removeItem("validator_email");
@@ -19268,44 +19299,42 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19268
19299
  };
19269
19300
  return (_ctx, _cache) => {
19270
19301
  return openBlock(), createElementBlock("ul", _hoisted_1$f, [
19271
- createElementVNode("template", null, [
19272
- createElementVNode("div", _hoisted_2$9, [
19273
- _cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19274
- createElementVNode("span", _hoisted_3$6, [
19275
- createElementVNode("div", {
19276
- class: "fast-click-button",
19277
- onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
19278
- }, toDisplayString$1(unref(t2)("gitCodeLayout.org.project")), 1)
19279
- ])
19280
- ]),
19281
- createVNode(GIcon, {
19282
- class: "my-work-platform-searchicon",
19283
- color: "var(--theme-menu-icon-fill)",
19284
- name: "gt-search",
19285
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => showSearch.value = !showSearch.value, ["stop"]))
19286
- }),
19287
- createElementVNode("div", {
19288
- class: normalizeClass(["flex flex-col pl-[0] my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
19289
- onClick: _cache[5] || (_cache[5] = withModifiers(() => {
19290
- }, ["stop"]))
19291
- }, [
19292
- createVNode(unref(Input), {
19293
- modelValue: searchKey.value,
19294
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchKey.value = $event),
19295
- placeholder: unref(t2)("gitCodeLayout.common.search"),
19296
- onCompositionstart: _cache[3] || (_cache[3] = ($event) => inputIng.value = true),
19297
- onCompositionend: _cache[4] || (_cache[4] = ($event) => inputIng.value = false)
19298
- }, {
19299
- prefix: withCtx(() => [
19300
- createVNode(GIcon, {
19301
- name: "gt-search",
19302
- color: "var(--theme-menu-icon-fill)"
19303
- })
19304
- ]),
19305
- _: 1
19306
- }, 8, ["modelValue", "placeholder"])
19307
- ], 2)
19302
+ createElementVNode("div", _hoisted_2$9, [
19303
+ _cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19304
+ createElementVNode("span", _hoisted_3$6, [
19305
+ createElementVNode("div", {
19306
+ class: "fast-click-button",
19307
+ onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
19308
+ }, toDisplayString$1(unref(t2)("gitCodeLayout.org.project")), 1)
19309
+ ])
19308
19310
  ]),
19311
+ createVNode(GIcon, {
19312
+ class: "my-work-platform-searchicon",
19313
+ color: "var(--theme-menu-icon-fill)",
19314
+ name: "gt-search",
19315
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => showSearch.value = !showSearch.value, ["stop"]))
19316
+ }),
19317
+ createElementVNode("div", {
19318
+ class: normalizeClass(["flex flex-col pl-[0] my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
19319
+ onClick: _cache[5] || (_cache[5] = withModifiers(() => {
19320
+ }, ["stop"]))
19321
+ }, [
19322
+ createVNode(unref(Input), {
19323
+ modelValue: searchKey.value,
19324
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchKey.value = $event),
19325
+ placeholder: unref(t2)("gitCodeLayout.common.search"),
19326
+ onCompositionstart: _cache[3] || (_cache[3] = ($event) => inputIng.value = true),
19327
+ onCompositionend: _cache[4] || (_cache[4] = ($event) => inputIng.value = false)
19328
+ }, {
19329
+ prefix: withCtx(() => [
19330
+ createVNode(GIcon, {
19331
+ name: "gt-search",
19332
+ color: "var(--theme-menu-icon-fill)"
19333
+ })
19334
+ ]),
19335
+ _: 1
19336
+ }, 8, ["modelValue", "placeholder"])
19337
+ ], 2),
19309
19338
  firstLoading.value ? (openBlock(), createBlock(unref(Skeleton), {
19310
19339
  key: 0,
19311
19340
  rows: 4
@@ -24623,7 +24652,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24623
24652
  }
24624
24653
  });
24625
24654
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24626
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DtTjVW2g.js"));
24655
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-VNABvVPI.js"));
24627
24656
  const useSlidCaptcha = () => {
24628
24657
  const { mount, unMount } = usePopup("slid-captcha-popup");
24629
24658
  const open = (config) => {
@@ -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, 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-V8OJRYgR.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-BmW1sJe6.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";
@@ -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 { v as useLayoutConfig, _ as _export_sfc } from "./index-V8OJRYgR.js";
3
+ import { v as useLayoutConfig, _ as _export_sfc } from "./index-BmW1sJe6.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,4 +1,4 @@
1
- import { y, z, C, x, S, w, D, H, B, F, A } from "./index-V8OJRYgR.js";
1
+ import { y, z, C, x, S, w, D, H, B, F, A } from "./index-BmW1sJe6.js";
2
2
  export {
3
3
  y as GitCodeAside,
4
4
  z 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-V8OJRYgR.js";
2
+ import { i as isPhone, u as useModel } from "./index-BmW1sJe6.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.12",
3
+ "version": "1.3.0",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",