mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-21 15:18:38 +00:00
- Rename files to follow camelCase naming convention: • auth-header.js → authUtils.js • other.js → logUtils.js • rehypeSplitWordsIntoSpans.js → textAnimationUtils.js - Update import paths in affected components: • Update exports in helpers/index.js • Fix import in LogsTable.js for logUtils • Fix import in MarkdownRenderer.js for textAnimationUtils - Remove old files after successful migration - Improve file naming clarity: • authUtils.js better describes authentication utilities • logUtils.js clearly indicates log processing functions • textAnimationUtils.js concisely describes text animation functionality This refactoring enhances code maintainability and follows consistent naming patterns throughout the helpers directory.
7 lines
170 B
JavaScript
7 lines
170 B
JavaScript
export function getLogOther(otherStr) {
|
|
if (otherStr === undefined || otherStr === '') {
|
|
otherStr = '{}';
|
|
}
|
|
let other = JSON.parse(otherStr);
|
|
return other;
|
|
}
|