mirror of
https://github.com/bitwarden/web
synced 2025-12-11 05:43:16 +00:00
Compare commits
36 Commits
feature/cl
...
2022.05.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec80782d8f | ||
|
|
3acee89646 | ||
|
|
589faf3608 | ||
|
|
639cc461ae | ||
|
|
4562920d30 | ||
|
|
c6f4e4de64 | ||
|
|
f323963a4e | ||
|
|
f6c8b6d8cb | ||
|
|
11f34be18e | ||
|
|
647e9555d0 | ||
|
|
ad7b6e6388 | ||
|
|
718ca197b5 | ||
|
|
338d593cd1 | ||
|
|
aa29a07678 | ||
|
|
0722522801 | ||
|
|
5731c6449b | ||
|
|
eaf083be44 | ||
|
|
8435c85c3c | ||
|
|
3d1c2dad74 | ||
|
|
2f632f7096 | ||
|
|
9b63c81b56 | ||
|
|
34cb463e94 | ||
|
|
7bbe3d7b28 | ||
|
|
0564b52f1f | ||
|
|
cb1f08d74b | ||
|
|
f3bf972d26 | ||
|
|
02256aad87 | ||
|
|
466e0c8c35 | ||
|
|
0543e76432 | ||
|
|
34527160fc | ||
|
|
f590fe5435 | ||
|
|
0f64c16c18 | ||
|
|
1632a24b1e | ||
|
|
0691af1dcd | ||
|
|
3e59617fb1 | ||
|
|
268b16ca98 |
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@@ -19,8 +19,8 @@ jobs:
|
|||||||
name: Setup
|
name: Setup
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
outputs:
|
outputs:
|
||||||
release_version: ${{ steps.version.outputs.package }}
|
release_version: ${{ steps.version.outputs.version }}
|
||||||
tag_version: ${{ steps.version.outputs.tag }}
|
tag_version: ${{ steps.version.outputs.version }}
|
||||||
branch_name: ${{ steps.branch.outputs.branch_name }}
|
branch_name: ${{ steps.branch.outputs.branch_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Branch check
|
- name: Branch check
|
||||||
@@ -38,20 +38,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Release Version
|
- name: Check Release Version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
uses: bitwarden/gh-actions/release-version-check@ea9fab01d76940267b4147cc1c4542431246b9f6
|
||||||
version=$( jq -r ".version" package.json)
|
with:
|
||||||
previous_release_tag_version=$(
|
release-type: ${{ github.event.inputs.release_type }}
|
||||||
curl -sL https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | jq -r ".tag_name"
|
project-type: ts
|
||||||
)
|
file: package.json
|
||||||
|
|
||||||
if [ "v$version" == "$previous_release_tag_version" ] && \
|
|
||||||
[ "${{ github.event.inputs.release_type }}" == "Initial Release" ]; then
|
|
||||||
echo "[!] Already released v$version. Please bump version to continue"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "::set-output name=package::$version"
|
|
||||||
echo "::set-output name=tag::v$version"
|
|
||||||
|
|
||||||
- name: Get branch name
|
- name: Get branch name
|
||||||
id: branch
|
id: branch
|
||||||
|
|||||||
2
jslib
2
jslib
Submodule jslib updated: 3bf25edd3e...1cc4bed671
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": "https://github.com/bitwarden/web",
|
"repository": "https://github.com/bitwarden/web",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -122,17 +122,20 @@ export abstract class BaseEventsComponent {
|
|||||||
const userId = r.actingUserId == null ? r.userId : r.actingUserId;
|
const userId = r.actingUserId == null ? r.userId : r.actingUserId;
|
||||||
const eventInfo = await this.eventService.getEventInfo(r);
|
const eventInfo = await this.eventService.getEventInfo(r);
|
||||||
const user = this.getUserName(r, userId);
|
const user = this.getUserName(r, userId);
|
||||||
|
const userName = user != null ? user.name : this.i18nService.t("unknown");
|
||||||
|
|
||||||
return new EventView({
|
return new EventView({
|
||||||
message: eventInfo.message,
|
message: eventInfo.message,
|
||||||
humanReadableMessage: eventInfo.humanReadableMessage,
|
humanReadableMessage: eventInfo.humanReadableMessage,
|
||||||
appIcon: eventInfo.appIcon,
|
appIcon: eventInfo.appIcon,
|
||||||
appName: eventInfo.appName,
|
appName: eventInfo.appName,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
userName: user != null ? user.name : this.i18nService.t("unknown"),
|
userName: r.installationId != null ? `Installation: ${r.installationId}` : userName,
|
||||||
userEmail: user != null ? user.email : "",
|
userEmail: user != null ? user.email : "",
|
||||||
date: r.date,
|
date: r.date,
|
||||||
ip: r.ipAddress,
|
ip: r.ipAddress,
|
||||||
type: r.type,
|
type: r.type,
|
||||||
|
installationId: r.installationId,
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ import { BulkStatusComponent as OrgBulkStatusComponent } from "../organizations/
|
|||||||
import { CollectionAddEditComponent as OrgCollectionAddEditComponent } from "../organizations/manage/collection-add-edit.component";
|
import { CollectionAddEditComponent as OrgCollectionAddEditComponent } from "../organizations/manage/collection-add-edit.component";
|
||||||
import { CollectionsComponent as OrgManageCollectionsComponent } from "../organizations/manage/collections.component";
|
import { CollectionsComponent as OrgManageCollectionsComponent } from "../organizations/manage/collections.component";
|
||||||
import { EntityEventsComponent as OrgEntityEventsComponent } from "../organizations/manage/entity-events.component";
|
import { EntityEventsComponent as OrgEntityEventsComponent } from "../organizations/manage/entity-events.component";
|
||||||
|
import { EntityUsersComponent as OrgEntityUsersComponent } from "../organizations/manage/entity-users.component";
|
||||||
import { EventsComponent as OrgEventsComponent } from "../organizations/manage/events.component";
|
import { EventsComponent as OrgEventsComponent } from "../organizations/manage/events.component";
|
||||||
import { GroupAddEditComponent as OrgGroupAddEditComponent } from "../organizations/manage/group-add-edit.component";
|
import { GroupAddEditComponent as OrgGroupAddEditComponent } from "../organizations/manage/group-add-edit.component";
|
||||||
import { GroupsComponent as OrgGroupsComponent } from "../organizations/manage/groups.component";
|
import { GroupsComponent as OrgGroupsComponent } from "../organizations/manage/groups.component";
|
||||||
@@ -114,7 +115,6 @@ import { EmergencyAccessTakeoverComponent } from "../settings/emergency-access-t
|
|||||||
import { EmergencyAccessViewComponent } from "../settings/emergency-access-view.component";
|
import { EmergencyAccessViewComponent } from "../settings/emergency-access-view.component";
|
||||||
import { EmergencyAccessComponent } from "../settings/emergency-access.component";
|
import { EmergencyAccessComponent } from "../settings/emergency-access.component";
|
||||||
import { EmergencyAddEditComponent } from "../settings/emergency-add-edit.component";
|
import { EmergencyAddEditComponent } from "../settings/emergency-add-edit.component";
|
||||||
import { LinkSsoComponent } from "../settings/link-sso.component";
|
|
||||||
import { OrganizationPlansComponent } from "../settings/organization-plans.component";
|
import { OrganizationPlansComponent } from "../settings/organization-plans.component";
|
||||||
import { PaymentMethodComponent } from "../settings/payment-method.component";
|
import { PaymentMethodComponent } from "../settings/payment-method.component";
|
||||||
import { PaymentComponent } from "../settings/payment.component";
|
import { PaymentComponent } from "../settings/payment.component";
|
||||||
@@ -223,7 +223,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
HintComponent,
|
HintComponent,
|
||||||
ImportComponent,
|
ImportComponent,
|
||||||
InactiveTwoFactorReportComponent,
|
InactiveTwoFactorReportComponent,
|
||||||
LinkSsoComponent,
|
|
||||||
LockComponent,
|
LockComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
MasterPasswordPolicyComponent,
|
MasterPasswordPolicyComponent,
|
||||||
@@ -244,6 +243,7 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
OrgCollectionAddEditComponent,
|
OrgCollectionAddEditComponent,
|
||||||
OrgCollectionsComponent,
|
OrgCollectionsComponent,
|
||||||
OrgEntityEventsComponent,
|
OrgEntityEventsComponent,
|
||||||
|
OrgEntityUsersComponent,
|
||||||
OrgEventsComponent,
|
OrgEventsComponent,
|
||||||
OrgExportComponent,
|
OrgExportComponent,
|
||||||
OrgExposedPasswordsReportComponent,
|
OrgExposedPasswordsReportComponent,
|
||||||
@@ -383,7 +383,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
HintComponent,
|
HintComponent,
|
||||||
ImportComponent,
|
ImportComponent,
|
||||||
InactiveTwoFactorReportComponent,
|
InactiveTwoFactorReportComponent,
|
||||||
LinkSsoComponent,
|
|
||||||
LockComponent,
|
LockComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
MasterPasswordPolicyComponent,
|
MasterPasswordPolicyComponent,
|
||||||
@@ -404,6 +403,7 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
OrgCollectionAddEditComponent,
|
OrgCollectionAddEditComponent,
|
||||||
OrgCollectionsComponent,
|
OrgCollectionsComponent,
|
||||||
OrgEntityEventsComponent,
|
OrgEntityEventsComponent,
|
||||||
|
OrgEntityUsersComponent,
|
||||||
OrgEventsComponent,
|
OrgEventsComponent,
|
||||||
OrgExportComponent,
|
OrgExportComponent,
|
||||||
OrgExposedPasswordsReportComponent,
|
OrgExposedPasswordsReportComponent,
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
import { ScrollingModule } from "@angular/cdk/scrolling";
|
|
||||||
import { NgModule } from "@angular/core";
|
|
||||||
|
|
||||||
import { SharedModule } from "../../shared.module";
|
|
||||||
|
|
||||||
import { EntityUsersComponent } from "./entity-users.component";
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [SharedModule, ScrollingModule],
|
|
||||||
declarations: [EntityUsersComponent],
|
|
||||||
exports: [EntityUsersComponent],
|
|
||||||
})
|
|
||||||
export class OrganizationManageModule {}
|
|
||||||
@@ -53,13 +53,7 @@ import localeZhTw from "@angular/common/locales/zh-Hant";
|
|||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
||||||
import { RouterModule } from "@angular/router";
|
import { RouterModule } from "@angular/router";
|
||||||
import {
|
import { BadgeModule, ButtonModule, CalloutModule, MenuModule } from "@bitwarden/components";
|
||||||
BadgeModule,
|
|
||||||
ButtonModule,
|
|
||||||
CalloutModule,
|
|
||||||
FormFieldModule,
|
|
||||||
MenuModule,
|
|
||||||
} from "@bitwarden/components";
|
|
||||||
import { InfiniteScrollModule } from "ngx-infinite-scroll";
|
import { InfiniteScrollModule } from "ngx-infinite-scroll";
|
||||||
import { ToastrModule } from "ngx-toastr";
|
import { ToastrModule } from "ngx-toastr";
|
||||||
|
|
||||||
@@ -132,7 +126,6 @@ registerLocaleData(localeZhTw, "zh-TW");
|
|||||||
BadgeModule,
|
BadgeModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
MenuModule,
|
MenuModule,
|
||||||
FormFieldModule,
|
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
@@ -143,7 +136,6 @@ registerLocaleData(localeZhTw, "zh-TW");
|
|||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
BadgeModule,
|
BadgeModule,
|
||||||
FormFieldModule,
|
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
CalloutModule,
|
CalloutModule,
|
||||||
ToastrModule,
|
ToastrModule,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
<h3 class="filter-title">{{ collectionsGrouping.name | i18n }}</h3>
|
<h3 class="filter-title"> {{ collectionsGrouping.name | i18n }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<ul id="collection-filters" *ngIf="!isCollapsed(collectionsGrouping)" class="filter-options">
|
<ul id="collection-filters" *ngIf="!isCollapsed(collectionsGrouping)" class="filter-options">
|
||||||
<ng-template #recursiveCollections let-collections>
|
<ng-template #recursiveCollections let-collections>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
class="bwi bwi-collection bwi-fw"
|
class="bwi bwi-collection bwi-fw"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i
|
></i
|
||||||
>{{ c.node.name }}
|
> {{ c.node.name }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<ul
|
<ul
|
||||||
|
|||||||
@@ -16,9 +16,7 @@
|
|||||||
}"
|
}"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
<h3 class="filter-title">
|
<h3 class="filter-title"> {{ "folders" | i18n }}</h3>
|
||||||
{{ "folders" | i18n }}
|
|
||||||
</h3>
|
|
||||||
<button
|
<button
|
||||||
class="text-muted ml-auto add-button"
|
class="text-muted ml-auto add-button"
|
||||||
(click)="addFolder()"
|
(click)="addFolder()"
|
||||||
@@ -56,7 +54,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<button class="filter-button" (click)="applyFilter(f.node)">
|
<button class="filter-button" (click)="applyFilter(f.node)">
|
||||||
<i *ngIf="f.children.length === 0" class="bwi bwi-fw bwi-folder" aria-hidden="true"></i
|
<i *ngIf="f.children.length === 0" class="bwi bwi-fw bwi-folder" aria-hidden="true"></i
|
||||||
>{{ f.node.name }}
|
> {{ f.node.name }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="edit-button"
|
class="edit-button"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<a href="#" routerLink="/create-organization" class="filter-button">
|
<a href="#" routerLink="/create-organization" class="filter-button">
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
{{ "newOrganization" | i18n }}
|
{{ "newOrganization" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -45,14 +45,6 @@
|
|||||||
>
|
>
|
||||||
{{ organizationGrouping.name | i18n }}
|
{{ organizationGrouping.name | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<a
|
|
||||||
href="#"
|
|
||||||
routerLink="/create-organization"
|
|
||||||
class="text-muted ml-auto create-organization-link"
|
|
||||||
appA11yTitle="{{ 'newOrganization' | i18n }}"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options">
|
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options">
|
||||||
<li
|
<li
|
||||||
@@ -75,6 +67,14 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="filter-option">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<a href="#" routerLink="/create-organization" class="filter-button">
|
||||||
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
|
{{ "newOrganization" | i18n }}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngSwitchCase="'singleOrganizationAndPersonalOwnershipPolicies'">
|
<ng-container *ngSwitchCase="'singleOrganizationAndPersonalOwnershipPolicies'">
|
||||||
@@ -110,15 +110,6 @@
|
|||||||
>
|
>
|
||||||
{{ organizationGrouping.name | i18n }}
|
{{ organizationGrouping.name | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<a
|
|
||||||
href="#"
|
|
||||||
routerLink="/create-organization"
|
|
||||||
class="text-muted ml-auto create-organization-link"
|
|
||||||
appA11yTitle="{{ 'newOrganization' | i18n }}"
|
|
||||||
*ngIf="!(displayMode === 'singleOrganizationPolicy')"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options">
|
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options">
|
||||||
<li class="filter-option" [ngClass]="{ active: activeFilter.myVaultOnly }">
|
<li class="filter-option" [ngClass]="{ active: activeFilter.myVaultOnly }">
|
||||||
@@ -149,6 +140,14 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="filter-option" *ngIf="!(displayMode === 'singleOrganizationPolicy')">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<a href="#" routerLink="/create-organization" class="filter-button">
|
||||||
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
|
{{ "newOrganization" | i18n }}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -15,9 +15,7 @@
|
|||||||
}"
|
}"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
<h3>
|
<h3> {{ "types" | i18n }}</h3>
|
||||||
{{ "types" | i18n }}
|
|
||||||
</h3>
|
|
||||||
</div>
|
</div>
|
||||||
<ul id="type-filters" *ngIf="!isCollapsed" class="filter-options">
|
<ul id="type-filters" *ngIf="!isCollapsed" class="filter-options">
|
||||||
<li
|
<li
|
||||||
@@ -26,14 +24,14 @@
|
|||||||
>
|
>
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Login)">
|
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Login)">
|
||||||
<i class="bwi bwi-fw bwi-globe" aria-hidden="true"></i>{{ "typeLogin" | i18n }}
|
<i class="bwi bwi-fw bwi-globe" aria-hidden="true"></i> {{ "typeLogin" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="filter-option" [ngClass]="{ active: activeFilter.cipherType === cipherTypeEnum.Card }">
|
<li class="filter-option" [ngClass]="{ active: activeFilter.cipherType === cipherTypeEnum.Card }">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Card)">
|
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Card)">
|
||||||
<i class="bwi bwi-fw bwi-credit-card" aria-hidden="true"></i>{{ "typeCard" | i18n }}
|
<i class="bwi bwi-fw bwi-credit-card" aria-hidden="true"></i> {{ "typeCard" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -43,7 +41,7 @@
|
|||||||
>
|
>
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Identity)">
|
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Identity)">
|
||||||
<i class="bwi bwi-fw bwi-id-card" aria-hidden="true"></i>{{ "typeIdentity" | i18n }}
|
<i class="bwi bwi-fw bwi-id-card" aria-hidden="true"></i> {{ "typeIdentity" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -53,7 +51,9 @@
|
|||||||
>
|
>
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.SecureNote)">
|
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.SecureNote)">
|
||||||
<i class="bwi bwi-fw bwi-sticky-note" aria-hidden="true"></i>{{ "typeSecureNote" | i18n }}
|
<i class="bwi bwi-fw bwi-sticky-note" aria-hidden="true"></i> {{
|
||||||
|
"typeSecureNote" | i18n
|
||||||
|
}}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { SharedModule } from "../shared.module";
|
|||||||
|
|
||||||
import { CollectionFilterComponent } from "./components/collection-filter.component";
|
import { CollectionFilterComponent } from "./components/collection-filter.component";
|
||||||
import { FolderFilterComponent } from "./components/folder-filter.component";
|
import { FolderFilterComponent } from "./components/folder-filter.component";
|
||||||
|
import { LinkSsoComponent } from "./components/link-sso.component";
|
||||||
import { OrganizationFilterComponent } from "./components/organization-filter.component";
|
import { OrganizationFilterComponent } from "./components/organization-filter.component";
|
||||||
import { OrganizationOptionsComponent } from "./components/organization-options.component";
|
import { OrganizationOptionsComponent } from "./components/organization-options.component";
|
||||||
import { StatusFilterComponent } from "./components/status-filter.component";
|
import { StatusFilterComponent } from "./components/status-filter.component";
|
||||||
@@ -28,6 +29,7 @@ import { VaultFilterComponent } from "./vault-filter.component";
|
|||||||
OrganizationOptionsComponent,
|
OrganizationOptionsComponent,
|
||||||
StatusFilterComponent,
|
StatusFilterComponent,
|
||||||
TypeFilterComponent,
|
TypeFilterComponent,
|
||||||
|
LinkSsoComponent,
|
||||||
],
|
],
|
||||||
exports: [VaultFilterComponent],
|
exports: [VaultFilterComponent],
|
||||||
providers: [
|
providers: [
|
||||||
|
|||||||
@@ -20,9 +20,8 @@ import {
|
|||||||
import { ListResponse } from "jslib-common/models/response/listResponse";
|
import { ListResponse } from "jslib-common/models/response/listResponse";
|
||||||
import { CollectionView } from "jslib-common/models/view/collectionView";
|
import { CollectionView } from "jslib-common/models/view/collectionView";
|
||||||
|
|
||||||
import { EntityUsersComponent } from "../../modules/organizations/manage/entity-users.component";
|
|
||||||
|
|
||||||
import { CollectionAddEditComponent } from "./collection-add-edit.component";
|
import { CollectionAddEditComponent } from "./collection-add-edit.component";
|
||||||
|
import { EntityUsersComponent } from "./entity-users.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-org-manage-collections",
|
selector: "app-org-manage-collections",
|
||||||
|
|||||||
@@ -29,52 +29,52 @@
|
|||||||
></i>
|
></i>
|
||||||
<span class="sr-only">{{ "loading" | i18n }}</span>
|
<span class="sr-only">{{ "loading" | i18n }}</span>
|
||||||
</div>
|
</div>
|
||||||
<cdk-virtual-scroll-viewport
|
<div
|
||||||
itemSize="46"
|
class="modal-body"
|
||||||
minBufferPx="600"
|
*ngIf="
|
||||||
maxBufferPx="1200"
|
!loading && users && (users | search: searchText:'name':'email':'id') as searchedUsers
|
||||||
[style]="scrollViewportStyle"
|
"
|
||||||
>
|
>
|
||||||
<div class="modal-body" *ngIf="!loading && users && searchedUsers">
|
<div class="d-flex">
|
||||||
<div class="d-flex">
|
<div class="mr-3">
|
||||||
<div class="mr-3">
|
<label class="sr-only" for="search">{{ "search" | i18n }}</label>
|
||||||
<label class="sr-only" for="search">{{ "search" | i18n }}</label>
|
<input
|
||||||
<input
|
type="search"
|
||||||
type="search"
|
class="form-control form-control-sm"
|
||||||
class="form-control form-control-sm"
|
id="search"
|
||||||
id="search"
|
placeholder="{{ 'search' | i18n }}"
|
||||||
placeholder="{{ 'search' | i18n }}"
|
name="SearchText"
|
||||||
name="SearchText"
|
[(ngModel)]="searchText"
|
||||||
[(ngModel)]="searchText"
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group btn-group-sm" role="group">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="btn btn-outline-secondary"
|
|
||||||
[ngClass]="{ active: !showSelected }"
|
|
||||||
(click)="filterSelected(false)"
|
|
||||||
>
|
|
||||||
{{ "all" | i18n }}
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="btn btn-outline-secondary"
|
|
||||||
[ngClass]="{ active: showSelected }"
|
|
||||||
(click)="filterSelected(true)"
|
|
||||||
>
|
|
||||||
{{ "selected" | i18n }}
|
|
||||||
<span class="badge badge-pill badge-info" *ngIf="selectedCount">{{
|
|
||||||
selectedCount
|
|
||||||
}}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngIf="!searchedUsers.length">
|
<div class="btn-group btn-group-sm" role="group">
|
||||||
<hr />
|
<button
|
||||||
{{ "noUsersInList" | i18n }}
|
type="button"
|
||||||
</ng-container>
|
class="btn btn-outline-secondary"
|
||||||
<table class="table table-hover table-list mb-0" [hidden]="!searchedUsers.length">
|
[ngClass]="{ active: !showSelected }"
|
||||||
|
(click)="filterSelected(false)"
|
||||||
|
>
|
||||||
|
{{ "all" | i18n }}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-outline-secondary"
|
||||||
|
[ngClass]="{ active: showSelected }"
|
||||||
|
(click)="filterSelected(true)"
|
||||||
|
>
|
||||||
|
{{ "selected" | i18n }}
|
||||||
|
<span class="badge badge-pill badge-info" *ngIf="selectedCount">{{
|
||||||
|
selectedCount
|
||||||
|
}}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ng-container *ngIf="!searchedUsers.length">
|
||||||
|
<hr />
|
||||||
|
{{ "noUsersInList" | i18n }}
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngIf="searchedUsers.length">
|
||||||
|
<table class="table table-hover table-list mb-0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *cdkVirtualFor="let u of searchedUsers" class="">
|
<tr *ngFor="let u of searchedUsers">
|
||||||
<td class="table-list-checkbox" (click)="check(u)">
|
<td class="table-list-checkbox" (click)="check(u)">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@@ -164,8 +164,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</ng-container>
|
||||||
</cdk-virtual-scroll-viewport>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
||||||
|
|
||||||
import { SearchPipe } from "jslib-angular/pipes/search.pipe";
|
|
||||||
import { ApiService } from "jslib-common/abstractions/api.service";
|
import { ApiService } from "jslib-common/abstractions/api.service";
|
||||||
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
||||||
import { LogService } from "jslib-common/abstractions/log.service";
|
import { LogService } from "jslib-common/abstractions/log.service";
|
||||||
@@ -14,7 +13,6 @@ import { OrganizationUserUserDetailsResponse } from "jslib-common/models/respons
|
|||||||
@Component({
|
@Component({
|
||||||
selector: "app-entity-users",
|
selector: "app-entity-users",
|
||||||
templateUrl: "entity-users.component.html",
|
templateUrl: "entity-users.component.html",
|
||||||
providers: [SearchPipe],
|
|
||||||
})
|
})
|
||||||
export class EntityUsersComponent implements OnInit {
|
export class EntityUsersComponent implements OnInit {
|
||||||
@Input() entity: "group" | "collection";
|
@Input() entity: "group" | "collection";
|
||||||
@@ -35,7 +33,6 @@ export class EntityUsersComponent implements OnInit {
|
|||||||
private allUsers: OrganizationUserUserDetailsResponse[] = [];
|
private allUsers: OrganizationUserUserDetailsResponse[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private search: SearchPipe,
|
|
||||||
private apiService: ApiService,
|
private apiService: ApiService,
|
||||||
private i18nService: I18nService,
|
private i18nService: I18nService,
|
||||||
private platformUtilsService: PlatformUtilsService,
|
private platformUtilsService: PlatformUtilsService,
|
||||||
@@ -55,14 +52,6 @@ export class EntityUsersComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get searchedUsers() {
|
|
||||||
return this.search.transform(this.users, this.searchText, "name", "email", "id");
|
|
||||||
}
|
|
||||||
|
|
||||||
get scrollViewportStyle() {
|
|
||||||
return `min-height: 120px; height: ${120 + this.searchedUsers.length * 46}px`;
|
|
||||||
}
|
|
||||||
|
|
||||||
async loadUsers() {
|
async loadUsers() {
|
||||||
const users = await this.apiService.getOrganizationUsers(this.organizationId);
|
const users = await this.apiService.getOrganizationUsers(this.organizationId);
|
||||||
this.allUsers = users.data.map((r) => r).sort(Utils.getSortFunction(this.i18nService, "email"));
|
this.allUsers = users.data.map((r) => r).sort(Utils.getSortFunction(this.i18nService, "email"));
|
||||||
@@ -12,8 +12,7 @@ import { SearchService } from "jslib-common/abstractions/search.service";
|
|||||||
import { Utils } from "jslib-common/misc/utils";
|
import { Utils } from "jslib-common/misc/utils";
|
||||||
import { GroupResponse } from "jslib-common/models/response/groupResponse";
|
import { GroupResponse } from "jslib-common/models/response/groupResponse";
|
||||||
|
|
||||||
import { EntityUsersComponent } from "../../modules/organizations/manage/entity-users.component";
|
import { EntityUsersComponent } from "./entity-users.component";
|
||||||
|
|
||||||
import { GroupAddEditComponent } from "./group-add-edit.component";
|
import { GroupAddEditComponent } from "./group-add-edit.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -14,50 +14,62 @@
|
|||||||
#form
|
#form
|
||||||
(ngSubmit)="submit()"
|
(ngSubmit)="submit()"
|
||||||
[appApiAction]="formPromise"
|
[appApiAction]="formPromise"
|
||||||
[formGroup]="formData"
|
ngNativeValidate
|
||||||
>
|
>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<bit-form-field>
|
<div class="form-group">
|
||||||
<bit-label>{{ "organizationName" | i18n }}</bit-label>
|
<label for="name">{{ "organizationName" | i18n }}</label>
|
||||||
<input bitInput type="text" formControlName="name" />
|
<input
|
||||||
</bit-form-field>
|
id="name"
|
||||||
|
class="form-control"
|
||||||
<bit-form-field>
|
type="text"
|
||||||
<bit-label>{{ "billingEmail" | i18n }}</bit-label>
|
name="Name"
|
||||||
<input bitInput type="email" formControlName="billingEmail" />
|
[(ngModel)]="org.name"
|
||||||
</bit-form-field>
|
[disabled]="selfHosted"
|
||||||
|
/>
|
||||||
<bit-form-field>
|
</div>
|
||||||
<bit-label>{{ "businessName" | i18n }}</bit-label>
|
<div class="form-group">
|
||||||
<input bitInput type="text" formControlName="businessName" />
|
<label for="billingEmail">{{ "billingEmail" | i18n }}</label>
|
||||||
</bit-form-field>
|
<input
|
||||||
|
id="billingEmail"
|
||||||
<bit-form-field>
|
class="form-control"
|
||||||
<bit-label>{{ "identifier" | i18n }}</bit-label>
|
type="text"
|
||||||
<input bitInput type="text" formControlName="identifier" />
|
name="BillingEmail"
|
||||||
</bit-form-field>
|
[(ngModel)]="org.billingEmail"
|
||||||
|
[disabled]="selfHosted || !canManageBilling"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="businessName">{{ "businessName" | i18n }}</label>
|
||||||
|
<input
|
||||||
|
id="businessName"
|
||||||
|
class="form-control"
|
||||||
|
type="text"
|
||||||
|
name="BusinessName"
|
||||||
|
[(ngModel)]="org.businessName"
|
||||||
|
[disabled]="selfHosted || !canManageBilling"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="identifier">{{ "identifier" | i18n }}</label>
|
||||||
|
<input
|
||||||
|
id="identifier"
|
||||||
|
class="form-control"
|
||||||
|
type="text"
|
||||||
|
name="Identifier"
|
||||||
|
[(ngModel)]="org.identifier"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<app-avatar
|
<app-avatar data="{{ org.name }}" dynamic="true" size="75" fontSize="35"></app-avatar>
|
||||||
[data]="formData.get('name').value"
|
|
||||||
dynamic="true"
|
|
||||||
size="75"
|
|
||||||
fontSize="35"
|
|
||||||
></app-avatar>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||||
type="submit"
|
|
||||||
bit-button
|
|
||||||
buttonType="primary"
|
|
||||||
class="btn-submit"
|
|
||||||
[disabled]="form.loading"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "save" | i18n }}</span>
|
<span>{{ "save" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
<bit-error-summary *ngIf="showErrorSummary" [formGroup]="formData"></bit-error-summary>
|
|
||||||
</form>
|
</form>
|
||||||
<ng-container *ngIf="canUseApi">
|
<ng-container *ngIf="canUseApi">
|
||||||
<div class="secondary-header border-0 mb-0">
|
<div class="secondary-header border-0 mb-0">
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { Component, ViewChild, ViewContainerRef } from "@angular/core";
|
import { Component, ViewChild, ViewContainerRef } from "@angular/core";
|
||||||
import { FormBuilder, Validators } from "@angular/forms";
|
|
||||||
import { ActivatedRoute, Router } from "@angular/router";
|
import { ActivatedRoute, Router } from "@angular/router";
|
||||||
|
|
||||||
import { ModalService } from "jslib-angular/services/modal.service";
|
import { ModalService } from "jslib-angular/services/modal.service";
|
||||||
@@ -42,19 +41,10 @@ export class AccountComponent {
|
|||||||
org: OrganizationResponse;
|
org: OrganizationResponse;
|
||||||
formPromise: Promise<any>;
|
formPromise: Promise<any>;
|
||||||
taxFormPromise: Promise<any>;
|
taxFormPromise: Promise<any>;
|
||||||
showErrorSummary = false;
|
|
||||||
|
|
||||||
private organizationId: string;
|
private organizationId: string;
|
||||||
|
|
||||||
formData = this.formBuilder.group({
|
|
||||||
name: ["", [Validators.required]],
|
|
||||||
billingEmail: ["", [Validators.required, Validators.email]],
|
|
||||||
businessName: [],
|
|
||||||
identifier: [],
|
|
||||||
});
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
|
||||||
private modalService: ModalService,
|
private modalService: ModalService,
|
||||||
private apiService: ApiService,
|
private apiService: ApiService,
|
||||||
private i18nService: I18nService,
|
private i18nService: I18nService,
|
||||||
@@ -70,12 +60,6 @@ export class AccountComponent {
|
|||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.selfHosted = this.platformUtilsService.isSelfHost();
|
this.selfHosted = this.platformUtilsService.isSelfHost();
|
||||||
|
|
||||||
if (this.selfHosted) {
|
|
||||||
this.formData.disable();
|
|
||||||
} else {
|
|
||||||
this.formData.enable();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.route.parent.parent.params.subscribe(async (params) => {
|
this.route.parent.parent.params.subscribe(async (params) => {
|
||||||
this.organizationId = params.organizationId;
|
this.organizationId = params.organizationId;
|
||||||
this.canManageBilling = (
|
this.canManageBilling = (
|
||||||
@@ -84,13 +68,6 @@ export class AccountComponent {
|
|||||||
try {
|
try {
|
||||||
this.org = await this.apiService.getOrganization(this.organizationId);
|
this.org = await this.apiService.getOrganization(this.organizationId);
|
||||||
this.canUseApi = this.org.useApi;
|
this.canUseApi = this.org.useApi;
|
||||||
|
|
||||||
this.formData.setValue({
|
|
||||||
name: this.org.name,
|
|
||||||
billingEmail: this.org.billingEmail,
|
|
||||||
businessName: this.org.businessName,
|
|
||||||
identifier: this.org.identifier,
|
|
||||||
});
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
@@ -99,19 +76,12 @@ export class AccountComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async submit() {
|
async submit() {
|
||||||
this.formData.markAllAsTouched();
|
|
||||||
this.showErrorSummary = true;
|
|
||||||
|
|
||||||
if (!this.formData.valid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const request = new OrganizationUpdateRequest();
|
const request = new OrganizationUpdateRequest();
|
||||||
request.name = this.formData.get("name").value;
|
request.name = this.org.name;
|
||||||
request.businessName = this.formData.get("businessName").value;
|
request.businessName = this.org.businessName;
|
||||||
request.billingEmail = this.formData.get("billingEmail").value;
|
request.billingEmail = this.org.billingEmail;
|
||||||
request.identifier = this.formData.get("identifier").value;
|
request.identifier = this.org.identifier;
|
||||||
|
|
||||||
// Backfill pub/priv key if necessary
|
// Backfill pub/priv key if necessary
|
||||||
if (!this.org.hasPublicAndPrivateKeys) {
|
if (!this.org.hasPublicAndPrivateKeys) {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
import { LooseComponentsModule } from "./modules/loose-components.module";
|
import { LooseComponentsModule } from "./modules/loose-components.module";
|
||||||
import { OrganizationManageModule } from "./modules/organizations/manage/organization-manage.module";
|
|
||||||
import { PipesModule } from "./modules/pipes/pipes.module";
|
import { PipesModule } from "./modules/pipes/pipes.module";
|
||||||
import { SharedModule } from "./modules/shared.module";
|
import { SharedModule } from "./modules/shared.module";
|
||||||
import { VaultFilterModule } from "./modules/vault-filter/vault-filter.module";
|
import { VaultFilterModule } from "./modules/vault-filter/vault-filter.module";
|
||||||
@@ -14,7 +13,6 @@ import { OrganizationBadgeModule } from "./modules/vault/modules/organization-ba
|
|||||||
VaultFilterModule,
|
VaultFilterModule,
|
||||||
OrganizationBadgeModule,
|
OrganizationBadgeModule,
|
||||||
PipesModule,
|
PipesModule,
|
||||||
OrganizationManageModule,
|
|
||||||
],
|
],
|
||||||
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
||||||
bootstrap: [],
|
bootstrap: [],
|
||||||
|
|||||||
@@ -307,6 +307,9 @@ export class EventService {
|
|||||||
case EventType.Organization_DisabledKeyConnector:
|
case EventType.Organization_DisabledKeyConnector:
|
||||||
msg = humanReadableMsg = this.i18nService.t("disabledKeyConnector");
|
msg = humanReadableMsg = this.i18nService.t("disabledKeyConnector");
|
||||||
break;
|
break;
|
||||||
|
case EventType.Organization_SponsorshipsSynced:
|
||||||
|
msg = humanReadableMsg = this.i18nService.t("sponsorshipsSynced");
|
||||||
|
break;
|
||||||
// Policies
|
// Policies
|
||||||
case EventType.Policy_Updated: {
|
case EventType.Policy_Updated: {
|
||||||
msg = this.i18nService.t("modifiedPolicyId", this.formatPolicyId(ev));
|
msg = this.i18nService.t("modifiedPolicyId", this.formatPolicyId(ev));
|
||||||
|
|||||||
@@ -73,14 +73,10 @@ export class TaxInfoComponent {
|
|||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
try {
|
const taxInfo = await this.apiService.getTaxInfo();
|
||||||
const taxInfo = await this.apiService.getTaxInfo();
|
if (taxInfo) {
|
||||||
if (taxInfo) {
|
this.taxInfo.postalCode = taxInfo.postalCode;
|
||||||
this.taxInfo.postalCode = taxInfo.postalCode;
|
this.taxInfo.country = taxInfo.country || "US";
|
||||||
this.taxInfo.country = taxInfo.country || "US";
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
this.logService.error(e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.pristine = Object.assign({}, this.taxInfo);
|
this.pristine = Object.assign({}, this.taxInfo);
|
||||||
@@ -90,16 +86,9 @@ export class TaxInfoComponent {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
const taxRates = await this.apiService.getTaxRates();
|
||||||
const taxRates = await this.apiService.getTaxRates();
|
this.taxRates = taxRates.data;
|
||||||
if (taxRates) {
|
this.loading = false;
|
||||||
this.taxRates = taxRates.data;
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
this.logService.error(e);
|
|
||||||
} finally {
|
|
||||||
this.loading = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get taxRate() {
|
get taxRate() {
|
||||||
|
|||||||
@@ -4674,8 +4674,8 @@
|
|||||||
"removeSponsorshipSuccess": {
|
"removeSponsorshipSuccess": {
|
||||||
"message": "Sponsorship Removed"
|
"message": "Sponsorship Removed"
|
||||||
},
|
},
|
||||||
"ssoKeyConnectorUnavailable": {
|
"ssoKeyConnectorError": {
|
||||||
"message": "Unable to reach the Key Connector, try again later."
|
"message": "Key Connector error: make sure Key Connector is available and working correctly."
|
||||||
},
|
},
|
||||||
"keyConnectorUrl": {
|
"keyConnectorUrl": {
|
||||||
"message": "Key Connector URL"
|
"message": "Key Connector URL"
|
||||||
@@ -5041,6 +5041,9 @@
|
|||||||
"message": "Last Sync",
|
"message": "Last Sync",
|
||||||
"Description": "Used as a prefix to indicate the last time a sync occured. Example \"Last sync 1968-11-16 00:00:00\""
|
"Description": "Used as a prefix to indicate the last time a sync occured. Example \"Last sync 1968-11-16 00:00:00\""
|
||||||
},
|
},
|
||||||
|
"sponsorshipsSynced": {
|
||||||
|
"message": "Self-hosted sponsorships synced."
|
||||||
|
},
|
||||||
"billingManagedByProvider": {
|
"billingManagedByProvider": {
|
||||||
"message": "Managed by $PROVIDER$",
|
"message": "Managed by $PROVIDER$",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
@@ -5066,20 +5069,5 @@
|
|||||||
},
|
},
|
||||||
"apiAccessToken": {
|
"apiAccessToken": {
|
||||||
"message": "API Access Token"
|
"message": "API Access Token"
|
||||||
},
|
|
||||||
"inputRequired": {
|
|
||||||
"message": "Input is required."
|
|
||||||
},
|
|
||||||
"inputEmail": {
|
|
||||||
"message": "Input is not an email-address."
|
|
||||||
},
|
|
||||||
"fieldsNeedAttention": {
|
|
||||||
"message": "$COUNT$ field(s) above need your attention.",
|
|
||||||
"placeholders": {
|
|
||||||
"count": {
|
|
||||||
"content": "$1",
|
|
||||||
"example": "4"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,14 +14,6 @@
|
|||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.create-organization-link {
|
|
||||||
&:hover {
|
|
||||||
@include themify($themes) {
|
|
||||||
color: themed("iconHover") !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@extend .no-btn;
|
@extend .no-btn;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,60 +204,8 @@ const devServer =
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
key: "Content-Security-Policy",
|
key: "Content-Security-Policy",
|
||||||
value: `
|
value:
|
||||||
default-src 'self';
|
"default-src 'self'; script-src 'self' 'sha256-ryoU+5+IUZTuUyTElqkrQGBJXr1brEv6r2CA62WUw8w=' https://js.stripe.com https://js.braintreegateway.com https://www.paypalobjects.com; style-src 'self' https://assets.braintreegateway.com https://*.paypal.com 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4='; img-src 'self' data: https://icons.bitwarden.net https://*.paypal.com https://www.paypalobjects.com https://q.stripe.com https://haveibeenpwned.com https://www.gravatar.com; child-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com; frame-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com; connect-src 'self' wss://notifications.bitwarden.com https://notifications.bitwarden.com https://cdn.bitwarden.net https://api.pwnedpasswords.com https://2fa.directory/api/v3/totp.json https://api.stripe.com https://www.paypal.com https://api.braintreegateway.com https://client-analytics.braintreegateway.com https://*.braintree-api.com https://*.blob.core.windows.net https://app.simplelogin.io/api/alias/random/new https://app.anonaddy.com/api/v1/aliases; object-src 'self' blob:;",
|
||||||
script-src
|
|
||||||
'self'
|
|
||||||
'sha256-ryoU+5+IUZTuUyTElqkrQGBJXr1brEv6r2CA62WUw8w='
|
|
||||||
https://js.stripe.com
|
|
||||||
https://js.braintreegateway.com
|
|
||||||
https://www.paypalobjects.com;
|
|
||||||
style-src
|
|
||||||
'self'
|
|
||||||
https://assets.braintreegateway.com
|
|
||||||
https://*.paypal.com
|
|
||||||
'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='
|
|
||||||
'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4=';
|
|
||||||
'sha256-0xHKHIT3+e2Gknxsm/cpErSprhL+o254L/y5bljg74U='
|
|
||||||
img-src
|
|
||||||
'self'
|
|
||||||
data:
|
|
||||||
https://icons.bitwarden.net
|
|
||||||
https://*.paypal.com
|
|
||||||
https://www.paypalobjects.com
|
|
||||||
https://q.stripe.com
|
|
||||||
https://haveibeenpwned.com
|
|
||||||
https://www.gravatar.com;
|
|
||||||
child-src
|
|
||||||
'self'
|
|
||||||
https://js.stripe.com
|
|
||||||
https://assets.braintreegateway.com
|
|
||||||
https://*.paypal.com
|
|
||||||
https://*.duosecurity.com;
|
|
||||||
frame-src
|
|
||||||
'self'
|
|
||||||
https://js.stripe.com
|
|
||||||
https://assets.braintreegateway.com
|
|
||||||
https://*.paypal.com
|
|
||||||
https://*.duosecurity.com;
|
|
||||||
connect-src
|
|
||||||
'self'
|
|
||||||
wss://notifications.bitwarden.com
|
|
||||||
https://notifications.bitwarden.com
|
|
||||||
https://cdn.bitwarden.net
|
|
||||||
https://api.pwnedpasswords.com
|
|
||||||
https://2fa.directory/api/v3/totp.json
|
|
||||||
https://api.stripe.com
|
|
||||||
https://www.paypal.com
|
|
||||||
https://api.braintreegateway.com
|
|
||||||
https://client-analytics.braintreegateway.com
|
|
||||||
https://*.braintree-api.com
|
|
||||||
https://*.blob.core.windows.net
|
|
||||||
https://app.simplelogin.io/api/alias/random/new
|
|
||||||
https://app.anonaddy.com/api/v1/aliases;
|
|
||||||
object-src
|
|
||||||
'self'
|
|
||||||
blob:;`,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user