Add map community reactions, comments, and moderation
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m22s

This commit is contained in:
2026-10-17 12:45:18 +05:00
parent 0bd05d6e0b
commit e1a6ab5730
17 changed files with 1747 additions and 0 deletions

37
app/community-social.css Normal file
View File

@@ -0,0 +1,37 @@
.map-community {
margin-top: 36px;
}
.map-community .button,
.map-comment .button {
display: inline-flex;
align-items: center;
gap: 8px;
}
.map-community .button[aria-pressed="true"] {
border-color: var(--green);
background: var(--panel2);
color: var(--green);
}
.map-comments {
margin-block: 24px;
}
.map-comment {
border-top: 1px solid var(--line);
padding-block: 20px;
}
.map-comment-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px 16px;
}
.map-comment-meta time {
font-size: 12px;
}
.community-body {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.map-community textarea {
min-height: 100px;
}

View File

@@ -18,6 +18,7 @@ import "./multiplayer.css";
import "./support.css";
import "./appearance.css";
import "./community.css";
import "./community-social.css";
import { themeInitScript } from "@/shared/theme";
import { SiteSettingsProvider } from "@/components/SiteSettingsProvider";
import { initialSiteSettings } from "@/lib/site-settings";

View File

@@ -10,6 +10,7 @@ import { ReportContent } from "@/components/ReportContent";
import { user } from "@/lib/supabase";
import { accountProfile } from "@/lib/profile";
import { ExportMap } from "@/components/MapTransfer";
import { MapCommunity } from "@/components/MapCommunity";
export default async function ServerPage({
params,
}: {
@@ -74,6 +75,7 @@ export default async function ServerPage({
serverAddress={map.contribution_server_address}
/>
)}
<MapCommunity datasetId={id} ownerId={map.owner_id} />
</main>
<Footer />
</>