mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 07:28:45 -07:00
628f430645
* feat: add 3D Charades word lists management and profanity filter toggle - Implemented Charades word lists management in the admin UI, allowing for unlimited named word lists with difficulty settings. - Added functionality to bind live card slots to specific word lists, with automatic fallback to built-in lists. - Introduced a profanity filter toggle in server settings, enabling or disabling the server-side profanity filter. - Updated database schema to support new features, including additional columns for profanity filter status and charades slot bindings. - Enhanced documentation to reflect new features and their usage. * feat: add identityserver-signing.pfx to .gitignore * feat: add new matchmake routes for player, event, club, and code
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
import { CommunityBoard } from './CommunityBoard';
|
|
import { LoadingTips } from './LoadingTips';
|
|
import { Charades } from './Charades';
|
|
import { PageHeader } from '../components/PageHeader';
|
|
import { Tabs, useTabParam } from '../components/Tabs';
|
|
|
|
// The player-facing content surfaces the watch pulls at runtime — the
|
|
// community board and loading-screen tips shown on dorm load, plus the 3D
|
|
// Charades word lists fetched at card-box spawn — share one page. Old
|
|
// /community and /loading-tips routes redirect here.
|
|
export function Content() {
|
|
const [tab, setTab] = useTabParam<'community' | 'tips' | 'charades'>(
|
|
'community', ['community', 'tips', 'charades']);
|
|
return (
|
|
<div>
|
|
<PageHeader title="Content" blurb="Player-facing content: the community board, loading-screen tips, and 3D Charades word lists." />
|
|
<Tabs
|
|
tabs={[
|
|
{ key: 'community', label: 'Community board' },
|
|
{ key: 'tips', label: 'Loading tips' },
|
|
{ key: 'charades', label: 'Charades words' },
|
|
]}
|
|
active={tab}
|
|
onChange={setTab}
|
|
/>
|
|
{tab === 'community' && <CommunityBoard embedded />}
|
|
{tab === 'tips' && <LoadingTips embedded />}
|
|
{tab === 'charades' && <Charades embedded />}
|
|
</div>
|
|
);
|
|
}
|