mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-15 22:26:58 +00:00
Add comment
This commit is contained in:
parent
b946e19236
commit
a0bddf338d
@ -1,4 +1,3 @@
|
|||||||
import React, { useEffect, useMemo, useState } from 'react';
|
|
||||||
import {
|
import {
|
||||||
AppCircle,
|
AppCircle,
|
||||||
AppCircleContainer,
|
AppCircleContainer,
|
||||||
@ -172,7 +171,7 @@ export const AppInfo = ({ app, myName }) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<AppDownloadButtonText>
|
<AppDownloadButtonText>
|
||||||
{isSelectedAppPinned
|
{isSelectedAppPinned // TODO translate
|
||||||
? 'Unpin from dashboard'
|
? 'Unpin from dashboard'
|
||||||
: 'Pin to dashboard'}
|
: 'Pin to dashboard'}
|
||||||
</AppDownloadButtonText>
|
</AppDownloadButtonText>
|
||||||
|
@ -166,7 +166,7 @@ export const AppInfoSnippet = ({
|
|||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.background.paper,
|
backgroundColor: theme.palette.background.paper,
|
||||||
opacity: isSelectedAppPinned ? 0.6 : 1,
|
opacity: isSelectedAppPinned ? 0.6 : 1,
|
||||||
}}
|
}} // TODO translate
|
||||||
>
|
>
|
||||||
<AppDownloadButtonText>
|
<AppDownloadButtonText>
|
||||||
{' '}
|
{' '}
|
||||||
|
@ -185,6 +185,7 @@ export const AppPublish = ({ names, categories }) => {
|
|||||||
const fee = await getFee('ARBITRARY');
|
const fee = await getFee('ARBITRARY');
|
||||||
|
|
||||||
await show({
|
await show({
|
||||||
|
// TODO translate
|
||||||
message: 'Would you like to publish this app?',
|
message: 'Would you like to publish this app?',
|
||||||
publishFee: fee.fee + ' QORT',
|
publishFee: fee.fee + ' QORT',
|
||||||
});
|
});
|
||||||
|
@ -106,6 +106,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
|||||||
const fee = await getFee('CREATE_POLL');
|
const fee = await getFee('CREATE_POLL');
|
||||||
|
|
||||||
await show({
|
await show({
|
||||||
|
// TODO translate
|
||||||
message: `Would you like to rate this app a rating of ${newValue}?. It will create a POLL tx.`,
|
message: `Would you like to rate this app a rating of ${newValue}?. It will create a POLL tx.`,
|
||||||
publishFee: fee.fee + ' QORT',
|
publishFee: fee.fee + ' QORT',
|
||||||
});
|
});
|
||||||
|
@ -351,7 +351,7 @@ export const PublishQAppChoseFile = styled(ButtonBase)(({ theme }) => ({
|
|||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: 'action.hover', // background on hover
|
backgroundColor: 'action.hover',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -16,20 +16,6 @@ import { Spacer } from '../../common/Spacer';
|
|||||||
import { AppInfoSnippet } from './AppInfoSnippet';
|
import { AppInfoSnippet } from './AppInfoSnippet';
|
||||||
import { Virtuoso } from 'react-virtuoso';
|
import { Virtuoso } from 'react-virtuoso';
|
||||||
|
|
||||||
const ScrollerStyled = styled('div')({
|
|
||||||
// Hide scrollbar for WebKit browsers (Chrome, Safari)
|
|
||||||
'::-webkit-scrollbar': {
|
|
||||||
width: '0px',
|
|
||||||
height: '0px',
|
|
||||||
},
|
|
||||||
|
|
||||||
// Hide scrollbar for Firefox
|
|
||||||
scrollbarWidth: 'none',
|
|
||||||
|
|
||||||
// Hide scrollbar for IE and older Edge
|
|
||||||
msOverflowStyle: 'none',
|
|
||||||
});
|
|
||||||
|
|
||||||
const StyledVirtuosoContainer = styled('div')({
|
const StyledVirtuosoContainer = styled('div')({
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@ -99,7 +85,8 @@ export const AppsCategoryDesktop = ({
|
|||||||
}, [debouncedValue, categoryList]);
|
}, [debouncedValue, categoryList]);
|
||||||
|
|
||||||
const rowRenderer = (index) => {
|
const rowRenderer = (index) => {
|
||||||
let app = searchedList[index];
|
const app = searchedList[index];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AppInfoSnippet
|
<AppInfoSnippet
|
||||||
key={`${app?.service}-${app?.name}`}
|
key={`${app?.service}-${app?.name}`}
|
||||||
@ -205,9 +192,6 @@ export const AppsCategoryDesktop = ({
|
|||||||
itemContent={rowRenderer}
|
itemContent={rowRenderer}
|
||||||
atBottomThreshold={50}
|
atBottomThreshold={50}
|
||||||
followOutput="smooth"
|
followOutput="smooth"
|
||||||
// components={{
|
|
||||||
// Scroller: ScrollerStyled, // Use the styled scroller component
|
|
||||||
// }}
|
|
||||||
/>
|
/>
|
||||||
</StyledVirtuosoContainer>
|
</StyledVirtuosoContainer>
|
||||||
</AppsWidthLimiter>
|
</AppsWidthLimiter>
|
||||||
|
@ -17,7 +17,6 @@ import { AppsCategoryDesktop } from './AppsCategoryDesktop';
|
|||||||
import { AppsNavBarDesktop } from './AppsNavBarDesktop';
|
import { AppsNavBarDesktop } from './AppsNavBarDesktop';
|
||||||
import { Box, ButtonBase, useTheme } from '@mui/material';
|
import { Box, ButtonBase, useTheme } from '@mui/material';
|
||||||
import { HomeIcon } from '../../assets/Icons/HomeIcon';
|
import { HomeIcon } from '../../assets/Icons/HomeIcon';
|
||||||
import { MessagingIcon } from '../../assets/Icons/MessagingIcon';
|
|
||||||
import { Save } from '../Save/Save';
|
import { Save } from '../Save/Save';
|
||||||
import { IconWrapper } from '../Desktop/DesktopFooter';
|
import { IconWrapper } from '../Desktop/DesktopFooter';
|
||||||
import { enabledDevModeAtom } from '../../atoms/global';
|
import { enabledDevModeAtom } from '../../atoms/global';
|
||||||
@ -98,8 +97,6 @@ export const AppsDesktop = ({
|
|||||||
setCategories(responseData);
|
setCategories(responseData);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
} finally {
|
|
||||||
// dispatch(setIsLoadingGlobal(false))
|
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
@ -135,8 +132,6 @@ export const AppsDesktop = ({
|
|||||||
setAvailableQapps(combine);
|
setAvailableQapps(combine);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
} finally {
|
|
||||||
// dispatch(setIsLoadingGlobal(false))
|
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -338,13 +333,13 @@ export const AppsDesktop = ({
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
backgroundColor: theme.palette.background.surface,
|
||||||
|
borderRight: `1px solid ${theme.palette.border.subtle}`,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: '25px',
|
gap: '25px',
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
width: '60px',
|
width: '60px',
|
||||||
backgroundColor: theme.palette.background.surface,
|
|
||||||
borderRight: `1px solid ${theme.palette.border.subtle}`,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
@ -407,6 +402,7 @@ export const AppsDesktop = ({
|
|||||||
/>
|
/>
|
||||||
</IconWrapper>
|
</IconWrapper>
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
|
|
||||||
<Save isDesktop disableWidth myName={myName} />
|
<Save isDesktop disableWidth myName={myName} />
|
||||||
{isEnabledDevMode && (
|
{isEnabledDevMode && (
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
@ -445,10 +441,10 @@ export const AppsDesktop = ({
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
width: '100%',
|
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Spacer height="30px" />
|
<Spacer height="30px" />
|
||||||
@ -515,6 +511,7 @@ export const AppsDesktop = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Spacer height="30px" />
|
<Spacer height="30px" />
|
||||||
|
|
||||||
<AppsHomeDesktop
|
<AppsHomeDesktop
|
||||||
myName={myName}
|
myName={myName}
|
||||||
availableQapps={availableQapps}
|
availableQapps={availableQapps}
|
||||||
|
@ -310,7 +310,9 @@ export const AppsDevMode = ({
|
|||||||
/>
|
/>
|
||||||
</IconWrapper>
|
</IconWrapper>
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
|
|
||||||
<Save isDesktop disableWidth myName={myName} />
|
<Save isDesktop disableWidth myName={myName} />
|
||||||
|
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setDesktopViewMode('dev');
|
setDesktopViewMode('dev');
|
||||||
@ -342,10 +344,10 @@ export const AppsDevMode = ({
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
width: '100%',
|
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Spacer height="30px" />
|
<Spacer height="30px" />
|
||||||
@ -387,6 +389,7 @@ export const AppsDevMode = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Spacer height="30px" />
|
<Spacer height="30px" />
|
||||||
|
|
||||||
<AppsDevModeHome
|
<AppsDevModeHome
|
||||||
myName={myName}
|
myName={myName}
|
||||||
availableQapps={availableQapps}
|
availableQapps={availableQapps}
|
||||||
|
@ -80,13 +80,13 @@ export const AppsDevModeNavBar = () => {
|
|||||||
return (
|
return (
|
||||||
<AppsNavBarParent
|
<AppsNavBarParent
|
||||||
sx={{
|
sx={{
|
||||||
position: 'relative',
|
borderRadius: '0px 30px 30px 0px',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
width: '59px',
|
|
||||||
height: 'unset',
|
height: 'unset',
|
||||||
maxHeight: '70vh',
|
maxHeight: '70vh',
|
||||||
borderRadius: '0px 30px 30px 0px',
|
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
|
position: 'relative',
|
||||||
|
width: '59px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<AppsNavBarLeft
|
<AppsNavBarLeft
|
||||||
|
@ -51,7 +51,7 @@ export const AppsHomeDesktop = ({
|
|||||||
<AppLibrarySubTitle
|
<AppLibrarySubTitle
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: '30px',
|
fontSize: '30px',
|
||||||
}}
|
}} // TODO translate
|
||||||
>
|
>
|
||||||
Apps Dashboard
|
Apps Dashboard
|
||||||
</AppLibrarySubTitle>
|
</AppLibrarySubTitle>
|
||||||
|
@ -273,7 +273,7 @@ export const AppsLibraryDesktop = ({
|
|||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
executeEvent('navigateBack', {});
|
executeEvent('navigateBack', {});
|
||||||
}}
|
}} // TODO translate
|
||||||
>
|
>
|
||||||
<ReturnIcon />
|
<ReturnIcon />
|
||||||
<ComposeP>Return to Apps Dashboard</ComposeP>
|
<ComposeP>Return to Apps Dashboard</ComposeP>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user