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.
This commit is contained in:
2026-02-15 15:44:09 +08:00
parent 03bb21d5c6
commit 838eec30a8
205 changed files with 1868 additions and 344 deletions
@@ -0,0 +1 @@
const f={};function l(t,o){const n=f,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return c(t,i,r)}function c(t,o,n){if(s(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(o&&"alt"in t&&t.alt)return t.alt;if("children"in t)return e(t.children,o,n)}return Array.isArray(t)?e(t,o,n):""}function e(t,o,n){const i=[];let r=-1;for(;++r<t.length;)i[r]=c(t[r],o,n);return i.join("")}function s(t){return!!(t&&typeof t=="object")}export{l as t};