runlify 0.0.669 → 0.0.670
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.
|
@@ -7,11 +7,11 @@ var utils_1 = require("../../../utils");
|
|
|
7
7
|
var pluralize_1 = require("pluralize");
|
|
8
8
|
var uiResourcesPageTmpl = function (_a) {
|
|
9
9
|
var entities = _a.entities, _b = _a.options, options = _b === void 0 ? types_1.defaultBootstrapEntityOptions : _b;
|
|
10
|
-
return "import React, {\n FC,\n} from 'react';\nimport NumberWidget from '../widgets/NumberWidget';\nimport {\n gql,\n} from '@apollo/client';\nimport {useTranslate} from 'react-admin';\nimport Grid from '@mui/material/Grid';\n".concat(options.skipWarningThisIsGenerated
|
|
10
|
+
return "import React, {\n FC,\n} from 'react';\nimport NumberWidget from '../widgets/NumberWidget';\nimport {\n gql,\n} from '@apollo/client';\nimport {Title, useTranslate} from 'react-admin';\nimport Grid from '@mui/material/Grid';\n".concat(options.skipWarningThisIsGenerated
|
|
11
11
|
? ''
|
|
12
|
-
: "\n// ".concat(utils_1.generatedWarning, "\n"), "\nconst ResourcesPage: FC = () => {\n const translate = useTranslate();\n\n return (\n <Grid container>\n").concat(entities.map(function (entity) {
|
|
12
|
+
: "\n// ".concat(utils_1.generatedWarning, "\n"), "\nconst ResourcesPage: FC = () => {\n const translate = useTranslate();\n\n return (\n <Grid container>\n <Title title='app.resources' />\n").concat(entities.map(function (entity) {
|
|
13
13
|
return " <NumberWidget\n request={gql`\n query {\n _all".concat((0, cases_1.pascalPlural)(entity.name), "Meta {\n count\n }\n }\n `}\n resultToValue={result => result?._all").concat((0, cases_1.pascalPlural)(entity.name), "Meta?.count}\n title={translate('").concat((0, pluralize_1.plural)(entity.type), ".").concat(entity.name, ".title.plural')}\n to='/").concat(entity.name, "'\n />");
|
|
14
14
|
}).join("\n"), "\n </Grid>\n );\n};\n\nexport default ResourcesPage;\n");
|
|
15
15
|
};
|
|
16
16
|
exports.uiResourcesPageTmpl = u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