mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(knip): trim dead exports and tool noise
This commit is contained in:
@@ -1 +1 @@
|
||||
export { MobileBoardButtons, DesktopBoardButtons, PostPageStats, ReturnButton, CatalogButton, UpdateButton, AutoButton, TopButton, RefreshButton } from './board-buttons';
|
||||
export { MobileBoardButtons, DesktopBoardButtons } from './board-buttons';
|
||||
|
||||
@@ -5,7 +5,7 @@ import StyleSelector from '../style-selector/style-selector';
|
||||
import footerStyles from '../footer/footer.module.css';
|
||||
import styles from './board-pagination.module.css';
|
||||
|
||||
export interface BoardPaginationProps {
|
||||
interface BoardPaginationProps {
|
||||
basePath: string;
|
||||
currentPage: number;
|
||||
totalPages: number;
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export { default } from './board-pagination';
|
||||
export type { BoardPaginationProps } from './board-pagination';
|
||||
|
||||
@@ -18,7 +18,7 @@ import styles from './footer.module.css';
|
||||
* Main page footer wrapper: hr, first row slot, BoardsBar, SiteLegalMeta.
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
export interface PageFooterDesktopProps {
|
||||
interface PageFooterDesktopProps {
|
||||
/** Mode-specific first row content (e.g. board pagination or thread controls) */
|
||||
firstRow: React.ReactNode;
|
||||
/** Optional row between first row and BoardsBar (e.g. style selector on thread page) */
|
||||
@@ -61,7 +61,7 @@ export const StyleOnlyFooterFirstRow = () => {
|
||||
* Catalog footer first row: Return, Archive, Top, Refresh on left; Style selector on right.
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
export interface CatalogFooterFirstRowProps {
|
||||
interface CatalogFooterFirstRowProps {
|
||||
subplebbitAddress?: string;
|
||||
isInAllView?: boolean;
|
||||
isInSubscriptionsView?: boolean;
|
||||
@@ -114,7 +114,7 @@ export const ThreadFooterStyleRow = () => {
|
||||
* Thread page footer first row: Return, Catalog, Top, Update, Auto, Post a Reply, stats.
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
export interface ThreadFooterFirstRowProps {
|
||||
interface ThreadFooterFirstRowProps {
|
||||
postCid: string;
|
||||
threadNumber: number | undefined;
|
||||
subplebbitAddress: string;
|
||||
@@ -193,7 +193,7 @@ export const PageFooterMobile = ({ children }: { children: React.ReactNode }) =>
|
||||
* Mobile thread page footer: Post a Reply, Return/Catalog/Top, Update/Auto, stats.
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
export interface ThreadFooterMobileProps {
|
||||
interface ThreadFooterMobileProps {
|
||||
postCid: string;
|
||||
threadNumber: number | undefined;
|
||||
subplebbitAddress: string;
|
||||
|
||||
@@ -7,4 +7,3 @@ export {
|
||||
ThreadFooterStyleRow,
|
||||
ThreadFooterMobile,
|
||||
} from './footer';
|
||||
export type { PageFooterDesktopProps, CatalogFooterFirstRowProps, ThreadFooterFirstRowProps, ThreadFooterMobileProps } from './footer';
|
||||
|
||||
@@ -1 +1 @@
|
||||
export { LinkTypePreviewer, default } from './post-form';
|
||||
export { default } from './post-form';
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export { default } from './site-legal-meta';
|
||||
export type { SiteLegalMetaOrder, SiteLegalMetaProps } from './site-legal-meta';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import Version from '../version';
|
||||
|
||||
export type SiteLegalMetaOrder = 'version-first' | 'license-first';
|
||||
type SiteLegalMetaOrder = 'version-first' | 'license-first';
|
||||
|
||||
export type SiteLegalMetaProps = {
|
||||
type SiteLegalMetaProps = {
|
||||
/** Order of blocks: version-first (homepage) or license-first (board/post footer) */
|
||||
order?: SiteLegalMetaOrder;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user