uprava zobrazenie API pre parametre,
fix cesty pre logo SVG, nastavenie DEV servera VITE pre vsetky interface
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
<div id="header">
|
<div id="header">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<router-link to="/">
|
<router-link to="/">
|
||||||
<img src="/public/bugreport.svg" height="48" width="48" />
|
<img src="/bugreport.svg" height="48" width="48" />
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link to="/">
|
<router-link to="/">
|
||||||
<h1>Bug Report</h1>
|
<h1>Bug Report</h1>
|
||||||
|
|||||||
@ -462,6 +462,36 @@ button:focus-visible,
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
#api ul li {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
#api .param-type {
|
||||||
|
background-color: var(--color-bg0);
|
||||||
|
margin: 0px;
|
||||||
|
padding: 2px 5px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
#api .param-optional {
|
||||||
|
background-color: var(--color-bg1);
|
||||||
|
margin: 0px;
|
||||||
|
padding: 2px 5px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
#api .param-default {
|
||||||
|
background-color: var(--color-bg2);
|
||||||
|
margin: 0px;
|
||||||
|
padding: 2px 5px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
#api .param-doc {
|
||||||
|
color: var(--color-text3);
|
||||||
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------
|
/* ----------------------------------------------------
|
||||||
07 - ABOUT
|
07 - ABOUT
|
||||||
|
|||||||
@ -24,51 +24,42 @@
|
|||||||
<h4>Parametre</h4>
|
<h4>Parametre</h4>
|
||||||
<p v-if="Object.keys(action.params).length == 0">
|
<p v-if="Object.keys(action.params).length == 0">
|
||||||
<font-awesome-icon :icon="['fas', 'circle-info']" />
|
<font-awesome-icon :icon="['fas', 'circle-info']" />
|
||||||
|
Ziadne parametre
|
||||||
Ziadne parametre
|
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="(param_desc, param_name) in action.params" :key="param_name">
|
<li v-for="param in action.params" :key="param_name">
|
||||||
<strong>{{ param_name }}</strong>
|
<strong>{{ param.name }}</strong>
|
||||||
–
|
<span class="param-type">{{ param.type }}</span>
|
||||||
{{ param_desc }}
|
<span v-if="param.optional" class="param-optional">optional</span>
|
||||||
|
<span v-if="param.default != null" class="param-default">{{
|
||||||
|
param.default
|
||||||
|
}}</span>
|
||||||
|
<br />
|
||||||
|
<span class="param-doc">{{ param.doc }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<p>
|
||||||
|
<strong>Return</strong>
|
||||||
|
<span class="param-type">{{ action.return }}</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
|
import { onMounted, ref } from "vue";
|
||||||
import backend from "../backend";
|
import backend from "../backend";
|
||||||
|
|
||||||
export default {
|
const api_endpoint = ref(backend.endpont);
|
||||||
name: "API",
|
const help = ref({ actions: {} });
|
||||||
components: {},
|
|
||||||
data() {
|
onMounted(() => {
|
||||||
return {
|
loadHelp();
|
||||||
api_endpoint: backend.endpont,
|
});
|
||||||
help: {
|
|
||||||
actions: {
|
function loadHelp() {
|
||||||
help: {
|
backend.help().then((response) => {
|
||||||
name: "help",
|
help.value = response;
|
||||||
description: "This help",
|
});
|
||||||
params: {
|
}
|
||||||
foo: "bar",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.loadHelp();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
loadHelp() {
|
|
||||||
backend.help().then((response) => {
|
|
||||||
this.help = response;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -25,6 +25,10 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
__IS_BUILD__: JSON.stringify(isBuild),
|
__IS_BUILD__: JSON.stringify(isBuild),
|
||||||
__IS_DEV__: JSON.stringify(isDev),
|
__IS_DEV__: JSON.stringify(isDev),
|
||||||
},
|
},
|
||||||
|
server: {
|
||||||
|
host: true,
|
||||||
|
port: 5173
|
||||||
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
chunkSizeWarningLimit: 1000, // zvýšenie limitu na 1000 kB
|
chunkSizeWarningLimit: 1000, // zvýšenie limitu na 1000 kB
|
||||||
|
|||||||
Reference in New Issue
Block a user