feat: robust metric extraction with confidence score and proof snippets
- fixed Year-Prefix Bug in MetricParser - added metric_confidence and metric_proof_text to database - added Entity-Check and Annual-Priority to LLM prompt - improved UI: added confidence traffic light and mouse-over proof tooltip - restored missing API endpoints (create, bulk, wiki-override)
This commit is contained in:
50
company-explorer/frontend/node_modules/tailwind-merge/src/lib/tw-join.ts
generated
vendored
Normal file
50
company-explorer/frontend/node_modules/tailwind-merge/src/lib/tw-join.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
|
||||
*
|
||||
* Specifically:
|
||||
* - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
|
||||
* - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
|
||||
*
|
||||
* Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
||||
*/
|
||||
|
||||
export type ClassNameValue = ClassNameArray | string | null | undefined | 0 | 0n | false
|
||||
type ClassNameArray = ClassNameValue[]
|
||||
|
||||
export function twJoin(...classLists: ClassNameValue[]): string
|
||||
export function twJoin() {
|
||||
let index = 0
|
||||
let argument: ClassNameValue
|
||||
let resolvedValue: string
|
||||
let string = ''
|
||||
|
||||
while (index < arguments.length) {
|
||||
if ((argument = arguments[index++])) {
|
||||
if ((resolvedValue = toValue(argument))) {
|
||||
string && (string += ' ')
|
||||
string += resolvedValue
|
||||
}
|
||||
}
|
||||
}
|
||||
return string
|
||||
}
|
||||
|
||||
const toValue = (mix: ClassNameArray | string) => {
|
||||
if (typeof mix === 'string') {
|
||||
return mix
|
||||
}
|
||||
|
||||
let resolvedValue: string
|
||||
let string = ''
|
||||
|
||||
for (let k = 0; k < mix.length; k++) {
|
||||
if (mix[k]) {
|
||||
if ((resolvedValue = toValue(mix[k] as ClassNameArray | string))) {
|
||||
string && (string += ' ')
|
||||
string += resolvedValue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return string
|
||||
}
|
||||
Reference in New Issue
Block a user