Add header component and side menu; update layout and styles
This commit is contained in:
@@ -31,6 +31,10 @@ class AuthenticationService {
|
||||
return this._token;
|
||||
}
|
||||
|
||||
public hasLoginToken(): boolean {
|
||||
return this._token !== null;
|
||||
}
|
||||
|
||||
async authenticate(applicationId: string, secret: string): Promise<AuthenticationResponse> {
|
||||
const authenticate = {
|
||||
// @ts-expect-error TODO(AZ): phenix-web-proto does not have Typescript types defined definition
|
||||
@@ -39,8 +43,8 @@ class AuthenticationService {
|
||||
deviceId: '',
|
||||
platform: PlatformDetectionService.platform,
|
||||
platformVersion: PlatformDetectionService.platformVersion,
|
||||
browser: PlatformDetectionService.browser,
|
||||
browserVersion: PlatformDetectionService.version,
|
||||
browser: PlatformDetectionService.browserName,
|
||||
browserVersion: PlatformDetectionService.browserVersion,
|
||||
applicationId,
|
||||
authenticationToken: secret,
|
||||
sessionId: this.sessionId
|
||||
|
||||
177
src/services/files/countries_mapping.json
Normal file
177
src/services/files/countries_mapping.json
Normal file
@@ -0,0 +1,177 @@
|
||||
{"AF": "Afghanistan",
|
||||
"AO": "Angola",
|
||||
"AL": "Albania",
|
||||
"AE": "United Arab Emirates",
|
||||
"AR": "Argentina",
|
||||
"AM": "Armenia",
|
||||
"AQ": "Antarctica",
|
||||
"TF": "French Southern and Antarctic Lands",
|
||||
"AU": "Australia",
|
||||
"AT": "Austria",
|
||||
"AZ": "Azerbaijan",
|
||||
"BI": "Burundi",
|
||||
"BE": "Belgium",
|
||||
"BJ": "Benin",
|
||||
"BF": "Burkina Faso",
|
||||
"BD": "Bangladesh",
|
||||
"BG": "Bulgaria",
|
||||
"BS": "The Bahamas",
|
||||
"BA": "Bosnia and Herzegovina",
|
||||
"BY": "Belarus",
|
||||
"BZ": "Belize",
|
||||
"BO": "Bolivia",
|
||||
"BR": "Brazil",
|
||||
"BN": "Brunei",
|
||||
"BT": "Bhutan",
|
||||
"BW": "Botswana",
|
||||
"CF": "Central African Republic",
|
||||
"CA": "Canada",
|
||||
"CH": "Switzerland",
|
||||
"CL": "Chile",
|
||||
"CN": "China",
|
||||
"CI": "Ivory Coast",
|
||||
"CM": "Cameroon",
|
||||
"CD": "Democratic Republic of the Congo",
|
||||
"CG": "Republic of the Congo",
|
||||
"CO": "Colombia",
|
||||
"CR": "Costa Rica",
|
||||
"CU": "Cuba",
|
||||
"-99": "Northern Cyprus",
|
||||
"CY": "Cyprus",
|
||||
"CZ": "Czech Republic",
|
||||
"DE": "Germany",
|
||||
"DJ": "Djibouti",
|
||||
"DK": "Denmark",
|
||||
"DO": "Dominican Republic",
|
||||
"DZ": "Algeria",
|
||||
"EC": "Ecuador",
|
||||
"EG": "Egypt",
|
||||
"ER": "Eritrea",
|
||||
"ES": "Spain",
|
||||
"EE": "Estonia",
|
||||
"ET": "Ethiopia",
|
||||
"FI": "Finland",
|
||||
"FJ": "Fiji",
|
||||
"FK": "Falkland Islands",
|
||||
"FR": "France",
|
||||
"GA": "Gabon",
|
||||
"GB": "England",
|
||||
"GE": "Georgia",
|
||||
"GH": "Ghana",
|
||||
"GN": "Guinea",
|
||||
"GM": "Gambia",
|
||||
"GW": "Guinea Bissau",
|
||||
"GQ": "Equatorial Guinea",
|
||||
"GR": "Greece",
|
||||
"GL": "Greenland",
|
||||
"GT": "Guatemala",
|
||||
"GY": "Guyana",
|
||||
"HN": "Honduras",
|
||||
"HR": "Croatia",
|
||||
"HT": "Haiti",
|
||||
"HU": "Hungary",
|
||||
"ID": "Indonesia",
|
||||
"IN": "India",
|
||||
"IE": "Ireland",
|
||||
"IR": "Iran",
|
||||
"IQ": "Iraq",
|
||||
"IS": "Iceland",
|
||||
"IL": "Israel",
|
||||
"IT": "Italy",
|
||||
"JM": "Jamaica",
|
||||
"JO": "Jordan",
|
||||
"JP": "Japan",
|
||||
"KZ": "Kazakhstan",
|
||||
"KE": "Kenya",
|
||||
"KG": "Kyrgyzstan",
|
||||
"KH": "Cambodia",
|
||||
"KR": "South Korea",
|
||||
"OSA": "Kosovo",
|
||||
"KW": "Kuwait",
|
||||
"LA": "Laos",
|
||||
"LB": "Lebanon",
|
||||
"LR": "Liberia",
|
||||
"LY": "Libya",
|
||||
"LK": "Sri Lanka",
|
||||
"LS": "Lesotho",
|
||||
"LT": "Lithuania",
|
||||
"LU": "Luxembourg",
|
||||
"LV": "Latvia",
|
||||
"MA": "Morocco",
|
||||
"MD": "Moldova",
|
||||
"MG": "Madagascar",
|
||||
"MX": "Mexico",
|
||||
"MK": "Macedonia",
|
||||
"ML": "Mali",
|
||||
"MM": "Myanmar",
|
||||
"MNE": "Montenegro",
|
||||
"MN": "Mongolia",
|
||||
"MZ": "Mozambique",
|
||||
"MR": "Mauritania",
|
||||
"MW": "Malawi",
|
||||
"MY": "Malaysia",
|
||||
"NA": "Namibia",
|
||||
"NC": "New Caledonia",
|
||||
"NE": "Niger",
|
||||
"NG": "Nigeria",
|
||||
"NI": "Nicaragua",
|
||||
"NL": "Netherlands",
|
||||
"NO": "Norway",
|
||||
"NP": "Nepal",
|
||||
"NZ": "New Zealand",
|
||||
"OM": "Oman",
|
||||
"PK": "Pakistan",
|
||||
"PA": "Panama",
|
||||
"PE": "Peru",
|
||||
"PH": "Philippines",
|
||||
"PG": "Papua New Guinea",
|
||||
"PL": "Poland",
|
||||
"PR": "Puerto Rico",
|
||||
"KP": "North Korea",
|
||||
"PT": "Portugal",
|
||||
"PY": "Paraguay",
|
||||
"QA": "Qatar",
|
||||
"RO": "Romania",
|
||||
"RU": "Russia",
|
||||
"RW": "Rwanda",
|
||||
"EH": "Western Sahara",
|
||||
"SA": "Saudi Arabia",
|
||||
"SD": "Sudan",
|
||||
"SDS": "South Sudan",
|
||||
"SN": "Senegal",
|
||||
"SB": "Solomon Islands",
|
||||
"SL": "Sierra Leone",
|
||||
"SV": "El Salvador",
|
||||
"ABV": "Somaliland",
|
||||
"SO": "Somalia",
|
||||
"SRB": "Republic of Serbia",
|
||||
"SR": "Suriname",
|
||||
"SK": "Slovakia",
|
||||
"SI": "Slovenia",
|
||||
"SE": "Sweden",
|
||||
"SZ": "Swaziland",
|
||||
"SY": "Syria",
|
||||
"TD": "Chad",
|
||||
"TG": "Togo",
|
||||
"TH": "Thailand",
|
||||
"TJ": "Tajikistan",
|
||||
"TM": "Turkmenistan",
|
||||
"TL": "East Timor",
|
||||
"TT": "Trinidad and Tobago",
|
||||
"TN": "Tunisia",
|
||||
"TR": "Turkey",
|
||||
"TW": "Taiwan",
|
||||
"TZ": "United Republic of Tanzania",
|
||||
"UG": "Uganda",
|
||||
"UA": "Ukraine",
|
||||
"UY": "Uruguay",
|
||||
"US": "USA",
|
||||
"UZ": "Uzbekistan",
|
||||
"VE": "Venezuela",
|
||||
"VN": "Vietnam",
|
||||
"VU": "Vanuatu",
|
||||
"PS": "West Bank",
|
||||
"YE": "Yemen",
|
||||
"ZA": "South Africa",
|
||||
"ZM": "Zambia",
|
||||
"ZW": "Zimbabwe"}
|
||||
@@ -1,4 +1,4 @@
|
||||
export default interface IUserDataStore {
|
||||
get(key: string, defaultValue: string): Promise<string>;
|
||||
get<T>(key: string, defaultValue?: T): Promise<T>;
|
||||
set(key: string, value: string): Promise<void>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user