diff --git a/Surge365.MassEmailReact.Server/Controllers/AuthenticationController.cs b/Surge365.MassEmailReact.Server/Controllers/AuthenticationController.cs new file mode 100644 index 0000000..4640e1c --- /dev/null +++ b/Surge365.MassEmailReact.Server/Controllers/AuthenticationController.cs @@ -0,0 +1,16 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; + +namespace Surge365.MassEmailReact.Server.Controllers +{ + [Route("api/[controller]")] + [ApiController] + public class AuthencticationController : ControllerBase + { + [HttpPost] + public bool Authenticate(string username, string password) + { + return false; + } + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..396aff7 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "MassEmailReact", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/surge365.massemailreact.client/eslint.config.js b/surge365.massemailreact.client/eslint.config.js index 092408a..34c8040 100644 --- a/surge365.massemailreact.client/eslint.config.js +++ b/surge365.massemailreact.client/eslint.config.js @@ -6,23 +6,26 @@ import tseslint from 'typescript-eslint' export default tseslint.config( { ignores: ['dist'] }, - { - extends: [js.configs.recommended, ...tseslint.configs.recommended], - files: ['**/*.{ts,tsx}'], - languageOptions: { - ecmaVersion: 2020, - globals: globals.browser, - }, - plugins: { - 'react-hooks': reactHooks, - 'react-refresh': reactRefresh, - }, - rules: { - ...reactHooks.configs.recommended.rules, - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, - }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ['**/*.{ts,tsx}'], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + 'react-hooks': reactHooks, + 'react-refresh': reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + "@typescript-eslint/no-explicit-any": "warn", // Changes error to warning + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + "no-unused-vars": "warn", // Changes error to warning for unused variables + "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }], // Warns instead of error + }, + } ) diff --git a/surge365.massemailreact.client/index.html b/surge365.massemailreact.client/index.html index e4b78ea..f93a2b1 100644 --- a/surge365.massemailreact.client/index.html +++ b/surge365.massemailreact.client/index.html @@ -4,10 +4,10 @@ -