Skip to content
Snippets Groups Projects
Commit c5b6bc2b authored by CaTasTrOOf's avatar CaTasTrOOf
Browse files

Add gitlab-ci file

parent 4669ef83
No related branches found
No related tags found
1 merge request!14Add gitlab-ci file
...@@ -89,7 +89,3 @@ sw.* ...@@ -89,7 +89,3 @@ sw.*
# Vim swap files # Vim swap files
*.swp *.swp
# Script generated files
*.missing
keysUsed
\ No newline at end of file
stages:
- test
- build
check-i18n-job:
image: ubuntu:20.04
stage: test
script:
- apt update && apt-get -y install jq
- ./utils/findMissingI18nKeys.sh
only:
- merge_requests
build-job:
image: node:16
stage: build
script:
- node --version
- npm --version
- npm install
- npm run build
only:
- merge_requests
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
<img :src="$icon(512)" alt="Accueil" class="logo" /> <img :src="$icon(512)" alt="Accueil" class="logo" />
<div> <div>
<h1 class="h3"> <h1 class="h3">
Wotwizard <small><span class="small">v0.22</span></small> Wotwizard
<small
><span class="small">v{{ $config.clientVersion }}</span></small
>
</h1> </h1>
<small class="text-muted">{{ $t("slogan") }}</small> <small class="text-muted">{{ $t("slogan") }}</small>
</div> </div>
......
import i18n from "./i18n" import i18n from "./i18n"
import webpack from "webpack" import webpack from "webpack"
import pkg from "./package.json"
export default { export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
...@@ -8,6 +9,12 @@ export default { ...@@ -8,6 +9,12 @@ export default {
// Target: https://go.nuxtjs.dev/config-target // Target: https://go.nuxtjs.dev/config-target
target: "static", target: "static",
// Variables that can be accessed by $config
publicRuntimeConfig: {
// Application version from package.json
clientVersion: pkg.version
},
// Global page headers: https://go.nuxtjs.dev/config-head // Global page headers: https://go.nuxtjs.dev/config-head
head: { head: {
title: "wotwizard-ui", title: "wotwizard-ui",
......
{ {
"name": "wotwizard-ui", "name": "wotwizard-ui",
"version": "1.0.0", "version": "0.22.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "nuxt", "dev": "nuxt",
......
...@@ -34,7 +34,7 @@ do ...@@ -34,7 +34,7 @@ do
then then
echo -e "create ${RED}$key${NC} in file ${GREEN}$f${NC}" echo -e "create ${RED}$key${NC} in file ${GREEN}$f${NC}"
value=$(jq -e ".$key" i18n/locales/fr.json) value=$(jq -e ".$key" i18n/locales/fr.json)
if [ "$value" == "null" ] if [ $value = "null" ]
then then
filter=".$key = \"TO_TRANSLATE\"" filter=".$key = \"TO_TRANSLATE\""
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment