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 @@
|
||||
function x(){const i=[],u={run:c,use:p};return u;function c(...n){let h=-1;const t=n.pop();if(typeof t!="function")throw new TypeError("Expected function as last argument, not "+t);f(null,...n);function f(e,...o){const r=i[++h];let l=-1;if(e){t(e);return}for(;++l<n.length;)(o[l]===null||o[l]===void 0)&&(o[l]=n[l]);n=o,r?s(r,f)(...o):t(null,...o)}}function p(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return i.push(n),u}}function s(i,u){let c;return p;function p(...t){const f=i.length>t.length;let e;f&&t.push(n);try{e=i.apply(this,t)}catch(o){const r=o;if(f&&c)throw r;return n(r)}f||(e&&e.then&&typeof e.then=="function"?e.then(h,n):e instanceof Error?n(e):h(e))}function n(t,...f){c||(c=!0,u(t,...f))}function h(t){n(null,t)}}export{x as t};
|
||||
Reference in New Issue
Block a user