Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5812 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4808 efrain 1
<?php
2
 
5765 efrain 3
$reactions = json_encode($reactions);
4
 
4808 efrain 5
$js = <<<JS
6
	const backendVars = {
7
		post: {
8
          id: '$id',
9
          uuid: '$uuid',
10
          title: '$title',
11
          description: `$description`,
12
          url: '$url',
13
          date: '$date',
14
          status: '$status',
15
          image: '$image',
16
          file: '$file',
17
          addedOn: '$added_on',
18
          share_external_url: '$share_external_url',
19
          total_share_external: '$total_share_external',
20
          share_increment_external_counter_url: '$share_increment_external_counter_url',
7100 efrain 21
          save_reaction_url : '$save_reaction_url',
5765 efrain 22
          delete_reaction_url : '$delete_reaction_url',
23
          my_reaction: '$my_reaction',
5812 stevensc 24
          reactions: $reactions,
4808 efrain 25
          comments_url: '$comments_url',
26
          comments_add_url: '$comments_add_url',
27
 
28
        }
29
	}
5118 stevensc 30
 
31
  const LABELS = {
32
    VIEW_MORE: 'LABEL_VIEW_MORE',
33
    NOT_AVAILABLE_POSTS: 'LABEL_NOT_AVAILABLE_POSTS',
34
    POSTS: 'LABEL_POSTS',
35
    COMMENTS: 'LABEL_COMMENTS',
36
    LIKE: 'LABEL_LIKE',
37
    UNLIKE: 'LABEL_UNLIKE',
38
    DELETE: 'LABEL_DELETE',
39
    ACCEPT: 'LABEL_ACCEPT',
5120 stevensc 40
    WRITE_A_COMMENT: 'LABEL_WRITE_A_COMMENT',
41
    SENDS: 'LABEL_SENDS'
5118 stevensc 42
  }
43
 
4808 efrain 44
JS;
45
$this->inlineScript()->appendScript($js);
46
$this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
4817 stevensc 47
$this->headLink()->appendStylesheet('/react-bundles/postView/main.css');
4808 efrain 48
$this->inlineScript()->appendFile('/react-bundles/postView/postViewBundle.js');
49
?>
50
 
51
<div id="react-post-view" style="min-height: 80vh;">
52
  <div class="process-comm" id="paginator-process-comm">
53
    <div class="spinner">
54
      <div class="bounce1"></div>
55
      <div class="bounce2"></div>
56
      <div class="bounce3"></div>
57
    </div>
58
  </div>
59
</div>