added add server
This commit is contained in:
1 parent
b2cd1691af
commit
a3e6692d7b
8 files changed
+69
-45
No files matched your search
@@ -53,34 +53,23 @@
|
||||
<div>
|
||||
<button type="button" class="block lg:inline-block lg:mt-0 text-white hover:text-white mr-4 text-lg"
|
||||
id="menu-button" aria-expanded="true" aria-haspopup="true">
|
||||
More
|
||||
<li class="fa more"></li> More
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
class="hidden origin-top-right absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-100 focus:outline-none"
|
||||
role="menu" aria-orientation="vertical" aria-labelledby="menu-button" tabindex="-1">
|
||||
class="hidden origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-100 focus:outline-none"
|
||||
role="menu" aria-orientation="vertical" aria-labelledby="menu-button" tabindex="-1" id="dropdown" style="z-index: 99 !important;">
|
||||
<div class="py-1" role="none">
|
||||
<!-- Active: "bg-gray-100 text-gray-900", Not Active: "text-gray-700" -->
|
||||
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-0">Edit</a>
|
||||
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-1">Duplicate</a>
|
||||
<a href="/invite" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-0"><i class="fas fa-user-plus"></i>Invite</a>
|
||||
<a href="/discord" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-1"><i class="fa-brands fa-discord"></i>Discord Server</a>
|
||||
</div>
|
||||
<div class="py-1" role="none">
|
||||
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-2">Archive</a>
|
||||
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-3">Move</a>
|
||||
</div>
|
||||
<div class="py-1" role="none">
|
||||
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-4">Share</a>
|
||||
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-5">Add to favorites</a>
|
||||
</div>
|
||||
<div class="py-1" role="none">
|
||||
<a href="#" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-6">Delete</a>
|
||||
<a href="/server/add" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-2"><i class="fa fa-solid fa-plus"></i>Add server</a>
|
||||
<a href="/me/servers" class="text-gray-700 block px-4 py-2 text-sm" role="menuitem" tabindex="-1"
|
||||
id="menu-item-3"><li class="fa fa-server mr-1"></li>Edit server</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -125,4 +114,13 @@
|
||||
targetEl.classList.add("hidden");
|
||||
}
|
||||
});
|
||||
const dropdown = document.getElementById("menu-button");
|
||||
const dropdownMenu = document.getElementById("dropdown");
|
||||
dropdown.addEventListener("click", function () {
|
||||
if (dropdownMenu.classList.contains("hidden")) {
|
||||
dropdownMenu.classList.remove("hidden");
|
||||
} else {
|
||||
dropdownMenu.classList.add("hidden");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -5,11 +5,10 @@
|
||||
<form method="post" action="">
|
||||
<div class="grid md:grid-cols-2 md:gap-6">
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<select name="server"
|
||||
<select name="serverid"
|
||||
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
||||
required>
|
||||
<% for (var i=0; i < user.guilds.length; i++) { %>
|
||||
<% console.log(user.guilds[i].name) %>
|
||||
<option value="<%= user.guilds[i].id %>">
|
||||
<%= user.guilds[i].name %>
|
||||
</option>
|
||||
@@ -17,12 +16,12 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<input type="text" name="server_id" id="floating_last_name"
|
||||
<input type="text" name="server_invite" id="floating_last_name"
|
||||
class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer"
|
||||
placeholder=" " required />
|
||||
<label for="floating_last_name"
|
||||
class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">server
|
||||
ID</label>
|
||||
class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Server ID</label>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
@@ -30,8 +29,8 @@
|
||||
class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer"
|
||||
placeholder=" " required rows="5"></textarea>
|
||||
<label for="server_name"
|
||||
class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">server
|
||||
Description</label>
|
||||
class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Server
|
||||
description</label>
|
||||
</div>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<input type="text" name="server_short" id="floating_last_name"
|
||||
|
||||
Reference in new issue
Block a user