Chrisneuroth has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374786 )

Change subject: Use result of rendering the full lexeme view in node.js
......................................................................

Use result of rendering the full lexeme view in node.js

Change-Id: I63acc0f433a48fa49171aadcb421b78191905e3e
---
M src/View/LexemeView.php
1 file changed, 3 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseLexeme 
refs/changes/86/374786/1

diff --git a/src/View/LexemeView.php b/src/View/LexemeView.php
index c9f2468..9df2853 100644
--- a/src/View/LexemeView.php
+++ b/src/View/LexemeView.php
@@ -303,26 +303,20 @@
                );
 
                $post = [
-                       'template' => $this->getRawLemmaVueTemplate(),
-                       'data' => [
-                               'isInitialized' => false,
-                               'inEditMode' => false,
-                               'isSaving' => false,
-                               'lemmas' => $lemmas
-                       ],
+                       'lemmas' => $lemmas
                ];
 
                $opts = array('http' =>
                        array(
                                'method'  => 'POST',
-                               'header'  => 'Content-type: application/json',
+                               'header'  => 'Content-Type: application/json',
                                'content' => json_encode($post)
                        )
                );
 
                $context  = stream_context_create($opts);
 
-               $response = file_get_contents('http://nodejs:3000', false, 
$context);
+               $response = 
file_get_contents('http://nodejs:3000/lemma-widget', false, $context);
 
                return '<div id="lemmas-widget">'
                        . $response

-- 
To view, visit https://gerrit.wikimedia.org/r/374786
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I63acc0f433a48fa49171aadcb421b78191905e3e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseLexeme
Gerrit-Branch: master
Gerrit-Owner: Chrisneuroth <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to