This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from VKEA/develop
Develop
- Loading branch information
Showing
7 changed files
with
739 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react' | ||
|
||
function MyComponent(props) { | ||
return ( | ||
<div class="example-wrapper"> | ||
<h1>Hello World! ✅</h1> | ||
|
||
This friendly message is coming from: | ||
<ul> | ||
<li>Your controller at <code>src/Controller/DefaultController.php</code></li> | ||
<li>Your template at <code>templates/default/index.html.twig</code></li> | ||
<li>Your react component at <code>assets/scripts/MyComponent.js</code></li> | ||
</ul> | ||
</div> | ||
) | ||
} | ||
|
||
export default MyComponent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace App\Controller; | ||
|
||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | ||
use Symfony\Component\Routing\Annotation\Route; | ||
|
||
class DefaultController extends AbstractController | ||
{ | ||
/** | ||
* @Route("/", name="index") | ||
*/ | ||
public function index() | ||
{ | ||
return $this->render('default/index.html.twig', [ | ||
'controller_name' => 'DefaultController', | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %}Hello DefaultController!{% endblock %} | ||
|
||
{% block body %} | ||
<style> | ||
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; } | ||
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; } | ||
</style> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
{% endblock %} | ||
|
||
{% block javascripts %} | ||
{{ encore_entry_script_tags('App') }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.