forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [NEW] Service Account Admin Settings and Configuration files added * [NEW] Service Account Admin Settings and Configuration files added * [NEW] Service Account Admin Settings and Configuration files added * [NEW] Service Account Admin Settings and Configuration files added * Service Account Creation dialog added * [NEW] Service Account Creation method * Service Account owner username update method added * Fixed CLI errors * Fixed CLI errors * Service Account creation heading fixed * Service Account broadcast room callback added * Service Account creation method refactored * Service Account Callback completed * Typos fixed * CLI errors fixed * [NEW] Service Account one-tap login complete * Callbacks modified * Service Accounts directory tab added * Refactored creation method and added tests * CLI errors fixed * CLI errors fixed * Bugs fixed * [NEW] Service Accounts Login method * Typo fixed * CLI errors fixed * CLI errors fixed * [New] Service Account directory feature * CLI errors fixed * UsernameExists meteor method fixed * Sync commit * [NEW] Service Account subscription method added * [NEW] Service account subscription sidenav type * Broadcast Room name change handled * Lint errors fixed * getLoginToken method refactored * Console statements removed * Sidebar header permission modified * Merge branch service-accounts * Added service account directory search translation key * Subscribers count added * [NEW] Service Account sidenav type * Unread counter added in popver * Get linked service account method added
- Loading branch information
1 parent
da42a95
commit 4b99331
Showing
49 changed files
with
1,246 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import './startup'; | ||
import './route'; | ||
|
||
// views | ||
import './views/serviceAccountDashboard'; | ||
import './views/creationDialog/createServiceAccount'; | ||
import './views/serviceAccountsList'; | ||
|
||
import '../lib/serviceAccountRoomType'; | ||
import './views/serviceAccountSidebarLogin'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { FlowRouter } from 'meteor/kadira:flow-router'; | ||
import { BlazeLayout } from 'meteor/kadira:blaze-layout'; | ||
|
||
import { t } from '../../utils'; | ||
|
||
FlowRouter.route('/admin/serviceaccount', { | ||
name: 'admin-serviceaccount', | ||
action() { | ||
return BlazeLayout.render('main', { | ||
center: 'serviceAccountDashboard', | ||
pageTitle: t('Service_account_applied'), | ||
}); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { AdminBox } from '../../ui-utils'; | ||
import { hasAtLeastOnePermission } from '../../authorization'; | ||
|
||
AdminBox.addOption({ | ||
icon: 'discover', | ||
href: 'admin/serviceaccount', | ||
i18nLabel: 'Service_account_dashboard', | ||
permissionGranted() { | ||
return hasAtLeastOnePermission(['view-sa-request']); | ||
}, | ||
}); |
86 changes: 86 additions & 0 deletions
86
app/service-accounts/client/views/creationDialog/createServiceAccount.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<template name="createServiceAccount"> | ||
<section class="create-channel"> | ||
<div class="create-channel__wrapper"> | ||
<p class="create-channel__description">{{_ "Service_account_description"}}</p> | ||
<form id="create-service-account" name="create-service-account" class="create-channel__content"> | ||
<div class="create-channel__inputs"> | ||
<div class="rc-input {{#if invalidChannel}}rc-input--error{{/if}}"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Username_title"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
{{> icon block="rc-input__icon-svg" icon="at"}} | ||
</div> | ||
<input name="username" type="text" class="rc-input__element" | ||
placeholder="{{_ 'Service_account_username_placeholder'}}" autofocus> | ||
</div> | ||
</label> | ||
{{#if inUse}} | ||
<div class="rc-input__error"> | ||
<div class="rc-input__error-icon"> | ||
{{> icon block="rc-input__error-icon" icon="warning" classes="rc-input__error-icon-svg"}} | ||
</div> | ||
<div class="rc-input__error-message">{{_ "Username_already_exist"}}</div> | ||
</div> | ||
{{/if}} | ||
</div> | ||
</div> | ||
<div class="rc-input"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Name"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
{{> icon block="rc-input__icon-svg" icon="lock"}} | ||
</div> | ||
<input name="name" type="text" class="rc-input__element" placeholder="{{_ "Service_account_name_placeholder"}}"> | ||
</div> | ||
</label> | ||
</div> | ||
<div class="rc-input"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Password"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
{{> icon block="rc-input__icon-svg" icon="lock"}} | ||
</div> | ||
<input name="password" type="password" class="rc-input__element" placeholder="{{_ "Password"}}"> | ||
</div> | ||
</label> | ||
</div> | ||
<div class="rc-input"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Confirm_password"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
{{> icon block="rc-input__icon-svg" icon="lock"}} | ||
</div> | ||
<input name="confirmPassword" type="password" class="rc-input__element" placeholder="{{_ "Password"}}"> | ||
</div> | ||
</label> | ||
{{#if notMatch}} | ||
<div class="rc-input__error"> | ||
<div class="rc-input__error-icon"> | ||
{{> icon block="rc-input__error-icon" icon="warning" classes="rc-input__error-icon-svg"}} | ||
</div> | ||
<div class="rc-input__error-message">{{_ "Invalid_confirm_pass"}}</div> | ||
</div> | ||
{{/if}} | ||
</div> | ||
<div class="rc-input"> | ||
<label class="rc-input__label"> | ||
<div class="rc-input__title">{{_ "Description"}}</div> | ||
<div class="rc-input__wrapper"> | ||
<div class="rc-input__icon"> | ||
{{> icon block="rc-input__icon-svg" icon="edit"}} | ||
</div> | ||
<input name="description" type="text" class="rc-input__element" placeholder="{{_ "Description"}}"> | ||
</div> | ||
</label> | ||
</div> | ||
</form> | ||
<div class="create-channel__inputs"> | ||
<input form='create-service-account' class="rc-button rc-button--primary" type='submit' data-button="create" {{createIsDisabled}} value="{{_ "Create"}}" /> | ||
</div> | ||
</div> | ||
</section> | ||
</template> |
Oops, something went wrong.