@sofit/view-locale 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +295 -0
- package/coverage/jest/results.xml +25 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +206 -0
- package/coverage/lcov-report/lib/index.html +131 -0
- package/coverage/lcov-report/lib/index.ts.html +94 -0
- package/coverage/lcov-report/lib/runner.ts.html +583 -0
- package/coverage/lcov-report/lib/translations/common/auth.ts.html +100 -0
- package/coverage/lcov-report/lib/translations/common/benchmarking.ts.html +136 -0
- package/coverage/lcov-report/lib/translations/common/database-errors.ts.html +232 -0
- package/coverage/lcov-report/lib/translations/common/entity.ts.html +124 -0
- package/coverage/lcov-report/lib/translations/common/firebase_notification.ts.html +136 -0
- package/coverage/lcov-report/lib/translations/common/general.ts.html +355 -0
- package/coverage/lcov-report/lib/translations/common/index.html +221 -0
- package/coverage/lcov-report/lib/translations/common/internal-server-errors.ts.html +112 -0
- package/coverage/lcov-report/lib/translations/common/joi.ts.html +514 -0
- package/coverage/lcov-report/lib/translations/emails/change_solicitation_responsible.ts.html +199 -0
- package/coverage/lcov-report/lib/translations/emails/client_company_economic_groups_finished.ts.html +109 -0
- package/coverage/lcov-report/lib/translations/emails/client_plan_validation.ts.html +115 -0
- package/coverage/lcov-report/lib/translations/emails/dispatch-crlv.ts.html +142 -0
- package/coverage/lcov-report/lib/translations/emails/dispatch-vehicle-model-record.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/emails/finished-pre-invoice-conference.ts.html +157 -0
- package/coverage/lcov-report/lib/translations/emails/import_client_vehicle.ts.html +139 -0
- package/coverage/lcov-report/lib/translations/emails/index.html +326 -0
- package/coverage/lcov-report/lib/translations/emails/index.ts.html +121 -0
- package/coverage/lcov-report/lib/translations/emails/password_recover.ts.html +127 -0
- package/coverage/lcov-report/lib/translations/emails/send_fine_consultation_error.ts.html +154 -0
- package/coverage/lcov-report/lib/translations/emails/send_pre_invoice_conference.ts.html +154 -0
- package/coverage/lcov-report/lib/translations/emails/send_renavam_error.ts.html +127 -0
- package/coverage/lcov-report/lib/translations/emails/unidas_vehicle_upsert_finished.ts.html +190 -0
- package/coverage/lcov-report/lib/translations/emails/vehicle_bulk_exceeded_limit.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/emails/vehicle_bulk_finished.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/index.html +116 -0
- package/coverage/lcov-report/lib/translations/index.ts.html +1390 -0
- package/coverage/lcov-report/lib/translations/integrations/index.html +146 -0
- package/coverage/lcov-report/lib/translations/integrations/inout.ts.html +112 -0
- package/coverage/lcov-report/lib/translations/integrations/pipefy.ts.html +112 -0
- package/coverage/lcov-report/lib/translations/integrations/suiv.ts.html +100 -0
- package/coverage/lcov-report/lib/translations/microservices/telemetry/index.html +116 -0
- package/coverage/lcov-report/lib/translations/microservices/telemetry/index.ts.html +340 -0
- package/coverage/lcov-report/lib/translations/modules/access_log.ts.html +481 -0
- package/coverage/lcov-report/lib/translations/modules/advance_payment.ts.html +148 -0
- package/coverage/lcov-report/lib/translations/modules/app_parameter.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/attachment.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/backup_vehicle.ts.html +457 -0
- package/coverage/lcov-report/lib/translations/modules/backup_vehicle_reason.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/backup_vehicle_to_delete.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/backup_vehicle_utilization.ts.html +412 -0
- package/coverage/lcov-report/lib/translations/modules/benchmark_pendency.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/budget.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/carsharing_type.ts.html +124 -0
- package/coverage/lcov-report/lib/translations/modules/cash_basis.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/change_history.ts.html +259 -0
- package/coverage/lcov-report/lib/translations/modules/checklist.ts.html +394 -0
- package/coverage/lcov-report/lib/translations/modules/checklist_group.ts.html +193 -0
- package/coverage/lcov-report/lib/translations/modules/checklist_group_item.ts.html +352 -0
- package/coverage/lcov-report/lib/translations/modules/checklist_group_option.ts.html +145 -0
- package/coverage/lcov-report/lib/translations/modules/checklist_model.ts.html +292 -0
- package/coverage/lcov-report/lib/translations/modules/checklist_reply.ts.html +229 -0
- package/coverage/lcov-report/lib/translations/modules/city.ts.html +124 -0
- package/coverage/lcov-report/lib/translations/modules/client.ts.html +517 -0
- package/coverage/lcov-report/lib/translations/modules/client_company.ts.html +148 -0
- package/coverage/lcov-report/lib/translations/modules/client_integration.ts.html +274 -0
- package/coverage/lcov-report/lib/translations/modules/client_plan_validation.ts.html +145 -0
- package/coverage/lcov-report/lib/translations/modules/company.ts.html +328 -0
- package/coverage/lcov-report/lib/translations/modules/condition.ts.html +325 -0
- package/coverage/lcov-report/lib/translations/modules/cost_center.ts.html +265 -0
- package/coverage/lcov-report/lib/translations/modules/cost_center_request_vehicle_type.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/cost_sharing.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/cost_sharing_entity.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/country.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/custom_field.ts.html +766 -0
- package/coverage/lcov-report/lib/translations/modules/custom_migration_table.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/custom_table.ts.html +316 -0
- package/coverage/lcov-report/lib/translations/modules/customer.ts.html +292 -0
- package/coverage/lcov-report/lib/translations/modules/daily_quota.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/dashboard.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/dashboard_report.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/db_server.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/deduct.ts.html +190 -0
- package/coverage/lcov-report/lib/translations/modules/deduct_installment.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/default_item.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/destination.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/digital_signature.ts.html +115 -0
- package/coverage/lcov-report/lib/translations/modules/document.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/driver_control.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/driver_license_point.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/email_template.ts.html +163 -0
- package/coverage/lcov-report/lib/translations/modules/employee.ts.html +1138 -0
- package/coverage/lcov-report/lib/translations/modules/employee_change_history.ts.html +280 -0
- package/coverage/lcov-report/lib/translations/modules/employee_hiring_regime.ts.html +112 -0
- package/coverage/lcov-report/lib/translations/modules/employee_role.ts.html +184 -0
- package/coverage/lcov-report/lib/translations/modules/expense.ts.html +457 -0
- package/coverage/lcov-report/lib/translations/modules/expense_item.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/expense_parcel.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/exportations.ts.html +142 -0
- package/coverage/lcov-report/lib/translations/modules/external_link.ts.html +124 -0
- package/coverage/lcov-report/lib/translations/modules/external_parameter.ts.html +202 -0
- package/coverage/lcov-report/lib/translations/modules/external_relation.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/favorite.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/fine.ts.html +169 -0
- package/coverage/lcov-report/lib/translations/modules/fine_consultation.ts.html +697 -0
- package/coverage/lcov-report/lib/translations/modules/fine_infringement_resource.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/fine_qualification.ts.html +244 -0
- package/coverage/lcov-report/lib/translations/modules/fine_qualification_integration_key.ts.html +169 -0
- package/coverage/lcov-report/lib/translations/modules/fine_resource.ts.html +148 -0
- package/coverage/lcov-report/lib/translations/modules/fleet_calendar.ts.html +199 -0
- package/coverage/lcov-report/lib/translations/modules/foreseen_maintenance_plan_service_item.ts.html +241 -0
- package/coverage/lcov-report/lib/translations/modules/foreseen_service_order_item.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/gas_pump.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/gas_pump_control.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/gate.ts.html +181 -0
- package/coverage/lcov-report/lib/translations/modules/gate_appointment.ts.html +127 -0
- package/coverage/lcov-report/lib/translations/modules/gate_appointment_diary.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/import_map.ts.html +256 -0
- package/coverage/lcov-report/lib/translations/modules/import_map_process.ts.html +220 -0
- package/coverage/lcov-report/lib/translations/modules/index.html +3206 -0
- package/coverage/lcov-report/lib/translations/modules/inmetro_model.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/integration.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/item.ts.html +556 -0
- package/coverage/lcov-report/lib/translations/modules/leasing_contract.ts.html +181 -0
- package/coverage/lcov-report/lib/translations/modules/leasing_measurement.ts.html +418 -0
- package/coverage/lcov-report/lib/translations/modules/maintenance_plan.ts.html +217 -0
- package/coverage/lcov-report/lib/translations/modules/maintenance_plan_service.ts.html +469 -0
- package/coverage/lcov-report/lib/translations/modules/measurement_unit.ts.html +160 -0
- package/coverage/lcov-report/lib/translations/modules/module_help_config.ts.html +208 -0
- package/coverage/lcov-report/lib/translations/modules/module_help_user_data.ts.html +163 -0
- package/coverage/lcov-report/lib/translations/modules/night_transport.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/notification.ts.html +160 -0
- package/coverage/lcov-report/lib/translations/modules/occurrence_type.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/parameter.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/password_complexity.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/password_recover.ts.html +163 -0
- package/coverage/lcov-report/lib/translations/modules/pendency.ts.html +115 -0
- package/coverage/lcov-report/lib/translations/modules/plan.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/pre_invoice_compliance.ts.html +364 -0
- package/coverage/lcov-report/lib/translations/modules/pre_invoice_conference.ts.html +409 -0
- package/coverage/lcov-report/lib/translations/modules/profile.ts.html +232 -0
- package/coverage/lcov-report/lib/translations/modules/qualification_severity.ts.html +184 -0
- package/coverage/lcov-report/lib/translations/modules/quota.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/release_notification.ts.html +205 -0
- package/coverage/lcov-report/lib/translations/modules/rental_agreement.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/report.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/report_folder.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/request.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/request_destination.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/request_historic.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/request_occurrence.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/revenue.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/route.ts.html +124 -0
- package/coverage/lcov-report/lib/translations/modules/service_budget.ts.html +610 -0
- package/coverage/lcov-report/lib/translations/modules/service_budget_item.ts.html +613 -0
- package/coverage/lcov-report/lib/translations/modules/service_order.ts.html +604 -0
- package/coverage/lcov-report/lib/translations/modules/service_order_expenses.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation.ts.html +433 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_action.ts.html +526 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_action_digital_signature.ts.html +184 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_action_field.ts.html +349 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_action_message.ts.html +382 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_automation.ts.html +1246 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_automation_field.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_comment.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_field.ts.html +271 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_history.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_phase.ts.html +316 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_transition.ts.html +232 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_transition_validation.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_type.ts.html +268 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_version.ts.html +202 -0
- package/coverage/lcov-report/lib/translations/modules/solicitation_watcher.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/sso_provider.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/state.ts.html +148 -0
- package/coverage/lcov-report/lib/translations/modules/stock_entry.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/stock_entry_item.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/stock_exit.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/stock_exit_item.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/stock_transfer.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/stock_transfer_item.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/sub_system.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/subscription.ts.html +136 -0
- package/coverage/lcov-report/lib/translations/modules/subscription_transaction.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/subsidiary.ts.html +265 -0
- package/coverage/lcov-report/lib/translations/modules/supplier.ts.html +481 -0
- package/coverage/lcov-report/lib/translations/modules/system.ts.html +148 -0
- package/coverage/lcov-report/lib/translations/modules/tag.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/taggable.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/telemetry_event.ts.html +481 -0
- package/coverage/lcov-report/lib/translations/modules/telemetry_event_type.ts.html +124 -0
- package/coverage/lcov-report/lib/translations/modules/telemetry_event_type_supplier.ts.html +181 -0
- package/coverage/lcov-report/lib/translations/modules/telemetry_historical_use.ts.html +148 -0
- package/coverage/lcov-report/lib/translations/modules/telemetry_supplier_api.ts.html +124 -0
- package/coverage/lcov-report/lib/translations/modules/telemetry_supplier_field.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/tire.ts.html +175 -0
- package/coverage/lcov-report/lib/translations/modules/tire_brand.ts.html +160 -0
- package/coverage/lcov-report/lib/translations/modules/tire_dimension.ts.html +160 -0
- package/coverage/lcov-report/lib/translations/modules/tire_discard_cause.ts.html +133 -0
- package/coverage/lcov-report/lib/translations/modules/tire_drawing.ts.html +241 -0
- package/coverage/lcov-report/lib/translations/modules/tire_life.ts.html +115 -0
- package/coverage/lcov-report/lib/translations/modules/transaction.ts.html +721 -0
- package/coverage/lcov-report/lib/translations/modules/trip.ts.html +784 -0
- package/coverage/lcov-report/lib/translations/modules/upgrade_script.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/user.ts.html +256 -0
- package/coverage/lcov-report/lib/translations/modules/user_device.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/utilized_quota.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle.ts.html +2842 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_axes.ts.html +148 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_axis.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_axis_type.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_booking.ts.html +319 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_brand.ts.html +208 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_bulk.ts.html +196 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_casualty.ts.html +634 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_casualty_classification.ts.html +133 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_casualty_type.ts.html +133 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_change_history.ts.html +328 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_class.ts.html +145 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_deactivation_cause.ts.html +112 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_due.ts.html +160 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_event.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_event_type.ts.html +112 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_fipe_option.ts.html +136 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_fuel.ts.html +208 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_group.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_hitch.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_layout.ts.html +160 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_layout_axe.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_layout_position.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_leasing.ts.html +373 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_maintenance_plan.ts.html +238 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_maintenance_plan_item.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_maintenance_plan_service.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_model.ts.html +280 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_class.ts.html +181 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_consumption.ts.html +160 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_price_history.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_record.ts.html +136 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_technical_spec.ts.html +172 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_model_version.ts.html +208 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_request_type.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_stock.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_tag.ts.html +112 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_type.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/vehicle_type_axis.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/visual_management.ts.html +127 -0
- package/coverage/lcov-report/lib/translations/modules/warehouse.ts.html +193 -0
- package/coverage/lcov-report/lib/translations/modules/warehouse_item.ts.html +94 -0
- package/coverage/lcov-report/lib/translations/modules/webhook.ts.html +307 -0
- package/coverage/lcov-report/lib/translations/modules/white_label.ts.html +94 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov.info +3278 -0
- package/dist/translations/emails/client_plan_validation.d.ts +10 -0
- package/dist/translations/emails/client_plan_validation.js +13 -0
- package/dist/translations/emails/finished-pre-invoice-conference.js +2 -2
- package/dist/translations/modules/client_plan_validation.d.ts +20 -0
- package/dist/translations/modules/client_plan_validation.js +23 -0
- package/lib/translations/emails/client_plan_validation.ts +11 -0
- package/lib/translations/emails/finished-pre-invoice-conference.ts +2 -2
- package/lib/translations/modules/client_plan_validation.ts +21 -0
- package/package.json +9 -5
- package/core.157 +0 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
/*
|
|
2
|
+
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
|
|
3
|
+
https://github.com/typescript-eslint/tslint-to-eslint-config
|
|
4
|
+
|
|
5
|
+
It represents the closest reasonable ESLint configuration to this
|
|
6
|
+
project's original TSLint configuration.
|
|
7
|
+
|
|
8
|
+
We recommend eventually switching this configuration to extend from
|
|
9
|
+
the recommended rulesets in typescript-eslint.
|
|
10
|
+
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
|
|
11
|
+
|
|
12
|
+
Happy linting! 💖
|
|
13
|
+
*/
|
|
14
|
+
{
|
|
15
|
+
"env": {
|
|
16
|
+
"es6": true,
|
|
17
|
+
"node": true
|
|
18
|
+
},
|
|
19
|
+
"ignorePatterns": [
|
|
20
|
+
".eslintrc",
|
|
21
|
+
"coverage/",
|
|
22
|
+
"!.*",
|
|
23
|
+
"node_modules/*",
|
|
24
|
+
"junit/",
|
|
25
|
+
"dist/",
|
|
26
|
+
".vscode/",
|
|
27
|
+
"lib/**/*.spec.ts"
|
|
28
|
+
],
|
|
29
|
+
"parser": "@typescript-eslint/parser",
|
|
30
|
+
"parserOptions": {
|
|
31
|
+
"project": "tsconfig.json",
|
|
32
|
+
"sourceType": "module",
|
|
33
|
+
"createDefaultProgram": true
|
|
34
|
+
},
|
|
35
|
+
"plugins": [
|
|
36
|
+
"eslint-plugin-jsdoc",
|
|
37
|
+
"eslint-plugin-prefer-arrow",
|
|
38
|
+
"import",
|
|
39
|
+
"eslint-plugin-no-null",
|
|
40
|
+
"@typescript-eslint"
|
|
41
|
+
],
|
|
42
|
+
"rules": {
|
|
43
|
+
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
44
|
+
"@typescript-eslint/array-type": [
|
|
45
|
+
"error",
|
|
46
|
+
{
|
|
47
|
+
"default": "array"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"@typescript-eslint/await-thenable": "error",
|
|
51
|
+
"@typescript-eslint/ban-types": [
|
|
52
|
+
"error",
|
|
53
|
+
{
|
|
54
|
+
"types": {
|
|
55
|
+
"Object": {
|
|
56
|
+
"message": "Avoid using the `Object` type. Did you mean `object`?"
|
|
57
|
+
},
|
|
58
|
+
"Function": {
|
|
59
|
+
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
|
|
60
|
+
},
|
|
61
|
+
"Boolean": {
|
|
62
|
+
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
|
|
63
|
+
},
|
|
64
|
+
"Number": {
|
|
65
|
+
"message": "Avoid using the `Number` type. Did you mean `number`?"
|
|
66
|
+
},
|
|
67
|
+
"String": {
|
|
68
|
+
"message": "Avoid using the `String` type. Did you mean `string`?"
|
|
69
|
+
},
|
|
70
|
+
"Symbol": {
|
|
71
|
+
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"@typescript-eslint/consistent-type-assertions": "error",
|
|
77
|
+
"@typescript-eslint/dot-notation": "error",
|
|
78
|
+
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
79
|
+
"@typescript-eslint/indent": [
|
|
80
|
+
"error",
|
|
81
|
+
"tab"
|
|
82
|
+
],
|
|
83
|
+
"@typescript-eslint/member-delimiter-style": [
|
|
84
|
+
"error",
|
|
85
|
+
{
|
|
86
|
+
"multiline": {
|
|
87
|
+
"delimiter": "semi",
|
|
88
|
+
"requireLast": true
|
|
89
|
+
},
|
|
90
|
+
"singleline": {
|
|
91
|
+
"delimiter": "semi",
|
|
92
|
+
"requireLast": false
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"@typescript-eslint/member-ordering": "error",
|
|
97
|
+
"@typescript-eslint/naming-convention": "off",
|
|
98
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
99
|
+
"@typescript-eslint/no-empty-interface": "error",
|
|
100
|
+
"@typescript-eslint/no-explicit-any": "error",
|
|
101
|
+
"@typescript-eslint/no-extraneous-class": "off",
|
|
102
|
+
"@typescript-eslint/no-floating-promises": "error",
|
|
103
|
+
"@typescript-eslint/no-for-in-array": "error",
|
|
104
|
+
"@typescript-eslint/no-inferrable-types": "error",
|
|
105
|
+
"@typescript-eslint/no-misused-new": "error",
|
|
106
|
+
"@typescript-eslint/no-namespace": "error",
|
|
107
|
+
"@typescript-eslint/no-non-null-assertion": "error",
|
|
108
|
+
"@typescript-eslint/no-param-reassign": "off",
|
|
109
|
+
"@typescript-eslint/no-parameter-properties": "off",
|
|
110
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
111
|
+
"@typescript-eslint/no-shadow": [
|
|
112
|
+
"error",
|
|
113
|
+
{
|
|
114
|
+
"hoist": "all"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"@typescript-eslint/no-this-alias": "error",
|
|
118
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
|
|
119
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
120
|
+
"@typescript-eslint/no-unused-expressions": "error",
|
|
121
|
+
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
|
122
|
+
"@typescript-eslint/no-useless-constructor": "error",
|
|
123
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
124
|
+
"@typescript-eslint/no-var-requires": "off",
|
|
125
|
+
"@typescript-eslint/prefer-for-of": "error",
|
|
126
|
+
"@typescript-eslint/prefer-function-type": "error",
|
|
127
|
+
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
128
|
+
"@typescript-eslint/prefer-readonly": "error",
|
|
129
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
130
|
+
"@typescript-eslint/quotes": [
|
|
131
|
+
"error",
|
|
132
|
+
"single"
|
|
133
|
+
],
|
|
134
|
+
"@typescript-eslint/require-await": "error",
|
|
135
|
+
"@typescript-eslint/restrict-plus-operands": "error",
|
|
136
|
+
"@typescript-eslint/semi": [
|
|
137
|
+
"error",
|
|
138
|
+
"always"
|
|
139
|
+
],
|
|
140
|
+
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
141
|
+
"@typescript-eslint/triple-slash-reference": [
|
|
142
|
+
"error",
|
|
143
|
+
{
|
|
144
|
+
"path": "always",
|
|
145
|
+
"types": "prefer-import",
|
|
146
|
+
"lib": "always"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"@typescript-eslint/unified-signatures": "error",
|
|
150
|
+
"arrow-body-style": "off",
|
|
151
|
+
"arrow-parens": [
|
|
152
|
+
"error",
|
|
153
|
+
"as-needed"
|
|
154
|
+
],
|
|
155
|
+
"comma-dangle": "error",
|
|
156
|
+
"complexity": [
|
|
157
|
+
"error",
|
|
158
|
+
{
|
|
159
|
+
"max": 20
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"constructor-super": "error",
|
|
163
|
+
"curly": "error",
|
|
164
|
+
"eol-last": "off",
|
|
165
|
+
"eqeqeq": [
|
|
166
|
+
"error",
|
|
167
|
+
"always"
|
|
168
|
+
],
|
|
169
|
+
"guard-for-in": "error",
|
|
170
|
+
"id-blacklist": "error",
|
|
171
|
+
"id-match": "error",
|
|
172
|
+
"import/no-default-export": "error",
|
|
173
|
+
"import/no-extraneous-dependencies": "off",
|
|
174
|
+
"import/no-internal-modules": "off",
|
|
175
|
+
"import/no-unassigned-import": "off",
|
|
176
|
+
"jsdoc/check-alignment": "error",
|
|
177
|
+
"jsdoc/check-indentation": "error",
|
|
178
|
+
"jsdoc/newline-after-description": "error",
|
|
179
|
+
"max-classes-per-file": "off",
|
|
180
|
+
"max-len": [
|
|
181
|
+
"error",
|
|
182
|
+
{
|
|
183
|
+
"code": 950
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"max-lines": [
|
|
187
|
+
"error",
|
|
188
|
+
950
|
|
189
|
+
],
|
|
190
|
+
"new-parens": "error",
|
|
191
|
+
"no-bitwise": "error",
|
|
192
|
+
"no-caller": "error",
|
|
193
|
+
"no-cond-assign": "error",
|
|
194
|
+
"no-console": [
|
|
195
|
+
"error",
|
|
196
|
+
{
|
|
197
|
+
"allow": [
|
|
198
|
+
"warn",
|
|
199
|
+
"dir",
|
|
200
|
+
"time",
|
|
201
|
+
"timeEnd",
|
|
202
|
+
"timeLog",
|
|
203
|
+
"trace",
|
|
204
|
+
"assert",
|
|
205
|
+
"clear",
|
|
206
|
+
"count",
|
|
207
|
+
"countReset",
|
|
208
|
+
"group",
|
|
209
|
+
"groupEnd",
|
|
210
|
+
"table",
|
|
211
|
+
"debug",
|
|
212
|
+
"info",
|
|
213
|
+
"dirxml",
|
|
214
|
+
"error",
|
|
215
|
+
"groupCollapsed",
|
|
216
|
+
"Console",
|
|
217
|
+
"profile",
|
|
218
|
+
"profileEnd",
|
|
219
|
+
"timeStamp",
|
|
220
|
+
"context"
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"no-debugger": "error",
|
|
225
|
+
"no-duplicate-case": "error",
|
|
226
|
+
"no-duplicate-imports": "error",
|
|
227
|
+
"no-empty": "off",
|
|
228
|
+
"no-eval": "error",
|
|
229
|
+
"no-fallthrough": "error",
|
|
230
|
+
"no-invalid-this": "off",
|
|
231
|
+
"no-irregular-whitespace": "error",
|
|
232
|
+
"no-magic-numbers": "off",
|
|
233
|
+
"no-multiple-empty-lines": [
|
|
234
|
+
"error",
|
|
235
|
+
{
|
|
236
|
+
"max": 1
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"no-new-wrappers": "error",
|
|
240
|
+
"no-null/no-null": "off",
|
|
241
|
+
"no-return-await": "error",
|
|
242
|
+
"no-sequences": "error",
|
|
243
|
+
"no-sparse-arrays": "error",
|
|
244
|
+
"no-template-curly-in-string": "error",
|
|
245
|
+
"no-throw-literal": "error",
|
|
246
|
+
"no-trailing-spaces": "error",
|
|
247
|
+
"no-undef-init": "error",
|
|
248
|
+
"no-underscore-dangle": "off",
|
|
249
|
+
"no-unsafe-finally": "error",
|
|
250
|
+
"no-unused-labels": "error",
|
|
251
|
+
"no-var": "error",
|
|
252
|
+
"no-void": "off",
|
|
253
|
+
"object-shorthand": "error",
|
|
254
|
+
"one-var": [
|
|
255
|
+
"error",
|
|
256
|
+
"never"
|
|
257
|
+
],
|
|
258
|
+
"padding-line-between-statements": [
|
|
259
|
+
"error",
|
|
260
|
+
{
|
|
261
|
+
"blankLine": "always",
|
|
262
|
+
"prev": "*",
|
|
263
|
+
"next": "return"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"prefer-arrow/prefer-arrow-functions": "off",
|
|
267
|
+
"prefer-const": "error",
|
|
268
|
+
"prefer-template": "error",
|
|
269
|
+
"quote-props": [
|
|
270
|
+
"error",
|
|
271
|
+
"consistent"
|
|
272
|
+
],
|
|
273
|
+
"radix": "error",
|
|
274
|
+
"space-before-function-paren": "off",
|
|
275
|
+
"spaced-comment": [
|
|
276
|
+
"error",
|
|
277
|
+
"always",
|
|
278
|
+
{
|
|
279
|
+
"markers": [
|
|
280
|
+
"/"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"use-isnan": "error",
|
|
285
|
+
"valid-typeof": "off",
|
|
286
|
+
"yoda": "error",
|
|
287
|
+
"no-extra-semi": "error",
|
|
288
|
+
"semi": "error",
|
|
289
|
+
"semi-style": ["error", "last"],
|
|
290
|
+
"newline-before-return": "error",
|
|
291
|
+
"newline-after-var": "error",
|
|
292
|
+
"lines-around-directive": "error",
|
|
293
|
+
"sort-vars": ["error", { "ignoreCase": true }]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<testsuites name="Sofit View Locale tests" tests="9" failures="0" time="6.914">
|
|
3
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2023-09-25T20:35:46" time="5.615" tests="5">
|
|
4
|
+
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.002">
|
|
5
|
+
</testcase>
|
|
6
|
+
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
|
|
7
|
+
</testcase>
|
|
8
|
+
<testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
|
|
9
|
+
</testcase>
|
|
10
|
+
<testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
|
|
11
|
+
</testcase>
|
|
12
|
+
<testcase classname="Joi tests should return translated types" name="Joi tests should return translated types" time="0.001">
|
|
13
|
+
</testcase>
|
|
14
|
+
</testsuite>
|
|
15
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2023-09-25T20:35:52" time="0.508" tests="4">
|
|
16
|
+
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
|
|
17
|
+
</testcase>
|
|
18
|
+
<testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
|
|
19
|
+
</testcase>
|
|
20
|
+
<testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
|
|
21
|
+
</testcase>
|
|
22
|
+
<testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
|
|
23
|
+
</testcase>
|
|
24
|
+
</testsuite>
|
|
25
|
+
</testsuites>
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
body, html {
|
|
2
|
+
margin:0; padding: 0;
|
|
3
|
+
height: 100%;
|
|
4
|
+
}
|
|
5
|
+
body {
|
|
6
|
+
font-family: Helvetica Neue, Helvetica, Arial;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
color:#333;
|
|
9
|
+
}
|
|
10
|
+
.small { font-size: 12px; }
|
|
11
|
+
*, *:after, *:before {
|
|
12
|
+
-webkit-box-sizing:border-box;
|
|
13
|
+
-moz-box-sizing:border-box;
|
|
14
|
+
box-sizing:border-box;
|
|
15
|
+
}
|
|
16
|
+
h1 { font-size: 20px; margin: 0;}
|
|
17
|
+
h2 { font-size: 14px; }
|
|
18
|
+
pre {
|
|
19
|
+
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
-moz-tab-size: 2;
|
|
23
|
+
-o-tab-size: 2;
|
|
24
|
+
tab-size: 2;
|
|
25
|
+
}
|
|
26
|
+
a { color:#0074D9; text-decoration:none; }
|
|
27
|
+
a:hover { text-decoration:underline; }
|
|
28
|
+
.strong { font-weight: bold; }
|
|
29
|
+
.space-top1 { padding: 10px 0 0 0; }
|
|
30
|
+
.pad2y { padding: 20px 0; }
|
|
31
|
+
.pad1y { padding: 10px 0; }
|
|
32
|
+
.pad2x { padding: 0 20px; }
|
|
33
|
+
.pad2 { padding: 20px; }
|
|
34
|
+
.pad1 { padding: 10px; }
|
|
35
|
+
.space-left2 { padding-left:55px; }
|
|
36
|
+
.space-right2 { padding-right:20px; }
|
|
37
|
+
.center { text-align:center; }
|
|
38
|
+
.clearfix { display:block; }
|
|
39
|
+
.clearfix:after {
|
|
40
|
+
content:'';
|
|
41
|
+
display:block;
|
|
42
|
+
height:0;
|
|
43
|
+
clear:both;
|
|
44
|
+
visibility:hidden;
|
|
45
|
+
}
|
|
46
|
+
.fl { float: left; }
|
|
47
|
+
@media only screen and (max-width:640px) {
|
|
48
|
+
.col3 { width:100%; max-width:100%; }
|
|
49
|
+
.hide-mobile { display:none!important; }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.quiet {
|
|
53
|
+
color: #7f7f7f;
|
|
54
|
+
color: rgba(0,0,0,0.5);
|
|
55
|
+
}
|
|
56
|
+
.quiet a { opacity: 0.7; }
|
|
57
|
+
|
|
58
|
+
.fraction {
|
|
59
|
+
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
color: #555;
|
|
62
|
+
background: #E8E8E8;
|
|
63
|
+
padding: 4px 5px;
|
|
64
|
+
border-radius: 3px;
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
div.path a:link, div.path a:visited { color: #333; }
|
|
69
|
+
table.coverage {
|
|
70
|
+
border-collapse: collapse;
|
|
71
|
+
margin: 10px 0 0 0;
|
|
72
|
+
padding: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
table.coverage td {
|
|
76
|
+
margin: 0;
|
|
77
|
+
padding: 0;
|
|
78
|
+
vertical-align: top;
|
|
79
|
+
}
|
|
80
|
+
table.coverage td.line-count {
|
|
81
|
+
text-align: right;
|
|
82
|
+
padding: 0 5px 0 20px;
|
|
83
|
+
}
|
|
84
|
+
table.coverage td.line-coverage {
|
|
85
|
+
text-align: right;
|
|
86
|
+
padding-right: 10px;
|
|
87
|
+
min-width:20px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
table.coverage td span.cline-any {
|
|
91
|
+
display: inline-block;
|
|
92
|
+
padding: 0 5px;
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
.missing-if-branch {
|
|
96
|
+
display: inline-block;
|
|
97
|
+
margin-right: 5px;
|
|
98
|
+
border-radius: 3px;
|
|
99
|
+
position: relative;
|
|
100
|
+
padding: 0 4px;
|
|
101
|
+
background: #333;
|
|
102
|
+
color: yellow;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.skip-if-branch {
|
|
106
|
+
display: none;
|
|
107
|
+
margin-right: 10px;
|
|
108
|
+
position: relative;
|
|
109
|
+
padding: 0 4px;
|
|
110
|
+
background: #ccc;
|
|
111
|
+
color: white;
|
|
112
|
+
}
|
|
113
|
+
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
114
|
+
color: inherit !important;
|
|
115
|
+
}
|
|
116
|
+
.coverage-summary {
|
|
117
|
+
border-collapse: collapse;
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
|
121
|
+
.keyline-all { border: 1px solid #ddd; }
|
|
122
|
+
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
|
123
|
+
.coverage-summary tbody { border: 1px solid #bbb; }
|
|
124
|
+
.coverage-summary td { border-right: 1px solid #bbb; }
|
|
125
|
+
.coverage-summary td:last-child { border-right: none; }
|
|
126
|
+
.coverage-summary th {
|
|
127
|
+
text-align: left;
|
|
128
|
+
font-weight: normal;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
}
|
|
131
|
+
.coverage-summary th.file { border-right: none !important; }
|
|
132
|
+
.coverage-summary th.pct { }
|
|
133
|
+
.coverage-summary th.pic,
|
|
134
|
+
.coverage-summary th.abs,
|
|
135
|
+
.coverage-summary td.pct,
|
|
136
|
+
.coverage-summary td.abs { text-align: right; }
|
|
137
|
+
.coverage-summary td.file { white-space: nowrap; }
|
|
138
|
+
.coverage-summary td.pic { min-width: 120px !important; }
|
|
139
|
+
.coverage-summary tfoot td { }
|
|
140
|
+
|
|
141
|
+
.coverage-summary .sorter {
|
|
142
|
+
height: 10px;
|
|
143
|
+
width: 7px;
|
|
144
|
+
display: inline-block;
|
|
145
|
+
margin-left: 0.5em;
|
|
146
|
+
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
|
+
}
|
|
148
|
+
.coverage-summary .sorted .sorter {
|
|
149
|
+
background-position: 0 -20px;
|
|
150
|
+
}
|
|
151
|
+
.coverage-summary .sorted-desc .sorter {
|
|
152
|
+
background-position: 0 -10px;
|
|
153
|
+
}
|
|
154
|
+
.status-line { height: 10px; }
|
|
155
|
+
/* yellow */
|
|
156
|
+
.cbranch-no { background: yellow !important; color: #111; }
|
|
157
|
+
/* dark red */
|
|
158
|
+
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
|
159
|
+
.low .chart { border:1px solid #C21F39 }
|
|
160
|
+
.highlighted,
|
|
161
|
+
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
|
162
|
+
background: #C21F39 !important;
|
|
163
|
+
}
|
|
164
|
+
/* medium red */
|
|
165
|
+
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
|
166
|
+
/* light red */
|
|
167
|
+
.low, .cline-no { background:#FCE1E5 }
|
|
168
|
+
/* light green */
|
|
169
|
+
.high, .cline-yes { background:rgb(230,245,208) }
|
|
170
|
+
/* medium green */
|
|
171
|
+
.cstat-yes { background:rgb(161,215,106) }
|
|
172
|
+
/* dark green */
|
|
173
|
+
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
|
174
|
+
.high .chart { border:1px solid rgb(77,146,33) }
|
|
175
|
+
/* dark yellow (gold) */
|
|
176
|
+
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
|
|
177
|
+
.medium .chart { border:1px solid #f9cd0b; }
|
|
178
|
+
/* light yellow */
|
|
179
|
+
.medium { background: #fff4c2; }
|
|
180
|
+
|
|
181
|
+
.cstat-skip { background: #ddd; color: #111; }
|
|
182
|
+
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
183
|
+
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
184
|
+
|
|
185
|
+
span.cline-neutral { background: #eaeaea; }
|
|
186
|
+
|
|
187
|
+
.coverage-summary td.empty {
|
|
188
|
+
opacity: .5;
|
|
189
|
+
padding-top: 4px;
|
|
190
|
+
padding-bottom: 4px;
|
|
191
|
+
line-height: 1;
|
|
192
|
+
color: #888;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.cover-fill, .cover-empty {
|
|
196
|
+
display:inline-block;
|
|
197
|
+
height: 12px;
|
|
198
|
+
}
|
|
199
|
+
.chart {
|
|
200
|
+
line-height: 0;
|
|
201
|
+
}
|
|
202
|
+
.cover-empty {
|
|
203
|
+
background: white;
|
|
204
|
+
}
|
|
205
|
+
.cover-full {
|
|
206
|
+
border-right: none !important;
|
|
207
|
+
}
|
|
208
|
+
pre.prettyprint {
|
|
209
|
+
border: none !important;
|
|
210
|
+
padding: 0 !important;
|
|
211
|
+
margin: 0 !important;
|
|
212
|
+
}
|
|
213
|
+
.com { color: #999 !important; }
|
|
214
|
+
.ignore-none { color: #999; font-weight: normal; }
|
|
215
|
+
|
|
216
|
+
.wrapper {
|
|
217
|
+
min-height: 100%;
|
|
218
|
+
height: auto !important;
|
|
219
|
+
height: 100%;
|
|
220
|
+
margin: 0 auto -48px;
|
|
221
|
+
}
|
|
222
|
+
.footer, .push {
|
|
223
|
+
height: 48px;
|
|
224
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var jumpToCode = (function init() {
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
+
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ['td.pct.low'];
|
|
8
|
+
|
|
9
|
+
// We don't want to select elements that are direct descendants of another match
|
|
10
|
+
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
+
|
|
12
|
+
// Selecter that finds elements on the page to which we can jump
|
|
13
|
+
var selector =
|
|
14
|
+
fileListingElements.join(', ') +
|
|
15
|
+
', ' +
|
|
16
|
+
notSelector +
|
|
17
|
+
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
+
|
|
19
|
+
// The NodeList of matching elements
|
|
20
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
+
|
|
22
|
+
var currentIndex;
|
|
23
|
+
|
|
24
|
+
function toggleClass(index) {
|
|
25
|
+
missingCoverageElements
|
|
26
|
+
.item(currentIndex)
|
|
27
|
+
.classList.remove('highlighted');
|
|
28
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function makeCurrent(index) {
|
|
32
|
+
toggleClass(index);
|
|
33
|
+
currentIndex = index;
|
|
34
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
+
behavior: 'smooth',
|
|
36
|
+
block: 'center',
|
|
37
|
+
inline: 'center'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function goToPrevious() {
|
|
42
|
+
var nextIndex = 0;
|
|
43
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
+
} else if (missingCoverageElements.length > 1) {
|
|
46
|
+
nextIndex = currentIndex - 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
makeCurrent(nextIndex);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function goToNext() {
|
|
53
|
+
var nextIndex = 0;
|
|
54
|
+
|
|
55
|
+
if (
|
|
56
|
+
typeof currentIndex === 'number' &&
|
|
57
|
+
currentIndex < missingCoverageElements.length - 1
|
|
58
|
+
) {
|
|
59
|
+
nextIndex = currentIndex + 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
makeCurrent(nextIndex);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return function jump(event) {
|
|
66
|
+
if (
|
|
67
|
+
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
+
document.activeElement != null
|
|
69
|
+
) {
|
|
70
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
switch (event.which) {
|
|
75
|
+
case 78: // n
|
|
76
|
+
case 74: // j
|
|
77
|
+
goToNext();
|
|
78
|
+
break;
|
|
79
|
+
case 66: // b
|
|
80
|
+
case 75: // k
|
|
81
|
+
case 80: // p
|
|
82
|
+
goToPrevious();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
})();
|
|
87
|
+
window.addEventListener('keydown', jumpToCode);
|
|
Binary file
|