-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d91b5ce
commit eebd714
Showing
7 changed files
with
158 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<div class="relative flex min-h-screen w-screen bg-gray-100 justify-center w-full sl-bg"> | ||
<UserProfileView | ||
v-if="theme" | ||
:preview="true" | ||
:profileData="theme" | ||
/> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
middleware: 'authenticated', | ||
data() { | ||
return { | ||
id: null, | ||
theme: null, | ||
themes: [] | ||
} | ||
}, | ||
async mounted() { | ||
this.id = this.$route.path.replace('/dashboard/appearance/preview/', ''); | ||
this.loadThemes(); | ||
}, | ||
methods: { | ||
async loadThemes() { | ||
try { | ||
// Grab themes from response | ||
this.themes = await this.$axios.$post('/themes', { | ||
token: this.$store.getters['auth/getToken'], | ||
includeGlobal: false | ||
}); | ||
for(let i=0;i<this.themes.length;i++) { | ||
if(this.themes[i].id == this.id) { | ||
this.theme = this.themes[i]; | ||
} | ||
} | ||
console.log(this.themes); | ||
} catch (error) { | ||
console.log('Failed to get themes'); | ||
console.log(error); | ||
} | ||
}, | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div class="relative flex min-h-screen w-screen bg-gray-100 justify-center w-full sl-bg"> | ||
<UserProfileView | ||
v-if="addon.resource" | ||
:preview="true" | ||
:profileData="addon.resource" | ||
/> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
middleware: 'authenticated', | ||
data() { | ||
return { | ||
id: null, | ||
addon: { | ||
resource: null | ||
} | ||
} | ||
}, | ||
async mounted() { | ||
this.id = this.$route.path.replace('/dashboard/marketplace/preview/', ''); | ||
this.addon = await this.$axios.$post('/marketplace/addon/' + this.id, { | ||
token: this.$store.getters['auth/getToken'], | ||
detailed: true | ||
}); | ||
}, | ||
methods: { | ||
} | ||
} | ||
</script> |