Skip to content

Commit

Permalink
feat: remove heading from settings ui
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodbyeNJN committed Jun 12, 2024
1 parent 7bf25bd commit 3f94e07
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Lang } from "./types";
export const EN: Lang = {
"command:format-content-name": "Format all content",
"command:format-selection-name": "Format selected content",
"setting:title": "Prettier",
"setting:format-on-save-name": "Format on save",
"setting:format-on-save-description": "Format the current content when saving the file.",
"setting:format-code-block-name": "Format code blocks",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export interface Lang {
"command:format-content-name": string;
"command:format-selection-name": string;
"setting:title": string;
"setting:format-on-save-name": string;
"setting:format-on-save-description": string;
"setting:format-code-block-name": string;
Expand Down
1 change: 0 additions & 1 deletion src/i18n/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Lang } from "./types";
export const ZH_CN: Lang = {
"command:format-content-name": "格式化全部内容",
"command:format-selection-name": "格式化选定内容",
"setting:title": "Prettier",
"setting:format-on-save-name": "保存时格式化",
"setting:format-on-save-description": "保存文件时是否格式化当前内容。",
"setting:format-code-block-name": "格式化代码块",
Expand Down
5 changes: 0 additions & 5 deletions src/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class SettingsTab extends PluginSettingTab {

containerEl.empty();

this.addTitle(containerEl);
this.addFormatOnSave(containerEl);
this.addFormatCodeBlock(containerEl);
this.addRemoveExtraSpaces(containerEl);
Expand All @@ -45,10 +44,6 @@ export class SettingsTab extends PluginSettingTab {
this.addResetButton(containerEl);
}

private addTitle(containerEl: HTMLElement) {
new Setting(containerEl).setName(fmt("setting:title")).setHeading();
}

private addFormatOnSave(containerEl: HTMLElement) {
new Setting(containerEl)
.setName(fmt("setting:format-on-save-name"))
Expand Down

0 comments on commit 3f94e07

Please sign in to comment.