Vereinheitlichen der API Parameter für Articles und Content Api Methoden. Interfaces etwas angepasst.
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
let loading = true
|
||||
let content: Content
|
||||
let connectedContentNotFound: boolean = false
|
||||
let oldLocation: string
|
||||
$: currentDomain = window.location.protocol + "//" + window.location.host
|
||||
|
||||
const load = (type?: string) => {
|
||||
@@ -36,8 +35,11 @@
|
||||
}
|
||||
|
||||
// Get content by API call
|
||||
let apiParams: APIParams = {
|
||||
filter,
|
||||
}
|
||||
loading = true
|
||||
getContent(filter)
|
||||
getContent(apiParams)
|
||||
.then((c) => {
|
||||
if (c) {
|
||||
if (type === "changedLanguage") {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { locale } from "svelte-i18n"
|
||||
import { navigate } from "svelte-routing"
|
||||
import { navigations, location, currentLang } from "../../store"
|
||||
import { navigations, currentLang } from "../../store"
|
||||
|
||||
$: languages = []
|
||||
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
<script lang="ts">
|
||||
import { apiBaseURL } from "../../config"
|
||||
|
||||
import Image from "./Image.svelte"
|
||||
|
||||
export let collectionName: string = null
|
||||
export let entryId: string = null
|
||||
export let mediaFile: TibiArticleImage = null
|
||||
export let mediaFile: TibiArticleMediaFile = null
|
||||
export let cssClass: string = ""
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user