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

SquadStrat? #263

Merged
merged 15 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ node_modules/
dist/
public/dist/
config/test-results/
*.Identifier
*.Identifier
src/img/github/desktop_ui_1 - Copy.webp
public/maps/yehorivka/heightmap_backup.webp
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# <img src="https://img.shields.io/badge/-major%20release-b22222?style=for-the-badge"> **36.0.0** *(2025-01-15)*

<img src="https://img.shields.io/badge/-new-green"> **Squad Map Markers:** Right-click on the map to open a context menu that lets you place markers, helping you strategize for future games.

<img src="https://img.shields.io/badge/-new-green"> **Auto-Copy Targets:** Enable this setting to automatically copy the calculations of the most recently placed or moved target to the clipboard, making it easy to share them in-game using Ctrl+V.

<img src="https://img.shields.io/badge/-new-green"> **Auto-Copy Next Flags:** Enable this setting to automatically copy the name of the next flag when clicking a flag in a RAAS/Invasion layer, making it easy to share in-game using Ctrl+V.

<img src="https://img.shields.io/badge/-new-green"> **Display Low & High Angles:** Enable this setting to display both low- and high-angle solutions on the marker for weapons that support both. (Thanks, Matador, for the suggestion. Fix #258)

<img src="https://img.shields.io/badge/-new-green"> **Flags Distance:** In AAS/RAAS/Invasion, a new setting allows you to show or hide the distance between flags.

<img src="https://img.shields.io/badge/-%20improv%20-orange"> HD maps (8k × 8k) are now tiled for better performance and efficiency.

<img src="https://img.shields.io/badge/-%20improv%20-orange"> Added various tooltips to settings.

<img src="https://img.shields.io/badge/-%20improv%20-orange"> Added various animations.

<img src="https://img.shields.io/badge/-%20fix%20-b22"> Fixed Yehorivka heightmaps being twice the size they should be. (Fix #259)

<img src="https://img.shields.io/badge/-%20fix%20-b22"> The heatmap is no longer redrawn each time the layer is changed on the same map.

<img src="https://img.shields.io/badge/-%20fix%20-b22"> Fixed flag numbers being off-center on rectangular flags.

<img src="https://img.shields.io/badge/-%20fix%20-b22"> Fixed seconds being displayed as meters in some languages.



</br></br><!-- CHANGELOG SPLIT MARKER -->


# <img src="https://img.shields.io/badge/-major%20release-b22222?style=for-the-badge"> **35.0.0** *(2025-01-02)*

<img src="https://img.shields.io/badge/-new-green"> **Custom font size:** you can now change the size of the texts appearing on the map to your liking (Fixes [#254](https://github.com/sh4rkman/SquadCalc/issues/254))
Expand Down
24 changes: 9 additions & 15 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ export default async (env) => {
rules: [
{ test: /\.(png|svg|jpg|jpeg|gif|webp)$/i, type: 'asset/resource', },
{ test: /\.(sc|sa|c)ss$/i, use: ['style-loader', 'css-loader', 'sass-loader'],},
{ test: /\.(html)$/,
{
test: /\.(html)$/,
include: path.join(__dirname, ''),
use: {
loader: 'html-loader',
options: {
interpolate: true
}
}
use: { loader: 'html-loader', options: { interpolate: true } }
}
],
},
Expand All @@ -63,6 +59,9 @@ export default async (env) => {
directory: path.join(__dirname, '../public'),
publicPath: '/',
},
watchFiles: {
//paths: ['src/**/*'],
},
},
plugins: [
new Dotenv(),
Expand Down Expand Up @@ -180,14 +179,6 @@ export default async (env) => {
/robots\.txt/, // robots.txt
/\.webp$/,
],
runtimeCaching: [
{
urlPattern: new RegExp(/\/maps\/[^\/]+\/[^\/]+\/[1-5]/),
handler: 'StaleWhileRevalidate',
options: {
cacheName: 'squadcalc-tiles',
},
}],
})
],
performance: {
Expand Down Expand Up @@ -216,6 +207,9 @@ export default async (env) => {
format: {
comments: false,
},
compress: {
pure_funcs: ['console.debug'], // Removes console.debug
},
},
}),
] : [],
Expand Down
Loading
Loading