Gisle Aune
4 years ago
440 changed files with 1244 additions and 83722 deletions
-
1.gitignore
-
32.next/build-manifest.json
-
1.next/cache/autodll-webpack-plugin/development_instance_0_03338eb732eb91dca2737b4e48c1577d/dll.manifest.json
-
28539.next/cache/autodll-webpack-plugin/development_instance_0_03338eb732eb91dca2737b4e48c1577d/dll_dc8ac110ce5d8530b237.js
-
1.next/cache/autodll-webpack-plugin/development_instance_0_03338eb732eb91dca2737b4e48c1577d/dll_dc8ac110ce5d8530b237.js.map
-
1.next/cache/autodll-webpack-plugin/development_instance_0_03338eb732eb91dca2737b4e48c1577d/stats.json
-
1.next/cache/autodll-webpack-plugin/package.json.hash
-
1.next/cache/next-babel-loader/02787814779d40d8f80c63d8a26fe9b1.json
-
1.next/cache/next-babel-loader/0453fb18e3745bd7dda438cfb5cfee23.json
-
1.next/cache/next-babel-loader/045cbdc33ffdbb0cbe882ba53434db88.json
-
1.next/cache/next-babel-loader/0558a6d2e47072e18c262cd0d71be702.json
-
1.next/cache/next-babel-loader/05aa3a6e59b4296b883819bd093eadf9.json
-
1.next/cache/next-babel-loader/06643c61bcad88219e758d112e2859a2.json
-
1.next/cache/next-babel-loader/06a6c484afce69cdc56690045dc6356b.json
-
1.next/cache/next-babel-loader/06d3d555c5095e0c32dcb8bb2223420f.json
-
1.next/cache/next-babel-loader/0744ed9d9662385e1911512aaf4b03bd.json
-
1.next/cache/next-babel-loader/07a1871d9807dc477c538f9752381f5d.json
-
1.next/cache/next-babel-loader/0901702b77f41a697610cd19239e070d.json
-
1.next/cache/next-babel-loader/09415617b0b0d31086aad181b90ec954.json
-
1.next/cache/next-babel-loader/09890152c6b3f02f02f33f7f6612a6c7.json
-
1.next/cache/next-babel-loader/098fe249cfb079e0d0813f9ee3bfcf2f.json
-
1.next/cache/next-babel-loader/09ccbe9b947c565b88aa102b22faa319.json
-
1.next/cache/next-babel-loader/0bd1c5319a65c66a050cc062c173441f.json
-
1.next/cache/next-babel-loader/0c75d30b776a7bf5a00b4f460f3010b4.json
-
1.next/cache/next-babel-loader/0ca226c18de055fa7119b28d8ce64ef3.json
-
1.next/cache/next-babel-loader/0db760cb463e900d782959dbccc8ef22.json
-
1.next/cache/next-babel-loader/1015072bb82b2405a0a5f859abe5f140.json
-
1.next/cache/next-babel-loader/1046abbcf432abcdea8496feb7c5f47f.json
-
1.next/cache/next-babel-loader/1116d5f589ee1e85f5dbfd467551abaa.json
-
1.next/cache/next-babel-loader/12d573a0caac42462df168537b21f68d.json
-
1.next/cache/next-babel-loader/1343cd6031a95f85d3f1d3bafec6bbfc.json
-
1.next/cache/next-babel-loader/136c96c31f8ba4ce91e444d7ab9e25bf.json
-
1.next/cache/next-babel-loader/1486d66cf0ae2af789127e44cad97259.json
-
1.next/cache/next-babel-loader/14b719fee4f797979b1db1d0229ab0dc.json
-
1.next/cache/next-babel-loader/14fe394c1aa37cab1dfd95dae2b7d72c.json
-
1.next/cache/next-babel-loader/18de379f477774620608c3853d332cb4.json
-
1.next/cache/next-babel-loader/192c9f135d26d08bde326363dcd4a272.json
-
1.next/cache/next-babel-loader/19a7d3ef2139d07e94df59d1b06b90dc.json
-
1.next/cache/next-babel-loader/1b45ddb309fdc1b50d0371f6a18223e9.json
-
1.next/cache/next-babel-loader/1b73fcbbe033db2cc91ad1fc1207c640.json
-
1.next/cache/next-babel-loader/1b800ac20bbf28e5ff22a15da2487737.json
-
1.next/cache/next-babel-loader/1bd1cd4671b8dead82e9fe72b6c1e155.json
-
1.next/cache/next-babel-loader/1c625fbd1867f5f5a3bce11bd7616935.json
-
1.next/cache/next-babel-loader/1cdc8522eb4bfb9f490c05a1a50cf1a6.json
-
1.next/cache/next-babel-loader/1d3c4b88d2d5943827b24bffd267ebde.json
-
1.next/cache/next-babel-loader/1da0cfb0db5ae40162998e30804808dd.json
-
1.next/cache/next-babel-loader/1dd66d46ce496842aacda57c5d248c3f.json
-
1.next/cache/next-babel-loader/1dfce101289080cb17c2ba71a426d0cd.json
-
1.next/cache/next-babel-loader/1f37f2df6f79f6ab0badadf0af53063f.json
-
1.next/cache/next-babel-loader/1f5edef7322b7dd234e1de7ddbdc6a1f.json
-
1.next/cache/next-babel-loader/1f99d26b2e27277d6ecadbba6cdc5545.json
-
1.next/cache/next-babel-loader/20d435280eec2153f0b181bf38a9ce1e.json
-
1.next/cache/next-babel-loader/21375d4b6ca13ed729b2202da45aaf0a.json
-
1.next/cache/next-babel-loader/217517ee4768d17b10edb9798b4a5ac2.json
-
1.next/cache/next-babel-loader/21e421691ce9a4688d2608e2516fdd90.json
-
1.next/cache/next-babel-loader/22203bd89c716aa5cfd1644ac1dd777a.json
-
1.next/cache/next-babel-loader/22314c755c3bdd50d00ab4de9d429962.json
-
1.next/cache/next-babel-loader/22cca4d2c8a723d091799601f7eb6d76.json
-
1.next/cache/next-babel-loader/233044f10515a2e5a51ad7eb2e7efb4c.json
-
1.next/cache/next-babel-loader/23d3dbfe29647e984dd3776c74f806c4.json
-
1.next/cache/next-babel-loader/243c8d6f9cfba08ca1f1e29e17c35320.json
-
1.next/cache/next-babel-loader/24ec015f189a45fed183d16886779062.json
-
1.next/cache/next-babel-loader/2518edd767eccda6bd157dac4390ca73.json
-
1.next/cache/next-babel-loader/27252db19d35b7a1565b41a99a973c05.json
-
1.next/cache/next-babel-loader/287b045333e53892e2a20a9df8144452.json
-
1.next/cache/next-babel-loader/2894d595fbfbf3e1f3506668fd0d594b.json
-
1.next/cache/next-babel-loader/28a7452e20c3cacafad77e6a681d4379.json
-
1.next/cache/next-babel-loader/291aa8ac08e4acc01eef9c8e77f3ce70.json
-
1.next/cache/next-babel-loader/2a5a90ebd0f7d018b376a79fc5fe5dc9.json
-
1.next/cache/next-babel-loader/2b855e34281b9382d53ba4ddb18216f6.json
-
1.next/cache/next-babel-loader/2b8b06500c4a940936f62a88b7b053ba.json
-
1.next/cache/next-babel-loader/2c711bf92cc52dc8118c165c0269c805.json
-
1.next/cache/next-babel-loader/2cdcb052045c493df6108ff7bb88ec8d.json
-
1.next/cache/next-babel-loader/3038c7f2ee2ac466dadee9905633d787.json
-
1.next/cache/next-babel-loader/3072c9e395bd9b2f03adc9112605758b.json
-
1.next/cache/next-babel-loader/308875c2075837c805915413c249beef.json
-
1.next/cache/next-babel-loader/30d73ce6815fb26f9b1e4852b2c8f7f2.json
-
1.next/cache/next-babel-loader/3336531fe4c396d9e78e4034c7056e59.json
-
1.next/cache/next-babel-loader/3392b0f5574999497a9daea1f5260f83.json
-
1.next/cache/next-babel-loader/356cf7387b203a0a37356baf105aa23c.json
-
1.next/cache/next-babel-loader/358bbcd597623adba764f6fcb89cd1ba.json
-
1.next/cache/next-babel-loader/36759a3ed4eb38ce8a4927986c5b2e9f.json
-
1.next/cache/next-babel-loader/36d42c64864f0fa07a11458c937aaf2d.json
-
1.next/cache/next-babel-loader/37cd780c46e6996174ef9a0d673b7c31.json
-
1.next/cache/next-babel-loader/390549e0f3789f9f2aef5f7edae55045.json
-
1.next/cache/next-babel-loader/39a9a4e1d47593be288ec526a17d6be5.json
-
1.next/cache/next-babel-loader/39f3971e717df2822f17fd597582f5c8.json
-
1.next/cache/next-babel-loader/3a560882b957bceb5204aaae841f8258.json
-
1.next/cache/next-babel-loader/3a5d93c2c6006c4a61ca022cc48e4b83.json
-
1.next/cache/next-babel-loader/3ad5076afa1d7c81aee0ce11f40827a5.json
-
1.next/cache/next-babel-loader/3b12a7f1876615c730f5a14785b85b5b.json
-
1.next/cache/next-babel-loader/3c74ebf7455c7bc7597c66a29dc94ffb.json
-
1.next/cache/next-babel-loader/3ccadd8379aaa1da754d73ad46010d15.json
-
1.next/cache/next-babel-loader/3d6792347c807a3069dc1f01783d0683.json
-
1.next/cache/next-babel-loader/3d9738dd1f10ee82c71faabba247075e.json
-
1.next/cache/next-babel-loader/3e3b6696fd88760974291dc85cb8de7b.json
-
1.next/cache/next-babel-loader/3e40ed7f2348acb36a7882c957204611.json
-
1.next/cache/next-babel-loader/3ec3aa0a64e37f78890bf687bee4bcee.json
-
1.next/cache/next-babel-loader/3ff11ee78d42794bbe0d6a3b323e0320.json
-
1.next/cache/next-babel-loader/413d85b6869fb0d8fd54745cfb4f522b.json
@ -1,3 +1,4 @@ |
|||||
/node_modules |
/node_modules |
||||
/.vscode |
/.vscode |
||||
/.idea |
/.idea |
||||
|
/.next |
@ -1,32 +0,0 @@ |
|||||
{ |
|
||||
"devFiles": [ |
|
||||
"static/development/dll/dll_dc8ac110ce5d8530b237.js", |
|
||||
"static/development/dll/dll_dc8ac110ce5d8530b237.js.map" |
|
||||
], |
|
||||
"lowPriorityFiles": [ |
|
||||
"static/development/_buildManifest.js", |
|
||||
"static/development/_ssgManifest.js" |
|
||||
], |
|
||||
"pages": { |
|
||||
"/": [ |
|
||||
"static/runtime/webpack.js", |
|
||||
"static/runtime/main.js" |
|
||||
], |
|
||||
"/_app": [ |
|
||||
"static/runtime/webpack.js", |
|
||||
"static/runtime/main.js" |
|
||||
], |
|
||||
"/_error": [ |
|
||||
"static/runtime/webpack.js", |
|
||||
"static/runtime/main.js" |
|
||||
], |
|
||||
"/_polyfills": [ |
|
||||
"static/runtime/polyfills.js", |
|
||||
"static/runtime/polyfills.js.map" |
|
||||
], |
|
||||
"/index": [ |
|
||||
"static/runtime/webpack.js", |
|
||||
"static/runtime/main.js" |
|
||||
] |
|
||||
} |
|
||||
} |
|
@ -1 +0,0 @@ |
|||||
{"name":"dll_2adc2403d89adc16ead0","content":{"./node_modules/next/dist/build/polyfills/object-assign.js":{"id":"./node_modules/next/dist/build/polyfills/object-assign.js","buildMeta":{"providedExports":true}},"./node_modules/prop-types/checkPropTypes.js":{"id":"./node_modules/prop-types/checkPropTypes.js","buildMeta":{"providedExports":true}},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":{"id":"./node_modules/prop-types/lib/ReactPropTypesSecret.js","buildMeta":{"providedExports":true}},"./node_modules/react-dom/cjs/react-dom.development.js":{"id":"./node_modules/react-dom/cjs/react-dom.development.js","buildMeta":{"providedExports":true}},"./node_modules/react-dom/index.js":{"id":"./node_modules/react-dom/index.js","buildMeta":{"providedExports":true}},"./node_modules/react/cjs/react.development.js":{"id":"./node_modules/react/cjs/react.development.js","buildMeta":{"providedExports":true}},"./node_modules/react/index.js":{"id":"./node_modules/react/index.js","buildMeta":{"providedExports":true}},"./node_modules/scheduler/cjs/scheduler-tracing.development.js":{"id":"./node_modules/scheduler/cjs/scheduler-tracing.development.js","buildMeta":{"providedExports":true}},"./node_modules/scheduler/cjs/scheduler.development.js":{"id":"./node_modules/scheduler/cjs/scheduler.development.js","buildMeta":{"providedExports":true}},"./node_modules/scheduler/index.js":{"id":"./node_modules/scheduler/index.js","buildMeta":{"providedExports":true}},"./node_modules/scheduler/tracing.js":{"id":"./node_modules/scheduler/tracing.js","buildMeta":{"providedExports":true}}}} |
|
28539
.next/cache/autodll-webpack-plugin/development_instance_0_03338eb732eb91dca2737b4e48c1577d/dll_dc8ac110ce5d8530b237.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/autodll-webpack-plugin/development_instance_0_03338eb732eb91dca2737b4e48c1577d/dll_dc8ac110ce5d8530b237.js.map
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/autodll-webpack-plugin/development_instance_0_03338eb732eb91dca2737b4e48c1577d/stats.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"name":"my-app","version":"0.1.0","private":true,"scripts":{"dev":"next dev","build":"next build","start":"next start","lint":"eslint {components,hooks,lib,pages}/*.ts* {components,hooks,lib,pages}/**/*.ts*"},"dependencies":{"date-fns":"^2.16.0","gql-compress":"^2.0.18","gray-matter":"^4.0.2","jsonwebtoken":"^8.5.1","next":"9.3.5","next-auth":"^3.1.0","react":"16.13.1","react-dom":"16.13.1","remark":"^12.0.0","remark-html":"^11.0.1","yaml":"^1.10.0"},"devDependencies":{"@types/jsonwebtoken":"^8.5.0","@types/next-auth":"^3.1.1","@types/node":"^14.6.2","@types/react":"^16.9.48","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","eslint":"^7.8.1","eslint-config-google":"^0.14.0","eslint-plugin-react":"^7.20.6","typescript":"^4.0.2"},"readme":"ERROR: No README data found!","_id":"my-app@0.1.0"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/_app.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport Layout from \"../components/layout\";\nimport \"../styles/global.css\";\nexport default function App({\n Component,\n pageProps\n}) {\n return __jsx(Layout, {\n home: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8,\n columnNumber: 5\n }\n }, __jsx(Component, _extends({}, pageProps, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 7\n }\n })));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/_app.tsx"],"names":["Layout","App","Component","pageProps"],"mappings":";;;;;;AACA,OAAOA,MAAP,MAAmB,sBAAnB;AAEA,OAAO,sBAAP;AAEA,eAAe,SAASC,GAAT,CAAa;AAAEC,EAAAA,SAAF;AAAaC,EAAAA;AAAb,CAAb,EAAiD;AAC9D,SACE,MAAC,MAAD;AAAQ,IAAA,IAAI,MAAZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,SAAD,eAAeA,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KADF,CADF;AAKD","sourcesContent":["import { AppProps } from \"next/app\"\nimport Layout from \"../components/layout\";\n\nimport \"../styles/global.css\"\n\nexport default function App({ Component, pageProps }: AppProps) {\n return (\n <Layout home>\n <Component {...pageProps} />\n </Layout>\n );\n}\n"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar React = __importStar(require(\"react\"));\n\nexports.HeadManagerContext = React.createContext(null);\n\nif (true) {\n exports.HeadManagerContext.displayName = 'HeadManagerContext';\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/node_modules/next/dist/next-server/lib/head-manager-context.js"],"names":["__importStar","mod","__esModule","result","k","Object","hasOwnProperty","call","defineProperty","exports","value","React","require","HeadManagerContext","createContext","displayName"],"mappings":"AAAA;;AACA,IAAIA,YAAY,GAAI,QAAQ,KAAKA,YAAd,IAA+B,UAAUC,GAAV,EAAe;AAC7D,MAAIA,GAAG,IAAIA,GAAG,CAACC,UAAf,EAA2B,OAAOD,GAAP;AAC3B,MAAIE,MAAM,GAAG,EAAb;AACA,MAAIF,GAAG,IAAI,IAAX,EAAiB,KAAK,IAAIG,CAAT,IAAcH,GAAd;AAAmB,QAAII,MAAM,CAACC,cAAP,CAAsBC,IAAtB,CAA2BN,GAA3B,EAAgCG,CAAhC,CAAJ,EAAwCD,MAAM,CAACC,CAAD,CAAN,GAAYH,GAAG,CAACG,CAAD,CAAf;AAA3D;AACjBD,EAAAA,MAAM,CAAC,SAAD,CAAN,GAAoBF,GAApB;AACA,SAAOE,MAAP;AACH,CAND;;AAOAE,MAAM,CAACG,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAAEC,EAAAA,KAAK,EAAE;AAAT,CAA7C;;AACA,IAAMC,KAAK,GAAGX,YAAY,CAACY,OAAO,CAAC,OAAD,CAAR,CAA1B;;AACAH,OAAO,CAACI,kBAAR,GAA6BF,KAAK,CAACG,aAAN,CAAoB,IAApB,CAA7B;;AACA,UAA2C;AACvCL,EAAAA,OAAO,CAACI,kBAAR,CAA2BE,WAA3B,GAAyC,oBAAzC;AACH","sourcesContent":["\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst React = __importStar(require(\"react\"));\nexports.HeadManagerContext = React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n exports.HeadManagerContext.displayName = 'HeadManagerContext';\n}\n"]},"metadata":{},"sourceType":"script"} |
|
1
.next/cache/next-babel-loader/045cbdc33ffdbb0cbe882ba53434db88.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import React from \"react\";\nvar __jsx = React.createElement;\nimport \"../styles/global.css\";\nexport default function App(_ref) {\n var Component = _ref.Component,\n pageProps = _ref.pageProps;\n return __jsx(Component, pageProps);\n}","map":null,"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/src/components/layout.tsx\";\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport Head from \"next/head\";\nimport styles from \"./layout.module.css\";\nimport Link from \"next/link\";\nexport const siteTitle = \"Next.js Sample Website\";\nexport default function Layout({\n children,\n home\n}) {\n return __jsx(\"div\", {\n className: styles.container,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 7\n }\n }, __jsx(\"link\", {\n rel: \"icon\",\n href: \"/favicon.ico\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 9\n }\n }), __jsx(\"meta\", {\n name: \"description\",\n content: \"Learn how to build a personal website using Next.js\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }), __jsx(\"meta\", {\n name: \"og:title\",\n content: \"Aite RP\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 9\n }\n })), __jsx(\"main\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }, children), !home && __jsx(\"div\", {\n className: styles.backToHome,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n }, __jsx(Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 11\n }\n }, __jsx(\"a\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, \"\\u2190 Back to home\"))));\n}","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/src/components/layout.tsx"],"names":["React","Head","styles","Link","siteTitle","Layout","children","home","container","backToHome"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,WAAjB;AACA,OAAOC,MAAP,MAAmB,qBAAnB;AACA,OAAOC,IAAP,MAAiB,WAAjB;AAEA,OAAO,MAAMC,SAAS,GAAG,wBAAlB;AAEP,eAAe,SAASC,MAAT,CAAgB;AAC7BC,EAAAA,QAD6B;AAE7BC,EAAAA;AAF6B,CAAhB,EAMZ;AACD,SACE;AAAK,IAAA,SAAS,EAAEL,MAAM,CAACM,SAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAM,IAAA,GAAG,EAAC,MAAV;AAAiB,IAAA,IAAI,EAAC,cAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,EAEE;AACE,IAAA,IAAI,EAAC,aADP;AAEE,IAAA,OAAO,EAAC,qDAFV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,EAME;AAAM,IAAA,IAAI,EAAC,UAAX;AAAsB,IAAA,OAAO,EAAE,SAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IANF,CADF,EASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAOF,QAAP,CATF,EAUG,CAACC,IAAD,IACC;AAAK,IAAA,SAAS,EAAEL,MAAM,CAACO,UAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAM,IAAA,IAAI,EAAC,GAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BADF,CADF,CAXJ,CADF;AAoBD","sourcesContent":["import React from \"react\";\nimport Head from \"next/head\"\nimport styles from \"./layout.module.css\"\nimport Link from \"next/link\"\n\nexport const siteTitle = \"Next.js Sample Website\"\n\nexport default function Layout({\n children,\n home\n}: {\n children: React.ReactNode\n home?: boolean\n}) {\n return (\n <div className={styles.container}>\n <Head>\n <link rel=\"icon\" href=\"/favicon.ico\" />\n <meta\n name=\"description\"\n content=\"Learn how to build a personal website using Next.js\"\n />\n <meta name=\"og:title\" content={\"Aite RP\"} />\n </Head>\n <main>{children}</main>\n {!home && (\n <div className={styles.backToHome}>\n <Link href=\"/\">\n <a>← Back to home</a>\n </Link>\n </div>\n )}\n </div>\n )\n}\n"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/06643c61bcad88219e758d112e2859a2.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/06a6c484afce69cdc56690045dc6356b.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/_app.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Layout from \"../components/layout\";\nimport \"../styles/global.css\";\nexport default function App(_ref) {\n var Component = _ref.Component,\n pageProps = _ref.pageProps,\n router = _ref.router;\n return __jsx(Layout, {\n home: router.pathname === \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8,\n columnNumber: 5\n }\n }, __jsx(Component, _extends({}, pageProps, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 7\n }\n })));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/_app.tsx"],"names":["Layout","App","Component","pageProps","router","pathname"],"mappings":";;;;AACA,OAAOA,MAAP,MAAmB,sBAAnB;AAEA,OAAO,sBAAP;AAEA,eAAe,SAASC,GAAT,OAAyD;AAAA,MAA1CC,SAA0C,QAA1CA,SAA0C;AAAA,MAA/BC,SAA+B,QAA/BA,SAA+B;AAAA,MAApBC,MAAoB,QAApBA,MAAoB;AACtE,SACE,MAAC,MAAD;AAAQ,IAAA,IAAI,EAAEA,MAAM,CAACC,QAAP,KAAoB,GAAlC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,SAAD,eAAeF,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KADF,CADF;AAKD","sourcesContent":["import { AppProps } from \"next/app\"\nimport Layout from \"../components/layout\";\n\nimport \"../styles/global.css\"\n\nexport default function App({ Component, pageProps, router }: AppProps) {\n return (\n <Layout home={router.pathname === \"/\"}>\n <Component {...pageProps} />\n </Layout>\n );\n}\n"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n}); // Identify /[param]/ in route string\n\nconst TEST_ROUTE = /\\/\\[[^/]+?\\](?=\\/|$)/;\n\nfunction isDynamicRoute(route) {\n return TEST_ROUTE.test(route);\n}\n\nexports.isDynamicRoute = isDynamicRoute;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/node_modules/next/dist/next-server/lib/router/utils/is-dynamic.js"],"names":["Object","defineProperty","exports","value","TEST_ROUTE","isDynamicRoute","route","test"],"mappings":"AAAA;;AACAA,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAAEC,EAAAA,KAAK,EAAE;AAAT,CAA7C,E,CACA;;AACA,MAAMC,UAAU,GAAG,sBAAnB;;AACA,SAASC,cAAT,CAAwBC,KAAxB,EAA+B;AAC3B,SAAOF,UAAU,CAACG,IAAX,CAAgBD,KAAhB,CAAP;AACH;;AACDJ,OAAO,CAACG,cAAR,GAAyBA,cAAzB","sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Identify /[param]/ in route string\nconst TEST_ROUTE = /\\/\\[[^/]+?\\](?=\\/|$)/;\nfunction isDynamicRoute(route) {\n return TEST_ROUTE.test(route);\n}\nexports.isDynamicRoute = isDynamicRoute;\n"]},"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import compress from \"gql-compress\";\n\nclass GQLBrowserClient {\n async post(query, variables, operationName) {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const json = await res.json();\n\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`);\n }\n\n return json.data;\n }\n\n}\n\nexport function gql(a) {\n return compress(a.join(\"\"));\n}\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;","map":null,"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport getConfig from \"next/config\";\nimport * as jwt from \"jsonwebtoken\";\n\nvar Config = /*#__PURE__*/function () {\n function Config(data) {\n _classCallCheck(this, Config);\n\n _defineProperty(this, \"data\", void 0);\n\n this.data = data;\n\n while (this.data.api && this.data.api.urlRoot.endsWith(\"/\")) {\n this.data.api.urlRoot = this.data.api.urlRoot.slice(0, -1);\n }\n }\n\n _createClass(Config, [{\n key: \"auth0\",\n value: function auth0() {\n return {\n clientId: this.data.auth0.clientId,\n clientSecret: this.data.auth0.secret,\n domain: this.data.auth0.domain\n };\n }\n }, {\n key: \"session\",\n value: function session() {\n return this.data.session;\n }\n }, {\n key: \"apiUrl\",\n value: function apiUrl(path) {\n return this.data.api.urlRoot + path;\n }\n }, {\n key: \"jwtToken\",\n value: function jwtToken(username) {\n var expiry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;\n return jwt.sign({\n user: username,\n exp: Math.floor(Date.now() / 1000 + expiry)\n }, this.data.api.secretKey, {\n header: {\n kid: this.data.api.secretId\n }\n });\n }\n }]);\n\n return Config;\n}();\n\nvar config = new Config(getConfig().serverRuntimeConfig);\nexport default config;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/config.ts"],"names":["getConfig","jwt","Config","data","api","urlRoot","endsWith","slice","clientId","auth0","clientSecret","secret","domain","session","path","username","expiry","sign","user","exp","Math","floor","Date","now","secretKey","header","kid","secretId","config","serverRuntimeConfig"],"mappings":";;;AAAA,OAAOA,SAAP,MAAsB,aAAtB;AACA,OAAO,KAAKC,GAAZ,MAAqB,cAArB;;IAEMC,M;AAGJ,kBAAYC,IAAZ,EAA8B;AAAA;;AAAA;;AAC5B,SAAKA,IAAL,GAAYA,IAAZ;;AAEA,WAAO,KAAKA,IAAL,CAAUC,GAAV,IAAiB,KAAKD,IAAL,CAAUC,GAAV,CAAcC,OAAd,CAAsBC,QAAtB,CAA+B,GAA/B,CAAxB,EAA6D;AAC3D,WAAKH,IAAL,CAAUC,GAAV,CAAcC,OAAd,GAAwB,KAAKF,IAAL,CAAUC,GAAV,CAAcC,OAAd,CAAsBE,KAAtB,CAA4B,CAA5B,EAA+B,CAAC,CAAhC,CAAxB;AACD;AACF;;;;4BAEiE;AAChE,aAAO;AACLC,QAAAA,QAAQ,EAAE,KAAKL,IAAL,CAAUM,KAAV,CAAgBD,QADrB;AAELE,QAAAA,YAAY,EAAE,KAAKP,IAAL,CAAUM,KAAV,CAAgBE,MAFzB;AAGLC,QAAAA,MAAM,EAAE,KAAKT,IAAL,CAAUM,KAAV,CAAgBG;AAHnB,OAAP;AAKD;;;8BAE4B;AAC3B,aAAO,KAAKT,IAAL,CAAUU,OAAjB;AACD;;;2BAEMC,I,EAAc;AACnB,aAAO,KAAKX,IAAL,CAAUC,GAAV,CAAcC,OAAd,GAAwBS,IAA/B;AACD;;;6BAEQC,Q,EAA+C;AAAA,UAA7BC,MAA6B,uEAAZ,EAAY;AACtD,aAAOf,GAAG,CAACgB,IAAJ,CAAS;AACdC,QAAAA,IAAI,EAAEH,QADQ;AAEdI,QAAAA,GAAG,EAAEC,IAAI,CAACC,KAAL,CAAYC,IAAI,CAACC,GAAL,KAAa,IAAd,GAAsBP,MAAjC;AAFS,OAAT,EAGJ,KAAKb,IAAL,CAAUC,GAAV,CAAcoB,SAHV,EAGqB;AAC1BC,QAAAA,MAAM,EAAE;AACNC,UAAAA,GAAG,EAAE,KAAKvB,IAAL,CAAUC,GAAV,CAAcuB;AADb;AADkB,OAHrB,CAAP;AAQD;;;;;;AAgCH,IAAMC,MAAM,GAAG,IAAI1B,MAAJ,CAAWF,SAAS,GAAG6B,mBAAvB,CAAf;AAEA,eAAeD,MAAf","sourcesContent":["import getConfig from \"next/config\";\nimport * as jwt from \"jsonwebtoken\";\n\nclass Config {\n private data : ConfigData | null;\n \n constructor(data: ConfigData) {\n this.data = data;\n\n while (this.data.api && this.data.api.urlRoot.endsWith(\"/\")) {\n this.data.api.urlRoot = this.data.api.urlRoot.slice(0, -1)\n }\n }\n\n auth0(): {clientId: string, clientSecret: string, domain: string} {\n return {\n clientId: this.data.auth0.clientId,\n clientSecret: this.data.auth0.secret,\n domain: this.data.auth0.domain,\n }\n }\n\n session(): ConfigDataSession {\n return this.data.session\n }\n\n apiUrl(path: string) {\n return this.data.api.urlRoot + path;\n }\n\n jwtToken(username: string, expiry: number = 15): string {\n return jwt.sign({\n user: username,\n exp: Math.floor((Date.now() / 1000) + expiry),\n }, this.data.api.secretKey, {\n header: {\n kid: this.data.api.secretId,\n }\n })\n }\n}\n\nexport interface ConfigData {\n api: ConfigDataAPI\n auth0: ConfigDataAuth0\n session: ConfigDataSession\n redis: ConfigDataRedis\n}\n\ninterface ConfigDataAPI {\n urlRoot: string\n secretId: string\n secretKey: string\n}\n\ninterface ConfigDataAuth0 {\n secret: string\n clientId: string\n domain: string\n}\n\ninterface ConfigDataSession {\n secret: string\n secure?: boolean\n}\n\ninterface ConfigDataRedis {\n host: string\n port: number\n}\n\nconst config = new Config(getConfig().serverRuntimeConfig);\n\nexport default config;"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/09415617b0b0d31086aad181b90ec954.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/09890152c6b3f02f02f33f7f6612a6c7.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import config from \"../../config\";\nimport fetch from \"node-fetch\";\n\nclass GQLSSRClient {\n async post(query, variables, operationName) {\n const res = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const json = await res.json();\n\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`);\n }\n\n return json.data;\n }\n\n}\n\nconst gqlSsrClient = new GQLSSRClient();\nexport default gqlSsrClient;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/lib/client/graphql-ssr.ts"],"names":["config","fetch","GQLSSRClient","post","query","variables","operationName","res","apiUrl","method","body","JSON","stringify","credentials","headers","json","errors","Error","message","path","data","gqlSsrClient"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,cAAnB;AAEA,OAAOC,KAAP,MAAkB,YAAlB;;AAEA,MAAMC,YAAN,CAAwC;AACtC,QAAMC,IAAN,CAAWC,KAAX,EAA0BC,SAA1B,EAAyDC,aAAzD,EAAsG;AACpG,UAAMC,GAAG,GAAG,MAAMN,KAAK,CAACD,MAAM,CAACQ,MAAP,CAAc,UAAd,CAAD,EAA4B;AACjDC,MAAAA,MAAM,EAAE,MADyC;AAEjDC,MAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACR,QAAAA,KAAD;AAAQC,QAAAA,SAAR;AAAmBC,QAAAA;AAAnB,OAAf,CAF2C;AAGjDO,MAAAA,WAAW,EAAE,SAHoC;AAIjDC,MAAAA,OAAO,EAAE;AACP,wBAAgB;AADT;AAJwC,KAA5B,CAAvB;AASA,UAAMC,IAAI,GAAG,MAAMR,GAAG,CAACQ,IAAJ,EAAnB;;AACA,QAAIA,IAAI,CAACC,MAAT,EAAiB;AACf,YAAM,IAAIC,KAAJ,CAAW,GAAEF,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeE,OAAQ,KAAIH,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeG,IAAK,GAA5D,CAAN;AACD;;AAED,WAAOJ,IAAI,CAACK,IAAZ;AACD;;AAjBqC;;AAoBxC,MAAMC,YAAY,GAAG,IAAInB,YAAJ,EAArB;AACA,eAAemB,YAAf","sourcesContent":["import config from \"../../config\";\nimport { GQLClient, GQLRespone } from \"./graphql\";\nimport fetch from \"node-fetch\";\n\nclass GQLSSRClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n \n const json = await res.json();\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n return json.data\n }\n}\n\nconst gqlSsrClient = new GQLSSRClient();\nexport default gqlSsrClient;"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _toArray from \"@babel/runtime/helpers/esm/toArray\";\nvar _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport Layout, { siteTitle } from \"../components/layout\";\nimport utilStyles from \"../styles/utils.module.css\";\nexport var __N_SSP = true;\nexport default function Home(_ref) {\n var _ref$logs = _toArray(_ref.logs);\n\n return __jsx(Layout, {\n home: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, siteTitle)), __jsx(\"section\", {\n className: utilStyles.headingMd,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }\n }, __jsx(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }, \"[Your Self Introduction]\"), __jsx(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 9\n }\n }, \"(This is a sample website - you\\u2019ll be building a site like this in\", \" \", __jsx(\"a\", {\n href: \"https://nextjs.org/learn\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 11\n }\n }, \"our Next.js tutorial\"), \".)\")), __jsx(\"section\", {\n className: \"\".concat(utilStyles.headingMd, \" \").concat(utilStyles.padding1px),\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }, __jsx(\"h2\", {\n className: utilStyles.headingLg,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }\n }, \"Blog\"), __jsx(\"ul\", {\n className: utilStyles.list,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n })));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","Layout","siteTitle","utilStyles","Home","logs","headingMd","padding1px","headingLg","list"],"mappings":";;;;AAAA,OAAOA,IAAP,MAAiB,WAAjB;AACA,OAAOC,MAAP,IAAiBC,SAAjB,QAAkC,sBAAlC;AACA,OAAOC,UAAP,MAAuB,4BAAvB;;AAKA,eAAe,SAASC,IAAT,OAIZ;AAAA,gCAHDC,IAGC;;AACD,SACE,MAAC,MAAD;AAAQ,IAAA,IAAI,MAAZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAQH,SAAR,CADF,CADF,EAIE;AAAS,IAAA,SAAS,EAAEC,UAAU,CAACG,SAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCADF,EAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gFACqE,GADrE,EAEE;AAAG,IAAA,IAAI,EAAC,0BAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAFF,OAFF,CAJF,EAWE;AAAS,IAAA,SAAS,YAAKH,UAAU,CAACG,SAAhB,cAA6BH,UAAU,CAACI,UAAxC,CAAlB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAI,IAAA,SAAS,EAAEJ,UAAU,CAACK,SAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YADF,EAEE;AAAI,IAAA,SAAS,EAAEL,UAAU,CAACM,IAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,CAXF,CADF;AAoBD","sourcesContent":["import Head from \"next/head\"\nimport Layout, { siteTitle } from \"../components/layout\"\nimport utilStyles from \"../styles/utils.module.css\"\nimport { GetServerSideProps } from \"next\";\nimport { LogHeader, listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\"\n\nexport default function Home({\n logs: []\n}: {\n logs: LogHeader[]\n}) {\n return (\n <Layout home>\n <Head>\n <title>{siteTitle}</title>\n </Head>\n <section className={utilStyles.headingMd}>\n <p>[Your Self Introduction]</p>\n <p>\n (This is a sample website - you’ll be building a site like this in{\" \"}\n <a href=\"https://nextjs.org/learn\">our Next.js tutorial</a>.)\n </p>\n </section>\n <section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>\n <h2 className={utilStyles.headingLg}>Blog</h2>\n <ul className={utilStyles.list}>\n </ul>\n </section>\n \n </Layout>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {characters: [\"C68\"]})\n return {\n props: {\n logs\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/_app.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport \"../styles/global.css\";\nexport default function App(_ref) {\n var Component = _ref.Component,\n pageProps = _ref.pageProps;\n return __jsx(Component, _extends({}, pageProps, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 6,\n columnNumber: 10\n }\n }));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/_app.tsx"],"names":["App","Component","pageProps"],"mappings":";;;;AAEA,OAAO,sBAAP;AAEA,eAAe,SAASA,GAAT,OAAiD;AAAA,MAAlCC,SAAkC,QAAlCA,SAAkC;AAAA,MAAvBC,SAAuB,QAAvBA,SAAuB;AAC9D,SAAO,MAAC,SAAD,eAAeA,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAP;AACD","sourcesContent":["import { AppProps } from \"next/app\"\n\nimport \"../styles/global.css\"\n\nexport default function App({ Component, pageProps }: AppProps) {\n return <Component {...pageProps} />;\n}\n"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/0c75d30b776a7bf5a00b4f460f3010b4.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport fs from \"fs\";\nimport path from \"path\";\nimport matter from \"gray-matter\";\nimport remark from \"remark\";\nimport html from \"remark-html\";\nconst postsDirectory = path.join(process.cwd(), \"posts\");\nexport function getSortedPostsData() {\n // Get file names under /posts\n const fileNames = fs.readdirSync(postsDirectory);\n const allPostsData = fileNames.map(fileName => {\n // Remove \".md\" from file name to get id\n const id = fileName.replace(/\\.md$/, \"\"); // Read markdown file as string\n\n const fullPath = path.join(postsDirectory, fileName);\n const fileContents = fs.readFileSync(fullPath, \"utf8\"); // Use gray-matter to parse the post metadata section\n\n const matterResult = matter(fileContents); // Combine the data with the id\n\n return _objectSpread({\n id\n }, matterResult.data);\n }); // Sort posts by date\n\n return allPostsData.sort((a, b) => {\n if (a.date < b.date) {\n return 1;\n } else {\n return -1;\n }\n });\n}\nexport function getAllPostIds() {\n const fileNames = fs.readdirSync(postsDirectory);\n return fileNames.map(fileName => {\n return {\n params: {\n id: fileName.replace(/\\.md$/, \"\")\n }\n };\n });\n}\nexport async function getPostData(id) {\n const fullPath = path.join(postsDirectory, `${id}.md`);\n const fileContents = fs.readFileSync(fullPath, \"utf8\"); // Use gray-matter to parse the post metadata section\n\n const matterResult = matter(fileContents); // Use remark to convert markdown into HTML string\n\n const processedContent = await remark().use(html).process(matterResult.content);\n const contentHtml = processedContent.toString(); // Combine the data with the id and contentHtml\n\n return _objectSpread({\n id,\n contentHtml\n }, matterResult.data);\n}","map":null,"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/0db760cb463e900d782959dbccc8ef22.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import { gql } from \"../client/graphql\";\nexport async function listLogs(gql, filter) {\n return (await gql.post(LOGS_DOC, {\n filter\n }, \"ListLogs\")).logs;\n}\nconst LOGS_DOC = gql`\nquery ListLogs($filter: LogsFilter) {\n logs(filter: $filter) {\n ...LogMeta\n ...LogMetaCharacters\n }\n}\n\nquery FindLog($id: String!) {\n log(id: $id) {\n ...LogMeta\n ...LogData\n }\n}\n\nfragment LogMeta on Log {\n id\n shortId\n date\n channelName\n title\n eventName\n description\n}\n\nfragment LogMetaCharacters on Log {\n characters {\n id\n name\n shortName\n author\n }\n}\n\nfragment LogData on Log {\n open\n channel {\n name\n logged\n hub\n eventName\n locationName\n }\n characters {\n id\n nicks\n author\n name\n shortName\n description\n }\n posts {\n id\n time\n kind\n nick\n text\n position\n }\n}\n`;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/lib/rpdata/logs.ts"],"names":["gql","listLogs","filter","post","LOGS_DOC","logs"],"mappings":"AAAA,SAAoBA,GAApB,QAA+B,mBAA/B;AAEA,OAAO,eAAeC,QAAf,CAAwBD,GAAxB,EAAwCE,MAAxC,EAAkF;AACvF,SAAO,CAAC,MAAMF,GAAG,CAACG,IAAJ,CAASC,QAAT,EAAmB;AAACF,IAAAA;AAAD,GAAnB,EAA6B,UAA7B,CAAP,EAAiDG,IAAxD;AACD;AAiCD,MAAMD,QAAQ,GAAGJ,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAArB","sourcesContent":["import { GQLClient, gql } from \"../client/graphql\";\n\nexport async function listLogs(gql: GQLClient, filter?: LogFilter): Promise<LogHeader[]> {\n return (await gql.post(LOGS_DOC, {filter}, \"ListLogs\")).logs;\n}\n\nexport interface LogFilter {\n /** Character IDs */\n characters?: string[]\n\n /** Limit the result set size. */\n limit?: number\n}\n\nexport interface LogHeader extends LogCommon {\n /** Character IDs */\n characters: LogHeaderCharacter[]\n}\n\ninterface LogCommon {\n id: string\n shortId: string\n date: string\n channelName: string\n title: string\n description: string\n eventName: string\n open: boolean\n}\n\ninterface LogHeaderCharacter {\n id: string\n name: string\n shortName: string\n author: string\n}\n\nconst LOGS_DOC = gql`\nquery ListLogs($filter: LogsFilter) {\n logs(filter: $filter) {\n ...LogMeta\n ...LogMetaCharacters\n }\n}\n\nquery FindLog($id: String!) {\n log(id: $id) {\n ...LogMeta\n ...LogData\n }\n}\n\nfragment LogMeta on Log {\n id\n shortId\n date\n channelName\n title\n eventName\n description\n}\n\nfragment LogMetaCharacters on Log {\n characters {\n id\n name\n shortName\n author\n }\n}\n\nfragment LogData on Log {\n open\n channel {\n name\n logged\n hub\n eventName\n locationName\n }\n characters {\n id\n nicks\n author\n name\n shortName\n description\n }\n posts {\n id\n time\n kind\n nick\n text\n position\n }\n}\n`;"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/1046abbcf432abcdea8496feb7c5f47f.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _toArray from \"@babel/runtime/helpers/esm/toArray\";\nvar _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport Layout, { siteTitle } from \"../components/layout\";\nimport utilStyles from \"../styles/utils.module.css\";\nexport var __N_SSP = true;\nexport default function Home(_ref) {\n var _ref$logs = _toArray(_ref.logs);\n\n return __jsx(Layout, {\n home: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 9\n }\n }, siteTitle)), __jsx(\"section\", {\n className: utilStyles.headingMd,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 7\n }\n }, __jsx(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 9\n }\n }, \"[Your Self Introduction]\"), __jsx(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 9\n }\n }, \"(This is a sample website - you\\u2019ll be building a site like this in\", \" \", __jsx(\"a\", {\n href: \"https://nextjs.org/learn\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 11\n }\n }, \"our Next.js tutorial\"), \".)\")), __jsx(\"section\", {\n className: \"\".concat(utilStyles.headingMd, \" \").concat(utilStyles.padding1px),\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 7\n }\n }, __jsx(\"h2\", {\n className: utilStyles.headingLg,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 9\n }\n }, \"Blog\"), __jsx(\"ul\", {\n className: utilStyles.list,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }\n })));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","Layout","siteTitle","utilStyles","Home","logs","headingMd","padding1px","headingLg","list"],"mappings":";;;;AAAA,OAAOA,IAAP,MAAiB,WAAjB;AACA,OAAOC,MAAP,IAAiBC,SAAjB,QAAkC,sBAAlC;AACA,OAAOC,UAAP,MAAuB,4BAAvB;;AAOA,eAAe,SAASC,IAAT,OAIZ;AAAA,gCAHDC,IAGC;;AACD,SACE,MAAC,MAAD;AAAQ,IAAA,IAAI,MAAZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAQH,SAAR,CADF,CADF,EAIE;AAAS,IAAA,SAAS,EAAEC,UAAU,CAACG,SAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCADF,EAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gFACqE,GADrE,EAEE;AAAG,IAAA,IAAI,EAAC,0BAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAFF,OAFF,CAJF,EAWE;AAAS,IAAA,SAAS,YAAKH,UAAU,CAACG,SAAhB,cAA6BH,UAAU,CAACI,UAAxC,CAAlB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAI,IAAA,SAAS,EAAEJ,UAAU,CAACK,SAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YADF,EAEE;AAAI,IAAA,SAAS,EAAEL,UAAU,CAACM,IAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,CAXF,CADF;AAmBD","sourcesContent":["import Head from \"next/head\"\nimport Layout, { siteTitle } from \"../components/layout\"\nimport utilStyles from \"../styles/utils.module.css\"\nimport Link from \"next/link\"\nimport Date from \"../components/date\"\nimport { GetServerSideProps } from \"next\";\nimport { LogHeader, listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\"\n\nexport default function Home({\n logs: []\n}: {\n logs: LogHeader[]\n}) {\n return (\n <Layout home>\n <Head>\n <title>{siteTitle}</title>\n </Head>\n <section className={utilStyles.headingMd}>\n <p>[Your Self Introduction]</p>\n <p>\n (This is a sample website - you’ll be building a site like this in{\" \"}\n <a href=\"https://nextjs.org/learn\">our Next.js tutorial</a>.)\n </p>\n </section>\n <section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>\n <h2 className={utilStyles.headingLg}>Blog</h2>\n <ul className={utilStyles.list}>\n </ul>\n </section>\n </Layout>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async () => {\n const allPostsData = listLogs(gqlSsrClient, {characters: [\"C68\"]})\n return {\n props: {\n allPostsData\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/12d573a0caac42462df168537b21f68d.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport Layout, { siteTitle } from \"../components/layout\";\nimport utilStyles from \"../styles/utils.module.css\";\nimport Link from \"next/link\";\nimport Date from \"../components/date\";\nexport var __N_SSP = true;\nexport default function Home(_ref) {\n var allPostsData = _ref.allPostsData;\n return __jsx(Layout, {\n home: true\n }, __jsx(Head, null, __jsx(\"title\", null, siteTitle)), __jsx(\"section\", {\n className: utilStyles.headingMd\n }, __jsx(\"p\", null, \"[Your Self Introduction]\"), __jsx(\"p\", null, \"(This is a sample website - you\\u2019ll be building a site like this in\", \" \", __jsx(\"a\", {\n href: \"https://nextjs.org/learn\"\n }, \"our Next.js tutorial\"), \".)\")), __jsx(\"section\", {\n className: \"\".concat(utilStyles.headingMd, \" \").concat(utilStyles.padding1px)\n }, __jsx(\"h2\", {\n className: utilStyles.headingLg\n }, \"Blog\"), __jsx(\"ul\", {\n className: utilStyles.list\n }, allPostsData.map(function (_ref2) {\n var id = _ref2.id,\n date = _ref2.date,\n title = _ref2.title;\n return __jsx(\"li\", {\n className: utilStyles.listItem,\n key: id\n }, __jsx(Link, {\n href: \"/posts/[id]\",\n as: \"/posts/\".concat(id)\n }, __jsx(\"a\", null, title)), __jsx(\"br\", null), __jsx(\"small\", {\n className: utilStyles.lightText\n }, __jsx(Date, {\n dateString: date\n })));\n }))));\n}","map":null,"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar React = __importStar(require(\"react\"));\n\nexports.RouterContext = React.createContext(null);\n\nif (true) {\n exports.RouterContext.displayName = 'RouterContext';\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/node_modules/next/dist/next-server/lib/router-context.js"],"names":["__importStar","mod","__esModule","result","k","Object","hasOwnProperty","call","defineProperty","exports","value","React","require","RouterContext","createContext","displayName"],"mappings":"AAAA;;AACA,IAAIA,YAAY,GAAI,QAAQ,KAAKA,YAAd,IAA+B,UAAUC,GAAV,EAAe;AAC7D,MAAIA,GAAG,IAAIA,GAAG,CAACC,UAAf,EAA2B,OAAOD,GAAP;AAC3B,MAAIE,MAAM,GAAG,EAAb;AACA,MAAIF,GAAG,IAAI,IAAX,EAAiB,KAAK,IAAIG,CAAT,IAAcH,GAAd;AAAmB,QAAII,MAAM,CAACC,cAAP,CAAsBC,IAAtB,CAA2BN,GAA3B,EAAgCG,CAAhC,CAAJ,EAAwCD,MAAM,CAACC,CAAD,CAAN,GAAYH,GAAG,CAACG,CAAD,CAAf;AAA3D;AACjBD,EAAAA,MAAM,CAAC,SAAD,CAAN,GAAoBF,GAApB;AACA,SAAOE,MAAP;AACH,CAND;;AAOAE,MAAM,CAACG,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAAEC,EAAAA,KAAK,EAAE;AAAT,CAA7C;;AACA,IAAMC,KAAK,GAAGX,YAAY,CAACY,OAAO,CAAC,OAAD,CAAR,CAA1B;;AACAH,OAAO,CAACI,aAAR,GAAwBF,KAAK,CAACG,aAAN,CAAoB,IAApB,CAAxB;;AACA,UAA2C;AACvCL,EAAAA,OAAO,CAACI,aAAR,CAAsBE,WAAtB,GAAoC,eAApC;AACH","sourcesContent":["\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst React = __importStar(require(\"react\"));\nexports.RouterContext = React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n exports.RouterContext.displayName = 'RouterContext';\n}\n"]},"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport fetch from \"node-fetch\";\nimport { getSession } from \"next-auth/client\";\nimport config from \"../../config\";\nexport default async function post(req, res) {\n if (req.method !== \"POST\") {\n res.status(405).json({\n error: \"Method not allowed;.\"\n });\n return;\n }\n\n if (typeof req.body !== \"object\" || typeof req.body.query !== \"string\") {\n res.status(400).json({\n error: \"Invalid request body (expected json object with query)\"\n });\n return;\n }\n\n const authHeaders = {};\n const session = await getSession({\n req\n });\n\n if (session != null && session.user != null) {\n authHeaders[\"Authorization\"] = `Bearer ${config.jwtToken(session.user.name, 15)}`;\n }\n\n const apires = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n headers: _objectSpread({\n \"Content-Type\": \"application/json\"\n }, authHeaders),\n body: JSON.stringify(req.body)\n });\n res.setHeader(\"Content-Type\", apires.headers.get(\"Content-Type\"));\n res.status(apires.status);\n apires.body.pipe(res);\n}","map":null,"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import compress from \"gql-compress\";\n\nclass GQLBrowserClient {\n async post(query, variables, operationName) {\n const res = await fetch(`/api/graphql`, {\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const json = await res.json();\n\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`);\n }\n\n return json.data;\n }\n\n}\n\nexport function gql(a) {\n return compress(a.join(\"\"));\n}\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/lib/client/graphql.ts"],"names":["compress","GQLBrowserClient","post","query","variables","operationName","res","fetch","body","JSON","stringify","credentials","headers","json","errors","Error","message","path","data","gql","a","join","gqlBrowserClient"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,cAArB;;AAEA,MAAMC,gBAAN,CAA4C;AAC1C,QAAMC,IAAN,CAAWC,KAAX,EAA0BC,SAA1B,EAAyDC,aAAzD,EAAsG;AACpG,UAAMC,GAAG,GAAG,MAAMC,KAAK,CAAE,cAAF,EAAiB;AACtCC,MAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACP,QAAAA,KAAD;AAAQC,QAAAA,SAAR;AAAmBC,QAAAA;AAAnB,OAAf,CADgC;AAEtCM,MAAAA,WAAW,EAAE,SAFyB;AAGtCC,MAAAA,OAAO,EAAE;AACP,wBAAgB;AADT;AAH6B,KAAjB,CAAvB;AASA,UAAMC,IAAI,GAAG,MAAMP,GAAG,CAACO,IAAJ,EAAnB;;AACA,QAAIA,IAAI,CAACC,MAAT,EAAiB;AACf,YAAM,IAAIC,KAAJ,CAAW,GAAEF,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeE,OAAQ,KAAIH,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeG,IAAK,GAA5D,CAAN;AACD;;AAED,WAAOJ,IAAI,CAACK,IAAZ;AACD;;AAjByC;;AA+B5C,OAAO,SAASC,GAAT,CAAaC,CAAb,EAA8C;AACnD,SAAOpB,QAAQ,CAACoB,CAAC,CAACC,IAAF,CAAO,EAAP,CAAD,CAAf;AACD;AAED,MAAMC,gBAAgB,GAAG,IAAIrB,gBAAJ,EAAzB;AACA,eAAeqB,gBAAf","sourcesContent":["import compress from \"gql-compress\";\n\nclass GQLBrowserClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(`/api/graphql`, {\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n })\n\n\n const json = await res.json();\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n return json.data\n }\n}\n\nexport interface GQLClient {\n post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone>\n}\n\nexport interface GQLRespone {[x:string]: any}\n\nexport interface GQLError {\n message: string\n path: string[]\n}\n\nexport function gql(a: TemplateStringsArray): string {\n return compress(a.join(\"\")) as string;\n}\n\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport styles from \"./layout.module.css\";\nimport Link from \"next/link\";\nconst name = \"[Your Name]\";\nexport const siteTitle = \"Next.js Sample Website\";\nexport default function Layout({\n children,\n home\n}) {\n return __jsx(\"div\", {\n className: styles.container\n }, __jsx(Head, null, __jsx(\"link\", {\n rel: \"icon\",\n href: \"/favicon.ico\"\n }), __jsx(\"meta\", {\n name: \"description\",\n content: \"Learn how to build a personal website using Next.js\"\n }), __jsx(\"meta\", {\n property: \"og:image\",\n content: `https://og-image.now.sh/${encodeURI(siteTitle)}.png?theme=light&md=0&fontSize=75px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-black-logo.svg`\n }), __jsx(\"meta\", {\n name: \"og:title\",\n content: siteTitle\n }), __jsx(\"meta\", {\n name: \"twitter:card\",\n content: \"summary_large_image\"\n })), __jsx(\"main\", null, children), !home && __jsx(\"div\", {\n className: styles.backToHome\n }, __jsx(Link, {\n href: \"/\"\n }, __jsx(\"a\", null, \"\\u2190 Back to home\"))));\n}","map":null,"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport compress from \"gql-compress\";\n\nvar GQLBrowserClient = /*#__PURE__*/function () {\n function GQLBrowserClient() {\n _classCallCheck(this, GQLBrowserClient);\n }\n\n _createClass(GQLBrowserClient, [{\n key: \"post\",\n value: function post(query, variables, operationName) {\n var res, json;\n return _regeneratorRuntime.async(function post$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _regeneratorRuntime.awrap(fetch(\"/api/graphql\", {\n method: \"POST\",\n body: JSON.stringify({\n query: query,\n variables: variables,\n operationName: operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n }));\n\n case 2:\n res = _context.sent;\n _context.next = 5;\n return _regeneratorRuntime.awrap(res.json());\n\n case 5:\n json = _context.sent;\n\n if (!json.errors) {\n _context.next = 8;\n break;\n }\n\n throw new Error(\"\".concat(json.errors[0].message, \" (\").concat(json.errors[0].path, \")\"));\n\n case 8:\n return _context.abrupt(\"return\", json.data);\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, null, null, null, Promise);\n }\n }]);\n\n return GQLBrowserClient;\n}();\n\nexport function gql(a) {\n return compress(a.join(\"\"));\n}\nvar gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/lib/client/graphql.ts"],"names":["compress","GQLBrowserClient","query","variables","operationName","fetch","method","body","JSON","stringify","credentials","headers","res","json","errors","Error","message","path","data","gql","a","join","gqlBrowserClient"],"mappings":";;;AAAA,OAAOA,QAAP,MAAqB,cAArB;;IAEMC,gB;;;;;;;yBACOC,K,EAAeC,S,EAA+BC,a;;;;;;;+CACrCC,KAAK,iBAAiB;AACtCC,gBAAAA,MAAM,EAAE,MAD8B;AAEtCC,gBAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACP,kBAAAA,KAAK,EAALA,KAAD;AAAQC,kBAAAA,SAAS,EAATA,SAAR;AAAmBC,kBAAAA,aAAa,EAAbA;AAAnB,iBAAf,CAFgC;AAGtCM,gBAAAA,WAAW,EAAE,SAHyB;AAItCC,gBAAAA,OAAO,EAAE;AACP,kCAAgB;AADT;AAJ6B,eAAjB,C;;;AAAjBC,cAAAA,G;;+CASaA,GAAG,CAACC,IAAJ,E;;;AAAbA,cAAAA,I;;mBACFA,IAAI,CAACC,M;;;;;oBACD,IAAIC,KAAJ,WAAaF,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeE,OAA5B,eAAwCH,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeG,IAAvD,O;;;+CAGDJ,IAAI,CAACK,I;;;;;;;;;;;;;;AAehB,OAAO,SAASC,GAAT,CAAaC,CAAb,EAA8C;AACnD,SAAOpB,QAAQ,CAACoB,CAAC,CAACC,IAAF,CAAO,EAAP,CAAD,CAAf;AACD;AAED,IAAMC,gBAAgB,GAAG,IAAIrB,gBAAJ,EAAzB;AACA,eAAeqB,gBAAf","sourcesContent":["import compress from \"gql-compress\";\n\nclass GQLBrowserClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n })\n\n const json = await res.json();\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n return json.data\n }\n}\n\nexport interface GQLClient {\n post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone>\n}\n\nexport interface GQLRespone {[x:string]: any}\n\nexport interface GQLError {\n message: string\n path: string[]\n}\n\nexport function gql(a: TemplateStringsArray): string {\n return compress(a.join(\"\")) as string;\n}\n\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n/*\nMIT License\n\nCopyright (c) Jason Miller (https://jasonformat.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction mitt() {\n const all = Object.create(null);\n return {\n on(type, handler) {\n ;\n (all[type] || (all[type] = [])).push(handler);\n },\n\n off(type, handler) {\n if (all[type]) {\n // tslint:disable-next-line:no-bitwise\n all[type].splice(all[type].indexOf(handler) >>> 0, 1);\n }\n },\n\n emit(type, ...evts) {\n // eslint-disable-next-line array-callback-return\n ;\n (all[type] || []).slice().map(handler => {\n handler(...evts);\n });\n }\n\n };\n}\n\nexports.default = mitt;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/node_modules/next/dist/next-server/lib/mitt.js"],"names":["Object","defineProperty","exports","value","mitt","all","create","on","type","handler","push","off","splice","indexOf","emit","evts","slice","map","default"],"mappings":"AAAA;AACA;;;;;;;;;;;;AAWAA,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAAEC,EAAAA,KAAK,EAAE;AAAT,CAA7C;;AACA,SAASC,IAAT,GAAgB;AACZ,QAAMC,GAAG,GAAGL,MAAM,CAACM,MAAP,CAAc,IAAd,CAAZ;AACA,SAAO;AACHC,IAAAA,EAAE,CAACC,IAAD,EAAOC,OAAP,EAAgB;AACd;AACA,OAACJ,GAAG,CAACG,IAAD,CAAH,KAAcH,GAAG,CAACG,IAAD,CAAH,GAAY,EAA1B,CAAD,EAAgCE,IAAhC,CAAqCD,OAArC;AACH,KAJE;;AAKHE,IAAAA,GAAG,CAACH,IAAD,EAAOC,OAAP,EAAgB;AACf,UAAIJ,GAAG,CAACG,IAAD,CAAP,EAAe;AACX;AACAH,QAAAA,GAAG,CAACG,IAAD,CAAH,CAAUI,MAAV,CAAiBP,GAAG,CAACG,IAAD,CAAH,CAAUK,OAAV,CAAkBJ,OAAlB,MAA+B,CAAhD,EAAmD,CAAnD;AACH;AACJ,KAVE;;AAWHK,IAAAA,IAAI,CAACN,IAAD,EAAO,GAAGO,IAAV,EAAgB;AAChB;AACA;AACA,OAACV,GAAG,CAACG,IAAD,CAAH,IAAa,EAAd,EAAkBQ,KAAlB,GAA0BC,GAA1B,CAA+BR,OAAD,IAAa;AACvCA,QAAAA,OAAO,CAAC,GAAGM,IAAJ,CAAP;AACH,OAFD;AAGH;;AAjBE,GAAP;AAmBH;;AACDb,OAAO,CAACgB,OAAR,GAAkBd,IAAlB","sourcesContent":["\"use strict\";\n/*\nMIT License\n\nCopyright (c) Jason Miller (https://jasonformat.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction mitt() {\n const all = Object.create(null);\n return {\n on(type, handler) {\n ;\n (all[type] || (all[type] = [])).push(handler);\n },\n off(type, handler) {\n if (all[type]) {\n // tslint:disable-next-line:no-bitwise\n all[type].splice(all[type].indexOf(handler) >>> 0, 1);\n }\n },\n emit(type, ...evts) {\n // eslint-disable-next-line array-callback-return\n ;\n (all[type] || []).slice().map((handler) => {\n handler(...evts);\n });\n },\n };\n}\nexports.default = mitt;\n"]},"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport { listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nexport default function Home({\n logs\n}) {\n return __jsx(React.Fragment, null, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 9\n }\n }, \"Logs - Aite RP\")), __jsx(\"ol\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 7\n }\n }, logs.map(l => __jsx(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 24\n }\n }, l.id))));\n}\nexport const getServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {\n limit: 10\n });\n return {\n props: {\n logs\n }\n };\n};","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","listLogs","gqlSsrClient","Home","logs","map","l","id","getServerSideProps","limit","props"],"mappings":";;;AAAA,OAAOA,IAAP,MAAiB,WAAjB;AAKA,SAAoBC,QAApB,QAAoC,oBAApC;AACA,OAAOC,YAAP,MAAyB,2BAAzB;AAMA,eAAe,SAASC,IAAT,CAAc;AAACC,EAAAA;AAAD,CAAd,EAAiC;AAC9C,SACE,4BACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBADF,CADF,EAIE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGA,IAAI,CAACC,GAAL,CAASC,CAAC,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAKA,CAAC,CAACC,EAAP,CAAd,CADH,CAJF,CADF;AAUD;AAED,OAAO,MAAMC,kBAAsC,GAAG,YAAY;AAChE,QAAMJ,IAAI,GAAG,MAAMH,QAAQ,CAACC,YAAD,EAAe;AAACO,IAAAA,KAAK,EAAE;AAAR,GAAf,CAA3B;AACA,SAAO;AACLC,IAAAA,KAAK,EAAE;AACLN,MAAAA;AADK;AADF,GAAP;AAKD,CAPM","sourcesContent":["import Head from \"next/head\"\nimport { siteTitle } from \"../components/layout\"\nimport utilStyles from \"../styles/utils.module.css\"\nimport { GetServerSideProps } from \"next\";\n\nimport { LogHeader, listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\"\n\ninterface HomeProps {\n logs: LogHeader[]\n}\n\nexport default function Home({logs}: HomeProps) {\n return (\n <>\n <Head>\n <title>Logs - Aite RP</title>\n </Head>\n <ol>\n {logs.map(l => <li>{l.id}</li>)}\n </ol>\n </>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {limit: 10})\n return {\n props: {\n logs\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar react_1 = __importDefault(require(\"react\"));\n\nvar side_effect_1 = __importDefault(require(\"./side-effect\"));\n\nvar amp_context_1 = require(\"./amp-context\");\n\nvar head_manager_context_1 = require(\"./head-manager-context\");\n\nvar amp_1 = require(\"./amp\");\n\nfunction defaultHead() {\n var inAmpMode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var head = [react_1[\"default\"].createElement(\"meta\", {\n charSet: \"utf-8\"\n })];\n\n if (!inAmpMode) {\n head.push(react_1[\"default\"].createElement(\"meta\", {\n name: \"viewport\",\n content: \"width=device-width\"\n }));\n }\n\n return head;\n}\n\nexports.defaultHead = defaultHead;\n\nfunction onlyReactElement(list, child) {\n // React children can be \"string\" or \"number\" in this case we ignore them for backwards compat\n if (typeof child === 'string' || typeof child === 'number') {\n return list;\n } // Adds support for React.Fragment\n\n\n if (child.type === react_1[\"default\"].Fragment) {\n return list.concat(react_1[\"default\"].Children.toArray(child.props.children).reduce(function (fragmentList, fragmentChild) {\n if (typeof fragmentChild === 'string' || typeof fragmentChild === 'number') {\n return fragmentList;\n }\n\n return fragmentList.concat(fragmentChild);\n }, []));\n }\n\n return list.concat(child);\n}\n\nvar METATYPES = ['name', 'httpEquiv', 'charSet', 'itemProp'];\n/*\n returns a function for filtering head child elements\n which shouldn't be duplicated, like <title/>\n Also adds support for deduplicated `key` properties\n*/\n\nfunction unique() {\n var keys = new Set();\n var tags = new Set();\n var metaTypes = new Set();\n var metaCategories = {};\n return function (h) {\n var unique = true;\n\n if (h.key && typeof h.key !== 'number' && h.key.indexOf('$') > 0) {\n var key = h.key.slice(h.key.indexOf('$') + 1);\n\n if (keys.has(key)) {\n unique = false;\n } else {\n keys.add(key);\n }\n } // eslint-disable-next-line default-case\n\n\n switch (h.type) {\n case 'title':\n case 'base':\n if (tags.has(h.type)) {\n unique = false;\n } else {\n tags.add(h.type);\n }\n\n break;\n\n case 'meta':\n for (var i = 0, len = METATYPES.length; i < len; i++) {\n var metatype = METATYPES[i];\n if (!h.props.hasOwnProperty(metatype)) continue;\n\n if (metatype === 'charSet') {\n if (metaTypes.has(metatype)) {\n unique = false;\n } else {\n metaTypes.add(metatype);\n }\n } else {\n var category = h.props[metatype];\n var categories = metaCategories[metatype] || new Set();\n\n if (categories.has(category)) {\n unique = false;\n } else {\n categories.add(category);\n metaCategories[metatype] = categories;\n }\n }\n }\n\n break;\n }\n\n return unique;\n };\n}\n/**\n *\n * @param headElements List of multiple <Head> instances\n */\n\n\nfunction reduceComponents(headElements, props) {\n return headElements.reduce(function (list, headElement) {\n var headElementChildren = react_1[\"default\"].Children.toArray(headElement.props.children);\n return list.concat(headElementChildren);\n }, []).reduce(onlyReactElement, []).reverse().concat(defaultHead(props.inAmpMode)).filter(unique()).reverse().map(function (c, i) {\n var key = c.key || i;\n return react_1[\"default\"].cloneElement(c, {\n key: key\n });\n });\n}\n\nvar Effect = side_effect_1[\"default\"]();\n/**\n * This component injects elements to `<head>` of your page.\n * To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once.\n */\n\nfunction Head(_ref) {\n var children = _ref.children;\n return react_1[\"default\"].createElement(amp_context_1.AmpStateContext.Consumer, null, function (ampState) {\n return react_1[\"default\"].createElement(head_manager_context_1.HeadManagerContext.Consumer, null, function (updateHead) {\n return react_1[\"default\"].createElement(Effect, {\n reduceComponentsToState: reduceComponents,\n handleStateChange: updateHead,\n inAmpMode: amp_1.isInAmpMode(ampState)\n }, children);\n });\n });\n}\n\nHead.rewind = Effect.rewind;\nexports[\"default\"] = Head;","map":null,"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _toArray from \"@babel/runtime/helpers/esm/toArray\";\nvar _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport Layout, { siteTitle } from \"../components/layout\";\nimport utilStyles from \"../styles/utils.module.css\";\nexport var __N_SSP = true;\nexport default function Home(_ref) {\n var _ref$logs = _toArray(_ref.logs);\n\n return __jsx(Layout, {\n home: true,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, siteTitle)), __jsx(\"section\", {\n className: utilStyles.headingMd,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }\n }, __jsx(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }, \"[Your Self Introduction]\"), __jsx(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 9\n }\n }, \"(This is a sample website - you\\u2019ll be building a site like this in\", \" \", __jsx(\"a\", {\n href: \"https://nextjs.org/learn\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 11\n }\n }, \"our Next.js tutorial\"), \".)\")), __jsx(\"section\", {\n className: \"\".concat(utilStyles.headingMd, \" \").concat(utilStyles.padding1px),\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }, __jsx(\"h2\", {\n className: utilStyles.headingLg,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }\n }, \"Blog\"), __jsx(\"ul\", {\n className: utilStyles.list,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n })));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","Layout","siteTitle","utilStyles","Home","logs","headingMd","padding1px","headingLg","list"],"mappings":";;;;AAAA,OAAOA,IAAP,MAAiB,WAAjB;AACA,OAAOC,MAAP,IAAiBC,SAAjB,QAAkC,sBAAlC;AACA,OAAOC,UAAP,MAAuB,4BAAvB;;AAKA,eAAe,SAASC,IAAT,OAIZ;AAAA,gCAHDC,IAGC;;AACD,SACE,MAAC,MAAD;AAAQ,IAAA,IAAI,MAAZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAQH,SAAR,CADF,CADF,EAIE;AAAS,IAAA,SAAS,EAAEC,UAAU,CAACG,SAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCADF,EAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gFACqE,GADrE,EAEE;AAAG,IAAA,IAAI,EAAC,0BAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAFF,OAFF,CAJF,EAWE;AAAS,IAAA,SAAS,YAAKH,UAAU,CAACG,SAAhB,cAA6BH,UAAU,CAACI,UAAxC,CAAlB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAI,IAAA,SAAS,EAAEJ,UAAU,CAACK,SAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YADF,EAEE;AAAI,IAAA,SAAS,EAAEL,UAAU,CAACM,IAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,CAXF,CADF;AAmBD","sourcesContent":["import Head from \"next/head\"\nimport Layout, { siteTitle } from \"../components/layout\"\nimport utilStyles from \"../styles/utils.module.css\"\nimport { GetServerSideProps } from \"next\";\nimport { LogHeader, listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\"\n\nexport default function Home({\n logs: []\n}: {\n logs: LogHeader[]\n}) {\n return (\n <Layout home>\n <Head>\n <title>{siteTitle}</title>\n </Head>\n <section className={utilStyles.headingMd}>\n <p>[Your Self Introduction]</p>\n <p>\n (This is a sample website - you’ll be building a site like this in{\" \"}\n <a href=\"https://nextjs.org/learn\">our Next.js tutorial</a>.)\n </p>\n </section>\n <section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>\n <h2 className={utilStyles.headingLg}>Blog</h2>\n <ul className={utilStyles.list}>\n </ul>\n </section>\n </Layout>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async () => {\n const allPostsData = listLogs(gqlSsrClient, {characters: [\"C68\"]})\n return {\n props: {\n allPostsData\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"module.exports = function (e, r) {\n \"use strict\";\n\n var t = {};\n\n function __webpack_require__(r) {\n if (t[r]) {\n return t[r].exports;\n }\n\n var n = t[r] = {\n i: r,\n l: false,\n exports: {}\n };\n e[r].call(n.exports, n, n.exports, __webpack_require__);\n n.l = true;\n return n.exports;\n }\n\n __webpack_require__.ab = __dirname + \"/\";\n\n function startup() {\n return __webpack_require__(598);\n }\n\n return startup();\n}({\n 598: function _(e, r, t) {\n \"use strict\";\n\n var n = t(804);\n\n var s = function s(e) {\n return typeof e === \"string\" ? e.replace(n(), \"\") : e;\n };\n\n e.exports = s;\n e.exports[\"default\"] = s;\n },\n 804: function _(e) {\n \"use strict\";\n\n e.exports = function (e) {\n e = Object.assign({\n onlyFirst: false\n }, e);\n var r = [\"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:[a-zA-Z\\\\d]*(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\", \"(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))\"].join(\"|\");\n return new RegExp(r, e.onlyFirst ? undefined : \"g\");\n };\n }\n});","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/node_modules/next/dist/compiled/strip-ansi/index.js"],"names":["module","exports","e","r","t","__webpack_require__","n","i","l","call","ab","__dirname","startup","s","replace","Object","assign","onlyFirst","join","RegExp","undefined"],"mappings":"AAAAA,MAAM,CAACC,OAAP,GAAe,UAASC,CAAT,EAAWC,CAAX,EAAa;AAAC;;AAAa,MAAIC,CAAC,GAAC,EAAN;;AAAS,WAASC,mBAAT,CAA6BF,CAA7B,EAA+B;AAAC,QAAGC,CAAC,CAACD,CAAD,CAAJ,EAAQ;AAAC,aAAOC,CAAC,CAACD,CAAD,CAAD,CAAKF,OAAZ;AAAoB;;AAAA,QAAIK,CAAC,GAACF,CAAC,CAACD,CAAD,CAAD,GAAK;AAACI,MAAAA,CAAC,EAACJ,CAAH;AAAKK,MAAAA,CAAC,EAAC,KAAP;AAAaP,MAAAA,OAAO,EAAC;AAArB,KAAX;AAAoCC,IAAAA,CAAC,CAACC,CAAD,CAAD,CAAKM,IAAL,CAAUH,CAAC,CAACL,OAAZ,EAAoBK,CAApB,EAAsBA,CAAC,CAACL,OAAxB,EAAgCI,mBAAhC;AAAqDC,IAAAA,CAAC,CAACE,CAAF,GAAI,IAAJ;AAAS,WAAOF,CAAC,CAACL,OAAT;AAAiB;;AAAAI,EAAAA,mBAAmB,CAACK,EAApB,GAAuBC,SAAS,GAAC,GAAjC;;AAAqC,WAASC,OAAT,GAAkB;AAAC,WAAOP,mBAAmB,CAAC,GAAD,CAA1B;AAAgC;;AAAA,SAAOO,OAAO,EAAd;AAAiB,CAA7T,CAA8T;AAAC,OAAI,WAASV,CAAT,EAAWC,CAAX,EAAaC,CAAb,EAAe;AAAC;;AAAa,QAAME,CAAC,GAACF,CAAC,CAAC,GAAD,CAAT;;AAAe,QAAMS,CAAC,GAAC,SAAFA,CAAE,CAAAX,CAAC;AAAA,aAAE,OAAOA,CAAP,KAAW,QAAX,GAAoBA,CAAC,CAACY,OAAF,CAAUR,CAAC,EAAX,EAAc,EAAd,CAApB,GAAsCJ,CAAxC;AAAA,KAAT;;AAAmDA,IAAAA,CAAC,CAACD,OAAF,GAAUY,CAAV;AAAYX,IAAAA,CAAC,CAACD,OAAF,cAAkBY,CAAlB;AAAoB,GAApI;AAAqI,OAAI,WAASX,CAAT,EAAW;AAAC;;AAAaA,IAAAA,CAAC,CAACD,OAAF,GAAW,UAAAC,CAAC,EAAE;AAACA,MAAAA,CAAC,GAACa,MAAM,CAACC,MAAP,CAAc;AAACC,QAAAA,SAAS,EAAC;AAAX,OAAd,EAAgCf,CAAhC,CAAF;AAAqC,UAAMC,CAAC,GAAC,CAAC,6FAAD,EAA+F,0DAA/F,EAA2Je,IAA3J,CAAgK,GAAhK,CAAR;AAA6K,aAAO,IAAIC,MAAJ,CAAWhB,CAAX,EAAaD,CAAC,CAACe,SAAF,GAAYG,SAAZ,GAAsB,GAAnC,CAAP;AAA+C,KAAhR;AAAkR;AAApb,CAA9T,CAAf","sourcesContent":["module.exports=function(e,r){\"use strict\";var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={i:r,l:false,exports:{}};e[r].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+\"/\";function startup(){return __webpack_require__(598)}return startup()}({598:function(e,r,t){\"use strict\";const n=t(804);const s=e=>typeof e===\"string\"?e.replace(n(),\"\"):e;e.exports=s;e.exports.default=s},804:function(e){\"use strict\";e.exports=(e=>{e=Object.assign({onlyFirst:false},e);const r=[\"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:[a-zA-Z\\\\d]*(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\",\"(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))\"].join(\"|\");return new RegExp(r,e.onlyFirst?undefined:\"g\")})}});"]},"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction getRouteRegex(normalizedRoute) {\n // Escape all characters that could be considered RegEx\n const escapedRoute = (normalizedRoute.replace(/\\/$/, '') || '/').replace(/[|\\\\{}()[\\]^$+*?.-]/g, '\\\\$&');\n const groups = {};\n let groupIndex = 1;\n const parameterizedRoute = escapedRoute.replace(/\\/\\\\\\[([^/]+?)\\\\\\](?=\\/|$)/g, (_, $1) => {\n const isCatchAll = /^(\\\\\\.){3}/.test($1);\n groups[$1 // Un-escape key\n .replace(/\\\\([|\\\\{}()[\\]^$+*?.-])/g, '$1').replace(/^\\.{3}/, '') // eslint-disable-next-line no-sequences\n ] = {\n pos: groupIndex++,\n repeat: isCatchAll\n };\n return isCatchAll ? '/(.+?)' : '/([^/]+?)';\n });\n return {\n re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),\n groups\n };\n}\n\nexports.getRouteRegex = getRouteRegex;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/node_modules/next/dist/next-server/lib/router/utils/route-regex.js"],"names":["Object","defineProperty","exports","value","getRouteRegex","normalizedRoute","escapedRoute","replace","groups","groupIndex","parameterizedRoute","_","$1","isCatchAll","test","pos","repeat","re","RegExp"],"mappings":"AAAA;;AACAA,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAAEC,EAAAA,KAAK,EAAE;AAAT,CAA7C;;AACA,SAASC,aAAT,CAAuBC,eAAvB,EAAwC;AACpC;AACA,QAAMC,YAAY,GAAG,CAACD,eAAe,CAACE,OAAhB,CAAwB,KAAxB,EAA+B,EAA/B,KAAsC,GAAvC,EAA4CA,OAA5C,CAAoD,sBAApD,EAA4E,MAA5E,CAArB;AACA,QAAMC,MAAM,GAAG,EAAf;AACA,MAAIC,UAAU,GAAG,CAAjB;AACA,QAAMC,kBAAkB,GAAGJ,YAAY,CAACC,OAAb,CAAqB,6BAArB,EAAoD,CAACI,CAAD,EAAIC,EAAJ,KAAW;AACtF,UAAMC,UAAU,GAAG,aAAaC,IAAb,CAAkBF,EAAlB,CAAnB;AACAJ,IAAAA,MAAM,CAACI,EAAE,CACL;AADK,KAEJL,OAFE,CAEM,0BAFN,EAEkC,IAFlC,EAGFA,OAHE,CAGM,QAHN,EAGgB,EAHhB,CAAD,CAIN;AAJM,KAAN,GAKI;AAAEQ,MAAAA,GAAG,EAAEN,UAAU,EAAjB;AAAqBO,MAAAA,MAAM,EAAEH;AAA7B,KALJ;AAMA,WAAOA,UAAU,GAAG,QAAH,GAAc,WAA/B;AACH,GAT0B,CAA3B;AAUA,SAAO;AACHI,IAAAA,EAAE,EAAE,IAAIC,MAAJ,CAAW,MAAMR,kBAAN,GAA2B,SAAtC,EAAiD,GAAjD,CADD;AAEHF,IAAAA;AAFG,GAAP;AAIH;;AACDN,OAAO,CAACE,aAAR,GAAwBA,aAAxB","sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getRouteRegex(normalizedRoute) {\n // Escape all characters that could be considered RegEx\n const escapedRoute = (normalizedRoute.replace(/\\/$/, '') || '/').replace(/[|\\\\{}()[\\]^$+*?.-]/g, '\\\\$&');\n const groups = {};\n let groupIndex = 1;\n const parameterizedRoute = escapedRoute.replace(/\\/\\\\\\[([^/]+?)\\\\\\](?=\\/|$)/g, (_, $1) => {\n const isCatchAll = /^(\\\\\\.){3}/.test($1);\n groups[$1\n // Un-escape key\n .replace(/\\\\([|\\\\{}()[\\]^$+*?.-])/g, '$1')\n .replace(/^\\.{3}/, '')\n // eslint-disable-next-line no-sequences\n ] = { pos: groupIndex++, repeat: isCatchAll };\n return isCatchAll ? '/(.+?)' : '/([^/]+?)';\n });\n return {\n re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),\n groups,\n };\n}\nexports.getRouteRegex = getRouteRegex;\n"]},"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nrequire(\"next/dist/build/polyfills/polyfill-nomodule\");","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/node_modules/next/dist/client/polyfills.js"],"names":["require"],"mappings":"AAAA;;AAAaA,OAAO,CAAC,6CAAD,CAAP","sourcesContent":["\"use strict\";require(\"next/dist/build/polyfills/polyfill-nomodule\");"]},"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/src/pages/_app.tsx\";\nvar __jsx = React.createElement;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nimport Layout from \"../components/layout\";\nimport \"../styles/global.css\";\nexport default function App({\n Component,\n pageProps,\n router\n}) {\n return __jsx(Layout, {\n home: router.pathname === \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 5\n }\n }, __jsx(Component, _extends({}, pageProps, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 7\n }\n })));\n}","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/src/pages/_app.tsx"],"names":["React","Layout","App","Component","pageProps","router","pathname"],"mappings":";;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,MAAP,MAAmB,sBAAnB;AAEA,OAAO,sBAAP;AAEA,eAAe,SAASC,GAAT,CAAa;AAAEC,EAAAA,SAAF;AAAaC,EAAAA,SAAb;AAAwBC,EAAAA;AAAxB,CAAb,EAAyD;AACtE,SACE,MAAC,MAAD;AAAQ,IAAA,IAAI,EAAEA,MAAM,CAACC,QAAP,KAAoB,GAAlC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,SAAD,eAAeF,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KADF,CADF;AAKD","sourcesContent":["import React from \"react\";\nimport { AppProps } from \"next/app\";\nimport Layout from \"../components/layout\";\n\nimport \"../styles/global.css\"\n\nexport default function App({ Component, pageProps, router }: AppProps) {\n return (\n <Layout home={router.pathname === \"/\"}>\n <Component {...pageProps} />\n </Layout>\n );\n}\n"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/1d3c4b88d2d5943827b24bffd267ebde.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\n;\nexport var __N_SSP = true;\nexport default function Home(_ref) {\n var _this = this;\n\n var logs = _ref.logs;\n return __jsx(React.Fragment, null, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 9\n }\n }, \"Logs - Aite RP\")), __jsx(\"ol\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 7\n }\n }, logs.map(function (l) {\n return __jsx(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 24\n }\n }, l.id);\n })));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","Home","logs","map","l","id"],"mappings":";;;AACA,OAAOA,IAAP,MAAiB,WAAjB;AASC;;AAED,eAAe,SAASC,IAAT,OAAiC;AAAA;;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAC9C,SACE,4BACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBADF,CADF,EAIE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGA,IAAI,CAACC,GAAL,CAAS,UAAAC,CAAC;AAAA,WAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAKA,CAAC,CAACC,EAAP,CAAJ;AAAA,GAAV,CADH,CAJF,CADF;AAUD","sourcesContent":["import { GetServerSideProps } from \"next\";\nimport Head from \"next/head\";\n\nimport { LogHeader, listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nimport { useEffect } from \"react\";\nimport config from \"../config\";\n\ninterface HomeProps {\n logs: LogHeader[]\n};\n\nexport default function Home({logs}: HomeProps) {\n return (\n <>\n <Head>\n <title>Logs - Aite RP</title>\n </Head>\n <ol>\n {logs.map(l => <li>{l.id}</li>)}\n </ol>\n </>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {limit: 10})\n return {\n props: {\n logs\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/1dd66d46ce496842aacda57c5d248c3f.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/1dfce101289080cb17c2ba71a426d0cd.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/1f37f2df6f79f6ab0badadf0af53063f.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/components/layout.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport styles from \"./layout.module.css\";\nimport Link from \"next/link\";\nexport const siteTitle = \"Next.js Sample Website\";\nexport default function Layout({\n children,\n home\n}) {\n return __jsx(\"div\", {\n className: styles.container,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 7\n }\n }, __jsx(\"link\", {\n rel: \"icon\",\n href: \"/favicon.ico\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 9\n }\n }), __jsx(\"meta\", {\n name: \"description\",\n content: \"Learn how to build a personal website using Next.js\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }), __jsx(\"meta\", {\n name: \"og:title\",\n content: \"Aite RP\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 9\n }\n })), __jsx(\"main\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }, children), !home && __jsx(\"div\", {\n className: styles.backToHome,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n }, __jsx(Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 11\n }\n }, __jsx(\"a\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, \"\\u2190 Back to home\"))));\n}","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/components/layout.tsx"],"names":["Head","styles","Link","siteTitle","Layout","children","home","container","backToHome"],"mappings":";;;AAAA,OAAOA,IAAP,MAAiB,WAAjB;AACA,OAAOC,MAAP,MAAmB,qBAAnB;AAEA,OAAOC,IAAP,MAAiB,WAAjB;AAEA,OAAO,MAAMC,SAAS,GAAG,wBAAlB;AAEP,eAAe,SAASC,MAAT,CAAgB;AAC7BC,EAAAA,QAD6B;AAE7BC,EAAAA;AAF6B,CAAhB,EAMZ;AACD,SACE;AAAK,IAAA,SAAS,EAAEL,MAAM,CAACM,SAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAM,IAAA,GAAG,EAAC,MAAV;AAAiB,IAAA,IAAI,EAAC,cAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,EAEE;AACE,IAAA,IAAI,EAAC,aADP;AAEE,IAAA,OAAO,EAAC,qDAFV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,EAME;AAAM,IAAA,IAAI,EAAC,UAAX;AAAsB,IAAA,OAAO,EAAE,SAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IANF,CADF,EASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAOF,QAAP,CATF,EAUG,CAACC,IAAD,IACC;AAAK,IAAA,SAAS,EAAEL,MAAM,CAACO,UAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAM,IAAA,IAAI,EAAC,GAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BADF,CADF,CAXJ,CADF;AAoBD","sourcesContent":["import Head from \"next/head\"\nimport styles from \"./layout.module.css\"\nimport utilStyles from \"../styles/utils.module.css\"\nimport Link from \"next/link\"\n\nexport const siteTitle = \"Next.js Sample Website\"\n\nexport default function Layout({\n children,\n home\n}: {\n children: React.ReactNode\n home?: boolean\n}) {\n return (\n <div className={styles.container}>\n <Head>\n <link rel=\"icon\" href=\"/favicon.ico\" />\n <meta\n name=\"description\"\n content=\"Learn how to build a personal website using Next.js\"\n />\n <meta name=\"og:title\" content={\"Aite RP\"} />\n </Head>\n <main>{children}</main>\n {!home && (\n <div className={styles.backToHome}>\n <Link href=\"/\">\n <a>← Back to home</a>\n </Link>\n </div>\n )}\n </div>\n )\n}"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/1f99d26b2e27277d6ecadbba6cdc5545.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import { gql } from \"../client/graphql\";\nexport async function listLogs(gql, filter) {\n return (await gql.post(LOGS_DOC, {\n filter\n }, \"ListLogs\")).logs;\n}\n\nfunction logFilterToQueryString(filter) {\n const parts = [];\n\n if (parts.length === 0) {\n return \"\";\n }\n\n return \"?\" + parts.map(p => `${p.k}=${encodeURIComponent(p.v)}`);\n}\n\nfunction logFilterFromQueryString(qs) {\n const filter = {};\n const qsParts = (qs.startsWith(\"?\") ? qs.slice(1) : qs).split(\"&\");\n return filter;\n}\n\nconst LOGS_DOC = gql`\nquery ListLogs($filter: LogsFilter) {\n logs(filter: $filter) {\n ...LogMeta\n ...LogMetaCharacters\n }\n}\n\nquery FindLog($id: String!) {\n log(id: $id) {\n ...LogMeta\n ...LogData\n }\n}\n\nfragment LogMeta on Log {\n id\n shortId\n date\n channelName\n title\n eventName\n description\n}\n\nfragment LogMetaCharacters on Log {\n characters {\n id\n name\n shortName\n author\n }\n}\n\nfragment LogData on Log {\n open\n channel {\n name\n logged\n hub\n eventName\n locationName\n }\n characters {\n id\n nicks\n author\n name\n shortName\n description\n }\n posts {\n id\n time\n kind\n nick\n text\n position\n }\n}\n`;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/lib/rpdata/logs.ts"],"names":["gql","listLogs","filter","post","LOGS_DOC","logs","logFilterToQueryString","parts","length","map","p","k","encodeURIComponent","v","logFilterFromQueryString","qs","qsParts","startsWith","slice","split"],"mappings":"AAAA,SAAoBA,GAApB,QAA+B,mBAA/B;AAEA,OAAO,eAAeC,QAAf,CAAwBD,GAAxB,EAAwCE,MAAxC,EAAkF;AACvF,SAAO,CAAC,MAAMF,GAAG,CAACG,IAAJ,CAASC,QAAT,EAAmB;AAACF,IAAAA;AAAD,GAAnB,EAA6B,UAA7B,CAAP,EAAiDG,IAAxD;AACD;;AAED,SAASC,sBAAT,CAAgCJ,MAAhC,EAA2D;AACzD,QAAMK,KAA6B,GAAG,EAAtC;;AAIA,MAAIA,KAAK,CAACC,MAAN,KAAiB,CAArB,EAAwB;AACtB,WAAO,EAAP;AACD;;AACD,SAAO,MAAMD,KAAK,CAACE,GAAN,CAAUC,CAAC,IAAK,GAAEA,CAAC,CAACC,CAAE,IAAGC,kBAAkB,CAACF,CAAC,CAACG,CAAH,CAAM,EAAjD,CAAb;AACD;;AAED,SAASC,wBAAT,CAAkCC,EAAlC,EAAyD;AACvD,QAAMb,MAAM,GAAG,EAAf;AACA,QAAMc,OAAO,GAAG,CAACD,EAAE,CAACE,UAAH,CAAc,GAAd,IAAqBF,EAAE,CAACG,KAAH,CAAS,CAAT,CAArB,GAAmCH,EAApC,EAAwCI,KAAxC,CAA8C,GAA9C,CAAhB;AAEA,SAAOjB,MAAP;AACD;;AAiCD,MAAME,QAAQ,GAAGJ,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAArB","sourcesContent":["import { GQLClient, gql } from \"../client/graphql\";\n\nexport async function listLogs(gql: GQLClient, filter?: LogFilter): Promise<LogHeader[]> {\n return (await gql.post(LOGS_DOC, {filter}, \"ListLogs\")).logs;\n}\n\nfunction logFilterToQueryString(filter: LogFilter): string {\n const parts: {k:string, v:string}[] = [];\n \n\n\n if (parts.length === 0) {\n return \"\";\n }\n return \"?\" + parts.map(p => `${p.k}=${encodeURIComponent(p.v)}`);\n}\n\nfunction logFilterFromQueryString(qs: string): LogFilter {\n const filter = {};\n const qsParts = (qs.startsWith(\"?\") ? qs.slice(1) : qs).split(\"&\");\n\n return filter;\n}\n\nexport interface LogFilter {\n /** Character IDs */\n characters?: string[]\n\n /** Limit the result set size. */\n limit?: number\n}\n\nexport interface LogHeader extends LogCommon {\n /** Character IDs */\n characters: LogHeaderCharacter[]\n}\n\ninterface LogCommon {\n id: string\n shortId: string\n date: string\n channelName: string\n title: string\n description: string\n eventName: string\n open: boolean\n}\n\ninterface LogHeaderCharacter {\n id: string\n name: string\n shortName: string\n author: string\n}\n\nconst LOGS_DOC = gql`\nquery ListLogs($filter: LogsFilter) {\n logs(filter: $filter) {\n ...LogMeta\n ...LogMetaCharacters\n }\n}\n\nquery FindLog($id: String!) {\n log(id: $id) {\n ...LogMeta\n ...LogData\n }\n}\n\nfragment LogMeta on Log {\n id\n shortId\n date\n channelName\n title\n eventName\n description\n}\n\nfragment LogMetaCharacters on Log {\n characters {\n id\n name\n shortName\n author\n }\n}\n\nfragment LogData on Log {\n open\n channel {\n name\n logged\n hub\n eventName\n locationName\n }\n characters {\n id\n nicks\n author\n name\n shortName\n description\n }\n posts {\n id\n time\n kind\n nick\n text\n position\n }\n}\n`;"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport { listLogs, logFilterFromQueryString } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nimport LogListContext, { LogListContextProvider } from \"../hooks/LogListContext\";\nimport { parse } from \"url\";\nimport { useContext } from \"react\";\n;\nexport default function Home(props) {\n return __jsx(LogListContextProvider, {\n initialFilter: props.filter,\n initialHeader: props.headers,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }, \"Logs - Aite RP\")));\n}\n\nfunction LogList() {\n const {\n headers,\n filter\n } = useContext(LogListContext);\n return __jsx(\"ol\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, headers.map(l => __jsx(\"li\", {\n key: l.shortId,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 25\n }\n }, l.id)));\n}\n\nexport const getServerSideProps = async ctx => {\n const u = parse(ctx.req.url);\n const filter = logFilterFromQueryString(u.search);\n const headers = await listLogs(gqlSsrClient, filter);\n return {\n props: {\n filter,\n headers\n }\n };\n};","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","listLogs","logFilterFromQueryString","gqlSsrClient","LogListContext","LogListContextProvider","parse","useContext","Home","props","filter","headers","LogList","map","l","shortId","id","getServerSideProps","ctx","u","req","url","search"],"mappings":";;;AACA,OAAOA,IAAP,MAAiB,WAAjB;AAEA,SAAoBC,QAApB,EAAyCC,wBAAzC,QAAyE,oBAAzE;AACA,OAAOC,YAAP,MAAyB,2BAAzB;AACA,OAAOC,cAAP,IAAyBC,sBAAzB,QAAuD,yBAAvD;AACA,SAASC,KAAT,QAAsB,KAAtB;AACA,SAASC,UAAT,QAA2B,OAA3B;AAKC;AAED,eAAe,SAASC,IAAT,CAAcC,KAAd,EAAgC;AAC7C,SACE,MAAC,sBAAD;AAAwB,IAAA,aAAa,EAAEA,KAAK,CAACC,MAA7C;AAAqD,IAAA,aAAa,EAAED,KAAK,CAACE,OAA1E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBADF,CADF,CADF;AAOD;;AAED,SAASC,OAAT,GAAmB;AACjB,QAAM;AAACD,IAAAA,OAAD;AAAUD,IAAAA;AAAV,MAAoBH,UAAU,CAACH,cAAD,CAApC;AAEA,SACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGO,OAAO,CAACE,GAAR,CAAYC,CAAC,IAAI;AAAI,IAAA,GAAG,EAAEA,CAAC,CAACC,OAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAqBD,CAAC,CAACE,EAAvB,CAAjB,CADH,CADF;AAKD;;AAED,OAAO,MAAMC,kBAAsC,GAAG,MAAOC,GAAP,IAAe;AACnE,QAAMC,CAAC,GAAGb,KAAK,CAACY,GAAG,CAACE,GAAJ,CAAQC,GAAT,CAAf;AACA,QAAMX,MAAM,GAAGR,wBAAwB,CAACiB,CAAC,CAACG,MAAH,CAAvC;AAEA,QAAMX,OAAO,GAAG,MAAMV,QAAQ,CAACE,YAAD,EAAeO,MAAf,CAA9B;AACA,SAAO;AACLD,IAAAA,KAAK,EAAE;AACLC,MAAAA,MADK;AAELC,MAAAA;AAFK;AADF,GAAP;AAMD,CAXM","sourcesContent":["import { GetServerSideProps } from \"next\";\nimport Head from \"next/head\";\n\nimport { LogHeader, listLogs, LogFilter, logFilterFromQueryString } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nimport LogListContext, { LogListContextProvider } from \"../hooks/LogListContext\";\nimport { parse } from \"url\";\nimport { useContext } from \"react\";\n\ninterface HomeProps {\n headers: LogHeader[]\n filter: LogFilter\n};\n\nexport default function Home(props: HomeProps) {\n return (\n <LogListContextProvider initialFilter={props.filter} initialHeader={props.headers}>\n <Head>\n <title>Logs - Aite RP</title>\n </Head>\n </LogListContextProvider>\n )\n}\n\nfunction LogList() {\n const {headers, filter} = useContext(LogListContext);\n\n return (\n <ol>\n {headers.map(l => <li key={l.shortId}>{l.id}</li>)}\n </ol>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async (ctx) => {\n const u = parse(ctx.req.url);\n const filter = logFilterFromQueryString(u.search);\n\n const headers = await listLogs(gqlSsrClient, filter)\n return {\n props: {\n filter,\n headers,\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/217517ee4768d17b10edb9798b4a5ac2.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import config from \"../../config\";\nimport fetch from \"node-fetch\";\n\nclass GQLSSRClient {\n async post(query, variables, operationName) {\n const res = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const json = await res.json();\n\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`);\n }\n\n return json.data;\n }\n\n}\n\nconst gqlSsrClient = new GQLSSRClient();\nexport default gqlSsrClient;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/lib/client/graphql-ssr.ts"],"names":["config","fetch","GQLSSRClient","post","query","variables","operationName","res","apiUrl","method","body","JSON","stringify","credentials","headers","json","errors","Error","message","path","data","gqlSsrClient"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,cAAnB;AAEA,OAAOC,KAAP,MAAkB,YAAlB;;AAEA,MAAMC,YAAN,CAAwC;AACtC,QAAMC,IAAN,CAAWC,KAAX,EAA0BC,SAA1B,EAAyDC,aAAzD,EAAsG;AACpG,UAAMC,GAAG,GAAG,MAAMN,KAAK,CAACD,MAAM,CAACQ,MAAP,CAAc,UAAd,CAAD,EAA4B;AACjDC,MAAAA,MAAM,EAAE,MADyC;AAEjDC,MAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACR,QAAAA,KAAD;AAAQC,QAAAA,SAAR;AAAmBC,QAAAA;AAAnB,OAAf,CAF2C;AAGjDO,MAAAA,WAAW,EAAE,SAHoC;AAIjDC,MAAAA,OAAO,EAAE;AACP,wBAAgB;AADT;AAJwC,KAA5B,CAAvB;AASA,UAAMC,IAAI,GAAG,MAAMR,GAAG,CAACQ,IAAJ,EAAnB;;AACA,QAAIA,IAAI,CAACC,MAAT,EAAiB;AACf,YAAM,IAAIC,KAAJ,CAAW,GAAEF,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeE,OAAQ,KAAIH,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeG,IAAK,GAA5D,CAAN;AACD;;AAED,WAAOJ,IAAI,CAACK,IAAZ;AACD;;AAjBqC;;AAoBxC,MAAMC,YAAY,GAAG,IAAInB,YAAJ,EAArB;AACA,eAAemB,YAAf","sourcesContent":["import config from \"../../config\";\nimport { GQLClient, GQLRespone } from \"./graphql\";\nimport fetch from \"node-fetch\";\n\nclass GQLSSRClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n \n const json = await res.json();\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n return json.data\n }\n}\n\nconst gqlSsrClient = new GQLSSRClient();\nexport default gqlSsrClient;"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/22203bd89c716aa5cfd1644ac1dd777a.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nexport var __N_SSP = true;\nexport default function Home(_ref) {\n var _this = this;\n\n var logs = _ref.logs;\n return __jsx(React.Fragment, null, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 9\n }\n }, \"Logs - Aite RPs\")), __jsx(\"ol\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 7\n }\n }, logs.map(function (l) {\n return __jsx(\"li\", {\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 24\n }\n }, l.id);\n })));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","Home","logs","map","l","id"],"mappings":";;;AAAA,OAAOA,IAAP,MAAiB,WAAjB;;AAYA,eAAe,SAASC,IAAT,OAAiC;AAAA;;AAAA,MAAlBC,IAAkB,QAAlBA,IAAkB;AAC9C,SACE,4BACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBADF,CADF,EAIE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGA,IAAI,CAACC,GAAL,CAAS,UAAAC,CAAC;AAAA,WAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAKA,CAAC,CAACC,EAAP,CAAJ;AAAA,GAAV,CADH,CAJF,CADF;AAUD","sourcesContent":["import Head from \"next/head\"\nimport { siteTitle } from \"../components/layout\"\nimport utilStyles from \"../styles/utils.module.css\"\nimport { GetServerSideProps } from \"next\";\n\nimport { LogHeader, listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\"\n\ninterface HomeProps {\n logs: LogHeader[]\n}\n\nexport default function Home({logs}: HomeProps) {\n return (\n <>\n <Head>\n <title>Logs - Aite RPs</title>\n </Head>\n <ol>\n {logs.map(l => <li>{l.id}</li>)}\n </ol>\n </>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {limit: 10})\n return {\n props: {\n logs\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport { listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nexport default function Home({\n logs\n}) {\n return __jsx(React.Fragment, null, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 9\n }\n }, \"Logs - Aite RP\")), __jsx(\"ol\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 7\n }\n }, logs.map(l => __jsx(\"li\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 24\n }\n }, l.id))));\n}\nexport const getServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {\n limit: 100\n });\n return {\n props: {\n logs\n }\n };\n};","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","listLogs","gqlSsrClient","Home","logs","map","l","id","getServerSideProps","limit","props"],"mappings":";;;AAAA,OAAOA,IAAP,MAAiB,WAAjB;AAKA,SAAoBC,QAApB,QAAoC,oBAApC;AACA,OAAOC,YAAP,MAAyB,2BAAzB;AAMA,eAAe,SAASC,IAAT,CAAc;AAACC,EAAAA;AAAD,CAAd,EAAiC;AAC9C,SACE,4BACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBADF,CADF,EAIE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGA,IAAI,CAACC,GAAL,CAASC,CAAC,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAKA,CAAC,CAACC,EAAP,CAAd,CADH,CAJF,CADF;AAUD;AAED,OAAO,MAAMC,kBAAsC,GAAG,YAAY;AAChE,QAAMJ,IAAI,GAAG,MAAMH,QAAQ,CAACC,YAAD,EAAe;AAACO,IAAAA,KAAK,EAAE;AAAR,GAAf,CAA3B;AACA,SAAO;AACLC,IAAAA,KAAK,EAAE;AACLN,MAAAA;AADK;AADF,GAAP;AAKD,CAPM","sourcesContent":["import Head from \"next/head\"\nimport { siteTitle } from \"../components/layout\"\nimport utilStyles from \"../styles/utils.module.css\"\nimport { GetServerSideProps } from \"next\";\n\nimport { LogHeader, listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\"\n\ninterface HomeProps {\n logs: LogHeader[]\n}\n\nexport default function Home({logs}: HomeProps) {\n return (\n <>\n <Head>\n <title>Logs - Aite RP</title>\n </Head>\n <ol>\n {logs.map(l => <li>{l.id}</li>)}\n </ol>\n </>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {limit: 100})\n return {\n props: {\n logs\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/233044f10515a2e5a51ad7eb2e7efb4c.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/23d3dbfe29647e984dd3776c74f806c4.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar react_1 = __importDefault(require(\"react\"));\n\nvar amp_context_1 = require(\"./amp-context\");\n\nfunction isInAmpMode() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$ampFirst = _ref.ampFirst,\n ampFirst = _ref$ampFirst === void 0 ? false : _ref$ampFirst,\n _ref$hybrid = _ref.hybrid,\n hybrid = _ref$hybrid === void 0 ? false : _ref$hybrid,\n _ref$hasQuery = _ref.hasQuery,\n hasQuery = _ref$hasQuery === void 0 ? false : _ref$hasQuery;\n\n return ampFirst || hybrid && hasQuery;\n}\n\nexports.isInAmpMode = isInAmpMode;\n\nfunction useAmp() {\n // Don't assign the context value to a variable to save bytes\n return isInAmpMode(react_1[\"default\"].useContext(amp_context_1.AmpStateContext));\n}\n\nexports.useAmp = useAmp;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/node_modules/next/dist/next-server/lib/amp.js"],"names":["__importDefault","mod","__esModule","Object","defineProperty","exports","value","react_1","require","amp_context_1","isInAmpMode","ampFirst","hybrid","hasQuery","useAmp","useContext","AmpStateContext"],"mappings":"AAAA;;AACA,IAAIA,eAAe,GAAI,QAAQ,KAAKA,eAAd,IAAkC,UAAUC,GAAV,EAAe;AACnE,SAAQA,GAAG,IAAIA,GAAG,CAACC,UAAZ,GAA0BD,GAA1B,GAAgC;AAAE,eAAWA;AAAb,GAAvC;AACH,CAFD;;AAGAE,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAAEC,EAAAA,KAAK,EAAE;AAAT,CAA7C;;AACA,IAAMC,OAAO,GAAGP,eAAe,CAACQ,OAAO,CAAC,OAAD,CAAR,CAA/B;;AACA,IAAMC,aAAa,GAAGD,OAAO,CAAC,eAAD,CAA7B;;AACA,SAASE,WAAT,GAAmF;AAAA,iFAAJ,EAAI;AAAA,2BAA5DC,QAA4D;AAAA,MAA5DA,QAA4D,8BAAjD,KAAiD;AAAA,yBAA1CC,MAA0C;AAAA,MAA1CA,MAA0C,4BAAjC,KAAiC;AAAA,2BAA1BC,QAA0B;AAAA,MAA1BA,QAA0B,8BAAf,KAAe;;AAC/E,SAAOF,QAAQ,IAAKC,MAAM,IAAIC,QAA9B;AACH;;AACDR,OAAO,CAACK,WAAR,GAAsBA,WAAtB;;AACA,SAASI,MAAT,GAAkB;AACd;AACA,SAAOJ,WAAW,CAACH,OAAO,WAAP,CAAgBQ,UAAhB,CAA2BN,aAAa,CAACO,eAAzC,CAAD,CAAlB;AACH;;AACDX,OAAO,CAACS,MAAR,GAAiBA,MAAjB","sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst react_1 = __importDefault(require(\"react\"));\nconst amp_context_1 = require(\"./amp-context\");\nfunction isInAmpMode({ ampFirst = false, hybrid = false, hasQuery = false, } = {}) {\n return ampFirst || (hybrid && hasQuery);\n}\nexports.isInAmpMode = isInAmpMode;\nfunction useAmp() {\n // Don't assign the context value to a variable to save bytes\n return isInAmpMode(react_1.default.useContext(amp_context_1.AmpStateContext));\n}\nexports.useAmp = useAmp;\n"]},"metadata":{},"sourceType":"script"} |
|
1
.next/cache/next-babel-loader/24ec015f189a45fed183d16886779062.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import compress from \"gql-compress\";\n\nclass GQLBrowserClient {\n async post(query, variables, operationName) {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const json = await res.json();\n\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`);\n }\n\n return json.data;\n }\n\n}\n\nexport function gql(a) {\n return compress(a.join(\"\"));\n}\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/src/lib/client/graphql.ts"],"names":["compress","GQLBrowserClient","post","query","variables","operationName","res","fetch","method","body","JSON","stringify","credentials","headers","json","errors","Error","message","path","data","gql","a","join","gqlBrowserClient"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,cAArB;;AAEA,MAAMC,gBAAN,CAA4C;AAC1C,QAAMC,IAAN,CAAWC,KAAX,EAA0BC,SAA1B,EAAyDC,aAAzD,EAAsG;AACpG,UAAMC,GAAG,GAAG,MAAMC,KAAK,CAAE,cAAF,EAAiB;AACtCC,MAAAA,MAAM,EAAE,MAD8B;AAEtCC,MAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACR,QAAAA,KAAD;AAAQC,QAAAA,SAAR;AAAmBC,QAAAA;AAAnB,OAAf,CAFgC;AAGtCO,MAAAA,WAAW,EAAE,SAHyB;AAItCC,MAAAA,OAAO,EAAE;AACP,wBAAgB;AADT;AAJ6B,KAAjB,CAAvB;AASA,UAAMC,IAAI,GAAG,MAAMR,GAAG,CAACQ,IAAJ,EAAnB;;AACA,QAAIA,IAAI,CAACC,MAAT,EAAiB;AACf,YAAM,IAAIC,KAAJ,CAAW,GAAEF,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeE,OAAQ,KAAIH,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeG,IAAK,GAA5D,CAAN;AACD;;AAED,WAAOJ,IAAI,CAACK,IAAZ;AACD;;AAjByC;;AA+B5C,OAAO,SAASC,GAAT,CAAaC,CAAb,EAA8C;AACnD,SAAOrB,QAAQ,CAACqB,CAAC,CAACC,IAAF,CAAO,EAAP,CAAD,CAAf;AACD;AAED,MAAMC,gBAAgB,GAAG,IAAItB,gBAAJ,EAAzB;AACA,eAAesB,gBAAf","sourcesContent":["import compress from \"gql-compress\";\n\nclass GQLBrowserClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n })\n\n const json = await res.json();\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n return json.data\n }\n}\n\nexport interface GQLClient {\n post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone>\n}\n\nexport interface GQLRespone {[x:string]: any}\n\nexport interface GQLError {\n message: string\n path: string[]\n}\n\nexport function gql(a: TemplateStringsArray): string {\n return compress(a.join(\"\")) as string;\n}\n\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/27252db19d35b7a1565b41a99a973c05.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar react_1 = __importDefault(require(\"react\"));\n\nvar amp_context_1 = require(\"./amp-context\");\n\nfunction isInAmpMode() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$ampFirst = _ref.ampFirst,\n ampFirst = _ref$ampFirst === void 0 ? false : _ref$ampFirst,\n _ref$hybrid = _ref.hybrid,\n hybrid = _ref$hybrid === void 0 ? false : _ref$hybrid,\n _ref$hasQuery = _ref.hasQuery,\n hasQuery = _ref$hasQuery === void 0 ? false : _ref$hasQuery;\n\n return ampFirst || hybrid && hasQuery;\n}\n\nexports.isInAmpMode = isInAmpMode;\n\nfunction useAmp() {\n // Don't assign the context value to a variable to save bytes\n return isInAmpMode(react_1[\"default\"].useContext(amp_context_1.AmpStateContext));\n}\n\nexports.useAmp = useAmp;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/node_modules/next/dist/next-server/lib/amp.js"],"names":["__importDefault","mod","__esModule","Object","defineProperty","exports","value","react_1","require","amp_context_1","isInAmpMode","ampFirst","hybrid","hasQuery","useAmp","useContext","AmpStateContext"],"mappings":"AAAA;;AACA,IAAIA,eAAe,GAAI,QAAQ,KAAKA,eAAd,IAAkC,UAAUC,GAAV,EAAe;AACnE,SAAQA,GAAG,IAAIA,GAAG,CAACC,UAAZ,GAA0BD,GAA1B,GAAgC;AAAE,eAAWA;AAAb,GAAvC;AACH,CAFD;;AAGAE,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAAEC,EAAAA,KAAK,EAAE;AAAT,CAA7C;;AACA,IAAMC,OAAO,GAAGP,eAAe,CAACQ,OAAO,CAAC,OAAD,CAAR,CAA/B;;AACA,IAAMC,aAAa,GAAGD,OAAO,CAAC,eAAD,CAA7B;;AACA,SAASE,WAAT,GAAmF;AAAA,iFAAJ,EAAI;AAAA,2BAA5DC,QAA4D;AAAA,MAA5DA,QAA4D,8BAAjD,KAAiD;AAAA,yBAA1CC,MAA0C;AAAA,MAA1CA,MAA0C,4BAAjC,KAAiC;AAAA,2BAA1BC,QAA0B;AAAA,MAA1BA,QAA0B,8BAAf,KAAe;;AAC/E,SAAOF,QAAQ,IAAKC,MAAM,IAAIC,QAA9B;AACH;;AACDR,OAAO,CAACK,WAAR,GAAsBA,WAAtB;;AACA,SAASI,MAAT,GAAkB;AACd;AACA,SAAOJ,WAAW,CAACH,OAAO,WAAP,CAAgBQ,UAAhB,CAA2BN,aAAa,CAACO,eAAzC,CAAD,CAAlB;AACH;;AACDX,OAAO,CAACS,MAAR,GAAiBA,MAAjB","sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst react_1 = __importDefault(require(\"react\"));\nconst amp_context_1 = require(\"./amp-context\");\nfunction isInAmpMode({ ampFirst = false, hybrid = false, hasQuery = false, } = {}) {\n return ampFirst || (hybrid && hasQuery);\n}\nexports.isInAmpMode = isInAmpMode;\nfunction useAmp() {\n // Don't assign the context value to a variable to save bytes\n return isInAmpMode(react_1.default.useContext(amp_context_1.AmpStateContext));\n}\nexports.useAmp = useAmp;\n"]},"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _head = _interopRequireDefault(require(\"../next-server/lib/head\"));\n\nvar statusCodes = {\n 400: 'Bad Request',\n 404: 'This page could not be found',\n 405: 'Method Not Allowed',\n 500: 'Internal Server Error'\n};\n\nfunction _getInitialProps(_ref) {\n var {\n res,\n err\n } = _ref;\n var statusCode = res && res.statusCode ? res.statusCode : err ? err.statusCode : 404;\n return {\n statusCode\n };\n}\n/**\n* `Error` component used for handling errors.\n*/\n\n\nclass Error extends _react.default.Component {\n render() {\n var {\n statusCode\n } = this.props;\n var title = this.props.title || statusCodes[statusCode] || 'An unexpected error has occurred';\n return _react.default.createElement(\"div\", {\n style: styles.error\n }, _react.default.createElement(_head.default, null, _react.default.createElement(\"title\", null, statusCode, \": \", title)), _react.default.createElement(\"div\", null, _react.default.createElement(\"style\", {\n dangerouslySetInnerHTML: {\n __html: 'body { margin: 0 }'\n }\n }), statusCode ? _react.default.createElement(\"h1\", {\n style: styles.h1\n }, statusCode) : null, _react.default.createElement(\"div\", {\n style: styles.desc\n }, _react.default.createElement(\"h2\", {\n style: styles.h2\n }, title, \".\"))));\n }\n\n}\n\nexports.default = Error;\nError.displayName = 'ErrorPage';\nError.getInitialProps = _getInitialProps;\nError.origGetInitialProps = _getInitialProps;\nvar styles = {\n error: {\n color: '#000',\n background: '#fff',\n fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, \"Segoe UI\", \"Fira Sans\", Avenir, \"Helvetica Neue\", \"Lucida Grande\", sans-serif',\n height: '100vh',\n textAlign: 'center',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center'\n },\n desc: {\n display: 'inline-block',\n textAlign: 'left',\n lineHeight: '49px',\n height: '49px',\n verticalAlign: 'middle'\n },\n h1: {\n display: 'inline-block',\n borderRight: '1px solid rgba(0, 0, 0,.3)',\n margin: 0,\n marginRight: '20px',\n padding: '10px 23px 10px 0',\n fontSize: '24px',\n fontWeight: 500,\n verticalAlign: 'top'\n },\n h2: {\n fontSize: '14px',\n fontWeight: 'normal',\n lineHeight: 'inherit',\n margin: 0,\n padding: 0\n }\n};","map":null,"metadata":{},"sourceType":"script"} |
|
1
.next/cache/next-babel-loader/28a7452e20c3cacafad77e6a681d4379.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/291aa8ac08e4acc01eef9c8e77f3ce70.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport LogListContext, { LogListContextProvider } from \"../hooks/LogListContext\";\nimport { useContext } from \"react\";\n;\nexport var __N_SSP = true;\nexport default function Home(props) {\n return __jsx(LogListContextProvider, {\n initialFilter: props.filter,\n initialHeader: props.headers,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }, \"Logs - Aite RP\")), __jsx(LogList, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 7\n }\n }));\n}\n\nfunction LogList() {\n var _this = this;\n\n var _useContext = useContext(LogListContext),\n headers = _useContext.headers,\n filter = _useContext.filter;\n\n return __jsx(React.Fragment, null, __jsx(\"ol\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 7\n }\n }, headers.map(function (l) {\n return __jsx(\"li\", {\n key: l.shortId,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 27\n }\n }, l.id);\n })), __jsx(\"pre\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 7\n }\n }, JSON.stringify(filter, null, 4)));\n}","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","LogListContext","LogListContextProvider","useContext","Home","props","filter","headers","LogList","map","l","shortId","id","JSON","stringify"],"mappings":";;;AACA,OAAOA,IAAP,MAAiB,WAAjB;AAIA,OAAOC,cAAP,IAAyBC,sBAAzB,QAAuD,yBAAvD;AAEA,SAASC,UAAT,QAA2B,OAA3B;AAKC;;AAED,eAAe,SAASC,IAAT,CAAcC,KAAd,EAAgC;AAC7C,SACE,MAAC,sBAAD;AAAwB,IAAA,aAAa,EAAEA,KAAK,CAACC,MAA7C;AAAqD,IAAA,aAAa,EAAED,KAAK,CAACE,OAA1E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBADF,CADF,EAIE,MAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAJF,CADF;AAQD;;AAED,SAASC,OAAT,GAAmB;AAAA;;AAAA,oBACSL,UAAU,CAACF,cAAD,CADnB;AAAA,MACVM,OADU,eACVA,OADU;AAAA,MACDD,MADC,eACDA,MADC;;AAGjB,SACE,4BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGC,OAAO,CAACE,GAAR,CAAY,UAAAC,CAAC;AAAA,WAAI;AAAI,MAAA,GAAG,EAAEA,CAAC,CAACC,OAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAqBD,CAAC,CAACE,EAAvB,CAAJ;AAAA,GAAb,CADH,CADF,EAIE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAMC,IAAI,CAACC,SAAL,CAAeR,MAAf,EAAuB,IAAvB,EAA6B,CAA7B,CAAN,CAJF,CADF;AAQD","sourcesContent":["import { GetServerSideProps } from \"next\";\nimport Head from \"next/head\";\n\nimport { LogHeader, listLogs, LogFilter, logFilterFromQueryString } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nimport LogListContext, { LogListContextProvider } from \"../hooks/LogListContext\";\nimport { parse } from \"url\";\nimport { useContext } from \"react\";\n\ninterface HomeProps {\n headers: LogHeader[]\n filter: LogFilter\n};\n\nexport default function Home(props: HomeProps) {\n return (\n <LogListContextProvider initialFilter={props.filter} initialHeader={props.headers}>\n <Head>\n <title>Logs - Aite RP</title>\n </Head>\n <LogList />\n </LogListContextProvider>\n )\n}\n\nfunction LogList() {\n const {headers, filter} = useContext(LogListContext);\n\n return (\n <>\n <ol>\n {headers.map(l => <li key={l.shortId}>{l.id}</li>)}\n </ol>\n <pre>{JSON.stringify(filter, null, 4)}</pre>\n </>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async (ctx) => {\n const u = parse(ctx.req.url);\n const filter = logFilterFromQueryString(u.search || \"\");\n\n const headers = await listLogs(gqlSsrClient, filter)\n return {\n props: {\n filter,\n headers,\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/2b855e34281b9382d53ba4ddb18216f6.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/src/components/layout.tsx\";\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport Head from \"next/head\";\nimport styles from \"./layout.module.css\";\nimport Link from \"next/link\";\nexport var siteTitle = \"Next.js Sample Website\";\nexport default function Layout(_ref) {\n var children = _ref.children,\n home = _ref.home;\n return __jsx(\"div\", {\n className: styles.container,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 7\n }\n }, __jsx(\"link\", {\n rel: \"icon\",\n href: \"/favicon.ico\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 9\n }\n }), __jsx(\"meta\", {\n name: \"description\",\n content: \"Learn how to build a personal website using Next.js\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }), __jsx(\"meta\", {\n name: \"og:title\",\n content: \"Aite RP\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 9\n }\n })), __jsx(\"main\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }, children), !home && __jsx(\"div\", {\n className: styles.backToHome,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n }, __jsx(Link, {\n href: \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 11\n }\n }, __jsx(\"a\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 13\n }\n }, \"\\u2190 Back to home\"))));\n}","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/src/components/layout.tsx"],"names":["React","Head","styles","Link","siteTitle","Layout","children","home","container","backToHome"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,WAAjB;AACA,OAAOC,MAAP,MAAmB,qBAAnB;AACA,OAAOC,IAAP,MAAiB,WAAjB;AAEA,OAAO,IAAMC,SAAS,GAAG,wBAAlB;AAEP,eAAe,SAASC,MAAT,OAMZ;AAAA,MALDC,QAKC,QALDA,QAKC;AAAA,MAJDC,IAIC,QAJDA,IAIC;AACD,SACE;AAAK,IAAA,SAAS,EAAEL,MAAM,CAACM,SAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAM,IAAA,GAAG,EAAC,MAAV;AAAiB,IAAA,IAAI,EAAC,cAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,EAEE;AACE,IAAA,IAAI,EAAC,aADP;AAEE,IAAA,OAAO,EAAC,qDAFV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,EAME;AAAM,IAAA,IAAI,EAAC,UAAX;AAAsB,IAAA,OAAO,EAAE,SAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IANF,CADF,EASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAOF,QAAP,CATF,EAUG,CAACC,IAAD,IACC;AAAK,IAAA,SAAS,EAAEL,MAAM,CAACO,UAAvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAM,IAAA,IAAI,EAAC,GAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BADF,CADF,CAXJ,CADF;AAoBD","sourcesContent":["import React from \"react\";\nimport Head from \"next/head\"\nimport styles from \"./layout.module.css\"\nimport Link from \"next/link\"\n\nexport const siteTitle = \"Next.js Sample Website\"\n\nexport default function Layout({\n children,\n home\n}: {\n children: React.ReactNode\n home?: boolean\n}) {\n return (\n <div className={styles.container}>\n <Head>\n <link rel=\"icon\" href=\"/favicon.ico\" />\n <meta\n name=\"description\"\n content=\"Learn how to build a personal website using Next.js\"\n />\n <meta name=\"og:title\" content={\"Aite RP\"} />\n </Head>\n <main>{children}</main>\n {!home && (\n <div className={styles.backToHome}>\n <Link href=\"/\">\n <a>← Back to home</a>\n </Link>\n </div>\n )}\n </div>\n )\n}\n"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/2c711bf92cc52dc8118c165c0269c805.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/2cdcb052045c493df6108ff7bb88ec8d.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/3038c7f2ee2ac466dadee9905633d787.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport styles from \"./layout.module.css\";\nimport Link from \"next/link\";\nexport const siteTitle = \"Next.js Sample Website\";\nexport default function Layout({\n children,\n home\n}) {\n return __jsx(\"div\", {\n className: styles.container\n }, __jsx(Head, null, __jsx(\"link\", {\n rel: \"icon\",\n href: \"/favicon.ico\"\n }), __jsx(\"meta\", {\n name: \"description\",\n content: \"Learn how to build a personal website using Next.js\"\n }), __jsx(\"meta\", {\n name: \"og:title\",\n content: \"Aite RP\"\n })), __jsx(\"main\", null, children), !home && __jsx(\"div\", {\n className: styles.backToHome\n }, __jsx(Link, {\n href: \"/\"\n }, __jsx(\"a\", null, \"\\u2190 Back to home\"))));\n}","map":null,"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import { gql } from \"../client/graphql\";\nexport async function listLogs(gql, filter) {\n return (await gql.post(LOGS_DOC, {\n filter\n }, \"ListLogs\")).logs;\n}\n\nfunction logFilterToQueryString(filter) {\n const parts = [];\n\n if (parts.length === 0) {\n return \"\";\n }\n\n return \"?\" + parts.map(p => `${p.k}=${encodeURIComponent(p.v)}`);\n}\n\nfunction logFilterFromQueryString(qs) {\n const filter = {};\n const qsParts = (qs.startsWith(\"?\") ? qs.slice(1) : qs).split(\"&\");\n return filter;\n}\n\nconst LOGS_DOC = gql`\nquery ListLogs($filter: LogsFilter) {\n logs(filter: $filter) {\n ...LogMeta\n ...LogMetaCharacters\n }\n}\n\nquery FindLog($id: String!) {\n log(id: $id) {\n ...LogMeta\n ...LogData\n }\n}\n\nfragment LogMeta on Log {\n id\n shortId\n date\n channelName\n title\n eventName\n description\n}\n\nfragment LogMetaCharacters on Log {\n characters {\n id\n name\n shortName\n author\n }\n}\n\nfragment LogData on Log {\n open\n channel {\n name\n logged\n hub\n eventName\n locationName\n }\n characters {\n id\n nicks\n author\n name\n shortName\n description\n }\n posts {\n id\n time\n kind\n nick\n text\n position\n }\n}\n`;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/lib/rpdata/logs.ts"],"names":["gql","listLogs","filter","post","LOGS_DOC","logs","logFilterToQueryString","parts","length","map","p","k","encodeURIComponent","v","logFilterFromQueryString","qs","qsParts","startsWith","slice","split"],"mappings":"AAAA,SAAoBA,GAApB,QAA+B,mBAA/B;AAEA,OAAO,eAAeC,QAAf,CAAwBD,GAAxB,EAAwCE,MAAxC,EAAkF;AACvF,SAAO,CAAC,MAAMF,GAAG,CAACG,IAAJ,CAASC,QAAT,EAAmB;AAACF,IAAAA;AAAD,GAAnB,EAA6B,UAA7B,CAAP,EAAiDG,IAAxD;AACD;;AAED,SAASC,sBAAT,CAAgCJ,MAAhC,EAA2D;AACzD,QAAMK,KAA6B,GAAG,EAAtC;;AAIA,MAAIA,KAAK,CAACC,MAAN,KAAiB,CAArB,EAAwB;AACtB,WAAO,EAAP;AACD;;AACD,SAAO,MAAMD,KAAK,CAACE,GAAN,CAAUC,CAAC,IAAK,GAAEA,CAAC,CAACC,CAAE,IAAGC,kBAAkB,CAACF,CAAC,CAACG,CAAH,CAAM,EAAjD,CAAb;AACD;;AAED,SAASC,wBAAT,CAAkCC,EAAlC,EAAyD;AACvD,QAAMb,MAAiB,GAAG,EAA1B;AACA,QAAMc,OAAO,GAAG,CAACD,EAAE,CAACE,UAAH,CAAc,GAAd,IAAqBF,EAAE,CAACG,KAAH,CAAS,CAAT,CAArB,GAAmCH,EAApC,EAAwCI,KAAxC,CAA8C,GAA9C,CAAhB;AAEA,SAAOjB,MAAP;AACD;;AAiCD,MAAME,QAAQ,GAAGJ,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAArB","sourcesContent":["import { GQLClient, gql } from \"../client/graphql\";\n\nexport async function listLogs(gql: GQLClient, filter?: LogFilter): Promise<LogHeader[]> {\n return (await gql.post(LOGS_DOC, {filter}, \"ListLogs\")).logs;\n}\n\nfunction logFilterToQueryString(filter: LogFilter): string {\n const parts: {k:string, v:string}[] = [];\n \n\n\n if (parts.length === 0) {\n return \"\";\n }\n return \"?\" + parts.map(p => `${p.k}=${encodeURIComponent(p.v)}`);\n}\n\nfunction logFilterFromQueryString(qs: string): LogFilter {\n const filter: LogFilter = {};\n const qsParts = (qs.startsWith(\"?\") ? qs.slice(1) : qs).split(\"&\");\n\n return filter;\n}\n\nexport interface LogFilter {\n /** Character IDs */\n characters?: string[]\n\n /** Limit the result set size. */\n limit?: number\n}\n\nexport interface LogHeader extends LogCommon {\n /** Character IDs */\n characters: LogHeaderCharacter[]\n}\n\ninterface LogCommon {\n id: string\n shortId: string\n date: string\n channelName: string\n title: string\n description: string\n eventName: string\n open: boolean\n}\n\ninterface LogHeaderCharacter {\n id: string\n name: string\n shortName: string\n author: string\n}\n\nconst LOGS_DOC = gql`\nquery ListLogs($filter: LogsFilter) {\n logs(filter: $filter) {\n ...LogMeta\n ...LogMetaCharacters\n }\n}\n\nquery FindLog($id: String!) {\n log(id: $id) {\n ...LogMeta\n ...LogData\n }\n}\n\nfragment LogMeta on Log {\n id\n shortId\n date\n channelName\n title\n eventName\n description\n}\n\nfragment LogMetaCharacters on Log {\n characters {\n id\n name\n shortName\n author\n }\n}\n\nfragment LogData on Log {\n open\n channel {\n name\n logged\n hub\n eventName\n locationName\n }\n characters {\n id\n nicks\n author\n name\n shortName\n description\n }\n posts {\n id\n time\n kind\n nick\n text\n position\n }\n}\n`;"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n/*\nMIT License\n\nCopyright (c) Jason Miller (https://jasonformat.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction mitt() {\n var all = Object.create(null);\n return {\n on: function on(type, handler) {\n ;\n (all[type] || (all[type] = [])).push(handler);\n },\n off: function off(type, handler) {\n if (all[type]) {\n // tslint:disable-next-line:no-bitwise\n all[type].splice(all[type].indexOf(handler) >>> 0, 1);\n }\n },\n emit: function emit(type) {\n for (var _len = arguments.length, evts = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n evts[_key - 1] = arguments[_key];\n }\n\n // eslint-disable-next-line array-callback-return\n ;\n (all[type] || []).slice().map(function (handler) {\n handler.apply(void 0, evts);\n });\n }\n };\n}\n\nexports[\"default\"] = mitt;","map":null,"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import config from \"../../config\";\n\nclass GQLSSRClient {\n async post(query, variables, operationName) {\n const res = await fetch(config.apiUrl(\"/graphql\"), {\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n return await res.json();\n }\n\n}\n\nconst gqlSsrClient = new GQLSSRClient();\nexport default gqlSsrClient;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/lib/client/graphql-ssr.ts"],"names":["config","GQLSSRClient","post","query","variables","operationName","res","fetch","apiUrl","body","JSON","stringify","credentials","headers","json","gqlSsrClient"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,cAAnB;;AAGA,MAAMC,YAAN,CAAwC;AACtC,QAAMC,IAAN,CAAWC,KAAX,EAA0BC,SAA1B,EAAyDC,aAAzD,EAAsG;AACpG,UAAMC,GAAG,GAAG,MAAMC,KAAK,CAACP,MAAM,CAACQ,MAAP,CAAc,UAAd,CAAD,EAA4B;AACjDC,MAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACR,QAAAA,KAAD;AAAQC,QAAAA,SAAR;AAAmBC,QAAAA;AAAnB,OAAf,CAD2C;AAEjDO,MAAAA,WAAW,EAAE,SAFoC;AAGjDC,MAAAA,OAAO,EAAE;AACP,wBAAgB;AADT;AAHwC,KAA5B,CAAvB;AAQA,WAAO,MAAMP,GAAG,CAACQ,IAAJ,EAAb;AACD;;AAXqC;;AAcxC,MAAMC,YAAY,GAAG,IAAId,YAAJ,EAArB;AACA,eAAec,YAAf","sourcesContent":["import config from \"../../config\";\nimport { GQLClient, GQLRespone } from \"./graphql\";\n\nclass GQLSSRClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(config.apiUrl(\"/graphql\"), {\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n\n return await res.json();\n }\n}\n\nconst gqlSsrClient = new GQLSSRClient();\nexport default gqlSsrClient;"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/src/pages/_app.tsx\";\nvar __jsx = React.createElement;\nimport React from \"react\";\nimport Layout from \"../components/layout\";\nimport \"../styles/global.css\";\nexport default function App(_ref) {\n var Component = _ref.Component,\n pageProps = _ref.pageProps,\n router = _ref.router;\n return __jsx(Layout, {\n home: router.pathname === \"/\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 5\n }\n }, __jsx(Component, _extends({}, pageProps, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 7\n }\n })));\n}","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/src/pages/_app.tsx"],"names":["React","Layout","App","Component","pageProps","router","pathname"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,MAAP,MAAmB,sBAAnB;AAEA,OAAO,sBAAP;AAEA,eAAe,SAASC,GAAT,OAAyD;AAAA,MAA1CC,SAA0C,QAA1CA,SAA0C;AAAA,MAA/BC,SAA+B,QAA/BA,SAA+B;AAAA,MAApBC,MAAoB,QAApBA,MAAoB;AACtE,SACE,MAAC,MAAD;AAAQ,IAAA,IAAI,EAAEA,MAAM,CAACC,QAAP,KAAoB,GAAlC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,SAAD,eAAeF,SAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KADF,CADF;AAKD","sourcesContent":["import React from \"react\";\nimport { AppProps } from \"next/app\";\nimport Layout from \"../components/layout\";\n\nimport \"../styles/global.css\"\n\nexport default function App({ Component, pageProps, router }: AppProps) {\n return (\n <Layout home={router.pathname === \"/\"}>\n <Component {...pageProps} />\n </Layout>\n );\n}\n"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nvar _classCallCheck = require(\"@babel/runtime/helpers/classCallCheck\");\n\nvar _assertThisInitialized = require(\"@babel/runtime/helpers/assertThisInitialized\");\n\nvar _createClass = require(\"@babel/runtime/helpers/createClass\");\n\nvar _inherits = require(\"@babel/runtime/helpers/inherits\");\n\nvar _possibleConstructorReturn = require(\"@babel/runtime/helpers/possibleConstructorReturn\");\n\nvar _getPrototypeOf = require(\"@babel/runtime/helpers/getPrototypeOf\");\n\nvar _toConsumableArray = require(\"@babel/runtime/helpers/toConsumableArray\");\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar react_1 = require(\"react\");\n\nvar isServer = false;\n\nexports[\"default\"] = function () {\n var mountedInstances = new Set();\n var state;\n\n function emitChange(component) {\n state = component.props.reduceComponentsToState(_toConsumableArray(mountedInstances), component.props);\n\n if (component.props.handleStateChange) {\n component.props.handleStateChange(state);\n }\n }\n\n return /*#__PURE__*/function (_react_1$Component) {\n _inherits(_class, _react_1$Component);\n\n var _super = _createSuper(_class);\n\n _createClass(_class, null, [{\n key: \"rewind\",\n // Used when server rendering\n value: function rewind() {\n var recordedState = state;\n state = undefined;\n mountedInstances.clear();\n return recordedState;\n }\n }]);\n\n function _class(props) {\n var _this;\n\n _classCallCheck(this, _class);\n\n _this = _super.call(this, props);\n\n if (isServer) {\n mountedInstances.add(_assertThisInitialized(_this));\n emitChange(_assertThisInitialized(_this));\n }\n\n return _this;\n }\n\n _createClass(_class, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n mountedInstances.add(this);\n emitChange(this);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n emitChange(this);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n mountedInstances[\"delete\"](this);\n emitChange(this);\n }\n }, {\n key: \"render\",\n value: function render() {\n return null;\n }\n }]);\n\n return _class;\n }(react_1.Component);\n};","map":null,"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport { listLogs, logFilterFromQueryString } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nimport LogListContext, { LogListContextProvider } from \"../hooks/LogListContext\";\nimport { parse } from \"url\";\nimport { useContext } from \"react\";\n;\nexport default function Home(props) {\n return __jsx(LogListContextProvider, {\n initialFilter: props.filter,\n initialHeader: props.headers,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }, \"Logs - Aite RP\")), __jsx(LogList, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 7\n }\n }));\n}\n\nfunction LogList() {\n const {\n headers,\n filter\n } = useContext(LogListContext);\n return __jsx(\"ol\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 5\n }\n }, headers.map(l => __jsx(\"li\", {\n key: l.shortId,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 25\n }\n }, l.id)));\n}\n\nexport const getServerSideProps = async ctx => {\n const u = parse(ctx.req.url);\n const filter = logFilterFromQueryString(u.search || \"\");\n const headers = await listLogs(gqlSsrClient, filter);\n return {\n props: {\n filter,\n headers\n }\n };\n};","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","listLogs","logFilterFromQueryString","gqlSsrClient","LogListContext","LogListContextProvider","parse","useContext","Home","props","filter","headers","LogList","map","l","shortId","id","getServerSideProps","ctx","u","req","url","search"],"mappings":";;;AACA,OAAOA,IAAP,MAAiB,WAAjB;AAEA,SAAoBC,QAApB,EAAyCC,wBAAzC,QAAyE,oBAAzE;AACA,OAAOC,YAAP,MAAyB,2BAAzB;AACA,OAAOC,cAAP,IAAyBC,sBAAzB,QAAuD,yBAAvD;AACA,SAASC,KAAT,QAAsB,KAAtB;AACA,SAASC,UAAT,QAA2B,OAA3B;AAKC;AAED,eAAe,SAASC,IAAT,CAAcC,KAAd,EAAgC;AAC7C,SACE,MAAC,sBAAD;AAAwB,IAAA,aAAa,EAAEA,KAAK,CAACC,MAA7C;AAAqD,IAAA,aAAa,EAAED,KAAK,CAACE,OAA1E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBADF,CADF,EAIE,MAAC,OAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAJF,CADF;AAQD;;AAED,SAASC,OAAT,GAAmB;AACjB,QAAM;AAACD,IAAAA,OAAD;AAAUD,IAAAA;AAAV,MAAoBH,UAAU,CAACH,cAAD,CAApC;AAEA,SACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGO,OAAO,CAACE,GAAR,CAAYC,CAAC,IAAI;AAAI,IAAA,GAAG,EAAEA,CAAC,CAACC,OAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAqBD,CAAC,CAACE,EAAvB,CAAjB,CADH,CADF;AAKD;;AAED,OAAO,MAAMC,kBAAsC,GAAG,MAAOC,GAAP,IAAe;AACnE,QAAMC,CAAC,GAAGb,KAAK,CAACY,GAAG,CAACE,GAAJ,CAAQC,GAAT,CAAf;AACA,QAAMX,MAAM,GAAGR,wBAAwB,CAACiB,CAAC,CAACG,MAAF,IAAY,EAAb,CAAvC;AAEA,QAAMX,OAAO,GAAG,MAAMV,QAAQ,CAACE,YAAD,EAAeO,MAAf,CAA9B;AACA,SAAO;AACLD,IAAAA,KAAK,EAAE;AACLC,MAAAA,MADK;AAELC,MAAAA;AAFK;AADF,GAAP;AAMD,CAXM","sourcesContent":["import { GetServerSideProps } from \"next\";\nimport Head from \"next/head\";\n\nimport { LogHeader, listLogs, LogFilter, logFilterFromQueryString } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nimport LogListContext, { LogListContextProvider } from \"../hooks/LogListContext\";\nimport { parse } from \"url\";\nimport { useContext } from \"react\";\n\ninterface HomeProps {\n headers: LogHeader[]\n filter: LogFilter\n};\n\nexport default function Home(props: HomeProps) {\n return (\n <LogListContextProvider initialFilter={props.filter} initialHeader={props.headers}>\n <Head>\n <title>Logs - Aite RP</title>\n </Head>\n <LogList />\n </LogListContextProvider>\n )\n}\n\nfunction LogList() {\n const {headers, filter} = useContext(LogListContext);\n\n return (\n <ol>\n {headers.map(l => <li key={l.shortId}>{l.id}</li>)}\n </ol>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async (ctx) => {\n const u = parse(ctx.req.url);\n const filter = logFilterFromQueryString(u.search || \"\");\n\n const headers = await listLogs(gqlSsrClient, filter)\n return {\n props: {\n filter,\n headers,\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/36759a3ed4eb38ce8a4927986c5b2e9f.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/36d42c64864f0fa07a11458c937aaf2d.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/37cd780c46e6996174ef9a0d673b7c31.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"var _jsxFileName = \"/home/gisle/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport LogListContext, { LogListContextProvider } from \"../hooks/LogListContext\";\nimport { useContext } from \"react\";\n;\nexport var __N_SSP = true;\nexport default function Home(props) {\n return __jsx(LogListContextProvider, {\n initialFilter: props.filter,\n initialHeader: props.headers,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 5\n }\n }, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }, \"Logs - Aite RP\")));\n}\n\nfunction LogList() {\n var _this = this;\n\n var _useContext = useContext(LogListContext),\n headers = _useContext.headers,\n filter = _useContext.filter;\n\n return __jsx(\"ol\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 5\n }\n }, headers.map(function (l) {\n return __jsx(\"li\", {\n key: l.shortId,\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 25\n }\n }, l.id);\n }));\n}","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","LogListContext","LogListContextProvider","useContext","Home","props","filter","headers","LogList","map","l","shortId","id"],"mappings":";;;AACA,OAAOA,IAAP,MAAiB,WAAjB;AAIA,OAAOC,cAAP,IAAyBC,sBAAzB,QAAuD,yBAAvD;AAEA,SAASC,UAAT,QAA2B,OAA3B;AAKC;;AAED,eAAe,SAASC,IAAT,CAAcC,KAAd,EAAgC;AAC7C,SACE,MAAC,sBAAD;AAAwB,IAAA,aAAa,EAAEA,KAAK,CAACC,MAA7C;AAAqD,IAAA,aAAa,EAAED,KAAK,CAACE,OAA1E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBADF,CADF,CADF;AAOD;;AAED,SAASC,OAAT,GAAmB;AAAA;;AAAA,oBACSL,UAAU,CAACF,cAAD,CADnB;AAAA,MACVM,OADU,eACVA,OADU;AAAA,MACDD,MADC,eACDA,MADC;;AAGjB,SACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGC,OAAO,CAACE,GAAR,CAAY,UAAAC,CAAC;AAAA,WAAI;AAAI,MAAA,GAAG,EAAEA,CAAC,CAACC,OAAX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAqBD,CAAC,CAACE,EAAvB,CAAJ;AAAA,GAAb,CADH,CADF;AAKD","sourcesContent":["import { GetServerSideProps } from \"next\";\nimport Head from \"next/head\";\n\nimport { LogHeader, listLogs, LogFilter, logFilterFromQueryString } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\nimport LogListContext, { LogListContextProvider } from \"../hooks/LogListContext\";\nimport { parse } from \"url\";\nimport { useContext } from \"react\";\n\ninterface HomeProps {\n headers: LogHeader[]\n filter: LogFilter\n};\n\nexport default function Home(props: HomeProps) {\n return (\n <LogListContextProvider initialFilter={props.filter} initialHeader={props.headers}>\n <Head>\n <title>Logs - Aite RP</title>\n </Head>\n </LogListContextProvider>\n )\n}\n\nfunction LogList() {\n const {headers, filter} = useContext(LogListContext);\n\n return (\n <ol>\n {headers.map(l => <li key={l.shortId}>{l.id}</li>)}\n </ol>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async (ctx) => {\n const u = parse(ctx.req.url);\n const filter = logFilterFromQueryString(u.search);\n\n const headers = await listLogs(gqlSsrClient, filter)\n return {\n props: {\n filter,\n headers,\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/39a9a4e1d47593be288ec526a17d6be5.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import config from \"../../../config\";\nimport fetch from \"node-fetch\";\n\nclass GQLSSRClient {\n async post(query, variables, operationName) {\n const res = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const json = await res.json();\n\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`);\n }\n\n return json.data;\n }\n\n}\n\nconst gqlSsrClient = new GQLSSRClient();\nexport default gqlSsrClient;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/src/lib/client/graphql-ssr.ts"],"names":["config","fetch","GQLSSRClient","post","query","variables","operationName","res","apiUrl","method","body","JSON","stringify","credentials","headers","json","errors","Error","message","path","data","gqlSsrClient"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AAEA,OAAOC,KAAP,MAAkB,YAAlB;;AAEA,MAAMC,YAAN,CAAwC;AACtC,QAAMC,IAAN,CAAWC,KAAX,EAA0BC,SAA1B,EAAyDC,aAAzD,EAAsG;AACpG,UAAMC,GAAG,GAAG,MAAMN,KAAK,CAACD,MAAM,CAACQ,MAAP,CAAc,UAAd,CAAD,EAA4B;AACjDC,MAAAA,MAAM,EAAE,MADyC;AAEjDC,MAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACR,QAAAA,KAAD;AAAQC,QAAAA,SAAR;AAAmBC,QAAAA;AAAnB,OAAf,CAF2C;AAGjDO,MAAAA,WAAW,EAAE,SAHoC;AAIjDC,MAAAA,OAAO,EAAE;AACP,wBAAgB;AADT;AAJwC,KAA5B,CAAvB;AASA,UAAMC,IAAI,GAAG,MAAMR,GAAG,CAACQ,IAAJ,EAAnB;;AACA,QAAIA,IAAI,CAACC,MAAT,EAAiB;AACf,YAAM,IAAIC,KAAJ,CAAW,GAAEF,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeE,OAAQ,KAAIH,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeG,IAAK,GAA5D,CAAN;AACD;;AAED,WAAOJ,IAAI,CAACK,IAAZ;AACD;;AAjBqC;;AAoBxC,MAAMC,YAAY,GAAG,IAAInB,YAAJ,EAArB;AACA,eAAemB,YAAf","sourcesContent":["import config from \"../../../config\";\nimport { GQLClient, GQLRespone } from \"./graphql\";\nimport fetch from \"node-fetch\";\n\nclass GQLSSRClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n\n const json = await res.json();\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n return json.data\n }\n}\n\nconst gqlSsrClient = new GQLSSRClient();\nexport default gqlSsrClient;\n"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nvar _regeneratorRuntime = require(\"@babel/runtime/regenerator\");\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\n\nvar _router = _interopRequireDefault(require(\"next/router\"));\n\nvar _onDemandEntriesUtils = require(\"./on-demand-entries-utils\");\n\nvar _default = function _default(_ref) {\n var assetPrefix;\n return _regeneratorRuntime.async(function _default$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n assetPrefix = _ref.assetPrefix;\n\n _router[\"default\"].ready(function () {\n _router[\"default\"].events.on('routeChangeComplete', _onDemandEntriesUtils.setupPing.bind(void 0, assetPrefix, function () {\n return _router[\"default\"].pathname;\n }));\n });\n\n (0, _onDemandEntriesUtils.setupPing)(assetPrefix, function () {\n return _router[\"default\"].pathname;\n }, _onDemandEntriesUtils.currentPage); // prevent HMR connection from being closed when running tests\n\n if (!process.env.__NEXT_TEST_MODE) {\n document.addEventListener('visibilitychange', function (event) {\n var state = document.visibilityState;\n\n if (state === 'visible') {\n (0, _onDemandEntriesUtils.setupPing)(assetPrefix, function () {\n return _router[\"default\"].pathname;\n }, true);\n } else {\n (0, _onDemandEntriesUtils.closePing)();\n }\n });\n window.addEventListener('beforeunload', function () {\n (0, _onDemandEntriesUtils.closePing)();\n });\n }\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, null, null, null, Promise);\n};\n\nexports[\"default\"] = _default;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/node_modules/next/dist/client/dev/on-demand-entries-client.js"],"names":["_interopRequireDefault","require","exports","__esModule","_router","_onDemandEntriesUtils","_default","_ref","assetPrefix","ready","events","on","setupPing","bind","pathname","currentPage","process","env","__NEXT_TEST_MODE","document","addEventListener","event","state","visibilityState","closePing","window"],"mappings":"AAAA;;;;AAAa,IAAIA,sBAAsB,GAACC,OAAO,CAAC,8CAAD,CAAlC;;AAAmFC,OAAO,CAACC,UAAR,GAAmB,IAAnB;AAAwBD,OAAO,WAAP,GAAgB,KAAK,CAArB;;AAAuB,IAAIE,OAAO,GAACJ,sBAAsB,CAACC,OAAO,CAAC,aAAD,CAAR,CAAlC;;AAA2D,IAAII,qBAAqB,GAACJ,OAAO,CAAC,2BAAD,CAAjC;;AAA+D,IAAIK,QAAQ,GAAC,SAATA,QAAS,CAAMC,IAAN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkBC,UAAAA,WAAlB,GAA+BD,IAA/B,CAAkBC,WAAlB;;AAAoCJ,UAAAA,OAAO,WAAP,CAAgBK,KAAhB,CAAsB,YAAI;AAACL,YAAAA,OAAO,WAAP,CAAgBM,MAAhB,CAAuBC,EAAvB,CAA0B,qBAA1B,EAAgDN,qBAAqB,CAACO,SAAtB,CAAgCC,IAAhC,CAAqC,KAAK,CAA1C,EAA4CL,WAA5C,EAAwD;AAAA,qBAAIJ,OAAO,WAAP,CAAgBU,QAApB;AAAA,aAAxD,CAAhD;AAAwI,WAAnK;;AAAqK,WAAC,GAAET,qBAAqB,CAACO,SAAzB,EAAoCJ,WAApC,EAAgD;AAAA,mBAAIJ,OAAO,WAAP,CAAgBU,QAApB;AAAA,WAAhD,EAA6ET,qBAAqB,CAACU,WAAnG,EAAzM,CAAyT;;AAC/kB,cAAG,CAACC,OAAO,CAACC,GAAR,CAAYC,gBAAhB,EAAiC;AAACC,YAAAA,QAAQ,CAACC,gBAAT,CAA0B,kBAA1B,EAA6C,UAAAC,KAAK,EAAE;AAAC,kBAAIC,KAAK,GAACH,QAAQ,CAACI,eAAnB;;AAAmC,kBAAGD,KAAK,KAAG,SAAX,EAAqB;AAAC,iBAAC,GAAEjB,qBAAqB,CAACO,SAAzB,EAAoCJ,WAApC,EAAgD;AAAA,yBAAIJ,OAAO,WAAP,CAAgBU,QAApB;AAAA,iBAAhD,EAA6E,IAA7E;AAAoF,eAA1G,MAA8G;AAAC,iBAAC,GAAET,qBAAqB,CAACmB,SAAzB;AAAuC;AAAC,aAA/O;AAAiPC,YAAAA,MAAM,CAACL,gBAAP,CAAwB,cAAxB,EAAuC,YAAI;AAAC,eAAC,GAAEf,qBAAqB,CAACmB,SAAzB;AAAuC,aAAnF;AAAsF;;AADnF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAb;;AACkGtB,OAAO,WAAP,GAAgBI,QAAhB","sourcesContent":["\"use strict\";var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");exports.__esModule=true;exports.default=void 0;var _router=_interopRequireDefault(require(\"next/router\"));var _onDemandEntriesUtils=require(\"./on-demand-entries-utils\");var _default=async(_ref)=>{var{assetPrefix}=_ref;_router.default.ready(()=>{_router.default.events.on('routeChangeComplete',_onDemandEntriesUtils.setupPing.bind(void 0,assetPrefix,()=>_router.default.pathname));});(0,_onDemandEntriesUtils.setupPing)(assetPrefix,()=>_router.default.pathname,_onDemandEntriesUtils.currentPage);// prevent HMR connection from being closed when running tests\nif(!process.env.__NEXT_TEST_MODE){document.addEventListener('visibilitychange',event=>{var state=document.visibilityState;if(state==='visible'){(0,_onDemandEntriesUtils.setupPing)(assetPrefix,()=>_router.default.pathname,true);}else{(0,_onDemandEntriesUtils.closePing)();}});window.addEventListener('beforeunload',()=>{(0,_onDemandEntriesUtils.closePing)();});}};exports.default=_default;"]},"metadata":{},"sourceType":"script"} |
|
1
.next/cache/next-babel-loader/3a5d93c2c6006c4a61ca022cc48e4b83.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/3ad5076afa1d7c81aee0ce11f40827a5.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction getRouteRegex(normalizedRoute) {\n // Escape all characters that could be considered RegEx\n const escapedRoute = (normalizedRoute.replace(/\\/$/, '') || '/').replace(/[|\\\\{}()[\\]^$+*?.-]/g, '\\\\$&');\n const groups = {};\n let groupIndex = 1;\n const parameterizedRoute = escapedRoute.replace(/\\/\\\\\\[([^/]+?)\\\\\\](?=\\/|$)/g, (_, $1) => {\n const isCatchAll = /^(\\\\\\.){3}/.test($1);\n groups[$1 // Un-escape key\n .replace(/\\\\([|\\\\{}()[\\]^$+*?.-])/g, '$1').replace(/^\\.{3}/, '') // eslint-disable-next-line no-sequences\n ] = {\n pos: groupIndex++,\n repeat: isCatchAll\n };\n return isCatchAll ? '/(.+?)' : '/([^/]+?)';\n });\n return {\n re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),\n groups\n };\n}\n\nexports.getRouteRegex = getRouteRegex;","map":null,"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import compress from \"gql-compress\";\n\nclass GQLBrowserClient {\n async post(query, variables, operationName) {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const json = await res.json();\n console.log(json);\n\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`);\n }\n\n return json.data;\n }\n\n}\n\nexport function gql(a) {\n return compress(a.join(\"\"));\n}\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/lib/client/graphql.ts"],"names":["compress","GQLBrowserClient","post","query","variables","operationName","res","fetch","method","body","JSON","stringify","credentials","headers","json","console","log","errors","Error","message","path","data","gql","a","join","gqlBrowserClient"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,cAArB;;AAEA,MAAMC,gBAAN,CAA4C;AAC1C,QAAMC,IAAN,CAAWC,KAAX,EAA0BC,SAA1B,EAAyDC,aAAzD,EAAsG;AACpG,UAAMC,GAAG,GAAG,MAAMC,KAAK,CAAE,cAAF,EAAiB;AACtCC,MAAAA,MAAM,EAAE,MAD8B;AAEtCC,MAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACR,QAAAA,KAAD;AAAQC,QAAAA,SAAR;AAAmBC,QAAAA;AAAnB,OAAf,CAFgC;AAGtCO,MAAAA,WAAW,EAAE,SAHyB;AAItCC,MAAAA,OAAO,EAAE;AACP,wBAAgB;AADT;AAJ6B,KAAjB,CAAvB;AASA,UAAMC,IAAI,GAAG,MAAMR,GAAG,CAACQ,IAAJ,EAAnB;AACAC,IAAAA,OAAO,CAACC,GAAR,CAAYF,IAAZ;;AACA,QAAIA,IAAI,CAACG,MAAT,EAAiB;AACf,YAAM,IAAIC,KAAJ,CAAW,GAAEJ,IAAI,CAACG,MAAL,CAAY,CAAZ,EAAeE,OAAQ,KAAIL,IAAI,CAACG,MAAL,CAAY,CAAZ,EAAeG,IAAK,GAA5D,CAAN;AACD;;AAGD,WAAON,IAAI,CAACO,IAAZ;AACD;;AAnByC;;AAiC5C,OAAO,SAASC,GAAT,CAAaC,CAAb,EAA8C;AACnD,SAAOvB,QAAQ,CAACuB,CAAC,CAACC,IAAF,CAAO,EAAP,CAAD,CAAf;AACD;AAED,MAAMC,gBAAgB,GAAG,IAAIxB,gBAAJ,EAAzB;AACA,eAAewB,gBAAf","sourcesContent":["import compress from \"gql-compress\";\n\nclass GQLBrowserClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n })\n\n const json = await res.json();\n console.log(json)\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n\n return json.data\n }\n}\n\nexport interface GQLClient {\n post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone>\n}\n\nexport interface GQLRespone {[x:string]: any}\n\nexport interface GQLError {\n message: string\n path: string[]\n}\n\nexport function gql(a: TemplateStringsArray): string {\n return compress(a.join(\"\")) as string;\n}\n\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import compress from \"gql-compress\";\n\nclass GQLBrowserClient {\n async post(query, variables, operationName) {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({\n query,\n variables,\n operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const json = await res.json();\n\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`);\n }\n\n return json.data;\n }\n\n}\n\nexport function gql(a) {\n return compress(a.join(\"\"));\n}\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/src/lib/client/graphql.ts"],"names":["compress","GQLBrowserClient","post","query","variables","operationName","res","fetch","method","body","JSON","stringify","credentials","headers","json","errors","Error","message","path","data","gql","a","join","gqlBrowserClient"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,cAArB;;AAEA,MAAMC,gBAAN,CAA4C;AAC1C,QAAMC,IAAN,CAAWC,KAAX,EAA0BC,SAA1B,EAAyDC,aAAzD,EAAsG;AACpG,UAAMC,GAAG,GAAG,MAAMC,KAAK,CAAE,cAAF,EAAiB;AACtCC,MAAAA,MAAM,EAAE,MAD8B;AAEtCC,MAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACR,QAAAA,KAAD;AAAQC,QAAAA,SAAR;AAAmBC,QAAAA;AAAnB,OAAf,CAFgC;AAGtCO,MAAAA,WAAW,EAAE,SAHyB;AAItCC,MAAAA,OAAO,EAAE;AACP,wBAAgB;AADT;AAJ6B,KAAjB,CAAvB;AASA,UAAMC,IAAI,GAAG,MAAMR,GAAG,CAACQ,IAAJ,EAAnB;;AACA,QAAIA,IAAI,CAACC,MAAT,EAAiB;AACf,YAAM,IAAIC,KAAJ,CAAW,GAAEF,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeE,OAAQ,KAAIH,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeG,IAAK,GAA5D,CAAN;AACD;;AAED,WAAOJ,IAAI,CAACK,IAAZ;AACD;;AAjByC;;AA+B5C,OAAO,SAASC,GAAT,CAAaC,CAAb,EAA8C;AACnD,SAAOrB,QAAQ,CAACqB,CAAC,CAACC,IAAF,CAAO,EAAP,CAAD,CAAf;AACD;AAED,MAAMC,gBAAgB,GAAG,IAAItB,gBAAJ,EAAzB;AACA,eAAesB,gBAAf","sourcesContent":["import compress from \"gql-compress\";\n\nclass GQLBrowserClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n })\n\n const json = await res.json();\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n return json.data\n }\n}\n\nexport interface GQLClient {\n post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone>\n}\n\nexport interface GQLRespone {[x:string]: any}\n\nexport interface GQLError {\n message: string\n path: string[]\n}\n\nexport function gql(a: TemplateStringsArray): string {\n return compress(a.join(\"\")) as string;\n}\n\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;\n"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport compress from \"gql-compress\";\n\nvar GQLBrowserClient = /*#__PURE__*/function () {\n function GQLBrowserClient() {\n _classCallCheck(this, GQLBrowserClient);\n }\n\n _createClass(GQLBrowserClient, [{\n key: \"post\",\n value: function post(query, variables, operationName) {\n var res, json;\n return _regeneratorRuntime.async(function post$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _regeneratorRuntime.awrap(fetch(\"/api/graphql\", {\n method: \"POST\",\n body: JSON.stringify({\n query: query,\n variables: variables,\n operationName: operationName\n }),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n }));\n\n case 2:\n res = _context.sent;\n _context.next = 5;\n return _regeneratorRuntime.awrap(res.json());\n\n case 5:\n json = _context.sent;\n\n if (!json.errors) {\n _context.next = 8;\n break;\n }\n\n throw new Error(\"\".concat(json.errors[0].message, \" (\").concat(json.errors[0].path, \")\"));\n\n case 8:\n return _context.abrupt(\"return\", json.data);\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, null, null, null, Promise);\n }\n }]);\n\n return GQLBrowserClient;\n}();\n\nexport function gql(a) {\n return compress(a.join(\"\"));\n}\nvar gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;","map":{"version":3,"sources":["/home/gisle/projects/react/rpdata-frontend2/src/lib/client/graphql.ts"],"names":["compress","GQLBrowserClient","query","variables","operationName","fetch","method","body","JSON","stringify","credentials","headers","res","json","errors","Error","message","path","data","gql","a","join","gqlBrowserClient"],"mappings":";;;AAAA,OAAOA,QAAP,MAAqB,cAArB;;IAEMC,gB;;;;;;;yBACOC,K,EAAeC,S,EAA+BC,a;;;;;;;+CACrCC,KAAK,iBAAiB;AACtCC,gBAAAA,MAAM,EAAE,MAD8B;AAEtCC,gBAAAA,IAAI,EAAEC,IAAI,CAACC,SAAL,CAAe;AAACP,kBAAAA,KAAK,EAALA,KAAD;AAAQC,kBAAAA,SAAS,EAATA,SAAR;AAAmBC,kBAAAA,aAAa,EAAbA;AAAnB,iBAAf,CAFgC;AAGtCM,gBAAAA,WAAW,EAAE,SAHyB;AAItCC,gBAAAA,OAAO,EAAE;AACP,kCAAgB;AADT;AAJ6B,eAAjB,C;;;AAAjBC,cAAAA,G;;+CASaA,GAAG,CAACC,IAAJ,E;;;AAAbA,cAAAA,I;;mBACFA,IAAI,CAACC,M;;;;;oBACD,IAAIC,KAAJ,WAAaF,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeE,OAA5B,eAAwCH,IAAI,CAACC,MAAL,CAAY,CAAZ,EAAeG,IAAvD,O;;;+CAGDJ,IAAI,CAACK,I;;;;;;;;;;;;;;AAehB,OAAO,SAASC,GAAT,CAAaC,CAAb,EAA8C;AACnD,SAAOpB,QAAQ,CAACoB,CAAC,CAACC,IAAF,CAAO,EAAP,CAAD,CAAf;AACD;AAED,IAAMC,gBAAgB,GAAG,IAAIrB,gBAAJ,EAAzB;AACA,eAAeqB,gBAAf","sourcesContent":["import compress from \"gql-compress\";\n\nclass GQLBrowserClient implements GQLClient {\n async post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone> {\n const res = await fetch(`/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({query, variables, operationName}),\n credentials: \"include\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n })\n\n const json = await res.json();\n if (json.errors) {\n throw new Error(`${json.errors[0].message} (${json.errors[0].path})`)\n }\n\n return json.data\n }\n}\n\nexport interface GQLClient {\n post(query: string, variables?: {[x:string]: any}, operationName?: string): Promise<GQLRespone>\n}\n\nexport interface GQLRespone {[x:string]: any}\n\nexport interface GQLError {\n message: string\n path: string[]\n}\n\nexport function gql(a: TemplateStringsArray): string {\n return compress(a.join(\"\")) as string;\n}\n\nconst gqlBrowserClient = new GQLBrowserClient();\nexport default gqlBrowserClient;"]},"metadata":{},"sourceType":"module"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n}); // Identify /[param]/ in route string\n\nvar TEST_ROUTE = /\\/\\[[^/]+?\\](?=\\/|$)/;\n\nfunction isDynamicRoute(route) {\n return TEST_ROUTE.test(route);\n}\n\nexports.isDynamicRoute = isDynamicRoute;","map":null,"metadata":{},"sourceType":"script"} |
|
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport fetch from \"node-fetch\";\nimport { getSession } from \"next-auth/client\";\nimport config from \"../../config\";\nexport default async function post(req, res) {\n if (req.method !== \"POST\") {\n res.status(405).json({\n error: \"Method not allowed;.\"\n });\n return;\n }\n\n if (typeof req.body !== \"object\" || typeof req.body.query !== \"string\") {\n res.status(400).json({\n error: \"Invalid request body (expected json object with query)\"\n });\n return;\n }\n\n const authHeaders = {};\n const session = await getSession({\n req\n });\n\n if (session != null && session.user != null) {\n authHeaders[\"Authorization\"] = `Bearer ${config.jwtToken(session.user.name, 15)}`;\n }\n\n const apires = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n headers: _objectSpread({\n \"Content-Type\": \"application/json\"\n }, authHeaders),\n body: JSON.stringify(req.body)\n });\n res.setHeader(\"Content-Type\", apires.headers.get(\"Content-Type\"));\n res.status(apires.status);\n apires.body.pipe(res);\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/api/graphql.ts"],"names":["fetch","getSession","config","post","req","res","method","status","json","error","body","query","authHeaders","session","user","jwtToken","name","apires","apiUrl","headers","JSON","stringify","setHeader","get","pipe"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,YAAlB;AAEA,SAASC,UAAT,QAA2B,kBAA3B;AAEA,OAAOC,MAAP,MAAmB,cAAnB;AAEA,eAAe,eAAeC,IAAf,CAAoBC,GAApB,EAAyCC,GAAzC,EAA+D;AAC5E,MAAID,GAAG,CAACE,MAAJ,KAAe,MAAnB,EAA2B;AACzBD,IAAAA,GAAG,CAACE,MAAJ,CAAW,GAAX,EAAgBC,IAAhB,CAAqB;AAACC,MAAAA,KAAK,EAAE;AAAR,KAArB;AACA;AACD;;AAED,MAAI,OAAOL,GAAG,CAACM,IAAX,KAAqB,QAArB,IAAiC,OAAON,GAAG,CAACM,IAAJ,CAASC,KAAhB,KAA2B,QAAhE,EAA0E;AACxEN,IAAAA,GAAG,CAACE,MAAJ,CAAW,GAAX,EAAgBC,IAAhB,CAAqB;AAACC,MAAAA,KAAK,EAAE;AAAR,KAArB;AACA;AACD;;AAED,QAAMG,WAAW,GAAG,EAApB;AACA,QAAMC,OAAO,GAAG,MAAMZ,UAAU,CAAC;AAACG,IAAAA;AAAD,GAAD,CAAhC;;AACA,MAAIS,OAAO,IAAI,IAAX,IAAmBA,OAAO,CAACC,IAAR,IAAgB,IAAvC,EAA6C;AAC3CF,IAAAA,WAAW,CAAC,eAAD,CAAX,GAAgC,UAASV,MAAM,CAACa,QAAP,CAAgBF,OAAO,CAACC,IAAR,CAAaE,IAA7B,EAAmC,EAAnC,CAAuC,EAAhF;AACD;;AAED,QAAMC,MAAM,GAAG,MAAMjB,KAAK,CAACE,MAAM,CAACgB,MAAP,CAAc,UAAd,CAAD,EAA4B;AACpDZ,IAAAA,MAAM,EAAE,MAD4C;AAEpDa,IAAAA,OAAO;AACL,sBAAgB;AADX,OAEFP,WAFE,CAF6C;AAMpDF,IAAAA,IAAI,EAAEU,IAAI,CAACC,SAAL,CAAejB,GAAG,CAACM,IAAnB;AAN8C,GAA5B,CAA1B;AASAL,EAAAA,GAAG,CAACiB,SAAJ,CAAc,cAAd,EAA8BL,MAAM,CAACE,OAAP,CAAeI,GAAf,CAAmB,cAAnB,CAA9B;AACAlB,EAAAA,GAAG,CAACE,MAAJ,CAAWU,MAAM,CAACV,MAAlB;AACAU,EAAAA,MAAM,CAACP,IAAP,CAAYc,IAAZ,CAAiBnB,GAAjB;AACD","sourcesContent":["import fetch from \"node-fetch\";\nimport { NextApiRequest, NextApiResponse } from \"next\";\nimport { getSession } from \"next-auth/client\";\n\nimport config from \"../../config\";\n\nexport default async function post(req: NextApiRequest, res: NextApiResponse) {\n if (req.method !== \"POST\") {\n res.status(405).json({error: \"Method not allowed;.\"});\n return;\n }\n \n if (typeof(req.body) !== \"object\" || typeof(req.body.query) !== \"string\") {\n res.status(400).json({error: \"Invalid request body (expected json object with query)\"});\n return;\n }\n\n const authHeaders = {};\n const session = await getSession({req});\n if (session != null && session.user != null) {\n authHeaders[\"Authorization\"] = `Bearer ${config.jwtToken(session.user.name, 15)}`;\n }\n\n const apires = await fetch(config.apiUrl(\"/graphql\"), {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...authHeaders,\n },\n body: JSON.stringify(req.body),\n });\n\n res.setHeader(\"Content-Type\", apires.headers.get(\"Content-Type\"));\n res.status(apires.status);\n apires.body.pipe(res);\n}\n"]},"metadata":{},"sourceType":"module"} |
|
1
.next/cache/next-babel-loader/3e40ed7f2348acb36a7882c957204611.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/3ec3aa0a64e37f78890bf687bee4bcee.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
.next/cache/next-babel-loader/3ff11ee78d42794bbe0d6a3b323e0320.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1 +0,0 @@ |
|||||
{"ast":null,"code":"import _toArray from \"@babel/runtime/helpers/esm/toArray\";\nvar _jsxFileName = \"/data/projects/react/rpdata-frontend2/pages/index.tsx\";\nimport React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport { siteTitle } from \"../components/layout\";\nimport utilStyles from \"../styles/utils.module.css\";\nexport var __N_SSP = true;\nexport default function Home(_ref) {\n var _ref$logs = _toArray(_ref.logs);\n\n return __jsx(React.Fragment, null, __jsx(Head, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 7\n }\n }, __jsx(\"title\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 9\n }\n }, siteTitle)), __jsx(\"section\", {\n className: utilStyles.headingMd,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 7\n }\n }, __jsx(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 9\n }\n }, \"[Your Self Introduction]\"), __jsx(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 9\n }\n }, \"(This is a sample website - you\\u2019ll be building a site like this in\", \" \", __jsx(\"a\", {\n href: \"https://nextjs.org/learn\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 11\n }\n }, \"our Next.js tutorial\"), \".)\")), __jsx(\"section\", {\n className: \"\".concat(utilStyles.headingMd, \" \").concat(utilStyles.padding1px),\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }\n }, __jsx(\"h2\", {\n className: utilStyles.headingLg,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }\n }, \"Blog\"), __jsx(\"ul\", {\n className: utilStyles.list,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 9\n }\n })));\n}","map":{"version":3,"sources":["/data/projects/react/rpdata-frontend2/pages/index.tsx"],"names":["Head","siteTitle","utilStyles","Home","logs","headingMd","padding1px","headingLg","list"],"mappings":";;;;AAAA,OAAOA,IAAP,MAAiB,WAAjB;AACA,SAASC,SAAT,QAA0B,sBAA1B;AACA,OAAOC,UAAP,MAAuB,4BAAvB;;AAKA,eAAe,SAASC,IAAT,OAIZ;AAAA,gCAHDC,IAGC;;AACD,SACE,4BACE,MAAC,IAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAQH,SAAR,CADF,CADF,EAIE;AAAS,IAAA,SAAS,EAAEC,UAAU,CAACG,SAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCADF,EAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gFACqE,GADrE,EAEE;AAAG,IAAA,IAAI,EAAC,0BAAR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAFF,OAFF,CAJF,EAWE;AAAS,IAAA,SAAS,YAAKH,UAAU,CAACG,SAAhB,cAA6BH,UAAU,CAACI,UAAxC,CAAlB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAI,IAAA,SAAS,EAAEJ,UAAU,CAACK,SAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YADF,EAEE;AAAI,IAAA,SAAS,EAAEL,UAAU,CAACM,IAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAFF,CAXF,CADF;AAmBD","sourcesContent":["import Head from \"next/head\"\nimport { siteTitle } from \"../components/layout\"\nimport utilStyles from \"../styles/utils.module.css\"\nimport { GetServerSideProps } from \"next\";\nimport { LogHeader, listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\"\n\nexport default function Home({\n logs: []\n}: {\n logs: LogHeader[]\n}) {\n return (\n <>\n <Head>\n <title>{siteTitle}</title>\n </Head>\n <section className={utilStyles.headingMd}>\n <p>[Your Self Introduction]</p>\n <p>\n (This is a sample website - you’ll be building a site like this in{\" \"}\n <a href=\"https://nextjs.org/learn\">our Next.js tutorial</a>.)\n </p>\n </section>\n <section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>\n <h2 className={utilStyles.headingLg}>Blog</h2>\n <ul className={utilStyles.list}>\n </ul>\n </section>\n </>\n )\n}\n\nexport const getServerSideProps: GetServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {characters: [\"C68\"]})\n return {\n props: {\n logs\n }\n }\n}"]},"metadata":{},"sourceType":"module"} |
|
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue