Skip to content

Commit 47a6759

Browse files
authored
Making some changes for Plugin Approval (#10)
1 parent 61cd28a commit 47a6759

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.0.5 Apr 26, 2024
2+
- Removed heading from Plugin settings page
3+
- Removed unnecessary CSS code
14
### 1.0.4
25
- Abstracting css out to styles.css
36
### 1.0.3

main.ts

-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default class LinkMagicPlugin extends Plugin {
99
settings: PluginSettings;
1010

1111
async onload() {
12-
console.log('Loading plugin')
1312
await this.loadSettings();
1413

1514
this.addSettingTab(new SettingTab(this.app, this));
@@ -111,13 +110,11 @@ class SettingTab extends PluginSettingTab {
111110
const { containerEl } = this;
112111

113112
containerEl.empty();
114-
containerEl.createEl("h2", { text: "LinkMagic Settings", cls: "default__margin" });
115113

116114
let settingName = ""
117115
new Setting(containerEl)
118116
.setName('Add a new rule')
119117
.addText((text) => {
120-
text.inputEl.classList.add("default__margin")
121118
text.setPlaceholder("Rule Name").onChange((value) => {
122119
settingName = value;
123120
});
@@ -142,7 +139,6 @@ class SettingTab extends PluginSettingTab {
142139
new Setting(containerEl)
143140
.setName(key)
144141
.addText((text) => {
145-
text.inputEl.classList.add("default__margin")
146142
text
147143
.setPlaceholder("Pattern")
148144
.setValue(this.plugin.settings[key].pattern)
@@ -152,7 +148,6 @@ class SettingTab extends PluginSettingTab {
152148
});
153149
})
154150
.addText((text) => {
155-
text.inputEl.classList.add("default__margin")
156151
text
157152
.setPlaceholder("Link")
158153
.setValue(this.plugin.settings[key].link)

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "link-magic",
33
"name": "LinkMagic",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"minAppVersion": "0.15.0",
66
"description": "Automatically adds links to defined regex.",
77
"author": "Andrew Reifman",

styles.css

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ available in the app when your plugin is enabled.
55
66
If your plugin does not need CSS, delete this file.
77
8-
*/
9-
.default__margin {
10-
margin-right: 6px;
11-
}
8+
*/

0 commit comments

Comments
 (0)