Skip to content

Commit fd4d992

Browse files
authored
Merge pull request #8 from yyyCode/dev
fix: forum GET 权限放行 + 公告按钮移至右侧工具栏
2 parents 7c3a590 + c4a0c76 commit fd4d992

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

OpenBlog-business/src/main/java/com/yqz/openblog/security/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
7575
// Public articles/comments
7676
.requestMatchers(HttpMethod.GET, "/api/v1/articles/**").permitAll()
7777
.requestMatchers(HttpMethod.GET, "/api/v1/media/**").permitAll()
78+
// Public forum
79+
.requestMatchers(HttpMethod.GET, "/api/v1/forum/**").permitAll()
7880
// Other write operations require auth
7981
.anyRequest().authenticated()
8082
)

vue/src/components/BlogHeader.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@
7474
反馈
7575
</router-link>
7676

77-
<a href="#" class="site-nav-link site-nav-link-sm-hide">
78-
<span class="site-nav-ico" aria-hidden="true">
79-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
80-
<path d="M13 3v18" />
81-
<path d="M7 8h10l-3 5 3 5H7" />
82-
</svg>
83-
</span>
84-
公告
85-
</a>
86-
8777
<a
8878
class="site-nav-link site-nav-link-sm-hide"
8979
:href="(siteConfig && siteConfig.source_code_url) || 'https://github.com/yyyCode/OpenBlog.git'"

vue/src/components/RightDock.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
<span class="right-dock-ico" aria-hidden="true">{{ isDark ? '☀' : '☽' }}</span>
1515
<span class="right-dock-text">{{ isDark ? '浅色' : '深色' }}</span>
1616
</button>
17+
18+
<button type="button" class="right-dock-btn" aria-label="公告">
19+
<span class="right-dock-ico" aria-hidden="true">
20+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
21+
<path d="M13 3v18" />
22+
<path d="M7 8h10l-3 5 3 5H7" />
23+
</svg>
24+
</span>
25+
<span class="right-dock-text">公告</span>
26+
</button>
1727
</div>
1828
</template>
1929

0 commit comments

Comments
 (0)