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 i=(function(n){if(n==null)return p;if(typeof n=="function")return u(n);if(typeof n=="object")return Array.isArray(n)?f(n):y(n);if(typeof n=="string")return l(n);throw new Error("Expected function, string, or object as test")});function f(n){const e=[];let r=-1;for(;++r<n.length;)e[r]=i(n[r]);return u(t);function t(...c){let o=-1;for(;++o<e.length;)if(e[o].apply(this,c))return!0;return!1}}function y(n){const e=n;return u(r);function r(t){const c=t;let o;for(o in n)if(c[o]!==e[o])return!1;return!0}}function l(n){return u(e);function e(r){return r&&r.type===n}}function u(n){return e;function e(r,t,c){return!!(a(r)&&n.call(this,r,typeof t=="number"?t:void 0,c||void 0))}}function p(){return!0}function a(n){return n!==null&&typeof n=="object"&&"type"in n}export{i as c};
|
||||
Reference in New Issue
Block a user