Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfenning92 committed Nov 7, 2023
1 parent b891c18 commit 6f6f1b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions apps/studio/src/services/app.service.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { AbstractService } from "./abstract.service";
import { AbstractService } from './abstract.service';

import { show } from "@ebay/nice-modal-react";
import { show } from '@ebay/nice-modal-react';

import { RedirectedModal } from "../components/Modals";
import { RedirectedModal } from '../components/Modals';

import { appState, filesState } from "../state";
import { appState, filesState } from '../state';

export class ApplicationService extends AbstractService {
override async onInit() {
Expand Down Expand Up @@ -53,7 +53,7 @@ export class ApplicationService extends AbstractService {
}

const { updateFile } = filesState.getState();
let content = "";
let content = '';
if (url) {
content = await fetch(url).then((res) => res.text());
} else if (base64) {
Expand All @@ -62,21 +62,21 @@ export class ApplicationService extends AbstractService {

const language = this.svcs.formatSvc.retrieveLangauge(content);
const source = url || undefined;
updateFile("asyncapi", {
updateFile('asyncapi', {
content,
language,
source,
from: url ? "url" : "base64",
from: url ? 'url' : 'base64',
});
await this.svcs.parserSvc.parse("asyncapi", content, { source });
await this.svcs.parserSvc.parse('asyncapi', content, { source });
}

private hidePreloader() {
const unsunscribe = appState.subscribe((state, prevState) => {
if (!prevState.initialized && state.initialized) {
const preloader = document.getElementById("preloader");
const preloader = document.getElementById('preloader');
if (preloader) {
preloader.classList.add("loaded");
preloader.classList.add('loaded');
setTimeout(() => {
preloader.remove();
}, 350);
Expand Down
10 changes: 5 additions & 5 deletions apps/studio/src/studio.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useEffect } from "react";
import toast, { Toaster } from "react-hot-toast";
import React, { useEffect } from 'react';
import toast, { Toaster } from 'react-hot-toast';

import { Content, Sidebar, Template, Toolbar } from "./components";
import { Content, Sidebar, Template, Toolbar } from './components';

import { afterAppInit, useServices } from "./services";
import { appState } from "./state";
import { afterAppInit, useServices } from './services';
import { appState } from './state';

export interface AsyncAPIStudioProps {}

Expand Down

0 comments on commit 6f6f1b2

Please sign in to comment.