Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback migration #7

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
21 changes: 15 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
{
"name": "feedback",
"version": "0.0.1",
"version": "1.0.0",
"description": "Feedback page",
"main": "./out/index.js",
"scripts": {
"webpack": "node ./node_modules/webpack/bin/webpack --config webpack.config.js --progress --profile --color",
"build": "npm run webpack && extractInfo && copyfiles -f src/stylesheets/feedback.scss dist && copyfiles -f issues.json dist"
"build": "npm run webpack && extractInfo && copyfiles -f src/stylesheets/feedback.scss dist && copyfiles -f issues.json dist && copyfiles -f ../../.github/ISSUE_TEMPLATE/bug_report.md dist"
},
"author": "Black Tree Gaming Ltd.",
"license": "GPL-3.0",
"devDependencies": {
"@types/react": "16.0.34",
"@types/react-bootstrap": "^0.0.37",
"@types/react-redux": "^7.1.22",
"@types/react": "^16.9.43",
"@types/react-bootstrap": "^0.32.20",
"@types/react-dom": "^16.9.4",
"@types/react-redux": "^7.1.9",
"@types/react-select": "^1.2.0",
"@types/react-sortable-tree": "^0.3.11",
"@types/react-test-renderer": "^16.9.1",
"@types/react-transition-group": "^4.2.3",
"@types/redux": "3.6.0",
"@types/redux-thunk": "2.1.0",
"@types/tmp": "^0.0.33",
Expand All @@ -22,8 +27,12 @@
"redux": "^4.0.0",
"tmp": "^0.0.31",
"ts-loader": "^9.2.6",
"vortex-api": "Nexus-Mods/vortex-api",
"vortex-api": "Nexus-Mods/vortex-api#api_update_1.8.12",
"webpack": "^5.66.0",
"webpack-cli": "^4.9.1"
},
"dependencies": {
"axios": "^1.7.7",
"obscenity": "^0.4.0"
}
}
14 changes: 8 additions & 6 deletions src/actions/session.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { IFeedbackFile } from '../types/IFeedbackFile';
import { FeedbackTopic, FeedbackType } from '../types/feedbackTypes';
import { ReportTopic, ReportType, IReportFile } from '../types';

import { createAction } from 'redux-act';

export const setFeedbackType = createAction('SET_FEEDBACK_TYPE',
(feedbackType: FeedbackType, feedbackTopic: FeedbackTopic) => ({ feedbackType, feedbackTopic }));

export const setFeedbackTitle = createAction('SET_FEEDBACK_TITLE',
(feedbackTitle: string) => feedbackTitle);

Expand All @@ -16,9 +12,15 @@ export const setFeedbackHash = createAction('SET_FEEDBACK_HASH',
(hash: string) => hash);

export const addFeedbackFile = createAction('ADD_FEEDBACK_FILE',
(feedbackFile: IFeedbackFile) => ({ feedbackFile }));
(feedbackFile: IReportFile) => ({ feedbackFile }));

export const removeFeedbackFile = createAction('REMOVE_FEEDBACK_FILE',
(feedbackFileId: string) => ({ feedbackFileId }));

export const clearFeedbackFiles = createAction('CLEAR_FEEDBACK_FILES');

export const setFeedbackMutable = createAction('SET_FEEDBACK_MUTABLE',
(mutable: boolean) => mutable);

export const setFeedbackArchiveFilePath = createAction('SET_FEEDBACK_ARCHIVE_PATH',
(filePath: string) => filePath);
Loading