diff --git a/README.md b/README.md index a71bc48..3f0c1e6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Fias-face -This README outlines the details of collaborating on this Ember application. -A short introduction of this app could easily go here. +Простой фронт-энд для [fias-api](https://github.com/jar3b/py-phias), написан на Ember.js ## Prerequisites @@ -24,6 +23,20 @@ You will need the following things properly installed on your computer. * `ember server` * Visit your app at [http://localhost:4200](http://localhost:4200). +* You can use nginx with config like this: + ``` + server { + listen 80; + server_name fias.example.com; + server_tokens off; + client_max_body_size 250M; + root /var/www/fias-face; + + location / { + try_files $uri /index.html; + } + } +``` ### Code Generators diff --git a/app/components/.gitkeep b/app/components/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/app/components/found-item.js b/app/components/found-item.js new file mode 100644 index 0000000..786dcb4 --- /dev/null +++ b/app/components/found-item.js @@ -0,0 +1,5 @@ +import Ember from 'ember'; + +export default Ember.Component.extend({ + item: {} +}); diff --git a/app/models/.gitkeep b/app/models/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/app/routes/.gitkeep b/app/routes/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/app/templates/components/.gitkeep b/app/templates/components/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/app/templates/components/found-item.hbs b/app/templates/components/found-item.hbs new file mode 100644 index 0000000..ae986e1 --- /dev/null +++ b/app/templates/components/found-item.hbs @@ -0,0 +1,3 @@ +{{#ui-popup content=(concat "Ratio: " item.ratio) position='right center'}} + {{#ui-accordion-section title=item.text}}
AOID: {{ item.aoid }}
{{/ui-accordion-section}} +{{/ui-popup}} \ No newline at end of file diff --git a/app/templates/components/search-form.hbs b/app/templates/components/search-form.hbs index b4dd610..64da7e7 100644 --- a/app/templates/components/search-form.hbs +++ b/app/templates/components/search-form.hbs @@ -1,7 +1,7 @@AOID: {{ aoitem.aoid }}
{{/ui-accordion-section}} - {{/ui-popup}} + {{found-item item=aoitem}} {{/each}} {{/ui-accordion}} {{/if}}