ui: remove preview action bar

This commit is contained in:
undefined committed 2021-04-29 12:26:18 +08:00
1 parent 00586b5883
commit 9c6095e852
4 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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 -1
View File
@@ -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",