Skip to content

Commit

Permalink
Refactor: Rewrite of app and map loading.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
phazingazrael committed Jan 21, 2024
1 parent 25fdd4b commit 748f751
Show file tree
Hide file tree
Showing 136 changed files with 8,906 additions and 45,156 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,20 @@ dist
.yarn/install-state.gz
.pnp.*

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.better-commits.json
.eslintrc.cjs


# Misc
dist-ssr
*.local
23 changes: 23 additions & 0 deletions .gitmessage
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Title: Summary, imperative, start upper case, don't end with a period
# No more than 50 chars. #### 50 chars is here: #

# Remember blank line between title and body.

# Body: Explain *what* and *why* (not *how*). Include task ID (Jira issue).
# Wrap at 72 chars. ################################## which is here: #


# At the end: Include Co-authored-by for all contributors.
# Include at least one empty line before it. Format:
# Co-authored-by: name <[email protected]>
#
# How to Write a Git Commit Message:
# https://chris.beams.io/posts/git-commit/
#
# 1. Separate subject from body with a blank line
# 2. Limit the subject line to 50 characters
# 3. Capitalize the subject line
# 4. Do not end the subject line with a period
# 5. Use the imperative mood in the subject line
# 6. Wrap the body at 72 characters
# 7. Use the body to explain what and why vs. how
440 changes: 0 additions & 440 deletions CREDITS.md

This file was deleted.

11 changes: 11 additions & 0 deletions electron.vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from "electron-vite";
import react from '@vitejs/plugin-react';

export default defineConfig({
publicDir: false,
main: {},
preload: {},
renderer: {
plugins: [react()]
}
});
45 changes: 0 additions & 45 deletions forge.config.js

This file was deleted.

Loading

0 comments on commit 748f751

Please sign in to comment.