@valaxyjs/devtools 0.25.0 → 0.25.1

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,4 +1,4 @@
1
- import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-BQ28fLxA.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-HXGp8cJz.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = { };
4
4
 
@@ -1,4 +1,4 @@
1
- import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-BQ28fLxA.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-HXGp8cJz.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = { };
4
4
 
@@ -1,5 +1,5 @@
1
- import { g as getAppWindow, s, B as BaseStyle, r as resolveDirective, w as withDirectives, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, n as normalizeClass, d as createCommentVNode, m as mergeProps, t as toDisplayString, k, e as c, f as resolveComponent, F as Fragment, h as renderList, i as createBlock, j as createSlots, l as withCtx, p as defineComponent, u as useModel, q as ref, v as watch, x as createVNode, y as unref, _ as _export_sfc, z as createTextVNode, A as B, C as At, D as s$1, E as tt, T as Teleport, K as Kt, W, G as b, Y, H as z, I as Ht, Q, J as I, L as v, M as D, N as Yt, S, O as normalizeStyle, P as resolveDynamicComponent, R as Transition, U as vShow, V as withKeys, X as pt, Z as Mt, $ as toHandlers, a0 as useI18n, a1 as dayjs, a2 as clientPageData, a3 as toRaw, a4 as pageData, a5 as activePath, a6 as onMounted, a7 as rpc, a8 as getDefaultExportFromCjs, a9 as computed, aa as devtoolsRouter, ab as useScroll, ac as postList, ad as isStaticMode } from './index-BQ28fLxA.js';
2
- import { s as script$n, R as Ripple, f, a as script$o, b as script$p, c as axios, P as Pe, g as ge } from './splitpanes.es-BeYGdDVf.js';
1
+ import { g as getAppWindow, s, B as BaseStyle, r as resolveDirective, w as withDirectives, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, n as normalizeClass, d as createCommentVNode, m as mergeProps, t as toDisplayString, k, e as c, f as resolveComponent, F as Fragment, h as renderList, i as createBlock, j as createSlots, l as withCtx, p as defineComponent, u as useModel, q as ref, v as watch, x as createVNode, y as unref, _ as _export_sfc, z as createTextVNode, A as B, C as At, D as s$1, E as tt, T as Teleport, K as Kt, W, G as b, Y, H as z, I as Ht, Q, J as I, L as v, M as D, N as Yt, S, O as normalizeStyle, P as resolveDynamicComponent, R as Transition, U as vShow, V as withKeys, X as pt, Z as Mt, $ as toHandlers, a0 as useI18n, a1 as dayjs, a2 as clientPageData, a3 as toRaw, a4 as pageData, a5 as activePath, a6 as onMounted, a7 as rpc, a8 as getDefaultExportFromCjs, a9 as computed, aa as devtoolsRouter, ab as useScroll, ac as postList, ad as isStaticMode } from './index-HXGp8cJz.js';
2
+ import { s as script$n, R as Ripple, f, a as script$o, b as script$p, c as axios, P as Pe, g as ge } from './splitpanes.es-DmJodE1j.js';
3
3
 
4
4
  function g(){let r=[],i=(e,n,t=999)=>{let s=u(e,n,t),o=s.value+(s.key===e?0:t)+1;return r.push({key:e,value:o}),o},d=e=>{r=r.filter(n=>n.value!==e);},a=(e,n)=>u(e).value,u=(e,n,t=0)=>[...r].reverse().find(s=>true)||{key:e,value:t},l=e=>e&&parseInt(e.style.zIndex,10)||0;return {get:l,set:(e,n,t)=>{n&&(n.style.zIndex=String(i(e,true,t)));},clear:e=>{e&&(d(l(e)),e.style.zIndex="");},getCurrent:e=>a(e)}}var x=g();
5
5
  /* Injected with object hook! */
@@ -7855,6 +7855,15 @@ var relativeTimeExports = requireRelativeTime();
7855
7855
  const relativeTime = /*@__PURE__*/getDefaultExportFromCjs(relativeTimeExports);
7856
7856
  /* Injected with object hook! */
7857
7857
 
