PageSourceSearch

https://radio.moe/build/assets/General-5b154560.js

js radio.moe collected 2026-10-07 22:26:05 UTC 17,717 bytes, 1 lines download raw bytes

1import{a as n,n as i}from"./main-72a01a0e.js";import{B as o}from"./billing-a19a8e26.js";const r={props:["settings"],mixins:[o],data(){return{sitemapLoading:!1,isLoadingForButton:!1,url:null,flagsPath:"/images/flags/",locales:[],generalSettings:this.settings}},created(){n.get("/api/languages").then(a=>this.locales=a.data),n.get("/api/admin/url").then(a=>{this.url=a.data})},methods:{save(){this.isLoadingForButton=!0;const a=new FormData,e=(s,l)=>{l!=null&&a.append(s,l.toString().trim())},t=this.settings;e("locale",t.locale),e("enableLangSwitcher",t.enableLangSwitcher?1:0),e("appName",t.appName),e("appUrl",t.appUrl),e("enablePodcasts",t.enablePodcasts?1:0),e("enableOfflineMode",t.enableOfflineMode?1:0),e("enableBrowse",t.enableBrowse?1:0),e("enableUserUpload",t.enableUserUpload?1:0),e("youtubePlugin",t.youtubePlugin?1:0),e("enableEmbedPlayer",t.enableEmbedPlayer?1:0),e("allowGuestsToContact",t.allowGuestsToContact?1:0),e("enableFriendshipSystem",t.enableFriendshipSystem?1:0),e("enableRealtime",t.enableRealtime?1:0),e("pusherAppId",t.pusherAppId),e("pusherKey",t.pusherKey),e("pusherSecret",t.pusherSecret),e("pusherCluster",t.pusherCluster),e("enableChat",t.enableChat?1:0),e("enable_artist_account",t.enable_artist_account?1:0),e("allowArtistAccountRequests",t.allowArtistAccountRequests?1:0),e("enable_royalties",t.enable_royalties?1:0),e("artist_royalty",t.artist_royalty),e("artist_sale_cut",t.artist_sale_cut),e("facebook_link",t.facebook_link),e("youtube_link",t.youtube_link),e("twitter_link",t.twitter_link),e("instagram_link",t.instagram_link),e("soundcloud_link",t.soundcloud_link),e("spotify_link",t.spotify_link),e("disableCookieConsentPopup",t.disableCookieConsentPopup?1:0),e("enable_share_facebook",t.enable_share_facebook?1:0),e("enable_share_twitter",t.enable_share_twitter?1:0),e("enable_share_whatsapp",t.enable_share_whatsapp?1:0),e("enable_share_telegram",t.enable_share_telegram?1:0),e("account_agreement",t.account_agreement),n.post("/api/admin/save-general-settings",a).then(()=>
1{this.$notify({group:"foo",type:"success",title:this.$t("Updated"),text:this.$t("Settings")+this.$t("updated successfully.")})}).finally(()=>{this.isLoadingForButton=!1,setTimeout(()=>{location.reload()},500)})},reset(){this.$emit("reset-settings")}},computed:{saleCut:{get(){return this.settings.artist_sale_cut},set(a){a>100?this.settings.artist_sale_cut=100:this.settings.artist_sale_cut=a}}}};var c=function(){var e=this,t=e._self._c;return t("v-card",{staticClass:"page pb-4"},[t("v-card-title",[t("div",{staticClass:"page__title"},[t("v-icon",{attrs:{color:"primary","x-large":""}},[e._v("$vuetify.icons.application-cog")]),e._v(" "+e._s(e.$t("General"))+" ")],1),t("div",{staticClass:"page__options"},[t("v-btn",{staticClass:"info",attrs:{small:"",disabled:e.isLoadingForButton,loading:e.isLoadingForButton},on:{click:e.reset},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",{staticClass:"custom-loader"},[t("v-icon",{attrs:{light:""}},[e._v("$vuetify.icons.cached")])],1)]},proxy:!0}])},[e._v(" "+e._s(e.$t("Reset"))+" ")]),t("v-btn",{staticClass:"success",attrs:{small:"",disabled:e.isLoadingForButton,loading:e.isLoadingForButton},on:{click:e.save},scopedSlots:e._u([{key:"loader",fn:function(){return[t("span",{staticClass:"custom-loader"},[t("v-icon",{attrs:{light:""}},[e._v("$vuetify.icons.cached")])],1)]},proxy:!0}])},[e._v(" "+e._s(e.$t("Save"))+" ")])],1)]),t("v-container",{staticClass:"pl-5"},[t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("Localization")))]),t("v-divider")],1),t("v-col",[t("v-select",{attrs:{items:e.locales,label:e.$t("Default Language"),"item-text":"name","item-value":"locale","hide-details":"",outlined:""},scopedSlots:e._u([{key:"item",fn:function({item:s}){return[t("div",{staticClass:"align-center"},[t("div",{staticClass:"img px-2 py-1"},[t("v-img",{attrs:{"max-width":"25",src:e.flagsPath+s.flag+".svg"}})],1),e._v(" "+e._s(s.name)+" ")])]}},{key:"selection",fn:function({item:s}){return[t("div",{staticClass:"align-center"},[t("div",{staticClass:"img px-2 py-1"},[t("v-img",{attrs:{"max-width":"25",src:e.flagsPath+s.flag+".svg"}})],1),e._v(" "+e._s(s.name)+" ")])]}}]),model:{value:e.generalSettings.locale,callback:function(s){e.$set(e.generalSettings,"locale",s)},expression:"generalSettings.locale"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Enable language switcher"),messages:e.$t("Offer your users the possibility to change the language from the ones you make available.")+" "+e.$t("The language switcher will show on the navbar.")},model:{value:e.generalSettings.enableLangSwitcher,callback:function(s){e.$set(e.generalSettings,"enableLangSwitcher",s)},expression:"generalSettings.enableLangSwitcher"}})],1)],1),t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("Platform")))]),t("v-divider")],1),t("v-col",{attrs:{cols:"12"}},[t("v-text-field",{attrs:{label:e.$t("Platform Name"),outlined:"","hide-details":""},model:{value:e.generalSettings.appName,callback:function(s){e.$set(e.generalSettings,"appName",s)},expression:"generalSettings.appName"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-text-field",{attrs:{label:e.$t("Platform Base URL"),outlined:"","hide-details":""},model:{value:e.generalSettings.appUrl,callback:function(s){e.$set(e.generalSettings,"appUrl",s)},expression:"generalSettings.appUrl"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Enable Offline Mode"),messages:e.$t("Allow your users with the right permissions to download songs and listen to them offline.")},model:{value:e.generalSettings.enableOfflineMode,callback:function(s){e.$set(e.generalSettings,"enableOfflineMode",s)},expression:"generalSettings.enableOfflineMode"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Podcasts"),messages:e.$t("Disabling podcasts will remove anything related to podcasts on the application.")},model:{value:e.generalSettings.enablePodcasts,callback:function(s){e.$set(e.generalSettings,"enablePodcasts",s)},expression:"generalSettings.enablePodcasts"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Browse Page"),messages:e.$t("Remove the search page which includes music genres & charts.")},model:{value:e.generalSettings.enableBrowse,callback:function(s){e.$set(e.generalSettings,"enableBrowse",s
1)},expression:"generalSettings.enableBrowse"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("User Upload"),messages:e.$t("Allow users to upload audio files locally.")},model:{value:e.generalSettings.enableUserUpload,callback:function(s){e.$set(e.generalSettings,"enableUserUpload",s)},expression:"generalSettings.enableUserUpload"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("YouTube Plugin"),messages:e.$t("Allow YouTube videos on your platform.")},model:{value:e.generalSettings.youtubePlugin,callback:function(s){e.$set(e.generalSettings,"youtubePlugin",s)},expression:"generalSettings.youtubePlugin"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Embed Player"),messages:e.$t("Allow Embed Player and the embed share options.")},model:{value:e.generalSettings.enableEmbedPlayer,callback:function(s){e.$set(e.generalSettings,"enableEmbedPlayer",s)},expression:"generalSettings.enableEmbedPlayer"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Allow guests to contact you")},model:{value:e.generalSettings.allowGuestsToContact,callback:function(s){e.$set(e.generalSettings,"allowGuestsToContact",s)},expression:"generalSettings.allowGuestsToContact"}})],1)],1),t("v-row",{staticClass:"row-row"},[t("v-col",{attrs:{cols:"12"}},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("Community")))]),t("v-divider")],1),t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Friendship System"),messages:e.$t("Disable this functionality if you do not want users to be friends with each other.")},model:{value:e.generalSettings.enableFriendshipSystem,callback:function(s){e.$set(e.generalSettings,"enableFriendshipSystem",s)},expression:"generalSettings.enableFriendshipSystem"}})],1),t("v-col",{attrs:{cols:"12"}},[e.generalSettings.enableFriendshipSystem?t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Enable Realtime"),messages:e.$t("This will allow live chat and shows what the users are currently playing.")},model:{value:e.generalSettings.enableRealtime,callback:function(s){e.$set(e.generalSettings,"enableRealtime",s)},expression:"generalSettings.enableRealtime"}}),e.generalSettings.enableRealtime?t("v-row",[t("v-col",{attrs:{cols:"12"}}),t("v-col",{attrs:{cols:"12",sm:"6"}},[t("v-text-field",{attrs:{dense:"","hide-details":"",label:e.$t("Pusher App ID"),outlined:""},model:{value:e.generalSettings.pusherAppId,callback:function(s){e.$set(e.generalSettings,"pusherAppId",s)},expression:"generalSettings.pusherAppId"}})],1),t("v-col",{attrs:{cols:"12",sm:"6"}},[t("v-text-field",{attrs:{dense:"","hide-details":"",label:e.$t("Pusher Key"),outlined:""},model:{value:e.generalSettings.pusherKey,callback:function(s){e.$set(e.generalSettings,"pusherKey",s)},expression:"generalSettings.pusherKey"}})],1),t("v-col",{attrs:{cols:"12",sm:"6"}},[t("v-text-field",{attrs:{dense:"","hide-details":"",label:e.$t("Pusher Secret"),outlined:"",type:"password"},model:{value:e.generalSettings.pusherSecret,callback:function(s){e.$set(e.generalSettings,"pusherSecret",s)},expression:"generalSettings.pusherSecret"}})],1),t("v-col",{attrs:{cols:"12",sm:"6"}},[t("v-text-field",{attrs:{dense:"","hide-details":"",label:e.$t("Pusher Cluster"),outlined:""},model:{value:e.generalSettings.pusherCluster,callback:function(s){e.$set(e.generalSettings,"pusherCluster",s)},expression:"generalSettings.pusherCluster"}})],1)],1):e._e()],1),t("v-col",{attrs:{cols:"12",sm:"6"}},[e.generalSettings.enableRealtime?t("v-switch",{attrs:{label:e.$t("Enable Chat"),messages:e.$t("Enable chat between friends")},model:{value:e.generalSettings.enableChat,callback:function(s){e.$set(e.generalSettings,"enableChat",s)},expression:"generalSettings.enableChat"}}):e._e()],1)],1):e._e()],1)],1),t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("Artists")))]),t("v-divider")],1),t("v-col",[t("v-container",[t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{"hide-details":"",label:e.$t("Enable Artist Accounts")},model:{value:e.generalSettings.enable_artist_account,callback:function(s){e.$set(e.generalSettings,"enable_artist_account",s)},expression:"generalSettings.enable_artist_account"}})],1),e.generalSettings.enable_artist_account?[t("v-col",[t("v-switch",{attrs:{label:e.$t("Allow artist account requests"),messages:e.$t("Allow users to request an artist account by sending their information to the admins")},model:{value:e.generalSettings.allowArtistAccountRequests,callback:function(s){e.$set(e.generalSettings,"allowArtistAccountRequests",s)},expression:"generalSettings.allowArtistAccountRequests"}})],1),t("v-col",[e.generalSettings.saas?t("v-switch",{attrs:{label:"Enable Artist Royalty",messages:"Enable if you want artists to earn money from streams of their songs",type:"checkbox",required:""},model:{value:e.generalSettings.enable_royalties,callback:function(s){e.$set(e.generalSettings,"enable_royalties",s)},expression:"generalSettings.enable_royalties"}}
1):e._e()],1),e.generalSettings.saas&&e.generalSettings.enable_royalties?t("v-col",{attrs:{cols:"12"}},[t("div",{staticClass:"justify-center align-start"},[t("v-text-field",{staticClass:"pr-2",attrs:{label:e.$t("Artist Royalties"),outlined:"",type:"number",messages:e.$t("How much should an artist earn per 100 play. Enter the amount in cents")},model:{value:e.generalSettings.artist_royalty,callback:function(s){e.$set(e.generalSettings,"artist_royalty",s)},expression:"generalSettings.artist_royalty"}}),t("div",{staticClass:"price d-flex mt-3"},[t("div",{staticClass:"price__currency bold"},[e._v(" "+e._s(e.defaultCurrency().symbol)+" ")]),t("div",{staticClass:"price__amount bold"},[e._v(" "+e._s(e.price(e.generalSettings.artist_royalty))+e._s(" "+e.$t("for each")+" ")+" "),t("strong",[e._v("100")]),e._v(e._s(" "+e.$t("Play"))+". ")])])],1)]):e._e(),e.generalSettings.saas?t("v-col",[t("v-text-field",{staticClass:"pr-2",attrs:{label:e.$t("Artist Sale Cut"),outlined:"",type:"number",messages:e.$t("Artist cut after the sale of his product. Enter the amount in percentage (max. 100)")},model:{value:e.saleCut,callback:function(s){e.saleCut=s},expression:"saleCut"}})],1):e._e()]:e._e()],2)],1)],1)],1),t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("External Links")))]),t("v-divider")],1),t("v-col",[t("v-container",[t("v-row",{attrs:{align:"center"}},[t("v-col",{attrs:{cols:"auto"}},[t("v-sheet",{staticClass:"pt-2",attrs:{width:"150"}},[t("v-icon",[e._v("$vuetify.icons.facebook")]),e._v(" Facebook ")],1)],1),t("v-col",[t("v-text-field",{attrs:{label:"URL",value:e.generalSettings.facebook_link,"hide-details":""},model:{value:e.generalSettings.facebook_link,callback:function(s){e.$set(e.generalSettings,"facebook_link",s)},expression:"generalSettings.facebook_link"}})],1)],1),t("v-row",{attrs:{align:"center"}},[t("v-col",{attrs:{cols:"auto"}},[t("v-sheet",{staticClass:"pt-2",attrs:{width:"150"}}),t("v-icon",[e._v("$vuetify.icons.youtube")]),e._v(" Youtube ")],1),t("v-col",[t("v-text-field",{attrs:{label:"URL",value:e.generalSettings.youtube_link,"hide-details":""},model:{value:e.generalSettings.youtube_link,callback:function(s){e.$set(e.generalSettings,"youtube_link",s)},expression:"generalSettings.youtube_link"}})],1)],1),t("v-row",{attrs:{align:"center"}},[t("v-col",{attrs:{cols:"auto"}},[t("v-sheet",{staticClass:"pt-2",attrs:{width:"150"}}),t("v-icon",[e._v("$vuetify.icons.twitter")]),e._v(" Twitter ")],1),t("v-col",[t("v-text-field",{attrs:{label:"URL",value:e.generalSettings.twitter_link,"hide-details":""},model:{value:e.generalSettings.twitter_link,callback:function(s){e.$set(e.generalSettings,"twitter_link",s)},expression:"generalSettings.twitter_link"}})],1)],1),t("v-row",{attrs:{align:"center"}},[t("v-col",{attrs:{cols:"auto"}},[t("v-sheet",{staticClass:"pt-2",attrs:{width:"150"}}),t("v-icon",[e._v("$vuetify.icons.instagram")]),e._v(" Instagram ")],1),t("v-col",[t("v-text-field",{attrs:{label:"URL",value:e.generalSettings.instagram_link,"hide-details":""},model:{value:e.generalSettings.instagram_link,callback:function(s){e.$set(e.generalSettings,"instagram_link",s)},expression:"generalSettings.instagram_link"}})],1)],1),t("v-row",{attrs:{align:"center"}},[t("v-col",{attrs:{cols:"auto"}},[t("v-sheet",{staticClass:"pt-2",attrs:{width:"150"}}),t("v-icon",[e._v("$vuetify.icons.soundcloud")]),e._v(" Soundcloud ")],1),t("v-col",[t("v-text-field",{attrs:{label:"URL",value:e.generalSettings.soundcloud_link,"hide-details":""},model:{value:e.generalSettings.soundcloud_link,callback:function(s){e.$set(e.generalSettings,"soundcloud_link",s)},expression:"generalSettings.soundcloud_link"}})],1)],1),t("v-row",{attrs:{align:"center"}},[t("v-col",{attrs:{cols:"auto"}},[t("v-sheet",{staticClass:"pt-2",attrs:{width:"150"}}),t("v-icon",[e._v("$vuetify.icons.spotify")]),e._v(" Spotify ")],1),t("v-col",[t("v-text-field",{attrs:{label:"URL",value:e.generalSettings.spotify_link,"hide-details":""},model:{value:e.generalSettings.spotify_link,callback:function(s){e.$set(e.generalSettings,"spotify_link",s)},expression:"generalSettings.spotify_link"}})],1)],1)],1)],1)],1),t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("Share Options")))]),t("div",{staticClass:"sub"}),t("v-divider")],1),t("v-container",[t("v-row",[t("v-col",{attrs:{cols:"6",sm:"4"}},[t("v-switch",{attrs:{label:"Facebook"},model:{value:e.generalSettings.enable_share_facebook,callback:function(s){e.$set(e.generalSettings,"enable_share_facebook",s)},expression:"generalSettings.enable_share_facebook"}})],1),t("v-col",{attrs:{cols:"6",sm:"4"}},[t("v-switch",{attrs:{label:"Twitter"},model:{value:e.generalSettings.enable_share_twitter,callback:function(s){e.$set(e.generalSettings,"enable_share_twitter",s)},expression:"generalSettings.enable_share_twitter"}})],1),t("v-col",{attrs:{cols:"6",sm:"4"}},[t("v-switch",{attrs:{label:"Whatsapp"},model:{value:e.generalSettings.enable_share_whatsapp,callback:function(s){e.$set(e.generalSettings,"enable_share_whatsapp",s)},expression:"generalSettings.enable_share_whatsapp"}})],1),t("v-col",{attrs:{cols:"6",sm:"4"}},[t("v-switch",{attrs:{label:"Telegram"},model:{value:e.generalSettings.enable_share_telegram,callback:function(s){e.$set(e.generalSettings,"enable_share_telegram",s)},expression:"generalSettings.enable_share_telegram"}})],1)],1)],1)],1),t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("Agreement")))]),t("div",{staticClass:"sub"}),t("v-divider")],1),t("v-container",[t("v-row",[t("v-col",{attrs:{cols:"12"}},[t("v-switch",{attrs:{label:e.$t("Disable Cookie Consent Popup")},model:{value:e.generalSettings.disableCookieConsentPopup,callback:function(s){e.$set(e.generalSettings,"disableCookieConsentPopup",s)},expression:"generalSettings.disableCookieConsentPopup"}})],1),t("v-col",{attrs:{cols:"12"}},[t("v-textarea",{attrs:{label:e.$t("Account creation Agreement"),outlined:"",messages:e.$t("The message that shows below the registration form")},model:{value:e.generalSettings.account_agreement,callback:function(s){e.$set(e.generalSettings,"account_agreement",s)},expression:"generalSettings.account_agreement"}})],1)],1)],1)],1)],1)],1)},g=[],u=i(r,c,g,!1,null,"560da1f8",null,null);
1const b=u.exports;export{b as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.