Skip to content

dasawanaka/html-pages

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spec.edmcouncil.org vue web pages

Updating the spec.edmcouncil.org websites

Sources location

Requirements

To run and/or build Vue application you need to have installed:

Some kind of code editor, along with a project in repository configuration files are provided for Visual Studio Code.

Run in console/terminal in main Vue folder ('fibo' or 'auto'):

yarn

It will execute yarn to fetch necessary packages and setup project files for you automatically.

Running the content of website locally

Requirements:

Deploy OKG HOME with docker-compose

$ docker-compose --profile home up -d
Creating network "html-pages_default" with the default driver
Building home
Sending build context to Docker daemon  18.86MB
Step 1/9 : FROM node:12-alpine
...
Creating html-pages_home_1 ... done

Listing containers must show one container running and the port mapping as below:

$ docker-compose ps
      Name                     Command               State                    Ports                  
-----------------------------------------------------------------------------------------------------
html-pages_home_1   docker-entrypoint.sh yarn  ...   Up      0.0.0.0:8080->8080/tcp,:::8080->8080/tcp

After the application starts, navigate to http://localhost:8080 in your web browser.

Stop and remove the containers:

$ docker-compose down
Stopping html-pages_home_1 ... done
Removing html-pages_home_1 ... done
Removing network html-pages_default

Deploy FIBO HOME with docker-compose

$ docker-compose --profile fibo up -d
Creating network "html-pages_default" with the default driver
Building fibo
Sending build context to Docker daemon  14.62MB
Step 1/9 : FROM node:12-alpine
...
Creating html-pages_fibo_1 ... done

Listing containers must show one container running and the port mapping as below:

$ docker-compose ps
      Name                     Command               State                    Ports                  
-----------------------------------------------------------------------------------------------------
html-pages_fibo_1   docker-entrypoint.sh yarn  ...   Up      0.0.0.0:8080->8080/tcp,:::8080->8080/tcp

After the application starts, navigate to http://localhost:8080/fibo in your web browser.

Stop and remove the containers:

$ docker-compose down
Stopping html-pages_fibo_1 ... done
Removing html-pages_fibo_1 ... done
Removing network html-pages_default

Deploy AUTO HOME with docker-compose

$ docker-compose --profile auto up -d
Creating network "html-pages_default" with the default driver
Building auto
Sending build context to Docker daemon  14.62MB
Step 1/9 : FROM node:12-alpine
...
Creating html-pages_auto_1 ... done

Listing containers must show one container running and the port mapping as below:

$ docker-compose ps
      Name                     Command               State                    Ports                  
-----------------------------------------------------------------------------------------------------
html-pages_auto_1   docker-entrypoint.sh yarn  ...   Up      0.0.0.0:8080->8080/tcp,:::8080->8080/tcp

After the application starts, navigate to http://localhost:8080/auto in your web browser.

Stop and remove the containers:

$ docker-compose down
Stopping html-pages_auto_1 ... done
Removing html-pages_auto_1 ... done
Removing network html-pages_default

Editing the FIBO (AUTO) website content

Most static content is served as static HTML templates.

To find in what file content is hardcoded please refer to router.js file: fibo/src/router.js (or auto/src/router.js)

You can find an array of routes where by name and corresponding file name you can find a template for the desired route:

  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
    },
    {
      path: '/development',
      name: 'development',
      component: () => import(/* webpackChunkName: "development" */ './views/Development.vue'),
    },

In this file, there will be template html-like tag. Inside it, the template is stored for current view in almost raw HTML:

<template>
  <div class="container">
    <main>
      <article>
        <h1>
          <span>FIBO Development</span>
        </h1>

        <h2>
          FIBO is being developed in a continuous process by
          <a
            href="working-group.html#fibo-working-groups"
          >
            FIBO
            Content Teams (FCT)
          </a>. 

Most of the content is hardcoded in the template in HTML and can be easily edited. But some elements use dynamic aspects of the Vue framework and those elements will contain v- prefixed properties. Those elements should be edited with consideration of the Vue application lifecycle. For example:

        <input
          class="form-check-input"
          type="checkbox"
          name="edgesFilter"
          id="external"
          value="external"
          checked="true"
        />

About

spec.edmcouncil.org web pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 93.6%
  • JavaScript 3.3%
  • SCSS 2.9%
  • Other 0.2%