Skip to content

Commit

Permalink
Make site work
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Jun 2, 2022
1 parent 0072ecf commit c34525a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 33 deletions.
24 changes: 0 additions & 24 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
},
"dependencies": {
"daisyui": "^2.15.0",
"debounce": "^1.2.1",
"nprogress": "^0.2.0",
"pinia": "^2.0.0-rc.10",
"pinia-plugin-persistedstate": "^1.6.1",
Expand All @@ -18,7 +17,6 @@
"vue-axios": "^3.4.1"
},
"devDependencies": {
"@types/debounce": "^1.2.1",
"@types/node": "^17.0.35",
"@vitejs/plugin-vue": "^2.3.3",
"autoprefixer": "^10.4.7",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/backend.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import axios, {AxiosResponse} from "axios"

export const HTTP = axios.create({
baseURL: "http://localhost:6969",
baseURL: "https://linkieapi.shedaniel.me",
})

export function reqVersions<T = any>(): Promise<AxiosResponse<T>> {
return HTTP.get(`/api/versions`)
}

export function reqVersionsFor<T = any>(loader: string): Promise<AxiosResponse<T>> {
return HTTP.get(`/api/versions`)
return HTTP.get(`/api/versions/${loader}`)
}

export function reqNamespaces<T = any>(): Promise<AxiosResponse<T>> {
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/components/mappings/MappingsSearchBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import {defineComponent} from "vue"
import {mapState} from "pinia"
import {useMappingsStore} from "../../app/mappings-store"
// @ts-ignore
import {debounce} from "debounce"
export default defineComponent({
name: "MappingsSearchBlock",
Expand All @@ -37,9 +35,11 @@ export default defineComponent({
},
methods: {
searchTimeOut(event: any) {
debounce((_: any) => {
clearTimeout(this.timer)
this.timer = setTimeout(() => {
useMappingsStore().searchText = (event.target as any)?.value
}, 1000).call(event, [])
}, 1000)
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/Mappings.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="flex justify-center" v-if="mappingsData.namespaces.length !== 0">
<div class="pl-5 pt-6 w-72">
<div class="pl-5 pt-6 w-72 min-w-[18rem]">
<div class="p-5 card bg-base-100 shadow-xl rounded-lg">
<MappingsFilterBlock :data="mappingsData"/>
</div>
Expand Down

0 comments on commit c34525a

Please sign in to comment.