Skip to content

Commit c39d745

Browse files
committed
Yarn'd after including alert.js
1 parent 10a7ba8 commit c39d745

File tree

8 files changed

+51932
-531
lines changed

8 files changed

+51932
-531
lines changed

public/build/css/admin.css

+582-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/css/app.css

+12,192-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/js/admin.js

+26,611-473
Large diffs are not rendered by default.

public/build/js/app.js

+1,987-28
Large diffs are not rendered by default.

public/build/js/common.js

+10,251-9
Large diffs are not rendered by default.

public/build/js/login.js

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
webpackJsonp([6],{nxx7:/*!****************************!*\
2-
!*** ./assets/js/login.js ***!
3-
\****************************/
4-
function(n,a,l){(function(n){n(function(){var a=n("#username"),l=n("#password");a.val()||l.val()||(a.val("jane_admin"),l.val("kitten"))})}).call(a,l(/*! jquery */"7t+N"))}},["nxx7"]);
1+
webpackJsonp([6],{
2+
3+
/***/ "./assets/js/login.js":
4+
/***/ (function(module, exports, __webpack_require__) {
5+
6+
/* WEBPACK VAR INJECTION */(function($) {$(function () {
7+
var usernameEl = $('#username');
8+
var passwordEl = $('#password');
9+
10+
// in a real application, hardcoding the user/password would be idiotic
11+
// but for the demo application it's very convenient to do so
12+
if (!usernameEl.val() && !passwordEl.val()) {
13+
usernameEl.val('jane_admin');
14+
passwordEl.val('kitten');
15+
}
16+
});
17+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/jquery/dist/jquery.js")))
18+
19+
/***/ })
20+
21+
},["./assets/js/login.js"]);

public/build/js/search.js

+135-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,135 @@
1-
webpackJsonp([5],{"0It5":/*!*****************************!*\
2-
!*** ./assets/js/search.js ***!
3-
\*****************************/
4-
function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){var e=n(/*! ./jquery.instantSearch.js */"hxDt");n.n(e);t(function(){t(".search-field").instantSearch({delay:100})})}.call(e,n(/*! jquery */"7t+N"))},hxDt:/*!*******************************************!*\
5-
!*** ./assets/js/jquery.instantSearch.js ***!
6-
\*******************************************/
7-
function(t,e,n){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"use strict";function n(n){return this.each(function(){var s=t(this),a=s.data("instantSearch"),o="object"===(void 0===n?"undefined":e(n))&&n;a||s.data("instantSearch",a=new i(this,o)),"search"===n&&a.search()})}String.prototype.render=function(t){return this.replace(/({{ (\w+) }})/g,function(e,n,i){return t[i]})};var i=function e(n,i){this.$input=t(n),this.$form=this.$input.closest("form"),this.$preview=t('<ul class="search-preview list-group">').appendTo(this.$form),this.options=t.extend({},e.DEFAULTS,this.$input.data(),i),this.$input.keyup(this.debounce())};i.DEFAULTS={minQueryLength:2,limit:10,delay:500,noResultsMessage:"No results found",itemTemplate:' <article class="post"> <h2><a href="{{ url }}">{{ title }}</a></h2> <p class="post-metadata"> <span class="metadata"><i class="fa fa-calendar"></i> {{ date }}</span> <span class="metadata"><i class="fa fa-user"></i> {{ author }}</span> </p> <p>{{ summary }}</p> </article>'},i.prototype.debounce=function(){var t=this.options.delay,e=this.search,n=null,i=this;return function(){clearTimeout(n),n=setTimeout(function(){e.apply(i)},t)}},i.prototype.search=function(){if(t.trim(this.$input.val()).replace(/\s{2,}/g," ").length<this.options.minQueryLength)return void this.$preview.empty();var e=this,n=this.$form.serializeArray();n.l=this.limit,t.getJSON(this.$form.attr("action"),n,function(t){e.show(t)})},i.prototype.show=function(e){var n=this.$preview,i=this.options.itemTemplate;0===e.length?n.html(this.options.noResultsMessage):(n.empty(),t.each(e,function(t,e){n.append(i.render(e))}))},t.fn.instantSearch=n,t.fn.instantSearch.Constructor=i}(t)}).call(e,n(/*! jquery */"7t+N"))}},["0It5"]);
1+
webpackJsonp([5],{
2+
3+
/***/ "./assets/js/jquery.instantSearch.js":
4+
/***/ (function(module, exports, __webpack_require__) {
5+
6+
/* WEBPACK VAR INJECTION */(function(__webpack_provided_window_dot_jQuery) {var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
7+
8+
/**
9+
* jQuery plugin for an instant searching.
10+
*
11+
* @author Oleg Voronkovich <[email protected]>
12+
* @author Yonel Ceruto <[email protected]>
13+
*/
14+
(function ($) {
15+
'use strict';
16+
17+
String.prototype.render = function (parameters) {
18+
return this.replace(/({{ (\w+) }})/g, function (match, pattern, name) {
19+
return parameters[name];
20+
});
21+
};
22+
23+
// INSTANTS SEARCH PUBLIC CLASS DEFINITION
24+
// =======================================
25+
26+
var InstantSearch = function InstantSearch(element, options) {
27+
this.$input = $(element);
28+
this.$form = this.$input.closest('form');
29+
this.$preview = $('<ul class="search-preview list-group">').appendTo(this.$form);
30+
this.options = $.extend({}, InstantSearch.DEFAULTS, this.$input.data(), options);
31+
32+
this.$input.keyup(this.debounce());
33+
};
34+
35+
InstantSearch.DEFAULTS = {
36+
minQueryLength: 2,
37+
limit: 10,
38+
delay: 500,
39+
noResultsMessage: 'No results found',
40+
itemTemplate: '\
41+
<article class="post">\
42+
<h2><a href="{{ url }}">{{ title }}</a></h2>\
43+
<p class="post-metadata">\
44+
<span class="metadata"><i class="fa fa-calendar"></i> {{ date }}</span>\
45+
<span class="metadata"><i class="fa fa-user"></i> {{ author }}</span>\
46+
</p>\
47+
<p>{{ summary }}</p>\
48+
</article>'
49+
};
50+
51+
InstantSearch.prototype.debounce = function () {
52+
var delay = this.options.delay;
53+
var search = this.search;
54+
var timer = null;
55+
var self = this;
56+
57+
return function () {
58+
clearTimeout(timer);
59+
timer = setTimeout(function () {
60+
search.apply(self);
61+
}, delay);
62+
};
63+
};
64+
65+
InstantSearch.prototype.search = function () {
66+
var query = $.trim(this.$input.val()).replace(/\s{2,}/g, ' ');
67+
if (query.length < this.options.minQueryLength) {
68+
this.$preview.empty();
69+
return;
70+
}
71+
72+
var self = this;
73+
var data = this.$form.serializeArray();
74+
data['l'] = this.limit;
75+
76+
$.getJSON(this.$form.attr('action'), data, function (items) {
77+
self.show(items);
78+
});
79+
};
80+
81+
InstantSearch.prototype.show = function (items) {
82+
var $preview = this.$preview;
83+
var itemTemplate = this.options.itemTemplate;
84+
85+
if (0 === items.length) {
86+
$preview.html(this.options.noResultsMessage);
87+
} else {
88+
$preview.empty();
89+
$.each(items, function (index, item) {
90+
$preview.append(itemTemplate.render(item));
91+
});
92+
}
93+
};
94+
95+
// INSTANTS SEARCH PLUGIN DEFINITION
96+
// =================================
97+
98+
function Plugin(option) {
99+
return this.each(function () {
100+
var $this = $(this);
101+
var instance = $this.data('instantSearch');
102+
var options = (typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object' && option;
103+
104+
if (!instance) $this.data('instantSearch', instance = new InstantSearch(this, options));
105+
106+
if (option === 'search') instance.search();
107+
});
108+
}
109+
110+
$.fn.instantSearch = Plugin;
111+
$.fn.instantSearch.Constructor = InstantSearch;
112+
})(__webpack_provided_window_dot_jQuery);
113+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/jquery/dist/jquery.js")))
114+
115+
/***/ }),
116+
117+
/***/ "./assets/js/search.js":
118+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
119+
120+
"use strict";
121+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
122+
/* WEBPACK VAR INJECTION */(function($) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jquery_instantSearch_js__ = __webpack_require__("./assets/js/jquery.instantSearch.js");
123+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jquery_instantSearch_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__jquery_instantSearch_js__);
124+
125+
126+
$(function () {
127+
$('.search-field').instantSearch({
128+
delay: 100
129+
});
130+
});
131+
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__("./node_modules/jquery/dist/jquery.js")))
132+
133+
/***/ })
134+
135+
},["./assets/js/search.js"]);

