Skip to content

Commit fb64063

Browse files
authored
Move functions to C/C++
1 parent 1d5efee commit fb64063

91 files changed

Lines changed: 4924 additions & 1022 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
node_modules
2-
dist
31
target
4-
/vcpkg
2+
/vcpkg
3+
4+
# Local
5+
.DS_Store
6+
*.local
7+
*.log*
8+
9+
# Dist
10+
node_modules
11+
/dist/
12+
13+
# IDE
14+
.vscode/*
15+
!.vscode/extensions.json
16+
.idea

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
Welcome to **Game Maps**, an interactive tool for gamers to explore detailed maps powered by [Map Genie](https://mapgenie.io), with ads removed and pro features like unlimited save locations unlocked. I’m LongHT, a developer currently seeking new job opportunities, and I built this app for **Windows** as a passion project to showcase my skills—contributions welcome to expand it to other platforms!
44

5+
## Tech Stack and Why
6+
- Tauri Framework: A cross-platform framework written in Rust, enabling lightweight and secure desktop applications.
7+
- SolidJS: Chosen for its reactive programming model, which I enjoy (inspired by ReactiveX).
8+
- C/C++: I’m more familiar with it than Rust, and it has fewer restrictions, such as Rust’s borrow checker rules.
9+
- Catch2: A testing library for C/C++, used for writing unit tests.
10+
- cURL: My favorite HTTP client library for its reliability and versatility.
11+
- LevelDB: A simple, high-performance key-value database.
12+
- yaLanTingLibs: A collection of C++20 libraries; I specifically used struct_json for JSON handling.
13+
514
## Features
615

716
- **Interactive Maps**: Integrates with [Map Genie](https://mapgenie.io) for fan-made, detailed game maps.

biome.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"vcs": {
7+
"enabled": true,
8+
"clientKind": "git",
9+
"useIgnoreFile": true
10+
},
11+
"formatter": {
12+
"indentStyle": "space"
13+
},
14+
"javascript": {
15+
"formatter": {
16+
"quoteStyle": "single"
17+
}
18+
},
19+
"css": {
20+
"parser": {
21+
"cssModules": true
22+
}
23+
},
24+
"linter": {
25+
"enabled": true,
26+
"rules": {
27+
"recommended": true
28+
}
29+
}
30+
}

bun.lockb

55.9 KB
Binary file not shown.

index.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
11
{
2-
"name": "game-maps",
3-
"version": "0.1.0",
4-
"description": "",
2+
"name": "game-maps-fe",
3+
"version": "0.3.0",
4+
"private": true,
55
"type": "module",
66
"scripts": {
7-
"start": "vite",
8-
"dev": "vite",
9-
"build": "vite build",
10-
"serve": "vite preview",
11-
"tauri": "tauri"
7+
"build": "rsbuild build",
8+
"check": "biome check --write",
9+
"dev": "rsbuild dev --port 3000",
10+
"format": "biome format --write",
11+
"preview": "rsbuild preview --port 3000",
12+
"tauri": "tauri",
13+
"dev:rsdoctor": "cross-env RSDOCTOR=true rsbuild dev",
14+
"build:rsdoctor": "cross-env RSDOCTOR=true rsbuild build",
15+
"dev:profile": "cross-env RSPACK_PROFILE=ALL rsbuild dev",
16+
"build:profile": "cross-env RSPACK_PROFILE=ALL rsbuild build"
1217
},
13-
"license": "MIT",
1418
"dependencies": {
19+
"@master/css": "^2.0.0-rc.53",
20+
"@master/css-runtime": "^2.0.0-rc.53",
1521
"@tauri-apps/api": "^2",
1622
"@tauri-apps/plugin-opener": "^2",
17-
"solid-js": "^1.9.3"
23+
"solid-js": "^1.9.5"
1824
},
1925
"devDependencies": {
20-
"typescript": "~5.6.2",
21-
"vite": "^6.0.3",
22-
"biome": "^0.3.3",
23-
"vite-plugin-solid": "^2.11.0",
24-
"@tauri-apps/cli": "^2"
26+
"@biomejs/biome": "^1.9.4",
27+
"@rsbuild/core": "^1.2.16",
28+
"@rsbuild/plugin-babel": "^1.0.4",
29+
"@rsbuild/plugin-sass": "^1.2.2",
30+
"@rsbuild/plugin-solid": "^1.0.5",
31+
"@rsdoctor/rspack-plugin": "^1.0.0",
32+
"@rsdoctor/webpack-plugin": "^1.0.0",
33+
"@tauri-apps/cli": "^2",
34+
"cross-env": "^7.0.3",
35+
"typescript": "^5.8.2"
2536
}
2637
}

public/tauri.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

rsbuild.config.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { defineConfig } from '@rsbuild/core'
2+
import { pluginBabel } from '@rsbuild/plugin-babel'
3+
import { pluginSolid } from '@rsbuild/plugin-solid'
4+
import { pluginSass } from '@rsbuild/plugin-sass'
5+
import { RsdoctorRspackPlugin } from '@rsdoctor/rspack-plugin'
6+
7+
export default defineConfig({
8+
plugins: [
9+
pluginBabel({
10+
include: /\.(?:jsx|tsx)$/,
11+
}),
12+
pluginSolid(),
13+
pluginSass(),
14+
],
15+
tools: {
16+
rspack: {
17+
plugins: [
18+
process.env.RSDOCTOR === 'true' &&
19+
new RsdoctorRspackPlugin({
20+
// plugin options
21+
}),
22+
],
23+
},
24+
},
25+
performance: {
26+
chunkSplit: {
27+
strategy: 'split-by-experience',
28+
forceSplitting: {
29+
mastercss: /node_modules[\\/]@master/,
30+
solidjs: /node_modules[\\/]solid-js/,
31+
},
32+
},
33+
},
34+
})

src-core/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2020-2023 Tauri Programme within The Commons Conservancy
2+
# SPDX-License-Identifier: Apache-2.0
3+
# SPDX-License-Identifier: MIT
4+
5+
target
6+
gh-pages
7+
.DS_Store
8+
examples/test_video.mp4
9+
.vscode/
10+
.idea/

0 commit comments

Comments
 (0)