feat: hooked the APIs of the app into the pyoide core.
This commit is contained in:
@@ -77,6 +77,10 @@ const getTabTitle = (
|
||||
return tr('docs.title');
|
||||
}
|
||||
|
||||
if (tab.type === 'api-documentation') {
|
||||
return tr('docs.apiTitle');
|
||||
}
|
||||
|
||||
if (tab.type === 'site-validation') {
|
||||
return tr('siteValidation.tabTitle');
|
||||
}
|
||||
@@ -157,6 +161,13 @@ const getTabIcon = (tab: Tab): React.ReactNode => {
|
||||
<path d="M5 4h6v1H5V4zm0 2h6v1H5V6zm0 2h6v1H5V8zm0 2h4v1H5v-1z"/>
|
||||
</svg>
|
||||
);
|
||||
case 'api-documentation':
|
||||
return (
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
|
||||
<path d="M2.5 2A1.5 1.5 0 0 0 1 3.5v9A1.5 1.5 0 0 0 2.5 14h11a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 13.5 2h-11zm0 1h11a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5z"/>
|
||||
<path d="M4 5h2v1H4V5zm3 0h5v1H7V5zM4 7.5h2v1H4v-1zm3 0h5v1H7v-1zM4 10h2v1H4v-1zm3 0h5v1H7v-1z"/>
|
||||
</svg>
|
||||
);
|
||||
case 'site-validation':
|
||||
return (
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
|
||||
|
||||
Reference in New Issue
Block a user