mirror of
https://github.com/uetchy/namae.git
synced 2025-03-16 20:20:38 +09:00
fix: remove spectrum
This commit is contained in:
parent
d85e4b24bf
commit
0db775f3b4
@ -53,7 +53,6 @@ const supportedProviders: Record<string, React.ReactNode> = {
|
|||||||
reddit: <FaReddit />,
|
reddit: <FaReddit />,
|
||||||
// instagram: <FaInstagram />,
|
// instagram: <FaInstagram />,
|
||||||
slack: <FaSlack />,
|
slack: <FaSlack />,
|
||||||
// spectrum: <SpectrumIcon />,
|
|
||||||
heroku: <DiHeroku />,
|
heroku: <DiHeroku />,
|
||||||
now: <NowIcon />,
|
now: <NowIcon />,
|
||||||
netlify: <NetlifyIcon />,
|
netlify: <NetlifyIcon />,
|
||||||
|
@ -27,7 +27,6 @@ import PypiCard from './providers/PyPI';
|
|||||||
import RubyGemsCard from './providers/RubyGems';
|
import RubyGemsCard from './providers/RubyGems';
|
||||||
import S3Card from './providers/S3';
|
import S3Card from './providers/S3';
|
||||||
import SlackCard from './providers/Slack';
|
import SlackCard from './providers/Slack';
|
||||||
// import SpectrumCard from './providers/Spectrum';
|
|
||||||
import SubredditCard from './providers/Subreddit';
|
import SubredditCard from './providers/Subreddit';
|
||||||
import TwitterCard from './providers/Twitter';
|
import TwitterCard from './providers/Twitter';
|
||||||
import VercelCard from './providers/Vercel';
|
import VercelCard from './providers/Vercel';
|
||||||
@ -61,7 +60,6 @@ const Index: React.FC<{ query: string }> = ({ query }) => {
|
|||||||
<ModLandCard query={query} />
|
<ModLandCard query={query} />
|
||||||
<SlackCard query={query} />
|
<SlackCard query={query} />
|
||||||
{/* <InstagramCard query={query} /> */}
|
{/* <InstagramCard query={query} /> */}
|
||||||
{/* <SpectrumCard query={query} /> */}
|
|
||||||
<SubredditCard query={query} />
|
<SubredditCard query={query} />
|
||||||
<S3Card query={query} />
|
<S3Card query={query} />
|
||||||
<FirebaseCard query={query} />
|
<FirebaseCard query={query} />
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
import { Card, Repeater, DedicatedAvailability } from '../core';
|
|
||||||
import { SpectrumIcon } from '../../Icons';
|
|
||||||
import { normalize } from '../../../util/text';
|
|
||||||
|
|
||||||
const SpectrumCard: React.FC<{ query: string }> = ({ query }) => {
|
|
||||||
const { t } = useTranslation();
|
|
||||||
const normalizedQuery = normalize(query);
|
|
||||||
const names = [normalizedQuery];
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Card title={t('providers.spectrum')}>
|
|
||||||
<Repeater items={names}>
|
|
||||||
{(name) => (
|
|
||||||
<>
|
|
||||||
<DedicatedAvailability
|
|
||||||
name={name}
|
|
||||||
service="spectrum"
|
|
||||||
message="Create Community"
|
|
||||||
link="https://spectrum.chat/new/community"
|
|
||||||
messageIfTaken="See community in Spectrum"
|
|
||||||
linkIfTaken={`https://spectrum.chat/${name}`}
|
|
||||||
icon={<SpectrumIcon />}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Repeater>
|
|
||||||
</Card>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default SpectrumCard;
|
|
@ -5,7 +5,7 @@ import XHR from 'i18next-xhr-backend';
|
|||||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||||
import { initReactI18next } from 'react-i18next';
|
import { initReactI18next } from 'react-i18next';
|
||||||
|
|
||||||
const TRANSLATION_VERSION = '12';
|
const TRANSLATION_VERSION = '13';
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
.use(Backend)
|
.use(Backend)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user