@jsenv/plugin-explorer 1.0.0 → 1.0.2

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.
@@ -63,8 +63,8 @@
63
63
  }
64
64
 
65
65
  main > * {
66
- min-width: 100%;
67
66
  flex: 1;
67
+ min-width: 100%;
68
68
  }
69
69
 
70
70
  hr {
@@ -141,8 +141,8 @@
141
141
  }
142
142
 
143
143
  #explorables_header_bottom_spacing {
144
- height: 20px;
145
144
  background: #1f262c;
145
+ height: 20px;
146
146
  }
147
147
 
148
148
  #directory_relative_url {
@@ -164,8 +164,8 @@
164
164
  }
165
165
 
166
166
  #explorables li .execution-link {
167
- width: 100%;
168
167
  word-break: break-all;
168
+ width: 100%;
169
169
  }
170
170
 
171
171
  .execution-link {
@@ -185,10 +185,10 @@
185
185
  }
186
186
 
187
187
  #explorables_icon {
188
- width: 25px;
189
- height: 25px;
190
188
  stroke: none;
191
189
  fill: #24b1b0;
190
+ width: 25px;
191
+ height: 25px;
192
192
  }
193
193
 
194
194
  #explorables fieldset {
@@ -208,10 +208,10 @@
208
208
  }
209
209
 
210
210
  #explorables fieldset label input + * {
211
- min-width: 8em;
212
211
  text-align: center;
213
212
  background-color: #204143;
214
213
  border-radius: .1em;
214
+ min-width: 8em;
215
215
  padding: .7em 1em;
216
216
  display: block;
217
217
  }
@@ -238,17 +238,17 @@
238
238
  }
239
239
 
240
240
  .menu .item {
241
- height: 100%;
242
241
  box-sizing: border-box;
242
+ height: 100%;
243
243
  padding: 1em;
244
244
  display: inline-block;
245
245
  }
246
246
 
247
247
  .paddle {
248
- height: 36px;
249
248
  color: #1f262c;
250
249
  background: #24b1b0;
251
250
  border: none;
251
+ height: 36px;
252
252
  position: absolute;
253
253
  bottom: 0;
254
254
  }
@@ -25,7 +25,7 @@ const jsenvPluginExplorer = ({
25
25
  }
26
26
  },
27
27
  transformUrlContent: {
28
- html: async (urlInfo, context) => {
28
+ html: async urlInfo => {
29
29
  if (urlInfo.url !== explorerHtmlFileUrl) {
30
30
  return null;
31
31
  }
@@ -41,7 +41,7 @@ const jsenvPluginExplorer = ({
41
41
  };
42
42
  });
43
43
  const matchingFileResultArray = await collectFiles({
44
- directoryUrl: context.rootDirectoryUrl,
44
+ directoryUrl: urlInfo.context.rootDirectoryUrl,
45
45
  associations: associationsForExplorable,
46
46
  predicate: meta => Object.keys(meta).some(group => Boolean(meta[group]))
47
47
  });
@@ -53,7 +53,7 @@ const jsenvPluginExplorer = ({
53
53
  meta
54
54
  }));
55
55
  html = html.replace("SERVER_PARAMS", JSON.stringify({
56
- rootDirectoryUrl: context.rootDirectoryUrl,
56
+ rootDirectoryUrl: urlInfo.context.rootDirectoryUrl,
57
57
  groups,
58
58
  files
59
59
  }, null, " "));
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-explorer",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/jsenv/core",
8
- "directory": "packages/jsenv-plugin-explorer"
8
+ "directory": "packages/related/plugin-explorer"
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public"
@@ -26,7 +26,7 @@
26
26
  "/src/"
27
27
  ],
28
28
  "dependencies": {
29
- "@jsenv/filesystem": "4.2.3"
29
+ "@jsenv/filesystem": "4.2.5"
30
30
  },
31
31
  "scripts": {
32
32
  "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html>
3
3
  <head>
4
4
  <title>Exploring</title>
@@ -31,7 +31,7 @@ export const jsenvPluginExplorer = ({
31
31
  },
32
32
  },
33
33
  transformUrlContent: {
34
- html: async (urlInfo, context) => {
34
+ html: async (urlInfo) => {
35
35
  if (urlInfo.url !== explorerHtmlFileUrl) {
36
36
  return null;
37
37
  }
@@ -46,7 +46,7 @@ export const jsenvPluginExplorer = ({
46
46
  };
47
47
  });
48
48
  const matchingFileResultArray = await collectFiles({
49
- directoryUrl: context.rootDirectoryUrl,
49
+ directoryUrl: urlInfo.context.rootDirectoryUrl,
50
50
  associations: associationsForExplorable,
51
51
  predicate: (meta) =>
52
52
  Object.keys(meta).some((group) => Boolean(meta[group])),
@@ -62,7 +62,7 @@ export const jsenvPluginExplorer = ({
62
62
  "SERVER_PARAMS",
63
63
  JSON.stringify(
64
64
  {
65
- rootDirectoryUrl: context.rootDirectoryUrl,
65
+ rootDirectoryUrl: urlInfo.context.rootDirectoryUrl,
66
66
  groups,
67
67
  files,
68
68
  },