Skip to content

Commit

Permalink
remove useless codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Benature committed Jan 25, 2024
1 parent 63d978e commit a0cbeac
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Changelog

## 0.0.4
- [updated] add description about setting
- [updated] format and remove redundant codes

## 0.0.3
- [feature] Icon preview in setting tab
- [fix] Add refresh button to ensure new css

## v0.0.2
## 0.0.2
- [updated] Rather than generate css file in `.obsidian/snippets/`, directly overwrite the plugin's `styles.css` file.

## v0.0.1
## 0.0.1
- [feature] Basic feature: change metadata icon.
9 changes: 2 additions & 7 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,10 @@ export interface IconAttrSetting {
}

interface MetadataIconSettings {
enableSnippet: boolean;
propertiesVisible: string;
propertiesInvisible: string;
IconAttrList: Array<IconAttrSetting>;
}

const DEFAULT_SETTINGS: MetadataIconSettings = {
enableSnippet: true,
propertiesVisible: "",
propertiesInvisible: "",
IconAttrList: [],
}

Expand Down Expand Up @@ -115,7 +109,7 @@ class MetadataHiderSettingTab extends PluginSettingTab {

new Setting(containerEl)
.setName("Add custom entry icon")
.setDesc("Input entry name and icon url.")
.setDesc("Input entry name and icon url. The image will be loaded on the left side. If there is no image shown on the left side, please check the image url.")
.addButton((button: ButtonComponent) => {
button.setTooltip("Add new request")
.setButtonText("+")
Expand Down Expand Up @@ -166,6 +160,7 @@ class MetadataHiderSettingTab extends PluginSettingTab {

new Setting(containerEl)
.setName("Force Refresh CSS")
.setDesc(`Note: The "icon preview" in the setting tab is automatically loaded, which is not related to this button.`)
.addButton((button: ButtonComponent) => {
button.setTooltip("Add new request")
.setButtonText("Refresh")
Expand Down
11 changes: 11 additions & 0 deletions manifest-beta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "metadata-icon",
"name": "Metadata Icon",
"version": "0.0.4",
"minAppVersion": "0.15.0",
"description": "Change metadata entry icon",
"author": "Benature",
"authorUrl": "https://github.com/Benature",
"fundingUrl": "https://www.buymeacoffee.com/benature",
"isDesktopOnly": false
}

0 comments on commit a0cbeac

Please sign in to comment.