Skip to content

Commit

Permalink
feat: build frontend for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazawazi committed Oct 26, 2023
1 parent 0994067 commit b4f0fd5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions backend/funix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def get_path_difference(base_dir: str, target_dir: str) -> str | None:
if not path_diff:
return None

for _ in range(len(base_components)):
path_diff.pop(0)

return ".".join(path_diff)


Expand Down Expand Up @@ -103,10 +106,9 @@ def __prep(
path_difference: str | None = None
if base_dir:
# dir mode
module = module_or_file.split(sep)
module[-1] = module[-1][:-3] # remove .py
module = sep.join(module)
path_difference = get_path_difference(base_dir, module)
path_difference = get_path_difference(
base_dir, sep.join(module_or_file.split(sep)[0:-1])
)
if module_or_file:
if is_module:
module = import_module(module_or_file)
Expand Down
4 changes: 2 additions & 2 deletions backend/funix/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"files": {
"main.css": "/static/css/main.521e60ca.css",
"main.js": "/static/js/main.94e1057e.js",
"main.js": "/static/js/main.8f33751f.js",
"index.html": "/index.html"
},
"entrypoints": [
"static/css/main.521e60ca.css",
"static/js/main.94e1057e.js"
"static/js/main.8f33751f.js"
]
}
2 changes: 1 addition & 1 deletion backend/funix/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="description" content="Textea Funix React Frontend"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/><script src="https://d3js.org/d3.v5.js"></script><script src="https://mpld3.github.io/js/mpld3.v0.5.8.js"></script><title>Funix</title><script defer="defer" src="/static/js/main.94e1057e.js"></script><link href="/static/css/main.521e60ca.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="description" content="Textea Funix React Frontend"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/><script src="https://d3js.org/d3.v5.js"></script><script src="https://mpld3.github.io/js/mpld3.v0.5.8.js"></script><title>Funix</title><script defer="defer" src="/static/js/main.8f33751f.js"></script><link href="/static/css/main.521e60ca.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

0 comments on commit b4f0fd5

Please sign in to comment.