Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// Public articles/comments
.requestMatchers(HttpMethod.GET, "/api/v1/articles/**").permitAll()
.requestMatchers(HttpMethod.GET, "/api/v1/media/**").permitAll()
// Public forum
.requestMatchers(HttpMethod.GET, "/api/v1/forum/**").permitAll()
// Other write operations require auth
.anyRequest().authenticated()
)
Expand Down
10 changes: 0 additions & 10 deletions vue/src/components/BlogHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@
反馈
</router-link>

<a href="#" class="site-nav-link site-nav-link-sm-hide">
<span class="site-nav-ico" aria-hidden="true">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M13 3v18" />
<path d="M7 8h10l-3 5 3 5H7" />
</svg>
</span>
公告
</a>

<a
class="site-nav-link site-nav-link-sm-hide"
:href="(siteConfig && siteConfig.source_code_url) || 'https://github.com/yyyCode/OpenBlog.git'"
Expand Down
10 changes: 10 additions & 0 deletions vue/src/components/RightDock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
<span class="right-dock-ico" aria-hidden="true">{{ isDark ? '☀' : '☽' }}</span>
<span class="right-dock-text">{{ isDark ? '浅色' : '深色' }}</span>
</button>

<button type="button" class="right-dock-btn" aria-label="公告">
<span class="right-dock-ico" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M13 3v18" />
<path d="M7 8h10l-3 5 3 5H7" />
</svg>
</span>
<span class="right-dock-text">公告</span>
</button>
</div>
</template>

Expand Down