文件操作 - actions.js
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/DonorDashboards/resources/js/app/store/actions.js
编辑文件内容
export const addTab = (tab) => { return { type: 'ADD_TAB', payload: { tab, }, }; }; export const setProfile = (profile) => { return { type: 'SET_PROFILE', payload: { profile, }, }; }; export const setApplicationError = (error) => { return { type: 'SET_APPLICATION_ERROR', payload: { error, }, }; }; export const setError = (error) => { console.log('set application error!!', error); return { type: 'SET_ERROR', payload: { error, }, }; }; export const setStates = (states) => { return { type: 'SET_STATES', payload: { states, }, }; }; export const setFetchingStates = (fetchingStates) => { return { type: 'SET_FETCHING_STATES', payload: { fetchingStates, }, }; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件