Skip to content

Commit

Permalink
Fix incompatible client code
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Aug 14, 2024
1 parent 9545f16 commit c767cb6
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Tekst-Web/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ export type LocationData = components['schemas']['LocationData'];

export type PlatformStats = components['schemas']['PlatformStats'];
export type PlatformData = components['schemas']['PlatformData'];
export type PlatformSettingsRead = components['schemas']['PlatformSettingsRead'];
export type PlatformSettingsUpdate = components['schemas']['PlatformSettingsUpdate'];
export type PlatformSettingsRead = components['schemas']['PlatformStateRead'];
export type PlatformSettingsUpdate = components['schemas']['PlatformStateUpdate'];
export type ResourceCoverage = components['schemas']['ResourceCoverage'];
export type ResourceCoverageDetails = components['schemas']['ResourceCoverageDetails'];

Expand Down
6 changes: 4 additions & 2 deletions Tekst-Web/src/api/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ export interface paths {
'/texts/{id}/level/{index}': {
/** Insert level */
post: operations['insertLevel'];
};
'/texts/{id}/level/{lvl}': {
/** Delete level */
delete: operations['deleteLevel'];
};
Expand Down Expand Up @@ -7663,8 +7665,8 @@ export interface operations {
parameters: {
path: {
id: string;
/** @description Index to insert the level at */
index: number;
/** @description Level to delete */
lvl: number;
};
};
responses: {
Expand Down
6 changes: 2 additions & 4 deletions Tekst-Web/src/components/navigation/navMenuOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ export function useMainMenuOptions(showIcons: boolean = true) {
const menuOptions = computed<MenuOption[]>(() => [
{
label: renderLink(
() =>
pickTranslation(pfData.value?.state.navBrowseEntry, state.locale) || $t('nav.browse'),
() => pickTranslation(pfData.value?.state.navBrowseEntry, state.locale) || $t('nav.browse'),
{
name: 'browse',
params: { text: state.text?.slug },
Expand All @@ -96,8 +95,7 @@ export function useMainMenuOptions(showIcons: boolean = true) {
},
{
label: renderLink(
() =>
pickTranslation(pfData.value?.state.navSearchEntry, state.locale) || $t('nav.search'),
() => pickTranslation(pfData.value?.state.navSearchEntry, state.locale) || $t('nav.search'),
{
name: 'search',
params: { text: state.text?.slug },
Expand Down
5 changes: 1 addition & 4 deletions Tekst-Web/src/layout/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ const themeVars = useThemeVars();
<header>
<primary-nav-bar />
<div class="accent-color-bg" style="min-height: 12px" :style="{ color: themeVars.baseColor }">
<div
v-if="route.meta.isTextSpecific || pfData?.state.alwaysShowTextInfo"
id="current-text"
>
<div v-if="route.meta.isTextSpecific || pfData?.state.alwaysShowTextInfo" id="current-text">
<text-select />
<span
v-if="!state.smallScreen && state.text?.subtitle?.length"
Expand Down
4 changes: 2 additions & 2 deletions Tekst-Web/src/views/SearchResultsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ onBeforeMount(() => processQuery());
})
}}
</div>
<div v-if="pfData?.state.indicesCreatedAt">
<div v-if="pfData?.state.indicesUpdatedAt">
{{ $t('search.results.indexCreationTime') }}:
<n-time :time="utcToLocalTime(pfData.state.indicesCreatedAt)" type="datetime" />
<n-time :time="utcToLocalTime(pfData.state.indicesUpdatedAt)" type="datetime" />
</div>
</template>
<template v-else-if="loading">
Expand Down
4 changes: 2 additions & 2 deletions Tekst-Web/src/views/admin/AdminTextsLevelsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function handleDeleteClick(level: number) {
...dialogProps,
onPositiveClick: async () => {
loading.value = true;
const { data, error } = await DELETE('/texts/{id}/level/{index}', {
params: { path: { id: state.text?.id || '', index: level } },
const { data, error } = await DELETE('/texts/{id}/level/{lvl}', {
params: { path: { id: state.text?.id || '', lvl: level } },
});
if (!error) {
state.text = data;
Expand Down
3 changes: 0 additions & 3 deletions docs/generated/help/quickSearch.md

This file was deleted.

0 comments on commit c767cb6

Please sign in to comment.