Skip to content

Commit

Permalink
Add project hackfoldr links
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Oct 28, 2017
1 parent 68a9ba5 commit 2c17e70
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 21 deletions.
10 changes: 3 additions & 7 deletions components/App/AppFooter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { EDITOR_FACEBOOK_GROUP, CONTACT_EMAIL } from '../../constants/urls';
import { PROJECT_HACKFOLDR, CONTACT_EMAIL } from '../../constants/urls';

export default function AppFooter() {
return (
Expand All @@ -15,12 +15,8 @@ export default function AppFooter() {
/>
</a>
<p>
<a
href={EDITOR_FACEBOOK_GROUP}
target="_blank"
rel="noopener noreferrer"
>
編輯求助區
<a href={PROJECT_HACKFOLDR} target="_blank">
專案介紹
</a>
<a href={`mailto:${CONTACT_EMAIL}`}>連絡信箱</a>
Expand Down
6 changes: 3 additions & 3 deletions components/App/AppHeader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { connect } from 'react-redux';
import { EDITOR_FACEBOOK_GROUP, EDITOR_REFERENCE } from '../../constants/urls';
import { EDITOR_FACEBOOK_GROUP, PROJECT_HACKFOLDR } from '../../constants/urls';
import { Link } from '../../routes';
import { showDialog, logout } from '../../redux/auth';

Expand All @@ -20,12 +20,12 @@ function AppHeader({ user, onLoginClick, onLogoutClick }) {
FB 編輯求助區
</a>
<a
href={EDITOR_REFERENCE}
href={PROJECT_HACKFOLDR}
target="_blank"
rel="noopener noreferrer"
className="nav-item hidden-xs"
>
編輯手冊
專案介紹
</a>
</nav>
{user
Expand Down
14 changes: 7 additions & 7 deletions components/ReplyForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
TYPE_SUGGESTION_OPTIONS,
} from '../constants/replyType';

import { QUICKSTART, EDITOR_REFERENCE } from '../constants/urls';
import { EDITOR_FACEBOOK_GROUP, EDITOR_REFERENCE } from '../constants/urls';

const localStorage = typeof window === 'undefined' ? {} : window.localStorage;
const formInitialState = {
Expand Down Expand Up @@ -138,11 +138,7 @@ export default class ReplyForm extends React.PureComponent {
return (
<p>
查證範圍請參考{' '}
<a
href={`${EDITOR_REFERENCE}#${TYPE_NAME[replyType]}`}
target="_blank"
rel="noopener noreferrer"
>
<a href={EDITOR_REFERENCE} target="_blank">
《Cofacts 編輯規則》
</a>
</p>
Expand Down Expand Up @@ -187,7 +183,11 @@ export default class ReplyForm extends React.PureComponent {
>
Cofacts 編輯規則
</a>
<a href={QUICKSTART} target="_blank" rel="noopener noreferrer">
<a
href={EDITOR_FACEBOOK_GROUP}
target="_blank"
rel="noopener noreferrer"
>
Facebook 編輯求助區
</a>
歡迎您 :)
Expand Down
9 changes: 5 additions & 4 deletions constants/urls.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export const USER_REFERENCE = 'https://hackmd.io/s/BJPLbAKwb';
export const EDITOR_REFERENCE = 'https://hackmd.io/s/SJPAscuP-';
export const USER_REFERENCE =
'http://beta.hackfoldr.org/cofacts/https%253A%252F%252Fhackmd.io%252Fs%252FBJPLbAKwb';
export const PROJECT_HACKFOLDR = 'http://beta.hackfoldr.org/cofacts';
export const EDITOR_REFERENCE =
'http://beta.hackfoldr.org/cofacts/https%253A%252F%252Fhackmd.io%252Fs%252FSJPAscuP-';
export const EDITOR_FACEBOOK_GROUP =
'https://www.facebook.com/groups/cofacts/permalink/1959641497601003/';
export const QUICKSTART =
'https://www.facebook.com/groups/cofacts/permalink/1959641497601003/';
export const CONTACT_EMAIL = 'cofacts@googlegroups.com';

0 comments on commit 2c17e70

Please sign in to comment.