-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from CaptainFact/staging
Release 0.8.16
- Loading branch information
Showing
148 changed files
with
15,154 additions
and
8,502 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"presets": ["es2015", "react"], | ||
"presets": [ | ||
"es2015", | ||
"react" | ||
], | ||
"plugins": [ | ||
"transform-decorators-legacy", | ||
"transform-runtime", | ||
"transform-class-properties", | ||
"transform-object-rest-spread", | ||
["inline-json-import", {}] | ||
"transform-object-rest-spread" | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# CaptainFact frontend container | ||
# You must attach a volume containing cert.pem + privkey.pem at /etc/nginx/cert/ | ||
FROM betree/centos-nginx-nodejs-sass:latest | ||
FROM betree/centos-nginx-nodejs:latest | ||
MAINTAINER Benjamin Piouffle <[email protected]> | ||
|
||
WORKDIR /opt/app | ||
|
||
# Cache dependencies | ||
COPY package.json . | ||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
|
||
# Build project | ||
|
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import React from 'react' | ||
import { translate } from 'react-i18next' | ||
import { withNamespaces } from 'react-i18next' | ||
|
||
import { Icon } from '../Utils/Icon' | ||
|
||
|
||
const IconModerationPending = ({t}) => ( | ||
const IconModerationPending = ({ t }) => ( | ||
<Icon | ||
className="reported" | ||
name="ban" | ||
title={t('pending')} | ||
/> | ||
) | ||
|
||
export default translate('moderation')(IconModerationPending) | ||
export default withNamespaces('moderation')(IconModerationPending) |
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import React from 'react' | ||
import { connect } from 'react-redux' | ||
import { translate } from 'react-i18next' | ||
import { withNamespaces } from 'react-i18next' | ||
|
||
import { CommentDisplay } from './CommentDisplay' | ||
import ModalConfirmDelete from '../Modal/ModalConfirmDelete' | ||
|
||
|
||
const ModalDeleteComment = ({handleAbort, comment, replies, t, ...otherProps}) => ( | ||
const ModalDeleteComment = ({ handleAbort, comment, replies, t, ...otherProps }) => ( | ||
<ModalConfirmDelete | ||
handleAbort={handleAbort} | ||
title={t('comment.deleteThread', {count: replies && replies.size + 1})} | ||
content={(<CommentDisplay comment={comment} withoutActions/>)} | ||
title={t('comment.deleteThread', { count: replies && replies.size + 1 })} | ||
content={(<CommentDisplay comment={comment} withoutActions />)} | ||
{...otherProps} | ||
/> | ||
) | ||
|
||
export default | ||
connect((state, props) => ({ | ||
replies: state.VideoDebate.comments.replies.get(props.comment.id)}) | ||
)(translate('videoDebate')(ModalDeleteComment)) | ||
replies: state.VideoDebate.comments.replies.get(props.comment.id) | ||
}) | ||
)(withNamespaces('videoDebate')(ModalDeleteComment)) |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import React from 'react' | ||
|
||
|
||
const TextareaLengthCounter = ({length, maxLength}) => | ||
const TextareaLengthCounter = ({ length, maxLength }) => ( | ||
<span className="textarea-length-counter"> | ||
<span className={`value ${length > maxLength ? 'invalid' : ''}`}> | ||
{length} | ||
</span> | ||
/ {maxLength} | ||
</span> | ||
) | ||
|
||
export default TextareaLengthCounter |
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
Oops, something went wrong.