Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Front: Bye Bye Flutter, Welcome Vue #115

Merged
merged 80 commits into from
Aug 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
eb5f252
Front: Setup vue project
Arthi-chaud Jul 14, 2024
ba74a86
Front Vue: API Models
Arthi-chaud Jul 14, 2024
45ee4ca
Front Vue: Setup useQuery-type functions
Arthi-chaud Jul 16, 2024
d73d7e0
Front Vue: Setup reverse proxy for SSR and dev
Arthi-chaud Jul 16, 2024
600950b
Front Vue: Setup daisyui + tailwind
Arthi-chaud Jul 16, 2024
49efd1c
Front Vue: Image WIP
Arthi-chaud Jul 17, 2024
609b1f6
Front Vue: Setup font
Arthi-chaud Jul 18, 2024
5509069
Front Vue: Add favicon
Arthi-chaud Jul 18, 2024
8702643
Front Vue: Appbar
Arthi-chaud Jul 18, 2024
dd2a29b
Front Vue: Setup icons
Arthi-chaud Jul 18, 2024
c3cc794
Front Vue: Setup icons
Arthi-chaud Jul 18, 2024
645952e
Front Vue: Navigation Sidebar + empty pages
Arthi-chaud Jul 19, 2024
199c4b7
Front Vue: Disable button animation on sidebars
Jul 19, 2024
89575cf
Front Vue: Bottom Navigation Bar
Arthi-chaud Jul 20, 2024
978e33b
Front Vue: Package Item: Layout + Image Blurhash
Arthi-chaud Jul 20, 2024
af1de4f
Front Vue: Customise Package Label
Arthi-chaud Jul 20, 2024
5616237
Front Vue: Use NuxtLinks
Arthi-chaud Jul 20, 2024
007268a
Front Vue: Package Item: Hover animation
Arthi-chaud Jul 20, 2024
1ada1a5
Front Vue: Fix pagination for first pages
Arthi-chaud Jul 20, 2024
82aa147
Front Vue: Change grid cols count
Arthi-chaud Jul 20, 2024
c260304
Front Vue: Rework scrolling behaviour of global layout
Arthi-chaud Jul 20, 2024
3caed04
Front Vue: Fix bottom overflow
Arthi-chaud Jul 20, 2024
c3d08ce
Front Vue: Combine tanstack and nuxt's fetch
Arthi-chaud Jul 21, 2024
f6cc491
Front Vue: Fix fetch for SSR
Arthi-chaud Jul 21, 2024
fad4434
Front Vue: Infinite Scroll for packages (dirty)
Arthi-chaud Jul 21, 2024
10bbfda
Front Vue: Image Fade in
Arthi-chaud Jul 21, 2024
5bef1bf
Front Vue: Package Item Skeletons
Arthi-chaud Jul 22, 2024
fbd0fa6
Front Vue: Image with blurhash transition
Arthi-chaud Jul 22, 2024
22f8d30
Front Vue: Infinte Scroll Component
Arthi-chaud Jul 24, 2024
24d6b9e
Front Vue: Infinite Artist Page
Arthi-chaud Jul 24, 2024
adb2956
Front Vue: Dockerfile for dev
Arthi-chaud Jul 24, 2024
5d5d7cb
Front Vue: Dockerisation for prod
Arthi-chaud Jul 24, 2024
46ac0dc
Front Vue: Fix query for individual artist + fix grid of posters grow…
Arthi-chaud Jul 24, 2024
f8c724c
Front Vue: Infinite Extra Page
Arthi-chaud Jul 24, 2024
df0d2ec
Front Vue: Placeholder player page
Arthi-chaud Jul 25, 2024
f1692d8
Front Vue: CI
Arthi-chaud Jul 25, 2024
0a4dcce
Front Vue: Lint
Arthi-chaud Jul 25, 2024
199d47d
Front Vue: Refactor Images a little
Arthi-chaud Jul 26, 2024
b85f2ae
Front vue: Resource Page Header (draft)
Arthi-chaud Jul 27, 2024
ffe69ab
Front Vue: anothr rework of the image component
Arthi-chaud Jul 27, 2024
e31c753
Front Vue: Package Page Header
Arthi-chaud Jul 27, 2024
3b17faf
Front Vue: Scrollable Grid for Artist Page
Arthi-chaud Jul 27, 2024
59c147c
Front Vue: Rework overall layout + fix secondary title on items
Arthi-chaud Jul 27, 2024
cb31a1b
Front Responsivity of Resource pageheader
Arthi-chaud Jul 28, 2024
73898fd
Front vue: Infinite Scroll for artist packages
Arthi-chaud Jul 28, 2024
3ffb90f
Front Vue: Artist Page: Infinite Extras
Arthi-chaud Jul 28, 2024
002b6dc
Front Vue: Add Description in resource page header
Arthi-chaud Jul 28, 2024
24bc435
Front Vue: Add external id badges for packages
Arthi-chaud Jul 28, 2024
c66aa7f
Front Vue: Add external id badges for artists
Arthi-chaud Jul 28, 2024
da224de
Front Vue: External Id List Component
Arthi-chaud Jul 28, 2024
90bf2bd
Front Vue: Rating: Add tooltip
Arthi-chaud Jul 28, 2024
9b57a61
Front Vue: Use ref instead of id to get scrollable component
Arthi-chaud Jul 28, 2024
3c02e69
Front Vue: Add play buttons in package page
Arthi-chaud Jul 28, 2024
2309021
Front Vue: Add Settings Page + URL of scanner + transcoder in docker …
Arthi-chaud Jul 28, 2024
4e457fa
Front Vue: Redirect home page
Arthi-chaud Jul 28, 2024
f8bdee6
Front Vue: Load File + Package Data with loading screen
Arthi-chaud Jul 28, 2024
8365024
Front Vue: Controls: Add back button
Arthi-chaud Jul 29, 2024
54ae66c
Front vue: Format
Arthi-chaud Jul 29, 2024
f176846
Front Vue: Add poster + titles to controls
Arthi-chaud Jul 29, 2024
271c81c
Front Vue: Player: Slider + callback on select
Arthi-chaud Jul 31, 2024
dce9d3f
Front Vue: Player Slider: Chapter marks
Arthi-chaud Aug 1, 2024
d92372d
Front Vue: Player: Move metadata fetching to composable
Arthi-chaud Aug 4, 2024
c076674
Front Vue: Direct Playback With buffer indicator
Arthi-chaud Aug 4, 2024
8804223
Front Vue: Player: Play button + chapter name if movie
Arthi-chaud Aug 4, 2024
418601a
Front Vue: Set Media Metadata for browser
Arthi-chaud Aug 4, 2024
539c43b
docker compose: bump transcoder version
Arthi-chaud Aug 4, 2024
f65512a
Front Vue: Player: Composable for current chapter + player
Arthi-chaud Aug 4, 2024
2a204bb
Front Vue: Player: Add composable for browser metadata
Arthi-chaud Aug 4, 2024
bd6f5ea
Front Vue: Add Toast on loading error + rework chapter marks
Arthi-chaud Aug 5, 2024
90e0d3c
Front Vue: Player: Fix buffering value
Arthi-chaud Aug 5, 2024
bd3c71b
Front Vue: Player: Hide Controls after idle
Arthi-chaud Aug 5, 2024
0ff141c
Front Vue: HLS When media is not supported
Arthi-chaud Aug 6, 2024
27c5615
Front Vue: Gitignore yarn install state
Arthi-chaud Aug 7, 2024
de33d9d
Front Vue: Transcode when necessary
Arthi-chaud Aug 8, 2024
00842d3
Front Vue: Add Dark Theme
Arthi-chaud Aug 8, 2024
9d80598
Reverte Dev Docker compose
Arthi-chaud Aug 8, 2024
b2492af
Front Vue: Bump deps
Arthi-chaud Aug 8, 2024
5a79a61
Front: Bye bye Flutter, welcome vue
Arthi-chaud Aug 8, 2024
0392e18
Front: Merge
Arthi-chaud Aug 8, 2024
46f9f2b
Front: CI: rename workflow
Arthi-chaud Aug 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Front Vue: Package Item: Hover animation
Arthi-chaud committed Jul 20, 2024
commit 007268a480443fd18de3ad60ee18721aceea364c
13 changes: 13 additions & 0 deletions front-vue/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/*.freezed.dart": true,
"**/*.g.dart": true,
"**/node_modules": true
}
}
46 changes: 32 additions & 14 deletions front-vue/components/items/package-item.vue
Original file line number Diff line number Diff line change
@@ -3,29 +3,47 @@ import type { Package } from "~/models/domain/package";

