Skip to content

Commit

Permalink
Making some changes for Plugin Approval (#11)
Browse files Browse the repository at this point in the history
* create 1 file and delete 1 file

* update main.ts

* update CHANGELOG.md, manifest.json and styles.css
  • Loading branch information
AndyReifman authored Apr 26, 2024
1 parent 960280b commit 46b60c6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 51 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/changelog_enforce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Pull Request Workflow"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
# Enforces the update of a changelog file on every pull request
changelog:
runs-on: ubuntu-latest
steps:
- uses: dangoslen/changelog-enforcer@v3
41 changes: 0 additions & 41 deletions .github/workflows/update_changlog.yml

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.0.5 Apr 26, 2024
- Removed heading from Plugin settings page
- Removed unnecessary CSS code
### 1.0.4
- Abstracting css out to styles.css
### 1.0.3
Expand Down
5 changes: 0 additions & 5 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default class LinkMagicPlugin extends Plugin {
settings: PluginSettings;

async onload() {
console.log('Loading plugin')
await this.loadSettings();

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

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

let settingName = ""
new Setting(containerEl)
.setName('Add a new rule')
.addText((text) => {
text.inputEl.classList.add("default__margin")
text.setPlaceholder("Rule Name").onChange((value) => {
settingName = value;
});
Expand All @@ -142,7 +139,6 @@ class SettingTab extends PluginSettingTab {
new Setting(containerEl)
.setName(key)
.addText((text) => {
text.inputEl.classList.add("default__margin")
text
.setPlaceholder("Pattern")
.setValue(this.plugin.settings[key].pattern)
Expand All @@ -152,7 +148,6 @@ class SettingTab extends PluginSettingTab {
});
})
.addText((text) => {
text.inputEl.classList.add("default__margin")
text
.setPlaceholder("Link")
.setValue(this.plugin.settings[key].link)
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "link-magic",
"name": "LinkMagic",
"version": "1.0.4",
"version": "1.0.5",
"minAppVersion": "0.15.0",
"description": "Automatically adds links to defined regex.",
"author": "Andrew Reifman",
Expand Down
5 changes: 1 addition & 4 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.default__margin {
margin-right: 6px;
}
*/

0 comments on commit 46b60c6

Please sign in to comment.