mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 13:11:57 +08:00
cleaned up config as js instead of json file
This commit is contained in:
@@ -6,7 +6,7 @@ import moment from 'moment';
|
||||
import { Button, Icon } from 'plugin-api/beta/client/components/ui';
|
||||
import styles from './AccountDeletionRequestedSign.css';
|
||||
import { getErrorMessages } from 'coral-framework/utils';
|
||||
import { scheduledDeletionDelayHours } from '../../config.json';
|
||||
import { scheduledDeletionDelayHours } from '../../config';
|
||||
|
||||
class AccountDeletionRequestedSign extends React.Component {
|
||||
cancelAccountDeletion = async () => {
|
||||
|
||||
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
||||
import { Button } from 'plugin-api/beta/client/components/ui';
|
||||
import styles from './DeleteMyAccountStep.css';
|
||||
import { t } from 'plugin-api/beta/client/services';
|
||||
import { scheduledDeletionDelayHours } from '../../config.json';
|
||||
import { scheduledDeletionDelayHours } from '../../config';
|
||||
|
||||
const DeleteMyAccountStep1 = props => (
|
||||
<div className={styles.step}>
|
||||
|
||||
@@ -4,7 +4,7 @@ import { t } from 'plugin-api/beta/client/services';
|
||||
import { Button } from 'plugin-api/beta/client/components/ui';
|
||||
import styles from './DownloadCommentHistory.css';
|
||||
import { getErrorMessages } from 'coral-framework/utils';
|
||||
import { downloadRateLimitDays } from '../../config.json';
|
||||
import { downloadRateLimitDays } from '../../config';
|
||||
|
||||
export const readableDuration = durAsHours => {
|
||||
const durAsDays = Math.ceil(durAsHours / 24);
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
scheduledDeletionDelayHours: 24,
|
||||
downloadRateLimitDays: 7,
|
||||
};
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"scheduledDeletionDelayHours": 24,
|
||||
"downloadRateLimitDays": 7
|
||||
}
|
||||
@@ -11,7 +11,7 @@ const { URL } = require('url');
|
||||
const {
|
||||
scheduledDeletionDelayHours,
|
||||
downloadRateLimitDays,
|
||||
} = require('../config.json');
|
||||
} = require('../config');
|
||||
|
||||
// generateDownloadLinks will generate a signed set of links for a given user to
|
||||
// download an archive of their data.
|
||||
|
||||
Reference in New Issue
Block a user