Revive xjtu.men with a slim and swift design

谈笑风生 1210 views 43 replies
admin
#1 ·

https://xjtu.men/

⚠️ Expect bugs. Please help developer catch them.

Support static username+password / GitHub / xjtu.app / Discourse ID SSO login.
Expect bugs.

No mysterious CloudFlare 1000 Error on xjtu.men domain.

Why Sveltekit makes user feels fast, for one reason:

tl;dr 鼠标悬浮到链接上时就开始从服务器预加载该页面的数据, 如果访问者进一步点击了该链接那么就无需再从服务器请求数据了.

data-sveltekit-preload-data

Before the browser registers that the user has clicked on a link, we can detect that they've hovered the mouse over it (on desktop) or that a touchstart or mousedown event was triggered. In both cases, we can make an educated guess that a click event is coming.

SvelteKit can use this information to get a head start on importing the code and fetching the page's data, which can give us an extra couple of hundred milliseconds — the difference between a user interface that feels laggy and one that feels snappy.

❤️👍️
4
#3 ·

从此门友使用github账号进行交流,树莓的马甲从此卸下 🫪

Hard time comes again and never leave.

❤️mingyaowarning_package
4
admin
#4 ·
芙蓉湖第一树莓果 RaspberryPi

More login methods are expected. Eventually existing Discourse login credentials will be migrated.

❤️🤩️
2
mod
#5 ·

我当前的帐号是基于QQ邮箱的。如果将当前账号关联GitHub账号,是否可以直接实现迁移?

年月擦身过,暂且问,会更好吗?

#6 ·
  1. 草稿编辑不能 resize,有点不方便
    Screenshot From 2026-06-19 20-08-47|690x273

  2. 无法上传文件/图片?

#7 · (edited)
  • 版块标题hover时显示的html内容未被正确渲染, 当前为<p>元素下的文本;
    image|690x165

  • 在帖子内点击发帖人头像, 显示的mini profile没有显示在头像旁, 而是在帖子底部;

  • mini profile的头像图片大小与头像框不一致, 也没有居中.

image|577x500
image|690x339

Crystal Clear 
mod
#8 ·

image|690x477

可能缺少一个搜索栏

年月擦身过,暂且问,会更好吗?

#9 ·
  1. 代码块好像没有高亮
  2. inline codeblock 显示 `` 是故意的吗?
  3. 要是能保留个人签名就再好不过了 :innocent_mouse:
#10 ·
  1. 当前似乎不能更改用户昵称, 头像, 背景和 Mini Profile 背景? 没有找到入口.
  2. 当前似乎不能连接其它账户 (如 Github)? 两个网站都没有找到入口.
  3. 已经用 Discourse ID 连接到 xjtu.app 账户的用户, 使用 Discourse ID 直接登录时, 头像为Discourse ID 的头像而非本站自定义头像, 昵称为随机分配的 user 数字组合而非本站昵称.
  4. 回应自定义 emoji 功能.
  5. 图片下方有多余的 meta 段落.
    image|690x330
  6. 图片仍然与本站共用图床, 尝试点开查看大图会出现 DNS points to prohibited IP 错误. (或许是因为目前是测试阶段?)
Crystal Clear 
admin
#11 ·
Xrystal-line 羽流弦ノ迹
  1. 已实现
  2. github登录应该是正常的吧?只不过可能有3那样的无法和已有账号合并的问题。
  3. 已修复。根据email作为用户的唯一标识,不同SSO登录方式登录不修改已有用户的profile。
  4. TBD: /f/discourse/plugins/discourse-reactions
  5. 图片下面meta段落的问题的原因:从Discoruse导出posts表的时候,导出了raw和cooked,cooked带Discourse的lightbox,这里面的html的picture href没做处理。我导入数据的时候自己再做一遍cook就好了。
  6. 跟5的问题类似,之前只对raw里面图片URL做了处理,然而数据库表里其他地方也有URL,没处理干净。
❤️
1
admin
#12 ·

其他问题

@hoist 在测试环境留言提出没有chat功能,已经实现

rebake以后对于有poll的post没有正常展示poll
https://xjtu.men/t/topic/15611
重新编辑后重新触发poll

在浅色背景下代码块背景为深色,非常丑

👍
1
#13 · (edited)

未登录看这个网站 似乎没有discourse那样右下角的进度条 内容较多的楼层浏览起来很不便()
以及men有贴表情功能吗🥹

