1 | module.exports =
|
2 | (function(modules) {
|
3 |
|
4 | var installedModules = {};
|
5 |
|
6 |
|
7 | function __webpack_require__(moduleId) {
|
8 |
|
9 |
|
10 | if(installedModules[moduleId]) {
|
11 | return installedModules[moduleId].exports;
|
12 | }
|
13 |
|
14 | var module = installedModules[moduleId] = {
|
15 | i: moduleId,
|
16 | l: false,
|
17 | exports: {}
|
18 | };
|
19 |
|
20 |
|
21 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
22 |
|
23 |
|
24 | module.l = true;
|
25 |
|
26 |
|
27 | return module.exports;
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 | __webpack_require__.m = modules;
|
33 |
|
34 |
|
35 | __webpack_require__.c = installedModules;
|
36 |
|
37 |
|
38 | __webpack_require__.d = function(exports, name, getter) {
|
39 | if(!__webpack_require__.o(exports, name)) {
|
40 | Object.defineProperty(exports, name, {
|
41 | configurable: false,
|
42 | enumerable: true,
|
43 | get: getter
|
44 | /******/ });
|
45 | /******/ }
|
46 | /******/ };
|
47 | /******/
|
48 | /******/ // getDefaultExport function for compatibility with non-harmony modules
|
49 | /******/ __webpack_require__.n = function(module) {
|
50 | var getter = module && module.__esModule ?
|
51 | function getDefault() { return module['default']; } :
|
52 | function getModuleExports() { return module; };
|
53 | __webpack_require__.d(getter, 'a', getter);
|
54 | return getter;
|
55 | };
|
56 |
|
57 |
|
58 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
59 |
|
60 |
|
61 | __webpack_require__.p = "/";
|
62 |
|
63 |
|
64 | return __webpack_require__(__webpack_require__.s = 3);
|
65 | })
|
66 |
|
67 | ([
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | (function(module, exports) {
|
75 |
|
76 | module.exports = require("vue");
|
77 |
|
78 | }),
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 | (function(module, exports) {
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 | module.exports = function normalizeComponent (
|
94 | rawScriptExports,
|
95 | compiledTemplate,
|
96 | functionalTemplate,
|
97 | injectStyles,
|
98 | scopeId,
|
99 | moduleIdentifier /* server only */
|
100 | ) {
|
101 | var esModule
|
102 | var scriptExports = rawScriptExports = rawScriptExports || {}
|
103 |
|
104 |
|
105 | var type = typeof rawScriptExports.default
|
106 | if (type === 'object' || type === 'function') {
|
107 | esModule = rawScriptExports
|
108 | scriptExports = rawScriptExports.default
|
109 | }
|
110 |
|
111 |
|
112 | var options = typeof scriptExports === 'function'
|
113 | ? scriptExports.options
|
114 | : scriptExports
|
115 |
|
116 |
|
117 | if (compiledTemplate) {
|
118 | options.render = compiledTemplate.render
|
119 | options.staticRenderFns = compiledTemplate.staticRenderFns
|
120 | options._compiled = true
|
121 | }
|
122 |
|
123 |
|
124 | if (functionalTemplate) {
|
125 | options.functional = true
|
126 | }
|
127 |
|
128 |
|
129 | if (scopeId) {
|
130 | options._scopeId = scopeId
|
131 | }
|
132 |
|
133 | var hook
|
134 | if (moduleIdentifier) {
|
135 | hook = function (context) {
|
136 |
|
137 | context =
|
138 | context ||
|
139 | (this.$vnode && this.$vnode.ssrContext) ||
|
140 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext)
|
141 |
|
142 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
143 | context = __VUE_SSR_CONTEXT__
|
144 | }
|
145 |
|
146 | if (injectStyles) {
|
147 | injectStyles.call(this, context)
|
148 | }
|
149 |
|
150 | if (context && context._registeredComponents) {
|
151 | context._registeredComponents.add(moduleIdentifier)
|
152 | }
|
153 | }
|
154 |
|
155 |
|
156 | options._ssrRegister = hook
|
157 | } else if (injectStyles) {
|
158 | hook = injectStyles
|
159 | }
|
160 |
|
161 | if (hook) {
|
162 | var functional = options.functional
|
163 | var existing = functional
|
164 | ? options.render
|
165 | : options.beforeCreate
|
166 |
|
167 | if (!functional) {
|
168 |
|
169 | options.beforeCreate = existing
|
170 | ? [].concat(existing, hook)
|
171 | : [hook]
|
172 | } else {
|
173 |
|
174 |
|
175 | options._injectStyles = hook
|
176 |
|
177 | options.render = function renderWithStyleInjection (h, context) {
|
178 | hook.call(context)
|
179 | return existing(h, context)
|
180 | }
|
181 | }
|
182 | }
|
183 |
|
184 | return {
|
185 | esModule: esModule,
|
186 | exports: scriptExports,
|
187 | options: options
|
188 | }
|
189 | }
|
190 |
|
191 |
|
192 | }),
|
193 |
|
194 |
|
195 |
|
196 |
|
197 |
|
198 |
|
199 | (function(module, exports) {
|
200 |
|
201 | module.exports = require("babel-helper-vue-jsx-merge-props");
|
202 |
|
203 | }),
|
204 |
|
205 |
|
206 |
|
207 |
|
208 |
|
209 |
|
210 | (function(module, exports, __webpack_require__) {
|
211 |
|
212 | module.exports = __webpack_require__(4);
|
213 |
|
214 |
|
215 | }),
|
216 |
|
217 |
|
218 |
|
219 |
|
220 |
|
221 |
|
222 | (function(module, __webpack_exports__, __webpack_require__) {
|
223 |
|
224 | "use strict";
|
225 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
226 | var __WEBPACK_IMPORTED_MODULE_0__polyfills__ = __webpack_require__( 5);
|
227 | var __WEBPACK_IMPORTED_MODULE_0__polyfills___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__polyfills__);
|
228 | var __WEBPACK_IMPORTED_MODULE_1_vue__ = __webpack_require__( 0);
|
229 | var __WEBPACK_IMPORTED_MODULE_1_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_vue__);
|
230 | var __WEBPACK_IMPORTED_MODULE_2_slugo__ = __webpack_require__( 7);
|
231 | var __WEBPACK_IMPORTED_MODULE_2_slugo___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_slugo__);
|
232 | var __WEBPACK_IMPORTED_MODULE_3__AimerVue__ = __webpack_require__( 8);
|
233 | var __WEBPACK_IMPORTED_MODULE_4__Aimer_vue__ = __webpack_require__( 9);
|
234 | var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
235 |
|
236 | function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
237 |
|
238 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 | window.AIMER_VERSION = "2.0.0";
|
248 |
|
249 | var Aimer = function () {
|
250 | function Aimer() {
|
251 | var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
252 |
|
253 | var _ref$adapter = _ref.adapter,
|
254 | Adapter = _ref$adapter === undefined ? __WEBPACK_IMPORTED_MODULE_3__AimerVue__["a" ] : _ref$adapter,
|
255 | config = _objectWithoutProperties(_ref, ['adapter']);
|
256 |
|
257 | _classCallCheck(this, Aimer);
|
258 |
|
259 | this.adapter = new Adapter();
|
260 | this.stories = [];
|
261 | this.config = config;
|
262 | }
|
263 |
|
264 | _createClass(Aimer, [{
|
265 | key: 'add',
|
266 | value: function add(story) {
|
267 | this.stories.push(Object.assign({}, story, {
|
268 | slug: __WEBPACK_IMPORTED_MODULE_2_slugo___default()(story.title)
|
269 | }));
|
270 | return this;
|
271 | }
|
272 | }, {
|
273 | key: 'start',
|
274 | value: function start(target) {
|
275 | var _this = this;
|
276 |
|
277 | if (typeof target === 'string') {
|
278 | target = document.querySelector(target);
|
279 | }
|
280 |
|
281 | this.vm = new __WEBPACK_IMPORTED_MODULE_1_vue___default.a({
|
282 | el: target,
|
283 | render: function render(h) {
|
284 | return h(__WEBPACK_IMPORTED_MODULE_4__Aimer_vue__["a" ], {
|
285 | props: {
|
286 | adapter: _this.adapter,
|
287 | stories: _this.stories,
|
288 | config: _this.config
|
289 | }
|
290 | });
|
291 | }
|
292 | });
|
293 |
|
294 | return this.vm;
|
295 | }
|
296 | }]);
|
297 |
|
298 | return Aimer;
|
299 | }();
|
300 |
|
301 | __webpack_exports__["default"] = (Aimer);
|
302 |
|
303 | }),
|
304 |
|
305 |
|
306 |
|
307 |
|
308 |
|
309 | (function(module, exports, __webpack_require__) {
|
310 |
|
311 | Object.assign = Object.assign || __webpack_require__( 6);
|
312 |
|
313 | }),
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 |
|
320 | (function(module, exports) {
|
321 |
|
322 | module.exports = require("nano-assign");
|
323 |
|
324 | }),
|
325 |
|
326 |
|
327 |
|
328 |
|
329 |
|
330 |
|
331 | (function(module, exports) {
|
332 |
|
333 | module.exports = require("slugo");
|
334 |
|
335 | }),
|
336 |
|
337 |
|
338 |
|
339 |
|
340 |
|
341 |
|
342 | (function(module, __webpack_exports__, __webpack_require__) {
|
343 |
|
344 | "use strict";
|
345 | var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__( 0);
|
346 | var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
|
347 | var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
348 |
|
349 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
350 |
|
351 |
|
352 |
|
353 | var AimerVue = function () {
|
354 | function AimerVue() {
|
355 | _classCallCheck(this, AimerVue);
|
356 | }
|
357 |
|
358 | _createClass(AimerVue, [{
|
359 | key: 'mount',
|
360 | value: function mount(component, target) {
|
361 | this.$el = new __WEBPACK_IMPORTED_MODULE_0_vue___default.a({
|
362 | el: target,
|
363 | render: function render(h) {
|
364 | return h(component);
|
365 | }
|
366 | });
|
367 | return this;
|
368 | }
|
369 | }, {
|
370 | key: 'unmount',
|
371 | value: function unmount() {
|
372 | this.$el.$destroy();
|
373 | return this;
|
374 | }
|
375 | }, {
|
376 | key: 'isMount',
|
377 | value: function isMount() {
|
378 | return this.$el;
|
379 | }
|
380 | }]);
|
381 |
|
382 | return AimerVue;
|
383 | }();
|
384 |
|
385 | __webpack_exports__["a"] = (AimerVue);
|
386 |
|
387 | }),
|
388 |
|
389 |
|
390 |
|
391 |
|
392 |
|
393 |
|
394 | (function(module, __webpack_exports__, __webpack_require__) {
|
395 |
|
396 | "use strict";
|
397 | var __WEBPACK_IMPORTED_MODULE_0__babel_loader_cacheDirectory_true_babelrc_false_presets_Users_egoist_dev_aimer_packages_aimer_node_modules_babel_preset_vue_app_dist_index_common_js_useBuiltIns_true_node_modules_vue_loader_lib_selector_type_script_index_0_Aimer_vue__ = __webpack_require__( 12);
|
398 | var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_96d8ad28_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Aimer_vue__ = __webpack_require__( 20);
|
399 | function injectStyle (ssrContext) {
|
400 | __webpack_require__( 10)
|
401 | __webpack_require__( 11)
|
402 | }
|
403 | var normalizeComponent = __webpack_require__( 1)
|
404 |
|
405 |
|
406 |
|
407 |
|
408 |
|
409 | var __vue_template_functional__ = false
|
410 |
|
411 | var __vue_styles__ = injectStyle
|
412 |
|
413 | var __vue_scopeId__ = null
|
414 |
|
415 | var __vue_module_identifier__ = null
|
416 | var Component = normalizeComponent(
|
417 | __WEBPACK_IMPORTED_MODULE_0__babel_loader_cacheDirectory_true_babelrc_false_presets_Users_egoist_dev_aimer_packages_aimer_node_modules_babel_preset_vue_app_dist_index_common_js_useBuiltIns_true_node_modules_vue_loader_lib_selector_type_script_index_0_Aimer_vue__["a" ],
|
418 | __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_96d8ad28_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Aimer_vue__["a" ],
|
419 | __vue_template_functional__,
|
420 | __vue_styles__,
|
421 | __vue_scopeId__,
|
422 | __vue_module_identifier__
|
423 | )
|
424 |
|
425 | __webpack_exports__["a"] = (Component.exports);
|
426 |
|
427 |
|
428 | }),
|
429 |
|
430 |
|
431 |
|
432 |
|
433 |
|
434 |
|
435 | (function(module, exports) {
|
436 |
|
437 |
|
438 |
|
439 | }),
|
440 |
|
441 |
|
442 |
|
443 |
|
444 |
|
445 |
|
446 | (function(module, exports) {
|
447 |
|
448 |
|
449 |
|
450 | }),
|
451 |
|
452 |
|
453 |
|
454 |
|
455 |
|
456 |
|
457 | (function(module, __webpack_exports__, __webpack_require__) {
|
458 |
|
459 | "use strict";
|
460 | var __WEBPACK_IMPORTED_MODULE_0_nanoquery__ = __webpack_require__( 13);
|
461 | var __WEBPACK_IMPORTED_MODULE_0_nanoquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_nanoquery__);
|
462 | var __WEBPACK_IMPORTED_MODULE_1__components_Icons_vue__ = __webpack_require__( 14);
|
463 |
|
464 |
|
465 |
|
466 |
|
467 |
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 |
|
474 |
|
475 |
|
476 |
|
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 |
|
488 |
|
489 |
|
490 |
|
491 |
|
492 |
|
493 |
|
494 |
|
495 |
|
496 |
|
497 |
|
498 |
|
499 |
|
500 |
|
501 |
|
502 |
|
503 |
|
504 |
|
505 |
|
506 |
|
507 |
|
508 |
|
509 |
|
510 |
|
511 |
|
512 |
|
513 |
|
514 |
|
515 |
|
516 |
|
517 |
|
518 |
|
519 |
|
520 |
|
521 |
|
522 |
|
523 |
|
524 |
|
525 |
|
526 |
|
527 |
|
528 |
|
529 |
|
530 | function getCurrentTab(_ref) {
|
531 | var readme = _ref.readme;
|
532 |
|
533 | return readme ? 'readme' : 'example';
|
534 | }
|
535 |
|
536 | function updateURL(_ref2) {
|
537 | var title = _ref2.title,
|
538 | story = _ref2.story;
|
539 | var _window$location = window.location,
|
540 | host = _window$location.host,
|
541 | protocol = _window$location.protocol,
|
542 | pathname = _window$location.pathname;
|
543 |
|
544 | var newUrl = protocol + '//' + host + pathname + '?story=' + story;
|
545 |
|
546 | window.history.pushState({
|
547 | path: newUrl
|
548 | }, title, newUrl);
|
549 |
|
550 | document.title = title;
|
551 | }
|
552 |
|
553 | __webpack_exports__["a"] = ({
|
554 | name: 'aimer',
|
555 |
|
556 | props: {
|
557 | adapter: {
|
558 | type: Object,
|
559 | required: true
|
560 | },
|
561 | stories: {
|
562 | type: Array,
|
563 | required: true
|
564 | },
|
565 | config: {
|
566 | type: Object
|
567 | }
|
568 | },
|
569 |
|
570 | data: function data() {
|
571 | var kv = __WEBPACK_IMPORTED_MODULE_0_nanoquery___default()(window.location.search);
|
572 | return {
|
573 | currentTab: getCurrentTab(this.stories[0]),
|
574 | currentStorySlug: kv.story || this.stories[0].slug
|
575 | };
|
576 | },
|
577 |
|
578 |
|
579 | computed: {
|
580 | currentStory: function currentStory() {
|
581 | var _this = this;
|
582 |
|
583 | return this.stories.filter(function (story) {
|
584 | return story.slug === _this.currentStorySlug;
|
585 | })[0];
|
586 | }
|
587 | },
|
588 |
|
589 | watch: {
|
590 | currentStory: function currentStory(story) {
|
591 | this.currentTab = getCurrentTab(story);
|
592 | }
|
593 | },
|
594 |
|
595 | mounted: function mounted() {
|
596 | this.handleRender();
|
597 | },
|
598 |
|
599 |
|
600 | methods: {
|
601 | handleRender: function handleRender() {
|
602 | var targetWrapper = this.$refs.targetWrapper;
|
603 |
|
604 | if (this.adapter.isMount()) {
|
605 | this.adapter.unmount(targetWrapper.firstChild);
|
606 | targetWrapper.removeChild(targetWrapper.firstChild);
|
607 | }
|
608 | var target = document.createElement('div');
|
609 | targetWrapper.appendChild(target);
|
610 | var component = this.currentStory.component;
|
611 |
|
612 | component = typeof component === 'function' ? component() : component;
|
613 | this.adapter.mount(component, target);
|
614 |
|
615 | updateURL({
|
616 | title: this.currentStory.title + ' - ' + (this.config.title || 'Aimer'),
|
617 | story: this.currentStory.slug
|
618 | });
|
619 | },
|
620 | chooseTab: function chooseTab(tab) {
|
621 | this.currentTab = tab;
|
622 | }
|
623 | },
|
624 |
|
625 | components: {
|
626 | Icons: __WEBPACK_IMPORTED_MODULE_1__components_Icons_vue__["a" ]
|
627 | }
|
628 | });
|
629 |
|
630 | }),
|
631 |
|
632 |
|
633 |
|
634 |
|
635 |
|
636 |
|
637 | (function(module, exports) {
|
638 |
|
639 | module.exports = require("nanoquery");
|
640 |
|
641 | }),
|
642 |
|
643 |
|
644 |
|
645 |
|
646 |
|
647 |
|
648 | (function(module, __webpack_exports__, __webpack_require__) {
|
649 |
|
650 | "use strict";
|
651 | var __WEBPACK_IMPORTED_MODULE_0__babel_loader_cacheDirectory_true_babelrc_false_presets_Users_egoist_dev_aimer_packages_aimer_node_modules_babel_preset_vue_app_dist_index_common_js_useBuiltIns_true_node_modules_vue_loader_lib_selector_type_script_index_0_Icons_vue__ = __webpack_require__( 16);
|
652 | var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_15140f52_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Icons_vue__ = __webpack_require__( 19);
|
653 | function injectStyle (ssrContext) {
|
654 | __webpack_require__( 15)
|
655 | }
|
656 | var normalizeComponent = __webpack_require__( 1)
|
657 |
|
658 |
|
659 |
|
660 |
|
661 |
|
662 | var __vue_template_functional__ = false
|
663 |
|
664 | var __vue_styles__ = injectStyle
|
665 |
|
666 | var __vue_scopeId__ = null
|
667 |
|
668 | var __vue_module_identifier__ = null
|
669 | var Component = normalizeComponent(
|
670 | __WEBPACK_IMPORTED_MODULE_0__babel_loader_cacheDirectory_true_babelrc_false_presets_Users_egoist_dev_aimer_packages_aimer_node_modules_babel_preset_vue_app_dist_index_common_js_useBuiltIns_true_node_modules_vue_loader_lib_selector_type_script_index_0_Icons_vue__["a" ],
|
671 | __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_15140f52_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Icons_vue__["a" ],
|
672 | __vue_template_functional__,
|
673 | __vue_styles__,
|
674 | __vue_scopeId__,
|
675 | __vue_module_identifier__
|
676 | )
|
677 |
|
678 | __webpack_exports__["a"] = (Component.exports);
|
679 |
|
680 |
|
681 | }),
|
682 |
|
683 |
|
684 |
|
685 |
|
686 |
|
687 |
|
688 | (function(module, exports) {
|
689 |
|
690 |
|
691 |
|
692 | }),
|
693 |
|
694 |
|
695 |
|
696 |
|
697 |
|
698 |
|
699 | (function(module, __webpack_exports__, __webpack_require__) {
|
700 |
|
701 | "use strict";
|
702 | var __WEBPACK_IMPORTED_MODULE_0__svg_to_component_loader_svg_github_svg__ = __webpack_require__( 17);
|
703 | var __WEBPACK_IMPORTED_MODULE_1__svg_to_component_loader_svg_twitter_svg__ = __webpack_require__( 18);
|
704 |
|
705 |
|
706 |
|
707 |
|
708 |
|
709 |
|
710 |
|
711 |
|
712 |
|
713 |
|
714 |
|
715 |
|
716 |
|
717 |
|
718 |
|
719 | __webpack_exports__["a"] = ({
|
720 | props: {
|
721 | github: String,
|
722 | twitter: String
|
723 | },
|
724 |
|
725 | methods: {
|
726 | getUrl: function getUrl(url, domain) {
|
727 | return (/^https?:/.test(url) ? url : 'https://' + domain + '/' + url
|
728 | );
|
729 | }
|
730 | },
|
731 |
|
732 | components: {
|
733 | GitHub: __WEBPACK_IMPORTED_MODULE_0__svg_to_component_loader_svg_github_svg__["a" ],
|
734 | Twitter: __WEBPACK_IMPORTED_MODULE_1__svg_to_component_loader_svg_twitter_svg__["a" ]
|
735 | }
|
736 | });
|
737 |
|
738 | }),
|
739 |
|
740 |
|
741 |
|
742 |
|
743 |
|
744 |
|
745 | (function(module, __webpack_exports__, __webpack_require__) {
|
746 |
|
747 | "use strict";
|
748 | var __WEBPACK_IMPORTED_MODULE_0_babel_helper_vue_jsx_merge_props__ = __webpack_require__( 2);
|
749 | var __WEBPACK_IMPORTED_MODULE_0_babel_helper_vue_jsx_merge_props___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_helper_vue_jsx_merge_props__);
|
750 |
|
751 | __webpack_exports__["a"] = ({
|
752 | name: 'Github',
|
753 | functional: true,
|
754 | render: function (h, ctx) {
|
755 | return h(
|
756 | "svg",
|
757 | __WEBPACK_IMPORTED_MODULE_0_babel_helper_vue_jsx_merge_props___default()([{
|
758 | attrs: { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" },
|
759 | "class": "feather feather-github" }, ctx.data]),
|
760 | [h(
|
761 | "path",
|
762 | {
|
763 | attrs: { d: "M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22" }
|
764 | },
|
765 | []
|
766 | )]
|
767 | );
|
768 | }
|
769 | });
|
770 |
|
771 | }),
|
772 |
|
773 |
|
774 |
|
775 |
|
776 |
|
777 |
|
778 | (function(module, __webpack_exports__, __webpack_require__) {
|
779 |
|
780 | "use strict";
|
781 | var __WEBPACK_IMPORTED_MODULE_0_babel_helper_vue_jsx_merge_props__ = __webpack_require__( 2);
|
782 | var __WEBPACK_IMPORTED_MODULE_0_babel_helper_vue_jsx_merge_props___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_helper_vue_jsx_merge_props__);
|
783 |
|
784 | __webpack_exports__["a"] = ({
|
785 | name: 'Twitter',
|
786 | functional: true,
|
787 | render: function (h, ctx) {
|
788 | return h(
|
789 | "svg",
|
790 | __WEBPACK_IMPORTED_MODULE_0_babel_helper_vue_jsx_merge_props___default()([{
|
791 | attrs: { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" },
|
792 | "class": "feather feather-twitter" }, ctx.data]),
|
793 | [h(
|
794 | "path",
|
795 | {
|
796 | attrs: { d: "M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z" }
|
797 | },
|
798 | []
|
799 | )]
|
800 | );
|
801 | }
|
802 | });
|
803 |
|
804 | }),
|
805 |
|
806 |
|
807 |
|
808 |
|
809 |
|
810 |
|
811 | (function(module, __webpack_exports__, __webpack_require__) {
|
812 |
|
813 | "use strict";
|
814 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"aimer-icons"},[(_vm.github)?_c('a',{staticClass:"aimer-icon",attrs:{"target":"_blank","href":_vm.getUrl(_vm.github, 'github.com')}},[_c('git-hub')],1):_vm._e(),_vm._v(" "),(_vm.twitter)?_c('a',{staticClass:"aimer-icon",attrs:{"target":"_blank","href":_vm.getUrl(_vm.twitter, 'twitter.com')}},[_c('twitter')],1):_vm._e()])}
|
815 | var staticRenderFns = []
|
816 | var esExports = { render: render, staticRenderFns: staticRenderFns }
|
817 | __webpack_exports__["a"] = (esExports);
|
818 |
|
819 | }),
|
820 |
|
821 |
|
822 |
|
823 |
|
824 |
|
825 |
|
826 | (function(module, __webpack_exports__, __webpack_require__) {
|
827 |
|
828 | "use strict";
|
829 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"aimer"}},[_c('header',{staticClass:"aimer-header"},[_c('div',{staticClass:"aimer-header__left"},[(!_vm.config.title)?_c('a',{attrs:{"href":"https://github.com/egoist/aimer","target":"_blank"}},[_c('h1',{staticClass:"aimer-brand"},[_vm._v("\n Aimer\n ")])]):_c('h1',{staticClass:"aimer-title"},[_c('a',{attrs:{"href":"./"}},[_vm._v(_vm._s(_vm.config.title))])]),_vm._v(" "),_c('select',{directives:[{name:"model",rawName:"v-model",value:(_vm.currentStorySlug),expression:"currentStorySlug"}],on:{"change":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.currentStorySlug=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.handleRender]}},_vm._l((_vm.stories),function(story,index){return _c('option',{key:story.title,domProps:{"value":story.slug}},[_vm._v("\n "+_vm._s(story.title)+"\n ")])}))]),_vm._v(" "),_c('div',{staticClass:"aimer-header__right"},[_c('icons',{attrs:{"github":_vm.config.github,"twitter":_vm.config.twitter}})],1)]),_vm._v(" "),_c('section',{staticClass:"aimer-main"},[_c('div',{staticClass:"aimer-cell aimer-component"},[_c('div',{ref:"targetWrapper",staticClass:"aimer-target-wrapper"})]),_vm._v(" "),(_vm.currentStory.example)?_c('div',{staticClass:"aimer-cell aimer-tabs"},[_c('div',{staticClass:"aimer-tab-headers"},[(_vm.currentStory.readme)?_c('div',{staticClass:"aimer-tab-header",class:{'aimer-tab-header__active': _vm.currentTab === 'readme'},on:{"click":function($event){_vm.chooseTab('readme')}}},[_vm._v("\n README\n ")]):_vm._e(),_vm._v(" "),(_vm.currentStory.example)?_c('div',{staticClass:"aimer-tab-header",class:{'aimer-tab-header__active': _vm.currentTab === 'example'},on:{"click":function($event){_vm.chooseTab('example')}}},[_vm._v("\n Example\n ")]):_vm._e()]),_vm._v(" "),(_vm.currentStory.readme && _vm.currentTab === 'readme')?_c('div',{staticClass:"aimer-tab-readme markdown-body",domProps:{"innerHTML":_vm._s(_vm.currentStory.readme)}}):_vm._e(),_vm._v(" "),(_vm.currentStory.example && _vm.currentTab === 'example')?_c('div',{staticClass:"aimer-tab-example"},[_c('pre',[_c('code',[_vm._v(_vm._s(_vm.currentStory.example))])])]):_vm._e()]):_vm._e()])])}
|
830 | var staticRenderFns = []
|
831 | var esExports = { render: render, staticRenderFns: staticRenderFns }
|
832 | __webpack_exports__["a"] = (esExports);
|
833 |
|
834 | })
|
835 | ]); |
\ | No newline at end of file |