mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-07 15:41:02 +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.setStatus(post.getStatus());
|
||||
dto.setPinnedAt(post.getPinnedAt());
|
||||
dto.setRssExcluded(post.isRssExcluded());
|
||||
dto.setRssExcluded(post.getRssExcluded() == null || post.getRssExcluded());
|
||||
|
||||
List<ReactionDto> reactions = reactionService.getReactionsForPost(post.getId())
|
||||
.stream()
|
||||
|
||||
@@ -67,7 +67,6 @@ public class Post {
|
||||
@Column
|
||||
private LocalDateTime pinnedAt;
|
||||
|
||||
@Column(nullable = false)
|
||||
private boolean rssExcluded = false;
|
||||
|
||||
@Column(nullable = true)
|
||||
private Boolean rssExcluded = true;
|
||||
}
|
||||
|
||||
@@ -385,7 +385,22 @@ onMounted(async () => {
|
||||
}
|
||||
|
||||
.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) {
|
||||
@@ -404,5 +419,9 @@ onMounted(async () => {
|
||||
.logo-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header-content-right {
|
||||
gap: 15px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -358,9 +358,9 @@ const articleMenuItems = computed(() => {
|
||||
items.push({ text: '置顶', onClick: () => pinPost() })
|
||||
}
|
||||
if (rssExcluded.value) {
|
||||
items.push({ text: '取消rss不推荐', onClick: () => includeRss() })
|
||||
items.push({ text: 'rss推荐', onClick: () => includeRss() })
|
||||
} else {
|
||||
items.push({ text: 'rss不推荐', onClick: () => excludeRss() })
|
||||
items.push({ text: '取消rss推荐', onClick: () => excludeRss() })
|
||||
}
|
||||
}
|
||||
if (isAdmin.value && status.value === 'PENDING') {
|
||||
@@ -676,7 +676,7 @@ const includeRss = async () => {
|
||||
})
|
||||
if (res.ok) {
|
||||
rssExcluded.value = false
|
||||
toast.success('已取消rss不推荐')
|
||||
toast.success('已标记为rss推荐')
|
||||
} else {
|
||||
toast.error('操作失败')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user