Skip to content

Commit 2b0b7f4

Browse files
Reformat code.
1 parent 514a2cc commit 2b0b7f4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

scripts/serve.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const server = http.createServer();
55

66
const mime = {
77
'.html': 'text/html',
8-
'.css' : 'text/css',
9-
'.jpg' : 'image/jpeg',
8+
'.css' : 'text/css',
9+
'.jpg' : 'image/jpeg',
1010
'.js' : 'application/javascript',
1111
};
1212

@@ -17,15 +17,15 @@ server.on( 'request', async ( request, response ) => {
1717
if ( url === '/' ) {
1818
fullPath = path.resolve( './src/js/test/html/index.html' );
1919
} else if ( url.startsWith( '/' ) ) {
20-
fullPath = path.resolve( `.${ url }` );
20+
fullPath = path.resolve( `.${ url }` );
2121
} else {
2222
fullPath = url;
2323
}
2424

25-
const type = mime[ path.extname( fullPath ) ] || 'text/plain';
26-
const buffer = await fs.readFile( fullPath ).catch( e => console.warn( e ) );
25+
const type = mime[ path.extname( fullPath ) ] || 'text/plain';
26+
const buffer = await fs.readFile( fullPath ).catch( e => console.warn( e ) );
2727

28-
response.writeHead( 200, { 'Content-Type': type } );
28+
response.writeHead( 200, { 'Content-Type': type } );
2929
response.end( buffer );
3030
} );
3131

src/js/components/Media/Media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { EventBinder } from '../../constructors';
44
import { Splide } from '../../core/Splide/Splide';
55
import { BaseComponent, Components, Options } from '../../types';
66
import { merge, omit, ownKeys } from '../../utils';
7-
import { EVENT_UPDATED } from "../../constants/events";
7+
import { EVENT_UPDATED } from '../../constants/events';
88

99

1010
/**

src/js/components/Slides/Slides.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Slide, SlideComponent } from './Slide';
2727
*
2828
* @since 3.0.0
2929
*/
30-
export interface SlidesComponent extends BaseComponent {
30+
export interface SlidesComponent extends BaseComponent {
3131
update(): void;
3232
register( slide: HTMLElement, index: number, slideIndex: number ): void;
3333
get( excludeClones?: boolean ): SlideComponent[];

src/js/core/Splide/Splide.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { EventInterface, EventInterfaceObject, State, StateObject } from '../../
1010
import { Fade, Slide } from '../../transitions';
1111
import { AnyFunction, ComponentConstructor, Components, EventMap, Options, SyncTarget } from '../../types';
1212
import { addClass, assert, assign, empty, forOwn, getAttribute, isString, merge, query, slice } from '../../utils';
13-
import { ARIA_LABEL, ARIA_LABELLEDBY } from "../../constants/attributes";
13+
import { ARIA_LABEL, ARIA_LABELLEDBY } from '../../constants/attributes';
1414

1515

1616
/**

0 commit comments

Comments
 (0)