Rebrand plugin as Micropub
This commit is contained in:
parent
8c74bc607b
commit
e0d39e6729
|
@ -1,4 +1,6 @@
|
|||
# Micro.publish
|
||||
# Micropub
|
||||
|
||||
Forked from https://github.com/otaviocc/obsidian-microblog
|
||||
|
||||
Micro.publish is a community maintained plugin for [Obsidian](https://obsidian.md/) to publish notes to a [Micro.blog](https://micro.blog/) blog.
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"id": "microblog-publish-plugin",
|
||||
"name": "Micro.publish",
|
||||
"id": "micropub-publish-plugin",
|
||||
"name": "Micropub",
|
||||
"version": "1.6.0",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Publish notes to Micro.blog",
|
||||
"author": "Otavio Cordeiro",
|
||||
"authorUrl": "https://otavio.cc",
|
||||
"description": "Publish notes to your own site with Micropub",
|
||||
"author": "Inhji",
|
||||
"authorUrl": "https://inhji.de",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
}
|
|
@ -30,8 +30,8 @@ export default class MicroPlugin extends Plugin {
|
|||
this.synchronizationService.fetchTags()
|
||||
|
||||
this.addCommand({
|
||||
id: 'microblog-publish-command',
|
||||
name: 'Post to Micro.blog',
|
||||
id: 'micropub-publish-command',
|
||||
name: 'Post with Micropub',
|
||||
editorCallback: (editor, markdownView) => {
|
||||
if (editor.getValue().trim().length == 0) {
|
||||
new ErrorView(
|
||||
|
@ -49,7 +49,7 @@ export default class MicroPlugin extends Plugin {
|
|||
})
|
||||
|
||||
this.addCommand({
|
||||
id: 'microblog-categories-sync-command',
|
||||
id: 'micropub-categories-sync-command',
|
||||
name: 'Synchronize Categories',
|
||||
callback: () => {
|
||||
this.synchronizationService.fetchTags()
|
||||
|
|
|
@ -95,7 +95,7 @@ export class ViewModelFactory implements ViewModelFactoryInterface {
|
|||
public makeEmptyPostErrorViewModel(): ErrorViewModel {
|
||||
return new ErrorViewModel(
|
||||
"Oops",
|
||||
"Micro.blog doesn't support blank posts. Write something first and try again."
|
||||
"Micropub doesn't support blank posts. Write something first and try again."
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ export class MicroPluginSettingsView extends PluginSettingTab implements MicroPl
|
|||
this.display()
|
||||
|
||||
new Notice(
|
||||
'Micro.blog login succeeded'
|
||||
'Login succeeded'
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ export class MicroPluginSettingsView extends PluginSettingTab implements MicroPl
|
|||
this.display()
|
||||
|
||||
new Notice(
|
||||
'Micro.blog login failed'
|
||||
'Login failed'
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -87,11 +87,11 @@ export class MicroPluginSettingsView extends PluginSettingTab implements MicroPl
|
|||
const { containerEl } = this
|
||||
|
||||
containerEl.empty()
|
||||
containerEl.createEl('h2', { text: 'Micro.publish' })
|
||||
containerEl.createEl('h2', { text: 'Micropub' })
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('App Token')
|
||||
.setDesc('Visit Micro.blog\'s Account page to generate one.')
|
||||
.setDesc('This will be autogenerated in the future.')
|
||||
.addText(text => text
|
||||
.setPlaceholder('Enter app token')
|
||||
.setValue(this.viewModel.appToken)
|
||||
|
@ -141,7 +141,7 @@ export class MicroPluginSettingsView extends PluginSettingTab implements MicroPl
|
|||
const { containerEl } = this
|
||||
|
||||
containerEl.empty()
|
||||
containerEl.createEl('h2', { text: 'Micro.publish' })
|
||||
containerEl.createEl('h2', { text: 'Micropub' })
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Blog')
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"1.6.0": "0.15.0"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue