@deenruv/deenruv-examples-plugin 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/README.md +37 -0
- package/dist/plugin-server/constants.d.ts +3 -0
- package/dist/plugin-server/constants.js +11 -0
- package/dist/plugin-server/index.d.ts +2 -0
- package/dist/plugin-server/index.js +286 -0
- package/dist/plugin-server/zeus/const.d.ts +6 -0
- package/dist/plugin-server/zeus/const.js +3656 -0
- package/dist/plugin-server/zeus/index.d.ts +18614 -0
- package/dist/plugin-server/zeus/index.js +1120 -0
- package/dist/plugin-server/zeus/typedDocumentNode.d.ts +3 -0
- package/dist/plugin-server/zeus/typedDocumentNode.js +16 -0
- package/dist/plugin-ui/assets/index.d.ts +1 -0
- package/dist/plugin-ui/assets/index.js +1 -0
- package/dist/plugin-ui/assets/svgs/SquareIcon.d.ts +2 -0
- package/dist/plugin-ui/assets/svgs/SquareIcon.js +3 -0
- package/dist/plugin-ui/assets/svgs/index.d.ts +1 -0
- package/dist/plugin-ui/assets/svgs/index.js +1 -0
- package/dist/plugin-ui/components/CustomInput.d.ts +2 -0
- package/dist/plugin-ui/components/CustomInput.js +10 -0
- package/dist/plugin-ui/components/TestComponent.d.ts +2 -0
- package/dist/plugin-ui/components/TestComponent.js +11 -0
- package/dist/plugin-ui/components/TestPage.d.ts +2 -0
- package/dist/plugin-ui/components/TestPage.js +52 -0
- package/dist/plugin-ui/components/index.d.ts +2 -0
- package/dist/plugin-ui/components/index.js +2 -0
- package/dist/plugin-ui/graphql/mutations.d.ts +22 -0
- package/dist/plugin-ui/graphql/mutations.js +11 -0
- package/dist/plugin-ui/graphql/queries.d.ts +12 -0
- package/dist/plugin-ui/graphql/queries.js +14 -0
- package/dist/plugin-ui/graphql/selectors.d.ts +6 -0
- package/dist/plugin-ui/graphql/selectors.js +7 -0
- package/dist/plugin-ui/index.d.ts +1 -0
- package/dist/plugin-ui/index.js +70 -0
- package/dist/plugin-ui/locales/en/index.d.ts +41 -0
- package/dist/plugin-ui/locales/en/index.js +2 -0
- package/dist/plugin-ui/locales/en/test.json +40 -0
- package/dist/plugin-ui/locales/pl/index.d.ts +41 -0
- package/dist/plugin-ui/locales/pl/index.js +2 -0
- package/dist/plugin-ui/locales/pl/test.json +40 -0
- package/dist/plugin-ui/tables.d.ts +5 -0
- package/dist/plugin-ui/tables.js +7 -0
- package/dist/plugin-ui/tabs.d.ts +2 -0
- package/dist/plugin-ui/tabs.js +10 -0
- package/dist/plugin-ui/translation-ns.d.ts +1 -0
- package/dist/plugin-ui/translation-ns.js +1 -0
- package/dist/plugin-ui/tsconfig.json +18 -0
- package/dist/plugin-ui/zeus/const.d.ts +6 -0
- package/dist/plugin-ui/zeus/const.js +3653 -0
- package/dist/plugin-ui/zeus/index.d.ts +18614 -0
- package/dist/plugin-ui/zeus/index.js +1112 -0
- package/dist/plugin-ui/zeus/typedDocumentNode.d.ts +3 -0
- package/dist/plugin-ui/zeus/typedDocumentNode.js +9 -0
- package/package.json +53 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
2
|
+
import { ValueTypes, GenericOperation, OperationOptions, GraphQLTypes, InputType, ScalarDefinition, ThunderGraphQLOptions, ExtractVariables } from './';
|
|
3
|
+
export declare const typedGql: <O extends "query" | "mutation", SCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<SCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: OperationOptions) => TypedDocumentNode<InputType<GraphQLTypes[R], Z, SCLR>, ExtractVariables<Z>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.typedGql = void 0;
|
|
7
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
const _1 = require("./");
|
|
9
|
+
const typedGql = (operation, graphqlOptions) => (o, ops) => {
|
|
10
|
+
const str = (0, _1.Zeus)(operation, o, {
|
|
11
|
+
operationOptions: ops,
|
|
12
|
+
scalars: graphqlOptions === null || graphqlOptions === void 0 ? void 0 : graphqlOptions.scalars,
|
|
13
|
+
});
|
|
14
|
+
return (0, graphql_tag_1.default)(str);
|
|
15
|
+
};
|
|
16
|
+
exports.typedGql = typedGql;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./svgs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./svgs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SquareIcon";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SquareIcon";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Input, Label, useCustomFields, CardDescription, } from "@deenruv/react-ui-devkit";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export const CustomInput = () => {
|
|
4
|
+
const { setValue, description, label, value } = useCustomFields();
|
|
5
|
+
return (React.createElement("div", null,
|
|
6
|
+
"This is custom input field for custom fields",
|
|
7
|
+
React.createElement(Label, null, label),
|
|
8
|
+
React.createElement(CardDescription, null, description),
|
|
9
|
+
React.createElement(Input, { value: value, onChange: (e) => setValue(e.target.value) })));
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { translationNS } from "../translation-ns";
|
|
3
|
+
import { useTranslation, Card, CardContent, CardHeader, } from "@deenruv/react-ui-devkit";
|
|
4
|
+
export const TestComponent = () => {
|
|
5
|
+
const { t } = useTranslation(translationNS);
|
|
6
|
+
return (React.createElement(Card, null,
|
|
7
|
+
React.createElement(CardHeader, null,
|
|
8
|
+
React.createElement("div", null, "Some Test Component from plugin")),
|
|
9
|
+
React.createElement(CardContent, null,
|
|
10
|
+
React.createElement("div", null, t("nav.link")))));
|
|
11
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { translationNS } from "../translation-ns";
|
|
3
|
+
import { Button, Card, CardContent, CardHeader, Input, Label, useMutation, useQuery, useTranslation, } from "@deenruv/react-ui-devkit";
|
|
4
|
+
import { ProductsQuery } from "../graphql/queries";
|
|
5
|
+
import { ProductMutation } from "../graphql/mutations";
|
|
6
|
+
import { useForm } from "react-hook-form";
|
|
7
|
+
import { LanguageCode } from "@deenruv/admin-types";
|
|
8
|
+
import { toast } from "sonner";
|
|
9
|
+
export const LocaleTest = () => {
|
|
10
|
+
const { t } = useTranslation(translationNS);
|
|
11
|
+
const [updateProduct] = useMutation(ProductMutation);
|
|
12
|
+
const { data: productsData } = useQuery(ProductsQuery, {
|
|
13
|
+
initialVariables: { take: 3 },
|
|
14
|
+
onSuccess: ({ products }) => reset({ products: products?.items }),
|
|
15
|
+
});
|
|
16
|
+
const products = productsData?.products?.items || [];
|
|
17
|
+
const { register, handleSubmit, reset,
|
|
18
|
+
// formState: { errors },
|
|
19
|
+
} = useForm();
|
|
20
|
+
return (React.createElement(Card, null,
|
|
21
|
+
React.createElement(CardHeader, null,
|
|
22
|
+
React.createElement("h1", { className: "mb-2 text-3xl font-bold" }, t("heading"))),
|
|
23
|
+
React.createElement(CardContent, null,
|
|
24
|
+
React.createElement("form", { onSubmit: handleSubmit(async (data) => {
|
|
25
|
+
const productsToUpdate = data.products.filter((el) => {
|
|
26
|
+
const foundProduct = products?.find((el2) => el.id === el2.id);
|
|
27
|
+
return foundProduct?.slug !== el.slug;
|
|
28
|
+
});
|
|
29
|
+
await Promise.all(productsToUpdate.map((el) => updateProduct({
|
|
30
|
+
input: {
|
|
31
|
+
id: el.id,
|
|
32
|
+
translations: [
|
|
33
|
+
{ languageCode: LanguageCode.en, slug: el.slug },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
})));
|
|
37
|
+
toast.success("success!");
|
|
38
|
+
}) },
|
|
39
|
+
React.createElement("p", { className: "mb-4" }, t("text")),
|
|
40
|
+
React.createElement("p", { className: "mb-4 font-bold" }, "Products List"),
|
|
41
|
+
React.createElement("div", { className: "flex flex-col gap-2" }, products?.map((el, idx) => (React.createElement("div", { key: el.id },
|
|
42
|
+
React.createElement("div", { className: "mb-2 flex items-center gap-4" },
|
|
43
|
+
React.createElement("p", null,
|
|
44
|
+
el.id,
|
|
45
|
+
". ",
|
|
46
|
+
el.name),
|
|
47
|
+
React.createElement("div", null,
|
|
48
|
+
React.createElement(Label, null, "product slug"),
|
|
49
|
+
React.createElement(Input, { ...register(`products.${idx}.slug`) }))),
|
|
50
|
+
React.createElement("div", null, el.description))))),
|
|
51
|
+
React.createElement(Button, { type: "submit" }, "Update")))));
|
|
52
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const ProductMutation: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
2
|
+
updateProduct: {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
}, {} & {
|
|
6
|
+
input: {
|
|
7
|
+
id: string | import("../zeus").Variable<any, string>;
|
|
8
|
+
enabled?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
9
|
+
featuredAssetId?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
10
|
+
assetIds?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
11
|
+
facetValueIds?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
12
|
+
translations?: import("../zeus").Variable<any, string> | {
|
|
13
|
+
id?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
14
|
+
languageCode: import("../zeus").LanguageCode | import("../zeus").Variable<any, string>;
|
|
15
|
+
name?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
16
|
+
slug?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
17
|
+
description?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
18
|
+
customFields?: unknown;
|
|
19
|
+
}[] | null | undefined;
|
|
20
|
+
customFields?: unknown;
|
|
21
|
+
};
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { typedGql } from "../zeus/typedDocumentNode";
|
|
2
|
+
import { $ } from "../zeus";
|
|
3
|
+
import { scalars } from "@deenruv/admin-types";
|
|
4
|
+
export const ProductMutation = typedGql("mutation", { scalars })({
|
|
5
|
+
updateProduct: [
|
|
6
|
+
{
|
|
7
|
+
input: $("input", "UpdateProductInput!"),
|
|
8
|
+
},
|
|
9
|
+
{ id: true },
|
|
10
|
+
],
|
|
11
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { typedGql } from "../zeus/typedDocumentNode";
|
|
2
|
+
import { $ } from "../zeus";
|
|
3
|
+
import { scalars } from "@deenruv/admin-types";
|
|
4
|
+
import { ProductsSelector } from "./selectors";
|
|
5
|
+
export const ProductsQuery = typedGql("query", { scalars })({
|
|
6
|
+
products: [
|
|
7
|
+
{
|
|
8
|
+
options: {
|
|
9
|
+
take: $("take", "Int"),
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
{ items: ProductsSelector },
|
|
13
|
+
],
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UIPlugin: import("@deenruv/react-ui-devkit").DeenruvUIPlugin<Record<string, any>>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { BASE_GROUP_ID, createDeenruvUIPlugin } from "@deenruv/react-ui-devkit";
|
|
2
|
+
import { BarChart, Camera, LanguagesIcon } from "lucide-react";
|
|
3
|
+
import { SquareIcon } from "./assets";
|
|
4
|
+
import { tables } from "./tables";
|
|
5
|
+
import { tabs } from "./tabs";
|
|
6
|
+
import pl from "./locales/pl";
|
|
7
|
+
import en from "./locales/en";
|
|
8
|
+
import { translationNS } from "./translation-ns";
|
|
9
|
+
import { LocaleTest } from "./components/TestPage";
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { CustomInput, TestComponent } from "./components";
|
|
12
|
+
export const UIPlugin = createDeenruvUIPlugin({
|
|
13
|
+
version: "1.0.0",
|
|
14
|
+
name: "First Plugin",
|
|
15
|
+
pages: [{ path: "locale-test", element: React.createElement(LocaleTest, null) }],
|
|
16
|
+
inputs: [{ id: "string-custom-field-input", component: CustomInput }],
|
|
17
|
+
components: [
|
|
18
|
+
{ component: TestComponent, id: "products-detail-view" },
|
|
19
|
+
{
|
|
20
|
+
component: TestComponent,
|
|
21
|
+
id: "products-detail-view-sidebar",
|
|
22
|
+
tab: "product",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
tables,
|
|
26
|
+
tabs,
|
|
27
|
+
translations: {
|
|
28
|
+
ns: translationNS,
|
|
29
|
+
data: { en, pl },
|
|
30
|
+
},
|
|
31
|
+
navMenuGroups: [
|
|
32
|
+
{
|
|
33
|
+
id: "other-settings",
|
|
34
|
+
labelId: `nav.group`,
|
|
35
|
+
placement: { groupId: BASE_GROUP_ID.SETTINGS },
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
navMenuLinks: [
|
|
39
|
+
{
|
|
40
|
+
id: "locale-test",
|
|
41
|
+
href: "locale-test",
|
|
42
|
+
labelId: `nav.link`,
|
|
43
|
+
groupId: "other-settings",
|
|
44
|
+
icon: LanguagesIcon,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "couriers",
|
|
48
|
+
href: "test",
|
|
49
|
+
labelId: `couriers`,
|
|
50
|
+
groupId: "other-settings",
|
|
51
|
+
icon: BarChart,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "placement-1",
|
|
55
|
+
href: "test",
|
|
56
|
+
labelId: `placement-2`,
|
|
57
|
+
groupId: BASE_GROUP_ID.SHIPPING,
|
|
58
|
+
icon: SquareIcon,
|
|
59
|
+
placement: { linkId: "link-shipping-methods" },
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "placement-2",
|
|
63
|
+
href: "test",
|
|
64
|
+
labelId: `placement-1`,
|
|
65
|
+
groupId: BASE_GROUP_ID.SHIPPING,
|
|
66
|
+
icon: Camera,
|
|
67
|
+
placement: { linkId: "link-payment-methods", where: "above" },
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
nav: {
|
|
3
|
+
group: string;
|
|
4
|
+
link: string;
|
|
5
|
+
};
|
|
6
|
+
heading: string;
|
|
7
|
+
text: string;
|
|
8
|
+
button: string;
|
|
9
|
+
metrics: string;
|
|
10
|
+
averageOrderValue: string;
|
|
11
|
+
orderCount: string;
|
|
12
|
+
orderTotal: string;
|
|
13
|
+
dataTypes: string;
|
|
14
|
+
intervalTypes: string;
|
|
15
|
+
selectDataType: string;
|
|
16
|
+
selectIntervalType: string;
|
|
17
|
+
latestOrders: string;
|
|
18
|
+
ordersSummary: string;
|
|
19
|
+
payment: string;
|
|
20
|
+
totalOrdersCount: string;
|
|
21
|
+
totalOrdersValue: string;
|
|
22
|
+
today: string;
|
|
23
|
+
yesterday: string;
|
|
24
|
+
thisWeek: string;
|
|
25
|
+
thisMonth: string;
|
|
26
|
+
thisYear: string;
|
|
27
|
+
gross: string;
|
|
28
|
+
net: string;
|
|
29
|
+
thisWeekInterval: string;
|
|
30
|
+
weeklyInterval: string;
|
|
31
|
+
lastWeekInterval: string;
|
|
32
|
+
thisMonthInterval: string;
|
|
33
|
+
mothlyInterval: string;
|
|
34
|
+
lastMonthInterval: string;
|
|
35
|
+
yearlyInterval: string;
|
|
36
|
+
customInterval: string;
|
|
37
|
+
chooseStartDate: string;
|
|
38
|
+
chooseEndDate: string;
|
|
39
|
+
orderTotalProductsCount: string;
|
|
40
|
+
}[];
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nav": {
|
|
3
|
+
"group": "Other settings",
|
|
4
|
+
"link": "Translations Test"
|
|
5
|
+
},
|
|
6
|
+
"heading": "Test heading",
|
|
7
|
+
"text": "This is a translated text.",
|
|
8
|
+
"button": "Button",
|
|
9
|
+
"metrics": "Metrics",
|
|
10
|
+
"averageOrderValue": "Average order value",
|
|
11
|
+
"orderCount": "Order count",
|
|
12
|
+
"orderTotal": "Order total",
|
|
13
|
+
"dataTypes": "Data types",
|
|
14
|
+
"intervalTypes": "Interval types",
|
|
15
|
+
"selectDataType": "Select data type",
|
|
16
|
+
"selectIntervalType": "Select interval type",
|
|
17
|
+
"latestOrders": "Latest orders",
|
|
18
|
+
"ordersSummary": "Orders summary",
|
|
19
|
+
"payment": "Payment",
|
|
20
|
+
"totalOrdersCount": "Total orders count",
|
|
21
|
+
"totalOrdersValue": "Total orders value",
|
|
22
|
+
"today": "Today",
|
|
23
|
+
"yesterday": "Yesterday",
|
|
24
|
+
"thisWeek": "This week",
|
|
25
|
+
"thisMonth": "This month",
|
|
26
|
+
"thisYear": "This year",
|
|
27
|
+
"gross": "Gross",
|
|
28
|
+
"net": "Net",
|
|
29
|
+
"thisWeekInterval": "This week",
|
|
30
|
+
"weeklyInterval": "Weekly",
|
|
31
|
+
"lastWeekInterval": "Last week",
|
|
32
|
+
"thisMonthInterval": "This month",
|
|
33
|
+
"mothlyInterval": "Monthly",
|
|
34
|
+
"lastMonthInterval": "Last month",
|
|
35
|
+
"yearlyInterval": "Yearly",
|
|
36
|
+
"customInterval": "Custom",
|
|
37
|
+
"chooseStartDate": "Choose start date",
|
|
38
|
+
"chooseEndDate": "Choose end date",
|
|
39
|
+
"orderTotalProductsCount": "Total products count"
|
|
40
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
nav: {
|
|
3
|
+
group: string;
|
|
4
|
+
link: string;
|
|
5
|
+
};
|
|
6
|
+
heading: string;
|
|
7
|
+
text: string;
|
|
8
|
+
button: string;
|
|
9
|
+
metrics: string;
|
|
10
|
+
averageOrderValue: string;
|
|
11
|
+
orderCount: string;
|
|
12
|
+
orderTotal: string;
|
|
13
|
+
dataTypes: string;
|
|
14
|
+
intervalTypes: string;
|
|
15
|
+
selectDataType: string;
|
|
16
|
+
selectIntervalType: string;
|
|
17
|
+
latestOrders: string;
|
|
18
|
+
ordersSummary: string;
|
|
19
|
+
payment: string;
|
|
20
|
+
totalOrdersCount: string;
|
|
21
|
+
totalOrdersValue: string;
|
|
22
|
+
today: string;
|
|
23
|
+
yesterday: string;
|
|
24
|
+
thisWeek: string;
|
|
25
|
+
thisMonth: string;
|
|
26
|
+
thisYear: string;
|
|
27
|
+
gross: string;
|
|
28
|
+
net: string;
|
|
29
|
+
thisWeekInterval: string;
|
|
30
|
+
weeklyInterval: string;
|
|
31
|
+
lastWeekInterval: string;
|
|
32
|
+
thisMonthInterval: string;
|
|
33
|
+
mothlyInterval: string;
|
|
34
|
+
lastMonthInterval: string;
|
|
35
|
+
yearlyInterval: string;
|
|
36
|
+
customInterval: string;
|
|
37
|
+
chooseStartDate: string;
|
|
38
|
+
chooseEndDate: string;
|
|
39
|
+
orderTotalProductsCount: string;
|
|
40
|
+
}[];
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nav": {
|
|
3
|
+
"group": "Inne Ustawienia",
|
|
4
|
+
"link": "Test Tłumaczeń"
|
|
5
|
+
},
|
|
6
|
+
"heading": "Nagłówek testowy",
|
|
7
|
+
"text": "To jest przetłumaczony tekst.",
|
|
8
|
+
"button": "Guzik",
|
|
9
|
+
"metrics": "Wskaźniki",
|
|
10
|
+
"averageOrderValue": "Średnia wartość zamówienia",
|
|
11
|
+
"orderCount": "Ilość zamówień",
|
|
12
|
+
"orderTotal": "Wartość zamówień",
|
|
13
|
+
"dataTypes": "Dostępne typy danych",
|
|
14
|
+
"intervalTypes": "Typ interwału",
|
|
15
|
+
"selectDataType": "Wybierz typ danych",
|
|
16
|
+
"selectIntervalType": "Wybierz tryb interwału",
|
|
17
|
+
"latestOrders": "Ostatnie zamówienia",
|
|
18
|
+
"ordersSummary": "Podsumowanie zamówień",
|
|
19
|
+
"payment": "Płatność",
|
|
20
|
+
"totalOrdersCount": "Całkowita liczba zamówień",
|
|
21
|
+
"totalOrdersValue": "Całkowita wartość",
|
|
22
|
+
"today": "Dzisiaj",
|
|
23
|
+
"yesterday": "Wczoraj",
|
|
24
|
+
"thisWeek": "W tym tygodniu",
|
|
25
|
+
"thisMonth": "W tym miesiącu",
|
|
26
|
+
"thisYear": "W tym roku",
|
|
27
|
+
"gross": "Brutto",
|
|
28
|
+
"net": "Netto",
|
|
29
|
+
"thisWeekInterval": "W tym tygodniu",
|
|
30
|
+
"weeklyInterval": "Tydzień",
|
|
31
|
+
"lastWeekInterval": "W zeszłym tygodniu",
|
|
32
|
+
"thisMonthInterval": "W tym miesiącu",
|
|
33
|
+
"mothlyInterval": "Miesiąc",
|
|
34
|
+
"lastMonthInterval": "Ostatni miesiąc",
|
|
35
|
+
"yearlyInterval": "Rok",
|
|
36
|
+
"customInterval": "Niestandardowy",
|
|
37
|
+
"chooseStartDate": "Data początkowa",
|
|
38
|
+
"chooseEndDate": "Data końcowa",
|
|
39
|
+
"orderTotalProductsCount": "Całkowita liczba zamówień"
|
|
40
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DeenruvUIPlugin } from "@deenruv/react-ui-devkit";
|
|
2
|
+
import { FromSelector, GraphQLTypes } from "./zeus";
|
|
3
|
+
import { ScalarsType } from "@deenruv/admin-types";
|
|
4
|
+
export type FromSelectorWithScalars<SELECTOR, NAME extends keyof GraphQLTypes> = FromSelector<SELECTOR, NAME, ScalarsType>;
|
|
5
|
+
export declare const tables: DeenruvUIPlugin["tables"];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//TODO: Add your custom types so it will infer the types in the plugin
|
|
2
|
+
// declare module '@deenruv/react-ui-devkit' {
|
|
3
|
+
// interface ExternalListLocationSelector {
|
|
4
|
+
// 'products-list-view': FromSelectorWithScalars<GraphQLTypes['Product'], 'Product'>;
|
|
5
|
+
// }
|
|
6
|
+
// }
|
|
7
|
+
export const tables = [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const translationNS: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const translationNS = Symbol("deenruv-examples-plugin").toString();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "ESNext",
|
|
4
|
+
"moduleResolution": "node",
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
"jsx": "react",
|
|
7
|
+
"outDir": "../../dist/plugin-ui",
|
|
8
|
+
"importHelpers": true,
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"noImplicitAny": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"allowSyntheticDefaultImports": true
|
|
16
|
+
},
|
|
17
|
+
"include": ["./**/*.tsx", "./**/*.json", "./**/*.ts"]
|
|
18
|
+
}
|