Files
old-kitabcitab-frontend/kitabcitab/.next/cache/webpack/client-development/7.pack

197 lines
23 KiB
Plaintext
Raw Normal View History

2023-02-16 00:05:13 +01:00
wpc<00>[<10>webpack/lib/cache/PackFileCacheStrategy<67>PackContentItems <10><1E> ResolverCachePlugin|normal|default|fallback=[|assert=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/assert/assert.js|buffer=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/buffer/index.js|constants=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/constants-browserify/constants.json|crypto=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/crypto-browserify/index.js|domain=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/domain-browser/index.js|http=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/stream-http/index.js|https=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/https-browserify/index.js|os=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/os-browserify/browser.js|path=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/path-browserify/index.js|punycode=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/punycode/punycode.js|process=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/build/polyfills/process.js|querystring=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/querystring-es3/index.js|stream=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/stream-browserify/index.js|string_decoder=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/string_decoder/string_decoder.js|sys=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/util/util.js|timers=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/timers-browserify/main.js|tty=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/tty-browserify/index.js|util=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/util/util.js|vm=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/vm-browserify/index.js|zlib=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/browserify-zlib/index.js|events=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/events/events.js|setImmediate=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/setimmediate/setImmediate.js|]|dependencyType=|commonjs|path=|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab|request=|./pages/[book]/[id]/index.js<1E>Compilation/modules|/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/loader.js!/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[3].oneOf[2].use[1]!/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js<10>webpack/lib/cache/ResolverCachePlugin<11><10>`<12>_ResolverCachePluginCacheMiss<73>context<78>path<74>request<73>query<72>fragment<6E>module<6C>directory<72>file<6C>internal<61>fullySpecified<65>descriptionFilePath<74>descriptionFileData<74>descriptionFileRoot<6F>relativePath<74>__innerRequest_request<73>__innerRequest_relativePath<74>__innerRequest <03>issuer<65>issuerLayer<65>compiler<17><11>client<17>/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js<18><> <20>/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/package.json<06>name<6D>version<6F>private<74>scripts<74>dependencies<65>devDependencies<17>kitabcitab<61>0.1.0 <04>dev<65>build<6C>start<72>lint<17>next dev<65>next bui
pW?<3F>UxB<15> <00><06>jcxB
<06>jcxB <15><15><15><15><15><15><15><15><15><03>/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/package.json<6F>/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/package.json<6F>/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/package.json<10>webpack/lib/NormalModule<11>webpack/lib/util/registerExternalSerializer<65>webpack-sources/SourceMapSourceP(import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
var _s = $RefreshSig$();
2023-02-16 00:05:13 +01:00
import { AiOutlineLeft, AiOutlineRight } from "react-icons/ai";
import Link from "next/link";
import { useRouter } from "next/router";
2023-02-16 00:05:13 +01:00
const result = (param)=>{
let { data } = param;
_s();
const router = useRouter();
2023-02-16 00:05:13 +01:00
console.log(data);
const { book , writer , text } = data._source;
const nextPageHandler = ()=>{
if (Number(data._id) + 1 === Number(data._source.numOfPages) + 1) return;
router.push("/".concat(book.toLowerCase(), "/").concat(Number(data._id) + 1));
};
const prevPageHandler = ()=>{
if (data._id - 1 === 0) return;
router.push("/".concat(book.toLowerCase(), "/").concat(Number(data._id) - 1));
};
return /*#__PURE__*/ _jsxDEV(_Fragment, {
children: /*#__PURE__*/ _jsxDEV("div", {
className: "flex flex-col laptop:flex-row flex-wrap items-end w-[100vw] laptop:w-[84vw] laptop:min-h-[20vh] laptop:max-w-[90vw]",
children: [
/*#__PURE__*/ _jsxDEV("div", {
className: "p-10 w-[100vw] laptop:w-[25rem]",
children: /*#__PURE__*/ _jsxDEV(Link, {
href: "/",
children: /*#__PURE__*/ _jsxDEV("p", {
className: "text-5xl tablet:text-6xl laptop:text-3xl text-white text-center font-serif ",
children: "KitabCitab"
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 28,
columnNumber: 32
}, this)
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 28,
columnNumber: 17
}, this)
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 27,
columnNumber: 13
}, this),
/*#__PURE__*/ _jsxDEV("div", {
className: "group my-3 mx-auto py-5 h-[5vh] min-w-[90vw]n w-[90vw] bg-[#202124] flex flex-row justify-around items-center tablet:w-[70vw] laptop:min-w-[40vw] laptop:w-[40vw] laptop:mx-0 laptop:my-10 laptop:justify-between ",
children: [
/*#__PURE__*/ _jsxDEV("i", {
className: "rounded-3xl text-[#fff] px-3 py-auto",
onClick: ()=>prevPageHandler(),
children: /*#__PURE__*/ _jsxDEV(AiOutlineLeft, {
size: 25
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 49,
columnNumber: 103
}, this)
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 49,
columnNumber: 17
}, this),
/*#__PURE__*/ _jsxDEV("p", {
className: "text-base tablet:text-2xl laptop:text-2xl text-[#fff] font-serif text-center",
children: [
'"',
book,
'", ',
writer,
", str.",
data._id
]
}, void 0, true, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 50,
columnNumber: 17
}, this),
/*#__PURE__*/ _jsxDEV("i", {
className: "rounded-3xl text-[#fff] px-3 py-auto",
onClick: ()=>nextPageHandler(),
children: /*#__PURE__*/ _jsxDEV(AiOutlineRight, {
size: 25
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 51,
columnNumber: 103
}, this)
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 51,
columnNumber: 17
}, this)
]
}, void 0, true, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 30,
columnNumber: 13
}, this),
/*#__PURE__*/ _jsxDEV("div", {
className: "page flex laptop:justify-center laptop:min-w-[100%]",
children: /*#__PURE__*/ _jsxDEV("p", {
className: " min-w-[90vw] w-[100%] px-5 mt-8 pb-[5rem] tablet:w-[100%] tablet:px-[5rem] laptop:min-w-[45vw] laptop:w-[60vw] text-white font-serif text-2xl ",
children: text
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 54,
columnNumber: 17
}, this)
}, void 0, false, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 53,
columnNumber: 13
}, this)
]
}, void 0, true, {
fileName: "/home/ismail/Desktop/KitabCitab/kitabcitab-frontend/kitabcitab/pages/[book]/[id]/index.js",
lineNumber: 26,
columnNumber: 9
}, this)
}, void 0, false);
2023-01-04 02:30:44 +01:00
};
2023-02-16 00:05:13 +01:00
_s(result, "fN7XvhJ+p5oE6+Xlo0NJmXpxjC8=", false, function() {
return [
useRouter
];
});
2023-02-16 00:05:13 +01:00
export var __N_SSP = true;
export default result;
2023-01-04 02:30:44 +01:00
;
// Wrapped in an IIFE to avoid polluting the global scope
;
(function () {
var _a, _b;
// Legacy CSS implementations will `eval` browser code in a Node.js context
// to extract CSS. For backwards compatibility, we need to check we're in a
// browser context before continuing.
if (typeof self !== 'undefined' &&
// AMP / No-JS mode does not inject these helpers:
'$RefreshHelpers$' in self) {
// @ts-ignore __webpack_module__ is global
var currentExports = __webpack_module__.exports;
// @ts-ignore __webpack_module__ is global
var prevExports = (_b = (_a = __webpack_module__.hot.data) === null || _a === void 0 ? void 0 : _a.prevExports) !== null && _b !== void 0 ? _b : null;
// This cannot happen in MainTemplate because the exports mismatch between
// templating and execution.
self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, __webpack_module__.id);
// A module can be accepted automatically based on its exports, e.g. when
// it is a Refresh Boundary.
if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {
// Save the previous exports on update so we can compare the boundary
// signatures.
__webpack_module__.hot.dispose(function (data) {
data.prevExports = currentExports;
});
// Unconditionally accept an update to this module, we'll check if it's
// still a Refresh Boundary later.
// @ts-ignore importMeta is replaced in the loader
import.meta.webpackHot.accept();
// This field is set when the previous version of this module was a
// Refresh Boundary, letting us know we need to check for invalidation or
// enqueue an update.
if (prevExports !== null) {
// A boundary can become ineligible if its exports are incompatible
// with the previous exports.
//
// For example, if you add/remove/change exports, we'll want to
// re-execute the importing modules, and force those components to
// re-render. Similarly, if you convert a class component to a
// function, we want to invalidate the boundary.
if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevExports, currentExports)) {
__webpack_module__.hot.invalidate();
}
else {
self.$RefreshHelpers$.scheduleUpdate();
}
}
}
else {
// Since we just executed the code for the module, it's possible that the
// new exports made it ineligible for being a boundary.
// We only care about the case when we were _previously_ a boundary,
// because we already accepted this update (accidental side effect).
var isNoLongerABoundary = prevExports !== null;
if (isNoLongerABoundary) {
__webpack_module__.hot.invalidate();
}
}
}
})();
2023-02-16 00:05:13 +01:00
<1E>webpack://./node_modules/next/dist/compiled/@next/react-refresh-utils/dist/loader.js!./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[3].oneOf[2].use[1]!./pages/[book]/[id]/index.js<1F>{"version":3,"sources":["webpack://./pages/[book]/[id]/index.js"],"sourcesContent":["import { AiOutlineLeft, AiOutlineRight } from 'react-icons/ai'\nimport Link from \"next/link\"\nimport { useRouter } from 'next/router'\nimport { ENV_VAR } from '../../../envconfig'\n\n\nconst result = ({data}) => {\n\n const router = useRouter()\n console.log(data)\n const {book, writer, text} = data._source\n const nextPageHandler = () => {\n if(Number(data._id) + 1 === Number(data._source.numOfPages) + 1) return\n\n router.push(`/${book.toLowerCase()}/${Number(data._id) + 1}`)\n }\n\n const prevPageHandler = () => {\n if(data._id - 1 === 0) return\n\n router.push(`/${book.toLowerCase()}/${Number(data._id) - 1}`)\n } \n\n return (\n <>\n <div className=\"flex flex-col laptop:flex-row flex-wrap items-end w-[100vw] laptop:w-[84vw] laptop:min-h-[20vh] laptop:max-w-[90vw]\">\n <div className=\"p-10 w-[100vw] laptop:w-[25rem]\">\n <Link href='/'><p className=\"text-5xl tablet:text-6xl laptop:text-3xl text-white text-center font-serif \">KitabCitab</p></Link>\n </div>\n <div className=\"group\n my-3\n mx-auto\n py-5 \n h-[5vh]\n min-w-[90vw]n\n w-[90vw]\n bg-[#202124]\n flex flex-row justify-around items-center\n\n tablet:w-[70vw]\n\n laptop:min-w-[40vw]\n laptop:w-[40vw]\n laptop:mx-0\n laptop:my-10\n laptop:justify-between\n \"\n >\n <i className='rounded-3xl text-[#fff] px-3 py-auto' onClick={() => prevPageHandler()}><AiOutlineLeft size={25} /></i>\n <p className=\"text-base tablet:text-2xl laptop:text-2xl text-[#fff] font-serif text-center\">\"{book}\", {writer}, str.{data._id}</p>\n <i className='rounded-3xl text-[#fff] px-3 py-auto' onClick={() => nextPageHandler()}><AiOutlineRight size={25} /></i>\n </div>\n <div className='page flex laptop:justify-center laptop:min-w-[100%]'>\n <p className='\n min-w-[90vw]\n w-[100%]\n px-5\n mt-8\n pb-[5rem]\n\n tablet:w-[100%]\n tablet:px-[5rem]\n\n laptop:min-w-[45vw]\n laptop:w-[60vw]\n\n text-white\n font-serif\n text-2xl\n '\n >\n {text}\n </p>\n </div>\n </div> \n </>\n )\n}\n\nexport default result\n\nexport async function getServerSideProps (context) {\n \n try{\n const res = await fetch(`${ENV_VAR}library${context.resolvedUrl}`)\n const data = await res.json()\n\n return { props: {data} }\n }\n catch{err => console.log(err)}\n\n \n}\n\n"],"names":["AiOutlineLeft","AiOutlineRight","Link","useRouter","result","data","router","console","log","book","writer","text","_source","nextPageHandler","Number","_id","numOfPages","push","toLowerCase","prevPageHandler","div","className","href","p","i","onClick","size"],"mappings":"AAAA;;AAAA,SAASA,aAAa,EAAEC,cAAc,QAAQ,iBAAgB;AAC9D,OAAOC,UAAU,YAAW;AAC5B,SAASC,SAAS,QAAQ,cAAa;AAIvC,MAAMC,SAAS,SAAY;QAAX,EAACC,KAAI,EAAC;;IAElB,MAAMC,SAASH;IACfI,QAAQC,GAAG,CAACH;IACZ,MAAM,EAACI,KAAI,EAAEC,OAAM,EAAEC,KAAI,EAAC,GAAGN,KAAKO,OAAO;IACzC,MAAMC,kBAAkB,IAAM;QAC1B,IAAGC,OAAOT,KAAKU,GAAG,IAAI,MAAMD,OAAOT,KAAKO,OAAO,CAACI,UAAU,IAAI,GAAG;QAEjEV,OAAOW,IAAI,CAAC,AAAC,IAAyBH,OAAtBL,KAAKS,WAAW,IAAG,KAAwB,OAArBJ,OAAOT,KAAKU,GAAG,IAAI;IAC7D;IAEA,MAAMI,kBAAkB,IAAM;QAC1B,IAAGd,KAAKU,GAAG,GAAG,MAAM,GAAG;
<00>
 <15><15><15> c1&1- <15><15> AK R  <15><15><15> c444; <01>AiOutlineLeft<15> AS `   <15><15><15> c4<4I <15><15> A" <15><15><15> c@&@- <15><15> A#* <15><15><15> cO&O- <15><15> A<><00> <15><15><15> cR4R; <01>AiOutlineRight<15> A<>  <15><15><15> cR<RJ <15><15> A<><00> <15><15><15> cdd% <15><15> Acj <15><15><15> cf,f3 <15><15> A<><00>  <15><15><15> c}}<10>webpack/lib/dependencies/HarmonyExportSpecifierDependency@q<><71><EFBFBD>q<><71><EFBFBD> @<40>@<40>`<10>webpack/lib/dependencies/HarmonyExportExpressionDependency`<60><15><> @<40>@<40>`