From 4fc93f9a973603a66c2b93394bb471edc472c805 Mon Sep 17 00:00:00 2001 From: Siroco Date: Tue, 14 May 2019 17:26:12 +0200 Subject: [PATCH] Update reader for Collective Access and README proxy info --- README.md | 27 ++++++----- src/app/grid/grid.component.css | 9 ++-- src/app/grid/grid.component.html | 15 ++++-- src/app/grid/grid.component.ts | 81 +++++++++++++++++++++++--------- src/app/item.ts | 7 +++ src/app/omeka-classic.service.ts | 6 +-- src/app/wordpress.service.ts | 7 +-- 7 files changed, 103 insertions(+), 49 deletions(-) create mode 100644 src/app/item.ts diff --git a/README.md b/README.md index 06d92a9..1430739 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,30 @@ # TauFrontend -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.4. +App for read Tramontana feeds. ## Development server Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. -## Code scaffolding - -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. - ## Build Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. -## Running unit tests +## Create Nginx Proxy for CORS in Omeka -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). +https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers -## Running end-to-end tests +```javascript +server { + listen 80; + server_name oralitat; -Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). + access_log /var/log/nginx/omekaApiProxy.access.log; -## Further help - -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). + location / { + add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Access-Control-Expose-Headers' 'Omeka-Total-Results,Link'; + proxy_pass http://oralitatdegasconha.net/culturaviva/; + } +} +``` diff --git a/src/app/grid/grid.component.css b/src/app/grid/grid.component.css index 4765282..f9c28b3 100644 --- a/src/app/grid/grid.component.css +++ b/src/app/grid/grid.component.css @@ -1,11 +1,12 @@ * {font-family:Montserrat,sans-serif;transition: opacity 1s ease-in-out;} -ul { list-style:none;padding:0;margin:0;width:720px;margin:auto;clear:both;min-height:100px;} -ul li {padding:0;margin:0; max-width:100px;float:left;} +ul { display:flex; flex-wrap:wrap; list-style:none;padding:0;margin:0;width:720px;margin:auto;clear:both;min-height:100px;} +ul li {padding:0;margin:0; width:10vw;float:left;} +ul li a {text-decoration:none;color:#000;} ul li a:hover {opacity:0.8;} span.big-number {font-size:20vmin;transition:1s;font-weight:bold;color:#000;} span.active {color:#000 !important;text-decoration:none !important;} span.feeder {font-weight:bold;font-size:0.8em;color:#ccc;text-decoration:line-through;padding:10px 5px;} -span.term {padding:10px 5px;text-transform:uppercase;} -span.term:hover {text-decoration:line-through;cursor:pointer;} +div.term {transition:0.5s; padding:5px 5px;margin:5px;text-transform:lowercase;background:#000;color:#fff;font-size:0.8em;} +div.term:hover {font-weight:bold;background-color:#333;cursor:pointer;} diff --git a/src/app/grid/grid.component.html b/src/app/grid/grid.component.html index f48e8fd..21445ef 100644 --- a/src/app/grid/grid.component.html +++ b/src/app/grid/grid.component.html @@ -1,17 +1,22 @@ + -