diff --git a/.editorconfig b/.editorconfig index 84b8a66..81f3ec3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,10 +1,10 @@ -# top-most EditorConfig file -root = true - -[*] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -indent_style = tab -indent_size = 4 -tab_width = 4 +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = tab +indent_size = 4 +tab_width = 4 diff --git a/.gitignore b/.gitignore index 0dd18bf..ce3707b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,23 @@ -# vscode -.vscode - -# Intellij -*.iml -.idea - -# npm -node_modules - -# Don't include the compiled main.js file in the repo. -# They should be uploaded to GitHub releases instead. -main.js -main.css - -# Exclude sourcemaps -*.map - -# obsidian -data.json - -# Exclude macOS Finder (System Explorer) View States -.DS_Store +# vscode +.vscode + +# Intellij +*.iml +.idea + +# npm +node_modules + +# Don't include the compiled main.js file in the repo. +# They should be uploaded to GitHub releases instead. +main.js +main.css + +# Exclude sourcemaps +*.map + +# obsidian +data.json + +# Exclude macOS Finder (System Explorer) View States +.DS_Store diff --git a/main.ts b/main.ts index 6fae40c..02e7a71 100644 --- a/main.ts +++ b/main.ts @@ -41,7 +41,7 @@ export default class CSVPlugin extends Plugin { async onload() { await this.loadSettings(); // window에서 독립적으로 실행할 함수들. - (window as any).csvTable = CSVTable; + (window as any).CSVTable = CSVTable; // This adds a settings tab so the user can configure various aspects of the plugin this.addSettingTab(new CSVSettingTab(this.app, this)); diff --git a/src/csvCreator.ts b/src/CSVCreator.ts similarity index 97% rename from src/csvCreator.ts rename to src/CSVCreator.ts index 0f9185c..f74c833 100644 --- a/src/csvCreator.ts +++ b/src/CSVCreator.ts @@ -170,7 +170,8 @@ export default class CSVCreateModal extends Modal { onOpen() { let {contentEl} = this; contentEl.createEl('h2', {text: 'Create CSV Table'}); - contentEl.createEl('hr'); + let hr1 = contentEl.createEl('hr'); + hr1.classList.add('horizon-line'); // file setting let filenameContainer = contentEl.createEl('div'); @@ -212,7 +213,8 @@ export default class CSVCreateModal extends Modal { this.columnsWrapper.classList.add('columns-wrapper'); // submit button - contentEl.createEl('hr'); + let hr2 = contentEl.createEl('hr'); + hr2.classList.add('horizon-line'); let buttonEl = contentEl.createEl('button', {text: 'Create'}); buttonEl.addEventListener('click', () => { event?.preventDefault(); diff --git a/src/csvExplorer.ts b/src/CSVExplorer.ts similarity index 89% rename from src/csvExplorer.ts rename to src/CSVExplorer.ts index c0561cd..d728f3e 100644 --- a/src/csvExplorer.ts +++ b/src/CSVExplorer.ts @@ -28,7 +28,7 @@ export default class CSVExplorerModal extends Modal { constructor(app: App, CSVStructure: Record) { super(app); - this.csvStructure = CSVStructure; + this.CSVStructure = CSVStructure; } onOpen() { @@ -37,9 +37,9 @@ export default class CSVExplorerModal extends Modal { contentEl.createEl("h2", { text: "CSV Explorer" }); - Object.keys(this.csvStructure).forEach((folder) => { + Object.keys(this.CSVStructure).forEach((folder) => { contentEl.createEl("h3", { text: folder }); - this.csvStructure[folder].forEach((file) => { + this.CSVStructure[folder].forEach((file) => { contentEl.createEl("p", { text: file }); }); }); diff --git a/src/csvFilemanager.ts b/src/CSVFilemanager.ts similarity index 100% rename from src/csvFilemanager.ts rename to src/CSVFilemanager.ts diff --git a/src/csvPlugin.ts b/src/CSVPlugin.ts similarity index 100% rename from src/csvPlugin.ts rename to src/CSVPlugin.ts diff --git a/src/styles/csvCreator.css b/src/styles/CSVCreator.css similarity index 99% rename from src/styles/csvCreator.css rename to src/styles/CSVCreator.css index ce3317e..1d21b12 100644 --- a/src/styles/csvCreator.css +++ b/src/styles/CSVCreator.css @@ -30,7 +30,7 @@ background-color: var(--background-secondary); } -hr { +.horizon-line { margin: 5px 0; border: 0; width: 100%; diff --git a/src/styles/csvPlugin.css b/src/styles/CSVPlugin.css similarity index 100% rename from src/styles/csvPlugin.css rename to src/styles/CSVPlugin.css