这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Angelmmiguel
Copy link
Contributor

Since URIs use / as the separator, wws didn't return static assets in a subfolder in Windows. I took the opportunity to refactor part of the code and add tests to ensure wws calculates asset paths properly. For that, I split the process into different steps:

  • Retrieve URI
  • Clean up the path
  • Retrieve the path in the public folder that points to a possible static asset

I included a battery of tests for those methods and I'm planning to add some e2e tests for static assets.

@Angelmmiguel Angelmmiguel added this to the v1.6.1 milestone Oct 4, 2023
@Angelmmiguel Angelmmiguel marked this pull request as ready for review October 5, 2023 09:41
@Angelmmiguel Angelmmiguel requested a review from a team October 5, 2023 09:41
@Angelmmiguel Angelmmiguel self-assigned this Oct 5, 2023
@Angelmmiguel Angelmmiguel added the 🚀 enhancement New feature or request label Oct 5, 2023
Copy link
Contributor

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for taking care of this and for adding a nice amount of tests.

Just a comment, I know actix filters this for us now, but I wonder about the logic itself, if we cannot rely on that filtering.

Copy link
Contributor

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Angelmmiguel Angelmmiguel merged commit 3a67b6d into main Oct 5, 2023
ereslibre pushed a commit that referenced this pull request Oct 5, 2023
* feat: manage static assets properly in Unix and Windows

* feat: add more e2e tests to validate static assets
Angelmmiguel added a commit that referenced this pull request Oct 6, 2023
* feat: manage static assets properly in Unix and Windows

* feat: add more e2e tests to validate static assets
Angelmmiguel added a commit that referenced this pull request Oct 6, 2023
* feat: manage static assets properly in Unix and Windows

* feat: add more e2e tests to validate static assets
Angelmmiguel added a commit that referenced this pull request Oct 6, 2023
* feat: manage static assets properly in Unix and Windows

* feat: add more e2e tests to validate static assets
Angelmmiguel added a commit that referenced this pull request Oct 6, 2023
* feat: manage static assets properly in Unix and Windows

* feat: add more e2e tests to validate static assets
Angelmmiguel added a commit that referenced this pull request Oct 6, 2023
* feat: manage static assets properly in Unix and Windows

* feat: add more e2e tests to validate static assets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants