forked from kobotoolbox/kpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kobotoolbox#3288 from kobotoolbox/beta
Incorporate previously reviewed changes (for 2.021.24)
- Loading branch information
Showing
472 changed files
with
13,075 additions
and
5,814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
name: Update Translations | ||
|
||
on: | ||
pull_request: | ||
# Github actions does not support an `on merge` type action | ||
# So I substituted with pull_quests.closed | ||
types: [ closed ] | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Change Directories | ||
run: cd kpi/ | ||
|
||
- name: Install KPI requirements | ||
run: sudo pip install -r dependencies/pip/requirements.txt | ||
|
||
- name: Install NPM packages | ||
run: npm install | ||
|
||
- name: Install webpack | ||
run: npm install webpack | ||
|
||
- name: Run NPM build | ||
run: npm run copy-fonts && npm run build | ||
|
||
- name: Compile Frontend Strings | ||
run: node ./scripts/generate_icons.js | ||
|
||
- name: Install translate-toolkit | ||
run: sudo apt install translate-toolkit | ||
|
||
- name: Install Transifex | ||
run: sudo pip3 install transifex-client | ||
|
||
- name: Run make translation po file | ||
run: sudo ./manage.py makemessages --locale en | ||
|
||
- name: Run json2po | ||
run: sudo json2po jsapp/compiled/extracted-strings.json locale/en/LC_MESSAGES/djangojs.po | ||
|
||
- name: Run Transifex | ||
run: tx push -s | ||
env: | ||
TX_TOKEN: ${{ secrets.TRANSIFEX_API }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"tabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"quoteProps": "as-needed", | ||
"jsxSingleQuote": true, | ||
"bracketSpacing": false, | ||
"jsxBracketSameLine": false, | ||
"arrowParens": "always", | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
{ | ||
"arrow_spacing": { | ||
"level": "warn" | ||
}, | ||
"braces_spacing": { | ||
"level": "warn", | ||
"spaces": 0, | ||
"empty_object_spaces": 0 | ||
}, | ||
"camel_case_classes": { | ||
"level": "warn" | ||
}, | ||
"coffeescript_error": { | ||
"level": "error" | ||
}, | ||
"colon_assignment_spacing": { | ||
"level": "warn", | ||
"spacing": { | ||
"left": 0, | ||
"right": 1 | ||
} | ||
}, | ||
"cyclomatic_complexity": { | ||
"level": "warn", | ||
"value": 10 | ||
}, | ||
"duplicate_key": { | ||
"level": "error" | ||
}, | ||
"empty_constructor_needs_parens": { | ||
"level": "warn" | ||
}, | ||
"ensure_comprehensions": { | ||
"level": "warn" | ||
}, | ||
"eol_last": { | ||
"level": "warn" | ||
}, | ||
"indentation": { | ||
"value": 2, | ||
"level": "warn" | ||
}, | ||
"line_endings": { | ||
"level": "warn", | ||
"value": "unix" | ||
}, | ||
"max_line_length": { | ||
"value": 80, | ||
"level": "warn", | ||
"limitComments": false | ||
}, | ||
"missing_fat_arrows": { | ||
"level": "warn", | ||
"is_strict": false | ||
}, | ||
"newlines_after_classes": { | ||
"value": 1, | ||
"level": "warn" | ||
}, | ||
"no_backticks": { | ||
"level": "warn" | ||
}, | ||
"no_debugger": { | ||
"level": "warn", | ||
"console": false | ||
}, | ||
"no_empty_functions": { | ||
"level": "warn" | ||
}, | ||
"no_empty_param_list": { | ||
"level": "ignore" | ||
}, | ||
"no_implicit_braces": { | ||
"level": "warn", | ||
"strict": true | ||
}, | ||
"no_implicit_parens": { | ||
"level": "warn", | ||
"strict": true | ||
}, | ||
"no_interpolation_in_single_quotes": { | ||
"level": "warn" | ||
}, | ||
"no_nested_string_interpolation": { | ||
"level": "warn" | ||
}, | ||
"no_plusplus": { | ||
"level": "ignore" | ||
}, | ||
"no_private_function_fat_arrows": { | ||
"level": "warn" | ||
}, | ||
"no_stand_alone_at": { | ||
"level": "ignore" | ||
}, | ||
"no_tabs": { | ||
"level": "warn" | ||
}, | ||
"no_this": { | ||
"level": "warn" | ||
}, | ||
"no_throwing_strings": { | ||
"level": "warn" | ||
}, | ||
"no_trailing_semicolons": { | ||
"level": "warn" | ||
}, | ||
"no_trailing_whitespace": { | ||
"level": "warn", | ||
"allowed_in_comments": false, | ||
"allowed_in_empty_lines": true | ||
}, | ||
"no_unnecessary_double_quotes": { | ||
"level": "ignore" | ||
}, | ||
"no_unnecessary_fat_arrows": { | ||
"level": "warn" | ||
}, | ||
"non_empty_constructor_needs_parens": { | ||
"level": "warn" | ||
}, | ||
"prefer_english_operator": { | ||
"level": "warn", | ||
"doubleNotLevel": "warn" | ||
}, | ||
"space_operators": { | ||
"level": "warn" | ||
}, | ||
"spacing_after_comma": { | ||
"level": "warn" | ||
}, | ||
"transform_messes_up_line_numbers": { | ||
"level": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.