Skip to content

Commit 091c379

Browse files
authored
Merge pull request supabase#15423 from Hallidayo/client-libs
feat: client lib changes
2 parents edd675b + 44349d7 commit 091c379

File tree

3 files changed

+42
-14
lines changed

3 files changed

+42
-14
lines changed

studio/components/interfaces/Home/ClientLibrary.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,26 @@ import { BASE_PATH } from 'lib/constants'
55
interface Props {
66
language: string
77
officialSupport?: boolean
8-
releaseState?: string
98
docsUrl?: string
109
gitUrl: string
10+
altIconName?: string
1111
}
1212

13-
const ClientLibrary: FC<Props> = ({ language, releaseState, officialSupport, docsUrl, gitUrl }) => {
13+
const ClientLibrary: FC<Props> = ({ language, officialSupport, docsUrl, gitUrl, altIconName }) => {
1414
return (
1515
<div className="flex items-start space-x-6">
1616
<img
17-
src={`${BASE_PATH}/img/libraries/${language.toLowerCase()}-icon.svg`}
17+
src={`${BASE_PATH}/img/libraries/${
18+
altIconName ? `${altIconName}-icon.svg` : `${language.toLowerCase()}-icon.svg`
19+
}`}
1820
alt={`${language} logo`}
1921
width="21"
2022
/>
2123
<div className="space-y-4">
2224
<div>
2325
<h5 className="flex items-center gap-2 text-base text-scale-1200">
24-
{language} {releaseState && <Badge color="yellow">{`Public ${releaseState}`}</Badge>}
26+
{language} {!officialSupport && <Badge color="green">Community</Badge>}
2527
</h5>
26-
<p className="text-sm text-scale-1000">
27-
{officialSupport
28-
? 'This library is officially supported'
29-
: 'This library is community supported'}
30-
</p>
3128
</div>
3229
<div className="flex gap-2">
3330
{docsUrl && (

studio/components/interfaces/Home/Home.constants.ts

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,41 @@ export const CLIENT_LIBRARIES = [
66
docsUrl: 'https://supabase.com/docs/reference/javascript/installing',
77
gitUrl: 'https://github.com/supabase/supabase-js',
88
},
9+
{
10+
language: 'Flutter',
11+
officialSupport: true,
12+
releaseState: undefined,
13+
docsUrl: 'https://supabase.com/docs/reference/dart/installing',
14+
gitUrl: 'https://github.com/supabase/supabase-flutter',
15+
},
916
{
1017
language: 'Python',
1118
officialSupport: false,
1219
releaseState: 'Alpha',
13-
docsUrl: 'https://supabase.com/docs/reference/python/introduction',
20+
docsUrl: 'https://supabase.com/docs/reference/python/initializing',
1421
gitUrl: 'https://github.com/supabase/supabase-py',
1522
},
1623
{
17-
language: 'Flutter',
18-
officialSupport: true,
24+
language: 'C#',
25+
officialSupport: false,
1926
releaseState: undefined,
20-
docsUrl: 'https://supabase.com/docs/reference/dart/installing',
21-
gitUrl: 'https://github.com/supabase/supabase-flutter',
27+
docsUrl: 'https://supabase.com/docs/reference/csharp/installing',
28+
gitUrl: 'https://github.com/supabase-community/supabase-csharp',
29+
altIconName: 'c-sharp',
30+
},
31+
{
32+
language: 'Swift',
33+
officialSupport: false,
34+
releaseState: undefined,
35+
docsUrl: 'https://supabase.com/docs/reference/swift/initializing',
36+
gitUrl: 'https://github.com/supabase-community/supabase-swift',
37+
},
38+
{
39+
language: 'Kotlin',
40+
officialSupport: false,
41+
releaseState: undefined,
42+
docsUrl: 'https://supabase.com/docs/reference/kotlin/installing',
43+
gitUrl: 'https://github.com/supabase-community/supabase-kt',
2244
},
2345
]
2446

Lines changed: 9 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)