A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
Merge branch 'develop' into feature/new-menus
thecodrrefc1beb05728
diff --cc apps/web/src/components/group-header/index.jsindex d52537257,73f4b9695..48f2464e0--- a/apps/web/src/components/group-header/index.js+++ b/apps/web/src/components/group-header/index.js@@@ -160,19 -126,19 +160,22 @@@ function GroupHeader(props)<AnimatedFlextransition={{ duration: 0.3, repeatType: "reverse", repeat: 3 }}onClick={(e) => {+ if (e.ctrlKey) {+ onSelectGroup();+ return;+ }if (groups.length <= 0) return;e.stopPropagation();- const items = groups.map((group) => ({- key: group.title,- title: group.title,- onClick: () => onJump(group.title),- checked: group.title === title,- }));+ const items = groups.map((group) => {+ const groupTitle = group.title.toString();+ return {+ key: groupTitle,+ title: () => groupTitle,+ onClick: () => onJump(groupTitle),+ checked: group.title === title,+ };+ });-- openContextMenu(e, items, {+ openMenu(items, {title: "Jump to group",});}}diff --cc apps/web/src/components/icons/index.jsindex 8a59ac4eb,930a8b06a..8834accc3--- a/apps/web/src/components/icons/index.js+++ b/apps/web/src/components/icons/index.js@@@ -127,12 -126,9 +126,15 @@@ importmdiLinkVariantOff,mdiNetworkOffOutline,mdiCheckNetworkOutline,+ mdiSort,+ mdiOrderAlphabeticalAscending,+ mdiOrderAlphabeticalDescending,+ mdiOrderNumericDescending,+ mdiOrderNumericAscending,+ mdiSelectGroup,+ mdiContentSaveCheckOutline,+ mdiContentSaveAlertOutline,+ mdiCurrencyUsd,} from "@mdi/js";import { useTheme } from "emotion-theming";import { AnimatedFlex } from "../animated";@@@ -329,9 -324,5 +331,11 @@@ export const RemoveShortcutLink = createxport const Offline = createIcon(mdiNetworkOffOutline);export const Online = createIcon(mdiCheckNetworkOutline);+export const SortBy = createIcon(mdiSort);+export const GroupBy = createIcon(mdiSelectGroup);+export const OrderAtoZ = createIcon(mdiOrderAlphabeticalAscending);+export const OrderZtoA = createIcon(mdiOrderAlphabeticalDescending);+export const OrderOldestNewest = createIcon(mdiOrderNumericDescending);+export const OrderNewestOldest = createIcon(mdiOrderNumericAscending);+ export const Saved = createIcon(mdiContentSaveCheckOutline);+ export const NotSaved = createIcon(mdiContentSaveAlertOutline);diff --cc apps/web/src/views/recovery.jsindex f2132b73c,866f5ba53..4f07e9bec--- a/apps/web/src/views/recovery.js+++ b/apps/web/src/views/recovery.js@@@ -213,14 -221,58 +221,65 @@@ function Step({ testId, heading, childr);}+ function RecoveryOptionsStep({ onFinished }) {+ const isSessionExpired = useIsSessionExpired();++ if (isSessionExpired) {+ onFinished("newPassword");+ return null;+ }++ return (+ <Step+ heading="Choose a recovery option"+ testId={"step-recovery-options"}+ subtitle={"How do you want to recover your account?"}+ >+ <Flex flexDirection="column" width="100%">+ <Button+ data-test-id="step-recovery-key"+ variant={"list"}+ mt={1}+ onClick={() => onFinished("recoveryKey")}+ >+ <TextWithTip+ text={"Use data recovery key"}+ tip={+ "Your data recovery key is basically a hashed version of your password (plus some random salt). It can be used to decrypt your data for re-encryption."+ }+ />+ </Button>+ <Button+ data-test-id="step-old-password"+ variant={"list"}+ onClick={() => onFinished("oldPassword")}+ >+ <TextWithTip+ text={"Use your old account password"}+ tip={+ "In some cases, you cannot login due to case sensitivity issues in your email address. This option can be used to recover your account. (This is very similar to changing your account password but without logging in)."+ }+ />+ </Button>+ {/* <Button disabled variant={"list"}>+ <TextWithTip+ text={"Delete all data & reset account"}+ tip={"USE WITH CARE!"}+ />+ </Button> */}+ </Flex>+ </Step>+ );+ }+function RecoveryKeyStep({ performAction, onFinished }) {+ const isSessionExpired = useIsSessionExpired();++ if (isSessionExpired) {+ onFinished();+ return null;+ }+return (<Stepheading="Recover your account"