forked from nfqakademija/kickstart
-
Notifications
You must be signed in to change notification settings - Fork 34
Indre sf2 hw v2 #306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aurelijusb
wants to merge
9
commits into
homework-2019-11-14
Choose a base branch
from
indre-sf2-hw-v2
base: homework-2019-11-14
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Indre sf2 hw v2 #306
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
aabce13
test add
indruteok 054f5f3
code style
indruteok 683f7f1
NfqHw11_IR
indruteok 66469f6
add hw
indruteok 6cfe044
add hw
indruteok 771a687
test3
indruteok 439c702
test5
indruteok 8687bd2
Merge remote-tracking branch 'indre/homework-2019-11-14' into indre-s…
aurelijusb b72a81a
Fix persmisions and JavaScript depenendencies
aurelijusb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| $body-bg: #ff622b; | ||
| // customize some Bootstrap variables | ||
| $primary: darken(#428bca, 20%); | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,21 +1,51 @@ | ||
| const axios = require('axios'); | ||
|
|
||
| let name = document.getElementById('name'); | ||
| let validationResult = document.getElementById('validation-result'); | ||
|
|
||
| let validationResultName = document.getElementById('validation-result-name'); | ||
|
|
||
| const validateName = function () { | ||
| validationResult.innerText = '...'; | ||
| axios.post(validationResult.dataset.path, {input: name.value}) | ||
| .then(function(response) { | ||
| validationResultName.innerText = '...'; | ||
| axios.post(validationResultName.dataset.path, {input: name.value}) | ||
| .then(function (response) { | ||
| if (response.data.valid) { | ||
| validationResult.innerHTML = ":)"; | ||
| validationResultName.innerHTML = ":)"; | ||
| } else { | ||
| validationResult.innerHTML = ":("; | ||
| validationResultName.innerHTML = ":("; | ||
| } | ||
| }) | ||
| .catch(function (error) { | ||
| validationResult.innerText = 'Error: ' + error; | ||
| validationResultName.innerText = 'Error: ' + error; | ||
| }); | ||
| }; | ||
|
|
||
|
|
||
| let team = document.getElementById('team'); | ||
| let validateResultTeam = document.getElementById('validation-result-team'); | ||
| const validateTeam = function () { | ||
| validateResultTeam.innerText = '...'; | ||
| axios.post(validateResultTeam.dataset.path, { input: team.value}) | ||
| .then(function (response) { | ||
| if (response.data.valid) { | ||
| validateResultTeam.innerHTML = ":)"; | ||
| } else { | ||
| validateResultTeam.innerHTML = ":("; | ||
| } | ||
| }) | ||
| .catch(function (error) { | ||
| validateResultTeam.innerText = 'Error: ' + error; | ||
| }); | ||
| }; | ||
|
|
||
| name.onkeyup = validateName; | ||
| name.onchange = validateName; | ||
| team.onkeyup = validateTeam; | ||
| team.onchange = validateTeam; | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
This file contains hidden or 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,181 @@ | ||
| { | ||
| "team1": { | ||
| "name": "Team1", | ||
| "mentors": [ | ||
| "Mantas" | ||
| ], | ||
| "students": [ | ||
| "Tadas", | ||
| "Gytis", | ||
| "Ričardas" | ||
| ] | ||
| }, | ||
| "baltichalatai": { | ||
| "name": "BaltiChalatai", | ||
| "mentors": [ | ||
| "Lukas" | ||
| ], | ||
| "students": [ | ||
| "Vytas", | ||
| "Lukas", | ||
| "Diana" | ||
| ] | ||
| }, | ||
| "nnizer": { | ||
| "name": "ePacientas", | ||
| "mentors": [ | ||
| "Tadas" | ||
| ], | ||
| "students": [ | ||
| "Kornelijus", | ||
| "Dominykas", | ||
| "Miglė" | ||
| ] | ||
| }, | ||
| "activegen": { | ||
| "name": "ActiveGen", | ||
| "mentors": [ | ||
| "Arnoldas" | ||
| ], | ||
| "students": [ | ||
| "Andrius", | ||
| "Nojus", | ||
| "Martynas", | ||
| "Edvinas" | ||
| ] | ||
| }, | ||
| "mms": { | ||
| "name": "Membership-management-system", | ||
| "mentors": [ | ||
| "Mindaugas" | ||
| ], | ||
| "students": [ | ||
| "Erika", | ||
| "Rokas", | ||
| "Valentinas", | ||
| "Eligijus" | ||
| ] | ||
| }, | ||
| "pamainos": { | ||
| "name": "NFQ pamainu sistema", | ||
| "mentors": [ | ||
| "Paulius" | ||
| ], | ||
| "students": [ | ||
| "Liudas", | ||
| "Justina", | ||
| "Andrius" | ||
| ] | ||
| }, | ||
| "receptai": { | ||
| "name": "Receptai", | ||
| "mentors": [ | ||
| "Mantas" | ||
| ], | ||
| "students": [ | ||
| "Arnoldas", | ||
| "Arentas", | ||
| "Tautvydas" | ||
| ] | ||
| }, | ||
| "pulse": { | ||
| "name": "NFQ pulse", | ||
| "mentors": [ | ||
| "Lorenas" | ||
| ], | ||
| "students": [ | ||
| "Arvydas", | ||
| "Titas", | ||
| "Kristijonas", | ||
| "Andrius" | ||
| ] | ||
| }, | ||
| "lita": { | ||
| "name": "NFQ Petro atrankos problema akademijai", | ||
| "mentors": [ | ||
| "Paulius" | ||
| ], | ||
| "students": [ | ||
| "Kristina", | ||
| "Indrė", | ||
| "Dmitri" | ||
| ] | ||
| }, | ||
| "myfleet": { | ||
| "name": "MyFleet", | ||
| "mentors": [ | ||
| "Laurynas" | ||
| ], | ||
| "students": [ | ||
| "Artūras", | ||
| "Ignas", | ||
| "Jonas" | ||
| ] | ||
| }, | ||
| "career": { | ||
| "name": "NFQ Career Criteria Assessment", | ||
| "mentors": [ | ||
| "Erikas" | ||
| ], | ||
| "students": [ | ||
| "Matas", | ||
| "Andrius", | ||
| "Ainis" | ||
| ] | ||
| }, | ||
| "carparking": { | ||
| "name": "NFQ Car parking", | ||
| "mentors": [ | ||
| "Andrejus" | ||
| ], | ||
| "students": [ | ||
| "Kęstas", | ||
| "Lukas", | ||
| "Lukas" | ||
| ] | ||
| }, | ||
| "podcast": { | ||
| "name": "Krepšinio podcastai", | ||
| "mentors": [ | ||
| "Eligijus" | ||
| ], | ||
| "students": [ | ||
| "Edvardas", | ||
| "Nerijus", | ||
| "Kazimieras" | ||
| ] | ||
| }, | ||
| "Barakas": { | ||
| "name": "barakas", | ||
| "mentors": [ | ||
| "Armandas" | ||
| ], | ||
| "students": [ | ||
| "Raimondas", | ||
| "Mantas", | ||
| "Tomas" | ||
| ] | ||
| }, | ||
| "devcollab": { | ||
| "name": "Education sharing platform", | ||
| "mentors": [ | ||
| "Viktoras" | ||
| ], | ||
| "students": [ | ||
| "Karolis", | ||
| "Arnas", | ||
| "Evaldas", | ||
| "Algirdas" | ||
| ] | ||
| }, | ||
| "hack<b>er</b>'is po .mySubdomain &project=123": { | ||
| "name": "' OR 1 -- DROP DATABASE", | ||
| "mentors": [ | ||
| "<b>Ponas</b> Programišius" | ||
| ], | ||
| "students": [ | ||
| "Aurelijus", | ||
| "<b>Ir</b> jo \"geras\" draug'as" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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,27 @@ | ||
| <?php | ||
|
|
||
| namespace App\Controller; | ||
|
|
||
| use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | ||
| use Symfony\Component\Routing\Annotation\Route; | ||
| use Symfony\Component\HttpFoundation\Request; | ||
|
|
||
| class StudentController extends AbstractController | ||
| { | ||
| /** | ||
| * @Route("/student", name="student") | ||
| * @param Request $request | ||
| * @return \Symfony\Component\HttpFoundation\Response | ||
| */ | ||
|
|
||
| public function index(Request $request) | ||
| { | ||
| $name = $request->get('name'); | ||
| $project = $request->get('project'); | ||
|
|
||
| return $this->render('student/index.html.twig', [ | ||
| 'name' => $name, | ||
| 'project' => $project, | ||
| ]); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jei nesikartoju...