mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-15 11:30:59 +08:00
Compare commits
5 Commits
codex/adap
...
codex/fix-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e65273daa6 | ||
|
|
d3a2acb605 | ||
|
|
bced24e47d | ||
|
|
425ad03e6f | ||
|
|
4462d8f711 |
@@ -63,7 +63,7 @@ public class PostMapper {
|
|||||||
dto.setCommentCount(commentService.countComments(post.getId()));
|
dto.setCommentCount(commentService.countComments(post.getId()));
|
||||||
dto.setStatus(post.getStatus());
|
dto.setStatus(post.getStatus());
|
||||||
dto.setPinnedAt(post.getPinnedAt());
|
dto.setPinnedAt(post.getPinnedAt());
|
||||||
dto.setRssExcluded(post.isRssExcluded());
|
dto.setRssExcluded(post.getRssExcluded() == null || post.getRssExcluded());
|
||||||
|
|
||||||
List<ReactionDto> reactions = reactionService.getReactionsForPost(post.getId())
|
List<ReactionDto> reactions = reactionService.getReactionsForPost(post.getId())
|
||||||
.stream()
|
.stream()
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ public class Post {
|
|||||||
@Column
|
@Column
|
||||||
private LocalDateTime pinnedAt;
|
private LocalDateTime pinnedAt;
|
||||||
|
|
||||||
@Column(nullable = false)
|
@Column(nullable = true)
|
||||||
private boolean rssExcluded = false;
|
private Boolean rssExcluded = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -385,7 +385,22 @@ onMounted(async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.rss-icon {
|
.rss-icon {
|
||||||
text-shadow: 0 0 10px var(--primary-color);
|
animation: rss-glow 2s 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes rss-glow {
|
||||||
|
0% {
|
||||||
|
text-shadow: 0 0 0px var(--primary-color);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
text-shadow: 0 0 12px var(--primary-color);
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
text-shadow: 0 0 0px var(--primary-color);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1200px) {
|
@media (max-width: 1200px) {
|
||||||
@@ -404,5 +419,9 @@ onMounted(async () => {
|
|||||||
.logo-text {
|
.logo-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-content-right {
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -358,9 +358,9 @@ const articleMenuItems = computed(() => {
|
|||||||
items.push({ text: '置顶', onClick: () => pinPost() })
|
items.push({ text: '置顶', onClick: () => pinPost() })
|
||||||
}
|
}
|
||||||
if (rssExcluded.value) {
|
if (rssExcluded.value) {
|
||||||
items.push({ text: '取消rss不推荐', onClick: () => includeRss() })
|
items.push({ text: 'rss推荐', onClick: () => includeRss() })
|
||||||
} else {
|
} else {
|
||||||
items.push({ text: 'rss不推荐', onClick: () => excludeRss() })
|
items.push({ text: '取消rss推荐', onClick: () => excludeRss() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isAdmin.value && status.value === 'PENDING') {
|
if (isAdmin.value && status.value === 'PENDING') {
|
||||||
@@ -676,7 +676,7 @@ const includeRss = async () => {
|
|||||||
})
|
})
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
rssExcluded.value = false
|
rssExcluded.value = false
|
||||||
toast.success('已取消rss不推荐')
|
toast.success('已标记为rss推荐')
|
||||||
} else {
|
} else {
|
||||||
toast.error('操作失败')
|
toast.error('操作失败')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user