A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.
chore: adds pro upsell messages
towfiqi69c8e727c800
diff --git a/frontend/src/components/App/Footer/Footer.module.scss b/frontend/src/components/App/Footer/Footer.module.scssindex 9265421..126677d 100644--- a/frontend/src/components/App/Footer/Footer.module.scss+++ b/frontend/src/components/App/Footer/Footer.module.scss@@ -10,6 +10,7 @@font-size: 0.9em;a {color: inherit;+ cursor: pointer;&:hover {color: var(--background-text-color-dark);}diff --git a/frontend/src/components/App/Footer/Footer.tsx b/frontend/src/components/App/Footer/Footer.tsxindex 7df687b..288c08f 100644--- a/frontend/src/components/App/Footer/Footer.tsx+++ b/frontend/src/components/App/Footer/Footer.tsx@@ -1,5 +1,7 @@+import { useState } from 'react';import { getUpdateDocLink } from '../../../utils';import Icon from '../../common/Icon/Icon';+import Upgrade from '../../Upgrade/Upgrade';import classes from './Footer.module.scss';interface FooterProps {@@ -11,6 +13,7 @@ interface FooterProps {}const Footer = ({ version = '1.0.0', latestVersion, hideUpgradeLink = false, changeLogUrl, edition = '' }: FooterProps) => {+ const [showUpgrade, setShowUpgrade] = useState(false);const updateDocLink = getUpdateDocLink(hideUpgradeLink);return (<>@@ -29,10 +32,7 @@ const Footer = ({ version = '1.0.0', latestVersion, hideUpgradeLink = false, cha<i className="pipe">|</i>{!hideUpgradeLink && (<>- <a href="https://usepluton.com/pluton-pro/" target="_blank">- Upgrade- </a>{' '}- <i className="pipe">|</i>+ <a onClick={() => setShowUpgrade(true)}>Upgrade</a> <i className="pipe">|</i></>)}<a href="https://docs.usepluton.com" target="_blank">@@ -43,6 +43,7 @@ const Footer = ({ version = '1.0.0', latestVersion, hideUpgradeLink = false, chaChangelog</a></div>+ {showUpgrade && <Upgrade onClose={() => setShowUpgrade(false)} />}</>);};diff --git a/frontend/src/components/Plan/PlanForm/PlanForm.module.scss b/frontend/src/components/Plan/PlanForm/PlanForm.module.scssindex 95a5606..efaea3b 100644--- a/frontend/src/components/Plan/PlanForm/PlanForm.module.scss+++ b/frontend/src/components/Plan/PlanForm/PlanForm.module.scss@@ -100,4 +100,12 @@}}}+ .steps.stepsAdd {+ ul li i {+ max-width: 70px;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }+ }}diff --git a/frontend/src/components/Plan/PlanForm/PlanForm.tsx b/frontend/src/components/Plan/PlanForm/PlanForm.tsxindex c9ce538..7883685 100644--- a/frontend/src/components/Plan/PlanForm/PlanForm.tsx+++ b/frontend/src/components/Plan/PlanForm/PlanForm.tsx@@ -193,20 +193,20 @@ const PlanForm = ({label: 'Incremental Backup',description: 'Periodically create Incremental backup snapshots of source',},- // {- // value: 'sync',- // icon: 'reload',- // label: 'Real-time Sync',- // description: 'Maintain identical source (with revisions)',- // disabled: true,- // },- // {- // value: 'rescue',- // icon: 'rescue',- // label: 'Linux Server Backup',- // description: 'Full Linux system backups with bootable ISO image',- // disabled: true,- // },+ {+ value: 'sync',+ icon: 'reload',+ label: 'Real-time Sync',+ description: 'Maintain identical source (with revisions)',+ disabled: true,+ },+ {+ value: 'rescue',+ icon: 'rescue',+ label: 'Linux Server Backup',+ description: 'Full Linux system backups with bootable ISO image',+ disabled: true,+ },]}/>)}diff --git a/frontend/src/components/Plan/PlanForm/PlanFormNav.tsx b/frontend/src/components/Plan/PlanForm/PlanFormNav.tsxindex e509c19..452d1ac 100644--- a/frontend/src/components/Plan/PlanForm/PlanFormNav.tsx+++ b/frontend/src/components/Plan/PlanForm/PlanFormNav.tsx@@ -9,7 +9,7 @@ interface PlanFProps {const PlanFormNav = ({ step, type, gotoStep }: PlanFProps) => {return (- <div className={`${PFClasses.steps} ${type === 'edit' ? PFClasses.stepsEdit : ''}`}>+ <div className={`${PFClasses.steps} ${type === 'edit' ? PFClasses.stepsEdit : PFClasses.stepsAdd}`}><ul><liclassName={` ${(type === 'add' ? step >= 1 : step === 1) ? PFClasses.stepCurrent : ''} ${type === 'add' && step > 1 ? PFClasses.stepPassed : ''}`}diff --git a/frontend/src/components/Plan/PlanSettings/PlanStrategySettings.tsx b/frontend/src/components/Plan/PlanSettings/PlanStrategySettings.tsxindex 956a190..c6849a4 100644--- a/frontend/src/components/Plan/PlanSettings/PlanStrategySettings.tsx+++ b/frontend/src/components/Plan/PlanSettings/PlanStrategySettings.tsx@@ -1,6 +1,8 @@+import { useState } from 'react';import classes from './PlanSettings.module.scss';import { NewPlanSettings } from '../../../@types/plans';import RadioIconSelect from '../../common/form/RadioIconSelect/RadioIconSelect';+import Upgrade from '../../Upgrade/Upgrade';interface PlanStrategySettingsProps {plan: NewPlanSettings;@@ -16,18 +18,29 @@ interface PlanStrategySettingsProps {}const PlanStrategySettings = ({ plan, options = [], disabled = false, onUpdate }: PlanStrategySettingsProps) => {+ const [showUpgrade, setShowUpgrade] = useState<string | false>(false);+return (- <div className={`${classes.field}`}>- <RadioIconSelect- label="Backup Strategy*"- options={options}- fieldValue={plan.method}- onUpdate={(method) => onUpdate(method)}- disabled={disabled}- showDescription={true}- layout="list"- />- </div>+ <>+ <div className={`${classes.field}`}>+ <RadioIconSelect+ label="Backup Strategy*"+ options={options}+ fieldValue={plan.method}+ onUpdate={(method) => onUpdate(method)}+ onDisableClick={(value) => {+ const option = options.find((opt) => opt.value === value);+ if (option && option.disabled) {+ setShowUpgrade(value);+ }+ }}+ disabled={disabled}+ showDescription={true}+ layout="list"+ />+ </div>+ {showUpgrade && <Upgrade focus={showUpgrade} onClose={() => setShowUpgrade(false)} />}+ </>);};diff --git a/frontend/src/components/Plan/SnapshotViewer/SnapshotViewer.tsx b/frontend/src/components/Plan/SnapshotViewer/SnapshotViewer.tsxindex 873151b..4b21b7e 100644--- a/frontend/src/components/Plan/SnapshotViewer/SnapshotViewer.tsx+++ b/frontend/src/components/Plan/SnapshotViewer/SnapshotViewer.tsx@@ -19,6 +19,7 @@ import { useSnapshotDatabase } from '../../common/SnapshotBrowser/hooks/useSnapsimport { useSnapshotNavigation } from '../../common/SnapshotBrowser/hooks/useSnapshotNavigation';import { useSnapshotSort } from '../../common/SnapshotBrowser/hooks/useSnapshotSort';import classes from '../../common/SnapshotBrowser/SnapshotBrowser.module.scss';+import Upgrade from '../../Upgrade/Upgrade';interface SnapshotViewerProps {files: FileItem[];@@ -64,6 +65,7 @@ const SnapshotViewer = ({const [showRestoreModal, setShowRestoreModal] = useState<FileItem | false>(false);const [selectedReplicationId, setSelectedReplicationId] = useState<string | undefined>(replicationId);const [currentFiles, setCurrentFiles] = useState<FileItem[]>(files);+ const [showUpgrade, setShowUpgrade] = useState<boolean>(false);const fileListRef = useRef<HTMLDivElement | null>(null);const navigate = useNavigate();@@ -210,6 +212,7 @@ const SnapshotViewer = ({onDirectoryClick={handleDirectoryClick}onRestore={(file) => setShowRestoreModal(file)}renderFileActions={renderFileActions}+ showUpgradeModal={() => setShowUpgrade(true)}/>);},@@ -337,6 +340,7 @@ const SnapshotViewer = ({)}{children}+ {showUpgrade && <Upgrade focus="snapshot" onClose={() => setShowUpgrade(false)} />}</div>);};diff --git a/frontend/src/components/Plan/SnapshotViewer/SnapshotViewerFile.tsx b/frontend/src/components/Plan/SnapshotViewer/SnapshotViewerFile.tsxindex eeb8bf6..4d8d48a 100644--- a/frontend/src/components/Plan/SnapshotViewer/SnapshotViewerFile.tsx+++ b/frontend/src/components/Plan/SnapshotViewer/SnapshotViewerFile.tsx@@ -1,7 +1,7 @@import React, { ReactNode } from 'react';import Icon from '../../common/Icon/Icon';import FileIcon from '../../common/FileIcon/FileIcon';-import { formatBytes, formatDateTime, timeAgo } from '../../../utils/helpers';+import { formatBytes, formatDateTime, proViewableFileFormats, proViewFileFormatObj, timeAgo } from '../../../utils/helpers';import { FileItem } from '../../../@types/system';import classes from '../../common/SnapshotBrowser/SnapshotBrowser.module.scss';@@ -14,6 +14,7 @@ interface SnapshotViewerFileProps {onDirectoryClick: (path: string) => void;onRestore: (file: FileItem) => void;renderFileActions?: (file: FileItem, meta: { fileExtension: string; isDirectory: boolean }) => ReactNode;+ showUpgradeModal?: () => void;}const SnapshotViewerFile = ({@@ -25,6 +26,7 @@ const SnapshotViewerFile = ({onDirectoryClick,onRestore,renderFileActions,+ showUpgradeModal,}: SnapshotViewerFileProps) => {if (!file) return null;@@ -47,6 +49,7 @@ const SnapshotViewerFile = ({const fileName = typedFile.name || typedFile.path.split('/').pop() || '';const isDirectory = typedFile.isDirectory;const fileExtension = fileName.split('.').pop() || '';+ const isPlayable = [...proViewFileFormatObj.audio, ...proViewFileFormatObj.video].includes(fileExtension);return (<div@@ -68,6 +71,29 @@ const SnapshotViewerFile = ({{!isSync && (<div className={classes.fileActions}>{renderFileActions?.(typedFile, { fileExtension, isDirectory })}+ {!renderFileActions && !isDirectory && proViewableFileFormats.includes(fileExtension) && (+ <button+ style={{ opacity: '0.4' }}+ onClick={(e) => {+ e.stopPropagation();+ showUpgradeModal?.();+ }}+ >+ <Icon type={isPlayable ? 'play' : 'eye'} size={16} />+ </button>+ )}++ {!renderFileActions && (+ <button+ style={{ opacity: '0.5' }}+ onClick={(e) => {+ e.stopPropagation();+ showUpgradeModal?.();+ }}+ >+ <Icon type={'download'} size={16} />+ </button>+ )}<buttondata-tooltip-id="htmlToolTip"data-tooltip-place="top"diff --git a/frontend/src/components/Upgrade/Upgrade.module.scss b/frontend/src/components/Upgrade/Upgrade.module.scssnew file mode 100644index 0000000..a64544a--- /dev/null+++ b/frontend/src/components/Upgrade/Upgrade.module.scss@@ -0,0 +1,311 @@+.upgrade {+ width: 100%;+ color: var(--content-text-color);+ height: 100vh;+ background-color: var(--modal-bg);+ position: fixed;+ left: 0;+ top: 0;+ z-index: 999;+ display: flex;+ align-items: flex-start;+ justify-content: center;+ transition: all 0.12s linear;++ .sidePanel {+ width: 240px;+ min-height: 500px;+ padding: 20px;+ gap: 20px;+ padding-right: 0;+ display: flex;+ flex-direction: column;+ justify-content: center;+ background-color: var(--background-color);+ h1 {+ margin: 0;+ font-size: 15px;+ padding-left: 15px;+ text-transform: uppercase;+ font-weight: 800;+ }+ ul {+ margin: 0;+ padding: 0;+ li {+ list-style-type: none;+ padding: 12px 16px;+ border-radius: 6px 0 0 6px;+ color: var(--content-text-color-light);+ user-select: none;+ font-weight: 600;+ cursor: pointer;+ transition: all 0.12s linear;+ &.active {+ background-color: var(--content-background-color);+ color: var(--primary-color);+ }+ &:hover {+ color: var(--primary-color);+ }+ span {+ opacity: 0.7;+ }+ }+ }+ .upgradeButton {+ display: block;+ margin: 0 15px;+ font-weight: 600;+ background: var(--primary-color);+ color: var(--primary-text-color);+ border-radius: 6px;+ padding: 12px;+ text-align: center;+ cursor: pointer;+ transition: all 0.2s linear;+ &:hover {+ background: var(--primary-hover-color);+ }+ }+ }++ .mobileNav {+ display: none;+ }++ .content {+ width: 90%;+ max-width: 960px;+ border-radius: 10px;+ position: absolute;+ background: var(--content-background-color);+ color: var(--content-text-color);+ border: 1px solid var(--content-shadow-color);+ right: 0;+ left: 0;+ top: 42%;+ transform: translateY(-50%);+ margin: 0 auto;+ box-sizing: border-box;+ box-shadow: 0 0 20px var(--modal-shadow-color);+ transition: all 0.2s ease-out;+ .container {+ display: flex;+ }+ }+ .tabs {+ width: calc(100% - 240px);+ position: relative;+ overflow: hidden;+ .close {+ position: absolute;+ right: 0;+ padding: 20px;+ opacity: 0.3;+ transition: all 0.2s ease-out;+ &:hover {+ opacity: 0.6;+ transform: rotate(90deg);+ }+ }+ .tab {+ padding: 60px;+ h3 {+ span {+ opacity: 0.7;+ color: var(--primary-color);+ }+ }+ ul {+ padding-left: 0px;+ line-height: 2.2em;+ font-size: 0.86rem;+ list-style-type: none;+ li {+ span {+ color: var(--primary-color);+ opacity: 0.6;+ }+ }+ }+ .tabImage {+ img {+ width: auto;+ max-height: 450px;+ position: absolute;+ margin-top: -65px;+ right: -50px;+ }+ &.emailTabImage {+ img {+ max-height: 320px;+ margin-top: 0;+ right: 0;+ bottom: 0;+ z-index: 4;+ }+ .glowImage {+ z-index: 1;+ max-height: unset;+ top: 300px;+ }+ }+ }+ }+ }+ .snapshotTabs {+ margin: 0;+ display: flex;+ gap: 10px;+ position: relative;+ z-index: 22;+ margin-bottom: 20px;+ li {+ font-size: 0.9em;+ line-height: 1em;+ padding: 6px;+ font-weight: 600;+ cursor: pointer;+ &.active {+ background-color: var(--primary-color-light);+ border-radius: 6px;+ }+ }+ }++ .snapshotTabsMobile {+ display: none;+ }++ .snapshotTabsContent {+ .snapshotTab {+ position: relative;+ p {+ margin: 20px 0;+ font-weight: 600;+ position: relative;+ z-index: 22;+ }+ .snapshotImage {+ max-height: 420px;+ position: relative;+ overflow: hidden;+ border-radius: 6px;+ &:after {+ content: '';+ width: 100%;+ height: 200px;+ background: linear-gradient(0deg, #ffffff, transparent);+ display: block;+ z-index: 999;+ position: absolute;+ bottom: 0;+ }+ img {+ max-width: 100%;+ border: 1px solid var(--line-color);+ border-radius: 6px;+ position: relative;+ z-index: 222;+ }+ }++ .glowImage {+ position: absolute;+ bottom: -250px;+ left: -60px;+ z-index: 0;+ width: 122%;+ max-width: unset;+ opacity: 0.5;+ }+ }+ }+}++@media only screen and (max-width: 768px) {+ .upgrade {+ .content {+ .container {+ flex-direction: column;+ }+ }+ .sidePanel {+ width: 100%;+ box-sizing: border-box;+ min-height: unset;+ border-radius: 6px 6px 0 0;+ ul {+ display: none;+ }+ .upgradeButton {+ position: absolute;+ width: 100%;+ box-sizing: border-box;+ left: 0;+ bottom: -60px;+ margin: 0;+ }+ }+ .mobileNav {+ display: flex;+ width: 100%;+ ul {+ margin: 0;+ padding: 0;+ list-style-type: none;+ display: flex;+ justify-content: space-around;+ width: 100%;+ border-top: 1px solid var(--line-color);+ li {+ padding: 8px;+ color: var(--content-text-color-light);+ cursor: pointer;+ &.active {+ color: var(--primary-color);+ }+ }+ }+ }+ .snapshotTabs {+ display: none;+ }+ .snapshotTabsMobile {+ display: block;+ select {+ width: 100%;+ margin-bottom: 20px;+ padding: 6px 12px;+ border-color: var(--line-active-color);+ border-radius: 6px;+ }+ }++ .tabs {+ width: 100%;+ min-height: 60vh;+ .tab {+ padding: 30px;+ padding-bottom: 0;+ ul {+ font-size: 1em;+ }+ .tabImage img {+ max-height: 350px;+ }+ .tabImage.emailTabImage img {+ right: -100px;+ bottom: -100px;+ }+ .snapshotTab {+ position: relative;+ .glowImage {+ left: unset;+ }+ }+ }+ }+ }+}diff --git a/frontend/src/components/Upgrade/Upgrade.tsx b/frontend/src/components/Upgrade/Upgrade.tsxnew file mode 100644index 0000000..45b4c4e--- /dev/null+++ b/frontend/src/components/Upgrade/Upgrade.tsx@@ -0,0 +1,264 @@+import { useState } from 'react';+import { createPortal } from 'react-dom';+import classes from './Upgrade.module.scss';+import Icon from '../common/Icon/Icon';++interface UpgradeProps {+ focus?: string;+ onClose: () => void;+}++const Upgrade = ({ focus, onClose }: UpgradeProps) => {+ const [tab, setTab] = useState(focus || 'sync');+ const [snapshotsTab, setSnapshotsTab] = useState('comparison');++ const closeOnBGClick = (e: React.SyntheticEvent) => {+ e.stopPropagation();+ e.nativeEvent.stopImmediatePropagation();+ if (e.target === e.currentTarget) {+ onClose();+ }+ };++ return createPortal(+ <div className={classes.upgrade} onClick={closeOnBGClick}>+ <div className={classes.content}>+ <div className={classes.container}>+ <div className={classes.sidePanel}>+ <h1>+ <Icon type="bolt" size={20} color="#FF9800" /> Pluton PRO+ </h1>+ <ul>+ <li className={tab === 'sync' ? classes.active : ''} onClick={() => setTab('sync')}>+ <Icon type="sync" size={14} /> Sync Backups+ </li>+ <li className={tab === 'remote' ? classes.active : ''} onClick={() => setTab('remote')}>+ <Icon type="computer-remote" size={14} /> Backup Remote Machines+ </li>+ <li className={tab === 'recovery' ? classes.active : ''} onClick={() => setTab('recovery')}>+ <Icon type="integrity" size={14} /> Automated Recovery Check+ </li>+ <li className={tab === 'snapshot' ? classes.active : ''} onClick={() => setTab('snapshot')}>+ <Icon type="box" size={14} /> Advanced Snapshot Features+ </li>+ <li className={tab === 'rescue' ? classes.active : ''} onClick={() => setTab('rescue')}>+ <Icon type="linux" size={14} /> Linux Server Backup+ </li>+ <li className={tab === 'email' ? classes.active : ''} onClick={() => setTab('email')}>+ <Icon type="email" size={14} /> Email Report Digest+ </li>+ </ul>+ <a href="https://usepluton.com/pricing" target="_blank" rel="noopener noreferrer" className={classes.upgradeButton}>+ Upgrade+ </a>+ </div>+ <div className={classes.tabs}>+ <button className={classes.close} onClick={onClose}>+ <Icon type="close" size={24} />+ </button>+ {tab === 'sync' && (+ <div className={classes.tab}>+ <h3>+ <Icon type="sync" size={18} /> Unlock Real-Time Sync for Instant Access, Everywhere+ </h3>+ <ul>+ <li>+ <Icon type="check-circle" size={14} /> Every change is mirrored the moment it happens+ </li>+ <li>+ <Icon type="check-circle" size={14} /> No encryption or compression. Quickly Access your files anywhere+ </li>+ <li>+ <Icon type="check-circle" size={14} /> Sync to Google Drive, Dropbox, Backblaze, and 70+ other storages.+ </li>+ </ul>+ <div className={classes.tabImage}>+ <img src="https://pluton.b-cdn.net/upgrade/features_pro_sync.webp" />+ </div>+ </div>+ )}+ {tab === 'remote' && (+ <div className={classes.tab}>+ <h3>+ <Icon type="computer-remote" size={18} /> Unlock Centralized Remote Machine Backup+ </h3>+ <ul>+ <li>+ <Icon type="check-circle" size={14} /> Backup multiple remote machines from a single dashboard+ </li>+ <li>+ <Icon type="check-circle" size={14} /> Lightweight agent-based backup runs backup autonomously+ </li>+ <li>+ <Icon type="check-circle" size={14} /> Backup content of any device, anywhere+ </li>+ </ul>+ <div className={classes.tabImage}>+ <img src="https://pluton.b-cdn.net/upgrade/feature_infrastructure.webp" style={{ right: '-120px', marginTop: '-25px' }} />+ </div>+ </div>+ )}+ {tab === 'recovery' && (+ <div className={classes.tab}>+ <h3>+ <Icon type="integrity" size={18} /> Unlock Automated Recovery Check+ </h3>+ <ul>+ <li>+ <Icon type="check-circle" size={14} /> Continuous automated backup recovery testing to catch corruptions+ </li>+ <li>+ <Icon type="check-circle" size={14} /> Immediate notifications with clear steps for corrective action+ </li>+ <li>+ <Icon type="check-circle" size={14} /> Ensure your snapshots are 100% ready for a genuine emergency+ </li>+ </ul>+ <div className={classes.tabImage}>+ <img src="https://pluton.b-cdn.net/upgrade/features_pro_auto_recovery.png" style={{ right: '-100px' }} />+ </div>+ </div>+ )}+ {tab === 'snapshot' && (+ <div className={classes.tab}>+ <h3>+ <Icon type="box" size={18} /> Unlock Advanced Snapshot Management+ </h3>+ <ul className={classes.snapshotTabs}>+ <li onClick={() => setSnapshotsTab('comparison')} className={snapshotsTab === 'comparison' ? classes.active : ''}>+ <Icon type="check-circle" size={14} />+ View Changes+ </li>+ <li onClick={() => setSnapshotsTab('preview')} className={snapshotsTab === 'preview' ? classes.active : ''}>+ <Icon type="check-circle" size={14} />+ Preview Files+ </li>+ <li onClick={() => setSnapshotsTab('download')} className={snapshotsTab === 'download' ? classes.active : ''}>+ <Icon type="check-circle" size={14} />+ Download Files+ </li>+ <li onClick={() => setSnapshotsTab('search')} className={snapshotsTab === 'search' ? classes.active : ''}>+ <Icon type="check-circle" size={14} /> Search Snapshot+ </li>+ </ul>+ <div className={classes.snapshotTabsMobile}>+ <select value={snapshotsTab} onChange={(e) => setSnapshotsTab(e.target.value)}>+ <option value="comparison">View Changes</option>+ <option value="preview">Preview Files</option>+ <option value="download">Download Files</option>+ <option value="search">Search Snapshot</option>+ </select>+ </div>+ <div className={classes.snapshotTabsContent}>+ {snapshotsTab === 'comparison' && (+ <div className={classes.snapshotTab}>+ <div className={classes.snapshotImage}>+ <img src="https://pluton.b-cdn.net/upgrade/snapshot_compare.png" />+ </div>+ <img className={classes.glowImage} src="https://pluton.b-cdn.net/upgrade/glow4.svg" />+ <p>Utilize the integrated comparison UI to view exactly what has changed between snapshots.</p>+ </div>+ )}+ {snapshotsTab === 'preview' && (+ <div className={classes.snapshotTab}>+ <div className={classes.snapshotImage}>+ <img src="https://pluton.b-cdn.net/upgrade/snapshot_view_files.png" />+ </div>+ <img className={classes.glowImage} src="https://pluton.b-cdn.net/upgrade/glow4.svg" />+ <p>View the content of various file types without downloading the entire snapshot.</p>+ </div>+ )}+ {snapshotsTab === 'download' && (+ <div className={classes.snapshotTab}>+ <div className={classes.snapshotImage}>+ <img src="https://pluton.b-cdn.net/upgrade/snapshot_file_download.png" />+ </div>+ <img className={classes.glowImage} src="https://pluton.b-cdn.net/upgrade/glow4.svg" />+ <p>Easily download specific files or folders directly from a snapshot.</p>+ </div>+ )}+ {snapshotsTab === 'search' && (+ <div className={classes.snapshotTab}>+ <div className={classes.snapshotImage}>+ <img src="https://pluton.b-cdn.net/upgrade/snapshot_search.png" />+ </div>+ <img className={classes.glowImage} src="https://pluton.b-cdn.net/upgrade/glow4.svg" />+ <p>Quickly find specific files within any snapshot across various versions.</p>+ </div>+ )}+ </div>+ </div>+ )}+ {tab === 'rescue' && (+ <div className={classes.tab}>+ <h3>+ <Icon type="linux" size={16} /> Unlock Full Linux Server Backup+ </h3>+ <ul>+ <li>+ <Icon type="check-circle" size={14} /> Capture your entire Linux OS, kernel, and configurations+ </li>+ <li>+ <Icon type="check-circle" size={14} /> Powered by ReaR for reliable, bare-metal restoration+ </li>+ <li>+ <Icon type="check-circle" size={14} /> Boot from your ISO to return your server to its previous state+ </li>+ </ul>+ <div className={classes.tabImage}>+ <img src="https://pluton.b-cdn.net/upgrade/features_pro_linux_server.webp" />+ </div>+ </div>+ )}+ {tab === 'email' && (+ <div className={classes.tab}>+ <h3>+ <Icon type="email" size={18} /> Unlock Global Backup Email Report Digest+ </h3>+ <ul>+ <li>+ <Icon type="check-circle" size={14} /> Receive consolidated daily, weekly, or monthly digest emails+ </li>+ <li>+ <Icon type="check-circle" size={14} /> Stay informed about your entire backup ecosystem without logging into Pluton+ </li>+ </ul>+ <div className={`${classes.tabImage} ${classes.emailTabImage}`}>+ <img src="https://pluton.b-cdn.net/upgrade/pro_global_email.webp" />+ <img className={classes.glowImage} src="https://pluton.b-cdn.net/upgrade/glow4.svg" />+ </div>+ </div>+ )}+ </div>+ <div className={classes.mobileNav}>+ <ul>+ {['sync', 'remote', 'recovery', 'snapshot', 'rescue', 'email'].map((item) => (+ <li key={item} className={tab === item ? classes.active : ''} onClick={() => setTab(item)}>+ <Icon+ type={+ item === 'sync'+ ? 'sync'+ : item === 'remote'+ ? 'computer-remote'+ : item === 'recovery'+ ? 'integrity'+ : item === 'snapshot'+ ? 'box'+ : item === 'rescue'+ ? 'linux'+ : 'email'+ }+ size={24}+ />+ </li>+ ))}+ </ul>+ </div>+ </div>+ </div>+ </div>,+ document.body,+ );+};++export default Upgrade;diff --git a/frontend/src/components/common/form/RadioIconSelect/RadioIconSelect.tsx b/frontend/src/components/common/form/RadioIconSelect/RadioIconSelect.tsxindex a83c643..1edc52d 100644--- a/frontend/src/components/common/form/RadioIconSelect/RadioIconSelect.tsx+++ b/frontend/src/components/common/form/RadioIconSelect/RadioIconSelect.tsx@@ -12,6 +12,7 @@ interface RadioIconSelectProps {hint?: string;inline?: boolean;onUpdate: (type: string) => void;+ onDisableClick?: (value: string) => void;}const RadioIconSelect = ({@@ -24,8 +25,8 @@ const RadioIconSelect = ({inline = false,layout = 'grid',onUpdate,+ onDisableClick,}: RadioIconSelectProps) => {- const radioDisabled = disabled;return (<FormField type="radioIconSelect" label={label} classes={classes.radioIconField} hint={hint} inline={inline}><div@@ -37,7 +38,13 @@ const RadioIconSelect = ({<divkey={value}className={`${classes.radioIconFieldOption} ${disabled ? classes.radioIconFieldDisabled : ''} ${fieldValue === value ? classes.radioIconFieldActive : ''}`}- onClick={() => !disabled && !radioDisabled && onUpdate(value)}+ onClick={() => {+ if (disabled && onDisableClick) {+ onDisableClick(value);+ } else {+ onUpdate(value);+ }+ }}data-tooltip-id="appTooltip"data-tooltip-content={description}data-tooltip-place="top"diff --git a/frontend/src/routes/Sources/Sources.module.scss b/frontend/src/routes/Sources/Sources.module.scssindex 1b75ccb..07145aa 100644--- a/frontend/src/routes/Sources/Sources.module.scss+++ b/frontend/src/routes/Sources/Sources.module.scss@@ -6,6 +6,20 @@margin-top: 20px;}+.deviceUpgrade {+ padding: 20px;+ align-items: center;+ justify-content: center;+ cursor: pointer;+ font-weight: 600;+ margin-bottom: 0;+ border: 1px solid transparent;+ &:hover {+ border: 1px solid var(--primary-color-mid);+ color: var(--primary-color);+ }+}+.devicesGrid {display: grid;grid-template-columns: repeat(3, 1fr);diff --git a/frontend/src/routes/Sources/Sources.tsx b/frontend/src/routes/Sources/Sources.tsxindex 29f640b..22ebc05 100644--- a/frontend/src/routes/Sources/Sources.tsx+++ b/frontend/src/routes/Sources/Sources.tsx@@ -8,6 +8,8 @@ import { useGetDevices } from '../../services/devices';import classes from './Sources.module.scss';import ItemsLayout from '../../components/common/ItemsLayout/ItemsLayout';import SkeletonItems from '../../components/Skeleton/SkeletonItems';+import deviceItemClasses from '../../components/Device/DeviceItem/DeviceItem.module.scss';+import Upgrade from '../../components/Upgrade/Upgrade';type SourcesProps = {buttonTitle?: string;@@ -19,6 +21,7 @@ const Sources = ({ buttonTitle, buttonAction }: SourcesProps) => {const [devicesLayout, setDevicesLayout] = useState<'list' | 'grid'>(() => (localStorage.getItem('devices_layout') === 'grid' ? 'grid' : 'list'));const { data, isLoading } = useGetDevices();const fetchedDevices: Device[] = data?.result || [];+ const [showUpgrade, setShowUpgrade] = useState(false);useEffect(() => {if (data?.result) {@@ -77,8 +80,14 @@ const Sources = ({ buttonTitle, buttonAction }: SourcesProps) => {/><div className={`${classes.deviceItems} ${devicesLayout === 'grid' ? classes.devicesGrid : ''}`}>{!isLoading && devices.length > 0 && devices.map((device) => <DeviceItem key={device.id} device={device} layout={devicesLayout} />)}+ {!isLoading && (+ <div className={`${deviceItemClasses.device} ${classes.deviceUpgrade}`} onClick={() => setShowUpgrade(true)}>+ + Add Remote Machine+ </div>+ )}</div>{isLoading && <SkeletonItems type="source" layout={devicesLayout} />}+ {showUpgrade && <Upgrade focus="remote" onClose={() => setShowUpgrade(false)} />}</div>);};diff --git a/frontend/src/utils/helpers.ts b/frontend/src/utils/helpers.tsindex 1591cfe..d1c4a7e 100644--- a/frontend/src/utils/helpers.ts+++ b/frontend/src/utils/helpers.ts@@ -528,3 +528,37 @@ export const getIntervalMinutes = (interval: PlanInterval): number => {return 1440;}};++export const proViewFileFormatObj = {+ image: ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico', 'tif', 'tiff', 'avif'],+ // richtext: ['md', 'csv', 'rtf', 'docx'],+ audio: ['mp3', 'wav', 'ogg', 'flac', 'aac'],+ video: ['mp4', 'webm', 'ogv'],+ pdf: ['pdf'],+ // office: ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'odt', 'ods', 'odp'],+ code: [+ 'js',+ 'jsx',+ 'ts',+ 'tsx',+ 'html',+ 'css',+ 'scss',+ 'json',+ 'xml',+ 'yml',+ 'yaml',+ 'sh',+ 'py',+ 'java',+ 'c',+ 'cpp',+ 'cs',+ 'go',+ 'rb',+ 'php',+ 'md',+ ],+};++export const proViewableFileFormats = Object.values(proViewFileFormatObj).flat();