Skip to content

Commit

Permalink
Loader variables
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps committed Jun 9, 2019
1 parent 086cb9d commit 0140a09
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 37 deletions.
64 changes: 42 additions & 22 deletions .docz/app/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,35 +87,26 @@
"slug": "loaders",
"depth": 1,
"value": "Loaders"
}
]
}
},
{
"key": "src/docs/Text.mdx",
"value": {
"id": "b1369bfa9ec99eaf331bf056ae89a064",
"filepath": "src/docs/Text.mdx",
"link": "https://github.com/matheusps/react-quarks/edit/master/src/docs/Text.mdx",
"slug": "src-docs-text",
"route": "/src-docs-text",
"name": "Text",
"menu": "",
"headings": [
},
{
"slug": "text",
"depth": 1,
"value": "Text"
"slug": "size",
"depth": 2,
"value": "Size"
},
{
"slug": "heading",
"slug": "thickness",
"depth": 2,
"value": "Heading"
"value": "Thickness"
},
{
"slug": "paragraph",
"slug": "gap",
"depth": 2,
"value": "Paragraph"
"value": "Gap"
},
{
"slug": "speed",
"depth": 2,
"value": "Speed"
}
]
}
Expand Down Expand Up @@ -298,6 +289,35 @@
}
]
}
},
{
"key": "src/docs/Text.mdx",
"value": {
"id": "b1369bfa9ec99eaf331bf056ae89a064",
"filepath": "src/docs/Text.mdx",
"link": "https://github.com/matheusps/react-quarks/edit/master/src/docs/Text.mdx",
"slug": "src-docs-text",
"route": "/src-docs-text",
"name": "Text",
"menu": "",
"headings": [
{
"slug": "text",
"depth": 1,
"value": "Text"
},
{
"slug": "heading",
"depth": 2,
"value": "Heading"
},
{
"slug": "paragraph",
"depth": 2,
"value": "Paragraph"
}
]
}
}
]
}
8 changes: 4 additions & 4 deletions .docz/app/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export const imports = {
import(
/* webpackPrefetch: true, webpackChunkName: "src-docs-loader" */ 'src/docs/Loader.mdx'
),
'src/docs/Text.mdx': () =>
import(
/* webpackPrefetch: true, webpackChunkName: "src-docs-text" */ 'src/docs/Text.mdx'
),
'src/docs/Surface.mdx': () =>
import(
/* webpackPrefetch: true, webpackChunkName: "src-docs-surface" */ 'src/docs/Surface.mdx'
),
'src/docs/Text.mdx': () =>
import(
/* webpackPrefetch: true, webpackChunkName: "src-docs-text" */ 'src/docs/Text.mdx'
),
}
2 changes: 1 addition & 1 deletion .docz/cache/03350190d1008cef37538b0b9cd45a0d.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"remainingRequest":"/Users/matheusps/wpc/react-quarks/node_modules/thread-loader/dist/cjs.js??ref--5-1!/Users/matheusps/wpc/react-quarks/node_modules/docz-core/node_modules/babel-loader/lib/index.js??ref--5-2!/Users/matheusps/wpc/react-quarks/node_modules/source-map-loader/index.js!/Users/matheusps/wpc/react-quarks/.docz/app/imports.js","dependencies":[{"path":"/Users/matheusps/wpc/react-quarks/.docz/app/imports.js","mtime":1560047181833},{"path":"/Users/matheusps/wpc/react-quarks/node_modules/cache-loader/dist/cjs.js","mtime":1559842977991},{"path":"/Users/matheusps/wpc/react-quarks/node_modules/thread-loader/dist/cjs.js","mtime":1559842979495},{"path":"/Users/matheusps/wpc/react-quarks/node_modules/docz-core/node_modules/babel-loader/lib/index.js","mtime":1557839745199},{"path":"/Users/matheusps/wpc/react-quarks/node_modules/source-map-loader/index.js","mtime":1559842979033}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:KGZ1bmN0aW9uICgpIHsKICB2YXIgZW50ZXJNb2R1bGUgPSAodHlwZW9mIHJlYWN0SG90TG9hZGVyR2xvYmFsICE9PSAndW5kZWZpbmVkJyA/IHJlYWN0SG90TG9hZGVyR2xvYmFsIDogcmVxdWlyZSgncmVhY3QtaG90LWxvYWRlcicpKS5lbnRlck1vZHVsZTsKICBlbnRlck1vZHVsZSAmJiBlbnRlck1vZHVsZShtb2R1bGUpOwp9KSgpOwoKZXhwb3J0IHZhciBpbXBvcnRzID0gewogICdzcmMvZG9jcy9CdXR0b24ubWR4J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G9hZGVyJykpLmRlZmF1bHQ7CgogIGlmICghcmVhY3RIb3RMb2FkZXIpIHsKICAgIHJldHVybjsKICB9CgogIHJlYWN0SG90TG9hZGVyLnJlZ2lzdGVyKGltcG9ydHMsICJpbXBvcnRzIiwgIi9Vc2Vycy9tYXRoZXVzcHMvd3BjL3JlYWN0LXF1YXJrcy8uZG9jei9hcHAvaW1wb3J0cy5qcyIpOwp9KSgpOwoKOwoKKGZ1bmN0aW9uICgpIHsKICB2YXIgbGVhdmVNb2R1bGUgPSAodHlwZW9mIHJlYWN0SG90TG9hZGVyR2xvYmFsICE9PSAndW5kZWZpbmVkJyA/IHJlYWN0SG90TG9hZGVyR2xvYmFsIDogcmVxdWlyZSgncmVhY3QtaG90LWxvYWRlcicpKS5sZWF2ZU1vZHVsZTsKICBsZWF2ZU1vZHVsZSAmJiBsZWF2ZU1vZHVsZShtb2R1bGUpOwp9KSgpOw=="},{"version":3,"sources":["/Users/matheusps/wpc/react-quarks/.docz/app/imports.js"],"names":["imports"],"mappings":";;;;;AAAA,OAAO,IAAMA,OAAO,GAAG;AACrB,yBAAuB;AAAA,WACrB;AACE;AAAiE,yBADnE,CADqB;AAAA,GADF;AAKrB,0BAAwB;AAAA,WACtB;AACE;AAAkE,0BADpE,CADsB;AAAA,GALH;AASrB,yBAAuB;AAAA,WACrB;AACE;AAAiE,yBADnE,CADqB;AAAA,GATF;AAarB,uBAAqB;AAAA,WACnB;AACE;AAA+D,uBADjE,CADmB;AAAA;AAbA,CAAhB;;;;;;;;;;0BAAMA,O","sourcesContent":["export const imports = {\n 'src/docs/Button.mdx': () =>\n import(\n /* webpackPrefetch: true, webpackChunkName: \"src-docs-button\" */ 'src/docs/Button.mdx'\n ),\n 'src/docs/Surface.mdx': () =>\n import(\n /* webpackPrefetch: true, webpackChunkName: \"src-docs-surface\" */ 'src/docs/Surface.mdx'\n ),\n 'src/docs/Loader.mdx': () =>\n import(\n /* webpackPrefetch: true, webpackChunkName: \"src-docs-loader\" */ 'src/docs/Loader.mdx'\n ),\n 'src/docs/Text.mdx': () =>\n import(\n /* webpackPrefetch: true, webpackChunkName: \"src-docs-text\" */ 'src/docs/Text.mdx'\n ),\n}\n"]}]}
{"remainingRequest":"/Users/matheusps/wpc/react-quarks/node_modules/thread-loader/dist/cjs.js??ref--5-1!/Users/matheusps/wpc/react-quarks/node_modules/docz-core/node_modules/babel-loader/lib/index.js??ref--5-2!/Users/matheusps/wpc/react-quarks/node_modules/source-map-loader/index.js!/Users/matheusps/wpc/react-quarks/.docz/app/imports.js","dependencies":[{"path":"/Users/matheusps/wpc/react-quarks/.docz/app/imports.js","mtime":1560048015683},{"path":"/Users/matheusps/wpc/react-quarks/node_modules/cache-loader/dist/cjs.js","mtime":1559842977991},{"path":"/Users/matheusps/wpc/react-quarks/node_modules/thread-loader/dist/cjs.js","mtime":1559842979495},{"path":"/Users/matheusps/wpc/react-quarks/node_modules/docz-core/node_modules/babel-loader/lib/index.js","mtime":1557839745199},{"path":"/Users/matheusps/wpc/react-quarks/node_modules/source-map-loader/index.js","mtime":1559842979033}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:KGZ1bmN0aW9uICgpIHsKICB2YXIgZW50ZXJNb2R1bGUgPSAodHlwZW9mIHJlYWN0SG90TG9hZGVyR2xvYmFsICE9PSAndW5kZWZpbmVkJyA/IHJlYWN0SG90TG9hZGVyR2xvYmFsIDogcmVxdWlyZSgncmVhY3QtaG90LWxvYWRlcicpKS5lbnRlck1vZHVsZTsKICBlbnRlck1vZHVsZSAmJiBlbnRlck1vZHVsZShtb2R1bGUpOwp9KSgpOwoKZXhwb3J0IHZhciBpbXBvcnRzID0gewogICdzcmMvZG9jcy9CdXR0b24ubWR4JzogZnVuY3Rpb24gc3JjRG9jc0J1dHRvbk1keCgpIHsKICAgIHJldHVybiBpbXBvcnQoCiAgICAvKiB3ZWJwYWNrUHJlZmV0Y2g6IHRydWUsIHdlYnBhY2tDaHVua05hbWU6ICJzcmMtZG9jcy1idXR0b24iIC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9tYXRoZXVzcHMvd3BjL3JlYWN0LXF1YXJrcy8uZG9jei9hcHAvaW1wb3J0cy5qcyIpOwp9KSgpOwoKOwoKKGZ1bmN0aW9uICgpIHsKICB2YXIgbGVhdmVNb2R1bGUgPSAodHlwZW9mIHJlYWN0SG90TG9hZGVyR2xvYmFsICE9PSAndW5kZWZpbmVkJyA/IHJlYWN0SG90TG9hZGVyR2xvYmFsIDogcmVxdWlyZSgncmVhY3QtaG90LWxvYWRlcicpKS5sZWF2ZU1vZHVsZTsKICBsZWF2ZU1vZHVsZSAmJiBsZWF2ZU1vZHVsZShtb2R1bGUpOwp9KSgpOw=="},{"version":3,"sources":["/Users/matheusps/wpc/react-quarks/.docz/app/imports.js"],"names":["imports"],"mappings":";;;;;AAAA,OAAO,IAAMA,OAAO,GAAG;AACrB,yBAAuB;AAAA,WACrB;AACE;AAAiE,yBADnE,CADqB;AAAA,GADF;AAKrB,yBAAuB;AAAA,WACrB;AACE;AAAiE,yBADnE,CADqB;AAAA,GALF;AASrB,uBAAqB;AAAA,WACnB;AACE;AAA+D,uBADjE,CADmB;AAAA,GATA;AAarB,0BAAwB;AAAA,WACtB;AACE;AAAkE,0BADpE,CADsB;AAAA;AAbH,CAAhB;;;;;;;;;;0BAAMA,O","sourcesContent":["export const imports = {\n 'src/docs/Button.mdx': () =>\n import(\n /* webpackPrefetch: true, webpackChunkName: \"src-docs-button\" */ 'src/docs/Button.mdx'\n ),\n 'src/docs/Loader.mdx': () =>\n import(\n /* webpackPrefetch: true, webpackChunkName: \"src-docs-loader\" */ 'src/docs/Loader.mdx'\n ),\n 'src/docs/Text.mdx': () =>\n import(\n /* webpackPrefetch: true, webpackChunkName: \"src-docs-text\" */ 'src/docs/Text.mdx'\n ),\n 'src/docs/Surface.mdx': () =>\n import(\n /* webpackPrefetch: true, webpackChunkName: \"src-docs-surface\" */ 'src/docs/Surface.mdx'\n ),\n}\n"]}]}
2 changes: 1 addition & 1 deletion .docz/cache/3ceaae9cf6f131c744bcc8034f511d6e.json

Large diffs are not rendered by default.

Loading

0 comments on commit 0140a09

Please sign in to comment.