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

UHF-6668 Add listing events in React #365

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions helfi_features/helfi_events/assets/js/main.f247add9.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion helfi_features/helfi_events/helfi_events.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
events_list:
version: 1.x
js:
assets/js/eventList.js: {}
assets/js/main.f247add9.js: {}
dependencies:
- core/drupalSettings
- core/jquery
Expand Down
3 changes: 3 additions & 0 deletions helfi_features/helfi_events/js/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "react-app"
}
28 changes: 28 additions & 0 deletions helfi_features/helfi_events/js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

# Ignore build folders
build/
dist/

# Ignore IDE folders
.idea/*
.vscode/*

# Ignore OSX generated files
.DS_Store
._*

!*.gitkeep
!*.keepme

# Ignore .env
.env

# Ignore node_modules
node_modules


npm-debug.log*
yarn-debug.log*
yarn-error.log*

coverage
1 change: 1 addition & 0 deletions helfi_features/helfi_events/js/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.15.1
9 changes: 9 additions & 0 deletions helfi_features/helfi_events/js/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
trailingComma: "es5"
tabWidth: 2
semi: true
singleQuote: true
jsxSingleQuote: true
printWidth: 120
importOrder: ["^components/(.*)$", "^[./]" ]
importOrderSeparation: true
importOrderSortSpecifiers: true
19 changes: 19 additions & 0 deletions helfi_features/helfi_events/js/config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const webpack = require('webpack');
module.exports = function override(config) {
const fallback = config.resolve.fallback || {};

Object.assign(fallback, {
path: require.resolve('path-browserify'),
});

config.resolve.fallback = fallback;

config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],
}),
]);

return config;
};
Loading