-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog-blog-module-es5.js
416 lines (302 loc) · 17.2 KB
/
blog-blog-module-es5.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["blog-blog-module"], {
/***/
"./src/app/blog/blog-routing.module.ts":
/*!*********************************************!*\
!*** ./src/app/blog/blog-routing.module.ts ***!
\*********************************************/
/*! exports provided: BlogRoutingModule */
/***/
function srcAppBlogBlogRoutingModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "BlogRoutingModule", function () {
return BlogRoutingModule;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */
var _blog_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./blog.component */
"./src/app/blog/blog.component.ts");
var routes = [{
path: ':slug',
component: _blog_component__WEBPACK_IMPORTED_MODULE_2__["BlogComponent"]
}, {
path: '**',
component: _blog_component__WEBPACK_IMPORTED_MODULE_2__["BlogComponent"]
}];
var BlogRoutingModule = function BlogRoutingModule() {
_classCallCheck(this, BlogRoutingModule);
};
BlogRoutingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
type: BlogRoutingModule
});
BlogRoutingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
factory: function BlogRoutingModule_Factory(t) {
return new (t || BlogRoutingModule)();
},
imports: [[_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(routes)], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
});
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](BlogRoutingModule, {
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
});
})();
/*@__PURE__*/
(function () {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BlogRoutingModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
args: [{
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
}]
}], null, null);
})();
/***/
},
/***/
"./src/app/blog/blog.component.ts":
/*!****************************************!*\
!*** ./src/app/blog/blog.component.ts ***!
\****************************************/
/*! exports provided: BlogComponent */
/***/
function srcAppBlogBlogComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "BlogComponent", function () {
return BlogComponent;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */
var _scullyio_ng_lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @scullyio/ng-lib */
"./node_modules/@scullyio/ng-lib/__ivy_ngcc__/fesm2015/scullyio-ng-lib.js");
/* harmony import */
var _core_blog_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../core/blog.service */
"./src/app/core/blog.service.ts");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @angular/platform-browser */
"./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
/* harmony import */
var _shared_post_header_post_header_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../shared/post-header/post-header.component */
"./src/app/shared/post-header/post-header.component.ts");
function BlogComponent_app_post_header_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-post-header", 5);
}
if (rf & 2) {
var ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("title", ctx_r2.post.title)("postDate", ctx_r2.post.date)("bgImageUrl", ctx_r2.post.bgImageUrl);
}
}
var BlogComponent = /*#__PURE__*/function () {
function BlogComponent(scullyService, blogService, titleService, renderer2, document) {
_classCallCheck(this, BlogComponent);
this.scullyService = scullyService;
this.blogService = blogService;
this.titleService = titleService;
this.renderer2 = renderer2;
this.document = document;
}
_createClass(BlogComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this = this;
this.scullyService.getCurrent().subscribe(function (route) {
_this.post = route;
_this.post.date = _this.blogService.getPostDateFormRoute(_this.post.route);
_this.titleService.setTitle(route.title);
});
var s = this.renderer2.createElement('script');
s.type = 'text/javascript';
s.src = 'https://utteranc.es/client.js';
s.setAttribute('repo', 'thomascsd/thomascsd.github.io');
s.setAttribute('issue-term', 'pathname');
s.setAttribute('theme', 'github-light');
s.setAttribute('crossorigin', 'anonymous');
s.text = "";
this.renderer2.appendChild(this.document.querySelector('#comments'), s);
}
}]);
return BlogComponent;
}();
BlogComponent.ɵfac = function BlogComponent_Factory(t) {
return new (t || BlogComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_scullyio_ng_lib__WEBPACK_IMPORTED_MODULE_2__["ScullyRoutesService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_core_blog_service__WEBPACK_IMPORTED_MODULE_3__["BlogService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__["Title"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]));
};
BlogComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
type: BlogComponent,
selectors: [["app-blog"]],
decls: 30,
vars: 1,
consts: [[3, "title", "postDate", "bgImageUrl", 4, "ngIf"], [1, "container"], [1, "row"], [1, "col-lg-8", "col-lg-offset-2", "col-md-10", "col-md-offset-1"], ["id", "comments"], [3, "title", "postDate", "bgImageUrl"]],
template: function BlogComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, BlogComponent_app_post_header_3_Template, 1, 3, "app-post-header", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "\n\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "article");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "scully-content");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "\n\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "\n ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "\n");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "\n");
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.post);
}
},
directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _scullyio_ng_lib__WEBPACK_IMPORTED_MODULE_2__["ScullyContentComponent"], _shared_post_header_post_header_component__WEBPACK_IMPORTED_MODULE_5__["PostHeaderComponent"]],
styles: ["[_ngcontent-%COMP%]::slotted(h1) {\r\n color:rgb(51, 6, 37);\r\n background-color: rgb(248, 211, 236);\r\n padding: 5px;\r\n border-radius: 5px;\r\n width: -webkit-fit-content;\r\n width: -moz-fit-content;\r\n width: fit-content;\r\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvYmxvZy9ibG9nLmNvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Q0FFQztFQUNDLG9CQUFvQjtFQUNwQixvQ0FBb0M7RUFDcEMsWUFBWTtFQUNaLGtCQUFrQjtFQUNsQiwwQkFBa0I7RUFBbEIsdUJBQWtCO0VBQWxCLGtCQUFrQjtBQUNwQiIsImZpbGUiOiJzcmMvYXBwL2Jsb2cvYmxvZy5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiXHJcblxyXG4gOjpzbG90dGVkKGgxKSAge1xyXG4gIGNvbG9yOnJnYig1MSwgNiwgMzcpO1xyXG4gIGJhY2tncm91bmQtY29sb3I6IHJnYigyNDgsIDIxMSwgMjM2KTtcclxuICBwYWRkaW5nOiA1cHg7XHJcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xyXG4gIHdpZHRoOiBmaXQtY29udGVudDtcclxufVxyXG5cclxuIl19 */"]
});
/*@__PURE__*/
(function () {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BlogComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-blog',
templateUrl: './blog.component.html',
styleUrls: ['./blog.component.css'],
preserveWhitespaces: true
}]
}], function () {
return [{
type: _scullyio_ng_lib__WEBPACK_IMPORTED_MODULE_2__["ScullyRoutesService"]
}, {
type: _core_blog_service__WEBPACK_IMPORTED_MODULE_3__["BlogService"]
}, {
type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__["Title"]
}, {
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
}, {
type: undefined,
decorators: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
}]
}];
}, null);
})();
/***/
},
/***/
"./src/app/blog/blog.module.ts":
/*!*************************************!*\
!*** ./src/app/blog/blog.module.ts ***!
\*************************************/
/*! exports provided: BlogModule */
/***/
function srcAppBlogBlogModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "BlogModule", function () {
return BlogModule;
});
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _scullyio_ng_lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @scullyio/ng-lib */
"./node_modules/@scullyio/ng-lib/__ivy_ngcc__/fesm2015/scullyio-ng-lib.js");
/* harmony import */
var _blog_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./blog-routing.module */
"./src/app/blog/blog-routing.module.ts");
/* harmony import */
var _blog_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./blog.component */
"./src/app/blog/blog.component.ts");
/* harmony import */
var _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../shared/shared.module */
"./src/app/shared/shared.module.ts");
var BlogModule = function BlogModule() {
_classCallCheck(this, BlogModule);
};
BlogModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
type: BlogModule
});
BlogModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
factory: function BlogModule_Factory(t) {
return new (t || BlogModule)();
},
imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _blog_routing_module__WEBPACK_IMPORTED_MODULE_3__["BlogRoutingModule"], _scullyio_ng_lib__WEBPACK_IMPORTED_MODULE_2__["ScullyLibModule"], _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__["SharedModule"]]]
});
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](BlogModule, {
declarations: [_blog_component__WEBPACK_IMPORTED_MODULE_4__["BlogComponent"]],
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _blog_routing_module__WEBPACK_IMPORTED_MODULE_3__["BlogRoutingModule"], _scullyio_ng_lib__WEBPACK_IMPORTED_MODULE_2__["ScullyLibModule"], _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__["SharedModule"]]
});
})();
/*@__PURE__*/
(function () {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BlogModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
args: [{
declarations: [_blog_component__WEBPACK_IMPORTED_MODULE_4__["BlogComponent"]],
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _blog_routing_module__WEBPACK_IMPORTED_MODULE_3__["BlogRoutingModule"], _scullyio_ng_lib__WEBPACK_IMPORTED_MODULE_2__["ScullyLibModule"], _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__["SharedModule"]]
}]
}], null, null);
})();
/***/
}
}]);
//# sourceMappingURL=blog-blog-module-es5.js.map