Skip to content

Commit

Permalink
adding byline variables
Browse files Browse the repository at this point in the history
  • Loading branch information
platform-kit committed Jul 26, 2022
1 parent a7f0744 commit 23f8124
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Binary file modified docs/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/screenshot.psd
Binary file not shown.
4 changes: 3 additions & 1 deletion ui/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ export default {
baseUrl: process.env.BASE_URL || "https://localhost:3000",
logo: process.env.LOGO || "icon.png",
features: features,
allowedDomains: allowedDomains
allowedDomains: allowedDomains,
byline: process.env.BYLINE,
bylineLink: process.env.BYLINE_LINK
},

fontAwesome: {
Expand Down
13 changes: 10 additions & 3 deletions ui/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@
><span class="opacity-50">Sign in with </span>GitHub</span
>
</a>
<span class="badge mt-3 text-small border footer-badge"
><b-icon-lock class="mr-2"></b-icon-lock>Auth by PlatformKit</span
<a :href="bylineLink" class="badge mt-3 text-small border footer-badge"
><b-icon-lock class="mr-2"></b-icon-lock>{{ byline }}</a
>
</div>
</div>
Expand Down Expand Up @@ -280,10 +280,18 @@ export default {
email: null,
platforms: null,
redirect: null,
byline: "Auth by PlatformKit",
bylineLink: null,
};
},
async mounted() {
this.platforms = process.env.features;
if (process.env.byline != null && process.env.byline != "") {
this.byline = process.env.byline;
}
if (process.env.bylineLink != null && process.env.bylineLink != "") {
this.bylineLink = process.env.bylineLink;
}
console.log("Features Enabled: \n");
console.log(process.env.features);
const params = new URLSearchParams(window.location.search);
Expand Down Expand Up @@ -318,7 +326,6 @@ export default {
<style scoped>
#layout {
min-height: 100vh;
}
.icon-facebook {
Expand Down

0 comments on commit 23f8124

Please sign in to comment.