mirror of
https://github.com/hangeol-chang/obsidian-csv-allinone.git
synced 2026-07-22 05:37:25 +00:00
[FIX] hr className, FileName case
This commit is contained in:
parent
fb9de26a36
commit
13c0d485d9
9 changed files with 42 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
46
.gitignore
vendored
46
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
main.ts
2
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));
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
@ -28,7 +28,7 @@ export default class CSVExplorerModal extends Modal {
|
|||
|
||||
constructor(app: App, CSVStructure: Record<string, string[]>) {
|
||||
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 });
|
||||
});
|
||||
});
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
background-color: var(--background-secondary);
|
||||
}
|
||||
|
||||
hr {
|
||||
.horizon-line {
|
||||
margin: 5px 0;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
Loading…
Reference in a new issue