From ee04ccd494b8a2dd1e535168979596c9907cd0ab Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 21 Nov 2020 15:04:17 +0100 Subject: share url --- animism-align/frontend/app/constants.js | 2 ++ .../frontend/app/views/viewer/sections/viewer.sections.share.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'animism-align/frontend') diff --git a/animism-align/frontend/app/constants.js b/animism-align/frontend/app/constants.js index db3d666..0125ec9 100644 --- a/animism-align/frontend/app/constants.js +++ b/animism-align/frontend/app/constants.js @@ -5,6 +5,7 @@ export const ENV_DEVELOPMENT = NODE_ENV !== 'production' export const ENV_PRODUCTION = NODE_ENV === 'production' export const URLS = ENV_PRODUCTION ? { + share_url: 'https://animism.e-flux.com/episode1/', audio: '/episode1/media/animism_episode_01.mp3', eflux_logo: 'https://e-flux.com/', } : { @@ -12,6 +13,7 @@ export const URLS = ENV_PRODUCTION ? { peaks: '/static/data_store/peaks/peaks.json', text: '/static/data_store/peaks/text.txt', eflux_logo: '/', + share_url: 'https://animism.e-flux.com/', } export const WAVEFORM_SIZE = 300 diff --git a/animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js b/animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js index 6b3deaf..3950743 100644 --- a/animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js +++ b/animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js @@ -3,6 +3,7 @@ import React, { Component } from 'react' import actions from 'app/actions' import { writeToClipboard } from 'app/utils' import { Arrow } from '../nav/viewer.icons' +import { URLS } from 'app/constants' export default class ViewerSectionsShare extends Component { state = { @@ -29,7 +30,7 @@ export default class ViewerSectionsShare extends Component { if (this.state.copying) className += " copying" if (this.state.copied) className += " copied" const title = "Animism: Episode 1" - const url = "https://animism.e-flux.com/episode1/" + const url = URLS.share_url const mailtoURL = ( "mailto:?subject=" + encodeURIComponent(title) + "&body=" + encodeURIComponent("I want to share this post on e-flux: " + url + "\n\n\n") -- cgit v1.2.3-70-g09d2