ui: drop unreferenced types
This commit is contained in:
parent
0f89770560
commit
6ea2be8dc4
8 changed files with 0 additions and 135 deletions
|
|
@ -1,20 +0,0 @@
|
|||
import Record from 'Types/Record';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
export default Record({
|
||||
announcementId: undefined,
|
||||
type: undefined,
|
||||
title: undefined,
|
||||
description: undefined,
|
||||
imageUrl: undefined,
|
||||
createdAt: undefined,
|
||||
viewed: undefined,
|
||||
buttonUrl: undefined,
|
||||
buttonText: undefined
|
||||
}, {
|
||||
idKey: 'announcementId',
|
||||
fromJS: ({ createdAt, ...rest }) => ({
|
||||
...rest,
|
||||
createdAt: createdAt ? DateTime.fromMillis(createdAt) : undefined,
|
||||
}),
|
||||
});
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
export const ALL = 'all';
|
||||
export const DESKTOP = 'desktop';
|
||||
export const MOBILE = 'mobile';
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
import Record from 'Types/Record';
|
||||
import { validateURL, validateName } from 'App/validate';
|
||||
|
||||
export default Record({
|
||||
environmentId: undefined,
|
||||
url: '',
|
||||
name: '',
|
||||
default: undefined,
|
||||
}, {
|
||||
idKey: 'environmentId',
|
||||
methods: {
|
||||
validate() {
|
||||
return validateURL(this.url) && validateName(this.name, { empty: false });
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
import Record from 'Types/Record';
|
||||
|
||||
export default Record({
|
||||
feedbackButtonText: 'Feedback',
|
||||
feedbackButtonPosition: 'right',
|
||||
feedbackButtonBackgroundColor: '#3EAAAF',
|
||||
feedbackButtonBorderColor: '#3EAAAF',
|
||||
feedbackButtonFontColor: '#FFFFFF',
|
||||
feedbackButtonBackgroundColorHover: '#3EAAAF',
|
||||
feedbackButtonBorderColorHover: '#3EAAAF',
|
||||
|
||||
feedbackTitleText: 'How would you rate your experience.',
|
||||
// labels: 'Hate,Dislike,Neutral,Happy,Love',
|
||||
feedbackSubmitText: 'Send',
|
||||
feedbackSubmitBackgroundColor: '#3EAAAF',
|
||||
feedbackSubmitBorderColor: '#3EAAAF',
|
||||
feedbackSubmitFontColor: '#FFFFFF',
|
||||
feedbackSubmitBackgroundColorHover: '#3EAAAF',
|
||||
feedbackSubmitBorderColorHover: '#3EAAAF',
|
||||
});
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
import Record from 'Types/Record';
|
||||
|
||||
export default Record({
|
||||
id: undefined,
|
||||
name: undefined,
|
||||
email: undefined,
|
||||
}, {
|
||||
})
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
import Record from 'Types/Record';
|
||||
|
||||
export default Record({
|
||||
id: undefined,
|
||||
color: undefined,
|
||||
description: '',
|
||||
name: undefined,
|
||||
iconUrl: undefined
|
||||
}, {
|
||||
fromJS: ({ iconUrl, color, ...issueType }) => ({
|
||||
...issueType,
|
||||
color,
|
||||
iconUrl: iconUrl ?
|
||||
<img className="mr-2" src={ iconUrl } width="13" height="13" /> :
|
||||
<div className="mr-2 w-2 h-2 rounded-full float-left" style={{ backgroundColor: `#${color}`}} />,
|
||||
}),
|
||||
})
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
import Record from 'Types/Record';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
export default Record({
|
||||
rehydrationId: undefined,
|
||||
name: '',
|
||||
startAt: '',
|
||||
endAt: '',
|
||||
createdAt: undefined,
|
||||
state: undefined, // in_progress, fail, succeess
|
||||
createdBy: undefined,
|
||||
sessionsCount: undefined
|
||||
}, {
|
||||
idKey: 'rehydrationId',
|
||||
methods: {
|
||||
validate() {
|
||||
return this.name !== '';
|
||||
},
|
||||
period() {
|
||||
return this.startAt.toFormat('LLL dd, yyyy') + ' - ' + this.endAt.toFormat('LLL dd, yyyy');
|
||||
},
|
||||
isInProgress() {
|
||||
return this.state === 'in progress';
|
||||
}
|
||||
},
|
||||
fromJS: ({ startTs, endTs, createdAt, userId, ...rest }) => ({
|
||||
...rest,
|
||||
createdBy: userId,
|
||||
createdAt: createdAt && DateTime.fromMillis(createdAt || 0),
|
||||
endAt: endTs && DateTime.fromMillis(endTs || 0),
|
||||
startAt: startTs && DateTime.fromMillis(startTs || 0),
|
||||
}),
|
||||
});
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
import Record from 'Types/Record';
|
||||
|
||||
const TargetCustom = Record({
|
||||
targetId: '',
|
||||
label: '',
|
||||
path: null,
|
||||
isCustom: true,
|
||||
location: '',
|
||||
}, {
|
||||
fromJS: (target) => ({
|
||||
...target,
|
||||
label: target.label || target.targetLabel,
|
||||
path: target.path || target.targetSelector,
|
||||
}),
|
||||
idKey: 'targetId',
|
||||
});
|
||||
|
||||
export default TargetCustom;
|
||||
Loading…
Add table
Reference in a new issue