Comments (7)
I am currently implementing this feature and have most of the functionality ready for vehicles. Regarding "conditional variables and strings" IMHO the most preferable way would be to use a JS template engine that supports an if-else structure, among other possible features that allow advanced use cases when templating an unit / building name.
Do you have any preferences? Quick research:
- LiquidJS, only one additional dependency, last release December 2023 (Snyk)
- Twing, Twig-compatible, last releasee January 2024 (Snyk)
from lssm-v.4.
I haven't looked at them in detail but on first sight, it looks like I would prever LiquidJS
.
Please keep in mind, that in the end, usage of the Templates should be very easy to use for everyone, plus we should probably add some docs explaining how to use templates (similar to https://docs.lss-manager.de/de_DE/settings.html#moment-js).
I'm not sure if that is already written down somewhere in the chats etc. but to be sure here 2 thoughts for RenameVehicles that are curently in my mind that I would love to be considered:
- I think users would love some kind of "live preview" when creating their template. Maybe one could think of a field where the user can select a vehicle of current "context" and when changing the template, a preview will be auto-updated to show how the new name would look like for this vehicle
- Many Users would probably prefer a GUI to design their templates over a simple text-input (especially non-tech-users). This could be done in a future update after initial release but considering the planned logical possibilities (such as conditionals), I think that could be a larger issue than one may think in the beginning.
from lssm-v.4.
additional note: A way to import v3 aliases into v4 would be very useful.
from lssm-v.4.
additional note: A way to import v3 aliases into v4 would be very useful.
By detecting and importing lssm_LSS_RENAMEFZ_STORAGE
from the local storage or modifying the generic import function?
The generic import function would either need to be modified to delegate the import process to the respective modules or have the migration inline. Former one could be quite complex (and OOS for this feature/PR IMHO), later one would introduce module-specific logic into the core.
Use the local storage could be done as simple Vue setting component inside the module which would allow to recurringly import the v3 renameFz
settings.
from lssm-v.4.
Since between there is a major change between v3 and v4 I won't force this feature.
from lssm-v.4.
Maybe an export function in v3 and a script, which converts the aliases to a readable v4 setting
from lssm-v.4.
Seems like for importing missionKeywords into v4, I already did some stuff but we never released that: https://github.com/LSS-Manager/lss-manager-v3/tree/missionkeywords-to-v4
I don't even know if it would be ready for release or if something's still missing. Also it's likely that it doesn't work anymore due to changes in LSSMs internal API. But maybe one could use that as a base to add an "export to v4" button for renameFz
from lssm-v.4.
Related Issues (20)
- [Feature request]: Sort missions - Additional sort option HOT 1
- [Feature request]: [dev] Build script for windows
- [BUG]: Erweitertes Alarmfenster Verschönerte Ansicht Anzeigeprobleme HOT 2
- [Feature request]: Add building type in settings (Operatore112.it) HOT 3
- [BUG]: Anfahrt von ELW2-Drohne wird bei Anzeige fehlender Fahrzeuge nicht als ELW1 erkannt. HOT 2
- ♻️⚡️ move core to a SharedWorker
- [build] local build supress error message for branches and releasenotes HOT 5
- [docs] evaluate switching to VitePress and rewrite the docs system HOT 3
- 🩹 [extendedCallList] Unmapped event missions HOT 4
- [Feature request]: option to make notes appear in a monospaced font HOT 3
- Harmonize the name for modules/apps/plugins HOT 1
- Auto generated content in docs HOT 3
- Easy local deployment HOT 5
- [BUG]: Tow Truck Missions not showing Crashed Cars HOT 2
- [BUG]: Portuguese server domain is not up to date HOT 11
- [BUG]: Mission Helper stuck on loading HOT 2
- [Feature request]: Move API to Cloudflare Pages HOT 2
- [BUG]: "Benötigte Fahrzeuge verschönern": THW-Einsatzekräfte werden ignoriert HOT 6
- [Refactor] replace `querySelector` with `getElementById` where possible, cache `querySelector` calls where posssible and needed
- [BUG]: THW-Einsatzkräfte funktioniert wieder nicht (vgl. Issue #3024) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lssm-v.4.