diff --git a/backend/nebula/version.py b/backend/nebula/version.py index 35504ed1..52b23b00 100644 --- a/backend/nebula/version.py +++ b/backend/nebula/version.py @@ -1 +1 @@ -__version__ = "6.0.5" +__version__ = "6.0.6" diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 33b06c9d..c5f8aa8e 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nebula" -version = "6.0.5" +version = "6.0.6" description = "Open source broadcast automation system" authors = ["Nebula Broadcast "] diff --git a/backend/setup/settings.py b/backend/setup/settings.py index 5ac25069..aa58494c 100644 --- a/backend/setup/settings.py +++ b/backend/setup/settings.py @@ -25,7 +25,7 @@ "views": VIEWS, "meta_types": META_TYPES, "storages": [], - "system": {}, + "settings": {}, "cs": [], } @@ -74,7 +74,7 @@ async def setup_settings(db: DatabaseConnection) -> None: # SetupServerModel settings = SetupServerModel( - system=TEMPLATE.pop("system", {}), + system=TEMPLATE.pop("settings", {}), playout_channels=TEMPLATE.pop("channels", []), folders=TEMPLATE.pop("folders", []), views=TEMPLATE.pop("views", []), diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs new file mode 100644 index 00000000..69d05186 --- /dev/null +++ b/frontend/.eslintrc.cjs @@ -0,0 +1,27 @@ +module.exports = { + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "prettier" + ], + "overrides": [ + ], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "react", + "react-hooks", + "prettier", + "simple-import-sort" + ], + "rules": { + "react/react-in-jsx-scope": "off", + "react/prop-types": "off", + } +} diff --git a/frontend/package.json b/frontend/package.json index a30cdc26..d42c072f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,6 +7,7 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", + "lint": "eslint --fix 'src/**/*.{jsx,ts,tsx}'", "format": "prettier --write ./src" }, "dependencies": { @@ -34,6 +35,12 @@ "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.0.1", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-react": "^7.34.1", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-simple-import-sort": "^12.0.0", "prettier": "^2.7.1", "vite": "^5.1.5" } diff --git a/frontend/src/components/Button.jsx b/frontend/src/components/Button.jsx index 0d009e49..75b01a22 100644 --- a/frontend/src/components/Button.jsx +++ b/frontend/src/components/Button.jsx @@ -89,6 +89,7 @@ const Button = forwardRef( } ) +Button.displayName = 'Button' Button.defaultProps = { iconOnRight: false, //component: 'button', diff --git a/frontend/src/components/Dropdown.jsx b/frontend/src/components/Dropdown.jsx index 86910761..bc887b97 100644 --- a/frontend/src/components/Dropdown.jsx +++ b/frontend/src/components/Dropdown.jsx @@ -64,14 +64,13 @@ const DropdownOption = ({ currentValue, separator, disabled, - active, ...props }) => ( {separator &&
}