7858
+ function tObject(data, lang) {
7859
+ if (typeof data === "object") {
7860
+ return data[lang] || Object.values(data)[0] || "";
7861
+ }
7862
+ return data;
7863
+ }
7864
+
7865
+ /* Injected with object hook! */
7866
+
7858
7867
  const _hoisted_1$1 = { class: "list-decimal text-sm" };
7859
7868
  const _hoisted_2 = { class: "text-xs" };
7860
7869
  const _hoisted_3 = { class: "op-80" };
@@ -7866,6 +7875,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
7866
7875
  },
7867
7876
  setup(__props) {
7868
7877
  const props = __props;
7878
+ const { locale } = useI18n();
7869
7879
  dayjs.extend(relativeTime);
7870
7880
  function onClickPost(post) {
7871
7881
  devtoolsRouter.value?.push(post.routePath);
@@ -7893,7 +7903,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
7893
7903
  createBaseVNode("span", {
7894
7904
  class: "inline-flex flex-grow cursor-pointer truncate",
7895
7905
  onClick: _cache[1] || (_cache[1] = ($event) => onClickPost(_ctx.post))
7896
- }, toDisplayString(_ctx.post.frontmatter.title), 1),
7906
+ }, toDisplayString(unref(tObject)(_ctx.post.frontmatter.title || "", unref(locale))), 1),
7897
7907
  createBaseVNode("div", _hoisted_2, [
7898
7908
  createBaseVNode("span", _hoisted_3, toDisplayString(unref(dayjs)(_ctx.post.frontmatter.updated).fromNow()), 1),
7899
7909
  _cache[3] || (_cache[3] = createBaseVNode("span", { class: "mx-1" }, "|", -1)),
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CuVxz6bX.js","./splitpanes.es-BeYGdDVf.js","./index-DKnSvpEK.css","./migration-BBvf-kdp.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CfaafvW8.js","./splitpanes.es-DmJodE1j.js","./index-DKnSvpEK.css","./migration-C1NGcc0-.js"])))=>i.map(i=>d[i]);
2
2
  true &&(function polyfill() {
3
3
  const relList = document.createElement("link").relList;
4
4
  if (relList && relList.supports && relList.supports("modulepreload")) return;
@@ -10581,31 +10581,31 @@ const routes = [
10581
10581
  {
10582
10582
  path: "/",
10583
10583
  name: "/",
10584
- component: () => __vitePreload(() => import('./index-CuVxz6bX.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
10584
+ component: () => __vitePreload(() => import('./index-CfaafvW8.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
10585
10585
  /* no children */
10586
10586
  },
10587
10587
  {
10588
10588
  path: "/about",
10589
10589
  name: "/about",
10590
- component: () => __vitePreload(() => import('./about-owKsYr3E.js'),true ?[]:void 0,import.meta.url)
10590
+ component: () => __vitePreload(() => import('./about-1VFKA8T4.js'),true ?[]:void 0,import.meta.url)
10591
10591
  /* no children */
10592
10592
  },
10593
10593
  {
10594
10594
  path: "/categories",
10595
10595
  name: "/categories",
10596
- component: () => __vitePreload(() => import('./categories-BGG1NAYq.js'),true ?[]:void 0,import.meta.url)
10596
+ component: () => __vitePreload(() => import('./categories-a1qUhy3i.js'),true ?[]:void 0,import.meta.url)
10597
10597
  /* no children */
10598
10598
  },
10599
10599
  {
10600
10600
  path: "/migration",
10601
10601
  name: "/migration",
10602
- component: () => __vitePreload(() => import('./migration-BBvf-kdp.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
10602
+ component: () => __vitePreload(() => import('./migration-C1NGcc0-.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
10603
10603
  /* no children */
10604
10604
  },
10605
10605
  {
10606
10606
  path: "/tags",
10607
10607
  name: "/tags",
10608
- component: () => __vitePreload(() => import('./tags-BZ1s-2OD.js'),true ?[]:void 0,import.meta.url)
10608
+ component: () => __vitePreload(() => import('./tags-Cav8j7El.js'),true ?[]:void 0,import.meta.url)
10609
10609
  /* no children */
10610
10610
  }
10611
10611
  ];
@@ -1,5 +1,5 @@
1
- import { p as defineComponent, q as ref, i as createBlock, l as withCtx, y as unref, x as createVNode, a as createBaseVNode, z as createTextVNode, c as createElementBlock, h as renderList, w as withDirectives, ae as vModelCheckbox, t as toDisplayString, ac as postList, F as Fragment, af as vModelText, o as openBlock } from './index-BQ28fLxA.js';
2
- import { P as Pe, b as script, g as ge, c as axios } from './splitpanes.es-BeYGdDVf.js';
1
+ import { p as defineComponent, q as ref, i as createBlock, l as withCtx, y as unref, x as createVNode, a as createBaseVNode, z as createTextVNode, c as createElementBlock, h as renderList, w as withDirectives, ae as vModelCheckbox, t as toDisplayString, ac as postList, F as Fragment, af as vModelText, o as openBlock } from './index-HXGp8cJz.js';
2
+ import { P as Pe, b as script, g as ge, c as axios } from './splitpanes.es-DmJodE1j.js';
3
3
 
4
4
  const _hoisted_1 = {
5
5
  flex: "~ gap-2",
@@ -1,4 +1,4 @@
1
- import { ag as F, m as mergeProps, ah as l, ai as v, aj as R, ak as g, B as BaseStyle, al as p, am as g$1, an as m, ao as i, ap as a, aq as PrimeVueService, ar as b, Q, as as O, at as Tt, au as Rt, L as v$1, av as C, aw as K, ax as W, ay as U, az as useId, s as s$1, H as z, aA as c, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, z as createTextVNode, t as toDisplayString, f as resolveComponent, r as resolveDirective, w as withDirectives, i as createBlock, l as withCtx, d as createCommentVNode, n as normalizeClass, P as resolveDynamicComponent, aB as useSlots, q as ref, a9 as computed, v as watch, a6 as onMounted, aC as onBeforeUnmount, aD as provide, aE as inject, aF as getCurrentInstance, O as normalizeStyle, y as unref, aG as h, aH as nextTick } from './index-BQ28fLxA.js';
1
+ import { ag as F, m as mergeProps, ah as l, ai as v, aj as R, ak as g, B as BaseStyle, al as p, am as g$1, an as m, ao as i, ap as a, aq as PrimeVueService, ar as b, Q, as as O, at as Tt, au as Rt, L as v$1, av as C, aw as K, ax as W, ay as U, az as useId, s as s$1, H as z, aA as c, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, z as createTextVNode, t as toDisplayString, f as resolveComponent, r as resolveDirective, w as withDirectives, i as createBlock, l as withCtx, d as createCommentVNode, n as normalizeClass, P as resolveDynamicComponent, aB as useSlots, q as ref, a9 as computed, v as watch, a6 as onMounted, aC as onBeforeUnmount, aD as provide, aE as inject, aF as getCurrentInstance, O as normalizeStyle, y as unref, aG as h, aH as nextTick } from './index-HXGp8cJz.js';
2
2
 
3
3
  function f(...e){if(e){let t=[];for(let i=0;i<e.length;i++){let n=e[i];if(!n)continue;let s=typeof n;if(s==="string"||s==="number")t.push(n);else if(s==="object"){let c=Array.isArray(n)?[f(...n)]:Object.entries(n).map(([r,o])=>o?r:void 0);t=c.length?t.concat(c.filter(r=>!!r)):t;}}return t.join(" ").trim()}}
4
4
  /* Injected with object hook! */
@@ -1,4 +1,4 @@
1
- import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-BQ28fLxA.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-HXGp8cJz.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = { };
4
4
 
@@ -16,7 +16,7 @@
16
16
  document.documentElement.classList.toggle('dark', true)
17
17
  })()
18
18
  </script>
19
- <script type="module" crossorigin src="./assets/index-BQ28fLxA.js"></script>
19
+ <script type="module" crossorigin src="./assets/index-HXGp8cJz.js"></script>
20
20
  <link rel="stylesheet" crossorigin href="./assets/index-CJU8Ji_S.css">
21
21
  </head>
22
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valaxyjs/devtools",
3
3
  "type": "module",
4
- "version": "0.25.0",
4
+ "version": "0.25.1",
5
5
  "repository": {
6
6
  "url": "https://github.com/YunYouJun/valaxy"
7
7
  },