Convert all models' file names to PascalCase

This commit is contained in:
Maciej Pędzich 2023-01-26 15:19:01 +01:00
parent 769a65ce70
commit ec15def4ef
12 changed files with 13 additions and 13 deletions

View File

@ -1,5 +1,5 @@
---
import type { PlaylistSnapshot } from '@/models/playlist-snapshot';
import type { PlaylistSnapshot } from '@/models/PlaylistSnapshot';
interface Props {
snapshot: PlaylistSnapshot;
@ -9,7 +9,7 @@ const { snapshot } = Astro.props;
---
<script>
import type { PlaylistSnapshot } from '@/models/playlist-snapshot';
import type { PlaylistSnapshot } from '@/models/PlaylistSnapshot';
class ExportToJsonLink extends HTMLElement {
constructor() {

View File

@ -4,8 +4,8 @@ import { onMounted, ref, watch } from 'vue';
import { search } from 'fast-fuzzy';
import { debounce } from 'debounce';
import type { PlaylistSnapshot } from '@/models/playlist-snapshot';
import type { SearchSuggestion } from '@/models/search-suggestion';
import type { PlaylistSnapshot } from '@/models/PlaylistSnapshot';
import type { SearchSuggestion } from '@/models/SearchSuggestion';
import { getPlaylistIdFromUrl } from '@/utils/getPlaylistIdFromUrl';
const searchTerm = ref('');

View File

@ -4,8 +4,8 @@ import { computed, onBeforeMount, onMounted, ref } from 'vue';
import Datepicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css';
import type { SnapshotMeta } from '@/models/snapshot-meta';
import type { UpdateMonthYearPayload } from '@/models/update-month-year-payload';
import type { SnapshotMeta } from '@/models/SnapshotMeta';
import type { UpdateMonthYearPayload } from '@/models/UpdateMonthYearPayload';
import { queryParamsToDate } from '@/utils/queryParamsToDate';

View File

@ -1,7 +1,7 @@
---
import BaseLayout from './BaseLayout.astro';
import type { PlaylistSnapshot } from '../models/playlist-snapshot';
import type { PlaylistSnapshot } from '../models/PlaylistSnapshot';
interface Props {
playlist: PlaylistSnapshot | null;

View File

@ -1,5 +1,5 @@
import type { User } from './user';
import type { Track } from './track';
import type { User } from './User';
import type { Track } from './Track';
export interface PlaylistSnapshot {
description: string;

View File

@ -1,4 +1,4 @@
import type { User } from './user';
import type { User } from './User';
export interface Track {
added_at: string;

View File

@ -1,5 +1,5 @@
import type { APIRoute } from 'astro';
import type { PlaylistSnapshot } from '@/models/playlist-snapshot';
import type { PlaylistSnapshot } from '@/models/PlaylistSnapshot';
import { Octokit } from '@octokit/rest';
import { queryParamsToDate } from '@/utils/queryParamsToDate';

View File

@ -9,7 +9,7 @@ import { formatDate } from '@/utils/formatDate';
import CopyTrackUrlsButton from '@/components/vue/CopyTrackUrlsButton.vue';
import ExportToJsonLink from '@/components/ExportToJsonLink.astro';
import type { PlaylistSnapshot } from '@/models/playlist-snapshot';
import type { PlaylistSnapshot } from '@/models/PlaylistSnapshot';
const layoutProps = await getPlaylistLayoutProps(Astro);

View File

@ -1,7 +1,7 @@
import { decode } from 'html-entities';
import type { AstroGlobal } from 'astro';
import type { PlaylistSnapshot } from '../models/playlist-snapshot';
import type { PlaylistSnapshot } from '../models/PlaylistSnapshot';
export async function getPlaylistLayoutProps(Astro: Readonly<AstroGlobal>) {
const { playlistId } = Astro.params;