create team owned libs for billing, admin-console, platform (#7233)
* add admin-console lib files * add billing lib files * add platform lib files * update lib references in config files * update package-lock
This commit is contained in:
parent
4644392d5c
commit
b73d73b508
|
@ -139,6 +139,15 @@
|
||||||
"tailwindcss/no-contradicting-classname": "error"
|
"tailwindcss/no-contradicting-classname": "error"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"files": ["libs/admin-console/src/**/*.ts"],
|
||||||
|
"rules": {
|
||||||
|
"no-restricted-imports": [
|
||||||
|
"error",
|
||||||
|
{ "patterns": ["@bitwarden/admin-console/*", "src/**/*"] }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"files": ["libs/angular/src/**/*.ts"],
|
"files": ["libs/angular/src/**/*.ts"],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
@ -151,6 +160,12 @@
|
||||||
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/auth/*", "src/**/*"] }]
|
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/auth/*", "src/**/*"] }]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"files": ["libs/billing/src/**/*.ts"],
|
||||||
|
"rules": {
|
||||||
|
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/billing/*", "src/**/*"] }]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"files": ["libs/common/src/**/*.ts"],
|
"files": ["libs/common/src/**/*.ts"],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
@ -184,6 +199,12 @@
|
||||||
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/node/*", "src/**/*"] }]
|
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/node/*", "src/**/*"] }]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"files": ["libs/platform/src/**/*.ts"],
|
||||||
|
"rules": {
|
||||||
|
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/platform/*", "src/**/*"] }]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"files": ["libs/vault/src/**/*.ts"],
|
"files": ["libs/vault/src/**/*.ts"],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
|
@ -55,11 +55,13 @@ apps/web/src/app/admin-console @bitwarden/team-admin-console-dev
|
||||||
bitwarden_license/bit-web/src/app/admin-console @bitwarden/team-admin-console-dev
|
bitwarden_license/bit-web/src/app/admin-console @bitwarden/team-admin-console-dev
|
||||||
libs/angular/src/admin-console @bitwarden/team-admin-console-dev
|
libs/angular/src/admin-console @bitwarden/team-admin-console-dev
|
||||||
libs/common/src/admin-console @bitwarden/team-admin-console-dev
|
libs/common/src/admin-console @bitwarden/team-admin-console-dev
|
||||||
|
libs/admin-console @bitwarden/team-admin-console-dev
|
||||||
|
|
||||||
## Billing team files ##
|
## Billing team files ##
|
||||||
apps/web/src/app/billing @bitwarden/team-billing-dev
|
apps/web/src/app/billing @bitwarden/team-billing-dev
|
||||||
libs/angular/src/billing @bitwarden/team-billing-dev
|
libs/angular/src/billing @bitwarden/team-billing-dev
|
||||||
libs/common/src/billing @bitwarden/team-billing-dev
|
libs/common/src/billing @bitwarden/team-billing-dev
|
||||||
|
libs/billing @bitwarden/team-billing-dev
|
||||||
|
|
||||||
## Platform team files ##
|
## Platform team files ##
|
||||||
apps/browser/src/platform @bitwarden/team-platform-dev
|
apps/browser/src/platform @bitwarden/team-platform-dev
|
||||||
|
@ -70,6 +72,7 @@ libs/angular/src/platform @bitwarden/team-platform-dev
|
||||||
libs/common/src/platform @bitwarden/team-platform-dev
|
libs/common/src/platform @bitwarden/team-platform-dev
|
||||||
libs/common/spec @bitwarden/team-platform-dev
|
libs/common/spec @bitwarden/team-platform-dev
|
||||||
libs/common/src/state-migrations @bitwarden/team-platform-dev
|
libs/common/src/state-migrations @bitwarden/team-platform-dev
|
||||||
|
libs/platform @bitwarden/team-platform-dev
|
||||||
# Node-specifc platform files
|
# Node-specifc platform files
|
||||||
libs/node @bitwarden/team-platform-dev
|
libs/node @bitwarden/team-platform-dev
|
||||||
# Web utils used across app and connectors
|
# Web utils used across app and connectors
|
||||||
|
|
|
@ -15,7 +15,10 @@
|
||||||
./libs/angular/src/scss/webfonts/Open_Sans-normal-600.woff
|
./libs/angular/src/scss/webfonts/Open_Sans-normal-600.woff
|
||||||
./libs/angular/src/scss/webfonts/Open_Sans-normal-800.woff
|
./libs/angular/src/scss/webfonts/Open_Sans-normal-800.woff
|
||||||
./libs/angular/src/scss/webfonts/Open_Sans-normal-400.woff
|
./libs/angular/src/scss/webfonts/Open_Sans-normal-400.woff
|
||||||
|
./libs/admin-console/README.md
|
||||||
./libs/auth/README.md
|
./libs/auth/README.md
|
||||||
|
./libs/billing/README.md
|
||||||
|
./libs/platform/README.md
|
||||||
./libs/tools/README.md
|
./libs/tools/README.md
|
||||||
./libs/vault/README.md
|
./libs/vault/README.md
|
||||||
./README.md
|
./README.md
|
||||||
|
|
|
@ -10,13 +10,16 @@
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@bitwarden/admin-console": ["../../libs/admin-console/src"],
|
||||||
"@bitwarden/angular/*": ["../../libs/angular/src/*"],
|
"@bitwarden/angular/*": ["../../libs/angular/src/*"],
|
||||||
"@bitwarden/auth": ["../../libs/auth/src"],
|
"@bitwarden/auth": ["../../libs/auth/src"],
|
||||||
|
"@bitwarden/billing": ["../../libs/billing/src"],
|
||||||
"@bitwarden/common/*": ["../../libs/common/src/*"],
|
"@bitwarden/common/*": ["../../libs/common/src/*"],
|
||||||
"@bitwarden/components": ["../../libs/components/src"],
|
"@bitwarden/components": ["../../libs/components/src"],
|
||||||
"@bitwarden/exporter/*": ["../../libs/exporter/src/*"],
|
"@bitwarden/exporter/*": ["../../libs/exporter/src/*"],
|
||||||
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
||||||
|
"@bitwarden/platform": ["../../libs/platform/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"]
|
"@bitwarden/vault": ["../../libs/vault/src"]
|
||||||
},
|
},
|
||||||
"useDefineForClassFields": false
|
"useDefineForClassFields": false
|
||||||
|
|
|
@ -10,14 +10,17 @@
|
||||||
"types": [],
|
"types": [],
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@bitwarden/admin-console": ["../../libs/admin-console/src"],
|
||||||
"@bitwarden/angular/*": ["../../libs/angular/src/*"],
|
"@bitwarden/angular/*": ["../../libs/angular/src/*"],
|
||||||
"@bitwarden/auth": ["../../libs/auth/src"],
|
"@bitwarden/auth": ["../../libs/auth/src"],
|
||||||
|
"@bitwarden/billing": ["../../libs/billing/src"],
|
||||||
"@bitwarden/common/*": ["../../libs/common/src/*"],
|
"@bitwarden/common/*": ["../../libs/common/src/*"],
|
||||||
"@bitwarden/components": ["../../libs/components/src"],
|
"@bitwarden/components": ["../../libs/components/src"],
|
||||||
"@bitwarden/exporter/*": ["../../libs/exporter/src/*"],
|
"@bitwarden/exporter/*": ["../../libs/exporter/src/*"],
|
||||||
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
||||||
"@bitwarden/node/*": ["../../libs/node/src/*"],
|
"@bitwarden/node/*": ["../../libs/node/src/*"],
|
||||||
|
"@bitwarden/platform": ["../../libs/platform/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"]
|
"@bitwarden/vault": ["../../libs/vault/src"]
|
||||||
},
|
},
|
||||||
"useDefineForClassFields": false
|
"useDefineForClassFields": false
|
||||||
|
|
|
@ -5,13 +5,16 @@
|
||||||
"module": "ES2020",
|
"module": "ES2020",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@bitwarden/admin-console": ["../../libs/admin-console/src"],
|
||||||
"@bitwarden/angular/*": ["../../libs/angular/src/*"],
|
"@bitwarden/angular/*": ["../../libs/angular/src/*"],
|
||||||
"@bitwarden/auth": ["../../libs/auth/src"],
|
"@bitwarden/auth": ["../../libs/auth/src"],
|
||||||
|
"@bitwarden/billing": ["../../libs/billing/src"],
|
||||||
"@bitwarden/common/*": ["../../libs/common/src/*"],
|
"@bitwarden/common/*": ["../../libs/common/src/*"],
|
||||||
"@bitwarden/components": ["../../libs/components/src"],
|
"@bitwarden/components": ["../../libs/components/src"],
|
||||||
"@bitwarden/exporter/*": ["../../libs/exporter/src/*"],
|
"@bitwarden/exporter/*": ["../../libs/exporter/src/*"],
|
||||||
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
||||||
|
"@bitwarden/platform": ["../../libs/platform/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"],
|
"@bitwarden/vault": ["../../libs/vault/src"],
|
||||||
"@bitwarden/web-vault/*": ["src/*"]
|
"@bitwarden/web-vault/*": ["src/*"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,14 @@
|
||||||
"extends": "../../apps/web/tsconfig",
|
"extends": "../../apps/web/tsconfig",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@bitwarden/admin-console": ["../../libs/admin-console/src"],
|
||||||
"@bitwarden/angular/*": ["../../libs/angular/src/*"],
|
"@bitwarden/angular/*": ["../../libs/angular/src/*"],
|
||||||
"@bitwarden/auth": ["../../libs/auth/src"],
|
"@bitwarden/auth": ["../../libs/auth/src"],
|
||||||
|
"@bitwarden/billing": ["../../libs/billing/src"],
|
||||||
"@bitwarden/common/*": ["../../libs/common/src/*"],
|
"@bitwarden/common/*": ["../../libs/common/src/*"],
|
||||||
"@bitwarden/components": ["../../libs/components/src"],
|
"@bitwarden/components": ["../../libs/components/src"],
|
||||||
"@bitwarden/exporter/*": ["../../libs/exporter/src/*"],
|
"@bitwarden/exporter/*": ["../../libs/exporter/src/*"],
|
||||||
|
"@bitwarden/platform": ["../../libs/platform/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"],
|
"@bitwarden/vault": ["../../libs/vault/src"],
|
||||||
"@bitwarden/web-vault/*": ["../../apps/web/src/*"]
|
"@bitwarden/web-vault/*": ["../../apps/web/src/*"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,12 +20,15 @@ module.exports = {
|
||||||
"<rootDir>/apps/web/jest.config.js",
|
"<rootDir>/apps/web/jest.config.js",
|
||||||
"<rootDir>/bitwarden_license/bit-web/jest.config.js",
|
"<rootDir>/bitwarden_license/bit-web/jest.config.js",
|
||||||
|
|
||||||
|
"<rootDir>/libs/admin-console/jest.config.js",
|
||||||
"<rootDir>/libs/angular/jest.config.js",
|
"<rootDir>/libs/angular/jest.config.js",
|
||||||
"<rootDir>/libs/auth/jest.config.js",
|
"<rootDir>/libs/auth/jest.config.js",
|
||||||
|
"<rootDir>/libs/billing/jest.config.js",
|
||||||
"<rootDir>/libs/common/jest.config.js",
|
"<rootDir>/libs/common/jest.config.js",
|
||||||
"<rootDir>/libs/components/jest.config.js",
|
"<rootDir>/libs/components/jest.config.js",
|
||||||
"<rootDir>/libs/exporter/jest.config.js",
|
"<rootDir>/libs/exporter/jest.config.js",
|
||||||
"<rootDir>/libs/importer/jest.config.js",
|
"<rootDir>/libs/importer/jest.config.js",
|
||||||
|
"<rootDir>/libs/platform/jest.config.js",
|
||||||
"<rootDir>/libs/node/jest.config.js",
|
"<rootDir>/libs/node/jest.config.js",
|
||||||
"<rootDir>/libs/vault/jest.config.js",
|
"<rootDir>/libs/vault/jest.config.js",
|
||||||
],
|
],
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Admin Console
|
||||||
|
|
||||||
|
This lib represents the public API of the Admin Console team at Bitwarden. Modules are imported using `@bitwarden/admin-console`.
|
|
@ -0,0 +1,16 @@
|
||||||
|
const { pathsToModuleNameMapper } = require("ts-jest");
|
||||||
|
|
||||||
|
const { compilerOptions } = require("../shared/tsconfig.libs");
|
||||||
|
|
||||||
|
const sharedConfig = require("../../libs/shared/jest.config.angular");
|
||||||
|
|
||||||
|
/** @type {import('jest').Config} */
|
||||||
|
module.exports = {
|
||||||
|
...sharedConfig,
|
||||||
|
displayName: "libs/admin-console tests",
|
||||||
|
preset: "jest-preset-angular",
|
||||||
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
||||||
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
||||||
|
prefix: "<rootDir>/",
|
||||||
|
}),
|
||||||
|
};
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"name": "@bitwarden/admin-console",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "Common code used across Bitwarden JavaScript projects.",
|
||||||
|
"keywords": [
|
||||||
|
"bitwarden"
|
||||||
|
],
|
||||||
|
"author": "Bitwarden Inc.",
|
||||||
|
"homepage": "https://bitwarden.com",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/bitwarden/clients"
|
||||||
|
},
|
||||||
|
"license": "GPL-3.0",
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rimraf dist",
|
||||||
|
"build": "npm run clean && tsc",
|
||||||
|
"build:watch": "npm run clean && tsc -watch"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
import { webcrypto } from "crypto";
|
||||||
|
import "jest-preset-angular/setup-jest";
|
||||||
|
|
||||||
|
Object.defineProperty(window, "CSS", { value: null });
|
||||||
|
Object.defineProperty(window, "getComputedStyle", {
|
||||||
|
value: () => {
|
||||||
|
return {
|
||||||
|
display: "none",
|
||||||
|
appearance: ["-webkit-appearance"],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.defineProperty(document, "doctype", {
|
||||||
|
value: "<!DOCTYPE html>",
|
||||||
|
});
|
||||||
|
Object.defineProperty(document.body.style, "transform", {
|
||||||
|
value: () => {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.defineProperty(window, "crypto", {
|
||||||
|
value: webcrypto,
|
||||||
|
});
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"extends": "../shared/tsconfig.libs",
|
||||||
|
"include": ["src", "spec"],
|
||||||
|
"exclude": ["node_modules", "dist"]
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"files": ["./test.setup.ts"]
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Billing
|
||||||
|
|
||||||
|
This lib represents the public API of the Billing team at Bitwarden. Modules are imported using `@bitwarden/billing`.
|
|
@ -0,0 +1,16 @@
|
||||||
|
const { pathsToModuleNameMapper } = require("ts-jest");
|
||||||
|
|
||||||
|
const { compilerOptions } = require("../shared/tsconfig.libs");
|
||||||
|
|
||||||
|
const sharedConfig = require("../../libs/shared/jest.config.angular");
|
||||||
|
|
||||||
|
/** @type {import('jest').Config} */
|
||||||
|
module.exports = {
|
||||||
|
...sharedConfig,
|
||||||
|
displayName: "libs/billing tests",
|
||||||
|
preset: "jest-preset-angular",
|
||||||
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
||||||
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
||||||
|
prefix: "<rootDir>/",
|
||||||
|
}),
|
||||||
|
};
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"name": "@bitwarden/billing",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "Common code used across Bitwarden JavaScript projects.",
|
||||||
|
"keywords": [
|
||||||
|
"bitwarden"
|
||||||
|
],
|
||||||
|
"author": "Bitwarden Inc.",
|
||||||
|
"homepage": "https://bitwarden.com",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/bitwarden/clients"
|
||||||
|
},
|
||||||
|
"license": "GPL-3.0",
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rimraf dist",
|
||||||
|
"build": "npm run clean && tsc",
|
||||||
|
"build:watch": "npm run clean && tsc -watch"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
import { webcrypto } from "crypto";
|
||||||
|
import "jest-preset-angular/setup-jest";
|
||||||
|
|
||||||
|
Object.defineProperty(window, "CSS", { value: null });
|
||||||
|
Object.defineProperty(window, "getComputedStyle", {
|
||||||
|
value: () => {
|
||||||
|
return {
|
||||||
|
display: "none",
|
||||||
|
appearance: ["-webkit-appearance"],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.defineProperty(document, "doctype", {
|
||||||
|
value: "<!DOCTYPE html>",
|
||||||
|
});
|
||||||
|
Object.defineProperty(document.body.style, "transform", {
|
||||||
|
value: () => {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.defineProperty(window, "crypto", {
|
||||||
|
value: webcrypto,
|
||||||
|
});
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"extends": "../shared/tsconfig.libs",
|
||||||
|
"include": ["src", "spec"],
|
||||||
|
"exclude": ["node_modules", "dist"]
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"files": ["./test.setup.ts"]
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Platform
|
||||||
|
|
||||||
|
This lib represents the public API of the Platform team at Bitwarden. Modules are imported using `@bitwarden/platform`.
|
|
@ -0,0 +1,16 @@
|
||||||
|
const { pathsToModuleNameMapper } = require("ts-jest");
|
||||||
|
|
||||||
|
const { compilerOptions } = require("../shared/tsconfig.libs");
|
||||||
|
|
||||||
|
const sharedConfig = require("../../libs/shared/jest.config.angular");
|
||||||
|
|
||||||
|
/** @type {import('jest').Config} */
|
||||||
|
module.exports = {
|
||||||
|
...sharedConfig,
|
||||||
|
displayName: "libs/platform tests",
|
||||||
|
preset: "jest-preset-angular",
|
||||||
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
||||||
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
||||||
|
prefix: "<rootDir>/",
|
||||||
|
}),
|
||||||
|
};
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"name": "@bitwarden/platform",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "Common code used across Bitwarden JavaScript projects.",
|
||||||
|
"keywords": [
|
||||||
|
"bitwarden"
|
||||||
|
],
|
||||||
|
"author": "Bitwarden Inc.",
|
||||||
|
"homepage": "https://bitwarden.com",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/bitwarden/clients"
|
||||||
|
},
|
||||||
|
"license": "GPL-3.0",
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rimraf dist",
|
||||||
|
"build": "npm run clean && tsc",
|
||||||
|
"build:watch": "npm run clean && tsc -watch"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
import { webcrypto } from "crypto";
|
||||||
|
import "jest-preset-angular/setup-jest";
|
||||||
|
|
||||||
|
Object.defineProperty(window, "CSS", { value: null });
|
||||||
|
Object.defineProperty(window, "getComputedStyle", {
|
||||||
|
value: () => {
|
||||||
|
return {
|
||||||
|
display: "none",
|
||||||
|
appearance: ["-webkit-appearance"],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.defineProperty(document, "doctype", {
|
||||||
|
value: "<!DOCTYPE html>",
|
||||||
|
});
|
||||||
|
Object.defineProperty(document.body.style, "transform", {
|
||||||
|
value: () => {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.defineProperty(window, "crypto", {
|
||||||
|
value: webcrypto,
|
||||||
|
});
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"extends": "../shared/tsconfig.libs",
|
||||||
|
"include": ["src", "spec"],
|
||||||
|
"exclude": ["node_modules", "dist"]
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"files": ["./test.setup.ts"]
|
||||||
|
}
|
|
@ -2,13 +2,16 @@
|
||||||
"extends": "./tsconfig",
|
"extends": "./tsconfig",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@bitwarden/admin-console": ["../admin-console/src"],
|
||||||
"@bitwarden/angular/*": ["../angular/src/*"],
|
"@bitwarden/angular/*": ["../angular/src/*"],
|
||||||
"@bitwarden/auth": ["../auth/src"],
|
"@bitwarden/auth": ["../auth/src"],
|
||||||
|
"@bitwarden/billing": ["../billing/src"],
|
||||||
"@bitwarden/common/*": ["../common/src/*"],
|
"@bitwarden/common/*": ["../common/src/*"],
|
||||||
"@bitwarden/components": ["../components/src"],
|
"@bitwarden/components": ["../components/src"],
|
||||||
"@bitwarden/exporter/*": ["../exporter/src/*"],
|
"@bitwarden/exporter/*": ["../exporter/src/*"],
|
||||||
"@bitwarden/importer/core": ["../importer/src"],
|
"@bitwarden/importer/core": ["../importer/src"],
|
||||||
"@bitwarden/importer/ui": ["../importer/src/components"],
|
"@bitwarden/importer/ui": ["../importer/src/components"],
|
||||||
|
"@bitwarden/platform": ["../platform/src"],
|
||||||
"@bitwarden/node/*": ["../node/src/*"],
|
"@bitwarden/node/*": ["../node/src/*"],
|
||||||
"@bitwarden/vault": ["../vault/src"]
|
"@bitwarden/vault": ["../vault/src"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -262,6 +262,10 @@
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2023.12.0"
|
"version": "2023.12.0"
|
||||||
},
|
},
|
||||||
|
"libs/admin-console": {
|
||||||
|
"version": "0.0.0",
|
||||||
|
"license": "GPL-3.0"
|
||||||
|
},
|
||||||
"libs/angular": {
|
"libs/angular": {
|
||||||
"name": "@bitwarden/angular",
|
"name": "@bitwarden/angular",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
|
@ -272,6 +276,10 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"license": "GPL-3.0"
|
"license": "GPL-3.0"
|
||||||
},
|
},
|
||||||
|
"libs/billing": {
|
||||||
|
"version": "0.0.0",
|
||||||
|
"license": "GPL-3.0"
|
||||||
|
},
|
||||||
"libs/common": {
|
"libs/common": {
|
||||||
"name": "@bitwarden/common",
|
"name": "@bitwarden/common",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
|
@ -306,6 +314,10 @@
|
||||||
"@bitwarden/common": "file:../common"
|
"@bitwarden/common": "file:../common"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"libs/platform": {
|
||||||
|
"version": "0.0.0",
|
||||||
|
"license": "GPL-3.0"
|
||||||
|
},
|
||||||
"libs/vault": {
|
"libs/vault": {
|
||||||
"name": "@bitwarden/vault",
|
"name": "@bitwarden/vault",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
|
@ -4577,6 +4589,10 @@
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true
|
"peer": true
|
||||||
},
|
},
|
||||||
|
"node_modules/@bitwarden/admin-console": {
|
||||||
|
"resolved": "libs/admin-console",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
"node_modules/@bitwarden/angular": {
|
"node_modules/@bitwarden/angular": {
|
||||||
"resolved": "libs/angular",
|
"resolved": "libs/angular",
|
||||||
"link": true
|
"link": true
|
||||||
|
@ -4585,6 +4601,10 @@
|
||||||
"resolved": "libs/auth",
|
"resolved": "libs/auth",
|
||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
|
"node_modules/@bitwarden/billing": {
|
||||||
|
"resolved": "libs/billing",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
"node_modules/@bitwarden/browser": {
|
"node_modules/@bitwarden/browser": {
|
||||||
"resolved": "apps/browser",
|
"resolved": "apps/browser",
|
||||||
"link": true
|
"link": true
|
||||||
|
@ -4621,6 +4641,10 @@
|
||||||
"resolved": "libs/node",
|
"resolved": "libs/node",
|
||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
|
"node_modules/@bitwarden/platform": {
|
||||||
|
"resolved": "libs/platform",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
"node_modules/@bitwarden/vault": {
|
"node_modules/@bitwarden/vault": {
|
||||||
"resolved": "libs/vault",
|
"resolved": "libs/vault",
|
||||||
"link": true
|
"link": true
|
||||||
|
|
|
@ -3,7 +3,10 @@ const config = require("./libs/components/tailwind.config.base");
|
||||||
|
|
||||||
config.content = [
|
config.content = [
|
||||||
"./libs/components/src/**/*.{html,ts,mdx}",
|
"./libs/components/src/**/*.{html,ts,mdx}",
|
||||||
|
"./libs/admin-console/src/**/*.{html,ts,mdx}",
|
||||||
"./libs/auth/src/**/*.{html,ts,mdx}",
|
"./libs/auth/src/**/*.{html,ts,mdx}",
|
||||||
|
"./libs/billing/src/**/*.{html,ts,mdx}",
|
||||||
|
"./libs/platform/src/**/*.{html,ts,mdx}",
|
||||||
"./libs/vault/src/**/*.{html,ts,mdx}",
|
"./libs/vault/src/**/*.{html,ts,mdx}",
|
||||||
"./apps/web/src/**/*.{html,ts,mdx}",
|
"./apps/web/src/**/*.{html,ts,mdx}",
|
||||||
"./bitwarden_license/bit-web/src/**/*.{html,ts,mdx}",
|
"./bitwarden_license/bit-web/src/**/*.{html,ts,mdx}",
|
||||||
|
|
|
@ -15,13 +15,16 @@
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@bitwarden/admin-console": ["./libs/admin-console/src"],
|
||||||
"@bitwarden/angular/*": ["./libs/angular/src/*"],
|
"@bitwarden/angular/*": ["./libs/angular/src/*"],
|
||||||
"@bitwarden/auth": ["./libs/auth/src"],
|
"@bitwarden/auth": ["./libs/auth/src"],
|
||||||
|
"@bitwarden/billing": ["./libs/billing/src"],
|
||||||
"@bitwarden/common/*": ["./libs/common/src/*"],
|
"@bitwarden/common/*": ["./libs/common/src/*"],
|
||||||
"@bitwarden/components": ["./libs/components/src"],
|
"@bitwarden/components": ["./libs/components/src"],
|
||||||
"@bitwarden/exporter/*": ["./libs/exporter/src/*"],
|
"@bitwarden/exporter/*": ["./libs/exporter/src/*"],
|
||||||
"@bitwarden/importer/core": ["./libs/importer/src"],
|
"@bitwarden/importer/core": ["./libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["./libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["./libs/importer/src/components"],
|
||||||
|
"@bitwarden/platform": ["./libs/platform/src"],
|
||||||
"@bitwarden/node/*": ["./libs/node/src/*"],
|
"@bitwarden/node/*": ["./libs/node/src/*"],
|
||||||
"@bitwarden/vault": ["./libs/vault/src"]
|
"@bitwarden/vault": ["./libs/vault/src"]
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,13 +15,16 @@
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@bitwarden/admin-console": ["./libs/admin-console/src"],
|
||||||
"@bitwarden/angular/*": ["./libs/angular/src/*"],
|
"@bitwarden/angular/*": ["./libs/angular/src/*"],
|
||||||
"@bitwarden/auth": ["./libs/auth/src"],
|
"@bitwarden/auth": ["./libs/auth/src"],
|
||||||
|
"@bitwarden/billing": ["./libs/billing/src"],
|
||||||
"@bitwarden/common/*": ["./libs/common/src/*"],
|
"@bitwarden/common/*": ["./libs/common/src/*"],
|
||||||
"@bitwarden/components": ["./libs/components/src"],
|
"@bitwarden/components": ["./libs/components/src"],
|
||||||
"@bitwarden/exporter/*": ["./libs/exporter/src/*"],
|
"@bitwarden/exporter/*": ["./libs/exporter/src/*"],
|
||||||
"@bitwarden/importer/core": ["./libs/importer/src"],
|
"@bitwarden/importer/core": ["./libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["./libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["./libs/importer/src/components"],
|
||||||
|
"@bitwarden/platform": ["./libs/platform/src"],
|
||||||
"@bitwarden/node/*": ["./libs/node/src/*"],
|
"@bitwarden/node/*": ["./libs/node/src/*"],
|
||||||
"@bitwarden/web-vault/*": ["./apps/web/src/*"],
|
"@bitwarden/web-vault/*": ["./apps/web/src/*"],
|
||||||
"@bitwarden/vault": ["./libs/vault/src"]
|
"@bitwarden/vault": ["./libs/vault/src"]
|
||||||
|
|
Loading…
Reference in New Issue