Move default server to config.json
This commit is contained in:
parent
828d4bb509
commit
2b5ab1437c
3 changed files with 7 additions and 2 deletions
3
src/assets/config.json
Normal file
3
src/assets/config.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"defaultServer": "https://neo.keanu.im"
|
||||
}
|
||||
|
|
@ -96,6 +96,7 @@
|
|||
<script>
|
||||
import User from "../models/user";
|
||||
import util from "../plugins/utils";
|
||||
import config from "../assets/config";
|
||||
|
||||
export default {
|
||||
name: "Join",
|
||||
|
|
@ -103,7 +104,7 @@ export default {
|
|||
return {
|
||||
roomName: null,
|
||||
roomAvatar: null,
|
||||
guestUser: new User("https://neo.keanu.im", "", "", true),
|
||||
guestUser: new User(config.defaultServer, "", "", true),
|
||||
loading: false,
|
||||
loadingMessage: null,
|
||||
waitingForInfo: true,
|
||||
|
|
|
|||
|
|
@ -50,12 +50,13 @@
|
|||
<script>
|
||||
import User from "../models/user";
|
||||
import util from "../plugins/utils";
|
||||
import config from "../assets/config";
|
||||
|
||||
export default {
|
||||
name: "Login",
|
||||
data() {
|
||||
return {
|
||||
user: new User("https://neo.keanu.im", "", ""),
|
||||
user: new User(config.defaultServer, "", ""),
|
||||
isValid: true,
|
||||
loading: false,
|
||||
message: "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue