Commit graph

2086 commits

Author SHA1 Message Date
minowau
508feef8a1 Hot Module Replacement (HMR) Integration
solving issue #1255

This project implements Hot Module Replacement (HMR) for a React-based Chrome extension, allowing developers to see real-time changes in their popup component without needing to refresh the entire extension. The following outlines the configuration and structure necessary for achieving this setup.

#### Key Components

1. **Webpack Configuration (`webpack.config.js`)**:
   - Configures Webpack for development and production modes, specifying the entry point and output settings.
   - Enables HMR in the development server for instant updates.

2. **Entry Point (`src/popup.js`)**:
   - Contains the main logic for the popup component, integrating the HMR logic to allow for module updates without a full reload.

3. **Index File (`src/index.js`)**:
   - Updated to support HMR with checks for `module.hot`, ensuring that the component re-renders on updates without refreshing the entire popup.

4. **Package Configuration (`package.json`)**:
   - Includes scripts for building and serving the application, specifying configurations needed for both development and production.

5. **Development Server**:
   - The command `npm start` launches a development server with HMR enabled, providing a smooth development experience.

#### Summary of Changes

- **HMR Logic**:
  - Added in `popup.js` using `if (module.hot) { ... }` to ensure updates are reflected in real-time.
  - Implemented in `index.js` to facilitate automatic re-rendering of the popup component on code changes.

- **Webpack Dev Server**: Configured with `hot: true` to support HMR functionality.

- **File Structure**: Organized files into a clear structure, facilitating maintainability and ease of access.

### Benefits

Implementing HMR improves the development workflow by reducing the time spent on refreshing and waiting for the extension to reload. This results in a more productive environment, allowing for faster iteration and debugging of features.
2024-07-14 10:39:18 +05:30
Manoj Vivek
d205f0e272
Added k-optional software as gold sponsor 2024-06-14 18:18:05 +05:30
Manoj Vivek
936b1d51e2 Version bump 2024-06-07 13:30:11 +05:30
Manoj Vivek
20974a5ca2
Merge pull request #1248 from responsively-org/all-contributors/add-sagarhedaoo
add sagarhedaoo as a contributor for code
2024-06-07 13:28:01 +05:30
allcontributors[bot]
9109f7fe51
update .all-contributorsrc [skip ci] 2024-06-07 07:57:51 +00:00
allcontributors[bot]
3a6ea4ad58
update README.md [skip ci] 2024-06-07 07:57:50 +00:00
Manoj Vivek
154f6ca02e
Merge pull request #1244 from sagarhedaoo/ScrollToTop-feature
Added Scroll to top feature
2024-06-07 13:27:07 +05:30
Manoj Vivek
58117388e0
Merge branch 'main' into ScrollToTop-feature 2024-06-07 13:26:42 +05:30
Manoj Vivek
c247a48ef5 Removed the scroll to top button within the webview 2024-06-07 13:23:14 +05:30
Manoj Vivek
d597425ecb
Merge pull request #1177 from responsively-org/add-device-button
Add device button added to the preview area
2024-06-07 13:16:25 +05:30
Manoj Vivek
f3fcc67a12
Merge pull request #1247 from responsively-org/extension-bug-fix
Extension deep link bug fix
2024-06-07 13:10:50 +05:30
Manoj Vivek
12993027ba Moved the button to the toolbar 2024-06-07 13:09:25 +05:30
Manoj Vivek
829a2efa34 Merge remote-tracking branch 'origin/main' into add-device-button 2024-06-07 12:40:03 +05:30
Manoj Vivek
98c456de7d
Merge pull request #1241 from responsively-org/about-window-revamp
Revamped the about window and added info about app update status
2024-06-07 12:39:18 +05:30
Manoj Vivek
9413667aff Handling a change in the way browser extension urls are being passed now 2024-06-07 12:37:29 +05:30
Sagar Hedaoo
a0e242e57c Added Scroll to top feature 2024-05-30 02:50:05 -04:00
Manoj Vivek
895ff0a966 Revamped the about window and added info about app update status 2024-05-25 18:46:51 +05:30
Manoj Vivek
1bf5835037 Binary architecture fix 2024-05-20 12:47:08 +05:30
Manoj Vivek
8ddfd8aa8a
Version bump 2024-05-17 16:03:56 +05:30
Manoj Vivek
c37c0a0198 Version bump 2024-05-17 15:23:05 +05:30
Manoj Vivek
eaad259c5b
Merge pull request #1225 from responsively-org/ruler-device-overflow-bugfix
Fixed the device overflow bug after adding ruler feature
2024-04-24 16:28:27 +05:30
Manoj Vivek
ea2c45ee59 Fixed the device overflow bug after adding ruler feature 2024-04-24 16:07:16 +05:30
Mohammad S
4c2c595cff
Merge pull request #1218 from responsively-org/dependabot/npm_and_yarn/desktop-app/webpack-dev-middleware-5.3.4
chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /desktop-app
2024-04-14 12:20:27 +05:30
Mohammad S
47e9675c61
Merge pull request #1216 from responsively-org/dependabot/npm_and_yarn/desktop-app/release/app/follow-redirects-1.15.6
chore(deps): bump follow-redirects from 1.15.2 to 1.15.6 in /desktop-app/release/app
2024-04-14 11:57:09 +05:30
Mohammad S
17c7b3d2ba
Merge branch 'main' into dependabot/npm_and_yarn/desktop-app/webpack-dev-middleware-5.3.4 2024-04-14 11:50:04 +05:30
Mohammad S
004357ecf5
Merge pull request #1173 from responsively-org/dependabot/npm_and_yarn/desktop-app/types/react-test-renderer-18.0.7
chore(deps-dev): bump @types/react-test-renderer from 18.0.0 to 18.0.7 in /desktop-app
2024-04-14 11:48:07 +05:30
dependabot[bot]
ca1982996c
chore(deps): bump webpack-dev-middleware in /desktop-app
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-14 06:17:29 +00:00
dependabot[bot]
335d4a8db2
chore(deps): bump follow-redirects in /desktop-app/release/app
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-14 06:17:26 +00:00
Mohammad S
da7485c50e
Merge pull request #1201 from responsively-org/dependabot/npm_and_yarn/desktop-app/ip-2.0.1
chore(deps): bump ip from 2.0.0 to 2.0.1 in /desktop-app
2024-04-14 11:46:52 +05:30
dependabot[bot]
c2e67e91bf
chore(deps): bump ip from 2.0.0 to 2.0.1 in /desktop-app
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-20 20:15:43 +00:00
Manoj Vivek
e32d1c309a
Merge pull request #1191 from responsively-org/all-contributors/add-surajbobade
add surajbobade as a contributor for code
2024-01-22 15:06:19 +05:30
Manoj Vivek
e9eb4e733b
Merge pull request #1188 from surajbobade/single-screenshot-#984
fix: lock screenshot if screenshot capturing already in progress
2024-01-22 15:03:46 +05:30
allcontributors[bot]
35956307a8
update .all-contributorsrc [skip ci] 2024-01-22 09:32:31 +00:00
allcontributors[bot]
08dfd71338
update README.md [skip ci] 2024-01-22 09:32:30 +00:00
Manoj Vivek
ba4dd5e314
Merge pull request #1187 from surajbobade/mod-key-issue-#1185
fix: show ctrl as mod button in shortcut modal for windows devices
2024-01-22 15:02:10 +05:30
surajbobade
d6b9073e39 fix: lock screenshot if screenshot capturing already in progress 2024-01-19 23:20:48 +05:30
surajbobade
43388c795e fix: removed deprecated field and used userAgent 2024-01-19 23:12:20 +05:30
surajbobade
228607cbea fix: show ctrl as mod button in shortcut modal 2024-01-19 22:58:44 +05:30
Manoj Vivek
a2aaf53c6b Add device button added to the preview area 2023-12-21 15:17:33 +05:30
dependabot[bot]
e40810ef66
chore(deps-dev): bump @types/react-test-renderer in /desktop-app
Bumps [@types/react-test-renderer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-test-renderer) from 18.0.0 to 18.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-test-renderer)

