Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

chore: reduce bundle size#1371

Merged
mydearxym merged 2 commits intodevfromanalysis-bundle-size
Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modifieddeploy/production/web.tar.gz
View file
Open in desktop
Binary file not shown.
2 changes: 1 addition & 1 deletionpackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "coderplanets_web",
"version": "1.0.5",
"version": "1.0.6",
"license": "Apache License 2.0",
"scripts": {
"dev": "cross-env NODE_ENV=dev next dev",
Expand Down
49 changes: 20 additions & 29 deletionssrc/containers/content/CommunityContent/ThreadContent.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,43 @@
import { FC, memo } from 'react'
import dynamic from 'next/dynamic'

import type { TThread } from '@/spec'
import { THREAD } from '@/constant'

import { LavaLampLoading } from '@/widgets/Loading'

import ArticlesThread from '@/containers//thread/ArticlesThread'
import KanbanThread from '@/containers//thread/KanbanThread'
import ChangeThread from '@/containers//thread/ChangelogThread'
// import ReposThread from '@/containers/thread/ReposThread'
import CperMapThread from '@/containers/thread/CperMapThread'
// import CperMapThread from '@/containers/thread/CperMapThread'
// import WipThread from './WipThread'
import AboutThread from '@/containers/thread/AboutThread'
import HelpThread from '@/containers/thread/HelpThread'
import DashboardThread from '@/containers/thread/DashboardThread'
//import DashboardThread from '@/containers/thread/DashboardThread'

import WipThread from './WipThread'
const DashboardThread = dynamic(
() => import('@/containers/thread/DashboardThread'),
{
/* eslint-disable react/display-name */
loading: () => <LavaLampLoading />,
ssr: false,
},
)

type TProps = {
thread: TThread
}

const ThreadContent: FC<TProps> = ({ thread }) => {
switch (thread) {
case THREAD.INTERVIEW: {
return <WipThread title="开发者访谈" />
}

case THREAD.TEAM: {
return <WipThread title="团队" />
}
// case THREAD.CPER: {
// return <CperMapThread />
// }

case THREAD.PRODUCT: {
return <WipThread title="作品展示" />
}

case THREAD.GUIDE: {
return <WipThread title="酷导航" />
}

case THREAD.ACCOUNT: {
return <WipThread title="违规账户信息" />
}

case THREAD.CPER: {
return <CperMapThread />
}

case THREAD.MAP: {
return <CperMapThread />
}
// case THREAD.MAP: {
// return <CperMapThread />
// }

case THREAD.ABOUT: {
return <AboutThread />
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,9 +3,9 @@ import { contains } from 'ramda'

import type { TCommunity } from '@/spec'
import { ICON_CMD } from '@/config'
import {HCN,NON_FILL_COMMUNITY } from '@/constant'
import { NON_FILL_COMMUNITY } from '@/constant'

import CommunityJoinSign from '@/widgets/CommunityJoinSign'
//import CommunityJoinSign from '@/widgets/CommunityJoinSign'

import {
Wrapper,
Expand All@@ -17,7 +17,7 @@ import {
TitleText,
LogoHolder,
} from '../styles/simple_layout/community_brief'
import { subscribeCommunity, unsubscribeCommunity } from '../logic'
//import { subscribeCommunity, unsubscribeCommunity } from '../logic'

const CommunityLogoHolder = `${ICON_CMD}/community_logo_holder.svg`

Expand All@@ -43,13 +43,6 @@ const CommunityBrief: FC<TProps> = ({ community }) => {
<TitleWrapper>
<Title>
<TitleText>{community.title}</TitleText>
{community.raw !== HCN && (
<CommunityJoinSign
onFollow={() => subscribeCommunity(community.id)}
onUndoFollow={() => unsubscribeCommunity(community.id)}
hasFollowed={community.viewerHasSubscribed}
/>
)}
</Title>
</TitleWrapper>
</CommunityInfo>
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp