@raketa-cloud/admin 1.8.11 → 1.8.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1701,6 +1701,10 @@ select {
1701
1701
  margin-bottom: 1.5rem;
1702
1702
  }
1703
1703
 
1704
+ .ml-10 {
1705
+ margin-left: 2.5rem;
1706
+ }
1707
+
1704
1708
  .ml-2 {
1705
1709
  margin-left: 0.5rem;
1706
1710
  }
@@ -1932,6 +1936,10 @@ select {
1932
1936
  align-items: center;
1933
1937
  }
1934
1938
 
1939
+ .justify-start {
1940
+ justify-content: flex-start;
1941
+ }
1942
+
1935
1943
  .justify-end {
1936
1944
  justify-content: flex-end;
1937
1945
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "1.8.11",
3
+ "version": "1.8.13",
4
4
  "main": "src/index.js",
5
5
  "files": [
6
6
  "src/",
@@ -65,16 +65,24 @@ function putIn(result, key, value) {
65
65
  const sanitizePath = (filePath) =>
66
66
  path.normalize(path.join("/", ...filePath.split("/")));
67
67
 
68
- // Find template path, preferring an app override over the package template
69
68
  function getPartialPath(partialPath, views, viewsFallback) {
69
+ // Resolve the partial path relative to the views directory
70
+ // This normalizes "../_nav.ejs" relative to "page_revisions/codes"
71
+ // Result: "page_revisions/_nav.ejs"
72
+ const resolvedPartialPath = sanitizePath(`${views}/${partialPath}`);
73
+
70
74
  const paths = [
71
- sanitizePath(`${process.cwd()}/src/views/${views}/${partialPath}`),
72
- sanitizePath(`${currentPath}/views/${views}/${partialPath}`),
73
- viewsFallback &&
74
- sanitizePath(`${currentPath}/views/${viewsFallback}/${partialPath}`),
75
- ].filter(Boolean);
75
+ sanitizePath(`${process.cwd()}/src/views/${resolvedPartialPath}`),
76
+ sanitizePath(`${currentPath}/views/${resolvedPartialPath}`),
77
+ ];
78
+
79
+ // For fallback, resolve the partial path relative to viewsFallback
80
+ // This naturally handles ".." navigation: "resource_revisions/codes/../_nav.ejs" → "resource_revisions/_nav.ejs"
81
+ if (viewsFallback) {
82
+ const fallbackPath = sanitizePath(`${viewsFallback}/${partialPath}`);
83
+ paths.push(sanitizePath(`${currentPath}/views/${fallbackPath}`));
84
+ }
76
85
 
77
- // Return first existing path
78
86
  const existingPath = paths.find((path) => existsSync(path));
79
87
 
80
88
  if (existingPath) return existingPath;