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:
@@ -0,0 +1 @@
|
||||
import{m as g,f as p}from"./vendor-micromark-util-character-Cn8n62xE.js";function k(r,h,E,m,i,x){const S=this;let t=0,l;return b;function b(n){return r.enter(m),r.enter(i),r.consume(n),r.exit(i),r.enter(x),a}function a(n){return t>999||n===null||n===91||n===93&&!l||n===94&&!t&&"_hiddenFootnoteSupport"in S.parser.constructs?E(n):n===93?(r.exit(x),r.enter(i),r.consume(n),r.exit(i),r.exit(m),h):g(n)?(r.enter("lineEnding"),r.consume(n),r.exit("lineEnding"),a):(r.enter("chunkString",{contentType:"string"}),u(n))}function u(n){return n===null||n===91||n===93||g(n)||t++>999?(r.exit("chunkString"),a(n)):(r.consume(n),l||(l=!p(n)),n===92?o:u)}function o(n){return n===91||n===92||n===93?(r.consume(n),t++,u):u(n)}}export{k as f};
|
||||
Reference in New Issue
Block a user