mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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",
|
"name": "hydrooj",
|
||||||
"version": "2.23.28",
|
"version": "2.23.29",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ class UserModel {
|
|||||||
const salt = String.random();
|
const salt = String.random();
|
||||||
if (!uid) {
|
if (!uid) {
|
||||||
const [udoc] = await coll.find({}).sort({ _id: -1 }).limit(1).toArray();
|
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 {
|
try {
|
||||||
await coll.insertOne({
|
await coll.insertOne({
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
.vditor
|
.vditor
|
||||||
margin-bottom: rem(10px)
|
margin-bottom: rem(10px)
|
||||||
|
|
||||||
|
.vditor-preview__action
|
||||||
|
display: none
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.6.20",
|
"version": "4.6.21",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user