mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 11:51:36 +02:00
mkdir apps/web/scripts
mv scripts/{cleanup.sh,ci_package.sh,copy-res.ts,deploy.py,package.sh} apps/web/scripts
And a couple of gitignore tweaks
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
432 lines
6.3 KiB
Plaintext
432 lines
6.3 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`Favicon should clear a badge if called with a zero value 1`] = `
|
|
[
|
|
{
|
|
"props": {
|
|
"height": 144,
|
|
"width": 144,
|
|
"x": 0,
|
|
"y": 0,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "clearRect",
|
|
},
|
|
{
|
|
"props": {
|
|
"dHeight": 144,
|
|
"dWidth": 144,
|
|
"dx": 0,
|
|
"dy": 0,
|
|
"img": <img
|
|
height="144"
|
|
width="144"
|
|
/>,
|
|
"sHeight": 144,
|
|
"sWidth": 144,
|
|
"sx": 0,
|
|
"sy": 0,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "drawImage",
|
|
},
|
|
{
|
|
"props": {
|
|
"fillRule": "nonzero",
|
|
"path": [
|
|
{
|
|
"props": {},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "beginPath",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 72.72,
|
|
"y": 57.6,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "moveTo",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 100.79999999999998,
|
|
"y": 57.6,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "lineTo",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 143.99999999999997,
|
|
"y": 100.80000000000001,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "lineTo",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 44.64,
|
|
"y": 144,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "lineTo",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 1.4400000000000048,
|
|
"y": 100.8,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "lineTo",
|
|
},
|
|
],
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "fill",
|
|
},
|
|
{
|
|
"props": {
|
|
"path": [
|
|
{
|
|
"props": {},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "beginPath",
|
|
},
|
|
],
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "stroke",
|
|
},
|
|
{
|
|
"props": {
|
|
"maxWidth": null,
|
|
"text": "123",
|
|
"x": 72,
|
|
"y": 131,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "fillText",
|
|
},
|
|
{
|
|
"props": {
|
|
"height": 144,
|
|
"width": 144,
|
|
"x": 0,
|
|
"y": 0,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "clearRect",
|
|
},
|
|
{
|
|
"props": {
|
|
"dHeight": 144,
|
|
"dWidth": 144,
|
|
"dx": 0,
|
|
"dy": 0,
|
|
"img": <img
|
|
height="144"
|
|
width="144"
|
|
/>,
|
|
"sHeight": 144,
|
|
"sWidth": 144,
|
|
"sx": 0,
|
|
"sy": 0,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "drawImage",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`Favicon should draw a badge if called with a non-zero value 1`] = `
|
|
[
|
|
{
|
|
"props": {
|
|
"height": 144,
|
|
"width": 144,
|
|
"x": 0,
|
|
"y": 0,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "clearRect",
|
|
},
|
|
{
|
|
"props": {
|
|
"dHeight": 144,
|
|
"dWidth": 144,
|
|
"dx": 0,
|
|
"dy": 0,
|
|
"img": <img
|
|
height="144"
|
|
width="144"
|
|
/>,
|
|
"sHeight": 144,
|
|
"sWidth": 144,
|
|
"sx": 0,
|
|
"sy": 0,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "drawImage",
|
|
},
|
|
{
|
|
"props": {
|
|
"fillRule": "nonzero",
|
|
"path": [
|
|
{
|
|
"props": {},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "beginPath",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 72.72,
|
|
"y": 57.6,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "moveTo",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 100.79999999999998,
|
|
"y": 57.6,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "lineTo",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 143.99999999999997,
|
|
"y": 100.80000000000001,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "lineTo",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 44.64,
|
|
"y": 144,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "lineTo",
|
|
},
|
|
{
|
|
"props": {
|
|
"x": 1.4400000000000048,
|
|
"y": 100.8,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "lineTo",
|
|
},
|
|
],
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "fill",
|
|
},
|
|
{
|
|
"props": {
|
|
"path": [
|
|
{
|
|
"props": {},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "beginPath",
|
|
},
|
|
],
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "stroke",
|
|
},
|
|
{
|
|
"props": {
|
|
"maxWidth": null,
|
|
"text": "123",
|
|
"x": 72,
|
|
"y": 131,
|
|
},
|
|
"transform": [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "fillText",
|
|
},
|
|
]
|
|
`;
|