Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
23281ed
Improve empty note list style
Rokt33r Apr 15, 2020
f319cba
Discard StorageAllNotes route completely
Rokt33r Apr 15, 2020
65bf378
Improve Note listing of NotePage
Rokt33r Apr 15, 2020
b5028ec
Move NoteItem to molecuels
Rokt33r Apr 16, 2020
a863e49
Improve routing for storages.notes
Rokt33r Apr 16, 2020
b4d2437
Move SideNavigator
Rokt33r Apr 16, 2020
a087967
Extract StorageSideNavigatorItem
Rokt33r Apr 16, 2020
e0a28a5
Replace fold icons with mdi icons
Rokt33r Apr 16, 2020
553e64f
Adjust SideNavigatorItem style
Rokt33r Apr 16, 2020
b88b8ed
Flatten depth of side nav items
Rokt33r Apr 16, 2020
2b7b4e7
Replace icon of side nav items with mdi icon
Rokt33r Apr 16, 2020
cc75d4b
Improve sidebar theme coloring
Rokt33r Apr 18, 2020
92377a3
Apply text color and font directly in GlobalStyle
Rokt33r Apr 18, 2020
288f69c
Introduce SideNavigatorButton
Rokt33r Apr 18, 2020
c1b8ece
Introduce SideNavigatorheader
Rokt33r Apr 18, 2020
dfa096b
Update BaseTheme
Rokt33r Apr 18, 2020
a979ed8
Discard deprecated ControlButton
Rokt33r Apr 18, 2020
e1860e6
Fix SideNavItem
Rokt33r Apr 18, 2020
fc326b5
Use SideNavButton
Rokt33r Apr 18, 2020
859a0c1
Add transition style for side nav buttons
Rokt33r Apr 18, 2020
7e4dc22
Use SideNavButton in FolderListFragment
Rokt33r Apr 18, 2020
789fd71
Fix compile errors in routing
Rokt33r Apr 18, 2020
9ef1576
Fix compile errors in style temporarily
Rokt33r Apr 18, 2020
9127522
Fix all notes listing
Rokt33r Apr 19, 2020
00b2866
Hide attachments and trashed from sidebar when empty
Rokt33r Apr 19, 2020
599c400
Rename SideNavigator to Navigator
Rokt33r Apr 19, 2020
3af1c05
Discard Tutorials
Rokt33r Apr 19, 2020
57751d1
Fix top control style of nav
Rokt33r Apr 19, 2020
9d5c379
Fix no storage message
Rokt33r Apr 19, 2020
f123ec5
Resize Icons
Rokt33r Apr 19, 2020
b19be72
Improve top control UI of nav
Rokt33r Apr 19, 2020
d0549b1
Fix vertical position of icon of nav item
Rokt33r Apr 19, 2020
5495c47
Add style prop to Icon
Rokt33r Apr 19, 2020
5f30314
Fix light theme coloring
Rokt33r Apr 19, 2020
9da9512
Improve routing
Rokt33r Apr 19, 2020
80bfd01
Improve NoteList coloring
Rokt33r Apr 19, 2020
5ae1c06
Improve NoteDetail style
Rokt33r Apr 19, 2020
0e6e2c1
Add Separator contextmenu item
Rokt33r Apr 19, 2020
8a261f5
Hide trashed notes when showing all notes
Rokt33r Apr 19, 2020
04bfc0e
Show control when hovering only
Rokt33r Apr 19, 2020
a7bb24b
Improve contextMenu of SideNav
Rokt33r Apr 19, 2020
514fad1
Upgrade mdi icons
Rokt33r Apr 19, 2020
94d8305
Fix scrolling of StorageCreatePage
Rokt33r Apr 19, 2020
d4316d4
Use hammer wrench icon for app preferences
Rokt33r Apr 19, 2020
889e11d
Add spin prop to Icon
Rokt33r Apr 19, 2020
a0872a5
Improve StorageNavigatorheader contextMenu and control
Rokt33r Apr 19, 2020
b7b142a
Fix compiler error
Rokt33r Apr 19, 2020
235bf03
Fix scroll of nav
Rokt33r Apr 19, 2020
2deff6d
Adjust height of contextMenu items
Rokt33r Apr 19, 2020
56035bb
Discard initial modal
Rokt33r Apr 19, 2020
de46f40
Disable import tab
Rokt33r Apr 19, 2020
d0888d7
Use material-dark for default editor theme
Rokt33r Apr 19, 2020
710e105
Fix routing when note creation
Rokt33r Apr 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"webpack-dev-server": "^3.8.1"
},
"dependencies": {
"@mdi/js": "^4.4.95",
"@mdi/js": "^5.1.45",
"@mdi/react": "^1.2.1",
"@svgr/cli": "^4.3.3",
"@svgr/webpack": "^4.3.3",
Expand Down
19 changes: 9 additions & 10 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useMemo, useCallback } from 'react'
import SideNavigator from './SideNavigator'
import Navigator from './organisms/Navigator'
import Router from './Router'
import GlobalStyle from './GlobalStyle'
import { ThemeProvider } from 'styled-components'
import { defaultTheme } from '../themes/default'
import { legacyTheme } from '../themes/legacy'
import { darkTheme } from '../themes/dark'
import { lightTheme } from '../themes/light'
import { sepiaTheme } from '../themes/sepia'
Expand All @@ -19,7 +19,6 @@ import '../lib/i18n'
import '../lib/analytics'
import CodeMirrorStyle from './CodeMirrorStyle'
import { useGeneralStatus } from '../lib/generalStatus'
import Modal from './Modal'
import ToastList from './Toast'
import styled from '../lib/styled'
import { useEffectOnce } from 'react-use'
Expand Down Expand Up @@ -62,7 +61,7 @@ const App = () => {
}, [toggleClosed])
useGlobalKeyDownHandler(keyboardHandler)
const { generalStatus, setGeneralStatus } = useGeneralStatus()
const updateSideBarWidth = useCallback(
const updateNavWidth = useCallback(
(leftWidth: number) => {
setGeneralStatus({
sideBarWidth: leftWidth,
Expand All @@ -80,9 +79,9 @@ const App = () => {
{initialized ? (
<TwoPaneLayout
defaultLeftWidth={generalStatus.sideBarWidth}
left={<SideNavigator />}
left={<Navigator />}
right={<Router />}
onResizeEnd={updateSideBarWidth}
onResizeEnd={updateNavWidth}
/>
) : (
<LoadingText>Loading Data...</LoadingText>
Expand All @@ -91,7 +90,6 @@ const App = () => {
<ContextMenu />
<Dialog />
<PreferencesModal />
<Modal />
<ToastList />
<CodeMirrorStyle />
</AppContainer>
Expand All @@ -100,16 +98,17 @@ const App = () => {
}
function selectTheme(theme: string) {
switch (theme) {
case 'dark':
return darkTheme
case 'legacy':
return legacyTheme
case 'light':
return lightTheme
case 'sepia':
return sepiaTheme
case 'solarizedDark':
return solarizedDarkTheme
case 'dark':
default:
return defaultTheme
return darkTheme
}
}

Expand Down
9 changes: 5 additions & 4 deletions src/components/GlobalStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default createGlobalStyle<{ theme: BaseTheme }>`
margin: 0;
${backgroundColor}
${textColor}
font-family: ${({ theme }) => theme.fontFamily};
font-size: ${({ theme }) => theme.fontSize}px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Fira sans', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 15px;
font-weight: 400;
}

Expand All @@ -20,8 +21,8 @@ export default createGlobalStyle<{ theme: BaseTheme }>`
outline: none;
}

input {
font-size: ${({ theme }) => theme.fontSize}px;
input, button {
font-size: 15px;
}

h1,h2,h3,h4,h5,h6 {
Expand Down
58 changes: 0 additions & 58 deletions src/components/Modal/contents/DownloadOurAppModal.tsx

This file was deleted.

80 changes: 0 additions & 80 deletions src/components/Modal/contents/styled.ts

This file was deleted.

89 changes: 0 additions & 89 deletions src/components/Modal/index.tsx

This file was deleted.

Loading