From 2d6307f6eaa0803aefabae9e9232506611365b66 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Fri, 13 Jun 2025 09:00:49 -0400
Subject: updated css and project to HTML5 standards.  fixed border rounding
 for images.

---
 src/client/views/collections/KeyRestrictionRow.tsx | 72 ----------------------
 1 file changed, 72 deletions(-)
 delete mode 100644 src/client/views/collections/KeyRestrictionRow.tsx

(limited to 'src/client/views/collections/KeyRestrictionRow.tsx')

diff --git a/src/client/views/collections/KeyRestrictionRow.tsx b/src/client/views/collections/KeyRestrictionRow.tsx
deleted file mode 100644
index 7dc08389b..000000000
--- a/src/client/views/collections/KeyRestrictionRow.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-/* eslint-disable react/button-has-type */
-import { observable, runInAction } from 'mobx';
-import { observer } from 'mobx-react';
-import * as React from 'react';
-
-interface IKeyRestrictionProps {
-    contains: boolean;
-    script: (value: string) => void;
-    field: string;
-    value: string;
-}
-
-@observer
-export default class KeyRestrictionRow extends React.Component<IKeyRestrictionProps> {
-    @observable private _key = this.props.field;
-    @observable private _value = this.props.value;
-    @observable private _contains = this.props.contains;
-
-    render() {
-        if (this._key && this._value) {
-            let parsedValue: string | number = `"${this._value}"`;
-            const parsed = parseInt(this._value);
-            let type = 'string';
-            if (!isNaN(parsed)) {
-                parsedValue = parsed;
-                type = 'number';
-            }
-            const scriptText = `${this._contains ? '' : '!'}(((doc.${this._key} && (doc.${this._key} as ${type})${type === 'string' ? '.includes' : '<='}(${parsedValue}))) ||
-                ((doc.data_ext && doc.data_ext.${this._key}) && (doc.data_ext.${this._key} as ${type})${type === 'string' ? '.includes' : '<='}(${parsedValue}))))`;
-            // let doc = new Doc();
-            // ((doc.data_ext && doc.data_ext!.text) && (doc.data_ext!.text as string).includes("hello"));
-            this.props.script(scriptText);
-        } else {
-            this.props.script('');
-        }
-
-        return (
-            <div className="collectionViewBaseChrome-viewSpecsMenu-row">
-                <input
-                    className="collectionViewBaseChrome-viewSpecsMenu-rowLeft"
-                    value={this._key}
-                    onChange={e =>
-                        runInAction(() => {
-                            this._key = e.target.value;
-                        })
-                    }
-                    placeholder="KEY"
-                />
-                <button
-                    className="collectionViewBaseChrome-viewSpecsMenu-rowMiddle"
-                    style={{ background: this._contains ? '#77dd77' : '#ff6961' }}
-                    onClick={() =>
-                        runInAction(() => {
-                            this._contains = !this._contains;
-                        })
-                    }>
-                    {this._contains ? 'CONTAINS' : 'DOES NOT CONTAIN'}
-                </button>
-                <input
-                    className="collectionViewBaseChrome-viewSpecsMenu-rowRight"
-                    value={this._value}
-                    onChange={e =>
-                        runInAction(() => {
-                            this._value = e.target.value;
-                        })
-                    }
-                    placeholder="VALUE"
-                />
-            </div>
-        );
-    }
-}
-- 
cgit v1.2.3-70-g09d2

