-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: All static files are considered during relative external links p…
…rocessing
- Loading branch information
1 parent
751e8ed
commit 9da9855
Showing
4 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from dataclasses import dataclass, field | ||
from collections import ChainMap | ||
from typing import Dict | ||
|
||
|
||
@dataclass | ||
class OlxToOriginalStaticFilePaths: | ||
""" | ||
Provide OLX static file to Common cartridge static file mappings. | ||
""" | ||
|
||
# Static files from `web_resources` directory | ||
web_resources: Dict[str, str] = field(default_factory=dict) | ||
# Static files that are outside of `web_resources` directory, but still required | ||
extra: Dict[str, str] = field(default_factory=dict) | ||
|
||
def __post_init__(self) -> None: | ||
self.all = ChainMap(self.extra, self.web_resources) |
This file contains 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 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 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