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

🔀♻️⚡️ rewrite api-store #2921

Merged
merged 74 commits into from
Mar 10, 2024
Merged

🔀♻️⚡️ rewrite api-store #2921

merged 74 commits into from
Mar 10, 2024

Conversation

jxn-30
Copy link
Member

@jxn-30 jxn-30 commented Feb 27, 2024

What kind of update does this PR provide? Please check

  • new translations / updated translations / translation fixes
  • a new feature
  • a new module
  • a bugfix for an existing feature / module
  • improvement of style or user experience
  • other: Performance update, code refactoring

What is included in your update?

  • a complete rewrite of the api-store
    • This migrates the store from an Options-Store to a Setup-Store (different form of writing)
    • This improves performance as heavy computed properties are now fake-computed (such as vehicle and building lookup dictionaries)
    • This also improves maintainability
  • A TypedWorker class to create sharedWorker with Typescript support
  • A LSSMStorage class to improve Storing values of LSSM in a new, organized, indexedDB
    • currently, it is only used to cache missionTypes but will be used to store settings etc. in there later

Additional notes
Migration done, few bugfixes are still to be done, soon ready for review

# Conflicts:
#	src/modules/extendedCallList/assets/sort/mission.ts
@jxn-30 jxn-30 added the enhancement New feature or request label Feb 27, 2024
@jxn-30 jxn-30 self-assigned this Feb 27, 2024
@jxn-30
Copy link
Member Author

jxn-30 commented Feb 27, 2024

@LSS-Manager deploy

@jxn-30
Copy link
Member Author

jxn-30 commented Mar 5, 2024

@LSS-Manager deploy

Copy link

github-actions bot commented Mar 5, 2024

👍️ I have successfully deployed a build 4.7.12+20240305.2136 on pr2921!

@jxn-30
Copy link
Member Author

jxn-30 commented Mar 6, 2024

@LSS-Manager deploy

@jxn-30 jxn-30 marked this pull request as ready for review March 6, 2024 10:14
@jxn-30 jxn-30 requested a review from Cr4zyc4k3 March 6, 2024 10:14
Copy link

github-actions bot commented Mar 6, 2024

👍️ I have successfully deployed a build 4.7.12+20240306.1115 on pr2921!

@jxn-30
Copy link
Member Author

jxn-30 commented Mar 6, 2024

@LSS-Manager deploy

Copy link

github-actions bot commented Mar 6, 2024

👍️ I have successfully deployed a build 4.7.12+20240306.2215 on pr2921!

@jxn-30
Copy link
Member Author

jxn-30 commented Mar 7, 2024

@LSS-Manager deploy

Copy link

github-actions bot commented Mar 7, 2024

👍️ I have successfully deployed a build 4.7.12+20240307.1142 on pr2921!

src/workers/stores/api/missionTypes.worker.ts Show resolved Hide resolved
typings/Ingame.d.ts Show resolved Hide resolved
typings/modules/LSSMAQL/LSSMAQL.d.ts Show resolved Hide resolved
src/workers/stores/api/vehicles.worker.ts Show resolved Hide resolved
src/workers/stores/api/fetchApi.worker.ts Outdated Show resolved Hide resolved
src/mainpageCore.ts Show resolved Hide resolved
@jxn-30
Copy link
Member Author

jxn-30 commented Mar 8, 2024

@LSS-Manager deploy

Copy link

github-actions bot commented Mar 8, 2024

👍️ I have successfully deployed a build 4.7.12+20240308.2146 on pr2921!

@jxn-30 jxn-30 requested a review from Cr4zyc4k3 March 9, 2024 22:43
@jxn-30 jxn-30 merged commit 1f700af into dev Mar 10, 2024
8 checks passed
@jxn-30 jxn-30 deleted the rewrite-apistore branch March 10, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants