Apply style guidelines
This commit is contained in:
parent
37af7ef22f
commit
604cdb4fc0
|
@ -11,7 +11,7 @@ export interface ServiceFactoryInterface {
|
|||
// to synchronize categories when the plugin is loaded
|
||||
// and when synchronization is triggered via command.
|
||||
makeTagSynchronizationService(
|
||||
delegate?:TagSynchronizationServiceDelegate
|
||||
delegate?: TagSynchronizationServiceDelegate
|
||||
): TagSynchronizationServiceInterface
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ export class ServiceFactory implements ServiceFactoryInterface {
|
|||
// Public
|
||||
|
||||
public makeTagSynchronizationService(
|
||||
delegate?:TagSynchronizationServiceDelegate
|
||||
delegate?: TagSynchronizationServiceDelegate
|
||||
): TagSynchronizationServiceInterface {
|
||||
return new TagSynchronizationService(
|
||||
this.container.plugin,
|
||||
|
|
|
@ -79,7 +79,7 @@ export class ViewModelFactory implements ViewModelFactoryInterface {
|
|||
!excluding.includes(element)
|
||||
)
|
||||
|
||||
const viewModel = new TagSuggestionViewModel(
|
||||
const viewModel = new TagSuggestionViewModel(
|
||||
suggestions
|
||||
)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Response of the `/micropub?q=config` network request.
|
||||
*/
|
||||
export type ConfigResponse = {
|
||||
destination?: Array<ConfigDestinationResponse>
|
||||
destination?: Array<ConfigDestinationResponse>
|
||||
}
|
||||
|
||||
export type ConfigDestinationResponse = {
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
export type PublishResponse = {
|
||||
url: string
|
||||
preview: string
|
||||
edit: string
|
||||
edit: string
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
import { PluginSettingTab, Setting } from 'obsidian'
|
||||
import { MicroPluginSettingsViewModel, MicroPluginSettingsDelegate} from '@views/MicroPluginSettingsViewModel'
|
||||
import { MicroPluginSettingsViewModel, MicroPluginSettingsDelegate } from '@views/MicroPluginSettingsViewModel'
|
||||
import { ConfigResponse } from '@networking/ConfigResponse'
|
||||
|
||||
/*
|
||||
|
@ -68,10 +68,10 @@ export class MicroPluginSettingsView extends PluginSettingTab implements MicroPl
|
|||
// Private
|
||||
|
||||
private makeLoginView() {
|
||||
const {containerEl} = this
|
||||
const { containerEl } = this
|
||||
|
||||
containerEl.empty()
|
||||
containerEl.createEl('h2', {text: 'Micro.publish'})
|
||||
containerEl.createEl('h2', { text: 'Micro.publish' })
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('App Token')
|
||||
|
@ -98,10 +98,10 @@ export class MicroPluginSettingsView extends PluginSettingTab implements MicroPl
|
|||
}
|
||||
|
||||
private makeSettingsView() {
|
||||
const {containerEl} = this
|
||||
const { containerEl } = this
|
||||
|
||||
containerEl.empty()
|
||||
containerEl.createEl('h2', {text: 'Micro.publish'})
|
||||
containerEl.createEl('h2', { text: 'Micro.publish' })
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Blog')
|
||||
|
|
Loading…
Reference in New Issue