projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4ac41c4
)
Better DB sync scripts (vchess --> tournament)
author
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 22 Mar 2021 20:40:07 +0000
(21:40 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 22 Mar 2021 20:40:07 +0000
(21:40 +0100)
TODO
patch
|
blob
|
blame
|
history
client/src/translations/rules/Synochess/en.pug
patch
|
blob
|
blame
|
history
client/src/translations/rules/Synochess/es.pug
patch
|
blob
|
blame
|
history
client/src/translations/rules/Synochess/fr.pug
patch
|
blob
|
blame
|
history
server/routes/users.js
patch
|
blob
|
blame
|
history
diff --git
a/TODO
b/TODO
index
10788bd
..
1ab5046
100644
(file)
--- a/
TODO
+++ b/
TODO
@@
-5,3
+5,7
@@
If new live game starts in background, "new game" notify OK but not first move.
"FreeBoard", re-using a lot of Board logic, but with SVG (empty) board + SVG (empty) reserves.
Will be used for variants with custom non-rectangular board (Hex, at least)
Or, with other board shapes (see greenchess.net for example)
"FreeBoard", re-using a lot of Board logic, but with SVG (empty) board + SVG (empty) reserves.
Will be used for variants with custom non-rectangular board (Hex, at least)
Or, with other board shapes (see greenchess.net for example)
+
+Would be nice to display some better variants names (Pacosako -> Paco-Ŝako etc),
+but the "formatted" name with uppercase + all lower cases would still be required.
+(For example in variants list, or tournament variant field).
diff --git
a/client/src/translations/rules/Synochess/en.pug
b/client/src/translations/rules/Synochess/en.pug
index
5350d69
..
f078aa9
100644
(file)
--- a/
client/src/translations/rules/Synochess/en.pug
+++ b/
client/src/translations/rules/Synochess/en.pug
@@
-29,16
+29,16
@@
h3 Special Rules
ul
li.
ul
li.
- King Faceoff &
m
dash; As in Xiangqi, Kings may not face each other
+ King Faceoff &
n
dash; As in Xiangqi, Kings may not face each other
(on a file or rank).
li.
(on a file or rank).
li.
- Reinforcement Soldiers &
m
dash; Black starts with two soldiers in hand.
+ Reinforcement Soldiers &
n
dash; Black starts with two soldiers in hand.
Instead of moving a piece on the board, the Dynasty player can drop a
soldier onto an open square in rank 5.
Instead of moving a piece on the board, the Dynasty player can drop a
soldier onto an open square in rank 5.
- li Campmate &
m
dash; A king that reaches the final rank wins the game.
+ li Campmate &
n
dash; A king that reaches the final rank wins the game.
li.
li.
- Stalemate &
mdash; As in Xiangqi, stalemates
- and moves repetition
s
are a loss.
+ Stalemate &
ndash; As in Xiangqi, stalemate
+ and moves repetition are a loss.
h3 Dynasty Pieces
h3 Dynasty Pieces
@@
-47,7
+47,7
@@
p.
hand), 2 Cannons, 2 Elephants, and 1 Advisor.
p.
The Chariots are equal to the Rooks and use the same abbreviation (R)
hand), 2 Cannons, 2 Elephants, and 1 Advisor.
p.
The Chariots are equal to the Rooks and use the same abbreviation (R)
- &
m
dash; the difference is purely cosmetic. Similarly, the Kings are the
+ &
n
dash; the difference is purely cosmetic. Similarly, the Kings are the
same, but just appear different.
ul
same, but just appear different.
ul
diff --git
a/client/src/translations/rules/Synochess/es.pug
b/client/src/translations/rules/Synochess/es.pug
index
1f2bdf0
..
bcd4954
100644
(file)
--- a/
client/src/translations/rules/Synochess/es.pug
+++ b/
client/src/translations/rules/Synochess/es.pug
@@
-29,17
+29,17
@@
h3 Reglas especiales
ul
li.
ul
li.
- Rey opuestos &
m
dash; Como en Xiangqi, los reyes no pueden ser
+ Rey opuestos &
n
dash; Como en Xiangqi, los reyes no pueden ser
cara a cara (en una columna o fila).
li.
cara a cara (en una columna o fila).
li.
- Soldados de refuerzo &
m
dash; Las negras comienzan con dos soldados en la
+ Soldados de refuerzo &
n
dash; Las negras comienzan con dos soldados en la
mano. En lugar de jugar un movimiento, pueden dejar caer a un soldado en
una casilla libre de la quinta fila.
li.
mano. En lugar de jugar un movimiento, pueden dejar caer a un soldado en
una casilla libre de la quinta fila.
li.
- "Mate de campo" &
m
dash; Si el rey llega a la última fila, entonces
+ "Mate de campo" &
n
dash; Si el rey llega a la última fila, entonces
el juego está ganado.
li.
el juego está ganado.
li.
- Empate &
m
dash; Como en Xiangqi,
+ Empate &
n
dash; Como en Xiangqi,
el empate y la repetición de jugadas pierden.
h3 Piezas de la dinastía
el empate y la repetición de jugadas pierden.
h3 Piezas de la dinastía
@@
-48,7
+48,7
@@
p.
Cuatro piezas nuevas del lado de la Dinastía: 6 Soldados (2 serán
en paracaídas), 2 Cañones, 2 Elefantes y 1 Asesor.
p.
Cuatro piezas nuevas del lado de la Dinastía: 6 Soldados (2 serán
en paracaídas), 2 Cañones, 2 Elefantes y 1 Asesor.
p.
- Los Carros equivalen a torres y utilizan la misma abreviatura &
m
dash;
+ Los Carros equivalen a torres y utilizan la misma abreviatura &
n
dash;
la diferencia es puramente cosmética. Asimismo, los Reyes son iguales
piezas dibujadas de manera diferente.
la diferencia es puramente cosmética. Asimismo, los Reyes son iguales
piezas dibujadas de manera diferente.
diff --git
a/client/src/translations/rules/Synochess/fr.pug
b/client/src/translations/rules/Synochess/fr.pug
index
7d5692d
..
d559ec6
100644
(file)
--- a/
client/src/translations/rules/Synochess/fr.pug
+++ b/
client/src/translations/rules/Synochess/fr.pug
@@
-29,16
+29,16
@@
h3 Règles spéciales
ul
li.
ul
li.
- Roi en vis-à-vis &
m
dash; Comme au Xiangqi, les Rois ne peuvent pas se
+ Roi en vis-à-vis &
n
dash; Comme au Xiangqi, les Rois ne peuvent pas se
faire face (sur une colonne ou rangée).
li.
faire face (sur une colonne ou rangée).
li.
- Soldats en renfort &
m
dash; Les noirs démarrent avec deux soldats en main.
+ Soldats en renfort &
n
dash; Les noirs démarrent avec deux soldats en main.
Au lieu de jouer un coup, ils peuvent parachuter un soldat sur une case
libre de la 5eme rangée.
li.
Au lieu de jouer un coup, ils peuvent parachuter un soldat sur une case
libre de la 5eme rangée.
li.
- "Mat de camp" &
m
dash; Si le roi atteint la dernière rangée, alors
+ "Mat de camp" &
n
dash; Si le roi atteint la dernière rangée, alors
la partie est gagnée.
la partie est gagnée.
- li Pat &
m
dash; Comme au Xiangqi, le pat et la répétition de coups perdent.
+ li Pat &
n
dash; Comme au Xiangqi, le pat et la répétition de coups perdent.
h3 Pièces de la Dynastie
h3 Pièces de la Dynastie
@@
-46,7
+46,7
@@
p.
Quatre nouvelles pièces du côté de la Dynastie : 6 Soldats (2 seront
parachutés), 2 Canons, 2 Éléphants, et 1 Conseiller.
p.
Quatre nouvelles pièces du côté de la Dynastie : 6 Soldats (2 seront
parachutés), 2 Canons, 2 Éléphants, et 1 Conseiller.
p.
- Les Chariots sont égaux aux tours, et utilisent la même abréviation &
m
dash;
+ Les Chariots sont égaux aux tours, et utilisent la même abréviation &
n
dash;
la différence est purement cosmétique. De même, les Rois sont les mêmes
pièces dessinées différemment.
la différence est purement cosmétique. De même, les Rois sont les mêmes
pièces dessinées différemment.
diff --git
a/server/routes/users.js
b/server/routes/users.js
index
f1554ef
..
b14defb
100644
(file)
--- a/
server/routes/users.js
+++ b/
server/routes/users.js
@@
-51,7
+51,7
@@
router.post('/register', access.unlogged, access.ajax, (req,res) => {
};
setAndSendLoginToken("Welcome to " + params.siteURL, user);
// Update tournament DB (TODO: if error, log it)
};
setAndSendLoginToken("Welcome to " + params.siteURL, user);
// Update tournament DB (TODO: if error, log it)
- exec(params.tourneyPath + "/dbsync/
update_users.py"
);
+ exec(params.tourneyPath + "/dbsync/
insert_user.py " + ret.id
);
res.json({});
}
});
res.json({});
}
});
@@
-105,6
+105,7
@@
router.put('/update', access.logged, access.ajax, (req,res) => {
notify: !!req.body.notify,
};
UserModel.updateSettings(user);
notify: !!req.body.notify,
};
UserModel.updateSettings(user);
+ exec(params.tourneyPath + "/dbsync/update_user.py " + ret.id);
res.json({});
}
});
res.json({});
}
});