长恨此身非我有 何时忘却营营

admin
#14 · (edited)
青年杰出贡献上交大門人 紫金港第一皮革<・)))><<

贴表情有的,different with discourse, 可以贴任意多,你可以体验一下,使用Discourse SSO登录,还支持聊天功能

进度条是个好建议,应该还要有 jump to first and jump to last

❤️👍
4
#16 ·

已严肃登录 发现好像无法自定义interface 我平时在这里喜欢用mint dark()

长恨此身非我有 何时忘却营营

admin
#17 · (edited)
青年杰出贡献上交大門人 紫金港第一皮革<・)))><<

设计主打KISS(Keep it simple, stupid),不支持复杂的插件和主题系统,而是尽量改善唯一的、默认的用户界面

支持dark mode / light mode自动识别,也可以手动切换

❤️👍
2
admin
#18 ·

Issue tracking

进度栏,这个还真不太好实现,当前的远远没有Discourse完美

发现贴表情的时候 pig2的动图只能显示🐖的图案 但自己发帖可以正常显示

reactions: pig2 gif are not animated
the url hould be </uploads/image/a5/52/a552de2017382634e9bb9c81e663be3a8c3e4cca7a07c0a683cc44788464e62b.avif>
shows as an static pig emoji,
which is unlike wave_gif which the url is kept

群聊的文字配色或许可以优化一下… dark模式下别人发的文字有点难以辨认 light时自己发的文字看不清

improve basic topic moderation functionality
should allow mod and admin to edit any topic title, delete topic, close topic,

allow configure max number of posts in topic, auto close topic after reach this limit

https://meta.discourse.org/t/discourse-moderation-guide-part-2-managing-users/406265
https://meta.discourse.org/t/discourse-moderation-guide-part-3-managing-content/406266

new user cannot access the general chat, which should be available to all users. and also allow users to mute channels/chats.

use IndexedDB to cache content to prevent return-to-home-page lag

composer: Ctrl+X/C when nothing seletect should cut/copy whole line

reply-to and replied-by indicator in post

❤️
1
#19 ·

似乎没有回复引用?这里 #20 是回复 #19 的,但是没有链接
image|690x386

❤️
1
admin
#20 · (edited)

目前试用了一下,感觉还不错🐱
编辑器正常,可以上传图片.

自动grid
ctrl+v上传图片
All images converted to AVIF to save bandwidth automatically!

image.png|199x122

❤️👍
3
#21 · (edited)

横屏图片和文字输入框在移动端Safari浏览器存在显示不全的问题 必须手动缩小页面才能看到全部内容()

IMG_9474.png|231x500
IMG_9476.png|231x500

长恨此身非我有 何时忘却营营

admin
#22 · (edited)
青年杰出贡献上交大門人 紫金港第一皮革<・)))><<

超出屏幕范围和图片无法上传问题已修复

❤️👍
3
#23 · (edited)
IO IO

xjtu.app的表情似乎并没有完全迁移,特别是自定义部分,例如:distorted_face::wave_gif:,以及似乎我們可能觉得有趣的内容 中的链接需要指向.men站点(我們可能觉得有趣的内容这个帖子原本是门友都可以编辑的帖子,现在门友并没有对应的编辑权限)。

Hard time comes again and never leave.

❤️wave_gif🫪
3
#24 · (edited)

原先设置了spoiler的内容在这里似乎无法点开看到具体内容?望修复🥹
updt:抱歉我误会了!这个问题不存在

但是我刚刚发现同一个帖子有多个spoiler 内容不能同时显示 点开一个其他的就会隐藏?

以及 不知道本站是否支持选中其他发言的部分内容进行引用回复的功能()

长恨此身非我有 何时忘却营营

❤️👍
3
admin
#25 · (edited)
青年杰出贡献上交大門人 紫金港第一皮革<・)))><<
I_Love_ZJU:

以及 不知道本站是否支持选中其他发言的部分内容进行引用回复的功能()

已添加Quote/Copy Quote的功能。

I_Love_ZJU:

但是我刚刚发现同一个帖子有多个spoiler 内容不能同时显示 点开一个其他的就会隐藏?

这个只是和Discourse的行为不一样,我觉得当前的行为也能接受。

芙蓉湖第一树莓果:

