Fix typos in error messages, constants, and UI labels
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<p class="h2">Refine</p>
|
<p class="h2">Refine</p>
|
||||||
<div v-for="(item, index) in selectFilter['Refine']" :key="index">
|
<div v-for="(item, index) in selectFilter['Refine']" :key="index">
|
||||||
<RadioButton v-model="selectValue[5]" :inputId="item + index" name="Refinee" :value="item" class="mb-1 mr-2"/>
|
<RadioButton v-model="selectValue[5]" :inputId="item + index" name="Refine" :value="item" class="mb-1 mr-2"/>
|
||||||
<label :for="item + index">{{ item }}</label>
|
<label :for="item + index">{{ item }}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ export async function uploadFailedFirst(failureType, failureMsg, failureLoc) {
|
|||||||
value = 'File size exceeds 90MB.';
|
value = 'File size exceeds 90MB.';
|
||||||
break;
|
break;
|
||||||
case 'encoding':
|
case 'encoding':
|
||||||
value = `Please use UFT-8 for character encoding: (Row #${failureLoc})`;
|
value = `Please use UTF-8 for character encoding: (Row #${failureLoc})`;
|
||||||
break;
|
break;
|
||||||
case 'insufficient_columns':
|
case 'insufficient_columns':
|
||||||
value = 'Need at least five columns of data.';
|
value = 'Need at least five columns of data.';
|
||||||
@@ -356,7 +356,7 @@ export async function uploadFailedSecond(detail) {
|
|||||||
manySrt = 'There are more errors.';
|
manySrt = 'There are more errors.';
|
||||||
break;
|
break;
|
||||||
case 'unrecognized':
|
case 'unrecognized':
|
||||||
content = `<li>Data unregnizable in Status Column: (Row #${i.loc[1]}, "${escapeHtml(i.input)}")</li>`;
|
content = `<li>Data unrecognizable in Status Column: (Row #${i.loc[1]}, "${escapeHtml(i.input)}")</li>`;
|
||||||
break;
|
break;
|
||||||
case 'malformed':
|
case 'malformed':
|
||||||
content = `<li>Data malformed in Timestamp Column: (Row #${i.loc[1]}, "${escapeHtml(i.input)}")</li>`;
|
content = `<li>Data malformed in Timestamp Column: (Row #${i.loc[1]}, "${escapeHtml(i.input)}")</li>`;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
/** @constant {number} Number of decimal places for formatted time values. */
|
/** @constant {number} Number of decimal places for formatted time values. */
|
||||||
const TOFIXED_DEICMAL = 1;
|
const TOFIXED_DECIMAL = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates the step size and time unit for evenly spaced Y-axis ticks.
|
* Calculates the step size and time unit for evenly spaced Y-axis ticks.
|
||||||
@@ -78,7 +78,7 @@ const getTimeUnitAndValueToUse = (secondToDecide) => {
|
|||||||
export function getYTicksByIndex(stepSize, index, unitToUse){
|
export function getYTicksByIndex(stepSize, index, unitToUse){
|
||||||
const rawStepsizeMultIndex = (stepSize * index).toString();
|
const rawStepsizeMultIndex = (stepSize * index).toString();
|
||||||
const shortenStepsizeMultIndex = rawStepsizeMultIndex.substring(
|
const shortenStepsizeMultIndex = rawStepsizeMultIndex.substring(
|
||||||
0, rawStepsizeMultIndex.indexOf('.') + 1 + TOFIXED_DEICMAL);
|
0, rawStepsizeMultIndex.indexOf('.') + 1 + TOFIXED_DECIMAL);
|
||||||
return `${shortenStepsizeMultIndex}${unitToUse}`;
|
return `${shortenStepsizeMultIndex}${unitToUse}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ export const useAcctMgmtStore = defineStore('acctMgmtStore', {
|
|||||||
const response = await apiClient.delete(apiDeleteRole);
|
const response = await apiClient.delete(apiDeleteRole);
|
||||||
return response.status === 200;
|
return response.status === 200;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
apiError(error, 'Failed to delete a role frome the account.');
|
apiError(error, 'Failed to delete a role from the account.');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ export const useFilesStore = defineStore('filesStore', {
|
|||||||
link.click();
|
link.click();
|
||||||
window.URL.revokeObjectURL(url);
|
window.URL.revokeObjectURL(url);
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
apiError(error, 'Failed to delete.');
|
apiError(error, 'Failed to download.');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export const useLoginStore = defineStore('loginStore', {
|
|||||||
|
|
||||||
this.userData = response.data;
|
this.userData = response.data;
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
apiError(error, 'Failed to load the Map.');
|
apiError(error, 'Failed to load user data.');
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user