osoc16 / mijn-viaa Goto Github PK
View Code? Open in Web Editor NEWThis project forked from viaacode/mijn-viaa
Portaal voor content providers van VIAA
License: MIT License
This project forked from viaacode/mijn-viaa
Portaal voor content providers van VIAA
License: MIT License
Need to test the loading of API responses arriving at a different time -> if possible, a random simulated delay on different responses would be awesome.
when clicking on dashboard
The readme as of now only explains (very basicly) how to set up the Front-End side.
Would be nice to also have the same for the Node server.
Options:
The service icons should be next to the text in tablet size and not above the text
When an ajax call responds with a 401 error, a page refresh should be done. This way the page will be redirected to the login.
In scss/main.scss, the button is not respecting box-sizing:border-box and drawing the border on the outside of the div.
The first value needs to start at the sum of everything before it.
cumulative graphs now start at 0 + {first value}
, but should be {total of everything before} +
{first value}`
Depending on the user's access and organisation, certain services will be shown or hidden.
eg. DBS contracts should not be shown for users with restricted access
If I'm correct, server needs to allow to set the 'max-age' http header
Manually entering a service that doesn't exist after detail.html# will attempt to get hard coded & API data.
Needs to display a proper 'Service (/page) not found' error.
This button should have its own style, being a recurring functionality -> Should be instantly recognizable as different from the 'go to service' CTA
parseBarchart() is generic for all graphs -> use for all graphs
parseLineChart() is only for line chart -> remove
Front-end
||
|| /api/stats + cookie/session
\/
NGNIX-CACHE
||
|| /api/stats + cookie/session
\/
Backend (cookie/session -> org)
||
|| /api/stats?org=vrt
\/
Mule
Org-A-person who asks for /api/stats
!= Org-B-person who asks for /api/stats
So NGNIX cannot cache, but browser can. (unless same computer + browser used by people of different organisations)
Currently the static files are not accessible when the server would be deployed.
Add a 'static files' folder to the server so that: html, css, js, assets are accessible
Concat js files on dist & doublecheck if unused scripts are loaded (jquery @ home for example)
Implement them.
export NODE_ENV="dev_auth"
http://do-qas-esb-01.do.viaa.be:10005/api/stats/global
needs VPN connection
JSend format for JSON responses
Required keys:
{
status : "success",
data : { ... } | null
When an API call is rejected due to invalid data or call conditions, the JSend object's data key contains an object explaining what went wrong, typically a hash of validation errors.
Required keys:
{
"status" : "fail",
"data" : { ... } // details why failed
}
Required keys:
Optional keys:
{
"status" : "error",
"message" : "..."
}
API call happens every time a user goes to home page -> limit API calls & cache data
When the Ajax call fails on the mainpage, the preloader keeps "loading" and the error message is only returned in the console.
On the other pages it's the same thing (no feedback if the API is down)
It would be nice to have a pop-up or something to give the user feedback when the API services don't work (which shouldn't happen in an ideal world, but crap happens)
muletest
stuffQuickFix
/logout
Actual fix
/logout
(ajax call)A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.