fixes
This commit is contained in:
@@ -22,6 +22,9 @@ class TermsHandler extends Basehandler
|
||||
|
||||
public function handle(array $params): ResponseInterface
|
||||
{
|
||||
if (mb_strlen($_GET['string']) == 0)
|
||||
return new JsonApiResponse(200, ['status' => 'ok', 'terms' => []]);
|
||||
|
||||
$translation = $this->em->getTranslationRepository()->findOneBy(['id' => $_GET['translation']]);
|
||||
$this->termFacade->setDirection($translation->direction);
|
||||
$q = $this->termFacade->findByStringFull($_GET['string'], $translation->dictionary, '', mb_strlen($_GET['string']) <= 3 ? false : true);
|
||||
|
||||
@@ -4,25 +4,11 @@
|
||||
>
|
||||
<div class="container flex flex-wrap justify-between items-center mx-auto">
|
||||
<a href="#" class="flex">
|
||||
<svg
|
||||
<img
|
||||
class="mr-3 h-10"
|
||||
viewBox="0 0 52 72"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
:src="logoSvg"
|
||||
>
|
||||
<path
|
||||
d="M1.87695 53H28.7791C41.5357 53 51.877 42.7025 51.877 30H24.9748C12.2182 30 1.87695 40.2975 1.87695 53Z"
|
||||
fill="#76A9FA"
|
||||
/>
|
||||
<path
|
||||
d="M0.000409561 32.1646L0.000409561 66.4111C12.8618 66.4111 23.2881 55.9849 23.2881 43.1235L23.2881 8.87689C10.9966 8.98066 1.39567 19.5573 0.000409561 32.1646Z"
|
||||
fill="#A4CAFE"
|
||||
/>
|
||||
<path
|
||||
d="M50.877 5H23.9748C11.2182 5 0.876953 15.2975 0.876953 28H27.7791C40.5357 28 50.877 17.7025 50.877 5Z"
|
||||
fill="#1C64F2"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<span
|
||||
class="self-center text-lg font-semibold whitespace-nowrap dark:text-white"
|
||||
>Slovník</span
|
||||
@@ -145,9 +131,10 @@ import SearchForm from './components/SearchForm.vue'
|
||||
import TranslationContent from './components/Translation.vue'
|
||||
import Translation from './components/Translation.vue'
|
||||
import axios from 'axios'
|
||||
import logoSvg from './assets/logo.svg'
|
||||
|
||||
//console.log(trData)
|
||||
console.log(logoUrl)
|
||||
console.log(logoSvg)
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
1
src/scripts/assets/logo.svg
Normal file
1
src/scripts/assets/logo.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="2500" height="1877" viewBox="18.641 15 858.719 644.821"><path d="M448 646L31 160 172 24h552l141 136-417 486z" fill="#f70000" stroke="#000" stroke-width="18"/><g fill="#fff800" stroke="#000" stroke-width="16"><path d="M206.949 298.431L278.5 383c39.277-36.18 131.561-27.859 160.25 21.5 79.642 1.258 146.988 5.246 173.247-26.589 7.437-10.468 9.66-21.991-.295-29.753-47.004-32.067-215.51-15.164-404.753-49.727zM93 163.75c-1 .25 99.279-96.5 99.279-96.5h48.471c-49.449 39.559-84.132 94.132-99.345 153.714L93 163.75zM348.858 461.594L448 577.005l94.922-110.499c-48.188 11.315-101.739 16.908-194.064-4.912z" stroke-miterlimit="4.7"/><path d="M593.75 67.25h42c.924 15.344-6.486 25.218-11.13 30.086-9.766-13.822-25.202-26.836-30.87-30.086z" stroke-miterlimit="9.6"/><path d="M709.255 275.885L803 163.75l-67.964-67.224v75.661h-140.36c-3.222-73.174-77.331-104.613-163.592-103.643-79.243.892-145.398 20.85-151.584 64.956-6.041 24.915 21.4 66.906 187.5 58.5 132.198-2.923 213.238 26.099 242.255 83.885z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
Reference in New Issue
Block a user