Skip to content

Commit 54f0a60

Browse files
committed
feat: content tab rewrite clean commit
1 parent 3dd5314 commit 54f0a60

58 files changed

Lines changed: 6049 additions & 3192 deletions

Some content is hidden

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

apps/app-frontend/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,18 @@
2828
"@tauri-apps/plugin-updater": "^2.7.1",
2929
"@tauri-apps/plugin-window-state": "^2.2.2",
3030
"@types/three": "^0.172.0",
31-
"intl-messageformat": "^10.7.7",
32-
"vue-i18n": "^10.0.0",
3331
"@vueuse/core": "^11.1.0",
3432
"dayjs": "^1.11.10",
3533
"floating-vue": "^5.2.2",
34+
"fuse.js": "^6.6.2",
35+
"intl-messageformat": "^10.7.7",
3636
"ofetch": "^1.3.4",
3737
"pinia": "^3.0.0",
3838
"posthog-js": "^1.158.2",
3939
"three": "^0.172.0",
4040
"vite-svg-loader": "^5.1.0",
4141
"vue": "^3.5.13",
42+
"vue-i18n": "^10.0.0",
4243
"vue-multiselect": "3.0.0",
4344
"vue-router": "^4.6.0",
4445
"vue-virtual-scroller": "v2.0.0-beta.8"

apps/app-frontend/src/helpers/cache.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,17 @@ export async function get_search_results_many(ids, cacheBehaviour) {
5151
export async function purge_cache_types(cacheTypes) {
5252
return await invoke('plugin:cache|purge_cache_types', { cacheTypes })
5353
}
54+
55+
/**
56+
* Get versions for a project (without changelogs for fast loading).
57+
* Uses the cache system - versions are cached for 30 minutes.
58+
* @param {string} projectId - The project ID
59+
* @param {string} [cacheBehaviour] - Cache behaviour ('must_revalidate', etc.)
60+
* @returns {Promise<Array|null>} Array of version objects (without changelogs) or null
61+
*/
62+
export async function get_project_versions(projectId, cacheBehaviour) {
63+
return await invoke('plugin:cache|get_project_versions', {
64+
projectId,
65+
cacheBehaviour,
66+
})
67+
}

apps/app-frontend/src/helpers/profile.js

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

apps/app-frontend/src/helpers/types.d.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,10 @@ type LinkedData = {
4949
type InstanceLoader = 'vanilla' | 'forge' | 'fabric' | 'quilt' | 'neoforge'
5050

5151
type ContentFile = {
52-
hash: string
53-
file_name: string
54-
size: number
55-
metadata?: FileMetadata
56-
update_version_id?: string
57-
project_type: ContentFileProjectType
58-
}
59-
60-
type FileMetadata = {
61-
project_id: string
62-
version_id: string
52+
metadata?: {
53+
project_id: string
54+
version_id: string
55+
}
6356
}
6457

6558
type ContentFileProjectType = 'mod' | 'datapack' | 'resourcepack' | 'shaderpack'

0 commit comments

Comments
 (0)