Skip to content

Commit

Permalink
Added custom Invite calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Sep 19, 2023
1 parent fea590b commit e70a5a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Frontend/src/routes/(dashboard)/dash/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<script lang="ts">
import { serversLoading, type Server, getServers } from "$lib/scripts/servers";
import { serversLoading, type Server, getServers } from "$lib/scripts/servers";
import { onDestroy } from "svelte";
import ServerDisplay from "./[serverId]/serverDisplay.svelte";
import { INVITE_URL } from "$lib/scripts/constants";
let adminServers: Server[] = [];
let normalServers: Server[] = [];
Expand Down Expand Up @@ -32,7 +33,7 @@
<div class="center">
<h2>Seems like the bot isn't on any of your servers.</h2>
<p class="text-bg">Seeing this probably means you're new on discord! In that case, welcome!</p>
<a href="https://invite.ree6.de" class="button link hover-primary">
<a href={INVITE_URL} class="button link hover-primary">
<span class="material-icons">launch</span>
<p>Try to invite the bot</p>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
import { goto } from "$app/navigation";
import LoadingIndicator from "$lib/components/loadingIndicator.svelte";
import { currentServer, type Server, serversLoading } from "$lib/scripts/servers";
import { INVITE_URL } from "$lib/scripts/constants";
export let description: String;
export let servers: Server[];
function selectServer(server: Server) {
if(!server.setup) {
location.assign("https://invite.ree6.de")
location.assign(INVITE_URL)
return;
}
Expand Down Expand Up @@ -46,7 +47,7 @@

{:else}

<div on:click={() => location.assign("https://invite.ree6.de")} on:keydown class="button clickable">
<div on:click={() => location.assign({INVITE_URL})} on:keydown class="button clickable">
<span class="material-icons icon-primary">launch</span>
<p>Setup</p>
</div>
Expand Down
3 changes: 2 additions & 1 deletion Frontend/src/routes/(dashboard)/dash/serverSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import LoadingIndicator from "$lib/components/loadingIndicator.svelte";
import { currentServer, serversLoading, type Server, servers } from "$lib/scripts/servers";
import { slide } from "svelte/transition";
import { INVITE_URL } from "$lib/scripts/constants";
let expanded = false;
Expand All @@ -12,7 +13,7 @@
function selectServer(server: Server) {
if(!server.setup) {
location.assign("https://invite.ree6.de")
location.assign(INVITE_URL)
expanded = false;
return;
}
Expand Down

0 comments on commit e70a5a7

Please sign in to comment.