Giter Site home page Giter Site logo

html-pages's People

Contributors

dallemang avatar dasawanaka avatar dependabot[bot] avatar karpas avatar kbalcerek avatar mereolog avatar przemekgradzki avatar rr-adam avatar sdml avatar trypuz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

html-pages's Issues

Dependabot alerts - Prototype Pollution in minimist

We do not have 'minimist' directly in the dependencies.
Should update the following packages that contain it:

  • @vue/cli-service
  • @vue/cli-plugin-eslint
  • @vue/eslint-config-airbnb

Is likely to return a problem with issuecomment-1046656161, backport to an older version fixes this problem, When dependencies are updated, cooperation with @mereolog will be required to check for compatibility in IOS system with docker.

Orphaned Pages

Products.vue and other pages are orphaned, i.e., they cannot be reached from the landing pages.

All these pages need to found, reviewed, and relinked or removed.

Download ontology from ontology webpage

We should be able to download an ontology, for now as an RDF/XML file, from its webpage.
There should be an option to get all imports for this ontology - for now with turned off (i.e. greyed out).

Update of graphics for new GUI

New GUI needs to be updated with the EDMC graphics: banner, logo, etc.

For the time being I suggest we use the old files.

Vue application installation failure

Following instructions on https://github.com/edmcouncil/html-pages#running-the-content-of-website-locally fails to start yarn server.

