Skip to content

Commit

Permalink
Co-authored-by: Alex Sparkes <[email protected]>
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac <[email protected]>
  • Loading branch information
davidcralph committed May 20, 2024
1 parent 4bf61f4 commit e483ab4
Show file tree
Hide file tree
Showing 21 changed files with 533 additions and 200 deletions.
1 change: 1 addition & 0 deletions src/components/Elements/MainModal/backend/Tab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function Tab({ label, currentTab, onClick, navbarTab }) {
variables.getMessage('modals.main.marketplace.all'),
variables.getMessage('modals.main.settings.sections.experimental.title'),
].includes(label);

const mue = [
variables.getMessage('modals.main.marketplace.product.overview'),
variables.getMessage('modals.main.addons.added'),
Expand Down
4 changes: 4 additions & 0 deletions src/components/Elements/MainModal/scss/marketplace/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ p.author {

.subtitle {
color: #ccc !important;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ p.description {
}

.header {
text-transform: uppercase;
// text-transform: uppercase;
font-size: small;

@include themed {
color: t($subColor);
Expand All @@ -68,6 +69,59 @@ p.description {
}
}

.subHeader {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
width: calc(100% - 30px);
gap: 25px;

.items {
margin-top: 0 !important;
}

.item {
flex: 1 0 40% !important;
}

.infoItem {
display: flex;
flex-flow: row;
align-items: center;
gap: 15px;
flex: 1 0 44%;

svg {
@include themed {
background-image: t($slightGradient);
box-shadow: t($boxShadow);
}

padding: 7px;
border-radius: 100%;
}

.text {
display: flex;
flex-flow: column;
}
}

.header {
font-size: small;

@include themed {
color: t($subColor);
}
}

span {
@include themed {
color: t($color);
}
}
}

.showMoreItems {
display: flex;
flex-flow: column;
Expand All @@ -81,3 +135,10 @@ p.description {
flex-flow: column;
gap: 15px;
}

.moreFromCurator {
margin-top: 50px;
display: flex;
flex-flow: column;
gap: 15px;
}
12 changes: 6 additions & 6 deletions src/components/Elements/ShareModal/ShareModal.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { memo } from 'react';
import variables from 'config/variables';
import { MdClose, MdEmail, MdContentCopy } from 'react-icons/md';
import { FaTwitter, FaFacebookF } from 'react-icons/fa';
import { FaFacebookF } from 'react-icons/fa';
import { AiFillWechat } from 'react-icons/ai';
import { SiTencentqq } from 'react-icons/si';
import { SiTencentqq, SiX } from 'react-icons/si';
import Tooltip from '../Tooltip/Tooltip';
import { toast } from 'react-toastify';

Expand Down Expand Up @@ -49,13 +49,13 @@ function ShareModal({ modalClose, data }) {
onClick={() =>
window
.open(
`https://twitter.com/intent/tweet?text=Check out ${data.name} on @getmue: ${data.url}`,
`https://x.com/intent/tweet?text=Check out ${data.name} on @getmue: ${data.url}`,
'_blank',
)
.focus()
}
icon={<FaTwitter />}
tooltipTitle="Twitter"
icon={<SiX />}
tooltipTitle="X (Twitter)"
type="icon"
/>
<Button
Expand All @@ -65,7 +65,7 @@ function ShareModal({ modalClose, data }) {
.focus()
}
icon={<FaFacebookF />}
tooltipTitle="Twitter"
tooltipTitle="Facebook"
type="icon"
/>
<Button
Expand Down
54 changes: 26 additions & 28 deletions src/components/Form/Settings/ChipSelect/ChipSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,33 @@ function ChipSelect({ label, options }) {
};

return (
<div>
<FormControl>
<InputLabel id="chipSelect-label">{label}</InputLabel>
<Select
labelId="chipSelect-label"
id="chipSelect"
multiple
value={optionsSelected}
onChange={handleChange}
input={<OutlinedInput id="select-multiple-chip" label={label} />}
renderValue={(optionsSelected) => (
<Box sx={{ display: 'flex', flexWrap: 'wrap', gap: 0.5 }}>
{optionsSelected.map((value) => (
<Chip key={value} label={value} />
))}
</Box>
)}
>
{options.map((option) => (
<MenuItem key={option.name} value={option.name}>
{option.name.charAt(0).toUpperCase() + option.name.slice(1)}{' '}
{option.count && `(${option.count})`}
</MenuItem>
))}
</Select>
</FormControl>
</div>
<FormControl>
<InputLabel id="chipSelect-label">{label}</InputLabel>
<Select
labelId="chipSelect-label"
id="chipSelect"
multiple
value={optionsSelected}
onChange={handleChange}
input={<OutlinedInput id="select-multiple-chip" label={label} />}
renderValue={(optionsSelected) => (
<Box sx={{ display: 'flex', flexWrap: 'wrap', gap: 0.5 }}>
{optionsSelected.map((value) => (
<Chip key={value} label={value} />
))}
</Box>
)}
>
{options.map((option) => (
<MenuItem key={option.name} value={option.name}>
{option.name.charAt(0).toUpperCase() + option.name.slice(1)}{' '}
{option.count && `(${option.count})`}
</MenuItem>
))}
</Select>
</FormControl>
);
}

const MemoizedChipSelect = memo(ChipSelect);
export { ChipSelect as default, MemoizedChipSelect as ChipSelect };
export { ChipSelect as default, MemoizedChipSelect as ChipSelect };
6 changes: 0 additions & 6 deletions src/features/background/components/PhotoInformation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ function PhotoInformation({ info, url, api }) {
return null;
}

// remove unsplash text
const unsplash = variables.getMessage('widgets.background.unsplash');

let credit = info.credit;
let photo = variables.getMessage('widgets.background.credit');

Expand All @@ -88,9 +85,6 @@ function PhotoInformation({ info, url, api }) {
<>
<a href={info.photographerURL} target="_blank" rel="noopener noreferrer">
{info.credit}
</a>{' '}
<a href="https://unsplash.com?utm_source=mue" target="_blank" rel="noopener noreferrer">
{unsplash}
</a>
</>
);
Expand Down
1 change: 1 addition & 0 deletions src/features/background/options/BackgroundOptions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class BackgroundOptions extends PureComponent {
}

updateAPI(e) {
localStorage.setItem('nextImage', null);
if (e === 'mue') {
this.setState({
backgroundCategories: this.state.backgroundCategoriesOG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ function Lightbox({ modalClose, img }) {
}

const MemoizedLightbox = memo(Lightbox);
export default MemoizedLightbox;
export { MemoizedLightbox as Lightbox };
export { MemoizedLightbox as default, MemoizedLightbox as Lightbox };
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ function SideloadFailedModal({ modalClose, reason }) {
}

const MemoizedSideloadFailedModal = memo(SideloadFailedModal);

export default MemoizedSideloadFailedModal;
export { MemoizedSideloadFailedModal as SideloadFailedModal };
export { MemoizedSideloadFailedModal as default, MemoizedSideloadFailedModal as SideloadFailedModal };
Loading

0 comments on commit e483ab4

Please sign in to comment.