Skip to content

Commit

Permalink
Upgrade inferno v8.0.0 try2 (#790)
Browse files Browse the repository at this point in the history
* Upgrade non-breaking deps.

* Upgrade to Inferno v8. Fixes #731

* Upgrading inferno-i18next-dess
  • Loading branch information
dessalines authored Sep 22, 2022
1 parent cc90ded commit 6320357
Show file tree
Hide file tree
Showing 56 changed files with 2,964 additions and 2,645 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"plugin:inferno/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"emoji-short-name": "^2.0.0",
"express": "~4.18.1",
"i18next": "^21.8.14",
"inferno": "^7.4.11",
"inferno-create-element": "^7.4.11",
"inferno": "^8.0.3",
"inferno-create-element": "^8.0.3",
"inferno-helmet": "^5.2.1",
"inferno-hydrate": "^7.4.11",
"inferno-i18next-dess": "^0.0.1",
"inferno-router": "^7.4.11",
"inferno-server": "^7.4.11",
"inferno-hydrate": "^8.0.3",
"inferno-i18next-dess": "0.0.2",
"inferno-router": "^8.0.3",
"inferno-server": "^8.0.3",
"isomorphic-cookie": "^1.2.4",
"jwt-decode": "^3.1.2",
"markdown-it": "^13.0.1",
Expand All @@ -55,7 +55,7 @@
"@babel/plugin-proposal-decorators": "^7.18.9",
"@babel/plugin-transform-runtime": "^7.18.9",
"@babel/plugin-transform-typescript": "^7.18.8",
"@babel/preset-env": "7.18.9",
"@babel/preset-env": "7.19.1",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.18.9",
"@sniptt/monads": "^0.5.10",
Expand All @@ -74,6 +74,7 @@
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1",
"eslint": "^8.20.0",
"eslint-plugin-inferno": "^7.31.8",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"import-sort-style-module": "^6.0.0",
Expand All @@ -95,7 +96,7 @@
"typescript": "^4.7.4",
"webpack": "5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "4.9.3",
"webpack-dev-server": "4.11.1",
"webpack-node-externals": "^3.0.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class App extends Component<any, any> {
none: <></>,
})}
<Navbar siteRes={siteRes} />
<div class="mt-4 p-0 fl-1">
<div className="mt-4 p-0 fl-1">
<Switch>
{routes.map(({ path, exact, component: C, ...rest }) => (
<Route
Expand Down
20 changes: 10 additions & 10 deletions src/shared/components/app/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ export class Footer extends Component<FooterProps, any> {

render() {
return (
<nav class="container navbar navbar-expand-md navbar-light navbar-bg p-3">
<nav className="container navbar navbar-expand-md navbar-light navbar-bg p-3">
<div className="navbar-collapse">
<ul class="navbar-nav ml-auto">
<ul className="navbar-nav ml-auto">
{this.props.site.version !== VERSION && (
<li class="nav-item">
<span class="nav-link">UI: {VERSION}</span>
<li className="nav-item">
<span className="nav-link">UI: {VERSION}</span>
</li>
)}
<li class="nav-item">
<span class="nav-link">BE: {this.props.site.version}</span>
<li className="nav-item">
<span className="nav-link">BE: {this.props.site.version}</span>
</li>
<li className="nav-item">
<NavLink className="nav-link" to="/modlog">
Expand All @@ -42,23 +42,23 @@ export class Footer extends Component<FooterProps, any> {
</li>
)}
{this.props.site.federated_instances && (
<li class="nav-item">
<li className="nav-item">
<NavLink className="nav-link" to="/instances">
{i18n.t("instances")}
</NavLink>
</li>
)}
<li class="nav-item">
<li className="nav-item">
<a className="nav-link" href={docsUrl}>
{i18n.t("docs")}
</a>
</li>
<li class="nav-item">
<li className="nav-item">
<a className="nav-link" href={repoUrl}>
{i18n.t("code")}
</a>
</li>
<li class="nav-item">
<li className="nav-item">
<a className="nav-link" href={joinLemmyUrl}>
{i18n.t("join_lemmy")}
</a>
Expand Down
Loading

0 comments on commit 6320357

Please sign in to comment.