feat: Add ability to configure and test SMTP via UI

This commit is contained in:
Maksim Eltyshev
2025-09-22 20:35:13 +02:00
parent 3a12bb7457
commit c6f4dcdb70
114 changed files with 2161 additions and 301 deletions
+2
View File
@@ -8,9 +8,11 @@ import { combineReducers } from 'redux';
import authenticateForm from './authenticate-form';
import userCreateForm from './user-create-form';
import projectCreateForm from './project-create-form';
import smtpTest from './smtp-test';
export default combineReducers({
authenticateForm,
userCreateForm,
projectCreateForm,
smtpTest,
});
+35
View File
@@ -0,0 +1,35 @@
/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
import ActionTypes from '../../constants/ActionTypes';
const initialState = {
isLoading: false,
logs: null,
error: null,
};
// eslint-disable-next-line default-param-last
export default (state = initialState, { type, payload }) => {
switch (type) {
case ActionTypes.SMTP_CONFIG_TEST:
return {
...state,
isLoading: true,
};
case ActionTypes.SMTP_CONFIG_TEST__SUCCESS:
return {
...initialState,
logs: payload.logs,
};
case ActionTypes.SMTP_CONFIG_TEST__FAILURE:
return {
...initialState,
error: payload.error,
};
default:
return state;
}
};