Skip to content

Commit e0ed380

Browse files
committed
add version 0.2.2 and endpoint
1 parent 7d4a79b commit e0ed380

9 files changed

+86
-1
lines changed

dist/0.2.2/13d94dcf73693e0ae878.png

13.1 KB
Loading

dist/0.2.2/51a50daf62a2b39c4bc1.png

12.7 KB
Loading

dist/0.2.2/a135222d3c7ccb868b6b.png

9.62 KB
Loading

dist/0.2.2/b4fa89c8be94e7a65ff2.png

44.9 KB
Loading

dist/0.2.2/ca3f3d84832beae69189.png

11.6 KB
Loading

dist/0.2.2/index.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<title>St. Petersburg</title>
7+
<link rel="stylesheet" href="main.css">
8+
</head>
9+
10+
<body>
11+
<script src="main.js"></script>
12+
<div id="root">
13+
<div id="welcomeBox">
14+
<h2>Welcome to the St. Petersburg-Widget</h2><br>
15+
You need to be authenticated to play.<br>
16+
This is simple, the authentication works by joining this room:
17+
<p id="roomLinkP" style="text-align: center;"></p>
18+
<p style="font-size: x-small;"(serach for the roomId (shown above) in the public room directory)</p>
19+
The Widget will check if you have joined this room and you can play. This serves two purposes:
20+
<ul>
21+
<li>First, I can estimate how many
22+
people use this widget. If this exceeds the realm of a tech demo and is a competitor to official platforms
23+
I can inform the publisher and a solution can be found.</li>
24+
<li>The second advantage is, that the authentication-room can also be used
25+
to quickly ask for help or serach for ppl to play with!</li>
26+
</ul>
27+
<div style="display: flex;justify-content: center;margin: 0 20%;">
28+
<button style="flex-grow: 1;" id="tryAuthenticationButton">I joined the room, try again!</button>
29+
</div>
30+
<div style="font-size: x-small;">
31+
<b>Trouble shooting guide</b>
32+
In case things dont work there are multiple things to check.
33+
<ul>
34+
<li>Have you granted the widget all the required permissions? This is necassary to read the
35+
auth rooms state and check if you joined that room.
36+
</li>
37+
<li>
38+
On Android the widget api to communicate with the client/ask read and sent room events is not yet supported.
39+
</li>
40+
<li>
41+
When adding this widget to a room the "change room settings permission" must be allowed for all participating memebers, so that they can update the room stat, which is
42+
required to make a turn in the game.<br>
43+
The easiest solution for this is to set the group for <b>change settings</b> to <b>Default</b> : Room settings -> Permission and roles -> change settings
44+
</li>
45+
</ul>
46+
</div>
47+
</div>
48+
</div>
49+
</body>
50+
51+
</html>

dist/0.2.2/main.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
body{
2+
font-family: Verdana, Geneva, Tahoma, sans-serif;
3+
font-size: 16px;
4+
/* background-color: #f2f5f8; */
5+
}
6+
button{
7+
margin: 5px;
8+
padding: 6px;
9+
border-radius: 4px;
10+
border-width: 0px;
11+
background-color: #0dbd8b;
12+
border-color: #0dbd8b;
13+
border-width: 2px;
14+
border-style: solid;
15+
font-weight: 800;
16+
color: #fff;
17+
transition-duration: 0.2s;
18+
}
19+
button:hover{
20+
background-color: #0caf81;
21+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
22+
transition-duration: 0.2s;
23+
}
24+
button:disabled{
25+
background-color: #a0a0a088;
26+
border-color: #a0a0a088;
27+
}
28+
button:disabled:hover{
29+
box-shadow: 0 0 0px rgb(199, 199, 199);
30+
}
31+
#welcomeBox{
32+
padding: 20px;
33+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"webpack-dev-server": "^4.5.0"
1515
},
1616
"name": "st-petersburg-widget",
17-
"version": "0.2.1",
17+
"version": "0.2.2",
1818
"main": "index.js",
1919
"author": "@toger5:matrix.org",
2020
"license": "MIT",

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const VERSION_OUTPUTS = {
77
v0_1_9: 'dist/0.1.9',
88
v0_2_0: 'dist/0.2.0',
99
v0_2_1: 'dist/0.2.1',
10+
v0_2_1: 'dist/0.2.2',
1011
}
1112
module.exports = {
1213
entry: './src/main.js',

0 commit comments

Comments
 (0)