Skip to content

Commit

Permalink
Merge pull request #41 from meshhq/feature/add-custom-domain
Browse files Browse the repository at this point in the history
Updatin custom domain
  • Loading branch information
kcoleman731 authored Jun 21, 2019
2 parents 7d2c793 + a20565c commit 7ebe5af
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 181 deletions.
1 change: 1 addition & 0 deletions dist/models/welcome.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export interface WelcomeContent {
clubhubSupportURL: string;
unsubscribeURL: string;
club: ClubInfo;
loginURL: string;
}
2 changes: 1 addition & 1 deletion dist/templates/welcome.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/transform/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export declare const AndroidAppURL = "https://play.google.com/store/apps/details
export declare const iOSBadgeURL = "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Download_on_the_App_Store_Badge.svg/1280px-Download_on_the_App_Store_Badge.svg.png";
export declare const AndroidBadgeURL = "https://www.designpieces.com/wp-content/uploads/2016/02/google-play-badge.png";
export declare const ClubHubSupportURL = "support.tryclubhub.com";
export declare const ClubHubDomain = "member.tryclubhub.com";
1 change: 1 addition & 0 deletions dist/transform/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ exports.AndroidAppURL = "https://play.google.com/store/apps/details?id=com.clubh
exports.iOSBadgeURL = "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Download_on_the_App_Store_Badge.svg/1280px-Download_on_the_App_Store_Badge.svg.png";
exports.AndroidBadgeURL = "https://www.designpieces.com/wp-content/uploads/2016/02/google-play-badge.png";
exports.ClubHubSupportURL = "support.tryclubhub.com";
exports.ClubHubDomain = "member.tryclubhub.com";
2 changes: 2 additions & 0 deletions dist/transform/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ exports.BuildEventContent = (event, club, link) => {
return richContent;
};
exports.BuildWelcomeContent = (user, club, inviteLink) => {
const loginURL = ts_optchain_1.oc(club).clubSettings.customDomain(`https://${club.domain}.tryclubhub.com`);
const iosAppURL = ts_optchain_1.oc(club).clubSettings.iosAppURL(constants.iOSAppURL);
const androidAppURL = ts_optchain_1.oc(club).clubSettings.androidAppURL(constants.AndroidAppURL);
const unsubscribeURL = `${club.domain}/tryclubhub.com/user/me`;
Expand All @@ -46,6 +47,7 @@ exports.BuildWelcomeContent = (user, club, inviteLink) => {
clubhubSupportURL: constants.ClubHubSupportURL,
unsubscribeURL: unsubscribeURL,
club: exports.BuildClubInfo(club),
loginURL: loginURL
};
return welcomeContent;
};
Expand Down
Loading

0 comments on commit 7ebe5af

Please sign in to comment.