Skip to content

Commit

Permalink
Remove info scraped from wiki.
Browse files Browse the repository at this point in the history
  • Loading branch information
vikpe committed May 28, 2024
1 parent 7b2139a commit d72b2d5
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 234 deletions.
45 changes: 0 additions & 45 deletions src/Events.jsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/ForumPosts.jsx

This file was deleted.

83 changes: 0 additions & 83 deletions src/GamesInSpotlight.jsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/News.jsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/WikiRecentChanges.jsx

This file was deleted.

25 changes: 0 additions & 25 deletions src/pages/servers/App.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import Events from "@qwhub/Events";
import ForumPosts from "@qwhub/ForumPosts";
import GamesInSpotlight from "@qwhub/GamesInSpotlight";
import News from "@qwhub/News";
import { AllStreams } from "@qwhub/Streams";
import WikiRecentChanges from "@qwhub/WikiRecentChanges";
import Servers, { ServerPoller } from "@qwhub/servers/Servers";
import { HorizontalSeparator } from "@qwhub/site/Common";
import { SiteFooter } from "@qwhub/site/Footer";
Expand All @@ -25,26 +20,6 @@ export const App = () => {

<div className="md:grid md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 3xl:block 3xl:w-96 gap-x-4">
<AllStreams />
<GamesInSpotlight />
<Events />
<div className="3xl:hidden">
<News />
</div>
<div className="3xl:hidden">
<ForumPosts />
</div>
<div className="3xl:hidden">
<WikiRecentChanges />
</div>
</div>
</div>

<div className="hidden 3xl:block">
<HorizontalSeparator />
<div className="3xl:grid 3xl:grid-cols-4 gap-x-4">
<News />
<ForumPosts />
<WikiRecentChanges />
</div>
</div>

Expand Down
12 changes: 0 additions & 12 deletions src/services/hub/hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export const hubApi = createApi({
query: () => "demos",
transformResponse: transformDemos,
}),
getEvents: build.query({ query: () => "events" }),
getForumPosts: build.query({ query: () => "forum_posts" }),
getGamesInSpotlight: build.query({ query: () => "games_in_spotlight" }),
getNews: build.query({ query: () => "news" }),
getServer: build.query({
query: (address) => `servers/${address}`,
transformResponse: (server) => transformServer(server),
Expand Down Expand Up @@ -42,21 +38,13 @@ export const hubApi = createApi({
return lastscores.filter((e) => e.teams.length + e.players.length > 0);
},
}),
getWikiRecentChanges: build.query({
query: () => "wiki_recent_changes",
}),
}),
});

export const {
useGetDemosQuery,
useGetEventsQuery,
useGetForumPostsQuery,
useGetGamesInSpotlightQuery,
useGetNewsQuery,
useGetServerQuery,
useGetServersQuery,
useGetStreamsQuery,
useGetLastscoresQuery,
useGetWikiRecentChangesQuery,
} = hubApi;

0 comments on commit d72b2d5

Please sign in to comment.