Exploit databaseDownload repository ZIP
GH-6af4b141195202e33b57be548d787527
7039teamxo/23754-2024-centerstage
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files83
7039teamxo/23754-2024-centerstageRevision ae963c80046c
- ↑..Parent directory
- images/
- obsolete/
- samples/
- FtcBlocksProjects_common.js
- FtcBlocks_common.js
- acceleration.js
- acceleration_sensor.js
- analog_input.js
- analog_output.js
- android_accelerometer.js
- android_gyroscope.js
- android_orientation.js
- android_sound_pool.js
- android_text_to_speech.js
- angular_velocity.js
- april_tag.js
- bno055imu.js
- bno055imu_parameters.js
- clipboard_util.js
- color.js
- color_range_sensor.js
- color_sensor.js
- compass_sensor.js
- cr_servo.js
- dbg_log.js
- dc_motor.js
- digital_channel.js
- distance_sensor.js
- elapsed_time2.js
- exposure_control.js
- file_manager.js
- focus_control.js
- gain_control.js
- gamepad.js
- gyro_sensor.js
- hardware_util.js
- husky_lens.js
- images.css
- imu.js
- imu_parameters.js
- ir_seeker_sensor.js
- led.js
- led_effect.js
- light_sensor.js
- linear_op_mode.js
- locale.js
- magnetic_flux.js
- matrix_f.js
- misc.js
- mr_i2c_compass_sensor.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/build/intermediates/assets/debug/mergeDebugAssets/blocks/locale.js
JavaScript · 3,233 bytes/**
* @license
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview FTC robot blocks related to Locale
* @author lizlooney@google.com (Liz Looney)
*/
// The following are generated dynamically in HardwareUtil.fetchJavaScriptForHardware():
// createLanguageCodeDropdown
// LANGUAGE_CODE_TOOLTIPS
// createCountryCodeDropdown
// COUNTRY_CODE_TOOLTIPS
// The following are defined in vars.js:
// createNonEditableField
// getPropertyColor
Blockly.Blocks['locale_languageCode'] = {
init: function() {
this.setOutput(true, 'String');
this.appendDummyInput()
.appendField(createNonEditableField('Language'))
.appendField(createLanguageCodeDropdown(), 'LANGUAGE_CODE');
this.setColour(getPropertyColor);
// Assign 'this' to a variable for use in the tooltip closure below.
var thisBlock = this;
var TOOLTIPS = LANGUAGE_CODE_TOOLTIPS;
this.setTooltip(function() {
var key = thisBlock.getFieldValue('LANGUAGE_CODE');
for (var i = 0; i < TOOLTIPS.length; i++) {
if (TOOLTIPS[i][0] == key) {
return TOOLTIPS[i][1];
}
}
return '';
});
}
};
Blockly.JavaScript['locale_languageCode'] = function(block) {
var code = '"' + block.getFieldValue('LANGUAGE_CODE') + '"';
return [code, Blockly.JavaScript.ORDER_ATOMIC];
};
Blockly.FtcJava['locale_languageCode'] = function(block) {
// Even in Java, a language code is actually just a string, not an enum.
var code = '"' + block.getFieldValue('LANGUAGE_CODE') + '"';
return [code, Blockly.FtcJava.ORDER_ATOMIC];
};
Blockly.Blocks['locale_countryCode'] = {
init: function() {
this.setOutput(true, 'String');
this.appendDummyInput()
.appendField(createNonEditableField('Country'))
.appendField(createCountryCodeDropdown(), 'COUNTRY_CODE');
this.setColour(getPropertyColor);
// Assign 'this' to a variable for use in the tooltip closure below.
var thisBlock = this;
var TOOLTIPS = COUNTRY_CODE_TOOLTIPS;
this.setTooltip(function() {
var key = thisBlock.getFieldValue('COUNTRY_CODE');
for (var i = 0; i < TOOLTIPS.length; i++) {
if (TOOLTIPS[i][0] == key) {
return TOOLTIPS[i][1];
}
}
return '';
});
}
};
Blockly.JavaScript['locale_countryCode'] = function(block) {
var code = '"' + block.getFieldValue('COUNTRY_CODE') + '"';
return [code, Blockly.JavaScript.ORDER_ATOMIC];
};
Blockly.FtcJava['locale_countryCode'] = function(block) {
// Even in Java, a country code is actually just a string, not an enum.
var code = '"' + block.getFieldValue('COUNTRY_CODE') + '"';
return [code, Blockly.FtcJava.ORDER_ATOMIC];
};