mirror of
https://github.com/LingChair/LingChair-V0.git
synced 2025-12-08 01:55:50 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a86464a32 | ||
|
|
31d78b39f3 | ||
|
|
fb89952bcb | ||
|
|
70b314947d | ||
|
|
27369097eb |
@@ -295,7 +295,6 @@ class ChatTabManager {
|
||||
* @param { String } target
|
||||
*/
|
||||
static click(target) {
|
||||
console.log(target, this.find(target), this.tabs)
|
||||
this.find(target).get(0).click()
|
||||
}
|
||||
/**
|
||||
@@ -304,21 +303,23 @@ class ChatTabManager {
|
||||
*/
|
||||
static remove(target) {
|
||||
this.find(target).remove()
|
||||
this.tabs[target] = null
|
||||
delete this.tabs[target]
|
||||
if(Object.keys(this.tabs).length == 0)
|
||||
viewBinding.chatTab.find('.mdui-tab-indicator').remove()
|
||||
}
|
||||
static initTabElementEvents() {
|
||||
let menu
|
||||
let callback = (e) => {
|
||||
if (menu) menu.close()
|
||||
// 切到 chatTab
|
||||
// document.getElementById("").previousElementSibling
|
||||
// document.getElementById("").nextElementSibling
|
||||
let ele = e.get(0)
|
||||
while ($(ele).attr("tag") != "chatTab")
|
||||
ele = ele.parentNode
|
||||
// ele.previousElementSibling 是 Menu 的 Element, 因此改写成 ele.previousElementSibling.previousElementSibling
|
||||
let menuHtml = $.parseHTML(`<ul class="mdui-menu">
|
||||
<li class="mdui-menu-item">
|
||||
<a onclick="let ele=CachedData.getAndRecycle('${CachedData.addToList(ele)}');if(ele.previousElementSibling.previousElementSibling){ChatTabManager.click($(ele.previousElementSibling.previousElementSibling).attr('target'));}ChatPage.getChatSeesion($(ele).attr('target')).remove()" class="mdui-ripple">关闭</a>
|
||||
<a onclick="let ele=CachedData.getAndRecycle('${CachedData.addToList(ele)}');let elenp=ele.previousElementSibling.previousElementSibling;if(!elenp){elenp=ele.nextElementSibling};let canclick=$(elenp).attr('target');if(canclick){ChatTabManager.click(canclick);}ChatPage.getChatSeesion($(ele).attr('target')).remove();if(canclick){ChatTabManager.click(canclick);}" class="mdui-ripple">关闭</a>
|
||||
</li>
|
||||
</ul>`)
|
||||
let $menu = $(menuHtml)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* 铃之椅 网页端
|
||||
*/
|
||||
|
||||
html, body {
|
||||
html, body {
|
||||
max-height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -34,6 +34,7 @@ body {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
display: block;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.chat-seesion {
|
||||
|
||||
20
readme.md
20
readme.md
@@ -1,9 +1,11 @@
|
||||
[ 中文 | [English](readme_en.md) ]
|
||||
|
||||
<div align="center">
|
||||
<h2> 铃之椅 </h2>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
中文 | [English](readme_en.md)
|
||||
</div>
|
||||
|
||||
欢迎来到铃之椅! 这是一个即时通讯项目, 为通讯提供更多的选择, 为人民服务
|
||||
|
||||
> [!NOTE]
|
||||
@@ -11,6 +13,20 @@
|
||||
>
|
||||
> 欢迎各位提出项目修改意见
|
||||
|
||||
### 关联项目
|
||||
|
||||
客户端 & 服务端:
|
||||
|
||||
* LingChair-Node.js (本仓库)
|
||||
|
||||
客户端:
|
||||
|
||||
* 暂无
|
||||
|
||||
服务端:
|
||||
|
||||
* 暂无
|
||||
|
||||
### 使用
|
||||
|
||||
服务端:
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
[ [中文](readme.md) | English ]
|
||||
|
||||
<div align="center">
|
||||
<h2> LingChair </h2>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
[中文](readme.md) | English
|
||||
</div>
|
||||
|
||||
Welcome to LingChair! This is an IM project that it provide a new communication way. And it serves people.
|
||||
|
||||
> [!NOTE]
|
||||
I'm sorry that I have no time to translate this project to English. This project is so large for me to rewrite, so there're still a lot of texts in Chinese.
|
||||
> My English is not so good as a normal Englishmen, so you need a translator to read Chinese texts. And sometimes this document is outdated, I'm sorry with that.
|
||||
>
|
||||
> This project is still in progress, [Click me](final.md) to view progress. (Chinese)
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user