Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2539 | Rev 2541 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2539 Rev 2540
Línea 15... Línea 15...
15
        const nullTimeOptions = filtredConversations.filter(option => !option.time)
15
        const nullTimeOptions = filtredConversations.filter(option => !option.time)
16
        const numberTimeOptions = filtredConversations.filter(option => option.time.split(' ').length > 1)
16
        const numberTimeOptions = filtredConversations.filter(option => option.time.split(' ').length > 1)
Línea 17... Línea 17...
17
 
17
 
Línea 18... Línea -...
18
        const nowTimeOptions = filtredConversations.filter(option => option.time === 'Ahora')
-
 
19
 
-
 
20
        const secondsTimeOptions = numberTimeOptions.filter(option => option.time.split(' ')[1].includes('segundo')).sort((a, b) => a.time.split(' ')[0] - b.time.split(' ')[0])
-
 
21
        const minutesTimeOptions = numberTimeOptions.filter(option => option.time.split(' ')[1].includes('minuto')).sort((a, b) => a.time.split(' ')[0] - b.time.split(' ')[0])
-
 
22
        const dayTimeOptions = numberTimeOptions.filter(option => option.time.split(' ')[1].includes('dia')).sort((a, b) => a.time.split(' ')[0] - b.time.split(' ')[0])
-
 
23
        const weekTimeOptions = numberTimeOptions.filter(option => option.time.split(' ')[1].includes('semana')).sort((a, b) => a.time.split(' ')[0] - b.time.split(' ')[0])
-
 
Línea 24... Línea 18...
24
        const monthTimeOptions = numberTimeOptions.filter(option => option.time.split(' ')[1].includes('mes')).sort((a, b) => a.time.split(' ')[0] - b.time.split(' ')[0])
18
        const nowTimeOptions = filtredConversations.filter(option => option.time === 'Ahora')
25
        const yearTimeOptions = numberTimeOptions.filter(option => option.time.split(' ')[1].includes('año')).sort((a, b) => a.time.split(' ')[0] - b.time.split(' ')[0])
19
 
26
 
-
 
27
        return [
-
 
28
            ...nowTimeOptions,
-
 
29
            ...secondsTimeOptions,
-
 
30
            ...minutesTimeOptions,
-
 
31
            ...dayTimeOptions,
-
 
32
            ...weekTimeOptions,
20
 
33
            ...monthTimeOptions,
21
        return [
34
            ...yearTimeOptions,
22
            ...nowTimeOptions,
Línea 35... Línea 23...
35
            ...nullTimeOptions
23
            ...nullTimeOptions