public/build/manifest.js

+153-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,153 @@
1-
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,u,i){for(var c,a,f,l=0,s=[];l<t.length;l++)a=t[l],o[a]&&s.push(o[a][0]),o[a]=0;for(c in u)Object.prototype.hasOwnProperty.call(u,c)&&(e[c]=u[c]);for(r&&r(t,u,i);s.length;)s.shift()();if(i)for(l=0;l<i.length;l++)f=n(n.s=i[l]);return f};var t={},o={7:0};n.e=function(e){function r(){c.onerror=c.onload=null,clearTimeout(a);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var u=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=u;var i=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,n.nc&&c.setAttribute("nonce",n.nc),c.src=n.p+""+e+".js";var a=setTimeout(r,12e4);return c.onerror=c.onload=r,i.appendChild(c),u},n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="/build/",n.oe=function(e){throw console.error(e),e}}([]);
1+
/******/ (function(modules) { // webpackBootstrap
2+
/******/ // install a JSONP callback for chunk loading
3+
/******/ var parentJsonpFunction = window["webpackJsonp"];
4+
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {
5+
/******/ // add "moreModules" to the modules object,
6+
/******/ // then flag all "chunkIds" as loaded and fire callback
7+
/******/ var moduleId, chunkId, i = 0, resolves = [], result;
8+
/******/ for(;i < chunkIds.length; i++) {
9+
/******/ chunkId = chunkIds[i];
10+
/******/ if(installedChunks[chunkId]) {
11+
/******/ resolves.push(installedChunks[chunkId][0]);
12+
/******/ }
13+
/******/ installedChunks[chunkId] = 0;
14+
/******/ }
15+
/******/ for(moduleId in moreModules) {
16+
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
17+
/******/ modules[moduleId] = moreModules[moduleId];
18+
/******/ }
19+
/******/ }
20+
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);
21+
/******/ while(resolves.length) {
22+
/******/ resolves.shift()();
23+
/******/ }
24+
/******/ if(executeModules) {
25+
/******/ for(i=0; i < executeModules.length; i++) {
26+
/******/ result = __webpack_require__(__webpack_require__.s = executeModules[i]);
27+
/******/ }
28+
/******/ }
29+
/******/ return result;
30+
/******/ };
31+
/******/
32+
/******/ // The module cache
33+
/******/ var installedModules = {};
34+
/******/
35+
/******/ // objects to store loaded and loading chunks
36+
/******/ var installedChunks = {
37+
/******/ 7: 0
38+
/******/ };
39+
/******/
40+
/******/ // The require function
41+
/******/ function __webpack_require__(moduleId) {
42+
/******/
43+
/******/ // Check if module is in cache
44+
/******/ if(installedModules[moduleId]) {
45+
/******/ return installedModules[moduleId].exports;
46+
/******/ }
47+
/******/ // Create a new module (and put it into the cache)
48+
/******/ var module = installedModules[moduleId] = {
49+
/******/ i: moduleId,
50+
/******/ l: false,
51+
/******/ exports: {}
52+
/******/ };
53+
/******/
54+
/******/ // Execute the module function
55+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
56+
/******/
57+
/******/ // Flag the module as loaded
58+
/******/ module.l = true;
59+
/******/
60+
/******/ // Return the exports of the module
61+
/******/ return module.exports;
62+
/******/ }
63+
/******/
64+
/******/ // This file contains only the entry chunk.
65+
/******/ // The chunk loading function for additional chunks
66+
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
67+
/******/ var installedChunkData = installedChunks[chunkId];
68+
/******/ if(installedChunkData === 0) {
69+
/******/ return new Promise(function(resolve) { resolve(); });
70+
/******/ }
71+
/******/
72+
/******/ // a Promise means "currently loading".
73+
/******/ if(installedChunkData) {
74+
/******/ return installedChunkData[2];
75+
/******/ }
76+
/******/
77+
/******/ // setup Promise in chunk cache
78+
/******/ var promise = new Promise(function(resolve, reject) {
79+
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
80+
/******/ });
81+
/******/ installedChunkData[2] = promise;
82+
/******/
83+
/******/ // start chunk loading
84+
/******/ var head = document.getElementsByTagName('head')[0];
85+
/******/ var script = document.createElement('script');
86+
/******/ script.type = 'text/javascript';
87+
/******/ script.charset = 'utf-8';
88+
/******/ script.async = true;
89+
/******/ script.timeout = 120000;
90+
/******/
91+
/******/ if (__webpack_require__.nc) {
92+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
93+
/******/ }
94+
/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
95+
/******/ var timeout = setTimeout(onScriptComplete, 120000);
96+
/******/ script.onerror = script.onload = onScriptComplete;
97+
/******/ function onScriptComplete() {
98+
/******/ // avoid mem leaks in IE.
99+
/******/ script.onerror = script.onload = null;
100+
/******/ clearTimeout(timeout);
101+
/******/ var chunk = installedChunks[chunkId];
102+
/******/ if(chunk !== 0) {
103+
/******/ if(chunk) {
104+
/******/ chunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));
105+
/******/ }
106+
/******/ installedChunks[chunkId] = undefined;
107+
/******/ }
108+
/******/ };
109+
/******/ head.appendChild(script);
110+
/******/
111+
/******/ return promise;
112+
/******/ };
113+
/******/
114+
/******/ // expose the modules object (__webpack_modules__)
115+
/******/ __webpack_require__.m = modules;
116+
/******/
117+
/******/ // expose the module cache
118+
/******/ __webpack_require__.c = installedModules;
119+
/******/
120+
/******/ // identity function for calling harmony imports with the correct context
121+
/******/ __webpack_require__.i = function(value) { return value; };
122+
/******/
123+
/******/ // define getter function for harmony exports
124+
/******/ __webpack_require__.d = function(exports, name, getter) {
125+
/******/ if(!__webpack_require__.o(exports, name)) {
126+
/******/ Object.defineProperty(exports, name, {
127+
/******/ configurable: false,
128+
/******/ enumerable: true,
129+
/******/ get: getter
130+
/******/ });
131+
/******/ }
132+
/******/ };
133+
/******/
134+
/******/ // getDefaultExport function for compatibility with non-harmony modules
135+
/******/ __webpack_require__.n = function(module) {
136+
/******/ var getter = module && module.__esModule ?
137+
/******/ function getDefault() { return module['default']; } :
138+
/******/ function getModuleExports() { return module; };
139+
/******/ __webpack_require__.d(getter, 'a', getter);
140+
/******/ return getter;
141+
/******/ };
142+
/******/
143+
/******/ // Object.prototype.hasOwnProperty.call
144+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
145+
/******/
146+
/******/ // __webpack_public_path__
147+
/******/ __webpack_require__.p = "/build/";
148+
/******/
149+
/******/ // on error function for async loading
150+
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
151+
/******/ })
152+
/************************************************************************/
153+
/******/ ([]);

0 commit comments

Comments
 (0)