Code Monkey home page Code Monkey logo

fingerprinter-ui's People

Contributors

costezki avatar lordgarod avatar

Stargazers

 avatar

Watchers

 avatar  avatar

fingerprinter-ui's Issues

replace MeteorFiles.write to MeteorFiles.addFile

Instead of writing a file to the "Csv" "Collection" and creating a duplicate, you need to use the mdg callback return value to get the download link.

replace MeteorFiles.write to MeteorFiles.addFile

Some code clean up client/server segregation

From the file "validationMethods.js" move functions not pre-designated for export to another file, like «utils.js». Where it will be understood that they are as an addition to "mdg" methods.

on form submit call an arbitrary command line

on form submit for diff or stats forms, call a server method that generates an arbitrary file (e.g. uui4) and adds it to a file collection.
the file collection then makes it available for download.

Clean Latex Files

After downloading the finished "PDF", clear the folder it's unnecessary files.

on form submit create a config.json

When a stats or diff form is submitted then write a JSON file with form details and default value for oteher fields according to the example.

{
  "title": "EuroVoc Fingerprint Report - From Old to New and Back",
  "type": "difference between two dataset fingerprints",
  "author": "Eugeniu Costetchi",
  "ns_file": "./resources/prefix.csv",
  "output" : "./out",
  "alpha": {
    "file": "./resources/fingerprint.rq_eurovoc44.log",
    "title": "EuroVoc 4.4",
    "desc": "EuroVoc 4.4 was released a long time ago using EuroVoc Ontology."
  },
  "beta": {
    "file": "./resources/fingerprint.rq_EV45OLD.log",
    "title": "EuroVoc 4.5(bc)",
    "desc": "EuroVoc 4.5 backward compatible (bc) was released in July 2016 with SKOS-AP-EU and then converted to fit also the old profile of EuroVoc Ontology."
  }
}

report all errors to client side

after pushing generate-report button

  • signal that there is a shall process at work
  • any errors from the command line shall be reported back to the client side
  • the submit button shall be disabled while the shell process is running

the re submission of the form malfunction

reproduce error by following steps:

  1. go to stats page
  2. provide a correct csv
  3. press submit and wait for the result to arrive
  4. press submit again [and here is the exception]
Exception while invoking method 'generateJSON' TypeError: Cannot read property 'value' of undefined
I20170428-16:22:13.463(2)?     at [object Object].ValidatedMethod.run (imports/mdg/validatedMethods.js:44:32)
I20170428-16:22:13.463(2)?     at ValidatedMethod._execute (packages/mdg:validated-method/validated-method.js:93:12)
I20170428-16:22:13.464(2)?     at [object Object].ValidatedMethod.connection.methods._connection$methods.(anonymous function) (packages/mdg:validated-method/validated-method.js:54:23)
I20170428-16:22:13.464(2)?     at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1737:12)
I20170428-16:22:13.464(2)?     at packages/ddp-server/livedata_server.js:719:19
I20170428-16:22:13.464(2)?     at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
I20170428-16:22:13.466(2)?     at packages/ddp-server/livedata_server.js:717:40
I20170428-16:22:13.467(2)?     at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
I20170428-16:22:13.467(2)?     at packages/ddp-server/livedata_server.js:715:46
I20170428-16:22:13.467(2)?     at [object Object]._.extend.protocol_handlers.method (packages/ddp-server/livedata_server.js:689:23)

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.