Skip to content

Commit 4f4d8c1

Browse files
committed
refactor(extension-mask): move source files to src directory
1 parent 5ac0308 commit 4f4d8c1

10 files changed

Lines changed: 21 additions & 5 deletions

File tree

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages/cisco/extension-mask/src
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Build
2+
3+
```sh
4+
npm run build
5+
```
6+
7+
Built files are in the `dist` directory.

packages/cisco/extension-mask/meta-images/cyber-security.png renamed to packages/cisco/extension-mask/images/cyber-security.png

File renamed without changes.

packages/cisco/extension-mask/meta-attribution.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/cisco/extension-mask/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "1.0.0",
44
"description": "",
55
"scripts": {
6-
"copy-files": "ncp popup.html dist/popup.html && ncp icons dist/icons",
6+
"copy-files": "ncp src/popup.html dist/popup.html && ncp src/icons dist/icons",
77
"prebuild": "mkdir -p dist",
8-
"build": "parcel build manifest.json content.js",
8+
"build": "parcel build src/manifest.json src/content.js --no-optimize",
99
"postbuild": "npm run copy-files",
1010
"prebuild:ext": "mkdir -p output",
1111
"build:ext": "npm run build && cd dist && zip -r ../output/mask.xpi ."
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/cisco/extension-mask/popup.html renamed to packages/cisco/extension-mask/src/popup.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ <h1>Sensitive Data Masker</h1>
1010
This extension masks sensitive data in the
1111
<a href="https://chat.openai.com">ChatGPT</a> textbox.
1212
</p>
13+
<details>
14+
<summary>Attribution</summary>
15+
<p>
16+
<a
17+
href="https://www.flaticon.com/free-icons/security"
18+
title="security icons"
19+
>Security icon</a
20+
>
21+
created by Freepik - Flaticon
22+
</p>
23+
</details>
1324
<hr />
1425
<p>
1526
Discover more at

0 commit comments

Comments
 (0)