From cc36dc14d32ee15727ed6153b019e80586b8285e Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 18 Jul 2023 12:57:46 -0400 Subject: got rid of snapshot dashboard topbar menu item. fixed server stats background. got rid of import document from doc view context menu. --- src/client/util/ServerStats.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/util') diff --git a/src/client/util/ServerStats.tsx b/src/client/util/ServerStats.tsx index b6aa4d95a..6a6ec158e 100644 --- a/src/client/util/ServerStats.tsx +++ b/src/client/util/ServerStats.tsx @@ -4,6 +4,8 @@ import * as React from 'react'; import { MainViewModal } from '../views/MainViewModal'; import './SharingManager.scss'; import { PingManager } from './PingManager'; +import { StrCast } from '../../fields/Types'; +import { Doc } from '../../fields/Doc'; @observer export class ServerStats extends React.Component<{}> { @@ -44,7 +46,7 @@ export class ServerStats extends React.Component<{}> { display: "flex", height: 300, width: 400, - background: "black", + background: StrCast(Doc.UserDoc().userBackgroundColor), opacity: 0.6}}>
{PingManager.Instance.IsBeating ? 'The server connection is active' : -- cgit v1.2.3-70-g09d2 From 5da0b8c1e12abe13d60361af4f6bbb8454b6814d Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 18 Jul 2023 13:13:06 -0400 Subject: fixed upload sidebar to be able to upload zipped dash docs. --- src/client/util/CurrentUserUtils.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/client/util') diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index a7775715c..1f99260c6 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -30,8 +30,7 @@ import { LinkManager } from "./LinkManager"; import { ScriptingGlobals } from "./ScriptingGlobals"; import { ColorScheme, SettingsManager } from "./SettingsManager"; import { UndoManager } from "./UndoManager"; -import { PresElementBox } from "../views/nodes/trails"; -import { ImportElementBox } from "../views/nodes/importBox/importElementBox"; +import { ImportElementBox } from "../views/nodes/importBox/ImportElementBox"; interface Button { // DocumentOptions fields a button can set @@ -967,10 +966,8 @@ export class CurrentUserUtils { input.multiple = true; input.accept = ".zip, application/pdf, video/*, image/*, audio/*"; input.onchange = async _e => { - const upload = Utils.prepend("/uploadDoc"); - const formData = new FormData(); const file = input.files?.[0]; - if (file?.type === 'application/zip') { + if (file?.type === 'application/zip' || file?.type === 'application/x-zip-compressed') { const doc = await Doc.importDocument(file); // NOT USING SOLR, so need to replace this with something else // if (doc instanceof Doc) { // setTimeout(() => SearchUtil.Search(`{!join from=id to=proto_i}id:link*`, true, {}).then(docs => -- cgit v1.2.3-70-g09d2