const props = defineProps<{
package: Package | undefined;
secondaryHref?: string | null;
formatSecondaryTitle?: (p: Package) => string;
}>();
const packageLink = ref(
props.package ? `/packages/${props.package?.id}` : null,
props.package ? `/packages/${props.package?.id}` : undefined,
);
const secondaryHref =
props.secondaryHref === null
? undefined
: (props.secondaryHref ??
(props.package ? `/artists/${props.package?.artist_id}` : undefined));
</script>
<template>
<div>
<div class="aspect-[3/4]">
<Image
:image="package?.poster"
:expectedAspectRatio="3 / 4"
/>
<div
class="aspect-[3/4] hover:scale-105 transition-transform duration-200"
>
<NuxtLink :to="packageLink">
<Image :image="package?.poster" :expectedAspectRatio="3 / 4" />
</NuxtLink>
</div>
<div class="flex flex-col pt-2 pl-2 text-sm">
<p class="line-clamp-1">{{ package?.name }}</p>
<p class="line-clamp-1 font-light">
{{
package
? (formatSecondaryTitle?.(package) ?? package?.artist_name ?? '')
: ''
}}
</p>
<NuxtLink :to="packageLink">
<p class="line-clamp-1 hover:underline cursor-pointer">
{{ package?.name }}
</p>
</NuxtLink>
<NuxtLink :to="secondaryHref">
<p
class="line-clamp-1 font-light"
:class="{ 'hover:underline': secondaryHref != undefined }"
>
{{
package
? (formatSecondaryTitle?.(package) ??
package?.artist_name ??
"")
: ""
}}
</p>
</NuxtLink>
</div>
</div>
</template>