1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 18:43:25 +00:00

[EC-251] Fix web local development (#2775)

* Wip

* Fix bitwarden licensed web

* Fix template paths

* Cleanup gitattributes git-blame-ignore-revs

* Fix tsconfig, add postcss and tailwind config to bitwarden_license.

* And done
This commit is contained in:
Oscar Hinton
2022-06-02 17:59:43 +02:00
committed by GitHub
parent 4ce84cad4f
commit 4869a231bf
27 changed files with 3609 additions and 14672 deletions

View File

@@ -1,3 +0,0 @@
# Bitwarden Licensed Code
All source code under this directory is licensed under the [Bitwarden License Agreement](https://github.com/bitwarden/web/blob/master/LICENSE_BITWARDEN.txt).

View File

@@ -7,7 +7,7 @@ import { MaximumVaultTimeoutPolicy } from "./policies/maximum-vault-timeout.comp
@Component({
selector: "app-root",
templateUrl: "../../../src/app/app.component.html",
templateUrl: "../../../../apps/web/src/app/app.component.html",
})
export class AppComponent extends BaseAppComponent {
ngOnInit() {

View File

@@ -8,7 +8,8 @@ import { BulkConfirmComponent as OrganizationBulkConfirmComponent } from "src/ap
import { BulkUserDetails } from "src/app/organizations/manage/bulk/bulk-status.component";
@Component({
templateUrl: "../../../../../../src/app/organizations/manage/bulk/bulk-confirm.component.html",
templateUrl:
"../../../../../../../apps/web/src/app/organizations/manage/bulk/bulk-confirm.component.html",
})
export class BulkConfirmComponent extends OrganizationBulkConfirmComponent {
@Input() providerId: string;

View File

@@ -5,7 +5,8 @@ import { ProviderUserBulkRequest } from "jslib-common/models/request/provider/pr
import { BulkRemoveComponent as OrganizationBulkRemoveComponent } from "src/app/organizations/manage/bulk/bulk-remove.component";
@Component({
templateUrl: "../../../../../../src/app/organizations/manage/bulk/bulk-remove.component.html",
templateUrl:
"../../../../../../../apps/web/src/app/organizations/manage/bulk/bulk-remove.component.html",
})
export class BulkRemoveComponent extends OrganizationBulkRemoveComponent {
@Input() providerId: string;

View File

@@ -0,0 +1,27 @@
{
"extends": "../../apps/web/jslib/shared/tsconfig",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"tldjs": ["../../apps/web/jslib/common/src/misc/tldjs.noop"],
"jslib-common/*": ["../../apps/web/jslib/common/src/*"],
"jslib-angular/*": ["../../apps/web/jslib/angular/src/*"],
"@bitwarden/components": ["../../apps/web/jslib/components/src"],
"src/*": ["../../apps/web/src/*"]
}
},
"angularCompilerOptions": {
"preserveWhitespaces": true
},
"files": [
"../../apps/web/src/app/polyfills.ts",
"../../apps/web/src/app/main.ts",
"src/app/main.ts"
],
"include": [
"../../apps/web/src/connectors/*.ts",
"../../apps/web/src/models/*.ts",
"../../apps/web/src/services/*.ts",
"../../apps/web/src/abstractions/*.ts"
]
}

View File

@@ -1,8 +1,8 @@
const { AngularWebpackPlugin } = require("@ngtools/webpack");
const webpackConfig = require("../webpack.config");
const webpackConfig = require("../../apps/web/webpack.config");
webpackConfig.entry["app/main"] = "./bitwarden_license/src/app/main.ts";
webpackConfig.entry["app/main"] = "../../bitwarden_license/bit-web/src/app/main.ts";
webpackConfig.plugins[webpackConfig.plugins.length - 1] = new AngularWebpackPlugin({
tsConfigPath: "tsconfig.json",
entryModule: "bitwarden_license/src/app/app.module#AppModule",