xjtu.app的表情似乎并没有完全迁

目前试验了一下,emoji-picker里自定义部分的图片都能正常加载。

芙蓉湖第一树莓果:

我們可能觉得有趣的内容 中的链接需要指向.men站点(我們可能觉得有趣的内容这个帖子原本是门友都可以编辑的帖子,现在门友并没有对应的编辑权限)。

目前登录.app或.men中的任一域名,登录状态都会被同步到另一个域名,所有功能全部相同,只是网络流量不过/过CDN的区别。
为了防止在不同的域名间切换,我們可能觉得有趣的内容 中的absolute URL已被手动改成了relative URL.

make post wiki 是个好功能,不过它依赖于:

  • post revisions management,方便看到谁改了什么,以及回滚
  • trust level system,当前把Discourse的等级迁移过来了,但是自动升级的机制比较复杂,还涉及到post read numbers / read time / login days 等的统计
  • collaborative edit:类似于云文档多人同时协作编辑,可以用yjs. 否则如果两个人同时修改,容易产生冲突。
❤️👍
3
#26 ·

发现同时选择多张图片上传 实际上传的只有第一张图片 每次都得重新选择有点不方便🫠

长恨此身非我有 何时忘却营营

❤️
1
#27 · (edited)
IO IO
  • admin大人是否有方法将上传图片的布局选项交给用户,以及这是否是一个小小的不错提议?定义几个模板,例如2×2 grid,让用户选择
  • 以及general频道中貌似目前无法“回复引用”对应的消息

Hard time comes again and never leave.

👍❤️
1
admin
#28 ·
芙蓉湖第一树莓果 RaspberryPi
I_Love_ZJU:

发现同时选择多张图片上传 实际上传的只有第一张图片 每次都得重新选择有点不方便🫠

已修复。我之前用Firefox没遇到过这个bug,用Chromium可以复现。

芙蓉湖第一树莓果:

定义几个模板,例如2×2 grid,让用户选择

当前grid模式是为了更好地展示多张图片。目前当上传多张图片,或者多张图片连在一块时,会自动插入在两头插入

[grid mode ="tile"]
[ /grid]

,从而通过tile/slide展示多张图片。如果需要连续的布局,可以修改为[grid mode="off"]

看来可以添加对mode="2x2"mode="axb"这种允许用户自定义的参数的解析。(已实现)

❤️👍
3
admin
#29 ·
IO IO

ToDoList:
< Jul 16, 2026 (Australia/Perth)
add auto contents table
change bulleted list and emoji icons in composer
support date parsing [date.....]
fix user signature out of screen issue when line is too long( e.g. https://xjtu.men/t/topic/13562/3 )
fix share-post button not working on desktop
wiki shared edit problem
chat messages number indicator auto update
soft delete post

❤️
1
#30 ·

不知道有人还在用App版門吗?虽然将网页添加到桌面也可以实现类似的应用套壳效果,但是会比较慢一些。

另外当前的App有时会闪退,Admin 是否考虑更新App?

Crystal Clear 
❤️
1
#31 · (edited)

Reply to topic 应该放在相关推荐的上面比较好

❤️plus1
2
#32 ·

不知道能不能实现打开一个阅读过的话题时 进度条在上次阅读的位置而不是首条帖子(有时候翻起来有点麻烦)

长恨此身非我有 何时忘却营营

❤️
1
admin
#33 ·
青年杰出贡献上交大門人 紫金港第一皮革<・)))><<
青年杰出贡献上交大門人:

打开一个阅读过的话题时 进度条在上次阅读的位置而不是首条帖子

这个是在我们的设计里的,我前几天发现有些topic进来回到post1(例如本帖),昨天做了修复。如果还出现回到post1,可以把本站的浏览数据清理再刷新一下。若再遇到了反馈是哪个topic

hoist:

Reply to topic 应该放在相关推荐的上面比较好

非常好建议,我怎么没考虑到(可能因为大多数时候是我发的topic,回复也是回复单个post多一点)。

Xrystal-line:

另外当前的App有时会闪退,Admin 是否考虑更新App?

我都不记得何年何月的事情了,还真的有人在用吗?
如果要实现App,有如下思路:

  1. Web App也是App
  2. 浏览器套壳,webview访问网站,也不是NativeApp,没啥意思
  3. 把现有的代码里的前后端拆开,使用Tauri实现跨平台的App,前端打包可以复用,利用Rust后端实现自定义传输/缓存等浏览器无法做的内容。
    目前想把Web功能完善好,再考虑实现NativeApp
