Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,304 changes: 1,304 additions & 0 deletions frontend/bun.lock

Large diffs are not rendered by default.

Binary file removed frontend/bun.lockb
Binary file not shown.
10 changes: 5 additions & 5 deletions frontend/src/components/AppIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,25 +145,25 @@ function customMounted(element: VNode["el"], createCircle = false) {
.category {
fill: none;
stroke: $white;
stroke-width: 5;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 5;
}

:deep(.outline) {
stroke: none;
fill: var(--color, currentColor);
transform: scale(1.1);
transform-box: fill-box;
transform-origin: center;
fill: var(--color, currentColor);
stroke: none;
}

.initials {
text {
fill: $white;
text-anchor: middle;
dominant-baseline: middle;
font-size: 50px;
dominant-baseline: middle;
text-anchor: middle;
}
}

Expand Down
5 changes: 0 additions & 5 deletions frontend/src/composables/use-param.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,9 @@ export function useParam<T>(
/** get updated value from url object */
let newValue = "";
/** if single value */
// @ts-expect-error
if (typeof url.value[key] === "string") newValue = url.value[key];
/** if multi-value, pick first */
// @ts-expect-error
if (Array.isArray(url.value[key]) && url.value[key][0])
// @ts-expect-error
newValue = url.value[key][0];

/**
Expand Down Expand Up @@ -105,9 +102,7 @@ export function useParam<T>(

/** set url value */
if (newValue) {
// @ts-expect-error
if (Array.isArray(url.value[key]) && url.value[key][0])
// @ts-expect-error
url.value[key][0] = newValue;
else url.value[key] = newValue;
/** if "empty", such as empty string or array, delete param from url */
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/global/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ strong {

.truncate-#{$i}:not(:focus) {
-webkit-box-orient: vertical;
-webkit-line-clamp: $i;
display: -webkit-box;
max-width: 100%;
-webkit-line-clamp: $i;
overflow: hidden;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/knowledgeGraph/PageAbout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ h1 {

line {
stroke: currentColor;
stroke-width: 2;
stroke-dasharray: 1 3;
stroke-linecap: round;
stroke-width: 2;
}
}

Expand Down
5 changes: 2 additions & 3 deletions frontend/unit/use-kg-data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ describe("useKGData", () => {
});

it("should fallback to default version on API failure", async () => {
const { getLatestKGReleaseDate, getKGSourceUrl } = await import(
"@/api/kg-version"
);
const { getLatestKGReleaseDate, getKGSourceUrl } =
await import("@/api/kg-version");
vi.mocked(getLatestKGReleaseDate).mockRejectedValueOnce(
new Error("API failed"),
);
Expand Down