Skip to content

Commit

Permalink
Yarn'd after including alert.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePeterMick committed Jan 7, 2018
1 parent 10a7ba8 commit c39d745
Show file tree
Hide file tree
Showing 8 changed files with 51,932 additions and 531 deletions.
584 changes: 582 additions & 2 deletions public/build/css/admin.css

Large diffs are not rendered by default.

12,199 changes: 12,192 additions & 7 deletions public/build/css/app.css

Large diffs are not rendered by default.

27,084 changes: 26,611 additions & 473 deletions public/build/js/admin.js

Large diffs are not rendered by default.

2,015 changes: 1,987 additions & 28 deletions public/build/js/app.js

Large diffs are not rendered by default.

10,260 changes: 10,251 additions & 9 deletions public/build/js/common.js

Large diffs are not rendered by default.

25 changes: 21 additions & 4 deletions public/build/js/login.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
webpackJsonp([6],{nxx7:/*!****************************!*\
!*** ./assets/js/login.js ***!
\****************************/
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"]);
webpackJsonp([6],{

/***/ "./assets/js/login.js":
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function($) {$(function () {
var usernameEl = $('#username');
var passwordEl = $('#password');

// in a real application, hardcoding the user/password would be idiotic
// but for the demo application it's very convenient to do so
if (!usernameEl.val() && !passwordEl.val()) {
usernameEl.val('jane_admin');
passwordEl.val('kitten');
}
});
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/jquery/dist/jquery.js")))

/***/ })

},["./assets/js/login.js"]);
142 changes: 135 additions & 7 deletions public/build/js/search.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,135 @@
webpackJsonp([5],{"0It5":/*!*****************************!*\
!*** ./assets/js/search.js ***!
\*****************************/
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:/*!*******************************************!*\
!*** ./assets/js/jquery.instantSearch.js ***!
\*******************************************/
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"]);
webpackJsonp([5],{

/***/ "./assets/js/jquery.instantSearch.js":
/***/ (function(module, exports, __webpack_require__) {

/* 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; };

/**
* jQuery plugin for an instant searching.
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
* @author Yonel Ceruto <yonelceruto@gmail.com>
*/
(function ($) {
'use strict';

String.prototype.render = function (parameters) {
return this.replace(/({{ (\w+) }})/g, function (match, pattern, name) {
return parameters[name];
});
};

// INSTANTS SEARCH PUBLIC CLASS DEFINITION
// =======================================

var InstantSearch = function InstantSearch(element, options) {
this.$input = $(element);
this.$form = this.$input.closest('form');
this.$preview = $('<ul class="search-preview list-group">').appendTo(this.$form);
this.options = $.extend({}, InstantSearch.DEFAULTS, this.$input.data(), options);

this.$input.keyup(this.debounce());
};

InstantSearch.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>'
};

InstantSearch.prototype.debounce = function () {
var delay = this.options.delay;
var search = this.search;
var timer = null;
var self = this;

return function () {
clearTimeout(timer);
timer = setTimeout(function () {
search.apply(self);
}, delay);
};
};

InstantSearch.prototype.search = function () {
var query = $.trim(this.$input.val()).replace(/\s{2,}/g, ' ');
if (query.length < this.options.minQueryLength) {
this.$preview.empty();
return;
}

var self = this;
var data = this.$form.serializeArray();
data['l'] = this.limit;

$.getJSON(this.$form.attr('action'), data, function (items) {
self.show(items);
});
};

InstantSearch.prototype.show = function (items) {
var $preview = this.$preview;
var itemTemplate = this.options.itemTemplate;

if (0 === items.length) {
$preview.html(this.options.noResultsMessage);
} else {
$preview.empty();
$.each(items, function (index, item) {
$preview.append(itemTemplate.render(item));
});
}
};

// INSTANTS SEARCH PLUGIN DEFINITION
// =================================

function Plugin(option) {
return this.each(function () {
var $this = $(this);
var instance = $this.data('instantSearch');
var options = (typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object' && option;

if (!instance) $this.data('instantSearch', instance = new InstantSearch(this, options));

if (option === 'search') instance.search();
});
}

$.fn.instantSearch = Plugin;
$.fn.instantSearch.Constructor = InstantSearch;
})(__webpack_provided_window_dot_jQuery);
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/jquery/dist/jquery.js")))

/***/ }),

/***/ "./assets/js/search.js":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* WEBPACK VAR INJECTION */(function($) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jquery_instantSearch_js__ = __webpack_require__("./assets/js/jquery.instantSearch.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jquery_instantSearch_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__jquery_instantSearch_js__);


$(function () {
$('.search-field').instantSearch({
delay: 100
});
});
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__("./node_modules/jquery/dist/jquery.js")))

/***/ })

},["./assets/js/search.js"]);
154 changes: 153 additions & 1 deletion public/build/manifest.js
Original file line number Diff line number Diff line change
@@ -1 +1,153 @@
!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}}([]);
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [], result;
/******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if(installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ modules[moduleId] = moreModules[moduleId];
/******/ }
/******/ }
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/ if(executeModules) {
/******/ for(i=0; i < executeModules.length; i++) {
/******/ result = __webpack_require__(__webpack_require__.s = executeModules[i]);
/******/ }
/******/ }
/******/ return result;
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // objects to store loaded and loading chunks
/******/ var installedChunks = {
/******/ 7: 0
/******/ };
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
/******/ var script = document.createElement('script');
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
/******/ function onScriptComplete() {
/******/ // avoid mem leaks in IE.
/******/ script.onerror = script.onload = null;
/******/ clearTimeout(timeout);
/******/ var chunk = installedChunks[chunkId];
/******/ if(chunk !== 0) {
/******/ if(chunk) {
/******/ chunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));
/******/ }
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/
/******/ return promise;
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/build/";
/******/
/******/ // on error function for async loading
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/ })
/************************************************************************/
/******/ ([]);

0 comments on commit c39d745

Please sign in to comment.