Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ import { Form, useFetcher } from "react-router";
|
||||
import { JsonPropertyDto, JsonPropertyType, JsonPropertyTypes } from "~/modules/jsonProperties/dtos/JsonPropertyTypeDto";
|
||||
import InputCheckbox from "~/components/ui/input/InputCheckbox";
|
||||
// import {toast} from "sonner";
|
||||
import toast from "react-hot-toast";
|
||||
import { toast } from "sonner";
|
||||
import SlideOverWideEmpty from "~/components/ui/slideOvers/SlideOverWideEmpty";
|
||||
import { Button } from "~/components/ui/button";
|
||||
import TrashIcon from "~/components/ui/icons/TrashIcon";
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ export default function JsonPropertyValueCell({ property, value }: { property: J
|
||||
try {
|
||||
const date = new Date(value as string);
|
||||
return <div>{<DateCell date={date} />}</div>;
|
||||
} catch (e) {
|
||||
} catch (_e) {
|
||||
return <div className="text-muted-foreground">{value?.toString()}</div>;
|
||||
}
|
||||
case "select":
|
||||
|
||||
+1
-1
@@ -236,7 +236,7 @@ function JsonMultiSelectInput({ prefix, property, initial }: { prefix: string; p
|
||||
);
|
||||
}
|
||||
|
||||
function ContentForm({ prefix, property, value }: { prefix: string; property: JsonPropertyDto; value: string | undefined }) {
|
||||
function ContentForm({ prefix: _prefix, property: _property, value }: { prefix: string; property: JsonPropertyDto; value: string | undefined }) {
|
||||
const { t } = useTranslation();
|
||||
const [content, setContent] = useState(value);
|
||||
const [contentType, setContentType] = useState("wysiwyg");
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
import FormHelper from "~/utils/helpers/FormHelper";
|
||||
import { JsonPropertiesValuesDto } from "../dtos/JsonPropertiesValuesDto";
|
||||
import { JsonPropertyDto } from "../dtos/JsonPropertyTypeDto";
|
||||
import { t as i18nT } from "i18next";
|
||||
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
|
||||
|
||||
function getValuesFromForm({
|
||||
properties,
|
||||
@@ -123,14 +123,14 @@ const allProperties: JsonPropertyDto[] = [
|
||||
name: "image",
|
||||
title: i18nT("models.jsonProperty.samples.image"),
|
||||
required: true,
|
||||
defaultValue: "https://placehold.co/150",
|
||||
defaultValue: "/images/placeholder.svg",
|
||||
},
|
||||
{
|
||||
type: "image",
|
||||
name: "imageNotRequired",
|
||||
title: i18nT("models.jsonProperty.samples.imageNotRequired"),
|
||||
required: false,
|
||||
defaultValue: "https://placehold.co/250",
|
||||
defaultValue: "/images/placeholder.svg",
|
||||
},
|
||||
{
|
||||
type: "select",
|
||||
|
||||
Reference in new issue
Block a user