Skip to content

Commit 9ae1eea

Browse files
committed
chore: bump version to 1.1.1 and fix date input validation styles
1 parent 71e8a27 commit 9ae1eea

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "wordpress-reloaded",
33
"name": "WordPress Reloaded",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"minAppVersion": "1.1.1",
66
"description": "A plugin for publishing Obsidian documents to WordPress. Seamlessly sync your notes to WordPress blogs, supporting Markdown formatting, images, and custom publishing options. Maintain your content workflow within Obsidian while sharing with your WordPress audience.forked from https://github.com/devbean/obsidian-wordpress",
77
"author": "bugparty",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-wordpress-reloaded",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A plugin for publishing Obsidian documents to WordPress. Seamlessly sync your notes to WordPress blogs, supporting Markdown formatting, images, and custom publishing options. Maintain your content workflow within Obsidian while sharing with your WordPress audience.forked from https://github.com/devbean/obsidian-wordpress",
55
"main": "main.js",
66
"scripts": {

src/wp-publish-modal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ export class WpPublishModal extends AbstractModal {
147147
this.dateInputMask.on('accept', () => {
148148
if (this.dateInputMask) {
149149
if (this.dateInputMask.masked.isComplete) {
150-
text.inputEl.style.borderColor = '';
150+
text.inputEl.classList.remove('obsidian-wordpress-reloaded-date-input-invalid');
151151
params.datetime = this.dateInputMask.typedValue;
152152
} else {
153-
text.inputEl.style.borderColor = 'red';
153+
text.inputEl.classList.add('obsidian-wordpress-reloaded-date-input-invalid');
154154
}
155155
}
156156
});

styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
.modal-header h1 {
88
margin: 0;
99
}
10+
11+
.obsidian-wordpress-reloaded-date-input-invalid {
12+
border-color: var(--text-error) !important;
13+
}

0 commit comments

Comments
 (0)