-
Notifications
You must be signed in to change notification settings - Fork 20
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
Search frontend #505
Open
PolinaShneider
wants to merge
15
commits into
master
Choose a base branch
from
search-frontend
base: master
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
Search frontend #505
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8a840a4
Search frontend
PolinaShneider 4786583
Add empty placeholder
PolinaShneider 859dc51
Fix placeholders stuff
PolinaShneider 146ad99
Merge branch 'master' into search-frontend
talyguryn 4902500
Use throttle
PolinaShneider 44f72a1
Padding -> margin
PolinaShneider 0cc687a
Change event type
PolinaShneider 5443dd0
Change search query
PolinaShneider 1200ed8
Add loader
PolinaShneider 6a2b64c
Decrease margin
PolinaShneider 29c7c53
Fix search engine
PolinaShneider de08896
Update docker-compose.yml
talyguryn 727b652
Use class instead of commonJS module
PolinaShneider 374f5d2
Review corrections
PolinaShneider 302d392
Work in progress
PolinaShneider 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 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
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
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | ||
<meta name="language" content="<?= I18n::$lang ?>"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<meta name="format-detection" content="telephone=no"> | ||
<meta property="og:site_name" content="<?= Arr::get($site_info, 'title', 'CodeX Media') ?>" /> | ||
<title> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | ||
<meta name="language" content="<?= I18n::$lang ?>"> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<meta name="format-detection" content="telephone=no"> | ||
<meta property="og:site_name" content="<?= Arr::get($site_info, 'title', 'CodeX Media') ?>" /> | ||
|
||
<title> | ||
<?= $title ?: Arr::get($site_info, 'title', 'CodeX Media') . ': ' . Arr::get($site_info, 'description', '') ?> | ||
</title> | ||
<base href="/" /> | ||
<!-- <link href="https://fonts.googleapis.com/css?family=Lora:400,400i,700&subset=cyrillic" rel="stylesheet"> --> | ||
<link rel="stylesheet" type="text/css" media="all" href="/public/build/bundle.css?v=<?= filemtime('public/build/bundle.css'); ?>"> | ||
<link rel="icon" type="image/png" href="/favicon.png"> | ||
</title> | ||
|
||
<base href="/" /> | ||
|
||
<!-- <link href="https://fonts.googleapis.com/css?family=Lora:400,400i,700&subset=cyrillic" rel="stylesheet"> --> | ||
|
||
<link rel="stylesheet" type="text/css" media="all" href="/public/build/bundle.css?v=<?= filemtime('public/build/bundle.css'); ?>"> | ||
<link rel="icon" type="image/png" href="/favicon.png"> | ||
|
||
<? if (!empty($site_info['meta_image'])): ?> | ||
<meta name="image" property="og:image" content="<?= $site_info['meta_image'] ?>" /> | ||
<link rel="image_src" href="<?= $site_info['meta_image'] ?>" /> | ||
<meta name="image" property="og:image" content="<?= $site_info['meta_image'] ?>" /> | ||
<link rel="image_src" href="<?= $site_info['meta_image'] ?>" /> | ||
<? endif; ?> | ||
<script src="/public/build/main.bundle.js?v=<?= filemtime('public/build/main.bundle.js'); ?>" onload="codex.init({uploadMaxSize : <?= UPLOAD_MAX_SIZE ?>})"></script> | ||
</head> | ||
|
||
<script src="/public/build/main.bundle.js?v=<?= filemtime('public/build/main.bundle.js'); ?>" onload="codex.init({uploadMaxSize : <?= UPLOAD_MAX_SIZE ?>})"></script> | ||
|
||
</head> | ||
<? | ||
$bodyModifiers = []; | ||
|
||
|
@@ -44,94 +44,95 @@ | |
} | ||
} | ||
?> | ||
<body class="<?= implode(' ', $bodyModifiers) ?>"> | ||
<body class="<?= implode(' ', $bodyModifiers) ?>"> | ||
|
||
<?= View::factory('templates/components/header')->render(); ?> | ||
|
||
<? if (Arr::get($_SERVER, 'ENABLE_GOV_SITE_WIDGET')): ?> | ||
<?= View::factory('templates/components/esir_navigator')->render(); ?> | ||
<?= View::factory('templates/components/search')->render(); ?> | ||
<? endif ?> | ||
|
||
<? if (empty($hideBranding)): ?> | ||
<?= View::factory('templates/components/branding')->render(); ?> | ||
<? endif; ?> | ||
<div class="center-col" id="js-layout-holder" data-module="layout"> | ||
<div class="grid-cols-wrapper"> | ||
|
||
<div class="center-col" id="js-layout-holder" data-module="layout"> | ||
|
||
<div class="grid-cols-wrapper"> | ||
|
||
<? /* Left */ ?> | ||
<div class="grid-col grid-col--left"> | ||
<div class="grid-col grid-col--left"> | ||
<? if (!empty($aside)): ?> | ||
<?= $aside ?> | ||
<? else: ?> | ||
<?= View::factory('templates/components/aside')->render(); ?> | ||
<? endif; ?> | ||
</div> | ||
</div> | ||
|
||
<? /* Main block for page */ ?> | ||
<div class="grid-content <?= !empty($contentOnly) ? 'grid-content--stretched' : '' ?>"> | ||
<div class="grid-content <?= !empty($contentOnly) ? 'grid-content--stretched' : '' ?>"> | ||
<?= $content ?> | ||
</div> | ||
</div> | ||
|
||
<? /* Right col */ ?> | ||
<?= View::factory('templates/components/right_col')->render(); ?> | ||
</div> | ||
</div> | ||
<script> | ||
window.csrf = '<?= Security::token(); ?>'; | ||
</script> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
|
||
<script> | ||
|
||
window.csrf = '<?= Security::token(); ?>'; | ||
|
||
</script> | ||
|
||
<? if (!empty($_SERVER['HAWK_TOKEN'])): ?> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/hawk.min.js" onload="hawk.init('<?= $_SERVER['HAWK_TOKEN'] ?>');"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/hawk.min.js" onload="hawk.init('<?= $_SERVER['HAWK_TOKEN'] ?>');"></script> | ||
<? endif; ?> | ||
<script src="/public/extensions/emoji-parser/specc-emoji.js?v=<?= filemtime('public/extensions/emoji-parser/specc-emoji.js') ?>" onload="Emoji.parse()"></script> | ||
|
||
<script src="/public/extensions/emoji-parser/specc-emoji.js?v=<?= filemtime('public/extensions/emoji-parser/specc-emoji.js') ?>" onload="Emoji.parse()"></script> | ||
|
||
<? if (Kohana::$environment === Kohana::PRODUCTION): ?> | ||
|
||
<? if (!empty($_SERVER['ENABLE_GOV_SITE_WIDGET']) && $_SERVER['ENABLE_GOV_SITE_WIDGET']): ?> | ||
<script type="text/javascript" src="https://esir.gov.spb.ru/static/widget/js/widget.js" charset="utf-8"></script> | ||
<script type="text/javascript" src="https://esir.gov.spb.ru/static/widget/js/widget.js" charset="utf-8"></script> | ||
<? endif; ?> | ||
|
||
<? if (!empty($_SERVER['YANDEX_METRIKA_ID'])): ?> | ||
<!-- Yandex.Metrika counter --> | ||
<script type="text/javascript"> | ||
(function (d, w, c) { | ||
(w[c] = w[c] || []).push(function() { | ||
try { | ||
w.yaCounter<?= $_SERVER['YANDEX_METRIKA_ID'] ?> = new Ya.Metrika({ | ||
id:<?= $_SERVER['YANDEX_METRIKA_ID'] ?>, | ||
clickmap:true, | ||
trackLinks:true, | ||
accurateTrackBounce:true | ||
}); | ||
} catch(e) { } | ||
}); | ||
var n = d.getElementsByTagName("script")[0], | ||
s = d.createElement("script"), | ||
f = function () { n.parentNode.insertBefore(s, n); }; | ||
s.type = "text/javascript"; | ||
s.async = true; | ||
s.src = "https://mc.yandex.ru/metrika/watch.js"; | ||
if (w.opera == "[object Opera]") { | ||
d.addEventListener("DOMContentLoaded", f, false); | ||
} else { f(); } | ||
})(document, window, "yandex_metrika_callbacks"); | ||
</script> | ||
<noscript><div><img src="https://mc.yandex.ru/watch/<?= $_SERVER['YANDEX_METRIKA_ID'] ?>" style="position:absolute; left:-9999px;" alt="" /></div></noscript> | ||
<!-- /Yandex.Metrika counter --> | ||
<!-- Yandex.Metrika counter --> | ||
<script type="text/javascript"> | ||
(function (d, w, c) { | ||
(w[c] = w[c] || []).push(function() { | ||
try { | ||
w.yaCounter<?= $_SERVER['YANDEX_METRIKA_ID'] ?> = new Ya.Metrika({ | ||
id:<?= $_SERVER['YANDEX_METRIKA_ID'] ?>, | ||
clickmap:true, | ||
trackLinks:true, | ||
accurateTrackBounce:true | ||
}); | ||
} catch(e) { } | ||
}); | ||
|
||
var n = d.getElementsByTagName("script")[0], | ||
s = d.createElement("script"), | ||
f = function () { n.parentNode.insertBefore(s, n); }; | ||
s.type = "text/javascript"; | ||
s.async = true; | ||
s.src = "https://mc.yandex.ru/metrika/watch.js"; | ||
|
||
if (w.opera == "[object Opera]") { | ||
d.addEventListener("DOMContentLoaded", f, false); | ||
} else { f(); } | ||
})(document, window, "yandex_metrika_callbacks"); | ||
</script> | ||
<noscript><div><img src="https://mc.yandex.ru/watch/<?= $_SERVER['YANDEX_METRIKA_ID'] ?>" style="position:absolute; left:-9999px;" alt="" /></div></noscript> | ||
<!-- /Yandex.Metrika counter --> | ||
<? endif; ?> | ||
|
||
<? endif; ?> | ||
</body> | ||
</html> | ||
|
||
</body> | ||
</html> |
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.
странный комментарий