The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor custom commands dashboard

Luna 9e0cbc89 b2005976

+61 -64
+61 -64
app/dashboard/[guildId]/custom-commands/page.tsx
··· 142 142 143 143 </div> 144 144 145 - {tag && 146 - <> 145 + {tag && <> 146 + <div className="relative rounded-md overflow-hidden p-[1px]"> 147 + <StatsBar 148 + items={[ 149 + { 150 + name: "All time Unique Users", 151 + number: 420, 152 + gained: 69, 153 + append: "yesterday" 154 + }, 155 + { 156 + name: "All time Command Uses", 157 + number: 69420, 158 + gained: 42, 159 + append: "yesterday" 160 + } 161 + ]} 162 + /> 147 163 148 - <div className="relative rounded-md overflow-hidden p-[1px]"> 149 - <StatsBar 150 - items={[ 151 - { 152 - name: "All time Unique Users", 153 - number: 420, 154 - gained: 69, 155 - append: "yesterday" 156 - }, 157 - { 158 - name: "All time Command Uses", 159 - number: 69420, 160 - gained: 42, 161 - append: "yesterday" 162 - } 163 - ]} 164 + <div className="absolute top-0 left-0 flex flex-col justify-center items-center w-full h-full backdrop-blur-md backdrop-brightness-75" > 165 + <div className="text-3xl dark:text-neutral-100 text-neutral-900 font-semibold mb-2">Nothing to see here.. yet..</div> 166 + <div className="text-md dark:text-neutral-400 text-neutral-600 font-semibold">Here will be the usage of your custom commands soon</div> 167 + </div> 168 + </div> 169 + 170 + <div className="lg:flex gap-3 mt-6"> 171 + <div className="lg:w-1/2"> 172 + <TextInput 173 + key={tag.id} 174 + name="Name" 175 + url={url + "/" + tag.id} 176 + dataName="name" 177 + description="The name of the custom command." 178 + defaultState={tag.name} 179 + resetState={tag.name} 180 + onSave={(value) => editTag("name", value as string)} 164 181 /> 165 - 166 - <div className="absolute top-0 left-0 flex flex-col justify-center items-center w-full h-full backdrop-blur-md backdrop-brightness-75" > 167 - <div className="text-3xl dark:text-neutral-100 text-neutral-900 font-semibold mb-2">Nothing to see here.. yet..</div> 168 - <div className="text-md dark:text-neutral-400 text-neutral-600 font-semibold">Here will be the usage of your custom commands soon</div> 169 - </div> 170 182 </div> 171 183 172 - <div className="lg:flex gap-3 mt-6"> 173 - <div className="lg:w-1/2"> 174 - <TextInput 175 - key={tag.id} 176 - name="Name" 177 - url={url + "/" + tag.id} 178 - dataName="name" 179 - description="The name of the custom command." 180 - defaultState={tag.name} 181 - resetState={tag.name} 182 - onSave={(value) => editTag("name", value as string)} 183 - /> 184 - </div> 185 - 186 - <div className="lg:w-1/2"> 187 - <SelectInput 188 - key={tag.id} 189 - name="Permissions" 190 - url={url + "/" + tag.id} 191 - items={ 192 - Permissions.sort((a, b) => a.localeCompare(b)).map((p) => ( 193 - { name: convertCamelCaseToSpaced(p), value: p } 194 - )) || [] 195 - } 196 - dataName="permission" 197 - description="The permissions needed to execute this tag." 198 - defaultState={tag.permission} 199 - onSave={(option) => editTag("permission", option.value as string)} 200 - showClear 201 - /> 202 - </div> 184 + <div className="lg:w-1/2"> 185 + <SelectInput 186 + key={tag.id} 187 + name="Permissions" 188 + url={url + "/" + tag.id} 189 + items={ 190 + Permissions.sort((a, b) => a.localeCompare(b)).map((p) => ( 191 + { name: convertCamelCaseToSpaced(p), value: p } 192 + )) || [] 193 + } 194 + dataName="permission" 195 + description="The permissions needed to execute this tag." 196 + defaultState={tag.permission} 197 + onSave={(option) => editTag("permission", option.value as string)} 198 + showClear 199 + /> 203 200 </div> 201 + </div> 204 202 205 - <MessageCreatorEmbed 206 - key={tag.id} 207 - name="Message" 208 - url={url + "/" + tag.id} 209 - dataName="message" 210 - defaultMessage={tag.message} 211 - onSave={(value) => editTag("message", value as string)} 212 - /> 213 - </> 214 - } 203 + <MessageCreatorEmbed 204 + key={tag.id} 205 + name="Message" 206 + url={url + "/" + tag.id} 207 + dataName="message" 208 + defaultMessage={tag.message} 209 + onSave={(value) => editTag("message", value as string)} 210 + /> 211 + </> } 215 212 216 213 {!data.length && 217 214 <div