Apply style guidelines

This commit is contained in:
Otavio Cordeiro 2023-04-05 15:03:33 +02:00
parent 37af7ef22f
commit 604cdb4fc0
5 changed files with 10 additions and 10 deletions

View File

@ -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,

View File

@ -79,7 +79,7 @@ export class ViewModelFactory implements ViewModelFactoryInterface {
!excluding.includes(element)
)
const viewModel = new TagSuggestionViewModel(
const viewModel = new TagSuggestionViewModel(
suggestions
)

View File

@ -2,7 +2,7 @@
* Response of the `/micropub?q=config` network request.
*/
export type ConfigResponse = {
destination?: Array<ConfigDestinationResponse>
destination?: Array<ConfigDestinationResponse>
}
export type ConfigDestinationResponse = {

View File

@ -4,5 +4,5 @@
export type PublishResponse = {
url: string
preview: string
edit: string
edit: string
}

View File

@ -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')