-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1681 from quadratichq/qa
QA: Started Aug 8th
- Loading branch information
Showing
61 changed files
with
1,048 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { inlineEditorMonaco } from '@/app/gridGL/HTMLGrid/inlineEditor/inlineEditorMonaco'; | ||
import { atom } from 'recoil'; | ||
|
||
export interface InlineEditorState { | ||
visible: boolean; | ||
formula: boolean; | ||
left: number; | ||
top: number; | ||
lineHeight: number; | ||
} | ||
|
||
export const defaultInlineEditor: InlineEditorState = { | ||
visible: false, | ||
formula: false, | ||
left: 0, | ||
top: 0, | ||
lineHeight: 19, | ||
}; | ||
|
||
export const inlineEditorAtom = atom({ | ||
key: 'inlineEditorState', | ||
default: defaultInlineEditor, | ||
effects: [ | ||
({ onSet }) => { | ||
onSet((newValue) => { | ||
if (newValue.visible) { | ||
inlineEditorMonaco.focus(); | ||
} | ||
}); | ||
}, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { atom } from 'recoil'; | ||
|
||
interface UserMessageState { | ||
message: string | undefined; | ||
} | ||
|
||
const defaultBorderMenuState: UserMessageState = { | ||
message: undefined, | ||
}; | ||
|
||
export const userMessageAtom = atom({ | ||
key: 'userMessageState', | ||
default: defaultBorderMenuState, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.