Commit e62247f 1 parent 73a293f commit e62247f Copy full SHA for e62247f
File tree 7 files changed +22
-22
lines changed
7 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 5
5
],
6
6
"dependencies" : {
7
7
"prettier" : " ^2.7.1" ,
8
+ "prettier-plugin-organize-imports" : " ^3.2.1" ,
8
9
"prettier-plugin-svelte" : " ^2.8.1"
9
10
}
10
11
}
Original file line number Diff line number Diff line change 1
1
import { Router } from './router'
2
2
3
- export * from './types'
4
-
5
- export { default as setupProgress } from './progress'
6
3
export { default as createHeadManager } from './head'
4
+ export { default as setupProgress } from './progress'
7
5
export { default as shouldIntercept } from './shouldIntercept'
6
+ export * from './types'
8
7
export { hrefToUrl , mergeDataIntoQueryString , urlWithoutHash } from './url'
9
8
10
9
export const router = new Router ( )
Original file line number Diff line number Diff line change 1
- import { GlobalEvent } from './types'
2
1
import NProgress from 'nprogress'
2
+ import { GlobalEvent } from './types'
3
3
4
4
let timeout : NodeJS . Timeout | null = null
5
5
Original file line number Diff line number Diff line change 1
- import modal from './modal '
1
+ import { AxiosResponse , default as Axios } from 'axios '
2
2
import debounce from './debounce'
3
+ import {
4
+ fireBeforeEvent ,
5
+ fireErrorEvent ,
6
+ fireExceptionEvent ,
7
+ fireFinishEvent ,
8
+ fireInvalidEvent ,
9
+ fireNavigateEvent ,
10
+ fireProgressEvent ,
11
+ fireStartEvent ,
12
+ fireSuccessEvent ,
13
+ } from './events'
3
14
import { hasFiles } from './files'
4
15
import { objectToFormData } from './formData'
5
- import { default as Axios , AxiosResponse } from 'axios'
6
- import { hrefToUrl , mergeDataIntoQueryString , urlWithoutHash } from './url'
16
+ import modal from './modal'
7
17
import {
8
18
ActiveVisit ,
9
19
GlobalEvent ,
@@ -20,17 +30,7 @@ import {
20
30
VisitId ,
21
31
VisitOptions ,
22
32
} from './types'
23
- import {
24
- fireBeforeEvent ,
25
- fireErrorEvent ,
26
- fireExceptionEvent ,
27
- fireFinishEvent ,
28
- fireInvalidEvent ,
29
- fireNavigateEvent ,
30
- fireProgressEvent ,
31
- fireStartEvent ,
32
- fireSuccessEvent ,
33
- } from './events'
33
+ import { hrefToUrl , mergeDataIntoQueryString , urlWithoutHash } from './url'
34
34
35
35
const isServer = typeof window === 'undefined'
36
36
Original file line number Diff line number Diff line change 1
- import * as process from 'process'
2
1
import { createServer , IncomingMessage } from 'http'
3
- import { Page , InertiaAppResponse } from './types'
2
+ import * as process from 'process'
3
+ import { InertiaAppResponse , Page } from './types'
4
4
5
5
type AppCallback = ( page : Page ) => InertiaAppResponse
6
6
type RouteHandler = ( request : IncomingMessage ) => Promise < unknown >
Original file line number Diff line number Diff line change 1
- import * as qs from 'qs'
2
1
import deepmerge from 'deepmerge'
2
+ import * as qs from 'qs'
3
3
import { FormDataConvertible , Method } from './types'
4
4
5
5
export function hrefToUrl ( href : string | URL ) : URL {
Original file line number Diff line number Diff line change 1
- import { router , mergeDataIntoQueryString , shouldIntercept } from '@inertiajs/core'
1
+ import { mergeDataIntoQueryString , router , shouldIntercept } from '@inertiajs/core'
2
2
3
3
export default {
4
4
functional : true ,
You can’t perform that action at this time.
0 commit comments