From ee8b6eafc113b371852bfca4c12b5abf44942abb Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Tue, 22 Mar 2022 13:22:51 +0300 Subject: [PATCH] Web: Files: deleted useless folders after merge. --- .../panels/SelectFileInput/fileInput.js | 92 ------------------- .../components/panels/SelectFileInput/i18n.js | 35 ------- 2 files changed, 127 deletions(-) delete mode 100644 products/ASC.Files/Client/src/components/panels/SelectFileInput/fileInput.js delete mode 100644 products/ASC.Files/Client/src/components/panels/SelectFileInput/i18n.js diff --git a/products/ASC.Files/Client/src/components/panels/SelectFileInput/fileInput.js b/products/ASC.Files/Client/src/components/panels/SelectFileInput/fileInput.js deleted file mode 100644 index 07c4f576e5..0000000000 --- a/products/ASC.Files/Client/src/components/panels/SelectFileInput/fileInput.js +++ /dev/null @@ -1,92 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; - -import IconButton from "@appserver/components/icon-button"; -import TextInput from "@appserver/components/text-input"; -import StyledFileInput from "@appserver/components/file-input/styled-file-input"; - -const FileInput = ( - { - size, - placeholder, - isDisabled, - scale, - isError, - hasWarning, - id, - onClickInput, - name, - className, - fileName, - }, - ...rest -) => { - return ( - - - -
- -
-
- ); -}; -FileInput.propTypes = { - /** Accepts css style */ - style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), - /** Placeholder text for the input */ - placeholder: PropTypes.string, - /** Supported size of the input fields */ - size: PropTypes.oneOf(["base", "middle", "big", "huge", "large"]), - /** Indicates the input field has scale */ - scale: PropTypes.bool, - /** Accepts class */ - className: PropTypes.string, - /** Indicates the input field has an error */ - hasError: PropTypes.bool, - /** Indicates the input field has a warning */ - hasWarning: PropTypes.bool, - /** Used as HTML `id` property */ - id: PropTypes.string, - /** Indicates that the field cannot be used (e.g not authorised, or changes not saved) */ - isDisabled: PropTypes.bool, - /** Used as HTML `name` property */ - name: PropTypes.string, -}; - -FileInput.defaultProps = { - size: "base", - scale: false, - hasWarning: false, - hasError: false, - isDisabled: false, - baseFolder: "", -}; - -export default FileInput; diff --git a/products/ASC.Files/Client/src/components/panels/SelectFileInput/i18n.js b/products/ASC.Files/Client/src/components/panels/SelectFileInput/i18n.js deleted file mode 100644 index c3b96ee19a..0000000000 --- a/products/ASC.Files/Client/src/components/panels/SelectFileInput/i18n.js +++ /dev/null @@ -1,35 +0,0 @@ -import i18n from "i18next"; -import Backend from "i18next-http-backend"; -import { LANGUAGE } from "@appserver/common/constants"; -import config from "../../../../package.json"; -import { loadLanguagePath } from "@appserver/common/utils"; - -const newInstance = i18n.createInstance(); - -newInstance.use(Backend).init({ - lng: localStorage.getItem(LANGUAGE) || "en", - fallbackLng: "en", - load: "all", - //debug: true, - - interpolation: { - escapeValue: false, // not needed for react as it escapes by default - format: function (value, format) { - if (format === "lowercase") return value.toLowerCase(); - return value; - }, - }, - - backend: { - loadPath: loadLanguagePath(config.homepage, "SelectFile"), - }, - - ns: ["SelectFile", "Common"], - defaultNS: "SelectFile", - - react: { - useSuspense: false, - }, -}); - -export default newInstance;