mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-24 23:09:39 -05:00
62780001f7
* [empty commit] pull request for remote browser support * Remote browser: Added UI screens and DB tables. * Remote browser working * Fixing tests * Fix tests * Fix tests * fix tests * Test browser * revert init_db.js * Changed drop down to ActionSelect * Fix translations * added remote browsers toggle * revert changes package-lock * Fix bad english * Set default remote browser * Remote browsers Requested changes * fixed description.
54 lines
1.7 KiB
Vue
54 lines
1.7 KiB
Vue
<template>
|
|
<div>
|
|
<div class="dockerHost-list my-4">
|
|
<p v-if="$root.remoteBrowserList.length === 0">
|
|
{{ $t("Not available, please setup.") }}
|
|
</p>
|
|
|
|
<ul class="list-group mb-3" style="border-radius: 1rem;">
|
|
<li v-for="(remoteBrowser, index) in $root.remoteBrowserList" :key="index" class="list-group-item">
|
|
{{ remoteBrowser.name }}<br>
|
|
<a href="#" @click="$refs.remoteBrowserDialog.show(remoteBrowser.id)">{{ $t("Edit") }}</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<button class="btn btn-primary me-2" type="button" @click="$refs.remoteBrowserDialog.show()">
|
|
<font-awesome-icon icon="plus" /> {{ $t("Add Remote Browser") }}
|
|
</button>
|
|
</div>
|
|
|
|
<div class="my-4 pt-4">
|
|
<h5 class="my-4 settings-subheading">{{ $t("What is a Remote Browser?") }}</h5>
|
|
<p>{{ $t("remoteBrowsersDescription") }} <a href="https://hub.docker.com/r/browserless/chrome">{{ $t("self-hosted container") }}</a></p>
|
|
</div>
|
|
|
|
<RemoteBrowserDialog ref="remoteBrowserDialog" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import RemoteBrowserDialog from "../../components/RemoteBrowserDialog.vue";
|
|
|
|
export default {
|
|
components: {
|
|
RemoteBrowserDialog,
|
|
},
|
|
|
|
data() {
|
|
return {};
|
|
},
|
|
|
|
computed: {
|
|
settings() {
|
|
return this.$parent.$parent.$parent.settings;
|
|
},
|
|
saveSettings() {
|
|
return this.$parent.$parent.$parent.saveSettings;
|
|
},
|
|
settingsLoaded() {
|
|
return this.$parent.$parent.$parent.settingsLoaded;
|
|
},
|
|
}
|
|
};
|
|
</script>
|