Refactor VisualRelayPipe to return the original value without modifications. Update README.md to include instructions for building Chrome and Firefox extension packages.
This commit is contained in:
33
README.md
33
README.md
@@ -63,6 +63,39 @@ then
|
|||||||
3. click on "Load Temporary Add-on..."
|
3. click on "Load Temporary Add-on..."
|
||||||
4. select the `dist/firefox` folder
|
4. select the `dist/firefox` folder
|
||||||
|
|
||||||
|
## Build Extension Packages
|
||||||
|
|
||||||
|
To create installable extension packages, first ensure you have built the extensions:
|
||||||
|
|
||||||
|
### Chrome Extension Package (.zip)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build:chrome
|
||||||
|
cd dist/chrome
|
||||||
|
zip -r gooti-chrome-extension.zip .
|
||||||
|
```
|
||||||
|
|
||||||
|
**Install from package:**
|
||||||
|
1. Go to `chrome://extensions`
|
||||||
|
2. Enable "Developer mode"
|
||||||
|
3. Click "Load unpacked" and select the `dist/chrome` folder, OR
|
||||||
|
4. Drag and drop the `.zip` file onto the extensions page
|
||||||
|
|
||||||
|
### Firefox Extension Package (.xpi)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build:firefox
|
||||||
|
cd dist/firefox
|
||||||
|
zip -r gooti-firefox-extension.xpi .
|
||||||
|
```
|
||||||
|
|
||||||
|
**Install from package:**
|
||||||
|
1. Go to `about:addons`
|
||||||
|
2. Click the gear icon and select "Install Add-on From File..."
|
||||||
|
3. Select the `.xpi` file
|
||||||
|
|
||||||
|
**Note:** Firefox may require the extension to be signed for permanent installation. For development and testing, use the temporary installation method described above.
|
||||||
|
|
||||||
## Testing the Extension
|
## Testing the Extension
|
||||||
|
|
||||||
### Development Mode with Live Reload
|
### Development Mode with Live Reload
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
"version": 1,
|
"version": 1,
|
||||||
"newProjectRoot": "projects",
|
"newProjectRoot": "projects",
|
||||||
"cli": {
|
"cli": {
|
||||||
"schematicCollections": ["angular-eslint"]
|
"schematicCollections": [
|
||||||
|
"angular-eslint"
|
||||||
|
],
|
||||||
|
"analytics": false
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"chrome": {
|
"chrome": {
|
||||||
|
|||||||
3522
package-lock.json
generated
3522
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -5,6 +5,6 @@ import { Pipe, PipeTransform } from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class VisualRelayPipe implements PipeTransform {
|
export class VisualRelayPipe implements PipeTransform {
|
||||||
transform(value: string): string {
|
transform(value: string): string {
|
||||||
return value.toLowerCase().replace(/^wss?:\/\//, '').replace(/\/$/, '');
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user