mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: remove preview action bar
This commit is contained in:
1 parent
00586b5883
commit
9c6095e852
4 files changed
+6
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.23.28",
|
||||
"version": "2.23.29",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -200,7 +200,7 @@ class UserModel {
|
||||
const salt = String.random();
|
||||
if (!uid) {
|
||||
const [udoc] = await coll.find({}).sort({ _id: -1 }).limit(1).toArray();
|
||||
uid = Math.max((udoc._id || 0) + 1, 2);
|
||||
uid = Math.max((udoc?._id || 0) + 1, 2);
|
||||
}
|
||||
try {
|
||||
await coll.insertOne({
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
.vditor
|
||||
margin-bottom: rem(10px)
|
||||
|
||||
.vditor-preview__action
|
||||
display: none
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.6.20",
|
||||
"version": "4.6.21",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
Reference in new issue
Block a user