chore(front): tidy up
This commit is contained in:
parent
b4b9ec7091
commit
51fe0ac0e6
|
@ -404,7 +404,6 @@ const labels = computed(() => ({
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const publish = async () => {
|
const publish = async () => {
|
||||||
console.log("TRYING TO PUBLISH")
|
|
||||||
isLoading.value = true
|
isLoading.value = true
|
||||||
|
|
||||||
errors.value = []
|
errors.value = []
|
||||||
|
@ -436,67 +435,6 @@ const publish = async () => {
|
||||||
defineExpose({
|
defineExpose({
|
||||||
publish
|
publish
|
||||||
})
|
})
|
||||||
|
|
||||||
// Api Calls
|
|
||||||
|
|
||||||
// Create a new channel
|
|
||||||
/*
|
|
||||||
"/api/v2/channels/": {
|
|
||||||
parameters: {
|
|
||||||
query?: never;
|
|
||||||
header?: never;
|
|
||||||
path?: never;
|
|
||||||
cookie?: never;
|
|
||||||
};
|
|
||||||
get: operations["get_channels_2"]; //!
|
|
||||||
put?: never;
|
|
||||||
post: operations["create_channel_2"]; //!
|
|
||||||
delete?: never;
|
|
||||||
options?: never;
|
|
||||||
head?: never;
|
|
||||||
patch?: never;
|
|
||||||
trace?: never;
|
|
||||||
};
|
|
||||||
|
|
||||||
create_channel_2: {
|
|
||||||
parameters: {
|
|
||||||
query?: never;
|
|
||||||
header?: never;
|
|
||||||
path?: never;
|
|
||||||
cookie?: never;
|
|
||||||
};
|
|
||||||
requestBody: {
|
|
||||||
content: {
|
|
||||||
"application/json": components["schemas"]["ChannelCreateRequest"]; !
|
|
||||||
"application/x-www-form-urlencoded": components["schemas"]["ChannelCreateRequest"];
|
|
||||||
"multipart/form-data": components["schemas"]["ChannelCreateRequest"];
|
|
||||||
"application/activity+json": components["schemas"]["ChannelCreateRequest"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
responses: {
|
|
||||||
201: {
|
|
||||||
headers: {
|
|
||||||
[name: string]: unknown;
|
|
||||||
};
|
|
||||||
content: {
|
|
||||||
"application/json": components["schemas"]["ChannelCreate"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
ChannelCreateRequest: {
|
|
||||||
cover?: string | null;
|
|
||||||
name: string; !!!
|
|
||||||
username: string; !!!
|
|
||||||
description: components["schemas"]["ContentRequest"] | null; null
|
|
||||||
tags: string[]; []
|
|
||||||
content_category: components["schemas"]["ContentCategoryEnum"]; 'music'
|
|
||||||
metadata?: { //undefined
|
|
||||||
[key: string]: unknown;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -31,7 +31,9 @@ export interface CurrentRadio {
|
||||||
objectId: ObjectId | null
|
objectId: ObjectId | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RadioConfig = { type: 'tag', names: string[] } | { type: 'artist' | 'playlist', ids: string[] }
|
export type RadioConfig
|
||||||
|
= { type: 'tag', names: string[] }
|
||||||
|
| { type: 'artist' | 'playlist', ids: string[] }
|
||||||
|
|
||||||
const logger = useLogger()
|
const logger = useLogger()
|
||||||
|
|
||||||
|
|
|
@ -39,10 +39,10 @@ const { t } = useI18n()
|
||||||
>
|
>
|
||||||
<template #action>
|
<template #action>
|
||||||
<radio-button
|
<radio-button
|
||||||
v-if="recentActivity > 0"
|
v-if="recentActivity > 0 && typeof object?.preferred_username === 'string' && typeof object?.full_username === 'string'"
|
||||||
class="right floated"
|
class="right floated"
|
||||||
type="account"
|
type="account"
|
||||||
:object-id="{username: object?.preferred_username, fullUsername: object?.full_username}"
|
:object-id="{ username: object?.preferred_username, fullUsername: object?.full_username }"
|
||||||
:client-only="true"
|
:client-only="true"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue