Skip to content

Commit

Permalink
Merge pull request #233 from forio/MITBEER-102
Browse files Browse the repository at this point in the history
MITBEER-102 use v3 member on multiple groups
  • Loading branch information
lukwallace authored Jul 30, 2020
2 parents 10d8df9 + 1b8c80d commit 9a80532
Show file tree
Hide file tree
Showing 17 changed files with 3,761 additions and 3,569 deletions.
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.0/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.0/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.0/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.1/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.1/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.13.1/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 9a80532

Please sign in to comment.