-
-
Notifications
You must be signed in to change notification settings - Fork 6
Migrate from webpack to vite #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 62 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
9be231a
add microscope form create test, isolate snapshot plugin logic (#324)
tlambert03 2c95d23
plan
tlambert03 dd90353
feat: Phase 1 - Vite 7 migration preparation complete
tlambert03 8f79450
feat: Phase 3 - Django integration complete
tlambert03 55d399c
feat: Phase 4 - E2E test configuration updated
tlambert03 14b94be
feat: Phase 5 - Webpack removal and cleanup complete
tlambert03 09daf4f
fix: resolve Vite migration issues and improve ES module compatibility
tlambert03 a1931fb
sentry mod
tlambert03 cab5e89
progress on jquery and tests
tlambert03 26b9cca
fix search
tlambert03 0616a9d
feat: add Popper.js for Bootstrap tooltips and dropdowns; update D3 h…
tlambert03 ef6e9eb
fix prod-local
tlambert03 eacdad5
more test fixes
tlambert03 fbd9d32
use module type
tlambert03 bef6de2
fix tests and move tests
tlambert03 b7cecd8
fix
tlambert03 60a8e80
some dependency cleanup and jquery cleanup
tlambert03 bbacb16
fix microscope form
tlambert03 439f12e
fix: remove duplicate snapshot fixtures from conftest.py
tlambert03 efbd4dd
fix no data
tlambert03 92641c0
local-production fixes
tlambert03 51cd552
some fixes
tlambert03 713aa28
remove plan
tlambert03 b9f499b
add overrides react-is
tlambert03 3352489
ignore existing snapshots dir
tlambert03 4445385
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fed89b9
prek
tlambert03 94627f2
fix bootstrap issues
tlambert03 0a9feda
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b8953a1
less code on protein search
tlambert03 7251356
Merge branch 'use-vite' of https://github.com/tlambert03/FPbase into …
tlambert03 23dfce6
Refactor initialization of FRET and search features to use data attri…
tlambert03 f7733be
ignore stupid stuff
tlambert03 6103884
Enhance console warning filtering in e2e tests to ignore specific coo…
tlambert03 8e62e80
Remove unused warnings import and console warning message logging in …
tlambert03 98aa5b3
remove more
tlambert03 29318d4
Refactor console error handling in Playwright tests to use a class-ba…
tlambert03 4b53d02
remove webpack word
tlambert03 f043f7e
comment
tlambert03 1d00d21
just comments
tlambert03 70df97f
improve litemol inclusion
tlambert03 0fe6d5c
fix protein page SEO issues
tlambert03 0f8c4d8
refactor: separated the Highcharts bundles from the main bundle
tlambert03 03c7dab
fix font-awesome small i
tlambert03 10c8f37
delay pattern import
tlambert03 70fcdd1
reduce bundle
tlambert03 b5e99b4
remove unused fonts
tlambert03 6d7e5c1
fix cdn url
tlambert03 23379bb
refactor: optimize CDN script loading and remove unused scripts
tlambert03 fc8377c
test more microscope views
tlambert03 4c21b9c
Merge branch 'main' into use-vite
tlambert03 cb6a572
Merge branch 'main' into use-vite
tlambert03 5480caa
Merge branch 'main' into use-vite
tlambert03 0c6fd67
fix vite
tlambert03 f88b164
Merge branch 'main' into use-vite
tlambert03 7ec25be
step1
tlambert03 4020d6e
defer autocomplete.js
tlambert03 998ebf3
use d3 modules
tlambert03 45e5b7c
sentry bundle opt
tlambert03 d6a21b6
Adapt TEST_BUILD source map debugging for Vite
tlambert03 ac2fc13
Fix source map transformation for page errors
tlambert03 09c395b
Merge remote-tracking branch 'upstream/main' into use-vite
tlambert03 af65aea
Merge branch 'main' into use-vite
tlambert03 cd26aa4
Merge branch 'main' into use-vite
tlambert03 8a30628
better init
tlambert03 c373ed8
Update backend/config/settings/base.py
tlambert03 ffe0a2c
Merge branch 'use-vite' of https://github.com/tlambert03/FPbase into …
tlambert03 f72cdc8
refactor: streamline body and content blocks in base.html; enhance au…
tlambert03 8529ae3
add playwright to clean
tlambert03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
|
|
||
| """ | ||
|
|
||
| import re | ||
| import ssl | ||
|
|
||
| import sentry_sdk | ||
|
|
@@ -113,6 +114,14 @@ | |
| # ------------------------ | ||
| WHITENOISE_MAX_AGE = 600 | ||
|
|
||
|
|
||
| # http://whitenoise.evans.io/en/stable/django.html#WHITENOISE_IMMUTABLE_FILE_TEST | ||
| # https://github.com/MrBin99/django-vite?tab=readme-ov-file#whitenoise | ||
| def WHITENOISE_IMMUTABLE_FILE_TEST(path, url): | ||
| # Match vite (rollup)-generated hashes, à la, `some_file-CSliV9zW.js` | ||
| return re.match(r"^.+[.-][0-9a-zA-Z_-]{8,12}\..+$", url) | ||
|
|
||
|
|
||
| # ------------------------------------------------------------------------------ | ||
| DEFAULT_FROM_EMAIL = env("DJANGO_DEFAULT_FROM_EMAIL", default="FPbase <[email protected]>") | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.