Compare commits
1 Commits
513bfbda96
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc175b6ce6 |
@@ -19,10 +19,15 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
env_file:
|
|
||||||
- ./nest-backend/.env
|
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://nest_user:nest_password@db:5432/nest_db
|
DATABASE_URL: postgresql://nest_user:nest_password@db:5432/nest_db
|
||||||
|
JWT_SECRET: ${JWT_SECRET:-change_me_in_production}
|
||||||
|
PORT: 3000
|
||||||
|
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
|
||||||
|
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@crowmate.fr}
|
||||||
|
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-change_me}
|
||||||
|
FRONT_ORIGIN: ${FRONT_ORIGIN:-http://localhost:5173}
|
||||||
|
INTRA_ORIGIN: ${INTRA_ORIGIN:-http://localhost:5174}
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -34,8 +39,6 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
environment:
|
|
||||||
API_URL: http://api:3000
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:25-alpine AS build
|
FROM node:22-alpine AS build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -1,52 +1,15 @@
|
|||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import { teamApi } from '../../utils/api';
|
||||||
import type { TeamMember } from '../../types';
|
import type { TeamMember } from '../../types';
|
||||||
|
|
||||||
const FALLBACK_MEMBERS: TeamMember[] = [
|
|
||||||
{
|
|
||||||
id: 'studio-1',
|
|
||||||
name: 'Thibault Pouch',
|
|
||||||
role: 'Game Dev • Lore / CI-CD',
|
|
||||||
bio: 'Works on game dev, game lore, CI/CD, assets, and the web platform.',
|
|
||||||
avatarInitials: 'TP',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'studio-2',
|
|
||||||
name: 'Pierre Ryssen',
|
|
||||||
role: 'Game Dev • Assets / Web',
|
|
||||||
bio: 'Works on game dev, assets, and the web platform.',
|
|
||||||
avatarInitials: 'PR',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'studio-3',
|
|
||||||
name: 'Antoine Papillon',
|
|
||||||
role: 'Game Dev • Gameplay',
|
|
||||||
bio: 'Focused on core game development for the project.',
|
|
||||||
avatarInitials: 'AP',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'studio-4',
|
|
||||||
name: 'Clement Augustinowick',
|
|
||||||
role: 'Game Dev • Gameplay',
|
|
||||||
bio: 'Focused on core game development for the project.',
|
|
||||||
avatarInitials: 'CA',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'studio-5',
|
|
||||||
name: 'Dany Lhoir',
|
|
||||||
role: 'Game Dev • Multiplayer / Security',
|
|
||||||
bio: 'Works on game dev, multiplayer systems, and cybersecurity.',
|
|
||||||
avatarInitials: 'DL',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'studio-6',
|
|
||||||
name: 'Timote Koenig',
|
|
||||||
role: 'Game Dev • Assets / Planning',
|
|
||||||
bio: 'Works on game dev, assets, and project planning.',
|
|
||||||
avatarInitials: 'TK',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export default function StudioPage() {
|
export default function StudioPage() {
|
||||||
const members = FALLBACK_MEMBERS;
|
const [members, setMembers] = useState<TeamMember[]>([]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
teamApi.getMembers()
|
||||||
|
.then(setMembers)
|
||||||
|
.catch(() => { /* show empty state */ });
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ maxWidth: '1000px', margin: '0 auto', padding: '4rem 1.5rem' }}>
|
<div style={{ maxWidth: '1000px', margin: '0 auto', padding: '4rem 1.5rem' }}>
|
||||||
@@ -79,8 +42,8 @@ export default function StudioPage() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
CrowMate Studio is an independent game studio founded in 2023 by a team of six developers
|
CrowMate Studio is an independent game studio founded in 2023 by a team of six developers
|
||||||
who are all new to game development and learning by building together. We are headquartered
|
united by a shared obsession: games that are strange, atmospheric, and actually interesting.
|
||||||
somewhere in Europe and operate fully remote.
|
We are headquartered somewhere in Europe and operate fully remote.
|
||||||
</p>
|
</p>
|
||||||
<p
|
<p
|
||||||
style={{
|
style={{
|
||||||
@@ -97,41 +60,6 @@ export default function StudioPage() {
|
|||||||
you don't need a $200 million budget to make something that sticks.
|
you don't need a $200 million budget to make something that sticks.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
|
||||||
className="crt-box"
|
|
||||||
style={{ padding: '1.5rem 2rem', display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(160px, 1fr))', gap: '1rem' }}
|
|
||||||
>
|
|
||||||
{[
|
|
||||||
{ label: 'TEAM SIZE', value: '6 PEOPLE' },
|
|
||||||
{ label: 'FOUNDED', value: '2026' },
|
|
||||||
{ label: 'WORK MODE', value: 'REMOTE' },
|
|
||||||
{ label: 'CURRENT GAME', value: 'HEADLESS HAZARD' },
|
|
||||||
].map(({ label, value }) => (
|
|
||||||
<div key={label}>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
fontFamily: 'var(--font-mono)',
|
|
||||||
color: 'var(--color-green)',
|
|
||||||
fontSize: '0.72rem',
|
|
||||||
letterSpacing: '0.08em',
|
|
||||||
marginBottom: '0.45rem',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{label}
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
fontFamily: 'var(--font-heading)',
|
|
||||||
color: 'var(--color-text)',
|
|
||||||
fontSize: '1rem',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{value}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* History & Vision */}
|
{/* History & Vision */}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:25-alpine AS build
|
FROM node:22-alpine AS build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,14 @@ server {
|
|||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
# Docker DNS; resolve API service name at request time.
|
# Use Docker's embedded DNS resolver; defer resolution to request time
|
||||||
resolver 127.0.0.11 ipv6=off valid=10s;
|
resolver 127.0.0.11 valid=30s;
|
||||||
set $api_upstream http://api:3000;
|
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass $api_upstream/api/;
|
set $api_upstream http://api:3000;
|
||||||
|
proxy_pass $api_upstream;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ export default function IntranetBugs() {
|
|||||||
const [severityFilter, setSeverityFilter] = useState<BugSeverity | 'all'>('all');
|
const [severityFilter, setSeverityFilter] = useState<BugSeverity | 'all'>('all');
|
||||||
const [assignedFilter, setAssignedFilter] = useState<string | 'all'>('all');
|
const [assignedFilter, setAssignedFilter] = useState<string | 'all'>('all');
|
||||||
const [noteText, setNoteText] = useState('');
|
const [noteText, setNoteText] = useState('');
|
||||||
const [isEnabled, setIsEnabled] = useState(true);
|
|
||||||
|
|
||||||
const openCount = bugs.filter((b) => b.status === 'open').length;
|
const openCount = bugs.filter((b) => b.status === 'open').length;
|
||||||
const criticalCount = bugs.filter((b) => b.severity === 'critical').length;
|
const criticalCount = bugs.filter((b) => b.severity === 'critical').length;
|
||||||
@@ -73,60 +72,13 @@ export default function IntranetBugs() {
|
|||||||
setNoteText('');
|
setNoteText('');
|
||||||
}, [noteText, user]);
|
}, [noteText, user]);
|
||||||
|
|
||||||
if (!isEnabled) {
|
|
||||||
return (
|
|
||||||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', minHeight: '400px', textAlign: 'center' }}>
|
|
||||||
<div style={{ fontFamily: 'var(--font-mono)', color: 'var(--color-text-muted)', fontSize: '0.7rem', letterSpacing: '0.15em', marginBottom: '1rem' }}>
|
|
||||||
INTRANET / BUG REPORTS
|
|
||||||
</div>
|
|
||||||
<h1 style={{ fontFamily: 'var(--font-heading)', color: 'var(--color-red)', fontSize: '2rem', marginBottom: '0.5rem' }}>FUNCTIONALITY DISABLED</h1>
|
|
||||||
<p style={{ color: 'var(--color-text-muted)', marginBottom: '1.5rem' }}>Bug Reports feature is currently disabled</p>
|
|
||||||
<button
|
|
||||||
onClick={() => setIsEnabled(true)}
|
|
||||||
style={{
|
|
||||||
background: 'var(--color-green)',
|
|
||||||
color: 'var(--color-bg)',
|
|
||||||
border: 'none',
|
|
||||||
padding: '0.6rem 1.2rem',
|
|
||||||
fontFamily: 'var(--font-mono)',
|
|
||||||
fontSize: '0.85rem',
|
|
||||||
cursor: 'pointer',
|
|
||||||
textTransform: 'uppercase',
|
|
||||||
letterSpacing: '0.08em',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Re-enable
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ display: 'grid', gridTemplateColumns: selected ? '1fr 400px' : '1fr', gap: '1.5rem', alignItems: 'start' }}>
|
<div style={{ display: 'grid', gridTemplateColumns: selected ? '1fr 400px' : '1fr', gap: '1.5rem', alignItems: 'start' }}>
|
||||||
{/* Left panel */}
|
{/* Left panel */}
|
||||||
<div>
|
<div>
|
||||||
<div style={{ marginBottom: '1.5rem' }}>
|
<div style={{ marginBottom: '1.5rem' }}>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '0.5rem' }}>
|
<div style={{ fontFamily: 'var(--font-mono)', color: 'var(--color-text-muted)', fontSize: '0.7rem', letterSpacing: '0.15em', marginBottom: '0.5rem' }}>
|
||||||
<div style={{ fontFamily: 'var(--font-mono)', color: 'var(--color-text-muted)', fontSize: '0.7rem', letterSpacing: '0.15em' }}>
|
INTRANET / BUG REPORTS
|
||||||
INTRANET / BUG REPORTS
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
onClick={() => setIsEnabled(false)}
|
|
||||||
style={{
|
|
||||||
background: 'transparent',
|
|
||||||
border: '1px solid var(--color-red)',
|
|
||||||
color: 'var(--color-red)',
|
|
||||||
padding: '0.3rem 0.7rem',
|
|
||||||
fontFamily: 'var(--font-mono)',
|
|
||||||
fontSize: '0.65rem',
|
|
||||||
cursor: 'pointer',
|
|
||||||
textTransform: 'uppercase',
|
|
||||||
letterSpacing: '0.08em',
|
|
||||||
}}
|
|
||||||
title="Disable this feature"
|
|
||||||
>
|
|
||||||
[DISABLE]
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<h1 style={{ fontFamily: 'var(--font-heading)', color: 'var(--color-text)', fontSize: '1.8rem', marginBottom: '1rem' }}>BUG DASHBOARD</h1>
|
<h1 style={{ fontFamily: 'var(--font-heading)', color: 'var(--color-text)', fontSize: '1.8rem', marginBottom: '1rem' }}>BUG DASHBOARD</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -125,8 +125,6 @@ export default function IntranetDashboard() {
|
|||||||
<NavTile to="/intranet/feed" label="Team Feed" description="Internal staff activity feed. Post updates visible only to the team." icon="[~]" />
|
<NavTile to="/intranet/feed" label="Team Feed" description="Internal staff activity feed. Post updates visible only to the team." icon="[~]" />
|
||||||
<NavTile to="/intranet/users" label="User Management" description="View all registered users. Promote or ban accounts." icon="[U]" />
|
<NavTile to="/intranet/users" label="User Management" description="View all registered users. Promote or ban accounts." icon="[U]" />
|
||||||
<NavTile to="/intranet/moderation" label="Forum Moderation" description="Pin, lock, and delete threads and replies from the public forum." icon="[M]" />
|
<NavTile to="/intranet/moderation" label="Forum Moderation" description="Pin, lock, and delete threads and replies from the public forum." icon="[M]" />
|
||||||
<NavTile to="/intranet/events" label="Event Calendar" description="Manage upcoming events, deadlines, and team meetings." icon="[E]" />
|
|
||||||
<NavTile to="/intranet/services" label="Service Status" description="Redirection to all the services." icon="[S]" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ export default function IntranetModeration() {
|
|||||||
const [selectedThreadId, setSelectedThreadId] = useState<string | null>(null);
|
const [selectedThreadId, setSelectedThreadId] = useState<string | null>(null);
|
||||||
const [search, setSearch] = useState('');
|
const [search, setSearch] = useState('');
|
||||||
const [activeTab, setActiveTab] = useState<'threads' | 'replies'>('threads');
|
const [activeTab, setActiveTab] = useState<'threads' | 'replies'>('threads');
|
||||||
const [isEnabled, setIsEnabled] = useState(true);
|
|
||||||
|
|
||||||
const filteredThreads = useMemo(() => {
|
const filteredThreads = useMemo(() => {
|
||||||
if (!search.trim()) return threads;
|
if (!search.trim()) return threads;
|
||||||
@@ -45,62 +44,14 @@ export default function IntranetModeration() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{!isEnabled ? (
|
|
||||||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', minHeight: '400px', textAlign: 'center' }}>
|
|
||||||
<div style={{ fontFamily: 'var(--font-mono)', color: 'var(--color-text-muted)', fontSize: '0.7rem', letterSpacing: '0.15em', marginBottom: '1rem' }}>
|
|
||||||
INTRANET / MODERATION
|
|
||||||
</div>
|
|
||||||
<h1 style={{ fontFamily: 'var(--font-heading)', color: 'var(--color-red)', fontSize: '2rem', marginBottom: '0.5rem' }}>FUNCTIONALITY DISABLED</h1>
|
|
||||||
<p style={{ color: 'var(--color-text-muted)', marginBottom: '1.5rem' }}>Forum Moderation feature is currently disabled</p>
|
|
||||||
<button
|
|
||||||
onClick={() => setIsEnabled(true)}
|
|
||||||
style={{
|
|
||||||
background: 'var(--color-green)',
|
|
||||||
color: 'var(--color-bg)',
|
|
||||||
border: 'none',
|
|
||||||
padding: '0.6rem 1.2rem',
|
|
||||||
fontFamily: 'var(--font-mono)',
|
|
||||||
fontSize: '0.85rem',
|
|
||||||
cursor: 'pointer',
|
|
||||||
textTransform: 'uppercase',
|
|
||||||
letterSpacing: '0.08em',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Re-enable
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div>
|
|
||||||
<div style={{ marginBottom: '1.75rem' }}>
|
<div style={{ marginBottom: '1.75rem' }}>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
<div style={{ fontFamily: 'var(--font-mono)', color: 'var(--color-text-muted)', fontSize: '0.7rem', letterSpacing: '0.15em', marginBottom: '0.5rem' }}>
|
||||||
<div>
|
INTRANET / MODERATION
|
||||||
<div style={{ fontFamily: 'var(--font-mono)', color: 'var(--color-text-muted)', fontSize: '0.7rem', letterSpacing: '0.15em', marginBottom: '0.5rem' }}>
|
|
||||||
INTRANET / MODERATION
|
|
||||||
</div>
|
|
||||||
<h1 style={{ fontFamily: 'var(--font-heading)', color: 'var(--color-text)', fontSize: '1.8rem', marginBottom: '0.5rem' }}>FORUM MODERATION</h1>
|
|
||||||
<p style={{ fontFamily: 'var(--font-mono)', color: 'var(--color-text-muted)', fontSize: '0.78rem' }}>
|
|
||||||
{threads.length} threads — {replies.length} replies
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
onClick={() => setIsEnabled(false)}
|
|
||||||
style={{
|
|
||||||
background: 'transparent',
|
|
||||||
border: '1px solid var(--color-red)',
|
|
||||||
color: 'var(--color-red)',
|
|
||||||
padding: '0.3rem 0.7rem',
|
|
||||||
fontFamily: 'var(--font-mono)',
|
|
||||||
fontSize: '0.65rem',
|
|
||||||
cursor: 'pointer',
|
|
||||||
textTransform: 'uppercase',
|
|
||||||
letterSpacing: '0.08em',
|
|
||||||
height: 'fit-content',
|
|
||||||
}}
|
|
||||||
title="Disable this feature"
|
|
||||||
>
|
|
||||||
[DISABLE]
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
<h1 style={{ fontFamily: 'var(--font-heading)', color: 'var(--color-text)', fontSize: '1.8rem', marginBottom: '0.5rem' }}>FORUM MODERATION</h1>
|
||||||
|
<p style={{ fontFamily: 'var(--font-mono)', color: 'var(--color-text-muted)', fontSize: '0.78rem' }}>
|
||||||
|
{threads.length} threads — {replies.length} replies
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Tabs */}
|
{/* Tabs */}
|
||||||
@@ -275,7 +226,5 @@ export default function IntranetModeration() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user