-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding Windows self-hosted runner to build and test * Add application store, toggleswitch updates, and preview pane * tslint fix * Remove branch from workflow and bump version
- Loading branch information
1 parent
8721740
commit 2251f64
Showing
23 changed files
with
211 additions
and
63 deletions.
There are no files selected for viewing
14 changes: 9 additions & 5 deletions
14
.github/workflows/build-and-test-mac.yml → .github/workflows/build-and-test.yml
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { default as MoreOptionsSidebarItem } from './MoreOptionsSidebarItem'; | ||
export { default as MoreOptionsSidebarMenu } from './MoreOptionsSidebarMenu'; | ||
export { default as ScrollContainer } from './ScrollContainer'; |
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,2 @@ | ||
export { default as useToggle } from './useToggle'; | ||
export { default as useIsMount } from './useIsMount'; |
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,11 @@ | ||
import { useRef, useEffect } from 'react'; | ||
|
||
const useIsMount = () => { | ||
const isMountRef = useRef(true); | ||
useEffect(() => { | ||
isMountRef.current = false; | ||
}, []); | ||
return isMountRef.current; | ||
}; | ||
|
||
export default useIsMount; |
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,21 @@ | ||
import styled from 'styled-components'; | ||
import useStore from '../store/useStore'; | ||
|
||
type StyledPaneProps = { | ||
previewEnabled: boolean; | ||
}; | ||
|
||
const StyledPane = styled.div<StyledPaneProps>` | ||
height: 100%; | ||
width: 600px; | ||
margin-right: ${(p) => (p.previewEnabled ? '0px' : '-600px')}; | ||
background-color: ${(p) => p.theme.previewBg}; | ||
transition: margin-right 300ms ease-in-out; | ||
`; | ||
|
||
const PreviewPane = () => { | ||
const previewEnabled = useStore((state) => state.previewEnabled); | ||
return <StyledPane previewEnabled={previewEnabled} />; | ||
}; | ||
|
||
export default PreviewPane; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { default as PreviewPane } from './PreviewPane'; | ||
export { default as SidebarPane } from './SidebarPane'; | ||
export { default as Writer } from './Writer'; |
Oops, something went wrong.