mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
feat(test): obsolete snapshots
This commit is contained in:
parent
9d2a3afca9
commit
99df3e773d
5 changed files with 16 additions and 14 deletions
|
@ -32,11 +32,12 @@ final class SSOUser
|
|||
public static function fromProxyAuthRequest(Request $request): self
|
||||
{
|
||||
$identifier = $request->header(config('koel.proxy_auth.user_header'));
|
||||
$email = filter_var($identifier, FILTER_VALIDATE_EMAIL) ?: "$identifier@reverse.proxy";
|
||||
|
||||
return new self(
|
||||
provider: 'Reverse Proxy',
|
||||
id: $identifier,
|
||||
email: "$identifier@reverse-proxy",
|
||||
email: $email,
|
||||
name: $request->header(config('koel.proxy_auth.preferred_name_header')) ?: $identifier,
|
||||
avatar: null,
|
||||
);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
exports[`renders proper content with Spotify integration status false, current user admin status false 1`] = `
|
||||
<section data-v-49dda1f9="" class="text-secondary">
|
||||
<h1 data-v-49dda1f9=""><span data-v-49dda1f9="" class="spotify-icon"><br data-v-49dda1f9="" data-testid="Icon" icon="[object Object]"></span> Spotify Integration </h1>
|
||||
<h3 data-v-49dda1f9=""><span data-v-49dda1f9="" class="spotify-icon"><br data-v-49dda1f9="" data-testid="Icon" icon="[object Object]"></span> Spotify Integration </h3>
|
||||
<div data-v-49dda1f9="">
|
||||
<p data-v-49dda1f9=""> Spotify integration is not enabled.
|
||||
<!--v-if-->
|
||||
|
@ -13,7 +13,7 @@ exports[`renders proper content with Spotify integration status false, current u
|
|||
|
||||
exports[`renders proper content with Spotify integration status false, current user admin status true 1`] = `
|
||||
<section data-v-49dda1f9="" class="text-secondary">
|
||||
<h1 data-v-49dda1f9=""><span data-v-49dda1f9="" class="spotify-icon"><br data-v-49dda1f9="" data-testid="Icon" icon="[object Object]"></span> Spotify Integration </h1>
|
||||
<h3 data-v-49dda1f9=""><span data-v-49dda1f9="" class="spotify-icon"><br data-v-49dda1f9="" data-testid="Icon" icon="[object Object]"></span> Spotify Integration </h3>
|
||||
<div data-v-49dda1f9="">
|
||||
<p data-v-49dda1f9=""> Spotify integration is not enabled. <span data-v-49dda1f9="" data-testid="spotify-admin-instruction"> Check <a data-v-49dda1f9="" href="https://docs.koel.dev/service-integrations#spotify" class="text-highlight" target="_blank"> Documentation </a> for instructions. </span></p>
|
||||
</div>
|
||||
|
@ -22,7 +22,7 @@ exports[`renders proper content with Spotify integration status false, current u
|
|||
|
||||
exports[`renders proper content with Spotify integration status true, current user admin status false 1`] = `
|
||||
<section data-v-49dda1f9="" class="text-secondary">
|
||||
<h1 data-v-49dda1f9=""><span data-v-49dda1f9="" class="spotify-icon"><br data-v-49dda1f9="" data-testid="Icon" icon="[object Object]"></span> Spotify Integration </h1>
|
||||
<h3 data-v-49dda1f9=""><span data-v-49dda1f9="" class="spotify-icon"><br data-v-49dda1f9="" data-testid="Icon" icon="[object Object]"></span> Spotify Integration </h3>
|
||||
<div data-v-49dda1f9="">
|
||||
<p data-v-49dda1f9=""> Spotify integration is enabled. Koel will attempt to retrieve album arts and artist images from Spotify when a song is played, if needed. </p>
|
||||
</div>
|
||||
|
@ -31,7 +31,7 @@ exports[`renders proper content with Spotify integration status true, current us
|
|||
|
||||
exports[`renders proper content with Spotify integration status true, current user admin status true 1`] = `
|
||||
<section data-v-49dda1f9="" class="text-secondary">
|
||||
<h1 data-v-49dda1f9=""><span data-v-49dda1f9="" class="spotify-icon"><br data-v-49dda1f9="" data-testid="Icon" icon="[object Object]"></span> Spotify Integration </h1>
|
||||
<h3 data-v-49dda1f9=""><span data-v-49dda1f9="" class="spotify-icon"><br data-v-49dda1f9="" data-testid="Icon" icon="[object Object]"></span> Spotify Integration </h3>
|
||||
<div data-v-49dda1f9="">
|
||||
<p data-v-49dda1f9=""> Spotify integration is enabled. Koel will attempt to retrieve album arts and artist images from Spotify when a song is played, if needed. </p>
|
||||
</div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<section id="homeWrapper">
|
||||
<ScreenHeader layout="collapsed">{{ greeting }}</ScreenHeader>
|
||||
|
||||
<div v-koel-overflow-fade class="main-scroll-wrap" @scroll="scrolling">
|
||||
<div v-koel-overflow-fade class="main-scroll-wrap">
|
||||
<ScreenEmptyState v-if="libraryEmpty">
|
||||
<template #icon>
|
||||
<Icon :icon="faVolumeOff" />
|
||||
|
|
|
@ -70,8 +70,8 @@
|
|||
<script lang="ts" setup>
|
||||
import { faFile } from '@fortawesome/free-regular-svg-icons'
|
||||
import { differenceBy } from 'lodash'
|
||||
import { computed, reactive, ref, toRef, watch } from 'vue'
|
||||
import { arrayify, eventBus, logger, pluralize } from '@/utils'
|
||||
import { ref, toRef, watch } from 'vue'
|
||||
import { eventBus, logger, pluralize } from '@/utils'
|
||||
import { commonStore, playlistStore, songStore } from '@/stores'
|
||||
import { downloadService, playlistCollaborationService } from '@/services'
|
||||
import { usePlaylistManagement, useRouter, useSongList, useAuthorization, useSongListControls } from '@/composables'
|
||||
|
|
|
@ -104,16 +104,17 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, watch } from 'vue'
|
||||
import { QrCodeIcon } from 'lucide-vue-next'
|
||||
import { defineAsyncComponent, ref, watch } from 'vue'
|
||||
import { useLocalStorage } from '@/composables'
|
||||
|
||||
import ScreenHeader from '@/components/ui/ScreenHeader.vue'
|
||||
import ProfileForm from '@/components/profile-preferences/ProfileForm.vue'
|
||||
import PreferencesForm from '@/components/profile-preferences/PreferencesForm.vue'
|
||||
import ThemeList from '@/components/profile-preferences/ThemeList.vue'
|
||||
import Integrations from '@/components/profile-preferences/Integrations.vue'
|
||||
import QRLogin from '@/components/profile-preferences/QRLogin.vue'
|
||||
|
||||
const ProfileForm = defineAsyncComponent(() => import('@/components/profile-preferences/ProfileForm.vue'))
|
||||
const PreferencesForm = defineAsyncComponent(() => import('@/components/profile-preferences/PreferencesForm.vue'))
|
||||
const ThemeList = defineAsyncComponent(() => import('@/components/profile-preferences/ThemeList.vue'))
|
||||
const Integrations = defineAsyncComponent(() => import('@/components/profile-preferences/Integrations.vue'))
|
||||
const QRLogin = defineAsyncComponent(() => import('@/components/profile-preferences/QRLogin.vue'))
|
||||
|
||||
const { get, set } = useLocalStorage()
|
||||
|
||||
|
|
Loading…
Reference in a new issue