tronair-gui
Version:
Web application/GUI for performing airdrops on the TRON blockchain
523 lines (419 loc) • 14.9 kB
JavaScript
import DataSheetBase from './DataSheetBase.js';
export default class DataSheet_localizationSheet extends DataSheetBase {
constructor(id, updateCb) {
super(id, updateCb);
this.requestedKeyPath = ""; // this value can be specified in the React Studio data sheet UI
}
makeDefaultItems() {
// eslint-disable-next-line no-unused-vars
let key = 1;
// eslint-disable-next-line no-unused-vars
let item;
item = {};
this.items.push(item);
item['key'] = "component1_button_1046495";
item['en'] = "Accept";
item = {};
this.items.push(item);
item['key'] = "cnbanner_iconbutton_752562";
item['en'] = "Login";
item = {};
this.items.push(item);
item['key'] = "component1_text_216786";
item['en'] = "Airdropped Token";
item = {};
this.items.push(item);
item['key'] = "login_button_175233";
item['en'] = "Login with TronLink";
item = {};
this.items.push(item);
item['key'] = "login_text_37587";
item['en'] = "New text. Double-click to edit";
item = {};
this.items.push(item);
item['key'] = "login_tl_login_btncopy_876542";
item['en'] = "Login with Private Key";
item = {};
this.items.push(item);
item['key'] = "cnbanner_login_btncopy_594109";
item['en'] = "Logout XYZ…";
item = {};
this.items.push(item);
item['key'] = "start_button_281040";
item['en'] = "Login with Private Key";
item = {};
this.items.push(item);
item['key'] = "start_buttoncopy_665702";
item['en'] = "Login with TronLink";
item = {};
this.items.push(item);
item['key'] = "start_field_783206";
item['en'] = "Enter your private key...";
item = {};
this.items.push(item);
item['key'] = "start_button_135166";
item['en'] = "New button";
item = {};
this.items.push(item);
item['key'] = "start_pk_login_btncopy_282155";
item['en'] = "Verify Private Key";
item = {};
this.items.push(item);
item['key'] = "start_text_895288";
item['en'] = "Successfully signed in as:";
item = {};
this.items.push(item);
item['key'] = "start_textcopy_751213";
item['en'] = "Successfully signed in as:";
item = {};
this.items.push(item);
item['key'] = "start_button_759230";
item['en'] = "New button";
item = {};
this.items.push(item);
item['key'] = "start_verify_pk_btncopy_452770";
item['en'] = "Go To Airdrop Setup";
item = {};
this.items.push(item);
item['key'] = "component1_textcopy_414756";
item['en'] = "Airdrop Recipients:";
item = {};
this.items.push(item);
item['key'] = "settings_text_305724";
item['en'] = "Choose a Token to Drop:";
item = {};
this.items.push(item);
item['key'] = "button1_title_486181";
item['en'] = "Part X";
item = {};
this.items.push(item);
item['key'] = "settings_token_drop_txtcopy_573005";
item['en'] = "Choose Airdrop Recipients:";
item = {};
this.items.push(item);
item['key'] = "settings_checkbox_314720";
item['en'] = "Token Holders";
item = {};
this.items.push(item);
item['key'] = "settings_checkboxcopy_744703";
item['en'] = "SR Voters";
item = {};
this.items.push(item);
item['key'] = "settings_drop_rec_txtcopy_611390";
item['en'] = "Advanced:";
item = {};
this.items.push(item);
item['key'] = "settings_checkbox2_795011";
item['en'] = "New option";
item = {};
this.items.push(item);
item['key'] = "settings_checkboxcopy2_603589";
item['en'] = "Weighted";
item = {};
this.items.push(item);
item['key'] = "settings_token_drop_txtcopy_55881";
item['en'] = "Total Amount to Drop:";
item = {};
this.items.push(item);
item['key'] = "settings_token_drop_txtcopy2_926716";
item['en'] = "Amount:";
item = {};
this.items.push(item);
item['key'] = "settings_token_drop_txtcopy2_1022320";
item['en'] = "Amount of HELP Tokens:";
item = {};
this.items.push(item);
item['key'] = "settings_help_numcopy_416918";
item['en'] = "Amount of HELP Required:";
item = {};
this.items.push(item);
item['key'] = "settings_help_reqcopy_841069";
item['en'] = "Amount of HELP Required:";
item = {};
this.items.push(item);
item['key'] = "settings_token_drop_txtcopy2_1027240";
item['en'] = "This is where to put examples of how many tokens individuals will recieve";
item = {};
this.items.push(item);
item['key'] = "settings_button_936341";
item['en'] = " Review";
item = {};
this.items.push(item);
item['key'] = "settings_button_718096";
item['en'] = "Review";
item = {};
this.items.push(item);
item['key'] = "review_text_611454";
item['en'] = "REVIEW:";
item = {};
this.items.push(item);
item['key'] = "review_textcopy_477881";
item['en'] = "REVIEW:";
item = {};
this.items.push(item);
item['key'] = "review_textcopy_925355";
item['en'] = "Please confirm the following:\n\nAddress performing airdrop:\n\nToken being airdropped:\n\nTotal number of tokens being dropped:\n\nNumber of recipients:\n\nCost of airdrop (in HELP):\n\nCost in bandwidth:\n\nProjected fees from insufficient bandwidth:";
item = {};
this.items.push(item);
item['key'] = "review_button_457223";
item['en'] = "Confirm";
item = {};
this.items.push(item);
item['key'] = "component1_text_246654";
item['en'] = "END OF DEMO";
item = {};
this.items.push(item);
item['key'] = "cnbanner2_login_btn_223170";
item['en'] = "Login";
item = {};
this.items.push(item);
item['key'] = "cnbanner2_logout_btn_713470";
item['en'] = "Logout XYZ…";
item = {};
this.items.push(item);
item['key'] = "status_iconbutton_338743";
item['en'] = "Logged In";
item = {};
this.items.push(item);
item['key'] = "status_iconbuttoncopy_1018550";
item['en'] = "Settings";
item = {};
this.items.push(item);
item['key'] = "status_iconbuttoncopy2_445658";
item['en'] = "Reviewed";
item = {};
this.items.push(item);
item['key'] = "status_step3_nocopy_179809";
item['en'] = "Reviewed";
item = {};
this.items.push(item);
item['key'] = "status_step2_nocopy_856700";
item['en'] = "Settings";
item = {};
this.items.push(item);
item['key'] = "status_step1_nocopy_699573";
item['en'] = "Logged In";
item = {};
this.items.push(item);
item['key'] = "license_agreement2_accept_btn_427273";
item['en'] = "Accept";
item = {};
this.items.push(item);
item['key'] = "license_agreement2_title_601022";
item['en'] = "User Liscense Agreement";
item = {};
this.items.push(item);
item['key'] = "license_agreement2_body_625380";
item['en'] = "This will be where the user liscense agreement stuff goes. Basically saying that CommunityNode will not store any users info, is not responsible for mistakes, blah, blah, blah..\n\nBy clicking “Accept”, you agree the the terms and conditions of this user application.";
item = {};
this.items.push(item);
item['key'] = "choose_login_pk_login_btn_283649";
item['en'] = "Login with Private Key";
item = {};
this.items.push(item);
item['key'] = "choose_login_tl_login_btn_322014";
item['en'] = "Login with TronLink";
item = {};
this.items.push(item);
item['key'] = "choose_login_button_652995";
item['en'] = "Login with TronLink";
item = {};
this.items.push(item);
item['key'] = "choose_login_tl_login_btncopy_625081";
item['en'] = "Login with Private Key";
item = {};
this.items.push(item);
item['key'] = "choose_login2_tl_login_btncopy_214840";
item['en'] = "Verify Private Key";
item = {};
this.items.push(item);
item['key'] = "choose_login2_tl_login_btn_679135";
item['en'] = "Login with TronLink";
item = {};
this.items.push(item);
item['key'] = "pklogin_field_305229";
item['en'] = "Enter your private key...";
item = {};
this.items.push(item);
item['key'] = "pklogin2_pk_text_edit_258851";
item['en'] = "Enter your private key...";
item = {};
this.items.push(item);
item['key'] = "pklogin2_verfiy_pk_btn_459467";
item['en'] = "Go To Settings";
item = {};
this.items.push(item);
item['key'] = "verifylogin_text_444884";
item['en'] = "Success! Logged in as:";
item = {};
this.items.push(item);
item['key'] = "verifylogin_text2_692666";
item['en'] = "New text. Double-click to edit";
item = {};
this.items.push(item);
item['key'] = "start_text_153066";
item['en'] = "Success! \nYou are logged in as:";
item = {};
this.items.push(item);
item['key'] = "start_textcopy_435307";
item['en'] = " ";
item = {};
this.items.push(item);
item['key'] = "start_button_528625";
item['en'] = "Go To Settings";
item = {};
this.items.push(item);
item['key'] = "cnbanner_text_605038";
item['en'] = "TLzBpvsrRBLfjK58mLQnaQFWXRMkwYxYUS";
item = {};
this.items.push(item);
item['key'] = "cnbanner_textcopy_357201";
item['en'] = "Login";
item = {};
this.items.push(item);
item['key'] = "component2_text_366518";
item['en'] = "Choose Token to Drop:";
item = {};
this.items.push(item);
item['key'] = "component2_textcopy_1032644";
item['en'] = "Choose Airdrop Recipients:";
item = {};
this.items.push(item);
item['key'] = "component2_checkbox_977772";
item['en'] = "Token Holders";
item = {};
this.items.push(item);
item['key'] = "component2_holder_checkcopy_583224";
item['en'] = "SR Voters";
item = {};
this.items.push(item);
item['key'] = "component2_textcopy2_544251";
item['en'] = "Total Amount to Drop:";
item = {};
this.items.push(item);
item['key'] = "component2_checkbox_916358";
item['en'] = "Weighted";
item = {};
this.items.push(item);
item['key'] = "component2_text2_720332";
item['en'] = "New text. Double-click to edit";
item = {};
this.items.push(item);
item['key'] = "component2_text2_71580";
item['en'] = "Examples Based on Your Choices:";
item = {};
this.items.push(item);
item['key'] = "component2_text3_923621";
item['en'] = "This is where examples will go based on choices made above.\n\nExample 1: A holder of 1000 [ds_holder_pick] will recieve [x] [ds_drop_token_pick]\n\netc.\n\netc.";
item = {};
this.items.push(item);
item['key'] = "component2_text4_62191";
item['en'] = "This is where examples will go based on choices made above.\n\nExample 1: A holder of 1000 [ds_holder_pick] will recieve [x] [ds_drop_token_pick]\n\netc.\n\netc.\n";
item = {};
this.items.push(item);
item['key'] = "summary_text_90192";
item['en'] = "Please Confirm the Following:";
item = {};
this.items.push(item);
item['key'] = "summary_text2_950713";
item['en'] = "Please confirm the following:\n\nAddress performing airdrop:\n\nToken being airdropped:\n\nTotal number of tokens being dropped:\n\nNumber of recipients:\n\nCost of airdrop (in HELP):\n\nCost in bandwidth:\n\nProjected fees from insufficient bandwidth";
item = {};
this.items.push(item);
item['key'] = "summary_text2_144110";
item['en'] = "\nAddress performing airdrop:\n\nToken being airdropped:\n\nTotal number of tokens being dropped:\n\nNumber of recipients:\n\nCost of airdrop (in HELP):\n\nCost in bandwidth:\n\nProjected fees from insufficient bandwidth:";
item = {};
this.items.push(item);
item['key'] = "banner_button_892741";
item['en'] = "Login";
item = {};
this.items.push(item);
item['key'] = "banner_text_968250";
item['en'] = "Login";
item = {};
this.items.push(item);
item['key'] = "banner_textcopy_698703";
item['en'] = "Logout";
item = {};
this.items.push(item);
item['key'] = "banner_button_273833";
item['en'] = "New button";
item = {};
this.items.push(item);
item['key'] = "review2_submit_airdrop_btn_287015";
item['en'] = "Submit Airdrop";
item = {};
this.items.push(item);
item['key'] = "summary_checkbox_670636";
item['en'] = "I confirm";
item = {};
this.items.push(item);
item['key'] = "component2_button_1016797";
item['en'] = "New button";
item = {};
this.items.push(item);
item['key'] = "component2_text_837390";
item['en'] = "Save airdrop data?";
item = {};
this.items.push(item);
item['key'] = "component2_checkbox_563234";
item['en'] = "Save airdrop data?";
item = {};
this.items.push(item);
item['key'] = "component2_text_755747";
item['en'] = "Save to directory:";
item = {};
this.items.push(item);
item['key'] = "component2_button_955090";
item['en'] = "Browse";
item = {};
this.items.push(item);
item['key'] = "component2_text2_59212";
item['en'] = "New text. Double-click to edit";
item = {};
this.items.push(item);
item['key'] = "component2_button_1029115";
item['en'] = "Submit Airdrop";
item = {};
this.items.push(item);
item['key'] = "banner_text2_125288";
item['en'] = "Community Node";
item = {};
this.items.push(item);
item['key'] = "startstatus_text_567432";
item['en'] = "New text. Double-click to edit";
item = {};
this.items.push(item);
item['key'] = "cnbanner2_textcopy_193680";
item['en'] = "TLzBpvsrRBLfjK58mLQnaQFWXRMkwYxYUS";
item = {};
this.items.push(item);
item['key'] = "cnbanner2_text_721170";
item['en'] = "Login";
item = {};
this.items.push(item);
item['key'] = "cnbanner2_text2_668785";
item['en'] = "Login";
item = {};
this.items.push(item);
item['key'] = "progressbar_textcopy_838478";
item['en'] = "Setup";
item = {};
this.items.push(item);
item['key'] = "progressbar_textcopy2_455529";
item['en'] = "Review";
}
getStringsByLanguage = () => {
let stringsByLang = {};
for (let row of this.items) {
const locKey = row.key;
for (let key in row) {
if (key === 'key')
continue;
let langObj = stringsByLang[key] || {};
langObj[locKey] = row[key];
stringsByLang[key] = langObj;
}
}
return stringsByLang;
}
}