Files
llm-in-text/.build-check/assets/vendor-unist-util-visit-parents-BHoKBdZX.js
ydy0615 838eec30a8 feat: add theme management with light and dark modes
- Implemented a new composable `useTheme` for managing theme state.
- Added functions to read and write theme preference to local storage.
- Applied theme styles to the DOM based on user preference.
- Introduced a toggle function to switch between light and dark themes.

refactor: enhance copilot plugin functionality

- Improved request handling with sequence and document versioning.
- Refactored ghost text handling to improve clarity and efficiency.
- Updated markdown insertion logic to handle parsed content more robustly.
- Enhanced error handling and logging for better debugging.

style: update global styles for light and dark themes

- Defined CSS variables for light and dark themes to streamline styling.
- Improved overall styling consistency and responsiveness.
- Added transitions for smoother theme changes and interactions.
2026-02-15 15:44:09 +08:00

2 lines
907 B
JavaScript

import{c as A}from"./vendor-unist-util-is-BPZGFiMU.js";const g=[],E=!0,m=!1,I="skip";function O(n,o,u,l){let y;typeof o=="function"&&typeof u!="function"?(l=u,u=o):y=o;const b=A(y),a=l?-1:1;p(n,void 0,[])();function p(t,N,s){const i=t&&typeof t=="object"?t:{};if(typeof i.type=="string"){const e=typeof i.tagName=="string"?i.tagName:typeof i.name=="string"?i.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(t.type+(e?"<"+e+">":""))+")"})}return h;function h(){let e=g,c,r,d;if((!o||b(t,N,s[s.length-1]||void 0))&&(e=j(u(t,s)),e[0]===m))return e;if("children"in t&&t.children){const f=t;if(f.children&&e[0]!==I)for(r=(l?f.children.length:-1)+a,d=s.concat(f);r>-1&&r<f.children.length;){const P=f.children[r];if(c=p(P,r,d)(),c[0]===m)return c;r=typeof c[1]=="number"?c[1]:r+a}}return e}}}function j(n){return Array.isArray(n)?n:typeof n=="number"?[E,n]:n==null?g:[n]}export{m as E,I as S,O as v};