mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[fix] Run linter
This commit is contained in:
@ -2,7 +2,6 @@ import React, {useState, useEffect, forwardRef} from 'react';
|
|||||||
import styles from './Button.module.scss';
|
import styles from './Button.module.scss';
|
||||||
import Spinner from '../../assets/Spinner.svg';
|
import Spinner from '../../assets/Spinner.svg';
|
||||||
import Success from '../../assets/Success.svg';
|
import Success from '../../assets/Success.svg';
|
||||||
import Fail from '../../assets/Fail.svg';
|
|
||||||
|
|
||||||
const Button = forwardRef(({onClick, children = 'Save Changes', disabled = false, disableResult = false, errorText = 'FAILED', className}, ref) => {
|
const Button = forwardRef(({onClick, children = 'Save Changes', disabled = false, disableResult = false, errorText = 'FAILED', className}, ref) => {
|
||||||
const [state, setState] = useState('idle'); // 'idle', 'loading', 'success', 'error'
|
const [state, setState] = useState('idle'); // 'idle', 'loading', 'success', 'error'
|
||||||
|
|||||||
@ -306,141 +306,141 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notification": {
|
"notification": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"rules": {
|
"rules": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"licenseExpirationWarning": {
|
"licenseExpirationWarning": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"enable": {"type": "boolean", "x-scope": ["admin", "tenant"]},
|
"enable": {"type": "boolean", "x-scope": ["admin", "tenant"]},
|
||||||
"policies": {
|
"policies": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"repeatInterval": {
|
"repeatInterval": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(\\d+[smhd]|\\d+\\s*(second|minute|hour|day)s?)$",
|
"pattern": "^(\\d+[smhd]|\\d+\\s*(second|minute|hour|day)s?)$",
|
||||||
"description": "Repeat interval in time format (e.g., '1d', '1h', '30m')",
|
"description": "Repeat interval in time format (e.g., '1d', '1h', '30m')",
|
||||||
"x-scope": ["admin", "tenant"]
|
"x-scope": ["admin", "tenant"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"licenseExpirationError": {
|
"licenseExpirationError": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"enable": {"type": "boolean", "x-scope": ["admin", "tenant"]},
|
"enable": {"type": "boolean", "x-scope": ["admin", "tenant"]},
|
||||||
"policies": {
|
"policies": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"repeatInterval": {
|
"repeatInterval": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(\\d+[smhd]|\\d+\\s*(second|minute|hour|day)s?)$",
|
"pattern": "^(\\d+[smhd]|\\d+\\s*(second|minute|hour|day)s?)$",
|
||||||
"description": "Repeat interval in time format (e.g., '1d', '1h', '30m')",
|
"description": "Repeat interval in time format (e.g., '1d', '1h', '30m')",
|
||||||
"x-scope": ["admin", "tenant"]
|
"x-scope": ["admin", "tenant"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"licenseLimitEdit": {
|
"licenseLimitEdit": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"enable": {"type": "boolean", "x-scope": ["admin", "tenant"]},
|
"enable": {"type": "boolean", "x-scope": ["admin", "tenant"]},
|
||||||
"policies": {
|
"policies": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"repeatInterval": {
|
"repeatInterval": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(\\d+[smhd]|\\d+\\s*(second|minute|hour|day)s?)$",
|
"pattern": "^(\\d+[smhd]|\\d+\\s*(second|minute|hour|day)s?)$",
|
||||||
"description": "Repeat interval in time format (e.g., '1d', '1h', '30m')",
|
"description": "Repeat interval in time format (e.g., '1d', '1h', '30m')",
|
||||||
"x-scope": ["admin", "tenant"]
|
"x-scope": ["admin", "tenant"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"licenseLimitLiveViewer": {
|
"licenseLimitLiveViewer": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"enable": {"type": "boolean", "x-scope": ["admin", "tenant"]},
|
"enable": {"type": "boolean", "x-scope": ["admin", "tenant"]},
|
||||||
"policies": {
|
"policies": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"repeatInterval": {
|
"repeatInterval": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(\\d+[smhd]|\\d+\\s*(second|minute|hour|day)s?)$",
|
"pattern": "^(\\d+[smhd]|\\d+\\s*(second|minute|hour|day)s?)$",
|
||||||
"description": "Repeat interval in time format (e.g., '1d', '1h', '30m')",
|
"description": "Repeat interval in time format (e.g., '1d', '1h', '30m')",
|
||||||
"x-scope": ["admin", "tenant"]
|
"x-scope": ["admin", "tenant"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"adminPanel": {
|
"adminPanel": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"passwordValidation": {
|
"passwordValidation": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"x-scope": ["admin", "tenant"],
|
"x-scope": ["admin", "tenant"],
|
||||||
"description": "Password validation requirements using custom format types",
|
"description": "Password validation requirements using custom format types",
|
||||||
"properties": {
|
"properties": {
|
||||||
"minLength": {
|
"minLength": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "passlength",
|
"format": "passlength",
|
||||||
"description": "be at least 8 characters long",
|
"description": "be at least 8 characters long",
|
||||||
"x-scope": ["admin", "tenant"]
|
"x-scope": ["admin", "tenant"]
|
||||||
},
|
},
|
||||||
"hasDigit": {
|
"hasDigit": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "passdigit",
|
"format": "passdigit",
|
||||||
"description": "contain at least one digit",
|
"description": "contain at least one digit",
|
||||||
"x-scope": ["admin", "tenant"]
|
"x-scope": ["admin", "tenant"]
|
||||||
},
|
},
|
||||||
"hasUppercase": {
|
"hasUppercase": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "passupper",
|
"format": "passupper",
|
||||||
"description": "contain at least one uppercase letter",
|
"description": "contain at least one uppercase letter",
|
||||||
"x-scope": ["admin", "tenant"]
|
"x-scope": ["admin", "tenant"]
|
||||||
},
|
},
|
||||||
"hasSpecialChar": {
|
"hasSpecialChar": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "passspecial",
|
"format": "passspecial",
|
||||||
"description": "contain at least one special character",
|
"description": "contain at least one special character",
|
||||||
"x-scope": ["admin", "tenant"]
|
"x-scope": ["admin", "tenant"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user