-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c98ec1b
commit e50dbfe
Showing
2 changed files
with
238 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import type { FilterProps } from "@/types"; | ||
|
||
export const UserFilters: FilterProps[] = [ | ||
{ name: "New Users", value: "new_users" }, | ||
{ name: "Old Users", value: "old_users" }, | ||
{ name: "Top Contributors", value: "top_contributors" }, | ||
]; | ||
|
||
export const QuestionFilters: FilterProps[] = [ | ||
{ name: "Most Recent", value: "most_recent" }, | ||
{ name: "Oldest", value: "oldest" }, | ||
{ name: "Most Voted", value: "most_voted" }, | ||
{ name: "Most Viewed", value: "most_viewed" }, | ||
{ name: "Most Answered", value: "most_answered" }, | ||
]; | ||
|
||
export const AnswerFilters: FilterProps[] = [ | ||
{ name: "Highest Upvotes", value: "highestUpvotes" }, | ||
{ name: "Lowest Upvotes", value: "lowestUpvotes" }, | ||
{ name: "Most Recent", value: "recent" }, | ||
{ name: "Oldest", value: "old" }, | ||
]; | ||
|
||
export const TagFilters: FilterProps[] = [ | ||
{ name: "Popular", value: "popular" }, | ||
{ name: "Recent", value: "recent" }, | ||
{ name: "Name", value: "name" }, | ||
{ name: "Old", value: "old" }, | ||
]; | ||
|
||
export const HomePageFilters: FilterProps[] = [ | ||
{ name: "Newest", value: "newest" }, | ||
{ name: "Recommended", value: "recommended" }, | ||
{ name: "Frequent", value: "frequent" }, | ||
{ name: "Unanswered", value: "unanswered" }, | ||
]; | ||
|
||
export const JobPageFilters: FilterProps[] = [ | ||
{ name: "Full-time", value: "fulltime" }, | ||
{ name: "Part-time", value: "parttime" }, | ||
{ name: "Contractor", value: "contractor" }, | ||
{ name: "Internship", value: "intern" }, | ||
]; | ||
|
||
export const GlobalSearchFilters: FilterProps[] = [ | ||
{ name: "Question", value: "question" }, | ||
{ name: "Answer", value: "answer" }, | ||
{ name: "User", value: "user" }, | ||
{ name: "Tag", value: "tag" }, | ||
]; |
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,188 @@ | ||
import type { SidebarLink, ThemeOption } from "@/types"; | ||
|
||
export const themes: ThemeOption[] = [ | ||
{ value: "light", label: "Light", icon: "/assets/icons/sun.svg" }, | ||
{ value: "dark", label: "Dark", icon: "/assets/icons/moon.svg" }, | ||
{ value: "system", label: "System", icon: "/assets/icons/computer.svg" }, | ||
]; | ||
|
||
export const sidebarLinks: SidebarLink[] = [ | ||
{ | ||
imgURL: "/assets/icons/home.svg", | ||
route: "/", | ||
label: "Home", | ||
}, | ||
{ | ||
imgURL: "/assets/icons/users.svg", | ||
route: "/community", | ||
label: "Community", | ||
}, | ||
{ | ||
imgURL: "/assets/icons/star.svg", | ||
route: "/collection", | ||
label: "Collections", | ||
}, | ||
{ | ||
imgURL: "/assets/icons/suitcase.svg", | ||
route: "/jobs", | ||
label: "Find Jobs", | ||
}, | ||
{ | ||
imgURL: "/assets/icons/tag.svg", | ||
route: "/tags", | ||
label: "Tags", | ||
}, | ||
{ | ||
imgURL: "/assets/icons/user.svg", | ||
route: "/profile", | ||
label: "Profile", | ||
}, | ||
{ | ||
imgURL: "/assets/icons/question.svg", | ||
route: "/ask-question", | ||
label: "Ask a question", | ||
}, | ||
]; | ||
|
||
export const BADGE_CRITERIA = { | ||
QUESTION_COUNT: { | ||
BRONZE: 10, | ||
SILVER: 50, | ||
GOLD: 100, | ||
}, | ||
ANSWER_COUNT: { | ||
BRONZE: 10, | ||
SILVER: 50, | ||
GOLD: 100, | ||
}, | ||
QUESTION_UPVOTES: { | ||
BRONZE: 10, | ||
SILVER: 50, | ||
GOLD: 100, | ||
}, | ||
ANSWER_UPVOTES: { | ||
BRONZE: 10, | ||
SILVER: 50, | ||
GOLD: 100, | ||
}, | ||
TOTAL_VIEWS: { | ||
BRONZE: 1000, | ||
SILVER: 10000, | ||
GOLD: 100000, | ||
}, | ||
}; | ||
|
||
export const CURRENCY_NOTATIONS: { [key: string]: string } = { | ||
ALL: "Lek", | ||
AFN: "؋", | ||
ARS: "$", | ||
AWG: "ƒ", | ||
AUD: "$", | ||
AZN: "ман", | ||
BSD: "$", | ||
BYR: "p.", | ||
BZD: "BZ$", | ||
BMD: "$", | ||
BOB: "$b", | ||
BAM: "KM", | ||
BWP: "P", | ||
BGN: "лв", | ||
BRL: "R$", | ||
BND: "$", | ||
KHR: "៛", | ||
CAD: "$", | ||
KYD: "$", | ||
CLP: "$", | ||
CNY: "¥", | ||
COP: "$", | ||
CRC: "₡", | ||
HRK: "kn", | ||
CUP: "₱", | ||
CZK: "Kč", | ||
DKK: "kr", | ||
DOP: "RD$", | ||
XCD: "$", | ||
EGP: "£", | ||
SVC: "$", | ||
EEK: "kr", | ||
EUR: "€", | ||
FKP: "£", | ||
FJD: "$", | ||
GHC: "¢", | ||
GIP: "£", | ||
GTQ: "Q", | ||
GGP: "£", | ||
GYD: "$", | ||
HNL: "L", | ||
HKD: "$", | ||
HUF: "Ft", | ||
ISK: "kr", | ||
INR: "₹", | ||
IDR: "Rp", | ||
IRR: "﷼", | ||
IMP: "£", | ||
ILS: "₪", | ||
JMD: "J$", | ||
JPY: "¥", | ||
JEP: "£", | ||
KZT: "лв", | ||
KPW: "₩", | ||
KRW: "₩", | ||
KGS: "лв", | ||
LAK: "₭", | ||
LVL: "Ls", | ||
LBP: "£", | ||
LRD: "$", | ||
LTL: "Lt", | ||
MKD: "ден", | ||
MYR: "RM", | ||
MUR: "₨", | ||
MXN: "$", | ||
MNT: "₮", | ||
MZN: "MT", | ||
NAD: "$", | ||
NPR: "₨", | ||
ANG: "ƒ", | ||
NZD: "$", | ||
NIO: "C$", | ||
NGN: "₦", | ||
NOK: "kr", | ||
OMR: "﷼", | ||
PKR: "₨", | ||
PAB: "B/.", | ||
PYG: "Gs", | ||
PEN: "S/.", | ||
PHP: "₱", | ||
PLN: "zł", | ||
QAR: "﷼", | ||
RON: "lei", | ||
RUB: "руб", | ||
SHP: "£", | ||
SAR: "﷼", | ||
RSD: "Дин.", | ||
SCR: "₨", | ||
SGD: "$", | ||
SBD: "$", | ||
SOS: "S", | ||
ZAR: "R", | ||
LKR: "₨", | ||
SEK: "kr", | ||
CHF: "CHF", | ||
SRD: "$", | ||
SYP: "£", | ||
TWD: "NT$", | ||
THB: "฿", | ||
TTD: "$", | ||
TRY: "₤", | ||
TRL: "₤", | ||
TVD: "$", | ||
UAH: "₴", | ||
GBP: "£", | ||
USD: "$", | ||
UYU: "$U", | ||
UZS: "лв", | ||
VEF: "Bs", | ||
VND: "₫", | ||
YER: "﷼", | ||
ZWD: "Z$", | ||
}; |