After the following setup on a MS Windows Server 2016 machine:

  1. node.js version 16.3.0 installed from https://nodejs.org/en/
  2. yarn installed via `npm install --global yarn (got me 1.22.10 version)
    I tried to run yarn in D:\projects\fibo\git\edmc\html-pages\fibo - this resulted in this error:
error D:\projects\fibo\git\edmc\html-pages\fibo\node_modules\node-sass: Command failed.
....
gyp verb check python checking for Python executable "c:\python27\python.exe" in the PATH
gyp verb `which` failed Error: not found: c:\python27\python.exe
gyp verb `which` failed     at getNotFoundError (D:\projects\fibo\git\edmc\html-pages\fibo\node_modules\which\which.js:13:12)

After installing python 2.7.18 and setting the path to the folder with python 2.7. the same error occurs.
One probably needs to run
npm config set python c:\python27\python.exe
as per https://stackoverflow.com/a/64486670 - this solve the previous error but 'discovers' a new one:

MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".

Build FAILED.

  MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".

    0 Warning(s)
    1 Error(s)

I got similar issues on a MS W10 machine and different, but also critical, on a MacOs system.

Carousel on the mobile version does not work

Carousel on the mobile version does not work, you can not move to the next slides and it does not happen automatically, it remains one and the same content and you can see that there are 3 slides

image

Unstable display of parameterized values

The current OV frequently displays parameters instead of their values when an IRI is called for the first time:
image
These 'arg's disappear when you refresh the page:
image

I got these results on macOS 12.0.1 using Safari and Chrome browsers.

Update vue & vue-cli etc

One of the most important issues and more difficult unfortunately it seems to me that is to update versions of vue and its derivatives, for example in the project we use vue version 2.6.10 (publicly available stable version 3.2.31), vue-cli we have 3.12 (last stable version is 5.0. 4), probably just updating these dependencies and code as it is a change of one or more versions will "fix" most dependabot alerts.

Move site content to Headless CMS + Auth server

Currently the site content is stored in vue files, to change it you need to create a pr, wait for reviews and only then the updated content is available. This increases the time it takes to implement content and changes and adds an extra step by involving additional people.

My suggestion would be to use headless cms and keep all the site content out of the templates.

A headless content management system, or headless CMS, is a back-end-only content management system. Such systems include their own dashboard, login and users, content can be added on your own defined templates and will be made available by endpoint or in the case of some headless cms, you can perform graphql queries.

On 'html-pages' side there would be only downloading data from api and displaying them. As headless cms do not have a front end, connecting them to our solutions in html pages will be easier as it will not interfere with the part of application which will download and display data from onto-viewer. Having separate front-end and back-end is also a standard that would be kept here.

The front-end would need a proper reformatting of the results, the menu could also be moved along with the possibility to manipulate the content using it.

What kind of content should be available to change from the cms should be discussed separately. Based on my limited experience with STRAPI(page, demo), I can say that there would be no need to create this cms for each site separately and it would be possible to manage them all from one panel by creating appropriate content types for each site.

The Strapi I mentioned earlier:

  • is open source,
  • we can make custom plugins,
  • we can use rest and graphQL,
  • it's writen in javascript,
  • supported db: SQLite, MongoDB, MySQL, Postgres,
  • have authentication & permissions system

Alternatives:

Stylling of `Browse FIBO domains`

The section with Select FIBO version in the content looks similar to the section with Browse FIBO domains, but the second does not have a frame. Should it perhaps be the same?

image

In mobile version of html-pages both have this frame:
image

New maturity levels

New maturity levels

As long as there are no new icons, provisonal and informative are treated the same (old dev type):

prod is now type with label Release
RELEASE("https://spec.edmcouncil.org/fibo/ontology/FND/Utilities/AnnotationVocabulary/Release", "Release")

Warnings on website should display only for provisonal and informative (release, not_set and mixed should be ignored)
image

there is no longer an icon in the json response

"maturityLevel": {
			"label": "NOT_SET",
			"iri": "https://spec.edmcouncil.org/ontoviewer/NotSet"
		},

For now, it should be:

  • release
    image
  • provisional
    image
  • informative
    image
  • mixed
    image
  • not_set - nothing

All information based on: PR-240(OV)

@mereolog do you accept this solution?

Link 'Auto Viewer' broken when PRODUCTS page browsed as '/auto/products'

Works on /auto/products/, but broken on /auto/products (this is canonical URL for PRODUCTS page - see top menu on main page)

Suggest a trivial change:

--- auto/src/views/Products.vue.orig
+++ auto/src/views/Products.vue
@@ -21,7 +21,7 @@
                             <td><strong>D01</strong></td>
                             <td>Auto schema.org ontology: A schema.org-compliant fundamental ontology for vehicle information in e-commerce</td>
                             <td>Released</td>
-                            <td><a href="../ontology?query=https%3A%2F%2Fspec.edmcouncil.org%2Fauto%2Fontology%2FEC%2FSchemaAutomotive%2FAutoSchemaOrg%2F">Auto Viewer</a></td>
+                            <td><router-link :to="{ path: router('ontology'), query: { query: encodeURI('https://spec.edmcouncil.org/auto/ontology/EC/SchemaAutomotive/AutoSchemaOrg/')} }">Auto Viewer</router-link></td>
                         </tr>
                         <tr>
                             <td><strong>D02</strong></td>

How to use section revamp

  1. 'How to use' section seems to me too prominent - perhaps the header there should be smaller and less 'outstanding'
  2. It should use the same style as other sections.

image

"How to use" button

The "how to use" button may confuse users as it does nothing when clicked in the "How to use" section - because the user is there already.

image

Skos resources are not returned/displayed

Results for iri containing '#' are returned incorrectly. Arguments are incorrectly parsed. The error is in processing the query.
JS get the query http://fibo-viewer.korora.makolab.net/fibo/ontology?query=http://www.w3.org/2004/02/skos/core#altLabel.
Js get the query value and processes what is inserted.
Then the query goes to the backend with the iri in which the ending is already cut off.
http://fibo-viewer.korora.makolab.net/fibo/ontology/api/entity?iri=http://www.w3.org/2004/02/skos/core
This needs to be handled on the frontend. Probably here:

async fetchData(iri) {

Too wide margins?

In IDMP project the labels and IRIs happen to be rather long.
On the other hand, onto-viewer has wide empty margins on both sides.

Can we make them thinner in some elegant way?

image

Unused vue pages

The following pages are unused:

  1. SMIF-UML.vue
  2. WorkingGroups.vue
  3. Development.vue
  4. Courses_old.vue
  5. UseCases.vue
  6. GlossaryProduction.vue

I think we should delete all of them as they seem to out-dated now.
This issue was initiated in #124.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.