0

OpenSearch: первый набросок

see #13
This commit is contained in:
2017-12-13 22:22:41 +03:00
parent 329fb4a289
commit 0035d91ba2
3 changed files with 8 additions and 0 deletions

View File

@@ -24,5 +24,6 @@ public class SpringMvcConfig extends WebMvcConfigurerAdapter {
/* Other */ /* Other */
registry.addResourceHandler("/*.svg").addResourceLocations(staticPath); registry.addResourceHandler("/*.svg").addResourceLocations(staticPath);
registry.addResourceHandler("/*.png").addResourceLocations(staticPath); registry.addResourceHandler("/*.png").addResourceLocations(staticPath);
registry.addResourceHandler("/opensearch.xml").addResourceLocations(staticPath);
} }
} }

View File

@@ -11,6 +11,7 @@
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/awesome-bootstrap-checkbox.css"> <link rel="stylesheet" type="text/css" href="/css/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" type="text/css" href="/css/style.css"> <link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="search" type="application/opensearchdescription+xml" title="KinoSearch" href="/opensearch.xml">
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head> </head>

View File

@@ -0,0 +1,6 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>KinoSearch</ShortName>
<Image height="16" width="16" type="image/svg+xml">127.0.0.1:8080/ks3logo.svg</Image>
<InputEncoding>utf-8</InputEncoding>
<Url type="text/html" method="get" template="http://127.0.0.1:8080/?search={searchTerms}"/>
</OpenSearchDescription>