book-card.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. exports.ids = [1];
  2. exports.modules = {
  3. /***/ 282:
  4. /***/ (function(module, exports) {
  5. // Exports
  6. module.exports = {
  7. };
  8. /***/ }),
  9. /***/ 343:
  10. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11. "use strict";
  12. __webpack_require__.r(__webpack_exports__);
  13. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_bookCard_vue_vue_type_style_index_0_id_45419773_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(282);
  14. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_bookCard_vue_vue_type_style_index_0_id_45419773_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_bookCard_vue_vue_type_style_index_0_id_45419773_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  15. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_bookCard_vue_vue_type_style_index_0_id_45419773_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_bookCard_vue_vue_type_style_index_0_id_45419773_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  16. /***/ }),
  17. /***/ 379:
  18. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19. "use strict";
  20. // ESM COMPAT FLAG
  21. __webpack_require__.r(__webpack_exports__);
  22. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/bookCard.vue?vue&type=template&id=45419773&scoped=true
  23. var render = function render() {
  24. var _vm = this,
  25. _c = _vm._self._c;
  26. return _c('div', {
  27. staticClass: "wrap"
  28. }, [_vm._ssrNode("<a" + _vm._ssrAttr("href", _vm.cardData.filepath) + " target=\"_blank\" data-v-45419773>", "</a>", [_vm._ssrNode("<div class=\"item-left\" data-v-45419773>", "</div>", [_c('el-image', {
  29. staticStyle: {
  30. "width": "100%",
  31. "height": "100%"
  32. },
  33. attrs: {
  34. "lazy": "",
  35. "src": _vm.comImg,
  36. "fit": "cover"
  37. }
  38. })], 1), _vm._ssrNode(" <div class=\"item-right\" data-v-45419773><p class=\"title\" data-v-45419773>" + _vm._ssrEscape(_vm._s(_vm.cardData.name || _vm.cardData.title)) + "</p> <p class=\"date\" data-v-45419773>" + _vm._ssrEscape("Publish on " + _vm._s(_vm._f("formatTime")(_vm.cardData.create_time))) + "</p></div>")], 2)]);
  39. };
  40. var staticRenderFns = [];
  41. // CONCATENATED MODULE: ./components/bookCard.vue?vue&type=template&id=45419773&scoped=true
  42. // EXTERNAL MODULE: external "dayjs"
  43. var external_dayjs_ = __webpack_require__(26);
  44. var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_);
  45. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/bookCard.vue?vue&type=script&lang=js
  46. /* harmony default export */ var bookCardvue_type_script_lang_js = ({
  47. filters: {
  48. formatTime(val) {
  49. return external_dayjs_default()(val).format('MMM D,YYYY');
  50. }
  51. },
  52. props: {
  53. cardData: {}
  54. },
  55. computed: {
  56. comImg() {
  57. return this.$utils.generateResizedImageUrl(this.cardData.img, 400);
  58. }
  59. },
  60. methods: {
  61. beforeDataProcess(rawData) {
  62. return {
  63. name: rawData.name,
  64. id: rawData.value
  65. };
  66. }
  67. }
  68. });
  69. // CONCATENATED MODULE: ./components/bookCard.vue?vue&type=script&lang=js
  70. /* harmony default export */ var components_bookCardvue_type_script_lang_js = (bookCardvue_type_script_lang_js);
  71. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  72. var componentNormalizer = __webpack_require__(2);
  73. // CONCATENATED MODULE: ./components/bookCard.vue
  74. function injectStyles (context) {
  75. var style0 = __webpack_require__(343)
  76. if (style0.__inject__) style0.__inject__(context)
  77. }
  78. /* normalize component */
  79. var component = Object(componentNormalizer["a" /* default */])(
  80. components_bookCardvue_type_script_lang_js,
  81. render,
  82. staticRenderFns,
  83. false,
  84. injectStyles,
  85. "45419773",
  86. "198f7c27"
  87. )
  88. /* harmony default export */ var bookCard = __webpack_exports__["default"] = (component.exports);
  89. /***/ })
  90. };;
  91. //# sourceMappingURL=book-card.js.map