Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tag): retire unused tag management features #4945

Merged
merged 6 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
136 changes: 0 additions & 136 deletions lang/default.json

Large diffs are not rendered by default.

136 changes: 0 additions & 136 deletions lang/en.json

Large diffs are not rendered by default.

136 changes: 0 additions & 136 deletions lang/zh-Hans.json

Large diffs are not rendered by default.

136 changes: 0 additions & 136 deletions lang/zh-Hant.json

Large diffs are not rendered by default.

28 changes: 2 additions & 26 deletions src/common/enums/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,42 +87,18 @@ export const OAUTH_SCOPE_TREE = {
zh_hant: '管理個人資料、標籤、評論、封鎖、追蹤等',
zh_hans: '管理个人资料、标签、评论、封锁、关注等',
},
toggleSubscribeArticle: {
toggleBookmarkArticle: {
_t: {
zh_hant: '收藏作品',
zh_hans: '收藏作品',
},
},
toggleFollowTag: {
toggleBookmarkTag: {
_t: {
zh_hant: '追蹤標籤',
zh_hans: '关注标签',
},
},
updateTagSetting: {
_t: {
zh_hant: '管理標籤',
zh_hans: '管理标签',
},
},
addArticlesTags: {
_t: {
zh_hant: '添加作品到標籤',
zh_hans: '添加作品到标签',
},
},
updateArticlesTags: {
_t: {
zh_hant: '管理標籤作品',
zh_hans: '管理标签作品',
},
},
deleteArticlesTags: {
_t: {
zh_hant: '移除標籤作品',
zh_hans: '移除标签作品',
},
},
togglePinComment: {
_t: {
zh_hant: '精选評論',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const ARCHIVE_ARTICLE = gql`
editArticle(input: { id: $id, state: archived }) {
id
articleState: state
sticky
}
}
`
Expand Down Expand Up @@ -52,7 +51,6 @@ const ArchiveArticleDialog = ({
editArticle: {
id: article.id,
articleState: 'archived' as any,
sticky: false,
__typename: 'Article',
},
},
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions src/components/ArticleDigest/DropdownActions/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import ArchiveArticle from './ArchiveArticle'
import EditButton from './EditButton'
import ExtendButton from './ExtendButton'
import PinButton from './PinButton'
import RemoveTagButton from './RemoveTagButton'
import SetTagSelectedButton from './SetTagSelectedButton'
import SetTagUnselectedButton from './SetTagUnselectedButton'

export const fragments = {
article: gql`
Expand All @@ -23,19 +20,13 @@ export const fragments = {
...ArchiveArticleArticle
...PinButtonArticle
...ExtendButtonArticle
...RemoveTagButtonArticle
...EditArticleButtonArticle
...SetTagSelectedButtonArticle
...SetTagUnselectedButtonArticle
}
${AppreciatorsDialog.fragments.article}
${SupportersDialog.fragments.article}
${PinButton.fragments.article}
${ArchiveArticle.fragments.article}
${ExtendButton.fragments.article}
${RemoveTagButton.fragments.article}
${EditButton.fragments.article}
${SetTagSelectedButton.fragments.article}
${SetTagUnselectedButton.fragments.article}
`,
}
Loading
Loading