-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grouped iOS API reference hosting files by SDK (#1817)
Added API references for HMSRoomModels SDK --------- Co-authored-by: Pawan Dixit <[email protected]> Co-authored-by: KaustubhKumar05 <[email protected]>
- Loading branch information
1 parent
ac568af
commit b0516bf
Showing
4,092 changed files
with
4,640 additions
and
65 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,16 @@ | ||
export const references = { | ||
Web: '/api-reference/javascript/v2/home/content', | ||
Android: '/api-reference/android/v2/index.html', | ||
'React Native': '/api-reference/react-native/v2/modules.html', | ||
Flutter: | ||
'https://pub.dev/documentation/hmssdk_flutter/latest/hmssdk_flutter/hmssdk_flutter-library.html', | ||
iOS: [ | ||
{ name: 'HMSSDK Reference', link: '/api-reference/ios/v2/documentation/hmssdk' }, | ||
|
||
{ | ||
name: 'HMSRoomModels SDK Reference', | ||
link: '/api-reference/ios/HMSRoomModelsSDK/documentation/hmsroommodels/hmsroommodel' | ||
} | ||
] | ||
// 'Server side': '' | ||
}; |
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,8 @@ | ||
export const exposedPlatformNames = { | ||
FLUTTER: 'Flutter', | ||
IOS: 'iOS', | ||
ANDROID: 'Android', | ||
WEB: 'Web', | ||
SERVER: 'Server side', | ||
REACTNATIVE: 'React Native' | ||
}; |
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,19 @@ | ||
import Link from 'next/link'; | ||
import { Text } from '@100mslive/react-ui'; | ||
|
||
export const LinkItem = ({ reference, text, css = {} }) => ( | ||
<Link passHref href={reference}> | ||
<Text | ||
as="a" | ||
variant="sm" | ||
css={{ | ||
pl: '$12', | ||
my: '$8', | ||
color: 'var(--docs_text_primary)', | ||
display: 'block', | ||
...css | ||
}}> | ||
{text} | ||
</Text> | ||
</Link> | ||
); |
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,59 @@ | ||
import { Box, Flex, Text } from '@100mslive/react-ui'; | ||
import { useState } from 'react'; | ||
import { ChevronDownIcon } from '@100mslive/react-icons'; | ||
import { LinkItem } from './LinkItem'; | ||
|
||
export const NavAPIReference = ({ reference }) => { | ||
const isLink = typeof reference === 'string'; | ||
const text = 'API Reference'; | ||
|
||
const [showOptions, setShowOptions] = useState(false); | ||
return isLink ? ( | ||
<LinkItem text={text} reference={reference} css={{ p: '0', m: '0' }} /> | ||
) : ( | ||
<Box css={{ position: 'relative' }}> | ||
<Flex | ||
onClick={() => setShowOptions(true)} | ||
justify="between" | ||
align="center" | ||
css={{ | ||
w: '100%', | ||
cursor: 'pointer', | ||
gap: '$3', | ||
'&:hover': { opacity: '0.8' } | ||
}}> | ||
<Text variant="sm">{text}</Text> | ||
<ChevronDownIcon | ||
height={16} | ||
width={16} | ||
style={{ | ||
transform: showOptions ? 'rotate(180deg)' : 'rotate(0deg)', | ||
transition: 'transform 0.3s ease' | ||
}} | ||
/> | ||
</Flex> | ||
<Box | ||
onMouseLeave={() => setShowOptions(false)} | ||
css={{ | ||
position: 'absolute', | ||
maxHeight: showOptions ? '100vh' : '0', | ||
overflow: 'hidden', | ||
transition: 'max-height 0.3s ease', | ||
bg: '$surfaceDefault', | ||
top: '$14', | ||
w: '$48', | ||
px: '$4', | ||
borderRadius: '$1' | ||
}}> | ||
{reference.map((item) => ( | ||
<LinkItem | ||
key={item.name} | ||
text={item.name} | ||
reference={item.link} | ||
css={{ p: '$2' }} | ||
/> | ||
))} | ||
</Box> | ||
</Box> | ||
); | ||
}; |
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,42 @@ | ||
import { Box, Flex, Text } from '@100mslive/react-ui'; | ||
import { useState } from 'react'; | ||
import { ChevronDownIcon } from '@100mslive/react-icons'; | ||
import { LinkItem } from './LinkItem'; | ||
|
||
// Can be link or array of links | ||
export const SidebarAPIReference = ({ reference }) => { | ||
const isLink = typeof reference === 'string'; | ||
const text = 'API Reference'; | ||
const [openAccordion, setOpenAccordion] = useState(false); | ||
|
||
return isLink ? ( | ||
<LinkItem reference={reference} text={text} /> | ||
) : ( | ||
<Box> | ||
<Flex | ||
justify="between" | ||
align="center" | ||
css={{ w: '100%', pl: '$12', cursor: 'pointer', '&:hover': { opacity: '0.8' } }} | ||
onClick={() => setOpenAccordion((prev) => !prev)}> | ||
<Text variant="sm">{text}</Text> | ||
<ChevronDownIcon | ||
style={{ | ||
transform: openAccordion ? 'rotate(180deg)' : 'rotate(0deg)', | ||
transition: 'transform 0.3s ease' | ||
}} | ||
/> | ||
</Flex> | ||
<Box | ||
css={{ | ||
maxHeight: openAccordion ? '100vh' : '0', | ||
overflow: 'hidden', | ||
transition: 'max-height 0.4s ease', | ||
pl: '$4' | ||
}}> | ||
{reference.map((item) => ( | ||
<LinkItem key={item.link} reference={item.link} text={item.name} /> | ||
))} | ||
</Box> | ||
</Box> | ||
); | ||
}; |
9 changes: 9 additions & 0 deletions
9
public/api-reference/ios/HMSRoomModelsSDK/css/chunk-c0335d80.10a2f091.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
public/api-reference/ios/HMSRoomModelsSDK/css/documentation-topic.1d1eec04.css
Large diffs are not rendered by default.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
public/api-reference/ios/HMSRoomModelsSDK/css/documentation-topic~topic.b6287bcf.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...erence/ios/HMSRoomModelsSDK/css/documentation-topic~topic~tutorials-overview.d6f5411c.css
Large diffs are not rendered by default.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
public/api-reference/ios/HMSRoomModelsSDK/css/index.038e887c.css
Large diffs are not rendered by default.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
public/api-reference/ios/HMSRoomModelsSDK/css/topic.d8c126f3.css
Large diffs are not rendered by default.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
public/api-reference/ios/HMSRoomModelsSDK/css/tutorials-overview.c249c765.css
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
b0516bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
100ms-docs – ./
docs.100ms.live
100ms-docs-git-main-100mslive.vercel.app
100ms-docs.vercel.app
100ms-docs-100mslive.vercel.app