Skip to content

Commit 9e7d213

Browse files
committed
fix: change texts
1 parent d4519ba commit 9e7d213

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

src/components/header/user-repos.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const filteredRepos = computed(() => {
9696
if (!filters.templates) result = result.filter((repo) => !repo.is_template);
9797
if (!filters.searchQuery) return result;
9898
return result.filter((repo) => {
99-
const name = settings.value.showOwner ? repo.full_name : repo.name;
99+
const name = settings.value.displayOwner ? repo.full_name : repo.name;
100100
return new RegExp(filters.searchQuery, "i").test(name);
101101
});
102102
});

src/components/modals/settings-modal.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
</button>
1919
</fieldset>
2020
<fieldset>
21-
<legend>Appearance</legend>
21+
<legend>Interface</legend>
2222
<label>
23-
<input v-model="form.showOwner" name="showOwner" type="checkbox">
24-
Show repository owner
23+
<input v-model="form.displayOwner" name="displayOwner" type="checkbox">
24+
Display repository owner
2525
</label>
2626
<label>
27-
<input v-model="form.showBadges" name="showBadges" type="checkbox">
28-
Show badges
27+
<input v-model="form.displayBadges" name="displayBadges" type="checkbox">
28+
Display badges
2929
</label>
3030
<input-select v-model="form.theme" name="theme" :items="themes" label="theme:" />
3131
</fieldset>

src/components/repo-item.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
{{ license ?? "N/A" }}
7171
</span>
7272
</div>
73-
<div v-if="settings.showBadges && hasBadges">
73+
<div v-if="settings.displayBadges && hasBadges">
7474
<img v-if="hostingStatusBadge" :src="hostingStatusBadge" alt="hosting status">
7575
<img v-if="uptimerobotBadge" :src="uptimerobotBadge" alt="uptimerobot ratio">
7676
<img v-if="workflowBadge" :src="workflowBadge" alt="workflow badge">
@@ -110,7 +110,7 @@ const { settings } = useSettingsStore();
110110
// Watch deep changes
111111
const repo = computed(() => props.repo);
112112
const repoName = computed<string>(() => {
113-
const name = settings.value.showOwner ? repo.value.full_name : repo.value.name;
113+
const name = settings.value.displayOwner ? repo.value.full_name : repo.value.name;
114114
if (!props.query) return name;
115115
return name.replace(new RegExp(props.query, "gi"), (match) => `<mark>${match}</mark>`);
116116
});

src/store/settings.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ type Theme = "github" | "blue" | "beige" | "green" | "red";
55
interface SettingsStore {
66
authToken: string
77
username: string
8-
showOwner: boolean
9-
showBadges: boolean
8+
displayOwner: boolean
9+
displayBadges: boolean
1010
theme: Theme
1111
}
1212

1313
const DEFAULT_STORE: SettingsStore = {
1414
authToken: "",
1515
username: "",
16-
showOwner: true,
17-
showBadges: true,
16+
displayOwner: true,
17+
displayBadges: true,
1818
theme: "github"
1919
};
2020

src/views/DependenciesView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<th />
2121
<th v-for="repo in repos" :key="repo.id">
2222
<a :href="repo.html_url" target="_blank">
23-
{{ settings.showOwner ? repo.full_name : repo.name }}
23+
{{ settings.displayOwner ? repo.full_name : repo.name }}
2424
</a>
2525
</th>
2626
</tr>

src/views/RepositoriesView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const searchQuery = refDebounced(searchQueryInput, 300);
4747
const filteredItems = computed(() => {
4848
if (!searchQuery.value) return repositories.value;
4949
return repositories.value.filter((repo) => {
50-
const name = settings.value.showOwner ? repo.full_name : repo.name;
50+
const name = settings.value.displayOwner ? repo.full_name : repo.name;
5151
return new RegExp(searchQuery.value, "i").test(name);
5252
});
5353
});

0 commit comments

Comments
 (0)