Refine qr code feature
This commit is contained in:
parent
43c6bceb94
commit
95a7cc336e
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -56,6 +56,7 @@
|
|||||||
"Provia",
|
"Provia",
|
||||||
"pushstate",
|
"pushstate",
|
||||||
"qaub",
|
"qaub",
|
||||||
|
"Qrcode",
|
||||||
"QRSTUVWXYZ",
|
"QRSTUVWXYZ",
|
||||||
"ratelimit",
|
"ratelimit",
|
||||||
"ratelimiter",
|
"ratelimiter",
|
||||||
|
|||||||
@ -178,7 +178,7 @@ Create Upstash Redis store from storage tab of Vercel dashboard and link to your
|
|||||||
- `NEXT_PUBLIC_GEO_PRIVACY = 1` disables collection/display of location-based data (⚠️ re-compresses uploaded images in order to remove GPS information)
|
- `NEXT_PUBLIC_GEO_PRIVACY = 1` disables collection/display of location-based data (⚠️ re-compresses uploaded images in order to remove GPS information)
|
||||||
- `NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS = 1` enables public photo downloads for all visitors (⚠️ may result in increased bandwidth usage)
|
- `NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS = 1` enables public photo downloads for all visitors (⚠️ may result in increased bandwidth usage)
|
||||||
- `NEXT_PUBLIC_SOCIAL_NETWORKS`
|
- `NEXT_PUBLIC_SOCIAL_NETWORKS`
|
||||||
- Comma-separated list of social networks and sharing options to show in share modal
|
- Comma-separated list of share modal options
|
||||||
- Accepted values:
|
- Accepted values:
|
||||||
- `x` (default)
|
- `x` (default)
|
||||||
- `threads`
|
- `threads`
|
||||||
|
|||||||
@ -912,14 +912,14 @@ export default function AdminAppConfigurationClient({
|
|||||||
{renderEnvVars(['NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS'])}
|
{renderEnvVars(['NEXT_PUBLIC_ALLOW_PUBLIC_DOWNLOADS'])}
|
||||||
</ChecklistRow>
|
</ChecklistRow>
|
||||||
<ChecklistRow
|
<ChecklistRow
|
||||||
title="Social networks and sharing"
|
title="Share modal options"
|
||||||
status={hasSocialKeys}
|
status={hasSocialKeys}
|
||||||
optional
|
optional
|
||||||
>
|
>
|
||||||
{renderOrderedKeyList(socialKeys, SOCIAL_KEYS)}
|
{renderOrderedKeyList(socialKeys, SOCIAL_KEYS)}
|
||||||
<div>
|
<div>
|
||||||
Configure order and visibility of social networks and sharing
|
Configure order and visibility of share modal
|
||||||
options (seen in share modal) by storing comma-separated values
|
options by storing comma-separated values
|
||||||
(accepts {'"all"'} or {'"none"'},
|
(accepts {'"all"'} or {'"none"'},
|
||||||
defaults to {renderCommaSeparatedList(DEFAULT_SOCIAL_KEYS)})
|
defaults to {renderCommaSeparatedList(DEFAULT_SOCIAL_KEYS)})
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import { toastSuccess } from '@/toast';
|
|||||||
import { SOCIAL_NETWORKS } from '@/app/config';
|
import { SOCIAL_NETWORKS } from '@/app/config';
|
||||||
import { useAppState } from '@/app/AppState';
|
import { useAppState } from '@/app/AppState';
|
||||||
import useOnPathChange from '@/utility/useOnPathChange';
|
import useOnPathChange from '@/utility/useOnPathChange';
|
||||||
import { IoArrowUp } from 'react-icons/io5';
|
import { IoArrowUp, IoCloseSharp } from 'react-icons/io5';
|
||||||
import MaskedScroll from '@/components/MaskedScroll';
|
import MaskedScroll from '@/components/MaskedScroll';
|
||||||
import { useAppText } from '@/i18n/state/client';
|
import { useAppText } from '@/i18n/state/client';
|
||||||
import SocialButton from '@/social/SocialButton';
|
import SocialButton from '@/social/SocialButton';
|
||||||
@ -97,7 +97,7 @@ export default function ShareModal({
|
|||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col items-center gap-4 p-4">
|
<div className="flex flex-col items-center gap-4 p-4">
|
||||||
<div className={clsx(
|
<div className={clsx(
|
||||||
'p-3 bg-white rounded-2xl shadow-lg border',
|
'p-3 bg-white rounded-2xl shadow-lg outline-medium',
|
||||||
'flex items-center justify-center',
|
'flex items-center justify-center',
|
||||||
)}>
|
)}>
|
||||||
<Image
|
<Image
|
||||||
@ -141,7 +141,7 @@ export default function ShareModal({
|
|||||||
{SOCIAL_NETWORKS.map(key =>
|
{SOCIAL_NETWORKS.map(key =>
|
||||||
key === 'qrcode' ? (
|
key === 'qrcode' ? (
|
||||||
renderButton(
|
renderButton(
|
||||||
<TbQrcode size={18} />,
|
showQR ? <IoCloseSharp size={18} /> : <TbQrcode size={18} />,
|
||||||
() => setShowQR(q => !q),
|
() => setShowQR(q => !q),
|
||||||
false,
|
false,
|
||||||
appText.tooltip.shareQRCode,
|
appText.tooltip.shareQRCode,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user