Skip to content

Commit

Permalink
[Update] preference info.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 committed Mar 24, 2024
1 parent 06b28e7 commit 991046c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/extension/services/extension-preference-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class ExtensionPreferenceStore<
if (value.type === "options") {
const curValue = this._store.get(key);

console.log(curValue, value);
curValue.options = value.options;
if (curValue.options[curValue.value]) {
curValue.value = curValue.options[0];
Expand Down
10 changes: 6 additions & 4 deletions app/renderer/ui/preference-view/general-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const getCustomRenamingFormatPreview = (customRenamingFormat: string) => {
.replaceAll("{year}", year)
.replaceAll("{lastname}", lastname)
.replaceAll("{firstname}", firstname)
.replaceAll("{publication}", publication);
.replaceAll("{publication}", publication)
.replace(/\\/g, "/");
};
const customRenamingFormat = ref(prefState.customRenamingFormat);
Expand Down Expand Up @@ -166,9 +167,10 @@ const onChangeLanguage = (language: string) => {
v-if="prefState.renamingFormat === 'custom'"
>
ⓘ <b>Avaliable components:</b> title, firstchartitle, author, firstname,
lastname, year, publication <br />
&nbsp;&nbsp;&nbsp; <b>Example:</b> {lastname}{year}-{firstchartitle} -->
he2022-MAE_id.pdf
lastname, year, publication. <br />
&nbsp;&nbsp;&nbsp; Use '/' for hierarchical organisation. <br />
&nbsp;&nbsp;&nbsp; <b>Example:</b> {year}/{firstchartitle} >
2022/MAE_id.pdf
</div>
<div
class="text-xxs text-neutral-600 dark:text-neutral-500 w-[550px] flex pl-3"
Expand Down
1 change: 0 additions & 1 deletion app/renderer/ui/presetting-view/extension-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const defaultExtensions = ref({
const recommandedExtensions = ref({
"@future-scholars/paperlib-ai-summary-extension": "f",
"@future-scholars/paperlib-citation-count-extension": "f",
"@future-scholars/paperlib-preview-extension": "f",
});
const installedExtensions = ref<{
Expand Down

0 comments on commit 991046c

Please sign in to comment.