prevent highligting

This commit is contained in:
Roland Osborne 2022-05-12 11:00:43 -07:00
parent e31c973963
commit f2219a3b4e
10 changed files with 11 additions and 50 deletions

View File

@ -6,8 +6,6 @@ info:
conversations. conversations.
version: "0.0.1" version: "0.0.1"
title: DataBag title: DataBag
contact:
email: roland.osborne@gmail.com
license: license:
name: Apache 2.0 name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html' url: 'http://www.apache.org/licenses/LICENSE-2.0.html'

View File

@ -33607,7 +33607,6 @@ except ApiException as e:
<div id="api-_footer"> <div id="api-_footer">
<p>Suggestions, contact, support and error reporting; <p>Suggestions, contact, support and error reporting;
<div class="app-desc">Information URL: <a href="https://helloreverb.com">https://helloreverb.com</a></div> <div class="app-desc">Information URL: <a href="https://helloreverb.com">https://helloreverb.com</a></div>
<div class="app-desc">Contact Info: <a href="roland.osborne@gmail.com">roland.osborne@gmail.com</a></div>
</p> </p>
<div class="license-info">Apache 2.0</div> <div class="license-info">Apache 2.0</div>
<div class="license-url">http://www.apache.org/licenses/LICENSE-2.0.html</div> <div class="license-url">http://www.apache.org/licenses/LICENSE-2.0.html</div>

View File

@ -1,12 +1,3 @@
/*
* DataBag
*
* DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations.
*
* API version: 0.0.1
* Contact: roland.osborne@gmail.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package databag package databag
import ( import (

View File

@ -1,12 +1,3 @@
/*
* DataBag
*
* DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations.
*
* API version: 0.0.1
* Contact: roland.osborne@gmail.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package databag package databag
import ( import (

View File

@ -1,12 +1,3 @@
/*
* DataBag
*
* DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations.
*
* API version: 0.0.1
* Contact: roland.osborne@gmail.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package databag package databag
import ( import (

View File

@ -1,12 +1,3 @@
/*
* DataBag
*
* DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations.
*
* API version: 0.0.1
* Contact: roland.osborne@gmail.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package databag package databag
import ( import (

View File

@ -1,12 +1,3 @@
/*
* DataBag
*
* DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations.
*
* API version: 0.0.1
* Contact: roland.osborne@gmail.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package main package main
import ( import (

View File

@ -14,7 +14,7 @@ export function User() {
return ( return (
<UserWrapper> <UserWrapper>
<SideBar /> <SideBar />
<div class="canvas noselect"> <div class="canvas">
<img class="connect" src={connect} alt="" /> <img class="connect" src={connect} alt="" />
<div class="page"> <div class="page">
<Outlet /> <Outlet />

View File

@ -7,6 +7,12 @@ export const UserWrapper = styled.div`
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: #f6f5ed; background-color: #f6f5ed;
webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
.canvas { .canvas {
display: flex; display: flex;

View File

@ -18,6 +18,7 @@ export function useConversationContext() {
const count = useRef(0); const count = useRef(0);
const conversationId = useRef(null); const conversationId = useRef(null);
const view = useRef(0); const view = useRef(0);
const gone = useRef(false);
const updateState = (value) => { const updateState = (value) => {
setState((s) => ({ ...s, ...value })); setState((s) => ({ ...s, ...value }));
@ -30,7 +31,8 @@ export function useConversationContext() {
if (cardId) { if (cardId) {
let deltaRevision = card.actions.getChannelRevision(cardId, channelId); let deltaRevision = card.actions.getChannelRevision(cardId, channelId);
if (!deltaRevision) { if (!deltaRevision && !gone.current) {
gone.current = true;
window.alert("This converstaion has been removed"); window.alert("This converstaion has been removed");
return; return;
} }
@ -155,6 +157,7 @@ export function useConversationContext() {
view.current += 1; view.current += 1;
conversationId.current = { cardId, channelId }; conversationId.current = { cardId, channelId };
revision.current = null; revision.current = null;
gone.current = false;
topics.current = new Map(); topics.current = new Map();
updateState({ init: false, cardId, channelId, topics: topics.current }); updateState({ init: false, cardId, channelId, topics: topics.current });
updateConversation(); updateConversation();