mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 04:30:31 +09:00
fix: update icons
This commit is contained in:
parent
66ade01c4d
commit
e4736ba170
@ -1,14 +1,15 @@
|
|||||||
import useFetch from 'fetch-suspense';
|
import useFetch from 'fetch-suspense';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FaAppStore, FaInfoCircle } from 'react-icons/fa';
|
import { FaInfoCircle } from 'react-icons/fa';
|
||||||
|
import { SiAppstore } from 'react-icons/si';
|
||||||
import { Card, Result } from '../core';
|
import { Card, Result } from '../core';
|
||||||
|
|
||||||
const Search: React.FC<{ query: string }> = ({ query }) => {
|
const Search: React.FC<{ query: string }> = ({ query }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const term = encodeURIComponent(query);
|
const term = encodeURIComponent(query);
|
||||||
const response = useFetch(
|
const response = useFetch(
|
||||||
`/availability/appstore/${term}?country=${t('countryCode')}`
|
`/api/services/appstore/${term}?country=${t('countryCode')}`
|
||||||
) as {
|
) as {
|
||||||
result: Array<{ name: string; viewURL: string; price: number; id: string }>;
|
result: Array<{ name: string; viewURL: string; price: number; id: string }>;
|
||||||
};
|
};
|
||||||
@ -22,7 +23,7 @@ const Search: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
title={app.name.split(/[-–—\-:]/)[0]}
|
title={app.name.split(/[-–—\-:]/)[0]}
|
||||||
message={`Price: ${app.price}`}
|
message={`Price: ${app.price}`}
|
||||||
link={app.viewURL}
|
link={app.viewURL}
|
||||||
icon={<FaAppStore />}
|
icon={<SiAppstore />}
|
||||||
key={app.id}
|
key={app.id}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { DiRust } from 'react-icons/di';
|
import { SiRust } from 'react-icons/si';
|
||||||
import { Card, DedicatedAvailability, Repeater } from '../core';
|
import { Card, DedicatedAvailability, Repeater } from '../core';
|
||||||
|
|
||||||
const CratesioCard: React.FC<{ query: string }> = ({ query }) => {
|
const CratesioCard: React.FC<{ query: string }> = ({ query }) => {
|
||||||
@ -19,7 +19,7 @@ const CratesioCard: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
service="existence"
|
service="existence"
|
||||||
link={`https://crates.io/crates/${name}`}
|
link={`https://crates.io/crates/${name}`}
|
||||||
message="Go to crates.io"
|
message="Go to crates.io"
|
||||||
icon={<DiRust />}
|
icon={<SiRust />}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Repeater>
|
</Repeater>
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { DiFirebase } from 'react-icons/di';
|
import { SiFirebase } from 'react-icons/si';
|
||||||
|
import { Card, DedicatedAvailability, Repeater } from '../core';
|
||||||
import { Card, Repeater, DedicatedAvailability } from '../core';
|
|
||||||
|
|
||||||
const FirebaseCard: React.FC<{ query: string }> = ({ query }) => {
|
const FirebaseCard: React.FC<{ query: string }> = ({ query }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -24,7 +23,7 @@ const FirebaseCard: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
service="existence"
|
service="existence"
|
||||||
message="Go to Firebase"
|
message="Go to Firebase"
|
||||||
link={`https://${name}.firebaseio.com/`}
|
link={`https://${name}.firebaseio.com/`}
|
||||||
icon={<DiFirebase />}
|
icon={<SiFirebase />}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Repeater>
|
</Repeater>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import useFetch from 'fetch-suspense';
|
import useFetch from 'fetch-suspense';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FaGithub, FaInfoCircle } from 'react-icons/fa';
|
import { FaGithubAlt, FaInfoCircle } from 'react-icons/fa';
|
||||||
|
|
||||||
import { Card, Result } from '../core';
|
import { Card, Result } from '../core';
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ const Search: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
repo.stargazers_count
|
repo.stargazers_count
|
||||||
})`}
|
})`}
|
||||||
link={repo.html_url}
|
link={repo.html_url}
|
||||||
icon={<FaGithub />}
|
icon={<FaGithubAlt />}
|
||||||
key={repo.id}
|
key={repo.id}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { DiUbuntu } from 'react-icons/di';
|
import { SiDebian, SiUbuntu } from 'react-icons/si';
|
||||||
import { DiDebian } from 'react-icons/di';
|
import { Card, DedicatedAvailability, Repeater } from '../core';
|
||||||
|
|
||||||
import { Card, Repeater, DedicatedAvailability } from '../core';
|
|
||||||
|
|
||||||
const LinuxCard: React.FC<{ query: string }> = ({ query }) => {
|
const LinuxCard: React.FC<{ query: string }> = ({ query }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -21,14 +19,14 @@ const LinuxCard: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
service="launchpad"
|
service="launchpad"
|
||||||
message="Go to Launchpad"
|
message="Go to Launchpad"
|
||||||
link={`https://launchpad.net/ubuntu/+source/${name}`}
|
link={`https://launchpad.net/ubuntu/+source/${name}`}
|
||||||
icon={<DiUbuntu />}
|
icon={<SiUbuntu />}
|
||||||
/>
|
/>
|
||||||
<DedicatedAvailability
|
<DedicatedAvailability
|
||||||
name={name}
|
name={name}
|
||||||
service="debian"
|
service="debian"
|
||||||
message="Go to debian.org"
|
message="Go to debian.org"
|
||||||
link={`https://packages.debian.org/buster/${name}`}
|
link={`https://packages.debian.org/buster/${name}`}
|
||||||
icon={<DiDebian />}
|
icon={<SiDebian />}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FaNpm } from 'react-icons/fa';
|
import { RiNpmjsFill, RiNpmjsLine } from 'react-icons/ri';
|
||||||
|
import { Card, DedicatedAvailability, Repeater } from '../core';
|
||||||
import { Card, Repeater, DedicatedAvailability } from '../core';
|
|
||||||
|
|
||||||
const NpmCard: React.FC<{ query: string }> = ({ query }) => {
|
const NpmCard: React.FC<{ query: string }> = ({ query }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -23,7 +22,7 @@ const NpmCard: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
link={`https://www.npmjs.com/package/${name}`}
|
link={`https://www.npmjs.com/package/${name}`}
|
||||||
messageIfTaken={`See ${name}`}
|
messageIfTaken={`See ${name}`}
|
||||||
linkIfTaken={`https://www.npmjs.com/package/${name}`}
|
linkIfTaken={`https://www.npmjs.com/package/${name}`}
|
||||||
icon={<FaNpm />}
|
icon={<RiNpmjsFill />}
|
||||||
/>
|
/>
|
||||||
<DedicatedAvailability
|
<DedicatedAvailability
|
||||||
name={name}
|
name={name}
|
||||||
@ -34,7 +33,7 @@ const NpmCard: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
linkIfTaken={`https://www.npmjs.com/org/${name}`}
|
linkIfTaken={`https://www.npmjs.com/org/${name}`}
|
||||||
prefix="@"
|
prefix="@"
|
||||||
suffix=" (Organization)"
|
suffix=" (Organization)"
|
||||||
icon={<FaNpm />}
|
icon={<RiNpmjsLine />}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FaGem } from 'react-icons/fa';
|
import { SiRubygems } from 'react-icons/si';
|
||||||
|
import { Card, DedicatedAvailability, Repeater } from '../core';
|
||||||
import { Card, Repeater, DedicatedAvailability } from '../core';
|
|
||||||
|
|
||||||
const RubyGemsCard: React.FC<{ query: string }> = ({ query }) => {
|
const RubyGemsCard: React.FC<{ query: string }> = ({ query }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -20,7 +19,7 @@ const RubyGemsCard: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
service="existence"
|
service="existence"
|
||||||
message="Go to RubyGems"
|
message="Go to RubyGems"
|
||||||
link={`https://rubygems.org/gems/${name}`}
|
link={`https://rubygems.org/gems/${name}`}
|
||||||
icon={<FaGem />}
|
icon={<SiRubygems />}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Repeater>
|
</Repeater>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user