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 @@
|
||||
const s=i(/[A-Za-z]/),u=i(/[\dA-Za-z]/),c=i(/[#-'*+\--9=?A-Z^-~]/);function r(n){return n!==null&&(n<32||n===127)}const o=i(/\d/),e=i(/[\dA-Fa-f]/),l=i(/[!-/:-@[-`{-~]/);function f(n){return n!==null&&n<-2}function p(n){return n!==null&&(n<0||n===32)}function g(n){return n===-2||n===-1||n===32}const h=i(new RegExp("\\p{P}|\\p{S}","u")),A=i(/\s/);function i(n){return t;function t(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}export{h as a,s as b,u as c,r as d,c as e,g as f,l as g,e as h,o as i,p as j,f as m,A as u};
|
||||
Reference in New Issue
Block a user