this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Cleanup

+25 -32
+1
.prettierrc
··· 8 8 "index.css$", 9 9 ".css$", 10 10 "<THIRD_PARTY_MODULES>", 11 + "/assets/", 11 12 "^../", 12 13 "^[./]" 13 14 ],
-1
src/components/account-block.jsx
··· 3 3 // import { useNavigate } from 'react-router-dom'; 4 4 import enhanceContent from '../utils/enhance-content'; 5 5 import niceDateTime from '../utils/nice-date-time'; 6 - import shortenNumber from '../utils/shorten-number'; 7 6 import states from '../utils/states'; 8 7 9 8 import Avatar from './avatar';
+1 -6
src/components/nav-menu.jsx
··· 1 1 import './nav-menu.css'; 2 2 3 - import { 4 - ControlledMenu, 5 - Menu, 6 - MenuDivider, 7 - MenuItem, 8 - } from '@szhsin/react-menu'; 3 + import { ControlledMenu, MenuDivider, MenuItem } from '@szhsin/react-menu'; 9 4 import { useEffect, useRef, useState } from 'preact/hooks'; 10 5 import { useLongPress } from 'use-long-press'; 11 6 import { useSnapshot } from 'valtio';
+1
src/components/shortcuts-settings.jsx
··· 11 11 import floatingButtonUrl from '../assets/floating-button.svg'; 12 12 import multiColumnUrl from '../assets/multi-column.svg'; 13 13 import tabMenuBarUrl from '../assets/tab-menu-bar.svg'; 14 + 14 15 import { api } from '../utils/api'; 15 16 import showToast from '../utils/show-toast'; 16 17 import states from '../utils/states';
-1
src/components/timeline.jsx
··· 14 14 15 15 import Icon from './icon'; 16 16 import Link from './link'; 17 - import Loader from './loader'; 18 17 import NavMenu from './nav-menu'; 19 18 import Status from './status'; 20 19
+1 -1
src/pages/account-statuses.jsx
··· 1 - import { Menu, MenuItem } from '@szhsin/react-menu'; 1 + import { MenuItem } from '@szhsin/react-menu'; 2 2 import { useEffect, useMemo, useRef, useState } from 'preact/hooks'; 3 3 import { useParams, useSearchParams } from 'react-router-dom'; 4 4 import { useSnapshot } from 'valtio';
-1
src/pages/hashtag.jsx
··· 1 1 import { 2 2 FocusableItem, 3 - Menu, 4 3 MenuDivider, 5 4 MenuGroup, 6 5 MenuItem,
-19
src/pages/home.jsx
··· 13 13 import { api } from '../utils/api'; 14 14 import db from '../utils/db'; 15 15 import groupNotifications from '../utils/group-notifications'; 16 - import openCompose from '../utils/open-compose'; 17 16 import states, { saveStatus } from '../utils/states'; 18 17 import { getCurrentAccountNS } from '../utils/store-utils'; 19 18 ··· 49 48 headerEnd={<NotificationsLink />} 50 49 /> 51 50 )} 52 - {/* <button 53 - // hidden={scrollDirection === 'end' && !nearReachStart} 54 - type="button" 55 - id="compose-button" 56 - onClick={(e) => { 57 - if (e.shiftKey) { 58 - const newWin = openCompose(); 59 - if (!newWin) { 60 - alert('Looks like your browser is blocking popups.'); 61 - states.showCompose = true; 62 - } 63 - } else { 64 - states.showCompose = true; 65 - } 66 - }} 67 - > 68 - <Icon icon="quill" size="xl" alt="Compose" /> 69 - </button> */} 70 51 </> 71 52 ); 72 53 }
+17
src/pages/settings.jsx
··· 4 4 import { useSnapshot } from 'valtio'; 5 5 6 6 import logo from '../assets/logo.svg'; 7 + 7 8 import Icon from '../components/icon'; 8 9 import Link from '../components/link'; 9 10 import RelativeTime from '../components/relative-time'; ··· 481 482 </div> 482 483 </div> 483 484 <p> 485 + <a 486 + href="https://github.com/sponsors/cheeaun" 487 + target="_blank" 488 + rel="noopener noreferrer" 489 + > 490 + Sponsor 491 + </a>{' '} 492 + &middot;{' '} 493 + <a 494 + href="https://www.buymeacoffee.com/cheeaun" 495 + target="_blank" 496 + rel="noopener noreferrer" 497 + > 498 + Donate 499 + </a>{' '} 500 + &middot;{' '} 484 501 <a 485 502 href="https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD" 486 503 target="_blank"
+1 -1
src/pages/status.jsx
··· 14 14 } from 'preact/hooks'; 15 15 import { useHotkeys } from 'react-hotkeys-hook'; 16 16 import { InView } from 'react-intersection-observer'; 17 - import { matchPath, useParams, useSearchParams } from 'react-router-dom'; 17 + import { matchPath, useSearchParams } from 'react-router-dom'; 18 18 import { useDebouncedCallback } from 'use-debounce'; 19 19 import { useSnapshot } from 'valtio'; 20 20
+1 -1
src/pages/trending.jsx
··· 1 - import { Menu, MenuItem } from '@szhsin/react-menu'; 1 + import { MenuItem } from '@szhsin/react-menu'; 2 2 import { useMemo, useRef, useState } from 'preact/hooks'; 3 3 import { useNavigate, useParams } from 'react-router-dom'; 4 4 import { useSnapshot } from 'valtio';
+1
src/pages/welcome.jsx
··· 7 7 import nestedCommentsThreadUrl from '../assets/features/nested-comments-thread.jpg'; 8 8 import logoText from '../assets/logo-text.svg'; 9 9 import logo from '../assets/logo.svg'; 10 + 10 11 import Link from '../components/link'; 11 12 import states from '../utils/states'; 12 13 import useTitle from '../utils/useTitle';
+1 -1
src/utils/api.js
··· 166 166 instance, 167 167 }; 168 168 } else { 169 - throw new Error(`Access token ${accessToken} not found`); 169 + throw new Error(`Access token not found`); 170 170 } 171 171 } 172 172 }