forked from frollic-app/frollic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
204 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": ["@babel/preset-env", "@babel/preset-react"], | ||
"plugins": ["@babel/plugin-proposal-class-properties"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
import React from 'react'; | ||
|
||
const App = () => ( | ||
<div> | ||
|
||
</div> | ||
); | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
import * as types from '../constants/actionTypes'; | ||
|
||
export const mockAction = () => { | ||
// type: types.ACTION, | ||
// payload:, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
import * as actions from '../actions/actions'; | ||
|
||
const mapStateToProps = (state) => { | ||
|
||
}; | ||
|
||
const mapDispatchToProps = (dispatch) => { | ||
// mockAction: () => { | ||
// dispatch(actions.mockAction()); | ||
// } | ||
}; | ||
|
||
const Sidebar = (props) => ( | ||
<div> | ||
|
||
</div> | ||
); | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(Sidebar); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
|
||
// export const ACTION = 'ACTION'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { render } from 'react-dom'; | ||
import { Provider } from 'react-redux'; | ||
import App from './App.jsx'; | ||
import store from './store'; | ||
import style from './style.scss'; | ||
|
||
ReactDOM.render( | ||
<App />, | ||
render( | ||
<Provider store={store}> | ||
<App /> | ||
</Provider>, | ||
document.getElementById('root') | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
import { combineReducers } from 'redux'; | ||
|
||
import mainReducer from './mainReducer'; | ||
|
||
const reducers = combineReducers({ | ||
search: mainReducer, | ||
}); | ||
|
||
export default reducers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
import * as types from '../constants/actionTypes'; | ||
|
||
const initialState = { | ||
|
||
}; | ||
|
||
const mainReducer = (state = initialState, action) => { | ||
switch (action.types) { | ||
// case ACTION: | ||
// return { | ||
// ...state, | ||
//} | ||
default: | ||
return state; | ||
} | ||
}; | ||
|
||
export default mainReducer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
import { applyMiddleware, createStore } from 'redux'; | ||
import thunk from 'redux-thunk'; | ||
import reducers from './reducers/index'; | ||
|
||
const store = createStore( | ||
reducers, | ||
applyMiddleware(thunk) | ||
); | ||
|
||
export default store; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,56 @@ | ||
|
||
{ | ||
"name": "access", | ||
"version": "1.0.0", | ||
"description": "An app to help plan accessible events", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "cross-env NODE_ENV=production node server/server.js", | ||
"build": "cross-env NODE_ENV=production webpack", | ||
"dev": "concurrently \"cross-env NODE_ENV=development nodemon server/server.js\" \"cross-env NODE_ENV=development webpack serve --open\"", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Star-Nosed/Moles.git" | ||
}, | ||
"keywords": [ | ||
"accessibility", | ||
"social", | ||
"entertainment" | ||
], | ||
"author": "Aram Paparian, Katrina Henderson, Wirapa May Boonyasurat, Megan Nadkarni", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/Star-Nosed/Moles/issues" | ||
}, | ||
"homepage": "https://github.com/Star-Nosed/Moles#readme", | ||
"dependencies": { | ||
"axios": "^0.25.0", | ||
"css-loader": "^6.5.1", | ||
"express": "^4.17.2", | ||
"html-webpack-plugin": "^5.5.0", | ||
"nodemon": "^2.0.15", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-redux": "^7.2.6", | ||
"react-router-dom": "^6.2.1", | ||
"redux": "^4.1.2", | ||
"redux-devtools-extension": "^2.13.9", | ||
"redux-thunk": "^2.4.1", | ||
"scss-loader": "^0.0.1", | ||
"style-loader": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.16.12", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-react": "^7.16.7", | ||
"babel-loader": "^8.2.3", | ||
"concurrently": "^7.0.0", | ||
"cross-env": "^7.0.3", | ||
"sass": "^1.49.0", | ||
"sass-loader": "^12.4.0", | ||
"webpack": "^5.67.0", | ||
"webpack-cli": "^4.9.2", | ||
"webpack-dev-server": "^4.7.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
|
||
module.exports = controller; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
const express = require('express'); | ||
const controller = require('server/controller.js'); | ||
const router = express.Router(); | ||
|
||
|
||
//code here | ||
|
||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
const path = require('path'); | ||
const express = require('express'); | ||
|
||
const app = express(); | ||
const port = precess.env.PORT || 3000; | ||
|
||
|
||
|
||
//code here | ||
|
||
module.exports = app.listen(port, () => console.log(`Listening on port ${port}`)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,47 @@ | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
|
||
module.exports = { | ||
entry:[path.join(__dirname, 'client', 'index.js'), path.join(__dirname, 'client', 'style.scss')], | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
publicPath: '/', | ||
filename: 'bundle.js', | ||
}, | ||
mode: process.env.NODE_ENV, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.jsx?/, | ||
exclude: /node_modules/, | ||
use: { | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['@babel/preset-env', '@babel/preset-react'], | ||
}, | ||
} | ||
}, | ||
{ | ||
test: /.(css|scss)$/, | ||
use: ['style-loader', 'css-loader', 'sass-loader'] | ||
}, | ||
{ | ||
test: /\.(png|jp(e*)g|svg|gif)$/, | ||
use: ['file-loader'], | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
title: 'Development', | ||
template: path.join(__dirname, 'client', 'index.html'), | ||
}) | ||
], | ||
devServer: { | ||
static: { | ||
publicPath: '/', | ||
directory: path.resolve(__dirname, 'dist'), | ||
}, | ||
} | ||
} |