-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feat/mobile-masonry-grid
- Loading branch information
Showing
31 changed files
with
741 additions
and
202 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
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,18 @@ | ||
import type { DataSettings } from "@/src/interfaces/settings/data" | ||
|
||
import { createSettingAtom } from "./internal/helper" | ||
|
||
export const createDefaultSettings = (): DataSettings => ({ | ||
sendAnonymousData: true, | ||
}) | ||
|
||
export const { | ||
useSettingKey: useDataSettingKey, | ||
useSettingSelector: useDataSettingSelector, | ||
useSettingKeys: useDataSettingKeys, | ||
setSetting: setDataSetting, | ||
clearSettings: clearDataSettings, | ||
initializeDefaultSettings: initializeDefaultDataSettings, | ||
getSettings: getDataSettings, | ||
useSettingValue: useDataSettingValue, | ||
} = createSettingAtom("data", createDefaultSettings) |
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,36 @@ | ||
import type { UISettings } from "@/src/interfaces/settings/ui" | ||
|
||
import { createSettingAtom } from "./internal/helper" | ||
|
||
export const createDefaultSettings = (): UISettings => ({ | ||
// Subscription | ||
|
||
hideExtraBadge: false, | ||
|
||
subscriptionShowUnreadCount: true, | ||
thumbnailRatio: "square", | ||
|
||
// Content | ||
readerRenderInlineStyle: false, | ||
codeHighlightThemeLight: "github-light", | ||
codeHighlightThemeDark: "github-dark", | ||
guessCodeLanguage: true, | ||
hideRecentReader: false, | ||
customCSS: "", | ||
|
||
// View | ||
|
||
pictureViewFilterNoImage: false, | ||
}) | ||
|
||
export const { | ||
useSettingKey: useUISettingKey, | ||
useSettingSelector: useUISettingSelector, | ||
useSettingKeys: useUISettingKeys, | ||
setSetting: setUISetting, | ||
clearSettings: clearUISettings, | ||
initializeDefaultSettings: initializeDefaultUISettings, | ||
getSettings: getUISettings, | ||
useSettingValue: useUISettingValue, | ||
settingAtom: __uiSettingAtom, | ||
} = createSettingAtom("ui", createDefaultSettings) |
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,26 @@ | ||
import * as React from "react" | ||
import Svg, { Path } from "react-native-svg" | ||
|
||
interface ExitCuteFiIconProps { | ||
width?: number | ||
height?: number | ||
color?: string | ||
} | ||
|
||
export const ExitCuteFiIcon = ({ | ||
width = 24, | ||
height = 24, | ||
color = "#10161F", | ||
}: ExitCuteFiIconProps) => { | ||
return ( | ||
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24"> | ||
<Path fill="#fff" fillOpacity={0.01} d="M24 0v24H0V0z" /> | ||
<Path | ||
stroke={color} | ||
strokeLinecap="round" | ||
strokeWidth={3} | ||
d="M12.5 12H20m-2.5-2.828a8.616 8.616 0 0 1 2.478 2.307.89.89 0 0 1 0 1.042A8.631 8.631 0 0 1 17.5 14.83M12.5 3.5c-3.44.002-5.21.053-6.328 1.171C5 5.843 5 7.73 5 11.5v1c0 3.771 0 5.657 1.172 6.828C7.29 20.447 9.06 20.498 12.5 20.5" | ||
/> | ||
</Svg> | ||
) | ||
} |
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 interface DataSettings { | ||
sendAnonymousData: boolean | ||
} |
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,17 @@ | ||
export interface UISettings { | ||
subscriptionShowUnreadCount: boolean | ||
hideExtraBadge: boolean | ||
thumbnailRatio: "square" | "original" | ||
|
||
// Content | ||
readerRenderInlineStyle: boolean | ||
codeHighlightThemeLight: string | ||
codeHighlightThemeDark: string | ||
guessCodeLanguage: boolean | ||
hideRecentReader: boolean | ||
customCSS: string | ||
|
||
// view | ||
|
||
pictureViewFilterNoImage: boolean | ||
} |
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.