fix hopefully
This commit is contained in:
parent
ebf4c5aa6e
commit
16cedd46c7
3 changed files with 18 additions and 26 deletions
|
@ -113,9 +113,8 @@ class Channel{
|
||||||
let expires=1800;
|
let expires=1800;
|
||||||
const copycontainer=document.createElement("div");
|
const copycontainer=document.createElement("div");
|
||||||
copycontainer.classList.add("copycontainer");
|
copycontainer.classList.add("copycontainer");
|
||||||
const copy=document.createElement("img");
|
const copy=document.createElement("span");
|
||||||
copy.src="/icons/copy.svg";
|
copy.classList.add("copybutton","svgtheme","svg-copy");
|
||||||
copy.classList.add("copybutton","svgtheme");
|
|
||||||
copycontainer.append(copy);
|
copycontainer.append(copy);
|
||||||
copycontainer.onclick=_=>{
|
copycontainer.onclick=_=>{
|
||||||
if(text.textContent){
|
if(text.textContent){
|
||||||
|
@ -376,9 +375,8 @@ class Channel{
|
||||||
const caps=document.createElement("div");
|
const caps=document.createElement("div");
|
||||||
|
|
||||||
const decdiv=document.createElement("div");
|
const decdiv=document.createElement("div");
|
||||||
const decoration=document.createElement("img");
|
const decoration=document.createElement("span");
|
||||||
decoration.src="/icons/category.svg";
|
decoration.classList.add("svgtheme","collapse-icon","svg-category");
|
||||||
decoration.classList.add("svgtheme","colaspeicon");
|
|
||||||
decdiv.appendChild(decoration);
|
decdiv.appendChild(decoration);
|
||||||
|
|
||||||
const myhtml=document.createElement("p2");
|
const myhtml=document.createElement("p2");
|
||||||
|
@ -437,20 +435,17 @@ class Channel{
|
||||||
const myhtml=document.createElement("span");
|
const myhtml=document.createElement("span");
|
||||||
myhtml.textContent=this.name;
|
myhtml.textContent=this.name;
|
||||||
if(this.type===0){
|
if(this.type===0){
|
||||||
const decoration=document.createElement("img");
|
const decoration=document.createElement("span");
|
||||||
decoration.src="/icons/channel.svg";
|
|
||||||
div.appendChild(decoration);
|
div.appendChild(decoration);
|
||||||
decoration.classList.add("space","svgtheme");
|
decoration.classList.add("space","svgtheme","svg-channel");
|
||||||
}else if(this.type===2){//
|
}else if(this.type===2){//
|
||||||
const decoration=document.createElement("img");
|
const decoration=document.createElement("span");
|
||||||
decoration.src="/icons/voice.svg";
|
|
||||||
div.appendChild(decoration);
|
div.appendChild(decoration);
|
||||||
decoration.classList.add("space","svgtheme");
|
decoration.classList.add("space","svgtheme","svg-voice");
|
||||||
}else if(this.type===5){//
|
}else if(this.type===5){//
|
||||||
const decoration=document.createElement("img");
|
const decoration=document.createElement("span");
|
||||||
decoration.src="/icons/announce.svg";
|
|
||||||
div.appendChild(decoration);
|
div.appendChild(decoration);
|
||||||
decoration.classList.add("space","svgtheme");
|
decoration.classList.add("space","svgtheme","svg-announce");
|
||||||
}else{
|
}else{
|
||||||
console.log(this.type);
|
console.log(this.type);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="user-actions">
|
<div id="user-actions">
|
||||||
<img id="settings" class="svgtheme" src="/icons/settings.svg"></img>
|
<span id="settings" class="svgtheme svg-settings"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -500,23 +500,22 @@ class Localuser{
|
||||||
buildservers():void{
|
buildservers():void{
|
||||||
const serverlist=document.getElementById("servers") as HTMLDivElement;//
|
const serverlist=document.getElementById("servers") as HTMLDivElement;//
|
||||||
const outdiv=document.createElement("div");
|
const outdiv=document.createElement("div");
|
||||||
const img=document.createElement("img");
|
const home=document.createElement("span");
|
||||||
const div=document.createElement("div");
|
const div=document.createElement("div");
|
||||||
div.classList.add("home","servericon");
|
div.classList.add("home","servericon");
|
||||||
|
|
||||||
img.src="/icons/home.svg";
|
home.classList.add("svgtheme","svgicon","svg-home");
|
||||||
img.classList.add("svgtheme","svgicon");
|
home["all"]=this.guildids.get("@me");
|
||||||
img["all"]=this.guildids.get("@me");
|
|
||||||
(this.guildids.get("@me") as Guild).html=outdiv;
|
(this.guildids.get("@me") as Guild).html=outdiv;
|
||||||
const unread=document.createElement("div");
|
const unread=document.createElement("div");
|
||||||
unread.classList.add("unread");
|
unread.classList.add("unread");
|
||||||
outdiv.append(unread);
|
outdiv.append(unread);
|
||||||
outdiv.append(div);
|
outdiv.append(div);
|
||||||
div.appendChild(img);
|
div.appendChild(home);
|
||||||
|
|
||||||
outdiv.classList.add("servernoti");
|
outdiv.classList.add("servernoti");
|
||||||
serverlist.append(outdiv);
|
serverlist.append(outdiv);
|
||||||
img.onclick=function(){
|
home.onclick=function(){
|
||||||
this["all"].loadGuild();
|
this["all"].loadGuild();
|
||||||
this["all"].loadChannel();
|
this["all"].loadChannel();
|
||||||
};
|
};
|
||||||
|
@ -550,9 +549,8 @@ class Localuser{
|
||||||
this.createGuild();
|
this.createGuild();
|
||||||
};
|
};
|
||||||
const guilddsdiv=document.createElement("div");
|
const guilddsdiv=document.createElement("div");
|
||||||
const guildDiscoveryContainer=document.createElement("img");
|
const guildDiscoveryContainer=document.createElement("span");
|
||||||
guildDiscoveryContainer.src="/icons/explore.svg";
|
guildDiscoveryContainer.classList.add("svgtheme","svgicon","svg-explore");
|
||||||
guildDiscoveryContainer.classList.add("svgtheme","svgicon");
|
|
||||||
guilddsdiv.classList.add("home","servericon");
|
guilddsdiv.classList.add("home","servericon");
|
||||||
guilddsdiv.appendChild(guildDiscoveryContainer);
|
guilddsdiv.appendChild(guildDiscoveryContainer);
|
||||||
serverlist.appendChild(guilddsdiv);
|
serverlist.appendChild(guilddsdiv);
|
||||||
|
@ -928,7 +926,6 @@ class Localuser{
|
||||||
{
|
{
|
||||||
const userinfos=getBulkInfo();
|
const userinfos=getBulkInfo();
|
||||||
tas.addColorInput("Accent color:",_=>{
|
tas.addColorInput("Accent color:",_=>{
|
||||||
fixsvgtheme();
|
|
||||||
userinfos.accent_color=_;
|
userinfos.accent_color=_;
|
||||||
localStorage.setItem("userinfos",JSON.stringify(userinfos));
|
localStorage.setItem("userinfos",JSON.stringify(userinfos));
|
||||||
document.documentElement.style.setProperty("--accent-color", userinfos.accent_color);
|
document.documentElement.style.setProperty("--accent-color", userinfos.accent_color);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue