Skip to content

Latest commit

 

History

History
145 lines (73 loc) · 3.27 KB

FILES.md

File metadata and controls

145 lines (73 loc) · 3.27 KB

JUSTUS frontend files

Browse repository for images and SCSS files but here's a very short description about JavaScript ja HTML files.

JavaScript

Unpackaged

  • /src/config.js

    File is for giving environment specific values to variables. Meant to be maintained on site.

    NB! This file is NOT deployed to production from repository (or is but will and should be overwritten by a local copy)!

Packaged

  • /src/app/field_config.js

    Configurations for organization specific field requirements.

  • /src/app/js/

    • i18n.js

      All visible strings with language choices.

    • app.js

      AngularJS module definition.

  • /src/app/js/services/services.module.js

    • api.service.js

      Handles HTTP calls and data conversion for JUSTUS. The link between frontend and backend.

    • crossref.service.js

      Handles HTTP calls and data conversion for CrossRef Service.

    • finto.service.js

      Handles HTTP calls and data conversion for Finto (YSA/YSO) Service.

    • jufo.service.js

      Handles HTTP calls and data conversion for JUFO Service.

    • justus.service.js

      Handles variables visibility and dependency settings. File api.service.js handles stuff which could be in this file.

      (At least some) content may be moved to justus.directive.js!

    • koodisto.service.js

      Handles HTTP calls and data conversion for Opintopolku Koodisto Service. Uses some of generic.js functions which might be unnecessary dependency (those functions could and should be moved to this file).

    • validation.service.js

      Handles form validation highlights

    • virta.service.js

      Handles HTTP calls and data conversion for VIRTA-julkaisutietopalvelu Service.

  • /src/app/js/controllers/controllers.module.js

    • index.controller.js

      AngularJS controller file definition. Basically a "root" controller for data always available in app.

    • justus.controller.js

      AngularJS controller file for the JUSTUS application.

    • tallennus.controller.js

      AngularJS controller file for tallennus view.

    • tarkasta.controller.js

      AngularJS controller file for tarkasta (omat and hyvaksy) view.

  • /src/app/js/directives/

    • directives.module.js

      App directives definition

  • /src/app/js/filters/

    • filters.module.js

      App custom filters definition

HTML

  • index.html

    One page angularjs application file.

  • html/header.html

    The obvious. Always shown.

  • html/footer.html

    The obvious. Always shown.

  • html/index_part.html

    Content of "welcoming" page or "click to log in" page.

  • html/justus.html

    The actual application. Depending on stage includes files:

    • html/justus/valitse.html

      Choose what to do.

    • html/justus/vaihevuo.html

      Header like buttons when in feeding a record mode.

    • html/justus/esitayta.html

      Stage 1. Fetch data from other sources to prefill the form.

    • html/justus/julkaisutyyppi.html

      Stage 2. Choose on field nicely.

    • html/justus/tietojensyotto.html

      Stage 3. Actual "form".

    • html/justus/tallennus.html

      Stage 4.

  • html/tarkasta.html

    Page for checking already recorded data. Has views for "omat" (own records) and "hyvaksy" (organizational admin listing for all organizations records).