-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1075 from planetary-social/feature/discover-authors
Show authors on Discover tab instead of notes
- Loading branch information
Showing
10 changed files
with
384 additions
and
195 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
Large diffs are not rendered by default.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
Nos/Assets/Assets.xcassets/Colors/picker-background-selected.colorset/Contents.json
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,20 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0x29", | ||
"green" : "0x11", | ||
"red" : "0x1A" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
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,75 @@ | ||
import Foundation | ||
|
||
enum FeaturedAuthorCategory: CaseIterable { | ||
case all | ||
case new // swiftlint:disable:this identifier_name | ||
case journalists | ||
case tech | ||
case art // swiftlint:disable:this identifier_name | ||
case environment | ||
case sports | ||
case music | ||
|
||
var text: LocalizedStringResource { | ||
switch self { | ||
case .all: LocalizedStringResource.localizable.featuredAuthorCategoryAll | ||
case .new: LocalizedStringResource.localizable.featuredAuthorCategoryNew | ||
case .journalists: LocalizedStringResource.localizable.featuredAuthorCategoryJournalists | ||
case .tech: LocalizedStringResource.localizable.featuredAuthorCategoryTech | ||
case .art: LocalizedStringResource.localizable.featuredAuthorCategoryArt | ||
case .environment: LocalizedStringResource.localizable.featuredAuthorCategoryEnvironment | ||
case .sports: LocalizedStringResource.localizable.featuredAuthorCategorySports | ||
case .music: LocalizedStringResource.localizable.featuredAuthorCategoryMusic | ||
} | ||
} | ||
|
||
var npubs: [String] { | ||
switch self { | ||
case .all: | ||
[ | ||
"npub1asuq0pxedwfagpqkdf4lrfmcyfaffgptmayel9947j8krad3x58srs20ap", | ||
"npub1d9nndmy3lx6f00cysrmn2v9t6hz280uwycw0kgcfdhvg99azry8sududfv", | ||
"npub1grz7afdguc67jkjly6fu0xmw0r386t8mtxafutu9u34dy207nt9ql335cv", | ||
"npub1yxzkmtuyctjw2pffp6e9uvyrkp29hrqra2tm3xp3z9707z06muxsg75qvv", | ||
"npub1d7ggne0xsy8e2999q8cyh9zxda688axm07cwncufjeku0nahvfgsyz6qzr", | ||
"npub17a49ajzjlwjv4znh85jcfgmk7qq5ck8m5advx66rudz8g0v034kss2hnk3", | ||
"npub1l9kr6ajfwp6vfjp60vuzxwqwwlw884dff98a9cznujs520shsf9s35xfwh", | ||
"npub1uh8e4y97tvs5zhsq6srr43qy0u66zk8xfy08xcrhef2803sdfcrslq62el", | ||
"npub1aylzctp5p20yc842qfpu2w9j8q0kpqcfx8q3p42ugnp3t8uxg3xq3k8nn0" | ||
] | ||
case .new: | ||
[ | ||
"npub1asuq0pxedwfagpqkdf4lrfmcyfaffgptmayel9947j8krad3x58srs20ap" | ||
] | ||
case .journalists: | ||
[ | ||
"npub1d9nndmy3lx6f00cysrmn2v9t6hz280uwycw0kgcfdhvg99azry8sududfv", | ||
"npub1grz7afdguc67jkjly6fu0xmw0r386t8mtxafutu9u34dy207nt9ql335cv" | ||
] | ||
case .tech: | ||
[ | ||
"npub1d9nndmy3lx6f00cysrmn2v9t6hz280uwycw0kgcfdhvg99azry8sududfv", | ||
"npub1grz7afdguc67jkjly6fu0xmw0r386t8mtxafutu9u34dy207nt9ql335cv", | ||
"npub1yxzkmtuyctjw2pffp6e9uvyrkp29hrqra2tm3xp3z9707z06muxsg75qvv" | ||
] | ||
case .art: | ||
[ | ||
"npub1d7ggne0xsy8e2999q8cyh9zxda688axm07cwncufjeku0nahvfgsyz6qzr", | ||
"npub17a49ajzjlwjv4znh85jcfgmk7qq5ck8m5advx66rudz8g0v034kss2hnk3", | ||
"npub1l9kr6ajfwp6vfjp60vuzxwqwwlw884dff98a9cznujs520shsf9s35xfwh" | ||
] | ||
case .environment: | ||
[ | ||
"npub1uh8e4y97tvs5zhsq6srr43qy0u66zk8xfy08xcrhef2803sdfcrslq62el" | ||
] | ||
case .sports: | ||
[ | ||
"npub1aylzctp5p20yc842qfpu2w9j8q0kpqcfx8q3p42ugnp3t8uxg3xq3k8nn0" | ||
] | ||
case .music: | ||
[ | ||
"npub1asuq0pxedwfagpqkdf4lrfmcyfaffgptmayel9947j8krad3x58srs20ap" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.