Skip to content

Commit

Permalink
fix(deps): update bod monorepo to v5.21.4 (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi authored Nov 20, 2024
1 parent eff06e9 commit df5e90f
Show file tree
Hide file tree
Showing 21 changed files with 1,142 additions and 735 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@babel/plugin-transform-object-rest-spread": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.9",
"@dg-scripts/eslint-config": "^5.21.3",
"@dg-scripts/stylelint-config": "^5.21.3",
"@dg-scripts/eslint-config": "^5.21.4",
"@dg-scripts/stylelint-config": "^5.21.4",
"autoprefixer": "^10.4.20",
"babel-loader": "^9.2.1",
"clean-webpack-plugin": "^4.0.0",
Expand Down
1,780 changes: 1,107 additions & 673 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React, { Component } from 'react'
import { Col, FloatButton, Layout, Row, Tooltip } from 'antd'
import { GithubOutlined } from '@ant-design/icons'
import { Responsive } from './components'
import { Filter, Result, SearchBar, StatisticsBar } from './containers'
import { Layout } from 'antd'
import { Component } from 'react'
import './index.css'

/* eslint-disable no-unused-vars -- used in JSX */
/* eslint-disable unused-imports/no-unused-vars -- used in JSX */
const { Header, Content, Sider } = Layout
/* eslint-enable no-unused-vars -- reopen */
/* eslint-enable unused-imports/no-unused-vars -- reopen */

export default class App extends Component {
constructor(props) {
super(props)
Expand Down
2 changes: 1 addition & 1 deletion src/actions/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ActionTypes from '../constants'
import { fetchDblpPapers, fetchPaperCitations } from '../api'
import * as ActionTypes from '../constants'

function makeActionCreator(type, ...argNames) {
return (...args) => {
Expand Down
2 changes: 1 addition & 1 deletion src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function fetchDblpPapers(keyword, venues) {
}

export async function fetchPaperCitations(papers) {
let paperCitations = Array(papers.length).fill(0)
let paperCitations = Array.from({ length: papers.length }).fill(0)

try {
const paperIdsResponse = await Promise.all(
Expand Down
3 changes: 0 additions & 3 deletions src/components/ListResult.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import React from 'react'
import { List } from 'antd'

function ListResult({ isLoading, dataSource }) {
return (
<List
Expand Down
2 changes: 1 addition & 1 deletion src/components/Responsive.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from 'react'
import { Component } from 'react'

// const onlyMobile = { minWidth: 320, maxWidth: 767 };
// const onlyTablet = { minWidth: 768, maxWidth: 991 };
Expand Down
3 changes: 0 additions & 3 deletions src/components/StatisticsModal.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import React from 'react'
import { Alert, Empty, List } from 'antd'

import { getStatisticsData } from '../api'

function StatisticsModal({ error, isLoading, items, venues, year }) {
Expand Down
3 changes: 0 additions & 3 deletions src/components/TableResult.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import React from 'react'
import { Table } from 'antd'

function TableResult({ isLoading, dataSource }) {
const columns = [
{
Expand Down
5 changes: 1 addition & 4 deletions src/components/VenuesFilter.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import React from 'react'
import { Checkbox, Col, Divider, Row } from 'antd'

import { VENUES_LIST, getVenueTitle } from '../api'
import { getVenueTitle, VENUES_LIST } from '../api'

function Filter({
venues,
Expand Down
3 changes: 0 additions & 3 deletions src/components/YearFilter.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import React from 'react'
import { Divider, InputNumber } from 'antd'

function YearFilter({ year, onYearChange }) {
return (
<>
Expand Down
16 changes: 8 additions & 8 deletions src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import Responsive from './Responsive'
import YearFilter from './YearFilter'
import VenuesFilter from './VenuesFilter'
import ListResult from './ListResult'
import TableResult from './TableResult'
import Responsive from './Responsive'
import StatisticsModal from './StatisticsModal'
import TableResult from './TableResult'
import VenuesFilter from './VenuesFilter'
import YearFilter from './YearFilter'

export {
Responsive,
YearFilter,
VenuesFilter,
ListResult,
TableResult,
Responsive,
StatisticsModal,
TableResult,
VenuesFilter,
YearFilter,
}
7 changes: 2 additions & 5 deletions src/containers/Filter.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react'
import { connect } from 'react-redux'
import { Menu } from 'antd'
import { ClockCircleOutlined, EllipsisOutlined } from '@ant-design/icons'

import { VenuesFilter, YearFilter } from '../components'
import * as Actions from '../actions'

import { VENUES_LIST } from '../api'
import * as Actions from '../actions'

class FilterComponent extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -54,7 +51,7 @@ class FilterComponent extends React.Component {
<ClockCircleOutlined />
<span>Year</span>
</Menu.Item>
{[...Array(9).keys()].map(number => (
{[...Array.from({ length: 9 }).keys()].map(number => (
<Menu.Item key={number + 2}>
<EllipsisOutlined />
<span>{`Venue ${number + 1}`}</span>
Expand Down
4 changes: 0 additions & 4 deletions src/containers/Result.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import React from 'react'
import { connect } from 'react-redux'
import { Alert } from 'antd'

import { ListResult, Responsive, TableResult } from '../components'

import { getFilteredData } from '../api'

Expand Down
7 changes: 5 additions & 2 deletions src/containers/SearchBar.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react'
import { connect } from 'react-redux'
import { Input } from 'antd'
import { connect } from 'react-redux'

import * as Actions from '../actions'

/* eslint-disable no-unused-vars -- used in JSX */
/* eslint-disable unused-imports/no-unused-vars -- used in JSX */
const { Search } = Input
/* eslint-enable no-unused-vars -- reopen */
/* eslint-enable unused-imports/no-unused-vars -- reopen */

function SearchBarComponent({ fetchData, style }) {
const onSearch = value => value && fetchData(value)
Expand Down
5 changes: 1 addition & 4 deletions src/containers/StatisticsBar.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React, { Component } from 'react'
import { Component } from 'react'
import { connect } from 'react-redux'
import { Button, Modal } from 'antd'

import { StatisticsModal } from '../components'

class StatisticsBarComponent extends Component {
constructor(props) {
Expand Down
6 changes: 3 additions & 3 deletions src/containers/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SearchBar from './SearchBar'
import StatisticsBar from './StatisticsBar'
import Filter from './Filter'
import Result from './Result'
import SearchBar from './SearchBar'
import StatisticsBar from './StatisticsBar'

export { SearchBar, StatisticsBar, Filter, Result }
export { Filter, Result, SearchBar, StatisticsBar }
3 changes: 1 addition & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
--color-warning: #f59f00;
--color-danger: #f03e3e;
--color-info: #1c7ed6;
--font-stack: 'Raleway', 'HelveticaNeue', 'Helvetica Neue', 'Helvetica',
'Open Sans', arial, sans-serif, serif;
--font-stack: 'Raleway', 'Helvetica', 'Open Sans', arial, sans-serif, serif;
}

body {
Expand Down
5 changes: 1 addition & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<title>Awesome DBLP Search</title>
<style>
Expand Down
3 changes: 0 additions & 3 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React from 'react'
import { createRoot } from 'react-dom/client'
import { Provider } from 'react-redux'

import App from './App'
import configureStore from './store'

const store = configureStore()
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { combineReducers } from 'redux'
import * as ActionTypes from '../constants'
import { DEFAULT_VENUES_LIST } from '../api'
import * as ActionTypes from '../constants'

function createReducer(initialState, handlers) {
return (state = initialState, action) => {
Expand Down

0 comments on commit df5e90f

Please sign in to comment.