1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

Remove standalone true from platform and UIF (#15032)

Remove standalone: true from every instance since it's the default as of Angular 19.
This commit is contained in:
Oscar Hinton
2025-06-02 20:03:04 +02:00
committed by GitHub
parent 6107d7d3da
commit 26fb7effd3
129 changed files with 5 additions and 151 deletions

View File

@@ -10,7 +10,6 @@ import BrowserPopupUtils from "../browser-popup-utils";
@Component({
selector: "app-pop-out",
templateUrl: "pop-out.component.html",
standalone: true,
imports: [CommonModule, JslibModule, IconButtonModule],
})
export class PopOutComponent implements OnInit {

View File

@@ -11,7 +11,6 @@ import { enableAccountSwitching } from "../flags";
@Component({
selector: "app-header",
templateUrl: "header.component.html",
standalone: true,
imports: [CommonModule, CurrentAccountComponent],
})
export class HeaderComponent {

View File

@@ -9,7 +9,6 @@ import { PopupRouterCacheService } from "../view-cache/popup-router-cache.servic
/** Navigate the browser popup to the previous page when the component is clicked. */
@Directive({
selector: "[popupBackAction]",
standalone: true,
})
export class PopupBackBrowserDirective extends BitActionDirective {
constructor(

View File

@@ -3,7 +3,6 @@ import { Component } from "@angular/core";
@Component({
selector: "popup-footer",
templateUrl: "popup-footer.component.html",
standalone: true,
imports: [],
})
export class PopupFooterComponent {}

View File

@@ -19,7 +19,6 @@ import { PopupPageComponent } from "./popup-page.component";
@Component({
selector: "popup-header",
templateUrl: "popup-header.component.html",
standalone: true,
imports: [TypographyModule, CommonModule, IconButtonModule, JslibModule, AsyncActionsModule],
})
export class PopupHeaderComponent {

View File

@@ -36,7 +36,6 @@ import { PopupTabNavigationComponent } from "./popup-tab-navigation.component";
<ng-content></ng-content>
</div>
`,
standalone: true,
})
class ExtensionContainerComponent {}
@@ -71,7 +70,6 @@ class ExtensionContainerComponent {}
</bit-item-group>
</bit-section>
`,
standalone: true,
imports: [CommonModule, ItemModule, BadgeModule, IconButtonModule, SectionComponent],
})
class VaultComponent {
@@ -86,7 +84,6 @@ class VaultComponent {
Add
</button>
`,
standalone: true,
imports: [ButtonModule],
})
class MockAddButtonComponent {}
@@ -102,7 +99,6 @@ class MockAddButtonComponent {}
aria-label="Pop out"
></button>
`,
standalone: true,
imports: [IconButtonModule],
})
class MockPopoutButtonComponent {}
@@ -114,7 +110,6 @@ class MockPopoutButtonComponent {}
<bit-avatar text="Ash Ketchum" size="small"></bit-avatar>
</button>
`,
standalone: true,
imports: [AvatarModule],
})
class MockCurrentAccountComponent {}
@@ -122,7 +117,6 @@ class MockCurrentAccountComponent {}
@Component({
selector: "mock-search",
template: ` <bit-search placeholder="Search"> </bit-search> `,
standalone: true,
imports: [SearchModule],
})
class MockSearchComponent {}
@@ -134,7 +128,6 @@ class MockSearchComponent {}
This is an important note about these ciphers
</bit-banner>
`,
standalone: true,
imports: [BannerModule],
})
class MockBannerComponent {}
@@ -154,7 +147,6 @@ class MockBannerComponent {}
<vault-placeholder></vault-placeholder>
</popup-page>
`,
standalone: true,
imports: [
PopupPageComponent,
PopupHeaderComponent,
@@ -180,7 +172,6 @@ class MockVaultPageComponent {}
<vault-placeholder></vault-placeholder>
</popup-page>
`,
standalone: true,
imports: [
PopupPageComponent,
PopupHeaderComponent,
@@ -205,7 +196,6 @@ class MockVaultPagePoppedComponent {}
<div class="tw-text-main">Generator content here</div>
</popup-page>
`,
standalone: true,
imports: [
PopupPageComponent,
PopupHeaderComponent,
@@ -230,7 +220,6 @@ class MockGeneratorPageComponent {}
<div class="tw-text-main">Send content here</div>
</popup-page>
`,
standalone: true,
imports: [
PopupPageComponent,
PopupHeaderComponent,
@@ -255,7 +244,6 @@ class MockSendPageComponent {}
<div class="tw-text-main">Settings content here</div>
</popup-page>
`,
standalone: true,
imports: [
PopupPageComponent,
PopupHeaderComponent,
@@ -283,7 +271,6 @@ class MockSettingsPageComponent {}
</popup-footer>
</popup-page>
`,
standalone: true,
imports: [
PopupPageComponent,
PopupHeaderComponent,

View File

@@ -6,7 +6,6 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
@Component({
selector: "popup-page",
templateUrl: "popup-page.component.html",
standalone: true,
host: {
class: "tw-h-full tw-flex tw-flex-col tw-overflow-y-hidden",
},

View File

@@ -17,7 +17,6 @@ export type NavButton = {
@Component({
selector: "popup-tab-navigation",
templateUrl: "popup-tab-navigation.component.html",
standalone: true,
imports: [CommonModule, LinkModule, RouterModule, JslibModule, IconModule],
host: {
class: "tw-block tw-h-full tw-w-full tw-flex tw-flex-col",

View File

@@ -17,7 +17,6 @@ export type DesktopSyncVerificationDialogParams = {
@Component({
templateUrl: "desktop-sync-verification-dialog.component.html",
standalone: true,
imports: [JslibModule, ButtonModule, DialogModule],
})
export class DesktopSyncVerificationDialogComponent implements OnDestroy, OnInit {