Skip to content

Commit

Permalink
πŸ”€ #1194 from LSS-Manager/dev
Browse files Browse the repository at this point in the history
πŸ”€πŸ”– 4.5.0
  • Loading branch information
jxn-30 authored Jan 21, 2022
2 parents b8c003c + 1eb7062 commit 5a33f92
Show file tree
Hide file tree
Showing 117 changed files with 2,243 additions and 854 deletions.
2 changes: 1 addition & 1 deletion build/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BRANCH=$(git branch --show-current)
if [ "$CHANGED_FILES" -gt 1 ] || [ "$BRANCH" = "master" ]
then
# Get current Build Version
PACKAGE_VERSION=$(grep 'version' "$WORK_DIR"/package.json | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[:space:]')
PACKAGE_VERSION=$(grep '"version":' "$WORK_DIR"/package.json | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[:space:]')
echo "Pushback Version $PACKAGE_VERSION on $BRANCH"
# Prepare SSH-Connection to Github
ssh -o StrictHostKeyChecking=no -T $GIT_URL
Expand Down
58 changes: 42 additions & 16 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,37 +132,63 @@ const processModules = async (shortVersion: string) => {
): Promise<{ name: string; description?: string }> =>
new Promise(resolve => {
const moduleI18nPath = path.join(MODULES_PATH, module, 'i18n');
const langRootPath = path.join(moduleI18nPath, `${lang}.root`);
const usRootPath = path.join(moduleI18nPath, 'en_US.root');
(fs.existsSync(`${langRootPath}.json`)
const langRootPath = path.join(moduleI18nPath, `${lang}.root.js`);
const langJsonPath = `${langRootPath}on`;
const langJsonExists = fs.existsSync(langJsonPath);
(langJsonExists
? new Promise(resolve =>
resolve(
JSON.parse(
fs.readFileSync(`${langRootPath}.json`).toString()
)
JSON.parse(fs.readFileSync(langJsonPath).toString())
)
)
: import(langRootPath)
)
.then(({ name, description }) => resolve({ name, description }))
.catch(() =>
(fs.existsSync(`${usRootPath}.json`)
.then(translation =>
resolve(
langJsonExists
? {
name: translation.name,
description: translation.description,
}
: {
name: translation.default.name,
description: translation.default.description,
}
)
)
.catch(() => {
const usRootPath = path.join(
moduleI18nPath,
'en_US.root.js'
);
const usJsonPath = `${usRootPath}on`;
const usJsonExists = fs.existsSync(usJsonPath);
(usJsonExists
? new Promise(resolve =>
resolve(
JSON.parse(
fs
.readFileSync(`${usRootPath}.json`)
.toString()
fs.readFileSync(usJsonPath).toString()
)
)
)
: import(usRootPath)
)
.then(({ name, description }) =>
resolve({ name, description })
.then(translation =>
resolve(
usJsonExists
? {
name: translation.name,
description: translation.description,
}
: {
name: translation.default.name,
description:
translation.default.description,
}
)
)
.catch(() => resolve({ name: module }))
);
.catch(() => resolve({ name: module }));
});
});

const getTargetPath = (module: string, lang: string) =>
Expand Down
3 changes: 3 additions & 0 deletions docs/de_DE/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ Wenn Tampermonkey in deinem Browser erfolgreich installiert wurde, kannst du ent

### Schritt 3: Aktivieren
Der LSSM-Indikator ist das LSSM-Logo oder (falls in den [Einstellungen](settings.md#label-statt-icon-im-menu) entsprechend eingestellt) ein grΓΌn hinterlegter Text `LSSM V.4`.

Ein Klick auf den Indikator ΓΆffnet ein kleines MenΓΌ, ΓΌber das du in den [Appstore](appstore.md) und in die [Einstellungen](settings.md) gelangen kannst. In den Einstellungen tauchen nur die Module auf, die du aktiviert hast, du musst also erst den AppStore besuchen!

Solltest du dich im Leitstellenspiel befinden, aber diesen Indikator nicht in der oberen rechten Ecke sehen, so klicke auf das Tampermonkey-Icon in deinem Browser und ΓΌberprΓΌfe, ob der Schalter fΓΌr das LSS-Manager Script auf `an` gestellt ist.

Bei Problemen kannst du dich jederzeit an den [Support](support.md) wenden.
10 changes: 6 additions & 4 deletions docs/de_DE/apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Im folgenden haben wir dir eine kleine Auflistung der Features der V.3 aufgelist
GrundsΓ€tzlich mΓΆchten wir mit der Zeit alle Funktionen der V.3 in die V.4 integrieren!

| Feature V.3 | Modul V.4 | Einstellung V.4 | Γ„nderungen / Hinweise |
| :------------------------------------: | :--------------------------------------------: | :--------------------------: | :----------------------------------------------------------: |
| :------------------------------------: |:----------------------------------------------:| :--------------------------: | :----------------------------------------------------------: |
| AAO-KlickzΓ€hler | [Erweitertes Alarmfenster][extendedCallWindow] | AAO-KlickzΓ€hler | |
| AAO-Suche | | | |
| Alarmieren, Teilen & Posten | | | |
| Alarmieren, Teilen & Posten | [ShareAlliancePost][sap] | | |
| Center-Map | [Verbesserte Karte][extendedMap] | | Hier ist aktuell nur der statische Modus eingebaut. Der dynamische folgt nocht. |
| Clock | [Uhr][clock] | Uhr als Overlay anzeigen | |
| Creditserweiterung | [Creditserweiterung][creditsextension] | | |
Expand All @@ -61,7 +61,7 @@ GrundsΓ€tzlich mΓΆchten wir mit der Zeit alle Funktionen der V.3 in die V.4 inte
| Layout 02 | | | Wir mΓΆchten ein Modul fΓΌr viele Layouts anbieten, die man auch selbst anpassen kann. |
| Layout 03 | | | Wir mΓΆchten ein Modul fΓΌr viele Layouts anbieten, die man auch selbst anpassen kann. |
| Layout 04 | | | Wir mΓΆchten ein Modul fΓΌr viele Layouts anbieten, die man auch selbst anpassen kann. |
| LS-Heatmap | | | |
| LS-Heatmap | [Heatmap][heatmap] | | |
| Markiert EventeinsΓ€tze | [Erweiterte Einsatzliste][extendedCallList] | Saisonale EinsΓ€tze markieren | |
| Maßgeschneiderte Tabs | [Erweitertes Alarmfenster][extendedCallWindow] | Eigene Fahrzeugkategorien | |
| Meldedatum fΓΌr EinsΓ€tze | [Erweitertes Alarmfenster][extendedCallWindow] | Generierungszeitpunkt | |
Expand Down Expand Up @@ -99,4 +99,6 @@ GrundsΓ€tzlich mΓΆchten wir mit der Zeit alle Funktionen der V.3 in die V.4 inte
[extendedCallList]: modules/extendedCallList.md
[hotkeys]: modules/hotkeys.md
[extendedMap]: modules/extendedMap.md
[creditsextension]: modules/creditsextension.md
[creditsextension]: modules/creditsextension.md
[heatmap]: modules/heatmap.md
[sap]: modules/shareAlliancePost.md
3 changes: 3 additions & 0 deletions docs/fr_FR/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ Si Tampermonkey a été installé avec succès dans votre navigateur, vous pouve

### Γ‰tape 3 : Activation
L'indicateur LSSM est un texte surlignΓ© en vert `LSSM V.4`.

Un clic sur l'indicateur ouvre un petit menu qui vous permet d'accéder à l'[Appstore](appstore.md) et aux [paramètres](settings.md). Dans les paramètres, seuls les modules que vous avez activés apparaissent, vous devez donc d'abord visiter l'AppStore !

Si vous Γͺtes dans operateur112 mais qur vous ne voyez pas l'indicateur dans le coin supΓ©rieur droit, cliquez sur l'icΓ΄ne tampermonkey dans votre navigateur et vΓ©rifiez si le commutateur pour le script LSS-Manager est rΓ©glΓ© sur `on`.

Si vous avez des problèmes, vous pouvez toujours contacter le [Support](support.md).
8 changes: 5 additions & 3 deletions docs/fr_FR/apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ En principe, nous souhaitons intΓ©grer Γ  terme toutes les fonctionnalitΓ©s de l
| :------------------------------------: | :--------------------------------------------------------: | :-------------------------------: | :----------------------------------------------------------: |
| Alarme RΓ©gulations Compteur d'alarmes | [FenΓͺtre de dΓ©ploiement Γ©tendue][extendedCallWindow] | Compteur de rΓ©gulations | |
| Recherche AAO | | | |
| Alerter, Partager & Poster | | | |
| Alerter, Partager & Poster | [Partager le message Γ  l'Alliance][sap] | | |
| Plan du centre | [AmΓ©liorez la carte][extendedMap] | | Actuellement, seul le mode statique est intΓ©grΓ© ici. Le mode dynamique suivra. |
| Horloge | [Horloge][clock] | Afficher l'horloge en overlay | |
| L'expansion du crΓ©dit | [Extension de crΓ©dit][creditsextension] | | |
Expand All @@ -60,7 +60,7 @@ En principe, nous souhaitons intΓ©grer Γ  terme toutes les fonctionnalitΓ©s de l
| Layout 02 | | | Nous souhaitons proposer un module pour de nombreuses mises en page, que l'on peut Γ©galement adapter soi-mΓͺme. |
| Layout 03 | | | Nous souhaitons proposer un module pour de nombreuses mises en page, que l'on peut Γ©galement adapter soi-mΓͺme. |
| Layout 04 | | | Nous souhaitons proposer un module pour de nombreuses mises en page, que l'on peut Γ©galement adapter soi-mΓͺme. |
| LS-Heatmap | | | |
| LS-Heatmap | [Carte thermique][heatmap] | | |
| Événements marqués | [Liste de mission étendue][extendedCallList] | Marquer les missions saisonnières | |
| Date de la mission | [FenΓͺtre de dΓ©ploiement Γ©tendue][extendedCallWindow] | Heure de gΓ©nΓ©ration de mission | |
| MissionOut | [Liste de mission Γ©tendue][extendedCallList] | RΓ©duire les missions | L'affichage du nombre de patients se trouve dans le mΓͺme module sous le rΓ©glage `Patients actuels`. |
Expand Down Expand Up @@ -96,4 +96,6 @@ En principe, nous souhaitons intΓ©grer Γ  terme toutes les fonctionnalitΓ©s de l
[extendedCallList]: modules/extendedCallList.md
[hotkeys]: modules/hotkeys.md
[extendedMap]: modules/extendedMap.md
[creditsextension]: modules/creditsextension.md
[creditsextension]: modules/creditsextension.md
[heatmap]: modules/heatmap.md
[sap]: modules/shareAlliancePost.md
2 changes: 1 addition & 1 deletion docs/fr_FR/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ Ou dans le <discord-channel channel="uptime"/> sur notre <discord/>.
[support]: support.md
[error]: error_report.md
[suggestions]: suggestions.md
[settings]: settings.md
[settings]: settings.md
1 change: 0 additions & 1 deletion docs/fr_FR/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Une petite aide, qui devrait vous aider Γ  crΓ©er une demande d'assistance.
::: tip Conseil
Si vous avez besoin d'aide, décrivez votre problème aussi précisément que possible. Plus vous décrirez votre problème de manière précise et détaillée, plus nous pourrons vous aider rapidement et efficacement.
:::

::: warning Attention
Veuillez noter que nous ne prenons pas officiellement en charge les anciens navigateurs, les navigateurs mobiles et Microsoft Edge ou Internet Explorer. La prise en charge de ces navigateurs n'est donc ni garantie ni probable.
:::
Expand Down
35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.4.6+20220121.1009",
"version": "4.5.0+20220121.1302",
"license": "CC-BY-NC-SA-4.0",
"scripts": {
"predev": "ts-node scripts predev",
Expand All @@ -20,7 +20,7 @@
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/vue-fontawesome": "^2.0.6",
"axios": "^0.24.0",
"axios": "^0.25.0",
"broadcast-channel": "^4.9.0",
"he": "^1.2.0",
"highcharts": "^9.3.2",
Expand Down Expand Up @@ -49,46 +49,46 @@
"@primer/octicons": "^16.2.0",
"@types/he": "^1.1.2",
"@types/i18n-js": "^3.8.2",
"@types/jquery": "^3.5.11",
"@types/jquery": "^3.5.13",
"@types/leaflet": "^1.7.8",
"@types/lodash": "^4.14.178",
"@types/node": "^16.11.19",
"@types/pdfmake": "^0.1.19",
"@types/node": "^16.11.21",
"@types/pdfmake": "^0.1.20",
"@types/qrcode": "^1.4.2",
"@types/semver": "^7.3.9",
"@types/showdown": "^1.9.4",
"@types/speed-measure-webpack-plugin": "^1.3.4",
"@types/ua-parser-js": "^0.7.36",
"@types/vue-select": "^3.16.0",
"@types/webpack-env": "^1.16.3",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"@vuepress/plugin-active-header-links": "^1.9.5",
"@vuepress/plugin-back-to-top": "^1.9.5",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"@vuepress/plugin-active-header-links": "^1.9.7",
"@vuepress/plugin-back-to-top": "^1.9.7",
"all-contributors-cli": "^6.20.0",
"cache-loader": "^4.1.0",
"copy-dir": "^1.3.0",
"css-loader": "^5.2.7",
"eslint": "^8.6.0",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-formatter-table": "^7.32.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.2.0",
"eslint-plugin-vue": "^8.3.0",
"html-loader": "^3.1.0",
"moment-timezone": "^0.5.34",
"prettier": "^2.5.1",
"sass": "^1.47.0",
"sass": "^1.49.0",
"sass-loader": "^10.2.0",
"speed-measure-webpack-plugin": "^1.5.0",
"string-replace-loader": "^2.3.0",
"terser": "^5.10.0",
"ts-loader": "^8.3.0",
"ts-node": "^10.4.0",
"typescript": "^4.5.4",
"typescript": "^4.5.5",
"url-loader": "^4.1.1",
"vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.14",
"vuepress": "^1.9.5",
"vuepress": "^1.9.7",
"vuepress-plugin-code-copy": "^1.0.6",
"vuepress-plugin-redirect": "^1.2.5",
"vuepress-plugin-smooth-scroll": "^0.0.10",
Expand All @@ -98,8 +98,9 @@
"webpack-loader-append-prepend": "^1.0.2"
},
"engines": {
"node": ">=14.8.0",
"npm": ">=6.14.6"
"node": "^16.13.2",
"npm": ">=8.1.0",
"yarn": "^1.22.17"
},
"prettier": {
"arrowParens": "avoid",
Expand All @@ -112,6 +113,6 @@
"userscript": {
"name": "LSS-Manager V.4",
"author": "Aisaka | Sanni | Jan (jxn_30) | Ron31",
"description": "Das Tool fΓΌr das LSS in der Version 4"
"description": "A Script-Collection for Leitstellenspiel, Missionchief and its other language versions."
}
}
19 changes: 12 additions & 7 deletions src/LSSM-Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -558,15 +558,20 @@ export default Vue.extend<
</script>

<style lang="sass">
#main_navbar
.navbar-right
display: flex
align-items: center
@media (min-width: 768px)
#main_navbar
.navbar-right
display: flex
align-items: center
.navbar-form,
.navbar-form input
margin: 0
.navbar-form,
.navbar-form input
margin: 0
@media (max-width: 768px)
#main_navbar #map_adress_search_form
margin-right: 0
</style>

<style scoped lang="sass">
#main_navbar .navbar-right #lssmv4-indicator
#lssmv4-indicator_menu
Expand Down
Loading

0 comments on commit 5a33f92

Please sign in to comment.