mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
[PM-8448] Create BItwarden Send UI library package (#9402)
* Create the send-ui library package Create folder Create package.json Create jest config Create tsconfig and tsconfig.spec.json Create README Add empty barrel file for exporting future members * Register @bitwarden/send-ui with all clients and libs * Register with eslint * Fix linting issue with README --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
parent
42784b39f1
commit
86d6be3187
@ -218,6 +218,12 @@
|
|||||||
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/platform/*", "src/**/*"] }]
|
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/platform/*", "src/**/*"] }]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"files": ["libs/tools/send/send-ui/src/**/*.ts"],
|
||||||
|
"rules": {
|
||||||
|
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/send-ui/*", "src/**/*"] }]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"files": ["libs/vault/src/**/*.ts"],
|
"files": ["libs/vault/src/**/*.ts"],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
1
.github/whitelist-capital-letters.txt
vendored
1
.github/whitelist-capital-letters.txt
vendored
@ -21,6 +21,7 @@
|
|||||||
./libs/platform/README.md
|
./libs/platform/README.md
|
||||||
./libs/tools/README.md
|
./libs/tools/README.md
|
||||||
./libs/tools/export/vault-export/README.md
|
./libs/tools/export/vault-export/README.md
|
||||||
|
./libs/tools/send/README.md
|
||||||
./libs/vault/README.md
|
./libs/vault/README.md
|
||||||
./README.md
|
./README.md
|
||||||
./LICENSE_BITWARDEN.txt
|
./LICENSE_BITWARDEN.txt
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"@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/platform": ["../../libs/platform/src"],
|
||||||
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"]
|
"@bitwarden/vault": ["../../libs/vault/src"]
|
||||||
},
|
},
|
||||||
"useDefineForClassFields": false
|
"useDefineForClassFields": false
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
"@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/platform": ["../../libs/platform/src"],
|
||||||
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"]
|
"@bitwarden/vault": ["../../libs/vault/src"]
|
||||||
},
|
},
|
||||||
"useDefineForClassFields": false
|
"useDefineForClassFields": false
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
"@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/platform": ["../../libs/platform/src"],
|
||||||
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"],
|
"@bitwarden/vault": ["../../libs/vault/src"],
|
||||||
"@bitwarden/web-vault/*": ["src/*"]
|
"@bitwarden/web-vault/*": ["src/*"]
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
"../../libs/tools/export/vault-export/vault-export-core/src"
|
"../../libs/tools/export/vault-export/vault-export-core/src"
|
||||||
],
|
],
|
||||||
"@bitwarden/vault-export-ui": ["../../libs/tools/export/vault-export/vault-export-core/src"],
|
"@bitwarden/vault-export-ui": ["../../libs/tools/export/vault-export/vault-export-core/src"],
|
||||||
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/platform": ["../../libs/platform/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/*"],
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
"@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/platform": ["../../libs/platform/src"],
|
||||||
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"],
|
"@bitwarden/vault": ["../../libs/vault/src"],
|
||||||
"@bitwarden/web-vault/*": ["../../apps/web/src/*"],
|
"@bitwarden/web-vault/*": ["../../apps/web/src/*"],
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
"@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/platform": ["../platform/src"],
|
||||||
|
"@bitwarden/send-ui": ["../tools/send/send-ui/src"],
|
||||||
"@bitwarden/node/*": ["../node/src/*"],
|
"@bitwarden/node/*": ["../node/src/*"],
|
||||||
"@bitwarden/vault": ["../vault/src"]
|
"@bitwarden/vault": ["../vault/src"]
|
||||||
}
|
}
|
||||||
|
17
libs/tools/send/README.md
Normal file
17
libs/tools/send/README.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Bitwarden Send
|
||||||
|
|
||||||
|
This folder contains 2 packages that can be used to create and modify Sends.
|
||||||
|
|
||||||
|
## semd-core
|
||||||
|
|
||||||
|
Package name: `@bitwarden/send-core`
|
||||||
|
|
||||||
|
Contains all types, models, and services for Bitwarden Send
|
||||||
|
|
||||||
|
Currently in use by the Bitwarden Web Vault, CLI, desktop app and browser extension
|
||||||
|
|
||||||
|
## send-ui
|
||||||
|
|
||||||
|
Package name: `@bitwarden/send-ui`
|
||||||
|
|
||||||
|
Contains all UI components used for Bitwarden Send
|
13
libs/tools/send/send-ui/jest.config.js
Normal file
13
libs/tools/send/send-ui/jest.config.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
const { pathsToModuleNameMapper } = require("ts-jest");
|
||||||
|
|
||||||
|
const { compilerOptions } = require("../../../shared/tsconfig.libs");
|
||||||
|
|
||||||
|
/** @type {import('jest').Config} */
|
||||||
|
module.exports = {
|
||||||
|
testMatch: ["**/+(*.)+(spec).+(ts)"],
|
||||||
|
preset: "ts-jest",
|
||||||
|
testEnvironment: "jsdom",
|
||||||
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
||||||
|
prefix: "<rootDir>/../../../",
|
||||||
|
}),
|
||||||
|
};
|
23
libs/tools/send/send-ui/package.json
Normal file
23
libs/tools/send/send-ui/package.json
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "@bitwarden/send-ui",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "Angular components for Bitwarden Send",
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@bitwarden/common": "file:../../../common"
|
||||||
|
}
|
||||||
|
}
|
0
libs/tools/send/send-ui/src/index.ts
Normal file
0
libs/tools/send/send-ui/src/index.ts
Normal file
5
libs/tools/send/send-ui/tsconfig.json
Normal file
5
libs/tools/send/send-ui/tsconfig.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../shared/tsconfig.libs",
|
||||||
|
"include": ["src"],
|
||||||
|
"exclude": ["node_modules", "dist"]
|
||||||
|
}
|
3
libs/tools/send/send-ui/tsconfig.spec.json
Normal file
3
libs/tools/send/send-ui/tsconfig.spec.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json"
|
||||||
|
}
|
@ -25,6 +25,7 @@
|
|||||||
"@bitwarden/vault-export-ui": [".libs/tools/export/vault-export/vault-export-ui/src"],
|
"@bitwarden/vault-export-ui": [".libs/tools/export/vault-export/vault-export-ui/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/send-ui": [".libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/platform": ["./libs/platform/src"],
|
"@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"],
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
"@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/platform": ["./libs/platform/src"],
|
||||||
|
"@bitwarden/send-ui": ["./libs/tools/send/send-ui/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
Block a user