Skip to content

Commit

Permalink
TEMPLATE-529. translate v3 keys to v2 when logging in (#236)
Browse files Browse the repository at this point in the history
TEMPLATE-529.  translate v3 keys to v2 when logging in
  • Loading branch information
wglasshusain authored Apr 16, 2021
1 parent b6a069d commit 9446f04
Show file tree
Hide file tree
Showing 16 changed files with 3,835 additions and 18,171 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ coverage/
**/.DS_Store

*.orig
package.lock
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
<a name="2.13.5"></a>
### 2.13.5
This is a bug fix release.

### Bug Fixes
- The v3 login component now correctly converts the v3 user keys to v2 user ids. For early users
these are the same but for recently created users these may be different.

<a name="2.13.4"></a>
### 2.13.4
This is a bug fix release.

### Bug Fixes
- Fully remove all session cookies when logging out. Previously did not remove epicenter-scenario cookie.

<a name="2.13.3"></a>
### 2.13.3
This is a minor release.

### Improvements
-- expose rawDataChannel for settingsManager APIs.

<a name="2.13.2"></a>
### 2.13.2
This is a minor release.

### Bug Fixes
-- Fix the samesite cookie setting to work with local development.

<a name="2.13.1"></a>
### 2.13.1
This is a minor release.

### Bug Fixes
-- Use the v3 member API with multiple groups.

<a name="2.13.0"></a>
### 2.13.0

Expand Down
2 changes: 1 addition & 1 deletion dist/components/assignment/assignment.min.js.map

Large diffs are not rendered by default.

188 changes: 94 additions & 94 deletions dist/components/assignment/index.html
Original file line number Diff line number Diff line change
@@ -1,94 +1,94 @@
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Multiplayer World Assignment Component</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.13.4/components/assignment/assignment.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
</head>
<body>

<div class="container">
<div class="row">
<div class="col-xs-8">

</div>
</div>


<div class="row">
<div class="col-xs-12">
<div id="assignment-component">
<div class="row">
<div class="col-xs-12">
<span class="table-controls form-inline">
Automatically assign users

<span class="single" style="display: none;">
to teams. Users/Team:
</span>
<span class="dynamic" style="display: none;">
to worlds.
</span>
<span class="dynamic-no-roles-text" style="display: none;"> Max User/World: </span>
<span class="no-roles" style="display: none;">
<input type="number" class="form-control" id="max-users" min="1">
</span>

<button class="auto-assign-all btn btn-success">Assign</button>
</span>
<span class="status-widget pull-right">
<span id="users-status"><em class="icon f-icon"></em><span class="text"></span></span>
<span id="worlds-status"><em class="icon f-icon"></em><span class="text"></span></span>
</span>
</div>
</div>
<div class="component controls" style="opacity: 0;">
<button class="unassign-user btn">Unassign</button>
<button class="make-user-inactive btn">Make Inactive</button>
</div>
<table class="table users-table">
<thead>
<tr>
<th><input type="checkbox" id="select-all"></th>
<th></th>
<th>World</th>
<th>Role</th>
<th>Name</th>
<th>Username</th>
<th>Unassigned</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>

</div>
</div>
</div>
<!-- make sure to include jquery, epicenter.js and assignment.js -->
<script src="https://forio.com/tools/js-libs/2.13.4/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.4/components/assignment/assignment.js"></script>
<script>
new window.forio.MultiplayerAssignmentComponent({
el: '#assignment-component',
account: 'your-account-goes-here',
project: 'your-project-name-goes-here',
group: 'the-group-name-goes-here',
groupId: 'the-group-id-goes-here',
token: 'the-authentication-token-goes-here',
server: {
host: 'the-server-goes-here usually api.forio.com',
protocol: 'https'
}
}).load();

</script>
</body>
</html>
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Multiplayer World Assignment Component</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.13.4/components/assignment/assignment.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
</head>
<body>

<div class="container">
<div class="row">
<div class="col-xs-8">

</div>
</div>


<div class="row">
<div class="col-xs-12">
<div id="assignment-component">
<div class="row">
<div class="col-xs-12">
<span class="table-controls form-inline">
Automatically assign users

<span class="single" style="display: none;">
to teams. Users/Team:
</span>
<span class="dynamic" style="display: none;">
to worlds.
</span>
<span class="dynamic-no-roles-text" style="display: none;"> Max User/World: </span>
<span class="no-roles" style="display: none;">
<input type="number" class="form-control" id="max-users" min="1">
</span>

<button class="auto-assign-all btn btn-success">Assign</button>
</span>
<span class="status-widget pull-right">
<span id="users-status"><em class="icon f-icon"></em><span class="text"></span></span>
<span id="worlds-status"><em class="icon f-icon"></em><span class="text"></span></span>
</span>
</div>
</div>
<div class="component controls" style="opacity: 0;">
<button class="unassign-user btn">Unassign</button>
<button class="make-user-inactive btn">Make Inactive</button>
</div>
<table class="table users-table">
<thead>
<tr>
<th><input type="checkbox" id="select-all"></th>
<th></th>
<th>World</th>
<th>Role</th>
<th>Name</th>
<th>Username</th>
<th>Unassigned</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>

</div>
</div>
</div>
<!-- make sure to include jquery, epicenter.js and assignment.js -->
<script src="https://forio.com/tools/js-libs/2.13.4/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.4/components/assignment/assignment.js"></script>
<script>
new window.forio.MultiplayerAssignmentComponent({
el: '#assignment-component',
account: 'your-account-goes-here',
project: 'your-project-name-goes-here',
group: 'the-group-name-goes-here',
groupId: 'the-group-id-goes-here',
token: 'the-authentication-token-goes-here',
server: {
host: 'the-server-goes-here usually api.forio.com',
protocol: 'https'
}
}).load();

</script>
</body>
</html>
Loading

0 comments on commit 9446f04

Please sign in to comment.