❤️👍
3
admin
#34 ·
IO IO

< Jul 17, 2026 (Australia/Perth)
crawl URL and show preview(whole line: onebox, inline: title fetching, our site: special treatment)
QRCode, BBCode text/background color, [justify] align
add build info in console F12
fix header layout misalignment
move 'reply to topic' above 'Suggested Topics'
in chat: click avatar shows user profile, quote message

See 功能更新 CHANGE LOG to test markdown/bbcode support.

❤️
1
admin
#35 ·
IO IO

Jul 20, 2026, 2:49:14 PM (Australia/Perth)
Anonymous posting, no login required!
mention @somebody add notification(in topic and chat)
reply and reactions notification
system notification

❤️
1
#36 · (edited)
  • 个人资料背景和资料卡背景未正确渲染
  • 签名档内的img元素: 存在多余的mt / mb, 且无法修改; h / w也无法修改
Crystal Clear 
❤️
1
admin
#37 ·
Xrystal-line 羽流弦ノ迹
Xrystal-line:

个人资料背景和资料卡背景未正确渲染

没想到 profile_background_url and card_background_url 里也有uploaded image, rehash的时候忘了,还是原来的链接格式,404。已经修复。

Xrystal-line:

签名档内的img元素: 存在多余的mt / mb, 且无法修改; h / w也无法修改

你的意思是signature所在的div有个mt?

image.png

❤️
1
#38 ·
IO IO

如图, 似乎只有img元素会有这个margin而文字正常, 门友 无状态垃圾桶 的签名档比较明显
image.png

Crystal Clear 
❤️
1
admin
#39 ·
Xrystal-line 羽流弦ノ迹

解决了,再试一下看看

❤️
2
admin
#41 ·

今日打卡:
Jul 21, 2026, 9:40:24 PM

427cead7842ff28ab3fd5a70bf7b0ca257913572 (HEAD -> main) allow hard delete; fix number of replies containing (soft)deleted posts
7dfe867ea536cf32ea7118217b9d7a7614a279c6 (origin/main) add /my/[...path] dynamic redirect route to user profile
eddbcb7bb3e5f8691d4befee55c205369efb034b add 'my bookmarks' shortcut in user avatar dropdown
16321447d8a24c48ef4470594ef61be1afb63e69 user profile infinite scroll
409dc3819d025085f403b18db2e431dceeccfe65 signature: remove img margin
e86ef91797aae1cae52afd3612fab45e180ccce0 improve user profile page to make it more blog alike: beautify the /u/{username} page to make it more like a user blogs / microblogs.
047076e98703c700af6bbd1df6ed9c66abe6510b pnpm format
d05a42817b25289349bd62310449c186adf23031 improve profile_background_url and card_background_url handling
d6103d7977cf1b1b205e1423758dab7b8161891b image-rehash: add script to remap user profile_background_url and card_background_url
aceae4c07179b6fa30fa99a8beea07948146159e fix emoji reactions heart shown separately
3ec468716dbb8763546c81ecb28ef0ba5ed7e0c1 add user data export feature:
3d58d278c53a441f305e446fb125f3e8df5a2841 chat: fix some UI problems: * the popup menu after clicking 'attach file or emoji' button is occluded by previous user's message. * The emoji picker's group indicator is misaligned with current selected group, both on mobile and desktop(FIXED WITH CLAUDE, NOT GEMINI) * sometimes, the reactions emojis are duplicated, same emoji appear twice.
7504cfbbfdb165db779c96c5e1a6257f588bb1ed chat: add reactions feature
af3835ab2c137472b10d31ae17a143520cd2e6d9 chat: fix message out of screen, action buttons won't cause shape change.
2a357821f3dddb10c68a138c6e87d695ff56c0b2 chat: auto resize composer
899ff868a0dc13dbca282129c96cd23813af97d2 chat: allow upload and merge with emoji button

#42 ·

底部导航栏的蓝色进度条有点晃眼

❤️
1
#43 ·

无法上传新的avatar. 报错Failed to load image for resizing
似乎与格式无关, 因为jpeg和png格式均存在此问题
image.png
另外, 不知道avatar是否支持透明像素?

Crystal Clear