]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor: rename files to camelCase
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 22 Apr 2020 12:02:51 +0000 (14:02 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 22 Apr 2020 12:02:51 +0000 (14:02 +0200)
15 files changed:
__tests__/guards/afterEach.spec.ts [moved from __tests__/guards/global-after.spec.ts with 100% similarity]
__tests__/guards/beforeEach.spec.ts [moved from __tests__/guards/global-beforeEach.spec.ts with 100% similarity]
__tests__/guards/beforeEnter.spec.ts [moved from __tests__/guards/route-beforeEnter.spec.ts with 100% similarity]
__tests__/guards/beforeRouteEnter.spec.ts [moved from __tests__/guards/component-beforeRouteEnter.spec.ts with 100% similarity]
__tests__/guards/beforeRouteLeave.spec.ts [moved from __tests__/guards/component-beforeRouteLeave.spec.ts with 100% similarity]
__tests__/guards/beforeRouteUpdate.spec.ts [moved from __tests__/guards/component-beforeRouteUpdate.spec.ts with 100% similarity]
__tests__/matcher/pathParser.spec.ts [moved from __tests__/matcher/path-parser.spec.ts with 99% similarity]
__tests__/matcher/pathRanking.spec.ts [moved from __tests__/matcher/path-ranking.spec.ts with 98% similarity]
__tests__/urlEncoding.spec.ts [moved from __tests__/url-encoding.spec.ts with 100% similarity]
src/matcher/index.ts
src/matcher/pathMatcher.ts [moved from src/matcher/path-matcher.ts with 93% similarity]
src/matcher/pathParserRanker.ts [moved from src/matcher/path-parser-ranker.ts with 99% similarity]
src/matcher/pathTokenizer.ts [moved from src/matcher/path-tokenizer.ts with 100% similarity]
src/types/index.ts
src/types/typeGuards.ts [moved from src/types/type-guards.ts with 100% similarity]

similarity index 99%
rename from __tests__/matcher/path-parser.spec.ts
rename to __tests__/matcher/pathParser.spec.ts
index 29459bcd2384b2fb9438a0dec93308d5a5b12b79..6225d6c1ab8987eda35921d464f6a27a988a719c 100644 (file)
@@ -1,5 +1,5 @@
-import { tokenizePath, TokenType } from '../../src/matcher/path-tokenizer'
-import { tokensToParser } from '../../src/matcher/path-parser-ranker'
+import { tokenizePath, TokenType } from '../../src/matcher/pathTokenizer'
+import { tokensToParser } from '../../src/matcher/pathParserRanker'
 
 describe('Path parser', () => {
   describe('tokenizer', () => {
similarity index 98%
rename from __tests__/matcher/path-ranking.spec.ts
rename to __tests__/matcher/pathRanking.spec.ts
index 3006e39c9f90c0a4cc7474775044ba98459a3e4f..f437fed0979047cd66ccaa1feaa8cedc6401ba53 100644 (file)
@@ -1,8 +1,8 @@
-import { tokenizePath } from '../../src/matcher/path-tokenizer'
+import { tokenizePath } from '../../src/matcher/pathTokenizer'
 import {
   tokensToParser,
   comparePathParserScore,
-} from '../../src/matcher/path-parser-ranker'
+} from '../../src/matcher/pathParserRanker'
 
 type PathParserOptions = Parameters<typeof tokensToParser>[1]
 
index 1d57d07f3719b576e1b3f9e1d0446d767e716904..fc50f5844943d2329329d93a67a26b8640c030d8 100644 (file)
@@ -6,13 +6,13 @@ import {
   RouteRecordName,
 } from '../types'
 import { createRouterError, ErrorTypes, MatcherError } from '../errors'
-import { createRouteRecordMatcher, RouteRecordMatcher } from './path-matcher'
+import { createRouteRecordMatcher, RouteRecordMatcher } from './pathMatcher'
 import { RouteRecordRedirect, RouteRecordNormalized } from './types'
 import {
   PathParams,
   comparePathParserScore,
   PathParserOptions,
-} from './path-parser-ranker'
+} from './pathParserRanker'
 
 let noop = () => {}
 
similarity index 93%
rename from src/matcher/path-matcher.ts
rename to src/matcher/pathMatcher.ts
index c64b2a13d3425276e201c4d28dbb98241c9c9558..0132a111672944f723d6e86f43e931efb23106e2 100644 (file)
@@ -3,8 +3,8 @@ import {
   tokensToParser,
   PathParser,
   PathParserOptions,
-} from './path-parser-ranker'
-import { tokenizePath } from './path-tokenizer'
+} from './pathParserRanker'
+import { tokenizePath } from './pathTokenizer'
 
 export interface RouteRecordMatcher extends PathParser {
   record: RouteRecord
similarity index 99%
rename from src/matcher/path-parser-ranker.ts
rename to src/matcher/pathParserRanker.ts
index 3d6deac26fbefd97232d213cbd75386b201bf828..31511de21ade989c8f2e3fb299215b18f8de72bf 100644 (file)
@@ -1,4 +1,4 @@
-import { Token, TokenType } from './path-tokenizer'
+import { Token, TokenType } from './pathTokenizer'
 
 export type PathParams = Record<string, string | string[]>
 
index f2b7631cb56ade8a4fa147f708c1a5410d2efa28..a8eb7f7d5860cc7d07b9cd4668b94ad2b052ee28 100644 (file)
@@ -1,5 +1,5 @@
 import { LocationQuery, LocationQueryRaw } from '../utils/query'
-import { PathParserOptions } from '../matcher/path-parser-ranker'
+import { PathParserOptions } from '../matcher/pathParserRanker'
 import { markRaw, Ref, ComputedRef, ComponentOptions } from 'vue'
 import { RouteRecord, RouteRecordNormalized } from '../matcher/types'
 import { HistoryState } from '../history/common'
@@ -274,7 +274,7 @@ export interface PostNavigationGuard {
   ): any
 }
 
-export * from './type-guards'
+export * from './typeGuards'
 
 export type Mutable<T> = {
   -readonly [P in keyof T]: T[P]