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

Vite rewrite - Refactor: Rewrite of app and map loading. #11

Merged
merged 5 commits into from
Jan 21, 2024

Conversation

phazingazrael
Copy link
Owner

Rewrote the app entirely to use Vite as create-react-app is generally regarded as outdated and was experiencing issues in loading speeds.

Rewrote loading section of the script to load .map files exported from Azgaar's Fantasy Map Generator. Code has been borrowed from the official repository with copyright and license included.

  • Future plans to rewrite this section from scratch to not need to use Azgaar's code.
  • Allows user map to load in as background to page (needs tweaking).
  • Better management of data loaded from the .map file than what was originally included

Portions of code:
Azgaar's Fantasy Map Generator https://github.com/Azgaar/Fantasy-Map-Generator

modified:   package.json
modified:   src/main/main.js
modified:   src/renderer/index.html
modified:   src/renderer/src/App.css
modified:   src/renderer/src/App.jsx
new file:   src/renderer/src/assets/css/afmg.css
new file:   src/renderer/src/assets/css/countries.css
modified:   src/renderer/src/assets/css/miscStyles.css
new file:   src/renderer/src/assets/css/shortTags.css
new file:   src/renderer/src/assets/temp.svg
modified:   src/renderer/src/index.css
new file:   src/renderer/src/modules/afmg/biomes.js
new file:   src/renderer/src/modules/afmg/index.js
new file:   src/renderer/src/modules/api/index.js
new file:   src/renderer/src/modules/entries/index.jsx
new file:   src/renderer/src/modules/loadingMap/index.jsx
new file:   src/renderer/src/modules/loadingMap/style.css
modified:   src/renderer/src/modules/mainNav/index.jsx
new file:   src/renderer/src/modules/scaleSvg.jsx
new file:   src/renderer/src/modules/showDialog.jsx
modified:   src/renderer/src/modules/uploadForm/index.jsx
new file:   src/renderer/src/modules/uploadForm/pre-azgaar-index.js
modified:   src/renderer/src/modules/uploadForm/upload.css
new file:   src/renderer/src/modules/utilities/cities.js
renamed:    src/renderer/src/modules/tags/index.js -> src/renderer/src/modules/utilities/tags.js
renamed:    src/renderer/src/modules/tags/tags.json -> src/renderer/src/modules/utilities/tags.json
new file:   src/renderer/src/routes/baseRoutes/cities.jsx
new file:   src/renderer/src/routes/baseRoutes/countries.jsx
new file:   src/renderer/src/routes/baseRoutes/reiligions.jsx
modified:   src/renderer/src/routes/baseRoutes/root.jsx
modified:   src/renderer/src/routes/baseRoutes/settings.jsx
modified:   src/renderer/src/routes/baseRoutes/tags.jsx

Rewrote the app entirely to use Vite as create-react-app is generally regarded as outdated and was experiencing issues in loading speeds.

Rewrote loading section of the script to load .map files exported from Azgaar's Fantasy Map Generator. Code has been borrowed from the official repository with copyright and license included.
- Future plans to rewrite this section from scratch to not need to use Azgaar's code.
- Allows user map to load in as background to page (needs tweaking).
- Better management of data loaded from the .map file than what was originally included

Portions of code:
Azgaar's Fantasy Map Generator <https://github.com/Azgaar/Fantasy-Map-Generator>

	modified:   package.json
	modified:   src/main/main.js
	modified:   src/renderer/index.html
	modified:   src/renderer/src/App.css
	modified:   src/renderer/src/App.jsx
	new file:   src/renderer/src/assets/css/afmg.css
	new file:   src/renderer/src/assets/css/countries.css
	modified:   src/renderer/src/assets/css/miscStyles.css
	new file:   src/renderer/src/assets/css/shortTags.css
	new file:   src/renderer/src/assets/temp.svg
	modified:   src/renderer/src/index.css
	new file:   src/renderer/src/modules/afmg/biomes.js
	new file:   src/renderer/src/modules/afmg/index.js
	new file:   src/renderer/src/modules/api/index.js
	new file:   src/renderer/src/modules/entries/index.jsx
	new file:   src/renderer/src/modules/loadingMap/index.jsx
	new file:   src/renderer/src/modules/loadingMap/style.css
	modified:   src/renderer/src/modules/mainNav/index.jsx
	new file:   src/renderer/src/modules/scaleSvg.jsx
	new file:   src/renderer/src/modules/showDialog.jsx
	modified:   src/renderer/src/modules/uploadForm/index.jsx
	new file:   src/renderer/src/modules/uploadForm/pre-azgaar-index.js
	modified:   src/renderer/src/modules/uploadForm/upload.css
	new file:   src/renderer/src/modules/utilities/cities.js
	renamed:    src/renderer/src/modules/tags/index.js -> src/renderer/src/modules/utilities/tags.js
	renamed:    src/renderer/src/modules/tags/tags.json -> src/renderer/src/modules/utilities/tags.json
	new file:   src/renderer/src/routes/baseRoutes/cities.jsx
	new file:   src/renderer/src/routes/baseRoutes/countries.jsx
	new file:   src/renderer/src/routes/baseRoutes/reiligions.jsx
	modified:   src/renderer/src/routes/baseRoutes/root.jsx
	modified:   src/renderer/src/routes/baseRoutes/settings.jsx
	modified:   src/renderer/src/routes/baseRoutes/tags.jsx
@phazingazrael phazingazrael merged commit 2014aee into main Jan 21, 2024
1 check passed
@phazingazrael phazingazrael deleted the vite-rewrite branch January 21, 2024 00:53
@phazingazrael phazingazrael added the dependencies Pull requests that update a dependency file label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant