Skip to content

Commit

Permalink
chores: rename components
Browse files Browse the repository at this point in the history
  • Loading branch information
ludchieng committed Jan 24, 2023
1 parent e8a2ab4 commit 4677f68
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<script lang="ts">
import Vue from 'vue'
import LineIcon from '@/components/LineIcon.vue'
import DesignTime from '@/components/design/DesignTime.vue'
import DesignTime from '@/components/ui/UiTime.vue'
import { Time } from '@/utils/time'
export default Vue.extend({
name: 'AppHeader',
Expand Down
2 changes: 1 addition & 1 deletion src/components/LineIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<script lang="ts">
import Vue, { PropType } from 'vue'
import DesignIcon, { DesignIconSize } from '@/components/design/DesignIcon.vue'
import DesignIcon, { DesignIconSize } from '@/components/ui/UiIcon.vue'
export type LineIconColor = 'colors' | 'light' | 'dark'
Expand Down
6 changes: 3 additions & 3 deletions src/components/LineMap/LineMap.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<LineRouteMapTable
<LineMapTable
:line="line"
:routeMap="routeMap"
/>
</template>

<script lang="ts">
import Vue from 'vue'
import LineRouteMapTable from './LineMapTable.vue'
import LineMapTable from './LineMapTable.vue'
import { RouteMapType } from '@/utils/parser'
import { getLineRouteMap } from '@/utils/localstore/lines'
export default Vue.extend({
name: 'LineMap',
components: { LineRouteMapTable },
components: { LineMapTable },
props: {
line: String,
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stop/StopHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import Vue, { PropType } from 'vue'
import { StopType } from '@/utils/parser'
import LineIcon from '@/components/LineIcon.vue'
import DesignPageTitle from '@/components/design/DesignPageTitle.vue'
import DesignPageTitle from '@/components/ui/UiPageTitle.vue'
export default Vue.extend({
name: 'StopHeader',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stop/StopPrevNextStops.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import Vue, { PropType } from 'vue'
import { StopType } from '@/utils/parser'
import { getStop } from '@/utils/localstore/stops'
import DesignPrevNext from '@/components/design/DesignPrevNext.vue'
import DesignPrevNext from '@/components/ui/UiPrevNext.vue'
export default Vue.extend({
name: 'StopPrevNextStops',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stop/StopSchedulesVisits.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
import Vue, { PropType } from 'vue'
import { VisitType } from '@/utils/fetcher'
import { toTime } from '@/utils/time'
import DesignTime from '@/components/design/DesignTime.vue'
import DesignTime from '@/components/ui/UiTime.vue'

export default Vue.extend({
name: 'StopSchedulesVisits',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import Vue from 'vue'
export default Vue.extend({
name: 'DesignContentTitle',
name: 'UiContentTitle',
})
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
<script lang="ts">
import Vue, { PropType } from 'vue'
export type DesignIconSize = 'sm' | 'md' | 'lg'
export type UiIconSize = 'sm' | 'md' | 'lg'
export default Vue.extend({
name: 'DesignIcon',
name: 'UiIcon',
props: {
src: String,
alt: String,
size: String as PropType<DesignIconSize>,
size: String as PropType<UiIconSize>,
fadeIn: {
type: Boolean,
default: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import Vue from 'vue'
export default Vue.extend({
name: 'DesignContentTitle',
name: 'UiContentTitle',
props: {
text: String,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export type PrevNextItem = {
}
export default Vue.extend({
name: 'DesignPrevNext',
name: 'UiPrevNext',
props: {
prevItems: [] as PropType<PrevNextItem[]>,
nextItems: [] as PropType<PrevNextItem[]>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import { Time } from '@/utils/time'
import Vue, { PropType } from 'vue'
export default Vue.extend({
name: 'DesignTime',
name: 'UiTime',
props: {
datetime: {} as PropType<Time>,
textGray: Boolean,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/TimetablesHubPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import Vue from 'vue'
import LineIcon from '@/components/LineIcon.vue'
import { getLinesByCategory } from '@/utils/localstore/lines'
import DesignContentTitle from '@/components/design/DesignContentTitle.vue'
import DesignContentTitle from '@/components/ui/UiContentTitle.vue'
export default Vue.extend({
name: 'TimetablesHubPage',
Expand Down

0 comments on commit 4677f68

Please sign in to comment.