From f112e2e0b4a2c6cd60b934794b937d0484cd1fca Mon Sep 17 00:00:00 2001 From: domenico Date: Wed, 6 Apr 2022 11:24:05 +0200 Subject: [PATCH] Kudo plugin first commit --- .gitignore | 20 +++++++++++ Gruntfile.js | 8 +++++ README.md | 2 ++ lib/Features/Kudo.php | 37 +++++++++++++++++++ lib/Features/Kudo/Controller/.keep | 0 lib/Features/Kudo/Decorator/.keep | 0 lib/Features/Kudo/Model/.keep | 0 lib/Features/Kudo/Utils/.keep | 0 lib/Features/Kudo/View/.keep | 0 manifest.php | 13 +++++++ package.json | 14 ++++++++ qa_model.json | 57 ++++++++++++++++++++++++++++++ 12 files changed, 151 insertions(+) create mode 100644 .gitignore create mode 100644 Gruntfile.js create mode 100644 README.md create mode 100644 lib/Features/Kudo.php create mode 100644 lib/Features/Kudo/Controller/.keep create mode 100644 lib/Features/Kudo/Decorator/.keep create mode 100644 lib/Features/Kudo/Model/.keep create mode 100644 lib/Features/Kudo/Utils/.keep create mode 100644 lib/Features/Kudo/View/.keep create mode 100644 manifest.php create mode 100644 package.json create mode 100644 qa_model.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..36c15bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# IDE stuffs +.settings +.idea +.project +nbproject/ + + +# NodeJs stuff +nodejs/*.log +node_modules +static/build + +# Development env config files +.agignore +.vagrant + +vendor +composer.phar + +config.ini \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..39d4569 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,8 @@ +module.exports = function (grunt) { + + grunt.initConfig({}) + + // Define your tasks here + grunt.registerTask('default', []) + +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..55094d2 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Kudo plugin +MateCat plugin for Kudo workflow management diff --git a/lib/Features/Kudo.php b/lib/Features/Kudo.php new file mode 100644 index 0000000..dc3fe99 --- /dev/null +++ b/lib/Features/Kudo.php @@ -0,0 +1,37 @@ + 'kudo', + 'PLUGIN_CLASS' => '\\Features\\Kudo', +]; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..3cd6804 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "matecat-kudo-plugin", + "version": "1.0.0", + "description": "", + "main": "Gruntfile.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "MateCat Team", + "license": "LGPL", + "dependencies": { + "grunt": "^1.4.0" + } +} diff --git a/qa_model.json b/qa_model.json new file mode 100644 index 0000000..c0f959e --- /dev/null +++ b/qa_model.json @@ -0,0 +1,57 @@ +{ + "model": { + "version" : 1, + "label": "MateCat default", + + "categories": [ + { + "label": "Style (readability, consistent style and tone)", + "code": "STY", + "dqf_id" : 4 + } + ,{ + "label": "Tag issues (mismatches, whitespaces)", + "code": "TAG", + "dqf_id" : 5 + }, + { + "label": "Translation errors (mistranslation, additions or omissions)", + "code": "TER", + "dqf_id" : 1 + }, + { + "label": "Terminology and translation consistency", + "code": "TRM", + "dqf_id" : 3 + }, + { + "label": "Language quality (grammar, punctuation, spelling)", + "code": "LQ", + "dqf_id" : 2 + } + ], + "severities": [ + { + "label": "Neutral", + "dqf_id" : 0, + "penalty": 0 + },{ + "label": "Minor", + "dqf_id" : 1, + "penalty": 0.5 + }, + { + "label": "Major", + "dqf_id" : 2, + "penalty": 2 + } + ], + + "passfail" : { + "type" : "points_per_thousand", + "options" : { + "limit" : [ 12, 12 ] + } + } + } +} \ No newline at end of file