improvements to immersive fs, moved sidebar-library-item to its own js component

This commit is contained in:
booploops 2022-06-30 01:12:19 -07:00
parent 31af264c7a
commit b7d3831b57
6 changed files with 92 additions and 53 deletions

View file

@ -52,45 +52,6 @@ Vue.component("animated-number", {
},
});
Vue.component("sidebar-library-item", {
template: "#sidebar-library-item",
props: {
name: {
type: String,
required: true,
},
page: {
type: String,
required: true,
},
svgIcon: {
type: String,
required: false,
default: "",
},
svgIconName: {
type: String,
required: false
},
cdClick: {
type: Function,
required: false,
},
},
data: function () {
return {
app: app,
svgIconData: "",
};
},
async mounted() {
if (this.svgIcon) {
this.svgIconData = this.svgIcon;
}
},
methods: {},
});
function fallbackinitMusicKit() {
const request = new XMLHttpRequest();