This commit is contained in:
Louis Lam 2023-11-10 22:06:58 +08:00
parent 9b9234434e
commit 06307956ca
2 changed files with 17 additions and 11 deletions

View file

@ -0,0 +1,9 @@
version: "3.8"
services:
mariadb:
image: mariadb:latest
restart: unless-stopped
ports:
- 3306:3306
environment:
- MARIADB_ROOT_PASSWORD=123456

View file

@ -1,8 +1,8 @@
<template> <template>
<div v-show="false"> <div>
<form class="my-4" autocomplete="off" @submit.prevent="saveGeneral"> <form class="my-4" autocomplete="off" @submit.prevent="saveGeneral">
<!-- Client side Timezone --> <!-- Client side Timezone -->
<div class="mb-4"> <div v-if="false" class="mb-4">
<label for="timezone" class="form-label"> <label for="timezone" class="form-label">
{{ $t("Display Timezone") }} {{ $t("Display Timezone") }}
</label> </label>
@ -21,7 +21,7 @@
</div> </div>
<!-- Server Timezone --> <!-- Server Timezone -->
<div class="mb-4"> <div v-if="false" class="mb-4">
<label for="timezone" class="form-label"> <label for="timezone" class="form-label">
{{ $t("Server Timezone") }} {{ $t("Server Timezone") }}
</label> </label>
@ -49,6 +49,9 @@
class="form-control" class="form-control"
placeholder="localhost" placeholder="localhost"
/> />
<button class="btn btn-outline-primary" type="button" @click="autoGetPrimaryHostname">
{{ $t("Auto Get") }}
</button>
</div> </div>
<div class="form-text"></div> <div class="form-text"></div>
@ -102,14 +105,8 @@ export default {
this.saveSettings(); this.saveSettings();
}, },
/** Get the base URL of the application */ /** Get the base URL of the application */
autoGetPrimaryBaseURL() { autoGetPrimaryHostname() {
this.settings.primaryBaseURL = location.protocol + "//" + location.host; this.settings.primaryHostname = location.hostname;
},
testChrome() {
this.$root.getSocket().emit("testChrome", this.settings.chromeExecutable, (res) => {
this.$root.toastRes(res);
});
}, },
}, },
}; };