Skip to content

Commit dd0775e

Browse files
committed
Add logo and update app branding
- Add logo image to TitleBar from GitHub repository - Update Content Security Policy to allow logo image source - Rename app title to "Mine Knowledge MMA" in locales - Bump version to 1.0.2 in English and Traditional Chinese locales
1 parent 71ab8c1 commit dd0775e

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2+
## [1.0.2] - 2025-02-18
3+
4+
- Add logo and update app branding
5+
- Add logo image to TitleBar from GitHub repository
6+
- Update Content Security Policy to allow logo image source
7+
- Rename app title to "Mine Knowledge MMA" in locales
8+
- Bump version to 1.0.2 in English and Traditional Chinese locales
9+
10+
111
## [1.0.1] - 2025-02-18
212

313
### Added

src/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function createWindow() {
7878
...details.responseHeaders,
7979
'Content-Security-Policy': [
8080
"default-src 'self' 'unsafe-inline' 'unsafe-eval'",
81-
"img-src 'self' file: data: blob: filesystem: http://localhost:*",
81+
"img-src 'self' file: data: blob: filesystem: http://localhost:* https://raw.githubusercontent.com",
8282
"media-src 'self' file: data: blob:",
8383
"connect-src 'self' http://localhost:* https://raw.githubusercontent.com",
8484
"script-src 'self' 'unsafe-inline' 'unsafe-eval'",

src/renderer/components/TitleBar.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="title-bar">
33
<div class="title-bar-left">
4+
<img src="https://raw.githubusercontent.com/yeongpin/mine-knowledge-mma/refs/heads/main/src/assets/icon.png" alt="logo" class="logo" style="width: 24px; height: 24px;">
45
<span class="title">{{ $t('app.title') }} v{{ $t('app.version') }}</span>
56
</div>
67
<div class="title-bar-right">
@@ -274,6 +275,12 @@ defineEmits(['create-repo', 'import-folder', 'import-markdown'])
274275
</script>
275276
276277
<style scoped>
278+
.logo {
279+
width: 24px;
280+
height: 24px;
281+
margin-right: 8px;
282+
}
283+
277284
.title-bar {
278285
-webkit-app-region: drag;
279286
height: 32px;

src/renderer/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta http-equiv="Content-Security-Policy" content="
88
default-src 'self' data: 'unsafe-inline' 'unsafe-eval';
9-
img-src 'self' file: data: blob: filesystem: http://localhost:*;
9+
img-src 'self' file: data: blob: filesystem: http://localhost:* https://raw.githubusercontent.com;
1010
media-src 'self' file: data: blob:;
1111
script-src 'self' 'unsafe-inline' 'unsafe-eval';
1212
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;

src/renderer/locales/en.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
app: {
3-
title: 'Personal Knowledge Base',
4-
version: '1.0.0',
3+
title: 'Mine Knowledge MMA',
4+
version: '1.0.2',
55
newNote: 'New Note'
66
},
77
menu: {

src/renderer/locales/zh-TW.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
app: {
3-
title: '個人知識庫',
4-
version: '1.0.0',
3+
title: '我的 MMA 知識庫',
4+
version: '1.0.2',
55
newNote: '新建筆記'
66
},
77
menu: {

0 commit comments

Comments
 (0)