mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 20:13:31 +03:00
061cb6ec83
* Remove the ability to collpase the top graph This commit removes the ability to collapse the top graph. The graph collapsed whenever `metric` was falsy. I removed all related code to that. Metric now defaults to visitors. We want to add new items to top stats, and this commit will make it easier to change it. Also, there's currently a bug where top stats is randomly collapsing, which should be fixed by this commit. * Refactor graph and top stats loading state The graph loading state shows and hides the graph conditionally depending on whether the data is loaded, loading or refreshing. The current code is a bit difficult to read because its big conditionals. This commit refactors the loading state making it easier to read. This commit also fixes a bug where the graph wasn't fading out when changing metrics. |
||
---|---|---|
.. | ||
css | ||
js | ||
static | ||
.babelrc | ||
.bundlemonrc.json | ||
.eslintrc.json | ||
.prettierignore | ||
.prettierrc.json | ||
.stylelintrc.json | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
tailwind.config.js | ||
webpack.config.js |