-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: undo/redo #179
refactor: undo/redo #179
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skimmed it, loved it
@@ -129,25 +107,32 @@ type ConvertToServerSide<T> = { | |||
: T[K] | |||
} | |||
|
|||
function Undoable(target: EverythingService, _key: string, descriptor: PropertyDescriptor) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a description here explaining that the intended usage is as a decorator?
const enableArray = Array.isArray(tObj.obj.enable) ? tObj.obj.enable : [tObj.obj.enable] | ||
for (const enable of enableArray) { | ||
if (enable.start && typeof enable.start === 'string') { | ||
// TODO: immer js? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo?
Addresses #174,
Makes undo/redo scoped to one of: current rundown, application (home), peripheral devices - depending on which section of the UI is active.
Disables
nodeIntegration
and enablescontextIsolation
for the main Electron app.