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

Customizable Tables #401

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
84a1244
Configurable Columns Prototype
Nov 26, 2021
83ed7e8
get Player Column
Nov 26, 2021
4bfd88a
Unified Column Configuration
Nov 29, 2021
4d73f00
Merge branch 'zengm-games:master' into master
Vac1911 Nov 29, 2021
53433f1
Better Column Labels
Nov 29, 2021
a6e6b26
Merge remote-tracking branch 'origin/master'
Nov 29, 2021
47c8f66
sortable columns prototype
Nov 30, 2021
cb81b1f
Merge branch 'zengm-games:master' into master
Vac1911 Dec 1, 2021
6b82538
Proper column sorting
Dec 1, 2021
bad4720
associative row data
Dec 1, 2021
ed233c7
Added Legacy Table Compatability
Dec 2, 2021
2217416
converted some legacy tables
Dec 2, 2021
4f61e53
updated more tables
Dec 3, 2021
5463199
converted tables
Dec 6, 2021
8d2fe2e
merge
Dec 6, 2021
9cffa89
merge
Dec 6, 2021
6f4226c
Fixed Boxscores
Dec 6, 2021
eee31cf
Converted All Remaining tables to legacy
Dec 6, 2021
c4a9295
fixed negotiate button bug and added options for stat rounding
Dec 7, 2021
9c940ab
player stats customizable by statType
Dec 7, 2021
07ff3b2
tested and linted
Dec 8, 2021
f323586
reverted development change
Dec 8, 2021
0bf1cae
Categorized Column Configuration
Dec 8, 2021
75ed206
Added support for challenge modes
Dec 8, 2021
e94bb92
bug fix
Dec 8, 2021
a1e151d
Increased Clickable Area In Columns Modal
Dec 8, 2021
dbcacde
playerBios separate config from playerRatings
Dec 8, 2021
770b0bd
refactored ColTemp interface
Dec 8, 2021
a6af182
updating attrs
Dec 8, 2021
4f61197
updated render method for revised ColTemp interface
Dec 8, 2021
9266cc6
offer bug fix
Dec 8, 2021
49b3939
offer bug fix
Dec 8, 2021
8877f6e
trade bug fix
Dec 9, 2021
0d725bd
renamed prop to "Rename to enableCustomizeColumns" for clarity
Dec 9, 2021
3164b09
Removed redundent cols
Dec 9, 2021
039069d
cleaner table update than refreshing page
Dec 10, 2021
aec23e3
removed debug
Dec 10, 2021
65b58c9
updating on stat and rating views
Dec 10, 2021
4a829a5
fixed boxscore sortbys
Dec 13, 2021
f8fe613
fixed trading block updating
Dec 13, 2021
020f5ac
fixed player bios
Dec 17, 2021
b62ed36
removed reference to react-bootstrap for css components
Dec 17, 2021
e411fff
removed refs
Dec 17, 2021
4ecbc61
fixed package.json
Dec 17, 2021
206bf00
Merge branch 'master' into master
Vac1911 Dec 17, 2021
1bf28af
Combined column files and fixed injury table
Jan 3, 2022
fa3e2c6
Updated Draft
Jan 3, 2022
fb535f7
Merge Upstream
Jan 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"prefer-const": ["error", {
"destructuring": "all"
}],
"radix": ["error", "as-needed"],
"react/display-name": "off",
"react/jsx-key": "off",
"react/no-unescaped-entities": "off",
Expand Down
218 changes: 67 additions & 151 deletions TODO

Large diffs are not rendered by default.

62 changes: 2 additions & 60 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,61 +1,3 @@
// Need this rather than .babelrc to run on d3 inside node_modules (see also rollup-plugin-babel config)
const babelConfig = require("./tools/lib/babelConfig");

module.exports = api => {
// Make sure config gets updated when process.env.LEGACY changes
api.cache.invalidate(() =>
JSON.stringify([process.env.LEGACY, process.env.NODE_ENV]),
);

const plugins = [
require("./tools/babel-plugin-sport-functions"),
[
"transform-react-remove-prop-types",
{
removeImport: true,
},
],
];

if (process.env.LEGACY) {
plugins.push(
[
"@babel/plugin-proposal-optional-chaining",
{
loose: true,
},
], // Chrome 80, Safari 13.1
[
"@babel/plugin-proposal-nullish-coalescing-operator",
{
loose: true,
},
], // Chrome 80, Safari 13.1
"@babel/plugin-proposal-object-rest-spread", // Chrome 60, Safari 11.1
"@babel/plugin-transform-for-of", // Chrome 51
"@babel/plugin-transform-destructuring", // Chrome 51
"@babel/plugin-transform-exponentiation-operator", // Chrome 52
"@babel/plugin-transform-async-to-generator", // Chrome 55
);
}

return {
presets: [
[
"@babel/preset-react",
{
runtime: "automatic",

// Results in a ton of warnings from Rollup during watch
// development: process.env.NODE_ENV !== "production",
},
],
"@babel/preset-typescript",
],
plugins,
env: {
test: {
plugins: ["@babel/plugin-transform-modules-commonjs"],
},
},
};
};
module.exports = babelConfig(false);
3 changes: 3 additions & 0 deletions babel.config.legacy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const babelConfig = require("./tools/lib/babelConfig");

module.exports = babelConfig(true);
Loading