Revive xjtu.men with a slim and swift design

谈笑风生 1218 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