---
updated-dependencies:
- dependency-name: "@types/react-test-renderer"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 21:40:32 +00:00
Mohammad S
47f982775c
Merge pull request #1171 from responsively-org/dependabot/npm_and_yarn/desktop-app/adobe/css-tools-4.3.2
chore(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 in /desktop-app
2023-12-14 01:22:01 +05:30
Mohammad S
0e43dbe4c9
Merge pull request #1166 from responsively-org/dependabot/npm_and_yarn/desktop-app/sass-loader-13.3.2
chore(deps-dev): bump sass-loader from 13.1.0 to 13.3.2 in /desktop-app
2023-12-14 01:21:44 +05:30
Mohammad S
a5feb3340f
Merge pull request #1165 from responsively-org/dependabot/npm_and_yarn/desktop-app/autoprefixer-10.4.16
chore(deps): bump autoprefixer from 10.4.14 to 10.4.16 in /desktop-app
2023-12-14 01:21:33 +05:30
dependabot[bot]
e06ace7c42
chore(deps): bump autoprefixer from 10.4.14 to 10.4.16 in /desktop-app
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.14 to 10.4.16.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.14...10.4.16)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-09 06:27:38 +00:00
Manoj Vivek
f665a8fa75
Merge pull request #1162 from astuanax/guids
Guides & Rulers
2023-12-09 11:55:32 +05:30
Len
a23f458a47 label update
missing overflow
2023-12-08 12:38:14 +01:00
Len
c071efdf24 google homepage 2023-12-07 12:01:50 +01:00
Len
25ffd19313 reset migrations 2023-12-04 15:22:24 +01:00
Len
5f1bc921fc reset migrations 2023-12-04 15:21:28 +01:00
Len
3752797854 Review updates
- default empty array
- remove default padding
- align left px value ofr rulers
- updated keyboard shortcut
2023-12-04 15:17:55 +01:00