mirror of
https://github.com/maciejpedzich/spotifyplaylistarchive.com.git
synced 2024-09-19 18:16:19 +02:00
Convert all models' file names to PascalCase
This commit is contained in:
parent
769a65ce70
commit
ec15def4ef
@ -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() {
|
||||
|
@ -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('');
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
import type { User } from './user';
|
||||
import type { User } from './User';
|
||||
|
||||
export interface Track {
|
||||
added_at: string;
|
||||
|
@ -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';
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user