mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-29 12:23:01 +00:00
update pluginscreen UI
This commit is contained in:
parent
5a22ab54fb
commit
87aa913f5f
2 changed files with 12 additions and 4 deletions
|
|
@ -779,7 +779,7 @@ const InfoTooltip: React.FC<{ text: string; colors: any }> = ({ text, colors })
|
||||||
|
|
||||||
// Helper component for status badges
|
// Helper component for status badges
|
||||||
const StatusBadge: React.FC<{
|
const StatusBadge: React.FC<{
|
||||||
status: 'enabled' | 'disabled' | 'available' | 'platform-disabled' | 'error';
|
status: 'enabled' | 'disabled' | 'available' | 'platform-disabled' | 'error' | 'limited';
|
||||||
colors: any;
|
colors: any;
|
||||||
}> = ({ status, colors }) => {
|
}> = ({ status, colors }) => {
|
||||||
const getStatusConfig = () => {
|
const getStatusConfig = () => {
|
||||||
|
|
@ -792,6 +792,8 @@ const StatusBadge: React.FC<{
|
||||||
return { color: colors.primary, text: 'Available' };
|
return { color: colors.primary, text: 'Available' };
|
||||||
case 'platform-disabled':
|
case 'platform-disabled':
|
||||||
return { color: '#FF9500', text: 'Platform Disabled' };
|
return { color: '#FF9500', text: 'Platform Disabled' };
|
||||||
|
case 'limited':
|
||||||
|
return { color: '#FF9500', text: 'Limited' };
|
||||||
case 'error':
|
case 'error':
|
||||||
return { color: '#FF3B30', text: 'Error' };
|
return { color: '#FF3B30', text: 'Error' };
|
||||||
default:
|
default:
|
||||||
|
|
@ -919,9 +921,10 @@ const PluginsScreen: React.FC = () => {
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
const getScraperStatus = (scraper: ScraperInfo): 'enabled' | 'disabled' | 'available' | 'platform-disabled' | 'error' => {
|
const getScraperStatus = (scraper: ScraperInfo): 'enabled' | 'disabled' | 'available' | 'platform-disabled' | 'error' | 'limited' => {
|
||||||
if (scraper.manifestEnabled === false) return 'disabled';
|
if (scraper.manifestEnabled === false) return 'disabled';
|
||||||
if (scraper.disabledPlatforms?.includes(Platform.OS as 'ios' | 'android')) return 'platform-disabled';
|
if (scraper.disabledPlatforms?.includes(Platform.OS as 'ios' | 'android')) return 'platform-disabled';
|
||||||
|
if (scraper.limited) return 'limited';
|
||||||
if (scraper.enabled) return 'enabled';
|
if (scraper.enabled) return 'enabled';
|
||||||
return 'available';
|
return 'available';
|
||||||
};
|
};
|
||||||
|
|
@ -1819,6 +1822,10 @@ const PluginsScreen: React.FC = () => {
|
||||||
Plugins are JavaScript modules that can search for streaming links from various sources.
|
Plugins are JavaScript modules that can search for streaming links from various sources.
|
||||||
They run locally on your device and can be installed from trusted repositories.
|
They run locally on your device and can be installed from trusted repositories.
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
|
<Text style={[styles.infoText, { marginTop: 8, fontSize: 13, color: colors.mediumEmphasis }]}>
|
||||||
|
<Text style={{ fontWeight: '600' }}>Note:</Text> Providers marked as "Limited" depend on external APIs that may stop working without notice.
|
||||||
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ export interface ScraperInfo {
|
||||||
supportedFormats?: string[];
|
supportedFormats?: string[];
|
||||||
repositoryId?: string; // Which repository this scraper came from
|
repositoryId?: string; // Which repository this scraper came from
|
||||||
supportsExternalPlayer?: boolean; // Whether this scraper supports external players
|
supportsExternalPlayer?: boolean; // Whether this scraper supports external players
|
||||||
|
limited?: boolean; // Whether this scraper has limited functionality
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RepositoryInfo {
|
export interface RepositoryInfo {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue