Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new user guide #800

Merged
merged 47 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
636238c
feat: new user guide
hyoban Oct 8, 2024
5c00e80
chore: auto-fix linting and formatting issues
hyoban Oct 8, 2024
10cff16
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 8, 2024
c37d95b
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 9, 2024
6d034bf
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 9, 2024
ff24ac3
chore: style
hyoban Oct 9, 2024
ac10d2b
refactor: use css var
hyoban Oct 9, 2024
53d70b9
fix: detect new user base on remote settings
hyoban Oct 9, 2024
9122157
chore: update remote when finished
hyoban Oct 9, 2024
1e94b6c
fix: invalidate
hyoban Oct 9, 2024
05107d7
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 9, 2024
ffbf106
feat: fill feeds from trending
hyoban Oct 9, 2024
a711abb
chore: update
hyoban Oct 9, 2024
592bf7b
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 9, 2024
f22f602
chore: center
hyoban Oct 9, 2024
c2b60b7
chore: style
hyoban Oct 9, 2024
015aa38
chore: update
hyoban Oct 9, 2024
e79921c
feat: rookie check
hyoban Oct 9, 2024
fb6a11b
chore: update
hyoban Oct 9, 2024
8333743
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 10, 2024
a5085bf
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 10, 2024
0247140
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 12, 2024
e852a94
remove import feeds
hyoban Oct 12, 2024
1e60698
update
hyoban Oct 12, 2024
79a812f
direction
hyoban Oct 12, 2024
0c5343d
update
hyoban Oct 12, 2024
1ee4c6e
i18n
hyoban Oct 12, 2024
ba5afc0
update
hyoban Oct 12, 2024
40d2a1f
update styles
Innei Oct 12, 2024
786f281
feat: icon
Innei Oct 12, 2024
524b18d
lazy
Innei Oct 12, 2024
1301f72
fix: onclose
Innei Oct 13, 2024
1036b97
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 14, 2024
e333916
animating state
hyoban Oct 14, 2024
8371552
typecheck
hyoban Oct 14, 2024
1dd8b3f
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 20, 2024
fea12ce
chore: auto-fix linting and formatting issues
hyoban Oct 20, 2024
6dd0f0c
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 20, 2024
235eb07
rsshub guide
hyoban Oct 20, 2024
01a8522
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 21, 2024
cf13524
update
hyoban Oct 21, 2024
38c4e45
update
hyoban Oct 21, 2024
bf7c4e7
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 21, 2024
69a87f5
update
hyoban Oct 21, 2024
bf0c910
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 21, 2024
3498baf
Merge branch 'dev' into feat/new-user-guide
hyoban Oct 21, 2024
e1c1eee
more content
hyoban Oct 21, 2024
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
7 changes: 3 additions & 4 deletions apps/renderer/src/api/trending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { apiFetch } from "~/lib/api-fetch"
import type { Models } from "~/models"

const v1ApiPrefix = "/v1"
export const getTrendingAggregates = () => {
return apiFetch<Models.TrendingAggregates>(`${v1ApiPrefix}/trendings`).then((data) =>
camelcaseKeys(data as any, { deep: true }),
)
export const getTrendingAggregates = async () => {
const data = await apiFetch<Models.TrendingAggregates>(`${v1ApiPrefix}/trendings`)
return camelcaseKeys(data as any, { deep: true }) as Models.TrendingAggregates
}
Binary file added apps/renderer/src/assets/rsshub-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/renderer/src/components/ui/button/variants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const styledButtonVariant = cva(
),

outline: cn(
"bg-theme-background font-semibold transition-colors duration-200",
"bg-theme-background font-semibold duration-200",
"border border-border hover:bg-zinc-50 dark:bg-neutral-900/30 dark:hover:bg-neutral-900/80",
"focus:border-accent/80",
),
Expand Down
4 changes: 2 additions & 2 deletions apps/renderer/src/components/ui/radio-group/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Radio: FC<
onChange?.(e)
})
return (
<div className={cn("flex items-center", wrapperClassName)}>
<label className={cn("flex items-center", wrapperClassName)} htmlFor={id ?? fallbackId}>
<input
{...rest}
type="radio"
Expand All @@ -43,6 +43,6 @@ export const Radio: FC<
>
{label}
</label>
</div>
</label>
)
}
4 changes: 2 additions & 2 deletions apps/renderer/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { User } from "@auth/core/types"

import type { FeedModel, ListModelPoplutedFeeds } from "./types"
import type { FeedModel } from "./types"

export * from "./types"

Expand All @@ -20,7 +20,7 @@ export namespace Models {

export interface TrendingAggregates {
trendingFeeds: FeedModel[]
trendingLists: ListModelPoplutedFeeds[]
trendingLists: TrendingList[]
trendingEntries: TrendingEntry[]
trendingUsers: User[]
}
Expand Down
12 changes: 12 additions & 0 deletions apps/renderer/src/modules/new-user-guide/atoms.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { atom } from "jotai"

import { createAtomHooks } from "~/lib/jotai"

export const [
,
useHaveUsedOtherRSSReaderAtom,
useHaveUsedOtherRSSReader,
,
getHaveUsedOtherRSSReader,
setHaveUsedOtherRSSReader,
] = createAtomHooks(atom(false))
Loading
Loading