Skip to content

Commit

Permalink
Add React 18 support (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpota authored Dec 11, 2022
1 parent a0abea2 commit db72177
Show file tree
Hide file tree
Showing 9 changed files with 675 additions and 687 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/shpota/goxygen

go 1.18
go 1.19
686 changes: 340 additions & 346 deletions static/generated.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/mongo.server/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module project-name

go 1.18
go 1.19

require go.mongodb.org/mongo-driver v1.9.0

Expand Down
2 changes: 1 addition & 1 deletion templates/mysql.server/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module project-name

go 1.18
go 1.19

require github.com/go-sql-driver/mysql v1.6.0
2 changes: 1 addition & 1 deletion templates/postgres.server/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module project-name

go 1.18
go 1.19

require github.com/lib/pq v1.10.4
14 changes: 7 additions & 7 deletions templates/react.webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "~0.21.1",
"react": "~17.0.2",
"react-dom": "~17.0.2",
"react-scripts": "~4.0.3"
"axios": "~1.2.1",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"react-scripts": "~5.0.1"
},
"devDependencies": {
"@testing-library/jest-dom": "~5.11.10",
"@testing-library/react": "~11.2.6",
"@testing-library/user-event": "~13.1.5"
"@testing-library/jest-dom": "~5.16.5",
"@testing-library/react": "~13.4.0",
"@testing-library/user-event": "~14.4.3"
},
"scripts": {
"start": "react-scripts start",
Expand Down
4 changes: 2 additions & 2 deletions templates/react.webapp/src/App.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import './App.css';
import logo from './logo.svg';
import Logo from './Logo';
import {Tech} from "./tech/Tech";

export function App() {
return (
<div className="app">
<h2 className="title">project-name</h2>
<div className="logo"><img src={logo} height="150px" alt="logo"/></div>
<div className="logo"><Logo/></div>
<div>
This project is generated with <b><a
href="https://github.com/shpota/goxygen">goxygen</a></b>.
Expand Down
322 changes: 322 additions & 0 deletions templates/react.webapp/src/Logo.js

Large diffs are not rendered by default.

328 changes: 0 additions & 328 deletions templates/react.webapp/src/logo.svg

This file was deleted.

0 comments on commit db72177

Please sign in to comment.