├── .gitignore ├── Aspnet.Webpack.sln ├── CHANGELOG.md ├── LICENSE.MD ├── README.md ├── global.json ├── samples ├── Aspnet.Webpack │ ├── Aspnet.Webpack.csproj │ ├── Controllers │ │ └── HomeController.cs │ ├── Program.cs │ ├── Project_Readme.html │ ├── Properties │ │ └── launchSettings.json │ ├── Startup.cs │ ├── Views │ │ ├── Home │ │ │ └── Index.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ └── _Layout.cshtml │ │ ├── _ViewImports.cshtml │ │ └── _ViewStart.cshtml │ ├── app │ │ ├── contentGenerator.js │ │ ├── index.js │ │ └── styles │ │ │ ├── general.css │ │ │ ├── lessStyle.less │ │ │ └── style.scss │ ├── appsettings.json │ ├── package.json │ ├── webpack │ │ └── webpack.production.js │ └── wwwroot │ │ ├── _references.js │ │ ├── css │ │ ├── site.css │ │ └── site.min.css │ │ ├── favicon.ico │ │ ├── images │ │ ├── ASP-NET-Banners-01.png │ │ ├── ASP-NET-Banners-02.png │ │ ├── Banner-01-Azure.png │ │ └── Banner-02-VS.png │ │ ├── js │ │ ├── site.js │ │ └── site.min.js │ │ ├── lib │ │ ├── bootstrap │ │ │ ├── .bower.json │ │ │ ├── LICENSE │ │ │ └── dist │ │ │ │ ├── css │ │ │ │ ├── bootstrap-theme.css │ │ │ │ ├── bootstrap-theme.css.map │ │ │ │ ├── bootstrap-theme.min.css │ │ │ │ ├── bootstrap.css │ │ │ │ ├── bootstrap.css.map │ │ │ │ └── bootstrap.min.css │ │ │ │ ├── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ └── js │ │ │ │ ├── bootstrap.js │ │ │ │ ├── bootstrap.min.js │ │ │ │ └── npm.js │ │ ├── jquery-validation-unobtrusive │ │ │ ├── .bower.json │ │ │ ├── jquery.validate.unobtrusive.js │ │ │ └── jquery.validate.unobtrusive.min.js │ │ ├── jquery-validation │ │ │ ├── .bower.json │ │ │ ├── LICENSE.md │ │ │ └── dist │ │ │ │ ├── additional-methods.js │ │ │ │ ├── additional-methods.min.js │ │ │ │ ├── jquery.validate.js │ │ │ │ └── jquery.validate.min.js │ │ └── jquery │ │ │ ├── .bower.json │ │ │ ├── MIT-LICENSE.txt │ │ │ └── dist │ │ │ ├── jquery.js │ │ │ ├── jquery.min.js │ │ │ └── jquery.min.map │ │ └── web.config ├── AspnetAngular1.Webpack │ ├── AspnetAngular1.Webpack.csproj │ ├── Controllers │ │ └── HomeController.cs │ ├── Program.cs │ ├── Project_Readme.html │ ├── Properties │ │ └── launchSettings.json │ ├── Startup.cs │ ├── Views │ │ ├── Home │ │ │ └── Index.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ └── _Layout.cshtml │ │ ├── _ViewImports.cshtml │ │ └── _ViewStart.cshtml │ ├── app │ │ ├── directives │ │ │ ├── hello.html │ │ │ └── hello.js │ │ ├── index.js │ │ ├── styles │ │ │ └── app.scss │ │ └── todolistController.js │ ├── appsettings.json │ ├── package.json │ └── wwwroot │ │ ├── favicon.ico │ │ ├── lib │ │ ├── bootstrap │ │ │ ├── .bower.json │ │ │ ├── LICENSE │ │ │ └── dist │ │ │ │ ├── css │ │ │ │ ├── bootstrap-theme.css │ │ │ │ ├── bootstrap-theme.css.map │ │ │ │ ├── bootstrap-theme.min.css │ │ │ │ ├── bootstrap.css │ │ │ │ ├── bootstrap.css.map │ │ │ │ └── bootstrap.min.css │ │ │ │ ├── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ └── js │ │ │ │ ├── bootstrap.js │ │ │ │ ├── bootstrap.min.js │ │ │ │ └── npm.js │ │ ├── jquery-validation-unobtrusive │ │ │ ├── .bower.json │ │ │ ├── jquery.validate.unobtrusive.js │ │ │ └── jquery.validate.unobtrusive.min.js │ │ ├── jquery-validation │ │ │ ├── .bower.json │ │ │ ├── LICENSE.md │ │ │ └── dist │ │ │ │ ├── additional-methods.js │ │ │ │ ├── additional-methods.min.js │ │ │ │ ├── jquery.validate.js │ │ │ │ └── jquery.validate.min.js │ │ └── jquery │ │ │ ├── .bower.json │ │ │ ├── MIT-LICENSE.txt │ │ │ └── dist │ │ │ ├── jquery.js │ │ │ ├── jquery.min.js │ │ │ └── jquery.min.map │ │ └── web.config └── AspnetReact.Webpack │ ├── AspnetReact.Webpack.csproj │ ├── Controllers │ └── HomeController.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── README.md │ ├── Startup.cs │ ├── Views │ ├── Home │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ └── _Layout.cshtml │ ├── _ViewImports.cshtml │ └── _ViewStart.cshtml │ ├── appsettings.json │ ├── package.json │ ├── reactApp │ ├── .editorconfig │ ├── apiService.js │ ├── components │ │ ├── app.jsx │ │ ├── mainContent.jsx │ │ ├── mainController.jsx │ │ ├── repositoriesList.jsx │ │ ├── repositoryDetails.jsx │ │ ├── repositoryItem.jsx │ │ └── searchForm.jsx │ ├── images │ │ ├── github-logo.png │ │ └── react-large.png │ ├── index.js │ ├── jsconfig.json │ └── styles │ │ └── site.scss │ ├── webpack_external │ └── webpack.config.js │ └── wwwroot │ ├── favicon.ico │ ├── lib │ ├── bootstrap │ │ ├── .bower.json │ │ ├── Gruntfile.js │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bower.json │ │ ├── dist │ │ │ ├── css │ │ │ │ ├── bootstrap-theme.css │ │ │ │ ├── bootstrap-theme.css.map │ │ │ │ ├── bootstrap-theme.min.css │ │ │ │ ├── bootstrap.css │ │ │ │ ├── bootstrap.css.map │ │ │ │ └── bootstrap.min.css │ │ │ ├── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ └── js │ │ │ │ ├── bootstrap.js │ │ │ │ ├── bootstrap.min.js │ │ │ │ └── npm.js │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ ├── grunt │ │ │ ├── .jshintrc │ │ │ ├── bs-commonjs-generator.js │ │ │ ├── bs-glyphicons-data-generator.js │ │ │ ├── bs-lessdoc-parser.js │ │ │ ├── bs-raw-files-generator.js │ │ │ ├── configBridge.json │ │ │ └── sauce_browsers.yml │ │ ├── js │ │ │ ├── .jscsrc │ │ │ ├── .jshintrc │ │ │ ├── affix.js │ │ │ ├── alert.js │ │ │ ├── button.js │ │ │ ├── carousel.js │ │ │ ├── collapse.js │ │ │ ├── dropdown.js │ │ │ ├── modal.js │ │ │ ├── popover.js │ │ │ ├── scrollspy.js │ │ │ ├── tab.js │ │ │ ├── tooltip.js │ │ │ └── transition.js │ │ ├── less │ │ │ ├── .csscomb.json │ │ │ ├── .csslintrc │ │ │ ├── alerts.less │ │ │ ├── badges.less │ │ │ ├── bootstrap.less │ │ │ ├── breadcrumbs.less │ │ │ ├── button-groups.less │ │ │ ├── buttons.less │ │ │ ├── carousel.less │ │ │ ├── close.less │ │ │ ├── code.less │ │ │ ├── component-animations.less │ │ │ ├── dropdowns.less │ │ │ ├── forms.less │ │ │ ├── glyphicons.less │ │ │ ├── grid.less │ │ │ ├── input-groups.less │ │ │ ├── jumbotron.less │ │ │ ├── labels.less │ │ │ ├── list-group.less │ │ │ ├── media.less │ │ │ ├── mixins.less │ │ │ ├── mixins │ │ │ │ ├── alerts.less │ │ │ │ ├── background-variant.less │ │ │ │ ├── border-radius.less │ │ │ │ ├── buttons.less │ │ │ │ ├── center-block.less │ │ │ │ ├── clearfix.less │ │ │ │ ├── forms.less │ │ │ │ ├── gradients.less │ │ │ │ ├── grid-framework.less │ │ │ │ ├── grid.less │ │ │ │ ├── hide-text.less │ │ │ │ ├── image.less │ │ │ │ ├── labels.less │ │ │ │ ├── list-group.less │ │ │ │ ├── nav-divider.less │ │ │ │ ├── nav-vertical-align.less │ │ │ │ ├── opacity.less │ │ │ │ ├── pagination.less │ │ │ │ ├── panels.less │ │ │ │ ├── progress-bar.less │ │ │ │ ├── reset-filter.less │ │ │ │ ├── reset-text.less │ │ │ │ ├── resize.less │ │ │ │ ├── responsive-visibility.less │ │ │ │ ├── size.less │ │ │ │ ├── tab-focus.less │ │ │ │ ├── table-row.less │ │ │ │ ├── text-emphasis.less │ │ │ │ ├── text-overflow.less │ │ │ │ └── vendor-prefixes.less │ │ │ ├── modals.less │ │ │ ├── navbar.less │ │ │ ├── navs.less │ │ │ ├── normalize.less │ │ │ ├── pager.less │ │ │ ├── pagination.less │ │ │ ├── panels.less │ │ │ ├── popovers.less │ │ │ ├── print.less │ │ │ ├── progress-bars.less │ │ │ ├── responsive-embed.less │ │ │ ├── responsive-utilities.less │ │ │ ├── scaffolding.less │ │ │ ├── tables.less │ │ │ ├── theme.less │ │ │ ├── thumbnails.less │ │ │ ├── tooltip.less │ │ │ ├── type.less │ │ │ ├── utilities.less │ │ │ ├── variables.less │ │ │ └── wells.less │ │ ├── package.js │ │ └── package.json │ ├── jquery-validation-unobtrusive │ │ ├── .bower.json │ │ ├── bower.json │ │ ├── jquery.validate.unobtrusive.js │ │ └── jquery.validate.unobtrusive.min.js │ ├── jquery-validation │ │ ├── .bower.json │ │ ├── CONTRIBUTING.md │ │ ├── Gruntfile.js │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── bower.json │ │ ├── changelog.md │ │ ├── dist │ │ │ ├── additional-methods.js │ │ │ ├── additional-methods.min.js │ │ │ ├── jquery.validate.js │ │ │ └── jquery.validate.min.js │ │ ├── package.json │ │ ├── src │ │ │ ├── additional │ │ │ │ ├── accept.js │ │ │ │ ├── additional.js │ │ │ │ ├── alphanumeric.js │ │ │ │ ├── bankaccountNL.js │ │ │ │ ├── bankorgiroaccountNL.js │ │ │ │ ├── bic.js │ │ │ │ ├── cifES.js │ │ │ │ ├── cpfBR.js │ │ │ │ ├── creditcardtypes.js │ │ │ │ ├── currency.js │ │ │ │ ├── dateFA.js │ │ │ │ ├── dateITA.js │ │ │ │ ├── dateNL.js │ │ │ │ ├── extension.js │ │ │ │ ├── giroaccountNL.js │ │ │ │ ├── iban.js │ │ │ │ ├── integer.js │ │ │ │ ├── ipv4.js │ │ │ │ ├── ipv6.js │ │ │ │ ├── lettersonly.js │ │ │ │ ├── letterswithbasicpunc.js │ │ │ │ ├── mobileNL.js │ │ │ │ ├── mobileUK.js │ │ │ │ ├── nieES.js │ │ │ │ ├── nifES.js │ │ │ │ ├── notEqualTo.js │ │ │ │ ├── nowhitespace.js │ │ │ │ ├── pattern.js │ │ │ │ ├── phoneNL.js │ │ │ │ ├── phoneUK.js │ │ │ │ ├── phoneUS.js │ │ │ │ ├── phonesUK.js │ │ │ │ ├── postalCodeCA.js │ │ │ │ ├── postalcodeBR.js │ │ │ │ ├── postalcodeIT.js │ │ │ │ ├── postalcodeNL.js │ │ │ │ ├── postcodeUK.js │ │ │ │ ├── require_from_group.js │ │ │ │ ├── skip_or_fill_minimum.js │ │ │ │ ├── statesUS.js │ │ │ │ ├── strippedminlength.js │ │ │ │ ├── time.js │ │ │ │ ├── time12h.js │ │ │ │ ├── url2.js │ │ │ │ ├── vinUS.js │ │ │ │ ├── zipcodeUS.js │ │ │ │ └── ziprange.js │ │ │ ├── ajax.js │ │ │ ├── core.js │ │ │ └── localization │ │ │ │ ├── messages_ar.js │ │ │ │ ├── messages_bg.js │ │ │ │ ├── messages_bn_BD.js │ │ │ │ ├── messages_ca.js │ │ │ │ ├── messages_cs.js │ │ │ │ ├── messages_da.js │ │ │ │ ├── messages_de.js │ │ │ │ ├── messages_el.js │ │ │ │ ├── messages_es.js │ │ │ │ ├── messages_es_AR.js │ │ │ │ ├── messages_es_PE.js │ │ │ │ ├── messages_et.js │ │ │ │ ├── messages_eu.js │ │ │ │ ├── messages_fa.js │ │ │ │ ├── messages_fi.js │ │ │ │ ├── messages_fr.js │ │ │ │ ├── messages_ge.js │ │ │ │ ├── messages_gl.js │ │ │ │ ├── messages_he.js │ │ │ │ ├── messages_hr.js │ │ │ │ ├── messages_hu.js │ │ │ │ ├── messages_hy_AM.js │ │ │ │ ├── messages_id.js │ │ │ │ ├── messages_is.js │ │ │ │ ├── messages_it.js │ │ │ │ ├── messages_ja.js │ │ │ │ ├── messages_ka.js │ │ │ │ ├── messages_kk.js │ │ │ │ ├── messages_ko.js │ │ │ │ ├── messages_lt.js │ │ │ │ ├── messages_lv.js │ │ │ │ ├── messages_my.js │ │ │ │ ├── messages_nl.js │ │ │ │ ├── messages_no.js │ │ │ │ ├── messages_pl.js │ │ │ │ ├── messages_pt_BR.js │ │ │ │ ├── messages_pt_PT.js │ │ │ │ ├── messages_ro.js │ │ │ │ ├── messages_ru.js │ │ │ │ ├── messages_si.js │ │ │ │ ├── messages_sk.js │ │ │ │ ├── messages_sl.js │ │ │ │ ├── messages_sr.js │ │ │ │ ├── messages_sr_lat.js │ │ │ │ ├── messages_sv.js │ │ │ │ ├── messages_th.js │ │ │ │ ├── messages_tj.js │ │ │ │ ├── messages_tr.js │ │ │ │ ├── messages_uk.js │ │ │ │ ├── messages_vi.js │ │ │ │ ├── messages_zh.js │ │ │ │ ├── messages_zh_TW.js │ │ │ │ ├── methods_de.js │ │ │ │ ├── methods_es_CL.js │ │ │ │ ├── methods_fi.js │ │ │ │ ├── methods_nl.js │ │ │ │ └── methods_pt.js │ │ └── validation.jquery.json │ └── jquery │ │ ├── .bower.json │ │ ├── MIT-LICENSE.txt │ │ ├── bower.json │ │ ├── dist │ │ ├── jquery.js │ │ ├── jquery.min.js │ │ └── jquery.min.map │ │ └── src │ │ ├── ajax.js │ │ ├── ajax │ │ ├── jsonp.js │ │ ├── load.js │ │ ├── parseJSON.js │ │ ├── parseXML.js │ │ ├── script.js │ │ ├── var │ │ │ ├── nonce.js │ │ │ └── rquery.js │ │ └── xhr.js │ │ ├── attributes.js │ │ ├── attributes │ │ ├── attr.js │ │ ├── classes.js │ │ ├── prop.js │ │ ├── support.js │ │ └── val.js │ │ ├── callbacks.js │ │ ├── core.js │ │ ├── core │ │ ├── access.js │ │ ├── init.js │ │ ├── parseHTML.js │ │ ├── ready.js │ │ └── var │ │ │ └── rsingleTag.js │ │ ├── css.js │ │ ├── css │ │ ├── addGetHookIf.js │ │ ├── curCSS.js │ │ ├── defaultDisplay.js │ │ ├── hiddenVisibleSelectors.js │ │ ├── support.js │ │ ├── swap.js │ │ └── var │ │ │ ├── cssExpand.js │ │ │ ├── getStyles.js │ │ │ ├── isHidden.js │ │ │ ├── rmargin.js │ │ │ └── rnumnonpx.js │ │ ├── data.js │ │ ├── data │ │ ├── Data.js │ │ ├── accepts.js │ │ └── var │ │ │ ├── data_priv.js │ │ │ └── data_user.js │ │ ├── deferred.js │ │ ├── deprecated.js │ │ ├── dimensions.js │ │ ├── effects.js │ │ ├── effects │ │ ├── Tween.js │ │ └── animatedSelector.js │ │ ├── event.js │ │ ├── event │ │ ├── ajax.js │ │ ├── alias.js │ │ └── support.js │ │ ├── exports │ │ ├── amd.js │ │ └── global.js │ │ ├── intro.js │ │ ├── jquery.js │ │ ├── manipulation.js │ │ ├── manipulation │ │ ├── _evalUrl.js │ │ ├── support.js │ │ └── var │ │ │ └── rcheckableType.js │ │ ├── offset.js │ │ ├── outro.js │ │ ├── queue.js │ │ ├── queue │ │ └── delay.js │ │ ├── selector-native.js │ │ ├── selector-sizzle.js │ │ ├── selector.js │ │ ├── serialize.js │ │ ├── sizzle │ │ └── dist │ │ │ ├── sizzle.js │ │ │ ├── sizzle.min.js │ │ │ └── sizzle.min.map │ │ ├── traversing.js │ │ ├── traversing │ │ ├── findFilter.js │ │ └── var │ │ │ └── rneedsContext.js │ │ ├── var │ │ ├── arr.js │ │ ├── class2type.js │ │ ├── concat.js │ │ ├── hasOwn.js │ │ ├── indexOf.js │ │ ├── pnum.js │ │ ├── push.js │ │ ├── rnotwhite.js │ │ ├── slice.js │ │ ├── strundefined.js │ │ ├── support.js │ │ └── toString.js │ │ └── wrap.js │ └── web.config └── src └── Webpack ├── ArgumentsHelper.cs ├── Extensions └── DevToolTypeExtensions.cs ├── IWebpack.cs ├── PlainJsonStringConverter.cs ├── Properties └── AssemblyInfo.cs ├── WebPackMiddlewareOptions.cs ├── Webpack.cs ├── Webpack.csproj ├── WebpackDevServerOptions.cs ├── WebpackExtenstions.cs ├── WebpackLoader.cs ├── WebpackMiddleware.cs ├── WebpackOptions.cs └── WebpackServiceCollectionExtensions.cs /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | This project adheres to [Semantic Versioning](http://semver.org/). 4 | Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/xabikos/aspnet-webpack/releases) page. -------------------------------------------------------------------------------- /LICENSE.MD: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Charalampos Karypidis 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "src" ] 3 | } 4 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.AspNetCore.Mvc; 3 | 4 | namespace Aspnet.Webpack.Controllers { 5 | public class HomeController : Controller { 6 | public IActionResult Index() { 7 | ViewBag.Message = "This is some content from the controller action"; 8 | return View(); 9 | } 10 | 11 | public IActionResult Error() { 12 | return View(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using Microsoft.AspNetCore.Hosting; 4 | 5 | namespace Aspnet.Webpack 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | var host = new WebHostBuilder() 12 | .UseKestrel() 13 | .UseContentRoot(Directory.GetCurrentDirectory()) 14 | .UseIISIntegration() 15 | .UseStartup() 16 | .Build(); 17 | 18 | host.Run(); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:49974/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "ClientCore": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "launchUrl": "http://localhost:5000", 22 | "environmentVariables": { 23 | "ASPNETCORE_ENVIRONMENT": "Development" 24 | } 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Home Page"; 3 | } 4 |

@ViewBag.Message

-------------------------------------------------------------------------------- /samples/Aspnet.Webpack/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Error"; 3 | } 4 | 5 |

Error.

6 |

An error occurred while processing your request.

7 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using Aspnet.Webpack 2 | @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" 3 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/app/contentGenerator.js: -------------------------------------------------------------------------------- 1 | import loremIpsum from 'lorem-ipsum'; 2 | 3 | const contetGenerator = { 4 | getContent(count = 5, type = 'sentences') { 5 | return loremIpsum({ 6 | count, 7 | unist: type 8 | }); 9 | } 10 | }; 11 | 12 | export default contetGenerator; -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/app/index.js: -------------------------------------------------------------------------------- 1 | import './styles/general.css'; 2 | import './styles/style.scss'; 3 | import './styles/lessStyle.less'; 4 | 5 | import ContentGenerator from './contentGenerator'; 6 | 7 | const generatedContent = document.createElement('p'); 8 | const loremText = ContentGenerator.getContent(45); 9 | generatedContent.innerHTML = loremText; 10 | 11 | document.body.appendChild(generatedContent); -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/app/styles/general.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #ffd800; 3 | } 4 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/app/styles/lessStyle.less: -------------------------------------------------------------------------------- 1 | @bgColor: #51504b; 2 | 3 | 4 | #viewMessage { 5 | background-color: @bgColor; 6 | } -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/app/styles/style.scss: -------------------------------------------------------------------------------- 1 | $backgroundColor: #b6ff00; 2 | 3 | body { 4 | p { 5 | background-color: $backgroundColor; 6 | } 7 | } -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ASP.NET", 3 | "version": "0.0.0", 4 | "scripts": { 5 | "build-prod": "webpack --bail --progress --colors --config webpack\\webpack.production.js" 6 | }, 7 | "dependencies": { 8 | "lorem-ipsum": "^1.0.3" 9 | }, 10 | "devDependencies": { 11 | "autoprefixer": "^6.4.0", 12 | "babel-core": "^6.13.2", 13 | "babel-loader": "^6.2.3", 14 | "babel-preset-es2015": "^6.13.2", 15 | "css-loader": "^0.23.1", 16 | "extract-text-webpack-plugin": "^1.0.1", 17 | "less": "^2.6.0", 18 | "less-loader": "^2.2.2", 19 | "node-sass": "^3.8.0", 20 | "postcss-loader": "^0.9.1", 21 | "sass-loader": "^4.0.0", 22 | "style-loader": "^0.13.0", 23 | "webpack": "^1.13.1", 24 | "webpack-dev-server": "^1.14.1" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/_references.js: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | /// 8 | /// 9 | /// 10 | /// 11 | /// 12 | /// 13 | /// 14 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Wrapping element */ 7 | /* Set some basic padding to keep content from hitting the edges */ 8 | .body-content { 9 | padding-left: 15px; 10 | padding-right: 15px; 11 | } 12 | 13 | /* Set widths on the form inputs since otherwise they're 100% wide */ 14 | input, 15 | select, 16 | textarea { 17 | max-width: 280px; 18 | } 19 | 20 | /* Carousel */ 21 | .carousel-caption { 22 | z-index: 10 !important; 23 | } 24 | 25 | .carousel-caption p { 26 | font-size: 20px; 27 | line-height: 1.4; 28 | } 29 | 30 | @media (min-width: 768px) { 31 | .carousel-caption { 32 | z-index: 10 !important; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption{z-index:10!important}.carousel-caption p{font-size:20px;line-height:1.4}@media (min-width:768px){.carousel-caption{z-index:10!important}} -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/favicon.ico -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/images/ASP-NET-Banners-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/images/ASP-NET-Banners-01.png -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/images/ASP-NET-Banners-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/images/ASP-NET-Banners-02.png -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/images/Banner-01-Azure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/images/Banner-01-Azure.png -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/images/Banner-02-VS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/images/Banner-02-VS.png -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your Javascript code. 2 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/js/site.min.js -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": ">= 1.9.1" 33 | }, 34 | "version": "3.3.5", 35 | "_release": "3.3.5", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.5", 39 | "commit": "16b48259a62f576e52c903c476bd42b90ab22482" 40 | }, 41 | "_source": "git://github.com/twbs/bootstrap.git", 42 | "_target": "3.3.5", 43 | "_originalSource": "bootstrap" 44 | } -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2015 Twitter, Inc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/jquery-validation-unobtrusive/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation-unobtrusive", 3 | "version": "3.2.4", 4 | "homepage": "https://github.com/aspnet/jquery-validation-unobtrusive", 5 | "description": "Add-on to jQuery Validation to enable unobtrusive validation options in data-* attributes.", 6 | "main": [ 7 | "jquery.validate.unobtrusive.js" 8 | ], 9 | "ignore": [ 10 | "**/.*", 11 | "*.json", 12 | "*.md", 13 | "*.txt", 14 | "gulpfile.js" 15 | ], 16 | "keywords": [ 17 | "jquery", 18 | "asp.net", 19 | "mvc", 20 | "validation", 21 | "unobtrusive" 22 | ], 23 | "authors": [ 24 | "Microsoft" 25 | ], 26 | "license": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm", 27 | "repository": { 28 | "type": "git", 29 | "url": "git://github.com/aspnet/jquery-validation-unobtrusive.git" 30 | }, 31 | "dependencies": { 32 | "jquery-validation": ">=1.8", 33 | "jquery": ">=1.8" 34 | }, 35 | "_release": "3.2.4", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.2.4", 39 | "commit": "13386cd1b5947d8a5d23a12b531ce3960be1eba7" 40 | }, 41 | "_source": "git://github.com/aspnet/jquery-validation-unobtrusive.git", 42 | "_target": "3.2.4", 43 | "_originalSource": "jquery-validation-unobtrusive" 44 | } -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": ">=1.8", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright Jörn Zaefferer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.4", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "dist/cdn", 10 | "speed", 11 | "test", 12 | "*.md", 13 | "AUTHORS.txt", 14 | "Gruntfile.js", 15 | "package.json" 16 | ], 17 | "devDependencies": { 18 | "sizzle": "2.1.1-jquery.2.1.2", 19 | "requirejs": "2.1.10", 20 | "qunit": "1.14.0", 21 | "sinon": "1.8.1" 22 | }, 23 | "keywords": [ 24 | "jquery", 25 | "javascript", 26 | "library" 27 | ], 28 | "homepage": "https://github.com/jquery/jquery", 29 | "_release": "2.1.4", 30 | "_resolution": { 31 | "type": "version", 32 | "tag": "2.1.4", 33 | "commit": "7751e69b615c6eca6f783a81e292a55725af6b85" 34 | }, 35 | "_source": "git://github.com/jquery/jquery.git", 36 | "_target": "2.1.4", 37 | "_originalSource": "jquery" 38 | } -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/lib/jquery/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 jQuery Foundation and other contributors 2 | http://jquery.com/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /samples/Aspnet.Webpack/wwwroot/web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.AspNetCore.Mvc; 3 | 4 | namespace AspnetAngular1.Webpack.Controllers { 5 | public class HomeController : Controller 6 | { 7 | public IActionResult Index() 8 | { 9 | return View(); 10 | } 11 | 12 | public IActionResult Error() 13 | { 14 | return View(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using Microsoft.AspNetCore.Hosting; 4 | 5 | namespace AspnetAngular1.Webpack 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | var host = new WebHostBuilder() 12 | .UseKestrel() 13 | .UseContentRoot(Directory.GetCurrentDirectory()) 14 | .UseIISIntegration() 15 | .UseStartup() 16 | .Build(); 17 | 18 | host.Run(); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:63621/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "ClientCore": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "launchUrl": "http://localhost:5000", 22 | "environmentVariables": { 23 | "ASPNETCORE_ENVIRONMENT": "Development" 24 | } 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | 
2 |

Todo (angular form based on controller)

3 |
4 | {{todoList.remaining()}} of {{todoList.todos.length}} remaining 5 |
    6 |
  • 7 | 11 |
  • 12 |
13 |
14 | 15 | 16 |
17 |
18 | 19 |

Custom angular component

20 | 21 |
-------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Error"; 3 | } 4 | 5 |

Error.

6 |

An error occurred while processing your request.

7 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using AspnetAngular1.Webpack 2 | @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" 3 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/app/directives/hello.html: -------------------------------------------------------------------------------- 1 | 
2 | Hello: {{vm.message}} 3 |
4 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/app/directives/hello.js: -------------------------------------------------------------------------------- 1 | module.exports = function (ngModule) { 2 | ngModule.directive('hello', function () { 3 | return { 4 | restrict: 'E', 5 | scope: {}, 6 | template: require('./hello.html'), 7 | controllerAs: 'vm', 8 | controller: function () { 9 | var vm = this; 10 | 11 | vm.message = "from an Angular directive"; 12 | } 13 | }; 14 | }); 15 | }; -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/app/index.js: -------------------------------------------------------------------------------- 1 | var angular = require('angular'); 2 | var ngModule = angular.module('app', []); 3 | 4 | require('./styles/app.scss'); 5 | 6 | require("./todolistController.js")(ngModule); 7 | require("./directives/hello.js")(ngModule); 8 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/app/styles/app.scss: -------------------------------------------------------------------------------- 1 | $directiveColor: lightblue; 2 | 3 | body { 4 | padding-top: 50px; 5 | padding-bottom: 20px; 6 | } 7 | 8 | .hello { 9 | background-color: $directiveColor; 10 | } -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/app/todolistController.js: -------------------------------------------------------------------------------- 1 | var angular = require('angular'); 2 | 3 | module.exports = function (ngModule) { 4 | ngModule.controller('TodoListController', function () { 5 | var todoList = this; 6 | todoList.todos = [ 7 | {text:'learn angular', done:true}, 8 | {text:'build an angular app', done:false} 9 | ]; 10 | 11 | todoList.addTodo = function () { 12 | todoList.todos.push({ text: todoList.todoText, done: false }); 13 | todoList.todoText = ''; 14 | }; 15 | 16 | todoList.remaining = function() { 17 | var count = 0; 18 | angular.forEach(todoList.todos, function(todo) { 19 | count += todo.done ? 0 : 1; 20 | }); 21 | return count; 22 | }; 23 | }); 24 | }; 25 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ASP.NET", 3 | "version": "0.0.0", 4 | "devDependencies": { 5 | "css-loader": "^0.23.1", 6 | "node-sass": "^3.8.0", 7 | "raw-loader": "^0.5.1", 8 | "sass-loader": "^4.0.0", 9 | "style-loader": "^0.13.1", 10 | "webpack": "^1.13.1", 11 | "webpack-dev-server": "^1.14.1" 12 | }, 13 | "dependencies": { 14 | "angular": "^1.5.8" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetAngular1.Webpack/wwwroot/favicon.ico -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": ">= 1.9.1" 33 | }, 34 | "version": "3.3.5", 35 | "_release": "3.3.5", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.5", 39 | "commit": "16b48259a62f576e52c903c476bd42b90ab22482" 40 | }, 41 | "_source": "git://github.com/twbs/bootstrap.git", 42 | "_target": "3.3.5", 43 | "_originalSource": "bootstrap" 44 | } -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2015 Twitter, Inc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/jquery-validation-unobtrusive/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation-unobtrusive", 3 | "version": "3.2.4", 4 | "homepage": "https://github.com/aspnet/jquery-validation-unobtrusive", 5 | "description": "Add-on to jQuery Validation to enable unobtrusive validation options in data-* attributes.", 6 | "main": [ 7 | "jquery.validate.unobtrusive.js" 8 | ], 9 | "ignore": [ 10 | "**/.*", 11 | "*.json", 12 | "*.md", 13 | "*.txt", 14 | "gulpfile.js" 15 | ], 16 | "keywords": [ 17 | "jquery", 18 | "asp.net", 19 | "mvc", 20 | "validation", 21 | "unobtrusive" 22 | ], 23 | "authors": [ 24 | "Microsoft" 25 | ], 26 | "license": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm", 27 | "repository": { 28 | "type": "git", 29 | "url": "git://github.com/aspnet/jquery-validation-unobtrusive.git" 30 | }, 31 | "dependencies": { 32 | "jquery-validation": ">=1.8", 33 | "jquery": ">=1.8" 34 | }, 35 | "_release": "3.2.4", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.2.4", 39 | "commit": "13386cd1b5947d8a5d23a12b531ce3960be1eba7" 40 | }, 41 | "_source": "git://github.com/aspnet/jquery-validation-unobtrusive.git", 42 | "_target": "3.2.4", 43 | "_originalSource": "jquery-validation-unobtrusive" 44 | } -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": ">=1.8", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright Jörn Zaefferer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.4", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "dist/cdn", 10 | "speed", 11 | "test", 12 | "*.md", 13 | "AUTHORS.txt", 14 | "Gruntfile.js", 15 | "package.json" 16 | ], 17 | "devDependencies": { 18 | "sizzle": "2.1.1-jquery.2.1.2", 19 | "requirejs": "2.1.10", 20 | "qunit": "1.14.0", 21 | "sinon": "1.8.1" 22 | }, 23 | "keywords": [ 24 | "jquery", 25 | "javascript", 26 | "library" 27 | ], 28 | "homepage": "https://github.com/jquery/jquery", 29 | "_release": "2.1.4", 30 | "_resolution": { 31 | "type": "version", 32 | "tag": "2.1.4", 33 | "commit": "7751e69b615c6eca6f783a81e292a55725af6b85" 34 | }, 35 | "_source": "git://github.com/jquery/jquery.git", 36 | "_target": "2.1.4", 37 | "_originalSource": "jquery" 38 | } -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/lib/jquery/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 jQuery Foundation and other contributors 2 | http://jquery.com/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /samples/AspnetAngular1.Webpack/wwwroot/web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.AspNetCore.Mvc; 3 | 4 | namespace AspnetReact.Webpack.Controllers 5 | { 6 | public class HomeController : Controller 7 | { 8 | public IActionResult Index() 9 | { 10 | return View(); 11 | } 12 | 13 | public IActionResult Error() 14 | { 15 | return View(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using Microsoft.AspNetCore.Hosting; 4 | 5 | namespace AspnetReact.Webpack 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | var host = new WebHostBuilder() 12 | .UseKestrel() 13 | .UseContentRoot(Directory.GetCurrentDirectory()) 14 | .UseIISIntegration() 15 | .UseStartup() 16 | .Build(); 17 | 18 | host.Run(); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:49789/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "ClientCore": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "launchUrl": "http://localhost:5000", 22 | "environmentVariables": { 23 | "ASPNETCORE_ENVIRONMENT": "Development" 24 | } 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/README.md: -------------------------------------------------------------------------------- 1 | # Asp.net 5 web application with React.js, webpack and live reload 2 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Home Page"; 3 | } 4 | 5 |
6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Error"; 3 | } 4 | 5 |

Error.

6 |

An error occurred while processing your request.

7 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using AspnetReact.Webpack 2 | @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" 3 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "aspnet-react-webpack", 3 | "version": "0.0.0", 4 | "devDependencies": { 5 | "babel-core": "^6.13.2", 6 | "babel-loader": "^6.2.4", 7 | "babel-preset-es2015": "^6.13.2", 8 | "babel-preset-react": "^6.11.1", 9 | "babel-preset-react-hmre": "^1.1.1", 10 | "css-loader": "^0.23.1", 11 | "file-loader": "^0.9.0", 12 | "node-sass": "^3.8.0", 13 | "sass-loader": "^4.0.0", 14 | "style-loader": "^0.13.1", 15 | "url-loader": "^0.5.7", 16 | "webpack": "^1.13.1", 17 | "webpack-dev-server": "^1.14.1" 18 | }, 19 | "dependencies": { 20 | "axios": "^0.13.1", 21 | "lodash": "^4.15.0", 22 | "react": "^15.3.0", 23 | "react-bootstrap": "^0.30.2", 24 | "react-dom": "^15.3.0", 25 | "react-overlays": "^0.6.6" 26 | }, 27 | "babel": { 28 | "env": { 29 | "development": { 30 | "presets": [ 31 | "react-hmre" 32 | ] 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # http://editorconfig.org 4 | 5 | root = true 6 | 7 | [*] 8 | 9 | # Change these settings to your own preference 10 | indent_style = space 11 | indent_size = 2 12 | 13 | # We recommend you to keep these unchanged 14 | end_of_line = lf 15 | charset = utf-8 16 | trim_trailing_whitespace = true 17 | insert_final_newline = true 18 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/apiService.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | const urlBase = 'https://api.github.com/'; 4 | 5 | export default { 6 | searchRepositories(search, language) { 7 | let url = `${urlBase}search/repositories?q=${search}`; 8 | if (language) { 9 | url += `+language:${language}`; 10 | } 11 | return axios.get(url) 12 | .then(response => response.data); 13 | }, 14 | }; 15 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/components/app.jsx: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | 3 | import '../styles/site.scss'; 4 | 5 | import MainController from './mainController.jsx'; 6 | import githubLogo from '../images/github-logo.png'; 7 | import largeImage from '../images/react-large.png'; 8 | 9 | class App extends Component { 10 | render() { 11 | return ( 12 |
13 | 14 | large-image 15 | 16 |
17 | ); 18 | } 19 | } 20 | 21 | export default App; 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/components/mainContent.jsx: -------------------------------------------------------------------------------- 1 | import React, {Component, PropTypes} from 'react'; 2 | import {Grid, Row, Col} from 'react-bootstrap'; 3 | 4 | import SearchForm from './searchForm.jsx'; 5 | import RepositoriesList from './repositoriesList.jsx'; 6 | import RepositoryDetails from './repositoryDetails.jsx'; 7 | 8 | const MainContent = (props) => ( 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | ); 23 | 24 | MainContent.propTypes = { 25 | search: PropTypes.func.isRequired, 26 | repositories: PropTypes.array.isRequired, 27 | selectRepository: PropTypes.func.isRequired, 28 | activeRepository: PropTypes.object, 29 | }; 30 | 31 | export default MainContent; 32 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/components/mainController.jsx: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import _ from 'lodash'; 3 | 4 | import ApiService from '../apiService.js'; 5 | import MainContent from './mainContent.jsx'; 6 | 7 | class MainController extends Component { 8 | constructor(props) { 9 | super(props); 10 | 11 | this.state = {repositories: [], activeRepository: {}}; 12 | this.handleSearch = this.handleSearch.bind(this); 13 | this.handleRepositorySelected = this.handleRepositorySelected.bind(this); 14 | } 15 | 16 | handleSearch(search, language) { 17 | ApiService.searchRepositories(search, language).then(data => { 18 | this.setState({repositories: data.items, activeRepository: {}}); 19 | }); 20 | } 21 | 22 | handleRepositorySelected(id) { 23 | const repo = _.find(this.state.repositories, {id}); 24 | if (repo) { 25 | this.setState({activeRepository: repo}); 26 | } 27 | } 28 | 29 | render() { 30 | return ( 31 | 37 | ); 38 | } 39 | } 40 | 41 | export default MainController; 42 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/components/repositoriesList.jsx: -------------------------------------------------------------------------------- 1 | import React, {Component, PropTypes} from 'react'; 2 | 3 | import RepositoryItem from './repositoryItem.jsx'; 4 | 5 | const RepositoriesList = (props) => ( 6 |
7 | {props.repositories.map(rep => 8 | 9 | )} 10 |
11 | ); 12 | 13 | RepositoriesList.propTypes = { 14 | repositories: PropTypes.array.isRequired, 15 | selectRepository: PropTypes.func.isRequired, 16 | }; 17 | 18 | export default RepositoriesList; 19 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/components/repositoryDetails.jsx: -------------------------------------------------------------------------------- 1 | import React, {Component, PropTypes} from 'react'; 2 | import {Panel} from 'react-bootstrap'; 3 | import {AutoAffix} from 'react-overlays'; 4 | 5 | const RepositoryDetails = (props) => { 6 | if (!props.full_name) { 7 | return ; 8 | } 9 | const header = ( 10 | Full name: {props.full_name} 11 | ); 12 | return ( 13 | 14 | 15 |

Description: {props.description}

16 |

Created at: {props.created_at}

17 |

Stars: {props.stargazers_count}

18 |

Watchers: {props.watchers_count}

19 |
20 |
21 | ); 22 | }; 23 | 24 | RepositoryDetails.propTypes = { 25 | id: PropTypes.number, 26 | full_name: PropTypes.string, 27 | description: PropTypes.string, 28 | created_at: PropTypes.string, 29 | stargazers_count: PropTypes.number, 30 | watchers_count: PropTypes.number, 31 | }; 32 | 33 | export default RepositoryDetails; 34 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/components/repositoryItem.jsx: -------------------------------------------------------------------------------- 1 | import React, {Component, PropTypes} from 'react'; 2 | import {Panel} from 'react-bootstrap'; 3 | 4 | class RepositoryItem extends Component { 5 | constructor(props) { 6 | super(props); 7 | 8 | this.handleClick = this.handleClick.bind(this); 9 | } 10 | 11 | handleClick() { 12 | this.props.onSelect(this.props.id); 13 | } 14 | 15 | render() { 16 | return ( 17 | 18 |

{this.props.full_name}

19 |
Score: {this.props.score}
20 |

{this.props.description}

21 | Github repo 22 |
23 | ); 24 | } 25 | } 26 | 27 | RepositoryItem.propTypes = { 28 | id: PropTypes.number.isRequired, 29 | full_name: PropTypes.string.isRequired, 30 | description: PropTypes.string, 31 | html_url: PropTypes.string.isRequired, 32 | score: PropTypes.number, 33 | onSelect: PropTypes.func.isRequired, 34 | }; 35 | 36 | export default RepositoryItem; 37 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/images/github-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/reactApp/images/github-logo.png -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/images/react-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/reactApp/images/react-large.png -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | 4 | import App from './components/app.jsx'; 5 | 6 | ReactDOM.render(, document.getElementById('react-app')); 7 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "ES6" 5 | } 6 | } -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/reactApp/styles/site.scss: -------------------------------------------------------------------------------- 1 | $secondsColor: red; 2 | 3 | body { 4 | padding-top: 60px; 5 | padding-bottom: 40px; 6 | } 7 | 8 | #github-logo{ 9 | position: fixed; 10 | right: 0px; 11 | top: 55px; 12 | z-index: -1; 13 | height: 100px; 14 | } 15 | 16 | #background-image { 17 | position: fixed; 18 | top: 0; 19 | left: 0; 20 | opacity: 0.25; 21 | z-index: -2; 22 | width: 100%; 23 | } 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/webpack_external/webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | var webpack = require('webpack'); 3 | 4 | var project = require('../project.json'); 5 | var ROOT_PATH = path.resolve(__dirname); 6 | 7 | module.exports = { 8 | entry: path.resolve('reactApp', 'index.js'), 9 | output: { 10 | path: path.resolve(project.webroot), 11 | filename: 'bundle.js', 12 | publicPath: 'http://localhost:4000/' 13 | }, 14 | resolve: { 15 | extensions: ['', '.js', '.jsx'], 16 | }, 17 | module: { 18 | loaders: [ 19 | { 20 | test: /\.jsx?$/, 21 | loader: 'babel', 22 | exclude: /node_modules/, 23 | query: { 24 | presets: ['es2015', 'react'] 25 | } 26 | }, 27 | { 28 | test: /\.scss$/, 29 | loaders: ["style", "css", "sass"] 30 | }, 31 | { 32 | test: /\.(png|jpg)$/, 33 | loader: 'url-loader?limit=100000' 34 | } 35 | ] 36 | }, 37 | devtool: 'source-map', 38 | devServer: { 39 | host: "0.0.0.0", 40 | port: "4000", 41 | colors: true, 42 | historyApiFallback: true, 43 | hot: true, 44 | inline: true, 45 | stats: 'errors-only' 46 | }, 47 | plugins: [ 48 | new webpack.HotModuleReplacementPlugin() 49 | ] 50 | }; 51 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/favicon.ico -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": ">= 1.9.1" 33 | }, 34 | "version": "3.3.5", 35 | "_release": "3.3.5", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.3.5", 39 | "commit": "16b48259a62f576e52c903c476bd42b90ab22482" 40 | }, 41 | "_source": "git://github.com/twbs/bootstrap.git", 42 | "_target": "3.3.5", 43 | "_originalSource": "bootstrap" 44 | } -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2015 Twitter, Inc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.", 4 | "keywords": [ 5 | "css", 6 | "js", 7 | "less", 8 | "mobile-first", 9 | "responsive", 10 | "front-end", 11 | "framework", 12 | "web" 13 | ], 14 | "homepage": "http://getbootstrap.com", 15 | "license": "MIT", 16 | "moduleType": "globals", 17 | "main": [ 18 | "less/bootstrap.less", 19 | "dist/js/bootstrap.js" 20 | ], 21 | "ignore": [ 22 | "/.*", 23 | "_config.yml", 24 | "CNAME", 25 | "composer.json", 26 | "CONTRIBUTING.md", 27 | "docs", 28 | "js/tests", 29 | "test-infra" 30 | ], 31 | "dependencies": { 32 | "jquery": ">= 1.9.1" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xabikos/aspnet-webpack/be9b8e9c7dff7f7d457bfeaf8ff565c94afd5142/samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/grunt/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends" : "../js/.jshintrc", 3 | "asi" : false, 4 | "browser" : false, 5 | "es3" : false, 6 | "node" : true 7 | } 8 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/grunt/bs-commonjs-generator.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Grunt task for the CommonJS module generation 3 | * http://getbootstrap.com 4 | * Copyright 2014-2015 Twitter, Inc. 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 | */ 7 | 8 | 'use strict'; 9 | 10 | var fs = require('fs'); 11 | var path = require('path'); 12 | 13 | var COMMONJS_BANNER = '// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.\n'; 14 | 15 | module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) { 16 | var destDir = path.dirname(destFilepath); 17 | 18 | function srcPathToDestRequire(srcFilepath) { 19 | var requirePath = path.relative(destDir, srcFilepath).replace(/\\/g, '/'); 20 | return 'require(\'' + requirePath + '\')'; 21 | } 22 | 23 | var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n'); 24 | try { 25 | fs.writeFileSync(destFilepath, moduleOutputJs); 26 | } catch (err) { 27 | grunt.fail.warn(err); 28 | } 29 | grunt.log.writeln('File ' + destFilepath.cyan + ' created.'); 30 | }; 31 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/js/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "asi" : true, 3 | "browser" : true, 4 | "eqeqeq" : false, 5 | "eqnull" : true, 6 | "es3" : true, 7 | "expr" : true, 8 | "jquery" : true, 9 | "latedef" : true, 10 | "laxbreak" : true, 11 | "nonbsp" : true, 12 | "strict" : true, 13 | "undef" : true, 14 | "unused" : true 15 | } 16 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/.csslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "adjoining-classes": false, 3 | "box-sizing": false, 4 | "box-model": false, 5 | "compatible-vendor-prefixes": false, 6 | "floats": false, 7 | "font-sizes": false, 8 | "gradients": false, 9 | "important": false, 10 | "known-properties": false, 11 | "outline-none": false, 12 | "qualified-headings": false, 13 | "regex-selectors": false, 14 | "shorthand": false, 15 | "text-indent": false, 16 | "unique-headings": false, 17 | "universal-selector": false, 18 | "unqualified-attributes": false 19 | } 20 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/breadcrumbs.less: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal; 8 | margin-bottom: @line-height-computed; 9 | list-style: none; 10 | background-color: @breadcrumb-bg; 11 | border-radius: @border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: @breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: @breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/close.less: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: (@font-size-base * 1.5); 9 | font-weight: @close-font-weight; 10 | line-height: 1; 11 | color: @close-color; 12 | text-shadow: @close-text-shadow; 13 | .opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: @close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | .opacity(.5); 21 | } 22 | 23 | // Additional properties for button version 24 | // iOS requires the button element instead of an anchor tag. 25 | // If you want the anchor version, it requires `href="#"`. 26 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 27 | button& { 28 | padding: 0; 29 | cursor: pointer; 30 | background: transparent; 31 | border: 0; 32 | -webkit-appearance: none; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/component-animations.less: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | .transition(opacity .15s linear); 13 | &.in { 14 | opacity: 1; 15 | } 16 | } 17 | 18 | .collapse { 19 | display: none; 20 | 21 | &.in { display: block; } 22 | tr&.in { display: table-row; } 23 | tbody&.in { display: table-row-group; } 24 | } 25 | 26 | .collapsing { 27 | position: relative; 28 | height: 0; 29 | overflow: hidden; 30 | .transition-property(~"height, visibility"); 31 | .transition-duration(.35s); 32 | .transition-timing-function(ease); 33 | } 34 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/jumbotron.less: -------------------------------------------------------------------------------- 1 | // 2 | // Jumbotron 3 | // -------------------------------------------------- 4 | 5 | 6 | .jumbotron { 7 | padding-top: @jumbotron-padding; 8 | padding-bottom: @jumbotron-padding; 9 | margin-bottom: @jumbotron-padding; 10 | color: @jumbotron-color; 11 | background-color: @jumbotron-bg; 12 | 13 | h1, 14 | .h1 { 15 | color: @jumbotron-heading-color; 16 | } 17 | 18 | p { 19 | margin-bottom: (@jumbotron-padding / 2); 20 | font-size: @jumbotron-font-size; 21 | font-weight: 200; 22 | } 23 | 24 | > hr { 25 | border-top-color: darken(@jumbotron-bg, 10%); 26 | } 27 | 28 | .container &, 29 | .container-fluid & { 30 | border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container 31 | } 32 | 33 | .container { 34 | max-width: 100%; 35 | } 36 | 37 | @media screen and (min-width: @screen-sm-min) { 38 | padding-top: (@jumbotron-padding * 1.6); 39 | padding-bottom: (@jumbotron-padding * 1.6); 40 | 41 | .container &, 42 | .container-fluid & { 43 | padding-left: (@jumbotron-padding * 2); 44 | padding-right: (@jumbotron-padding * 2); 45 | } 46 | 47 | h1, 48 | .h1 { 49 | font-size: @jumbotron-heading-font-size; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/media.less: -------------------------------------------------------------------------------- 1 | .media { 2 | // Proper spacing between instances of .media 3 | margin-top: 15px; 4 | 5 | &:first-child { 6 | margin-top: 0; 7 | } 8 | } 9 | 10 | .media, 11 | .media-body { 12 | zoom: 1; 13 | overflow: hidden; 14 | } 15 | 16 | .media-body { 17 | width: 10000px; 18 | } 19 | 20 | .media-object { 21 | display: block; 22 | 23 | // Fix collapse in webkit from max-width: 100% and display: table-cell. 24 | &.img-thumbnail { 25 | max-width: none; 26 | } 27 | } 28 | 29 | .media-right, 30 | .media > .pull-right { 31 | padding-left: 10px; 32 | } 33 | 34 | .media-left, 35 | .media > .pull-left { 36 | padding-right: 10px; 37 | } 38 | 39 | .media-left, 40 | .media-right, 41 | .media-body { 42 | display: table-cell; 43 | vertical-align: top; 44 | } 45 | 46 | .media-middle { 47 | vertical-align: middle; 48 | } 49 | 50 | .media-bottom { 51 | vertical-align: bottom; 52 | } 53 | 54 | // Reset margins on headings for tighter default spacing 55 | .media-heading { 56 | margin-top: 0; 57 | margin-bottom: 5px; 58 | } 59 | 60 | // Media list variation 61 | // 62 | // Undo default ul/ol styles 63 | .media-list { 64 | padding-left: 0; 65 | list-style: none; 66 | } 67 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | 4 | // Utilities 5 | @import "mixins/hide-text.less"; 6 | @import "mixins/opacity.less"; 7 | @import "mixins/image.less"; 8 | @import "mixins/labels.less"; 9 | @import "mixins/reset-filter.less"; 10 | @import "mixins/resize.less"; 11 | @import "mixins/responsive-visibility.less"; 12 | @import "mixins/size.less"; 13 | @import "mixins/tab-focus.less"; 14 | @import "mixins/reset-text.less"; 15 | @import "mixins/text-emphasis.less"; 16 | @import "mixins/text-overflow.less"; 17 | @import "mixins/vendor-prefixes.less"; 18 | 19 | // Components 20 | @import "mixins/alerts.less"; 21 | @import "mixins/buttons.less"; 22 | @import "mixins/panels.less"; 23 | @import "mixins/pagination.less"; 24 | @import "mixins/list-group.less"; 25 | @import "mixins/nav-divider.less"; 26 | @import "mixins/forms.less"; 27 | @import "mixins/progress-bar.less"; 28 | @import "mixins/table-row.less"; 29 | 30 | // Skins 31 | @import "mixins/background-variant.less"; 32 | @import "mixins/border-radius.less"; 33 | @import "mixins/gradients.less"; 34 | 35 | // Layout 36 | @import "mixins/clearfix.less"; 37 | @import "mixins/center-block.less"; 38 | @import "mixins/nav-vertical-align.less"; 39 | @import "mixins/grid-framework.less"; 40 | @import "mixins/grid.less"; 41 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/alerts.less: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | .alert-variant(@background; @border; @text-color) { 4 | background-color: @background; 5 | border-color: @border; 6 | color: @text-color; 7 | 8 | hr { 9 | border-top-color: darken(@border, 5%); 10 | } 11 | .alert-link { 12 | color: darken(@text-color, 10%); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/background-variant.less: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | 3 | .bg-variant(@color) { 4 | background-color: @color; 5 | a&:hover, 6 | a&:focus { 7 | background-color: darken(@color, 10%); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/border-radius.less: -------------------------------------------------------------------------------- 1 | // Single side border-radius 2 | 3 | .border-top-radius(@radius) { 4 | border-top-right-radius: @radius; 5 | border-top-left-radius: @radius; 6 | } 7 | .border-right-radius(@radius) { 8 | border-bottom-right-radius: @radius; 9 | border-top-right-radius: @radius; 10 | } 11 | .border-bottom-radius(@radius) { 12 | border-bottom-right-radius: @radius; 13 | border-bottom-left-radius: @radius; 14 | } 15 | .border-left-radius(@radius) { 16 | border-bottom-left-radius: @radius; 17 | border-top-left-radius: @radius; 18 | } 19 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/center-block.less: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | .center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/clearfix.less: -------------------------------------------------------------------------------- 1 | // Clearfix 2 | // 3 | // For modern browsers 4 | // 1. The space content is one way to avoid an Opera bug when the 5 | // contenteditable attribute is included anywhere else in the document. 6 | // Otherwise it causes space to appear at the top and bottom of elements 7 | // that are clearfixed. 8 | // 2. The use of `table` rather than `block` is only necessary if using 9 | // `:before` to contain the top-margins of child elements. 10 | // 11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/ 12 | 13 | .clearfix() { 14 | &:before, 15 | &:after { 16 | content: " "; // 1 17 | display: table; // 2 18 | } 19 | &:after { 20 | clear: both; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/hide-text.less: -------------------------------------------------------------------------------- 1 | // CSS image replacement 2 | // 3 | // Heads up! v3 launched with only `.hide-text()`, but per our pattern for 4 | // mixins being reused as classes with the same name, this doesn't hold up. As 5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. 6 | // 7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 8 | 9 | // Deprecated as of v3.0.1 (will be removed in v4) 10 | .hide-text() { 11 | font: ~"0/0" a; 12 | color: transparent; 13 | text-shadow: none; 14 | background-color: transparent; 15 | border: 0; 16 | } 17 | 18 | // New mixin to use as of v3.0.1 19 | .text-hide() { 20 | .hide-text(); 21 | } 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/image.less: -------------------------------------------------------------------------------- 1 | // Image Mixins 2 | // - Responsive image 3 | // - Retina image 4 | 5 | 6 | // Responsive image 7 | // 8 | // Keep images from scaling beyond the width of their parents. 9 | .img-responsive(@display: block) { 10 | display: @display; 11 | max-width: 100%; // Part 1: Set a maximum relative to the parent 12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching 13 | } 14 | 15 | 16 | // Retina image 17 | // 18 | // Short retina mixin for setting background-image and -size. Note that the 19 | // spelling of `min--moz-device-pixel-ratio` is intentional. 20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) { 21 | background-image: url("@{file-1x}"); 22 | 23 | @media 24 | only screen and (-webkit-min-device-pixel-ratio: 2), 25 | only screen and ( min--moz-device-pixel-ratio: 2), 26 | only screen and ( -o-min-device-pixel-ratio: 2/1), 27 | only screen and ( min-device-pixel-ratio: 2), 28 | only screen and ( min-resolution: 192dpi), 29 | only screen and ( min-resolution: 2dppx) { 30 | background-image: url("@{file-2x}"); 31 | background-size: @width-1x @height-1x; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/labels.less: -------------------------------------------------------------------------------- 1 | // Labels 2 | 3 | .label-variant(@color) { 4 | background-color: @color; 5 | 6 | &[href] { 7 | &:hover, 8 | &:focus { 9 | background-color: darken(@color, 10%); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/list-group.less: -------------------------------------------------------------------------------- 1 | // List Groups 2 | 3 | .list-group-item-variant(@state; @background; @color) { 4 | .list-group-item-@{state} { 5 | color: @color; 6 | background-color: @background; 7 | 8 | a&, 9 | button& { 10 | color: @color; 11 | 12 | .list-group-item-heading { 13 | color: inherit; 14 | } 15 | 16 | &:hover, 17 | &:focus { 18 | color: @color; 19 | background-color: darken(@background, 5%); 20 | } 21 | &.active, 22 | &.active:hover, 23 | &.active:focus { 24 | color: #fff; 25 | background-color: @color; 26 | border-color: @color; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/nav-divider.less: -------------------------------------------------------------------------------- 1 | // Horizontal dividers 2 | // 3 | // Dividers (basically an hr) within dropdowns and nav lists 4 | 5 | .nav-divider(@color: #e5e5e5) { 6 | height: 1px; 7 | margin: ((@line-height-computed / 2) - 1) 0; 8 | overflow: hidden; 9 | background-color: @color; 10 | } 11 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/nav-vertical-align.less: -------------------------------------------------------------------------------- 1 | // Navbar vertical align 2 | // 3 | // Vertically center elements in the navbar. 4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin. 5 | 6 | .navbar-vertical-align(@element-height) { 7 | margin-top: ((@navbar-height - @element-height) / 2); 8 | margin-bottom: ((@navbar-height - @element-height) / 2); 9 | } 10 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/opacity.less: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | .opacity(@opacity) { 4 | opacity: @opacity; 5 | // IE8 filter 6 | @opacity-ie: (@opacity * 100); 7 | filter: ~"alpha(opacity=@{opacity-ie})"; 8 | } 9 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/pagination.less: -------------------------------------------------------------------------------- 1 | // Pagination 2 | 3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) { 4 | > li { 5 | > a, 6 | > span { 7 | padding: @padding-vertical @padding-horizontal; 8 | font-size: @font-size; 9 | line-height: @line-height; 10 | } 11 | &:first-child { 12 | > a, 13 | > span { 14 | .border-left-radius(@border-radius); 15 | } 16 | } 17 | &:last-child { 18 | > a, 19 | > span { 20 | .border-right-radius(@border-radius); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/panels.less: -------------------------------------------------------------------------------- 1 | // Panels 2 | 3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) { 4 | border-color: @border; 5 | 6 | & > .panel-heading { 7 | color: @heading-text-color; 8 | background-color: @heading-bg-color; 9 | border-color: @heading-border; 10 | 11 | + .panel-collapse > .panel-body { 12 | border-top-color: @border; 13 | } 14 | .badge { 15 | color: @heading-bg-color; 16 | background-color: @heading-text-color; 17 | } 18 | } 19 | & > .panel-footer { 20 | + .panel-collapse > .panel-body { 21 | border-bottom-color: @border; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/progress-bar.less: -------------------------------------------------------------------------------- 1 | // Progress bars 2 | 3 | .progress-bar-variant(@color) { 4 | background-color: @color; 5 | 6 | // Deprecated parent class requirement as of v3.2.0 7 | .progress-striped & { 8 | #gradient > .striped(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/reset-filter.less: -------------------------------------------------------------------------------- 1 | // Reset filters for IE 2 | // 3 | // When you need to remove a gradient background, do not forget to use this to reset 4 | // the IE filter for IE9 and below. 5 | 6 | .reset-filter() { 7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); 8 | } 9 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/reset-text.less: -------------------------------------------------------------------------------- 1 | .reset-text() { 2 | font-family: @font-family-base; 3 | // We deliberately do NOT reset font-size. 4 | font-style: normal; 5 | font-weight: normal; 6 | letter-spacing: normal; 7 | line-break: auto; 8 | line-height: @line-height-base; 9 | text-align: left; // Fallback for where `start` is not supported 10 | text-align: start; 11 | text-decoration: none; 12 | text-shadow: none; 13 | text-transform: none; 14 | white-space: normal; 15 | word-break: normal; 16 | word-spacing: normal; 17 | word-wrap: normal; 18 | } 19 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/resize.less: -------------------------------------------------------------------------------- 1 | // Resize anything 2 | 3 | .resizable(@direction) { 4 | resize: @direction; // Options: horizontal, vertical, both 5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible` 6 | } 7 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/responsive-visibility.less: -------------------------------------------------------------------------------- 1 | // Responsive utilities 2 | 3 | // 4 | // More easily include all the states for responsive-utilities.less. 5 | .responsive-visibility() { 6 | display: block !important; 7 | table& { display: table !important; } 8 | tr& { display: table-row !important; } 9 | th&, 10 | td& { display: table-cell !important; } 11 | } 12 | 13 | .responsive-invisibility() { 14 | display: none !important; 15 | } 16 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/size.less: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | .size(@width; @height) { 4 | width: @width; 5 | height: @height; 6 | } 7 | 8 | .square(@size) { 9 | .size(@size; @size); 10 | } 11 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/tab-focus.less: -------------------------------------------------------------------------------- 1 | // WebKit-style focus 2 | 3 | .tab-focus() { 4 | // Default 5 | outline: thin dotted; 6 | // WebKit 7 | outline: 5px auto -webkit-focus-ring-color; 8 | outline-offset: -2px; 9 | } 10 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/table-row.less: -------------------------------------------------------------------------------- 1 | // Tables 2 | 3 | .table-row-variant(@state; @background) { 4 | // Exact selectors below required to override `.table-striped` and prevent 5 | // inheritance to nested tables. 6 | .table > thead > tr, 7 | .table > tbody > tr, 8 | .table > tfoot > tr { 9 | > td.@{state}, 10 | > th.@{state}, 11 | &.@{state} > td, 12 | &.@{state} > th { 13 | background-color: @background; 14 | } 15 | } 16 | 17 | // Hover states for `.table-hover` 18 | // Note: this is not available for cells or rows within `thead` or `tfoot`. 19 | .table-hover > tbody > tr { 20 | > td.@{state}:hover, 21 | > th.@{state}:hover, 22 | &.@{state}:hover > td, 23 | &:hover > .@{state}, 24 | &.@{state}:hover > th { 25 | background-color: darken(@background, 5%); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/text-emphasis.less: -------------------------------------------------------------------------------- 1 | // Typography 2 | 3 | .text-emphasis-variant(@color) { 4 | color: @color; 5 | a&:hover, 6 | a&:focus { 7 | color: darken(@color, 10%); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/mixins/text-overflow.less: -------------------------------------------------------------------------------- 1 | // Text overflow 2 | // Requires inline-block or block for proper styling 3 | 4 | .text-overflow() { 5 | overflow: hidden; 6 | text-overflow: ellipsis; 7 | white-space: nowrap; 8 | } 9 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/pager.less: -------------------------------------------------------------------------------- 1 | // 2 | // Pager pagination 3 | // -------------------------------------------------- 4 | 5 | 6 | .pager { 7 | padding-left: 0; 8 | margin: @line-height-computed 0; 9 | list-style: none; 10 | text-align: center; 11 | &:extend(.clearfix all); 12 | li { 13 | display: inline; 14 | > a, 15 | > span { 16 | display: inline-block; 17 | padding: 5px 14px; 18 | background-color: @pager-bg; 19 | border: 1px solid @pager-border; 20 | border-radius: @pager-border-radius; 21 | } 22 | 23 | > a:hover, 24 | > a:focus { 25 | text-decoration: none; 26 | background-color: @pager-hover-bg; 27 | } 28 | } 29 | 30 | .next { 31 | > a, 32 | > span { 33 | float: right; 34 | } 35 | } 36 | 37 | .previous { 38 | > a, 39 | > span { 40 | float: left; 41 | } 42 | } 43 | 44 | .disabled { 45 | > a, 46 | > a:hover, 47 | > a:focus, 48 | > span { 49 | color: @pager-disabled-color; 50 | background-color: @pager-bg; 51 | cursor: @cursor-disabled; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/responsive-embed.less: -------------------------------------------------------------------------------- 1 | // Embeds responsive 2 | // 3 | // Credit: Nicolas Gallagher and SUIT CSS. 4 | 5 | .embed-responsive { 6 | position: relative; 7 | display: block; 8 | height: 0; 9 | padding: 0; 10 | overflow: hidden; 11 | 12 | .embed-responsive-item, 13 | iframe, 14 | embed, 15 | object, 16 | video { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | height: 100%; 22 | width: 100%; 23 | border: 0; 24 | } 25 | } 26 | 27 | // Modifier class for 16:9 aspect ratio 28 | .embed-responsive-16by9 { 29 | padding-bottom: 56.25%; 30 | } 31 | 32 | // Modifier class for 4:3 aspect ratio 33 | .embed-responsive-4by3 { 34 | padding-bottom: 75%; 35 | } 36 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/thumbnails.less: -------------------------------------------------------------------------------- 1 | // 2 | // Thumbnails 3 | // -------------------------------------------------- 4 | 5 | 6 | // Mixin and adjust the regular image class 7 | .thumbnail { 8 | display: block; 9 | padding: @thumbnail-padding; 10 | margin-bottom: @line-height-computed; 11 | line-height: @line-height-base; 12 | background-color: @thumbnail-bg; 13 | border: 1px solid @thumbnail-border; 14 | border-radius: @thumbnail-border-radius; 15 | .transition(border .2s ease-in-out); 16 | 17 | > img, 18 | a > img { 19 | &:extend(.img-responsive); 20 | margin-left: auto; 21 | margin-right: auto; 22 | } 23 | 24 | // Add a hover state for linked versions only 25 | a&:hover, 26 | a&:focus, 27 | a&.active { 28 | border-color: @link-color; 29 | } 30 | 31 | // Image captions 32 | .caption { 33 | padding: @thumbnail-caption-padding; 34 | color: @thumbnail-caption-color; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/utilities.less: -------------------------------------------------------------------------------- 1 | // 2 | // Utility classes 3 | // -------------------------------------------------- 4 | 5 | 6 | // Floats 7 | // ------------------------- 8 | 9 | .clearfix { 10 | .clearfix(); 11 | } 12 | .center-block { 13 | .center-block(); 14 | } 15 | .pull-right { 16 | float: right !important; 17 | } 18 | .pull-left { 19 | float: left !important; 20 | } 21 | 22 | 23 | // Toggling content 24 | // ------------------------- 25 | 26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1 27 | .hide { 28 | display: none !important; 29 | } 30 | .show { 31 | display: block !important; 32 | } 33 | .invisible { 34 | visibility: hidden; 35 | } 36 | .text-hide { 37 | .text-hide(); 38 | } 39 | 40 | 41 | // Hide from screenreaders and browsers 42 | // 43 | // Credit: HTML5 Boilerplate 44 | 45 | .hidden { 46 | display: none !important; 47 | } 48 | 49 | 50 | // For Affix plugin 51 | // ------------------------- 52 | 53 | .affix { 54 | position: fixed; 55 | } 56 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/less/wells.less: -------------------------------------------------------------------------------- 1 | // 2 | // Wells 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .well { 8 | min-height: 20px; 9 | padding: 19px; 10 | margin-bottom: 20px; 11 | background-color: @well-bg; 12 | border: 1px solid @well-border; 13 | border-radius: @border-radius-base; 14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); 15 | blockquote { 16 | border-color: #ddd; 17 | border-color: rgba(0,0,0,.15); 18 | } 19 | } 20 | 21 | // Sizes 22 | .well-lg { 23 | padding: 24px; 24 | border-radius: @border-radius-large; 25 | } 26 | .well-sm { 27 | padding: 9px; 28 | border-radius: @border-radius-small; 29 | } 30 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/bootstrap/package.js: -------------------------------------------------------------------------------- 1 | // package metadata file for Meteor.js 2 | 3 | /* jshint strict:false */ 4 | /* global Package:true */ 5 | 6 | Package.describe({ 7 | name: 'twbs:bootstrap', // http://atmospherejs.com/twbs/bootstrap 8 | summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.', 9 | version: '3.3.5', 10 | git: 'https://github.com/twbs/bootstrap.git' 11 | }); 12 | 13 | Package.onUse(function (api) { 14 | api.versionsFrom('METEOR@1.0'); 15 | api.use('jquery', 'client'); 16 | api.addFiles([ 17 | 'dist/fonts/glyphicons-halflings-regular.eot', 18 | 'dist/fonts/glyphicons-halflings-regular.svg', 19 | 'dist/fonts/glyphicons-halflings-regular.ttf', 20 | 'dist/fonts/glyphicons-halflings-regular.woff', 21 | 'dist/fonts/glyphicons-halflings-regular.woff2', 22 | 'dist/css/bootstrap.css', 23 | 'dist/js/bootstrap.js' 24 | ], 'client'); 25 | }); 26 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation-unobtrusive/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation-unobtrusive", 3 | "version": "3.2.4", 4 | "homepage": "https://github.com/aspnet/jquery-validation-unobtrusive", 5 | "description": "Add-on to jQuery Validation to enable unobtrusive validation options in data-* attributes.", 6 | "main": [ 7 | "jquery.validate.unobtrusive.js" 8 | ], 9 | "ignore": [ 10 | "**/.*", 11 | "*.json", 12 | "*.md", 13 | "*.txt", 14 | "gulpfile.js" 15 | ], 16 | "keywords": [ 17 | "jquery", 18 | "asp.net", 19 | "mvc", 20 | "validation", 21 | "unobtrusive" 22 | ], 23 | "authors": [ 24 | "Microsoft" 25 | ], 26 | "license": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm", 27 | "repository": { 28 | "type": "git", 29 | "url": "git://github.com/aspnet/jquery-validation-unobtrusive.git" 30 | }, 31 | "dependencies": { 32 | "jquery-validation": ">=1.8", 33 | "jquery": ">=1.8" 34 | }, 35 | "_release": "3.2.4", 36 | "_resolution": { 37 | "type": "version", 38 | "tag": "v3.2.4", 39 | "commit": "13386cd1b5947d8a5d23a12b531ce3960be1eba7" 40 | }, 41 | "_source": "git://github.com/aspnet/jquery-validation-unobtrusive.git", 42 | "_target": "3.2.4", 43 | "_originalSource": "jquery-validation-unobtrusive" 44 | } -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation-unobtrusive/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation-unobtrusive", 3 | "version": "3.2.4", 4 | "homepage": "https://github.com/aspnet/jquery-validation-unobtrusive", 5 | "description": "Add-on to jQuery Validation to enable unobtrusive validation options in data-* attributes.", 6 | "main": [ 7 | "jquery.validate.unobtrusive.js" 8 | ], 9 | "ignore": [ 10 | "**/.*", 11 | "*.json", 12 | "*.md", 13 | "*.txt", 14 | "gulpfile.js" 15 | ], 16 | "keywords": [ 17 | "jquery", 18 | "asp.net", 19 | "mvc", 20 | "validation", 21 | "unobtrusive" 22 | ], 23 | "authors": [ 24 | "Microsoft" 25 | ], 26 | "license": "http://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm", 27 | "repository": { 28 | "type": "git", 29 | "url": "git://github.com/aspnet/jquery-validation-unobtrusive.git" 30 | }, 31 | "dependencies": { 32 | "jquery-validation": ">=1.8", 33 | "jquery": ">=1.8" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0", 31 | "_release": "1.14.0", 32 | "_resolution": { 33 | "type": "version", 34 | "tag": "1.14.0", 35 | "commit": "c1343fb9823392aa9acbe1c3ffd337b8c92fed48" 36 | }, 37 | "_source": "git://github.com/jzaefferer/jquery-validation.git", 38 | "_target": "1.14.0", 39 | "_originalSource": "jquery-validation" 40 | } -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright Jörn Zaefferer 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer " 10 | ], 11 | "description": "Form validation made easy", 12 | "main": "dist/jquery.validate.js", 13 | "keywords": [ 14 | "forms", 15 | "validation", 16 | "validate" 17 | ], 18 | "license": "MIT", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "demo", 25 | "lib" 26 | ], 27 | "dependencies": { 28 | "jquery": ">= 1.7.2" 29 | }, 30 | "version": "1.14.0" 31 | } 32 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/accept.js: -------------------------------------------------------------------------------- 1 | // Accept a value from a file input based on a required mimetype 2 | $.validator.addMethod("accept", function(value, element, param) { 3 | // Split mime on commas in case we have multiple types we can accept 4 | var typeParam = typeof param === "string" ? param.replace(/\s/g, "").replace(/,/g, "|") : "image/*", 5 | optionalValue = this.optional(element), 6 | i, file; 7 | 8 | // Element is optional 9 | if (optionalValue) { 10 | return optionalValue; 11 | } 12 | 13 | if ($(element).attr("type") === "file") { 14 | // If we are using a wildcard, make it regex friendly 15 | typeParam = typeParam.replace(/\*/g, ".*"); 16 | 17 | // Check if the element has a FileList before checking each file 18 | if (element.files && element.files.length) { 19 | for (i = 0; i < element.files.length; i++) { 20 | file = element.files[i]; 21 | 22 | // Grab the mimetype from the loaded file, verify it matches 23 | if (!file.type.match(new RegExp( "\\.?(" + typeParam + ")$", "i"))) { 24 | return false; 25 | } 26 | } 27 | } 28 | } 29 | 30 | // Either return true because we've validated each file, or because the 31 | // browser does not support element.files and the FileList feature 32 | return true; 33 | }, $.validator.format("Please enter a value with a valid mimetype.")); 34 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/additional.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | function stripHtml(value) { 4 | // remove html tags and space chars 5 | return value.replace(/<.[^<>]*?>/g, " ").replace(/ | /gi, " ") 6 | // remove punctuation 7 | .replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g, ""); 8 | } 9 | 10 | $.validator.addMethod("maxWords", function(value, element, params) { 11 | return this.optional(element) || stripHtml(value).match(/\b\w+\b/g).length <= params; 12 | }, $.validator.format("Please enter {0} words or less.")); 13 | 14 | $.validator.addMethod("minWords", function(value, element, params) { 15 | return this.optional(element) || stripHtml(value).match(/\b\w+\b/g).length >= params; 16 | }, $.validator.format("Please enter at least {0} words.")); 17 | 18 | $.validator.addMethod("rangeWords", function(value, element, params) { 19 | var valueStripped = stripHtml(value), 20 | regex = /\b\w+\b/g; 21 | return this.optional(element) || valueStripped.match(regex).length >= params[0] && valueStripped.match(regex).length <= params[1]; 22 | }, $.validator.format("Please enter between {0} and {1} words.")); 23 | 24 | }()); 25 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/alphanumeric.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("alphanumeric", function(value, element) { 2 | return this.optional(element) || /^\w+$/i.test(value); 3 | }, "Letters, numbers, and underscores only please"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/bankaccountNL.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Dutch bank account numbers (not 'giro' numbers) have 9 digits 3 | * and pass the '11 check'. 4 | * We accept the notation with spaces, as that is common. 5 | * acceptable: 123456789 or 12 34 56 789 6 | */ 7 | $.validator.addMethod("bankaccountNL", function(value, element) { 8 | if (this.optional(element)) { 9 | return true; 10 | } 11 | if (!(/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(value))) { 12 | return false; 13 | } 14 | // now '11 check' 15 | var account = value.replace(/ /g, ""), // remove spaces 16 | sum = 0, 17 | len = account.length, 18 | pos, factor, digit; 19 | for ( pos = 0; pos < len; pos++ ) { 20 | factor = len - pos; 21 | digit = account.substring(pos, pos + 1); 22 | sum = sum + factor * digit; 23 | } 24 | return sum % 11 === 0; 25 | }, "Please specify a valid bank account number"); 26 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/bankorgiroaccountNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("bankorgiroaccountNL", function(value, element) { 2 | return this.optional(element) || 3 | ($.validator.methods.bankaccountNL.call(this, value, element)) || 4 | ($.validator.methods.giroaccountNL.call(this, value, element)); 5 | }, "Please specify a valid bank or giro account number"); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/bic.js: -------------------------------------------------------------------------------- 1 | /** 2 | * BIC is the business identifier code (ISO 9362). This BIC check is not a guarantee for authenticity. 3 | * 4 | * BIC pattern: BBBBCCLLbbb (8 or 11 characters long; bbb is optional) 5 | * 6 | * BIC definition in detail: 7 | * - First 4 characters - bank code (only letters) 8 | * - Next 2 characters - ISO 3166-1 alpha-2 country code (only letters) 9 | * - Next 2 characters - location code (letters and digits) 10 | * a. shall not start with '0' or '1' 11 | * b. second character must be a letter ('O' is not allowed) or one of the following digits ('0' for test (therefore not allowed), '1' for passive participant and '2' for active participant) 12 | * - Last 3 characters - branch code, optional (shall not start with 'X' except in case of 'XXX' for primary office) (letters and digits) 13 | */ 14 | $.validator.addMethod("bic", function(value, element) { 15 | return this.optional( element ) || /^([A-Z]{6}[A-Z2-9][A-NP-Z1-2])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test( value ); 16 | }, "Please specify a valid BIC code"); 17 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/dateFA.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("dateFA", function(value, element) { 2 | return this.optional(element) || /^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(value); 3 | }, $.validator.messages.date); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/dateITA.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Return true, if the value is a valid date, also making this formal check dd/mm/yyyy. 3 | * 4 | * @example $.validator.methods.date("01/01/1900") 5 | * @result true 6 | * 7 | * @example $.validator.methods.date("01/13/1990") 8 | * @result false 9 | * 10 | * @example $.validator.methods.date("01.01.1900") 11 | * @result false 12 | * 13 | * @example 14 | * @desc Declares an optional input element whose value must be a valid date. 15 | * 16 | * @name $.validator.methods.dateITA 17 | * @type Boolean 18 | * @cat Plugins/Validate/Methods 19 | */ 20 | $.validator.addMethod("dateITA", function(value, element) { 21 | var check = false, 22 | re = /^\d{1,2}\/\d{1,2}\/\d{4}$/, 23 | adata, gg, mm, aaaa, xdata; 24 | if ( re.test(value)) { 25 | adata = value.split("/"); 26 | gg = parseInt(adata[0], 10); 27 | mm = parseInt(adata[1], 10); 28 | aaaa = parseInt(adata[2], 10); 29 | xdata = new Date(Date.UTC(aaaa, mm - 1, gg, 12, 0, 0, 0)); 30 | if ( ( xdata.getUTCFullYear() === aaaa ) && ( xdata.getUTCMonth () === mm - 1 ) && ( xdata.getUTCDate() === gg ) ) { 31 | check = true; 32 | } else { 33 | check = false; 34 | } 35 | } else { 36 | check = false; 37 | } 38 | return this.optional(element) || check; 39 | }, $.validator.messages.date); 40 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/dateNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("dateNL", function(value, element) { 2 | return this.optional(element) || /^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(value); 3 | }, $.validator.messages.date); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/extension.js: -------------------------------------------------------------------------------- 1 | // Older "accept" file extension method. Old docs: http://docs.jquery.com/Plugins/Validation/Methods/accept 2 | $.validator.addMethod("extension", function(value, element, param) { 3 | param = typeof param === "string" ? param.replace(/,/g, "|") : "png|jpe?g|gif"; 4 | return this.optional(element) || value.match(new RegExp("\\.(" + param + ")$", "i")); 5 | }, $.validator.format("Please enter a value with a valid extension.")); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/giroaccountNL.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Dutch giro account numbers (not bank numbers) have max 7 digits 3 | */ 4 | $.validator.addMethod("giroaccountNL", function(value, element) { 5 | return this.optional(element) || /^[0-9]{1,7}$/.test(value); 6 | }, "Please specify a valid giro account number"); 7 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/integer.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("integer", function(value, element) { 2 | return this.optional(element) || /^-?\d+$/.test(value); 3 | }, "A positive or negative non-decimal number please"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/ipv4.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("ipv4", function(value, element) { 2 | return this.optional(element) || /^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(value); 3 | }, "Please enter a valid IP v4 address."); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/ipv6.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("ipv6", function(value, element) { 2 | return this.optional(element) || /^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(value); 3 | }, "Please enter a valid IP v6 address."); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/lettersonly.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("lettersonly", function(value, element) { 2 | return this.optional(element) || /^[a-z]+$/i.test(value); 3 | }, "Letters only please"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/letterswithbasicpunc.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("letterswithbasicpunc", function(value, element) { 2 | return this.optional(element) || /^[a-z\-.,()'"\s]+$/i.test(value); 3 | }, "Letters or punctuation only please"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/mobileNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("mobileNL", function(value, element) { 2 | return this.optional(element) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(value); 3 | }, "Please specify a valid mobile number"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/mobileUK.js: -------------------------------------------------------------------------------- 1 | /* For UK phone functions, do the following server side processing: 2 | * Compare original input with this RegEx pattern: 3 | * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ 4 | * Extract $1 and set $prefix to '+44' if $1 is '44', otherwise set $prefix to '0' 5 | * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. 6 | * A number of very detailed GB telephone number RegEx patterns can also be found at: 7 | * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers 8 | */ 9 | $.validator.addMethod("mobileUK", function(phone_number, element) { 10 | phone_number = phone_number.replace(/\(|\)|\s+|-/g, ""); 11 | return this.optional(element) || phone_number.length > 9 && 12 | phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/); 13 | }, "Please specify a valid mobile number"); 14 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/nieES.js: -------------------------------------------------------------------------------- 1 | /* 2 | * The número de identidad de extranjero ( NIE )is a code used to identify the non-nationals in Spain 3 | */ 4 | $.validator.addMethod( "nieES", function( value ) { 5 | "use strict"; 6 | 7 | value = value.toUpperCase(); 8 | 9 | // Basic format test 10 | if ( !value.match( "((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)" ) ) { 11 | return false; 12 | } 13 | 14 | // Test NIE 15 | //T 16 | if ( /^[T]{1}/.test( value ) ) { 17 | return ( value[ 8 ] === /^[T]{1}[A-Z0-9]{8}$/.test( value ) ); 18 | } 19 | 20 | //XYZ 21 | if ( /^[XYZ]{1}/.test( value ) ) { 22 | return ( 23 | value[ 8 ] === "TRWAGMYFPDXBNJZSQVHLCKE".charAt( 24 | value.replace( "X", "0" ) 25 | .replace( "Y", "1" ) 26 | .replace( "Z", "2" ) 27 | .substring( 0, 8 ) % 23 28 | ) 29 | ); 30 | } 31 | 32 | return false; 33 | 34 | }, "Please specify a valid NIE number." ); 35 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/nifES.js: -------------------------------------------------------------------------------- 1 | /* 2 | * The Número de Identificación Fiscal ( NIF ) is the way tax identification used in Spain for individuals 3 | */ 4 | $.validator.addMethod( "nifES", function( value ) { 5 | "use strict"; 6 | 7 | value = value.toUpperCase(); 8 | 9 | // Basic format test 10 | if ( !value.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)") ) { 11 | return false; 12 | } 13 | 14 | // Test NIF 15 | if ( /^[0-9]{8}[A-Z]{1}$/.test( value ) ) { 16 | return ( "TRWAGMYFPDXBNJZSQVHLCKE".charAt( value.substring( 8, 0 ) % 23 ) === value.charAt( 8 ) ); 17 | } 18 | // Test specials NIF (starts with K, L or M) 19 | if ( /^[KLM]{1}/.test( value ) ) { 20 | return ( value[ 8 ] === String.fromCharCode( 64 ) ); 21 | } 22 | 23 | return false; 24 | 25 | }, "Please specify a valid NIF number." ); 26 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/notEqualTo.js: -------------------------------------------------------------------------------- 1 | jQuery.validator.addMethod( "notEqualTo", function( value, element, param ) { 2 | return this.optional(element) || !$.validator.methods.equalTo.call( this, value, element, param ); 3 | }, "Please enter a different value, values must not be the same." ); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/nowhitespace.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("nowhitespace", function(value, element) { 2 | return this.optional(element) || /^\S+$/i.test(value); 3 | }, "No white space please"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/pattern.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Return true if the field value matches the given format RegExp 3 | * 4 | * @example $.validator.methods.pattern("AR1004",element,/^AR\d{4}$/) 5 | * @result true 6 | * 7 | * @example $.validator.methods.pattern("BR1004",element,/^AR\d{4}$/) 8 | * @result false 9 | * 10 | * @name $.validator.methods.pattern 11 | * @type Boolean 12 | * @cat Plugins/Validate/Methods 13 | */ 14 | $.validator.addMethod("pattern", function(value, element, param) { 15 | if (this.optional(element)) { 16 | return true; 17 | } 18 | if (typeof param === "string") { 19 | param = new RegExp("^(?:" + param + ")$"); 20 | } 21 | return param.test(value); 22 | }, "Invalid format."); 23 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/phoneNL.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Dutch phone numbers have 10 digits (or 11 and start with +31). 3 | */ 4 | $.validator.addMethod("phoneNL", function(value, element) { 5 | return this.optional(element) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(value); 6 | }, "Please specify a valid phone number."); 7 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/phoneUK.js: -------------------------------------------------------------------------------- 1 | /* For UK phone functions, do the following server side processing: 2 | * Compare original input with this RegEx pattern: 3 | * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ 4 | * Extract $1 and set $prefix to '+44' if $1 is '44', otherwise set $prefix to '0' 5 | * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. 6 | * A number of very detailed GB telephone number RegEx patterns can also be found at: 7 | * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers 8 | */ 9 | $.validator.addMethod("phoneUK", function(phone_number, element) { 10 | phone_number = phone_number.replace(/\(|\)|\s+|-/g, ""); 11 | return this.optional(element) || phone_number.length > 9 && 12 | phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/); 13 | }, "Please specify a valid phone number"); 14 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/phoneUS.js: -------------------------------------------------------------------------------- 1 | /** 2 | * matches US phone number format 3 | * 4 | * where the area code may not start with 1 and the prefix may not start with 1 5 | * allows '-' or ' ' as a separator and allows parens around area code 6 | * some people may want to put a '1' in front of their number 7 | * 8 | * 1(212)-999-2345 or 9 | * 212 999 2344 or 10 | * 212-999-0983 11 | * 12 | * but not 13 | * 111-123-5434 14 | * and not 15 | * 212 123 4567 16 | */ 17 | $.validator.addMethod("phoneUS", function(phone_number, element) { 18 | phone_number = phone_number.replace(/\s+/g, ""); 19 | return this.optional(element) || phone_number.length > 9 && 20 | phone_number.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/); 21 | }, "Please specify a valid phone number"); 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/phonesUK.js: -------------------------------------------------------------------------------- 1 | /* For UK phone functions, do the following server side processing: 2 | * Compare original input with this RegEx pattern: 3 | * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ 4 | * Extract $1 and set $prefix to '+44' if $1 is '44', otherwise set $prefix to '0' 5 | * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. 6 | * A number of very detailed GB telephone number RegEx patterns can also be found at: 7 | * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers 8 | */ 9 | //Matches UK landline + mobile, accepting only 01-3 for landline or 07 for mobile to exclude many premium numbers 10 | $.validator.addMethod("phonesUK", function(phone_number, element) { 11 | phone_number = phone_number.replace(/\(|\)|\s+|-/g, ""); 12 | return this.optional(element) || phone_number.length > 9 && 13 | phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/); 14 | }, "Please specify a valid uk phone number"); 15 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/postalCodeCA.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Matches a valid Canadian Postal Code 3 | * 4 | * @example jQuery.validator.methods.postalCodeCA( "H0H 0H0", element ) 5 | * @result true 6 | * 7 | * @example jQuery.validator.methods.postalCodeCA( "H0H0H0", element ) 8 | * @result false 9 | * 10 | * @name jQuery.validator.methods.postalCodeCA 11 | * @type Boolean 12 | * @cat Plugins/Validate/Methods 13 | */ 14 | $.validator.addMethod( "postalCodeCA", function( value, element ) { 15 | return this.optional( element ) || /^[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d$/.test( value ); 16 | }, "Please specify a valid postal code" ); 17 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/postalcodeBR.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Valida CEPs do brasileiros: 3 | * 4 | * Formatos aceitos: 5 | * 99999-999 6 | * 99.999-999 7 | * 99999999 8 | */ 9 | $.validator.addMethod("postalcodeBR", function(cep_value, element) { 10 | return this.optional(element) || /^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test( cep_value ); 11 | }, "Informe um CEP válido."); 12 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/postalcodeIT.js: -------------------------------------------------------------------------------- 1 | /* Matches Italian postcode (CAP) */ 2 | $.validator.addMethod("postalcodeIT", function(value, element) { 3 | return this.optional(element) || /^\d{5}$/.test(value); 4 | }, "Please specify a valid postal code"); 5 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/postalcodeNL.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("postalcodeNL", function(value, element) { 2 | return this.optional(element) || /^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(value); 3 | }, "Please specify a valid postal code"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/postcodeUK.js: -------------------------------------------------------------------------------- 1 | // Matches UK postcode. Does not match to UK Channel Islands that have their own postcodes (non standard UK) 2 | $.validator.addMethod("postcodeUK", function(value, element) { 3 | return this.optional(element) || /^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(value); 4 | }, "Please specify a valid UK postcode"); 5 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/strippedminlength.js: -------------------------------------------------------------------------------- 1 | // TODO check if value starts with <, otherwise don't try stripping anything 2 | $.validator.addMethod("strippedminlength", function(value, element, param) { 3 | return $(value).text().length >= param; 4 | }, $.validator.format("Please enter at least {0} characters")); 5 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/time.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("time", function(value, element) { 2 | return this.optional(element) || /^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(value); 3 | }, "Please enter a valid time, between 00:00 and 23:59"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/time12h.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("time12h", function(value, element) { 2 | return this.optional(element) || /^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(value); 3 | }, "Please enter a valid time in 12-hour am/pm format"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/zipcodeUS.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("zipcodeUS", function(value, element) { 2 | return this.optional(element) || /^\d{5}(-\d{4})?$/.test(value); 3 | }, "The specified US ZIP Code is invalid"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/additional/ziprange.js: -------------------------------------------------------------------------------- 1 | $.validator.addMethod("ziprange", function(value, element) { 2 | return this.optional(element) || /^90[2-5]\d\{2\}-\d{4}$/.test(value); 3 | }, "Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx"); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/ajax.js: -------------------------------------------------------------------------------- 1 | // ajax mode: abort 2 | // usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); 3 | // if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() 4 | 5 | var pendingRequests = {}, 6 | ajax; 7 | // Use a prefilter if available (1.5+) 8 | if ( $.ajaxPrefilter ) { 9 | $.ajaxPrefilter(function( settings, _, xhr ) { 10 | var port = settings.port; 11 | if ( settings.mode === "abort" ) { 12 | if ( pendingRequests[port] ) { 13 | pendingRequests[port].abort(); 14 | } 15 | pendingRequests[port] = xhr; 16 | } 17 | }); 18 | } else { 19 | // Proxy ajax 20 | ajax = $.ajax; 21 | $.ajax = function( settings ) { 22 | var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode, 23 | port = ( "port" in settings ? settings : $.ajaxSettings ).port; 24 | if ( mode === "abort" ) { 25 | if ( pendingRequests[port] ) { 26 | pendingRequests[port].abort(); 27 | } 28 | pendingRequests[port] = ajax.apply(this, arguments); 29 | return pendingRequests[port]; 30 | } 31 | return ajax.apply(this, arguments); 32 | }; 33 | } 34 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_ar.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: AR (Arabic; العربية) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "هذا الحقل إلزامي", 7 | remote: "يرجى تصحيح هذا الحقل للمتابعة", 8 | email: "رجاء إدخال عنوان بريد إلكتروني صحيح", 9 | url: "رجاء إدخال عنوان موقع إلكتروني صحيح", 10 | date: "رجاء إدخال تاريخ صحيح", 11 | dateISO: "رجاء إدخال تاريخ صحيح (ISO)", 12 | number: "رجاء إدخال عدد بطريقة صحيحة", 13 | digits: "رجاء إدخال أرقام فقط", 14 | creditcard: "رجاء إدخال رقم بطاقة ائتمان صحيح", 15 | equalTo: "رجاء إدخال نفس القيمة", 16 | extension: "رجاء إدخال ملف بامتداد موافق عليه", 17 | maxlength: $.validator.format("الحد الأقصى لعدد الحروف هو {0}"), 18 | minlength: $.validator.format("الحد الأدنى لعدد الحروف هو {0}"), 19 | rangelength: $.validator.format("عدد الحروف يجب أن يكون بين {0} و {1}"), 20 | range: $.validator.format("رجاء إدخال عدد قيمته بين {0} و {1}"), 21 | max: $.validator.format("رجاء إدخال عدد أقل من أو يساوي (0}"), 22 | min: $.validator.format("رجاء إدخال عدد أكبر من أو يساوي (0}") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_bg.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: BG (Bulgarian; български език) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Полето е задължително.", 7 | remote: "Моля, въведете правилната стойност.", 8 | email: "Моля, въведете валиден email.", 9 | url: "Моля, въведете валидно URL.", 10 | date: "Моля, въведете валидна дата.", 11 | dateISO: "Моля, въведете валидна дата (ISO).", 12 | number: "Моля, въведете валиден номер.", 13 | digits: "Моля, въведете само цифри.", 14 | creditcard: "Моля, въведете валиден номер на кредитна карта.", 15 | equalTo: "Моля, въведете същата стойност отново.", 16 | extension: "Моля, въведете стойност с валидно разширение.", 17 | maxlength: $.validator.format("Моля, въведете повече от {0} символа."), 18 | minlength: $.validator.format("Моля, въведете поне {0} символа."), 19 | rangelength: $.validator.format("Моля, въведете стойност с дължина между {0} и {1} символа."), 20 | range: $.validator.format("Моля, въведете стойност между {0} и {1}."), 21 | max: $.validator.format("Моля, въведете стойност по-малка или равна на {0}."), 22 | min: $.validator.format("Моля, въведете стойност по-голяма или равна на {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_bn_BD.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: bn_BD (Bengali, Bangladesh) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "এই তথ্যটি আবশ্যক।", 7 | remote: "এই তথ্যটি ঠিক করুন।", 8 | email: "অনুগ্রহ করে একটি সঠিক মেইল ঠিকানা লিখুন।", 9 | url: "অনুগ্রহ করে একটি সঠিক লিঙ্ক দিন।", 10 | date: "তারিখ সঠিক নয়।", 11 | dateISO: "অনুগ্রহ করে একটি সঠিক (ISO) তারিখ লিখুন।", 12 | number: "অনুগ্রহ করে একটি সঠিক নম্বর লিখুন।", 13 | digits: "এখানে শুধু সংখ্যা ব্যবহার করা যাবে।", 14 | creditcard: "অনুগ্রহ করে একটি ক্রেডিট কার্ডের সঠিক নম্বর লিখুন।", 15 | equalTo: "একই মান আবার লিখুন।", 16 | extension: "সঠিক ধরনের ফাইল আপলোড করুন।", 17 | maxlength: $.validator.format("{0}টির বেশি অক্ষর লেখা যাবে না।"), 18 | minlength: $.validator.format("{0}টির কম অক্ষর লেখা যাবে না।"), 19 | rangelength: $.validator.format("{0} থেকে {1} টি অক্ষর সম্বলিত মান লিখুন।"), 20 | range: $.validator.format("{0} থেকে {1} এর মধ্যে একটি মান ব্যবহার করুন।"), 21 | max: $.validator.format("অনুগ্রহ করে {0} বা তার চাইতে কম মান ব্যবহার করুন।"), 22 | min: $.validator.format("অনুগ্রহ করে {0} বা তার চাইতে বেশি মান ব্যবহার করুন।") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_ca.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: CA (Catalan; català) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Aquest camp és obligatori.", 7 | remote: "Si us plau, omple aquest camp.", 8 | email: "Si us plau, escriu una adreça de correu-e vàlida", 9 | url: "Si us plau, escriu una URL vàlida.", 10 | date: "Si us plau, escriu una data vàlida.", 11 | dateISO: "Si us plau, escriu una data (ISO) vàlida.", 12 | number: "Si us plau, escriu un número enter vàlid.", 13 | digits: "Si us plau, escriu només dígits.", 14 | creditcard: "Si us plau, escriu un número de tarjeta vàlid.", 15 | equalTo: "Si us plau, escriu el mateix valor de nou.", 16 | extension: "Si us plau, escriu un valor amb una extensió acceptada.", 17 | maxlength: $.validator.format("Si us plau, no escriguis més de {0} caracters."), 18 | minlength: $.validator.format("Si us plau, no escriguis menys de {0} caracters."), 19 | rangelength: $.validator.format("Si us plau, escriu un valor entre {0} i {1} caracters."), 20 | range: $.validator.format("Si us plau, escriu un valor entre {0} i {1}."), 21 | max: $.validator.format("Si us plau, escriu un valor menor o igual a {0}."), 22 | min: $.validator.format("Si us plau, escriu un valor major o igual a {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_cs.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: CS (Czech; čeština, český jazyk) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Tento údaj je povinný.", 7 | remote: "Prosím, opravte tento údaj.", 8 | email: "Prosím, zadejte platný e-mail.", 9 | url: "Prosím, zadejte platné URL.", 10 | date: "Prosím, zadejte platné datum.", 11 | dateISO: "Prosím, zadejte platné datum (ISO).", 12 | number: "Prosím, zadejte číslo.", 13 | digits: "Prosím, zadávejte pouze číslice.", 14 | creditcard: "Prosím, zadejte číslo kreditní karty.", 15 | equalTo: "Prosím, zadejte znovu stejnou hodnotu.", 16 | extension: "Prosím, zadejte soubor se správnou příponou.", 17 | maxlength: $.validator.format("Prosím, zadejte nejvíce {0} znaků."), 18 | minlength: $.validator.format("Prosím, zadejte nejméně {0} znaků."), 19 | rangelength: $.validator.format("Prosím, zadejte od {0} do {1} znaků."), 20 | range: $.validator.format("Prosím, zadejte hodnotu od {0} do {1}."), 21 | max: $.validator.format("Prosím, zadejte hodnotu menší nebo rovnu {0}."), 22 | min: $.validator.format("Prosím, zadejte hodnotu větší nebo rovnu {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_da.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: DA (Danish; dansk) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Dette felt er påkrævet.", 7 | maxlength: $.validator.format("Indtast højst {0} tegn."), 8 | minlength: $.validator.format("Indtast mindst {0} tegn."), 9 | rangelength: $.validator.format("Indtast mindst {0} og højst {1} tegn."), 10 | email: "Indtast en gyldig email-adresse.", 11 | url: "Indtast en gyldig URL.", 12 | date: "Indtast en gyldig dato.", 13 | number: "Indtast et tal.", 14 | digits: "Indtast kun cifre.", 15 | equalTo: "Indtast den samme værdi igen.", 16 | range: $.validator.format("Angiv en værdi mellem {0} og {1}."), 17 | max: $.validator.format("Angiv en værdi der højst er {0}."), 18 | min: $.validator.format("Angiv en værdi der mindst er {0}."), 19 | creditcard: "Indtast et gyldigt kreditkortnummer." 20 | }); 21 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_de.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: DE (German, Deutsch) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Dieses Feld ist ein Pflichtfeld.", 7 | maxlength: $.validator.format("Geben Sie bitte maximal {0} Zeichen ein."), 8 | minlength: $.validator.format("Geben Sie bitte mindestens {0} Zeichen ein."), 9 | rangelength: $.validator.format("Geben Sie bitte mindestens {0} und maximal {1} Zeichen ein."), 10 | email: "Geben Sie bitte eine gültige E-Mail Adresse ein.", 11 | url: "Geben Sie bitte eine gültige URL ein.", 12 | date: "Bitte geben Sie ein gültiges Datum ein.", 13 | number: "Geben Sie bitte eine Nummer ein.", 14 | digits: "Geben Sie bitte nur Ziffern ein.", 15 | equalTo: "Bitte denselben Wert wiederholen.", 16 | range: $.validator.format("Geben Sie bitte einen Wert zwischen {0} und {1} ein."), 17 | max: $.validator.format("Geben Sie bitte einen Wert kleiner oder gleich {0} ein."), 18 | min: $.validator.format("Geben Sie bitte einen Wert größer oder gleich {0} ein."), 19 | creditcard: "Geben Sie bitte eine gültige Kreditkarten-Nummer ein." 20 | }); 21 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_et.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: ET (Estonian; eesti, eesti keel) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "See väli peab olema täidetud.", 7 | maxlength: $.validator.format("Palun sisestage vähem kui {0} tähemärki."), 8 | minlength: $.validator.format("Palun sisestage vähemalt {0} tähemärki."), 9 | rangelength: $.validator.format("Palun sisestage väärtus vahemikus {0} kuni {1} tähemärki."), 10 | email: "Palun sisestage korrektne e-maili aadress.", 11 | url: "Palun sisestage korrektne URL.", 12 | date: "Palun sisestage korrektne kuupäev.", 13 | dateISO: "Palun sisestage korrektne kuupäev (YYYY-MM-DD).", 14 | number: "Palun sisestage korrektne number.", 15 | digits: "Palun sisestage ainult numbreid.", 16 | equalTo: "Palun sisestage sama väärtus uuesti.", 17 | range: $.validator.format("Palun sisestage väärtus vahemikus {0} kuni {1}."), 18 | max: $.validator.format("Palun sisestage väärtus, mis on väiksem või võrdne arvuga {0}."), 19 | min: $.validator.format("Palun sisestage väärtus, mis on suurem või võrdne arvuga {0}."), 20 | creditcard: "Palun sisestage korrektne krediitkaardi number." 21 | }); 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_eu.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: EU (Basque; euskara, euskera) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Eremu hau beharrezkoa da.", 7 | remote: "Mesedez, bete eremu hau.", 8 | email: "Mesedez, idatzi baliozko posta helbide bat.", 9 | url: "Mesedez, idatzi baliozko URL bat.", 10 | date: "Mesedez, idatzi baliozko data bat.", 11 | dateISO: "Mesedez, idatzi baliozko (ISO) data bat.", 12 | number: "Mesedez, idatzi baliozko zenbaki oso bat.", 13 | digits: "Mesedez, idatzi digituak soilik.", 14 | creditcard: "Mesedez, idatzi baliozko txartel zenbaki bat.", 15 | equalTo: "Mesedez, idatzi berdina berriro ere.", 16 | extension: "Mesedez, idatzi onartutako luzapena duen balio bat.", 17 | maxlength: $.validator.format("Mesedez, ez idatzi {0} karaktere baino gehiago."), 18 | minlength: $.validator.format("Mesedez, ez idatzi {0} karaktere baino gutxiago."), 19 | rangelength: $.validator.format("Mesedez, idatzi {0} eta {1} karaktere arteko balio bat."), 20 | range: $.validator.format("Mesedez, idatzi {0} eta {1} arteko balio bat."), 21 | max: $.validator.format("Mesedez, idatzi {0} edo txikiagoa den balio bat."), 22 | min: $.validator.format("Mesedez, idatzi {0} edo handiagoa den balio bat.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_fa.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: FA (Persian; فارسی) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "تکمیل این فیلد اجباری است.", 7 | remote: "لطفا این فیلد را تصحیح کنید.", 8 | email: ".لطفا یک ایمیل صحیح وارد کنید", 9 | url: "لطفا آدرس صحیح وارد کنید.", 10 | date: "لطفا یک تاریخ صحیح وارد کنید", 11 | dateFA: "لطفا یک تاریخ صحیح وارد کنید", 12 | dateISO: "لطفا تاریخ صحیح وارد کنید (ISO).", 13 | number: "لطفا عدد صحیح وارد کنید.", 14 | digits: "لطفا تنها رقم وارد کنید", 15 | creditcard: "لطفا کریدیت کارت صحیح وارد کنید.", 16 | equalTo: "لطفا مقدار برابری وارد کنید", 17 | extension: "لطفا مقداری وارد کنید که ", 18 | maxlength: $.validator.format("لطفا بیشتر از {0} حرف وارد نکنید."), 19 | minlength: $.validator.format("لطفا کمتر از {0} حرف وارد نکنید."), 20 | rangelength: $.validator.format("لطفا مقداری بین {0} تا {1} حرف وارد کنید."), 21 | range: $.validator.format("لطفا مقداری بین {0} تا {1} حرف وارد کنید."), 22 | max: $.validator.format("لطفا مقداری کمتر از {0} حرف وارد کنید."), 23 | min: $.validator.format("لطفا مقداری بیشتر از {0} حرف وارد کنید."), 24 | minWords: $.validator.format("لطفا حداقل {0} کلمه وارد کنید."), 25 | maxWords: $.validator.format("لطفا حداکثر {0} کلمه وارد کنید.") 26 | }); 27 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_fi.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: FI (Finnish; suomi, suomen kieli) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Tämä kenttä on pakollinen.", 7 | email: "Syötä oikea sähköpostiosoite.", 8 | url: "Syötä oikea URL-osoite.", 9 | date: "Syötä oikea päivämäärä.", 10 | dateISO: "Syötä oikea päivämäärä muodossa VVVV-KK-PP.", 11 | number: "Syötä luku.", 12 | creditcard: "Syötä voimassa oleva luottokorttinumero.", 13 | digits: "Syötä pelkästään numeroita.", 14 | equalTo: "Syötä sama arvo uudestaan.", 15 | maxlength: $.validator.format("Voit syöttää enintään {0} merkkiä."), 16 | minlength: $.validator.format("Vähintään {0} merkkiä."), 17 | rangelength: $.validator.format("Syötä vähintään {0} ja enintään {1} merkkiä."), 18 | range: $.validator.format("Syötä arvo väliltä {0}–{1}."), 19 | max: $.validator.format("Syötä arvo, joka on enintään {0}."), 20 | min: $.validator.format("Syötä arvo, joka on vähintään {0}.") 21 | }); 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_ge.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author @tatocaster 3 | * Translated default messages for the jQuery validation plugin. 4 | * Locale: GE (Georgian; ქართული) 5 | */ 6 | $.extend($.validator.messages, { 7 | required: "ეს ველი სავალდებულოა", 8 | remote: "გთხოვთ შეასწოროთ.", 9 | email: "გთხოვთ შეიყვანოთ სწორი ფორმატით.", 10 | url: "გთხოვთ შეიყვანოთ სწორი ფორმატით.", 11 | date: "გთხოვთ შეიყვანოთ სწორი თარიღი.", 12 | dateISO: "გთხოვთ შეიყვანოთ სწორი ფორმატით ( ISO ).", 13 | number: "გთხოვთ შეიყვანოთ რიცხვი.", 14 | digits: "დაშვებულია მხოლოდ ციფრები.", 15 | creditcard: "გთხოვთ შეიყვანოთ სწორი ფორმატის ბარათის კოდი.", 16 | equalTo: "გთხოვთ შეიყვანოთ იგივე მნიშვნელობა.", 17 | maxlength: $.validator.format( "გთხოვთ შეიყვანოთ არა უმეტეს {0} სიმბოლოსი." ), 18 | minlength: $.validator.format( "შეიყვანეთ მინიმუმ {0} სიმბოლო." ), 19 | rangelength: $.validator.format( "გთხოვთ შეიყვანოთ {0} -დან {1} -მდე რაოდენობის სიმბოლოები." ), 20 | range: $.validator.format( "შეიყვანეთ {0} -სა {1} -ს შორის." ), 21 | max: $.validator.format( "გთხოვთ შეიყვანოთ მნიშვნელობა ნაკლები ან ტოლი {0} -ს." ), 22 | min: $.validator.format( "გთხოვთ შეიყვანოთ მნიშვნელობა მეტი ან ტოლი {0} -ს." ) 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_he.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: HE (Hebrew; עברית) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "השדה הזה הינו שדה חובה", 7 | remote: "נא לתקן שדה זה", 8 | email: "נא למלא כתובת דוא\"ל חוקית", 9 | url: "נא למלא כתובת אינטרנט חוקית", 10 | date: "נא למלא תאריך חוקי", 11 | dateISO: "נא למלא תאריך חוקי (ISO)", 12 | number: "נא למלא מספר", 13 | digits: "נא למלא רק מספרים", 14 | creditcard: "נא למלא מספר כרטיס אשראי חוקי", 15 | equalTo: "נא למלא את אותו ערך שוב", 16 | extension: "נא למלא ערך עם סיומת חוקית", 17 | maxlength: $.validator.format(".נא לא למלא יותר מ- {0} תווים"), 18 | minlength: $.validator.format("נא למלא לפחות {0} תווים"), 19 | rangelength: $.validator.format("נא למלא ערך בין {0} ל- {1} תווים"), 20 | range: $.validator.format("נא למלא ערך בין {0} ל- {1}"), 21 | max: $.validator.format("נא למלא ערך קטן או שווה ל- {0}"), 22 | min: $.validator.format("נא למלא ערך גדול או שווה ל- {0}") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_hr.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: HR (Croatia; hrvatski jezik) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Ovo polje je obavezno.", 7 | remote: "Ovo polje treba popraviti.", 8 | email: "Unesite ispravnu e-mail adresu.", 9 | url: "Unesite ispravan URL.", 10 | date: "Unesite ispravan datum.", 11 | dateISO: "Unesite ispravan datum (ISO).", 12 | number: "Unesite ispravan broj.", 13 | digits: "Unesite samo brojeve.", 14 | creditcard: "Unesite ispravan broj kreditne kartice.", 15 | equalTo: "Unesite ponovo istu vrijednost.", 16 | extension: "Unesite vrijednost sa ispravnom ekstenzijom.", 17 | maxlength: $.validator.format("Maksimalni broj znakova je {0} ."), 18 | minlength: $.validator.format("Minimalni broj znakova je {0} ."), 19 | rangelength: $.validator.format("Unesite vrijednost između {0} i {1} znakova."), 20 | range: $.validator.format("Unesite vrijednost između {0} i {1}."), 21 | max: $.validator.format("Unesite vrijednost manju ili jednaku {0}."), 22 | min: $.validator.format("Unesite vrijednost veću ili jednaku {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_hu.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: HU (Hungarian; Magyar) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Kötelező megadni.", 7 | maxlength: $.validator.format("Legfeljebb {0} karakter hosszú legyen."), 8 | minlength: $.validator.format("Legalább {0} karakter hosszú legyen."), 9 | rangelength: $.validator.format("Legalább {0} és legfeljebb {1} karakter hosszú legyen."), 10 | email: "Érvényes e-mail címnek kell lennie.", 11 | url: "Érvényes URL-nek kell lennie.", 12 | date: "Dátumnak kell lennie.", 13 | number: "Számnak kell lennie.", 14 | digits: "Csak számjegyek lehetnek.", 15 | equalTo: "Meg kell egyeznie a két értéknek.", 16 | range: $.validator.format("{0} és {1} közé kell esnie."), 17 | max: $.validator.format("Nem lehet nagyobb, mint {0}."), 18 | min: $.validator.format("Nem lehet kisebb, mint {0}."), 19 | creditcard: "Érvényes hitelkártyaszámnak kell lennie.", 20 | remote: "Kérem javítsa ki ezt a mezőt.", 21 | dateISO: "Kérem írjon be egy érvényes dátumot (ISO)." 22 | }); 23 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_hy_AM.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: HY_AM (Armenian; հայերեն լեզու) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Պարտադիր լրացման դաշտ", 7 | remote: "Ներմուծեք ճիշտ արժեքը", 8 | email: "Ներմուծեք վավեր էլեկտրոնային փոստի հասցե", 9 | url: "Ներմուծեք վավեր URL", 10 | date: "Ներմուծեք վավեր ամսաթիվ", 11 | dateISO: "Ներմուծեք ISO ֆորմատով վավեր ամսաթիվ։", 12 | number: "Ներմուծեք թիվ", 13 | digits: "Ներմուծեք միայն թվեր", 14 | creditcard: "Ներմուծեք ճիշտ բանկային քարտի համար", 15 | equalTo: "Ներմուծեք միևնուն արժեքը ևս մեկ անգամ", 16 | extension: "Ընտրեք ճիշտ ընդլանումով ֆայլ", 17 | maxlength: $.validator.format("Ներմուծեք ոչ ավել քան {0} նիշ"), 18 | minlength: $.validator.format("Ներմուծեք ոչ պակաս քան {0} նիշ"), 19 | rangelength: $.validator.format("Ներմուծեք {0}֊ից {1} երկարությամբ արժեք"), 20 | range: $.validator.format("Ներմուծեք թիվ {0}֊ից {1} միջակայքում"), 21 | max: $.validator.format("Ներմուծեք թիվ, որը փոքր կամ հավասար է {0}֊ին"), 22 | min: $.validator.format("Ներմուծեք թիվ, որը մեծ կամ հավասար է {0}֊ին") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_id.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: ID (Indonesia; Indonesian) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Kolom ini diperlukan.", 7 | remote: "Harap benarkan kolom ini.", 8 | email: "Silakan masukkan format email yang benar.", 9 | url: "Silakan masukkan format URL yang benar.", 10 | date: "Silakan masukkan format tanggal yang benar.", 11 | dateISO: "Silakan masukkan format tanggal(ISO) yang benar.", 12 | number: "Silakan masukkan angka yang benar.", 13 | digits: "Harap masukan angka saja.", 14 | creditcard: "Harap masukkan format kartu kredit yang benar.", 15 | equalTo: "Harap masukkan nilai yg sama dengan sebelumnya.", 16 | maxlength: $.validator.format("Input dibatasi hanya {0} karakter."), 17 | minlength: $.validator.format("Input tidak kurang dari {0} karakter."), 18 | rangelength: $.validator.format("Panjang karakter yg diizinkan antara {0} dan {1} karakter."), 19 | range: $.validator.format("Harap masukkan nilai antara {0} dan {1}."), 20 | max: $.validator.format("Harap masukkan nilai lebih kecil atau sama dengan {0}."), 21 | min: $.validator.format("Harap masukkan nilai lebih besar atau sama dengan {0}.") 22 | }); 23 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_is.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: IS (Icelandic; íslenska) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Þessi reitur er nauðsynlegur.", 7 | remote: "Lagaðu þennan reit.", 8 | maxlength: $.validator.format("Sláðu inn mest {0} stafi."), 9 | minlength: $.validator.format("Sláðu inn minnst {0} stafi."), 10 | rangelength: $.validator.format("Sláðu inn minnst {0} og mest {1} stafi."), 11 | email: "Sláðu inn gilt netfang.", 12 | url: "Sláðu inn gilda vefslóð.", 13 | date: "Sláðu inn gilda dagsetningu.", 14 | number: "Sláðu inn tölu.", 15 | digits: "Sláðu inn tölustafi eingöngu.", 16 | equalTo: "Sláðu sama gildi inn aftur.", 17 | range: $.validator.format("Sláðu inn gildi milli {0} og {1}."), 18 | max: $.validator.format("Sláðu inn gildi sem er minna en eða jafnt og {0}."), 19 | min: $.validator.format("Sláðu inn gildi sem er stærra en eða jafnt og {0}."), 20 | creditcard: "Sláðu inn gilt greiðslukortanúmer." 21 | }); 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_it.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: IT (Italian; Italiano) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Campo obbligatorio", 7 | remote: "Controlla questo campo", 8 | email: "Inserisci un indirizzo email valido", 9 | url: "Inserisci un indirizzo web valido", 10 | date: "Inserisci una data valida", 11 | dateISO: "Inserisci una data valida (ISO)", 12 | number: "Inserisci un numero valido", 13 | digits: "Inserisci solo numeri", 14 | creditcard: "Inserisci un numero di carta di credito valido", 15 | equalTo: "Il valore non corrisponde", 16 | extension: "Inserisci un valore con un'estensione valida", 17 | maxlength: $.validator.format("Non inserire più di {0} caratteri"), 18 | minlength: $.validator.format("Inserisci almeno {0} caratteri"), 19 | rangelength: $.validator.format("Inserisci un valore compreso tra {0} e {1} caratteri"), 20 | range: $.validator.format("Inserisci un valore compreso tra {0} e {1}"), 21 | max: $.validator.format("Inserisci un valore minore o uguale a {0}"), 22 | min: $.validator.format("Inserisci un valore maggiore o uguale a {0}"), 23 | nifES: "Inserisci un NIF valido", 24 | nieES: "Inserisci un NIE valido", 25 | cifES: "Inserisci un CIF valido", 26 | currency: "Inserisci una valuta valida" 27 | }); 28 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_ja.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: JA (Japanese; 日本語) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "このフィールドは必須です。", 7 | remote: "このフィールドを修正してください。", 8 | email: "有効なEメールアドレスを入力してください。", 9 | url: "有効なURLを入力してください。", 10 | date: "有効な日付を入力してください。", 11 | dateISO: "有効な日付(ISO)を入力してください。", 12 | number: "有効な数字を入力してください。", 13 | digits: "数字のみを入力してください。", 14 | creditcard: "有効なクレジットカード番号を入力してください。", 15 | equalTo: "同じ値をもう一度入力してください。", 16 | extension: "有効な拡張子を含む値を入力してください。", 17 | maxlength: $.validator.format("{0} 文字以内で入力してください。"), 18 | minlength: $.validator.format("{0} 文字以上で入力してください。"), 19 | rangelength: $.validator.format("{0} 文字から {1} 文字までの値を入力してください。"), 20 | range: $.validator.format("{0} から {1} までの値を入力してください。"), 21 | max: $.validator.format("{0} 以下の値を入力してください。"), 22 | min: $.validator.format("{0} 以上の値を入力してください。") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_ka.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: KA (Georgian; ქართული) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "ამ ველის შევსება აუცილებელია.", 7 | remote: "გთხოვთ მიუთითოთ სწორი მნიშვნელობა.", 8 | email: "გთხოვთ მიუთითოთ ელ-ფოსტის კორექტული მისამართი.", 9 | url: "გთხოვთ მიუთითოთ კორექტული URL.", 10 | date: "გთხოვთ მიუთითოთ კორექტული თარიღი.", 11 | dateISO: "გთხოვთ მიუთითოთ კორექტული თარიღი ISO ფორმატში.", 12 | number: "გთხოვთ მიუთითოთ ციფრი.", 13 | digits: "გთხოვთ მიუთითოთ მხოლოდ ციფრები.", 14 | creditcard: "გთხოვთ მიუთითოთ საკრედიტო ბარათის კორექტული ნომერი.", 15 | equalTo: "გთხოვთ მიუთითოთ ასეთივე მნიშვნელობა კიდევ ერთხელ.", 16 | extension: "გთხოვთ აირჩიოთ ფაილი კორექტული გაფართოებით.", 17 | maxlength: $.validator.format("დასაშვებია არაუმეტეს {0} სიმბოლო."), 18 | minlength: $.validator.format("აუცილებელია შეიყვანოთ მინიმუმ {0} სიმბოლო."), 19 | rangelength: $.validator.format("ტექსტში სიმბოლოების რაოდენობა უნდა იყოს {0}-დან {1}-მდე."), 20 | range: $.validator.format("გთხოვთ შეიყვანოთ ციფრი {0}-დან {1}-მდე."), 21 | max: $.validator.format("გთხოვთ შეიყვანოთ ციფრი რომელიც ნაკლებია ან უდრის {0}-ს."), 22 | min: $.validator.format("გთხოვთ შეიყვანოთ ციფრი რომელიც მეტია ან უდრის {0}-ს.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_kk.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: KK (Kazakh; қазақ тілі) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Бұл өрісті міндетті түрде толтырыңыз.", 7 | remote: "Дұрыс мағына енгізуіңізді сұраймыз.", 8 | email: "Нақты электронды поштаңызды енгізуіңізді сұраймыз.", 9 | url: "Нақты URL-ды енгізуіңізді сұраймыз.", 10 | date: "Нақты URL-ды енгізуіңізді сұраймыз.", 11 | dateISO: "Нақты ISO форматымен сәйкес датасын енгізуіңізді сұраймыз.", 12 | number: "Күнді енгізуіңізді сұраймыз.", 13 | digits: "Тек қана сандарды енгізуіңізді сұраймыз.", 14 | creditcard: "Несие картасының нөмірін дұрыс енгізуіңізді сұраймыз.", 15 | equalTo: "Осы мәнді қайта енгізуіңізді сұраймыз.", 16 | extension: "Файлдың кеңейтуін дұрыс таңдаңыз.", 17 | maxlength: $.validator.format("Ұзындығы {0} символдан көр болмасын."), 18 | minlength: $.validator.format("Ұзындығы {0} символдан аз болмасын."), 19 | rangelength: $.validator.format("Ұзындығы {0}-{1} дейін мән енгізуіңізді сұраймыз."), 20 | range: $.validator.format("Пожалуйста, введите число от {0} до {1}. - {0} - {1} санын енгізуіңізді сұраймыз."), 21 | max: $.validator.format("{0} аз немесе тең санын енгізуіңіді сұраймыз."), 22 | min: $.validator.format("{0} көп немесе тең санын енгізуіңізді сұраймыз.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_ko.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: KO (Korean; 한국어) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "필수 항목입니다.", 7 | remote: "항목을 수정하세요.", 8 | email: "유효하지 않은 E-Mail주소입니다.", 9 | url: "유효하지 않은 URL입니다.", 10 | date: "올바른 날짜를 입력하세요.", 11 | dateISO: "올바른 날짜(ISO)를 입력하세요.", 12 | number: "유효한 숫자가 아닙니다.", 13 | digits: "숫자만 입력 가능합니다.", 14 | creditcard: "신용카드 번호가 바르지 않습니다.", 15 | equalTo: "같은 값을 다시 입력하세요.", 16 | extension: "올바른 확장자가 아닙니다.", 17 | maxlength: $.validator.format("{0}자를 넘을 수 없습니다. "), 18 | minlength: $.validator.format("{0}자 이상 입력하세요."), 19 | rangelength: $.validator.format("문자 길이가 {0} 에서 {1} 사이의 값을 입력하세요."), 20 | range: $.validator.format("{0} 에서 {1} 사이의 값을 입력하세요."), 21 | max: $.validator.format("{0} 이하의 값을 입력하세요."), 22 | min: $.validator.format("{0} 이상의 값을 입력하세요.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_lt.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: LT (Lithuanian; lietuvių kalba) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Šis laukas yra privalomas.", 7 | remote: "Prašau pataisyti šį lauką.", 8 | email: "Prašau įvesti teisingą elektroninio pašto adresą.", 9 | url: "Prašau įvesti teisingą URL.", 10 | date: "Prašau įvesti teisingą datą.", 11 | dateISO: "Prašau įvesti teisingą datą (ISO).", 12 | number: "Prašau įvesti teisingą skaičių.", 13 | digits: "Prašau naudoti tik skaitmenis.", 14 | creditcard: "Prašau įvesti teisingą kreditinės kortelės numerį.", 15 | equalTo: "Prašau įvestį tą pačią reikšmę dar kartą.", 16 | extension: "Prašau įvesti reikšmę su teisingu plėtiniu.", 17 | maxlength: $.validator.format("Prašau įvesti ne daugiau kaip {0} simbolių."), 18 | minlength: $.validator.format("Prašau įvesti bent {0} simbolius."), 19 | rangelength: $.validator.format("Prašau įvesti reikšmes, kurių ilgis nuo {0} iki {1} simbolių."), 20 | range: $.validator.format("Prašau įvesti reikšmę intervale nuo {0} iki {1}."), 21 | max: $.validator.format("Prašau įvesti reikšmę mažesnę arba lygią {0}."), 22 | min: $.validator.format("Prašau įvesti reikšmę didesnę arba lygią {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_lv.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: LV (Latvian; latviešu valoda) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Šis lauks ir obligāts.", 7 | remote: "Lūdzu, pārbaudiet šo lauku.", 8 | email: "Lūdzu, ievadiet derīgu e-pasta adresi.", 9 | url: "Lūdzu, ievadiet derīgu URL adresi.", 10 | date: "Lūdzu, ievadiet derīgu datumu.", 11 | dateISO: "Lūdzu, ievadiet derīgu datumu (ISO).", 12 | number: "Lūdzu, ievadiet derīgu numuru.", 13 | digits: "Lūdzu, ievadiet tikai ciparus.", 14 | creditcard: "Lūdzu, ievadiet derīgu kredītkartes numuru.", 15 | equalTo: "Lūdzu, ievadiet to pašu vēlreiz.", 16 | extension: "Lūdzu, ievadiet vērtību ar derīgu paplašinājumu.", 17 | maxlength: $.validator.format("Lūdzu, ievadiet ne vairāk kā {0} rakstzīmes."), 18 | minlength: $.validator.format("Lūdzu, ievadiet vismaz {0} rakstzīmes."), 19 | rangelength: $.validator.format("Lūdzu ievadiet {0} līdz {1} rakstzīmes."), 20 | range: $.validator.format("Lūdzu, ievadiet skaitli no {0} līdz {1}."), 21 | max: $.validator.format("Lūdzu, ievadiet skaitli, kurš ir mazāks vai vienāds ar {0}."), 22 | min: $.validator.format("Lūdzu, ievadiet skaitli, kurš ir lielāks vai vienāds ar {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_my.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: MY (Malay; Melayu) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Medan ini diperlukan.", 7 | remote: "Sila betulkan medan ini.", 8 | email: "Sila masukkan alamat emel yang betul.", 9 | url: "Sila masukkan URL yang betul.", 10 | date: "Sila masukkan tarikh yang betul.", 11 | dateISO: "Sila masukkan tarikh(ISO) yang betul.", 12 | number: "Sila masukkan nombor yang betul.", 13 | digits: "Sila masukkan nilai digit sahaja.", 14 | creditcard: "Sila masukkan nombor kredit kad yang betul.", 15 | equalTo: "Sila masukkan nilai yang sama semula.", 16 | extension: "Sila masukkan nilai yang telah diterima.", 17 | maxlength: $.validator.format("Sila masukkan nilai tidak lebih dari {0} aksara."), 18 | minlength: $.validator.format("Sila masukkan nilai sekurang-kurangnya {0} aksara."), 19 | rangelength: $.validator.format("Sila masukkan panjang nilai antara {0} dan {1} aksara."), 20 | range: $.validator.format("Sila masukkan nilai antara {0} dan {1} aksara."), 21 | max: $.validator.format("Sila masukkan nilai yang kurang atau sama dengan {0}."), 22 | min: $.validator.format("Sila masukkan nilai yang lebih atau sama dengan {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_no.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: NO (Norwegian; Norsk) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Dette feltet er obligatorisk.", 7 | maxlength: $.validator.format("Maksimalt {0} tegn."), 8 | minlength: $.validator.format("Minimum {0} tegn."), 9 | rangelength: $.validator.format("Angi minimum {0} og maksimum {1} tegn."), 10 | email: "Oppgi en gyldig epostadresse.", 11 | url: "Angi en gyldig URL.", 12 | date: "Angi en gyldig dato.", 13 | dateISO: "Angi en gyldig dato (&ARING;&ARING;&ARING;&ARING;-MM-DD).", 14 | dateSE: "Angi en gyldig dato.", 15 | number: "Angi et gyldig nummer.", 16 | numberSE: "Angi et gyldig nummer.", 17 | digits: "Skriv kun tall.", 18 | equalTo: "Skriv samme verdi igjen.", 19 | range: $.validator.format("Angi en verdi mellom {0} og {1}."), 20 | max: $.validator.format("Angi en verdi som er mindre eller lik {0}."), 21 | min: $.validator.format("Angi en verdi som er større eller lik {0}."), 22 | creditcard: "Angi et gyldig kredittkortnummer." 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_pl.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: PL (Polish; język polski, polszczyzna) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "To pole jest wymagane.", 7 | remote: "Proszę o wypełnienie tego pola.", 8 | email: "Proszę o podanie prawidłowego adresu email.", 9 | url: "Proszę o podanie prawidłowego URL.", 10 | date: "Proszę o podanie prawidłowej daty.", 11 | dateISO: "Proszę o podanie prawidłowej daty (ISO).", 12 | number: "Proszę o podanie prawidłowej liczby.", 13 | digits: "Proszę o podanie samych cyfr.", 14 | creditcard: "Proszę o podanie prawidłowej karty kredytowej.", 15 | equalTo: "Proszę o podanie tej samej wartości ponownie.", 16 | extension: "Proszę o podanie wartości z prawidłowym rozszerzeniem.", 17 | maxlength: $.validator.format("Proszę o podanie nie więcej niż {0} znaków."), 18 | minlength: $.validator.format("Proszę o podanie przynajmniej {0} znaków."), 19 | rangelength: $.validator.format("Proszę o podanie wartości o długości od {0} do {1} znaków."), 20 | range: $.validator.format("Proszę o podanie wartości z przedziału od {0} do {1}."), 21 | max: $.validator.format("Proszę o podanie wartości mniejszej bądź równej {0}."), 22 | min: $.validator.format("Proszę o podanie wartości większej bądź równej {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_ru.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: RU (Russian; русский язык) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Это поле необходимо заполнить.", 7 | remote: "Пожалуйста, введите правильное значение.", 8 | email: "Пожалуйста, введите корректный адрес электронной почты.", 9 | url: "Пожалуйста, введите корректный URL.", 10 | date: "Пожалуйста, введите корректную дату.", 11 | dateISO: "Пожалуйста, введите корректную дату в формате ISO.", 12 | number: "Пожалуйста, введите число.", 13 | digits: "Пожалуйста, вводите только цифры.", 14 | creditcard: "Пожалуйста, введите правильный номер кредитной карты.", 15 | equalTo: "Пожалуйста, введите такое же значение ещё раз.", 16 | extension: "Пожалуйста, выберите файл с правильным расширением.", 17 | maxlength: $.validator.format("Пожалуйста, введите не больше {0} символов."), 18 | minlength: $.validator.format("Пожалуйста, введите не меньше {0} символов."), 19 | rangelength: $.validator.format("Пожалуйста, введите значение длиной от {0} до {1} символов."), 20 | range: $.validator.format("Пожалуйста, введите число от {0} до {1}."), 21 | max: $.validator.format("Пожалуйста, введите число, меньшее или равное {0}."), 22 | min: $.validator.format("Пожалуйста, введите число, большее или равное {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_si.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: SI (Slovenian) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "To polje je obvezno.", 7 | remote: "Vpis v tem polju ni v pravi obliki.", 8 | email: "Prosimo, vnesite pravi email naslov.", 9 | url: "Prosimo, vnesite pravi URL.", 10 | date: "Prosimo, vnesite pravi datum.", 11 | dateISO: "Prosimo, vnesite pravi datum (ISO).", 12 | number: "Prosimo, vnesite pravo številko.", 13 | digits: "Prosimo, vnesite samo številke.", 14 | creditcard: "Prosimo, vnesite pravo številko kreditne kartice.", 15 | equalTo: "Prosimo, ponovno vnesite enako vsebino.", 16 | extension: "Prosimo, vnesite vsebino z pravo končnico.", 17 | maxlength: $.validator.format("Prosimo, da ne vnašate več kot {0} znakov."), 18 | minlength: $.validator.format("Prosimo, vnesite vsaj {0} znakov."), 19 | rangelength: $.validator.format("Prosimo, vnesite od {0} do {1} znakov."), 20 | range: $.validator.format("Prosimo, vnesite vrednost med {0} in {1}."), 21 | max: $.validator.format("Prosimo, vnesite vrednost manjšo ali enako {0}."), 22 | min: $.validator.format("Prosimo, vnesite vrednost večjo ali enako {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_sk.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: SK (Slovak; slovenčina, slovenský jazyk) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Povinné zadať.", 7 | maxlength: $.validator.format("Maximálne {0} znakov."), 8 | minlength: $.validator.format("Minimálne {0} znakov."), 9 | rangelength: $.validator.format("Minimálne {0} a Maximálne {1} znakov."), 10 | email: "E-mailová adresa musí byť platná.", 11 | url: "URL musí byť platný.", 12 | date: "Musí byť dátum.", 13 | number: "Musí byť číslo.", 14 | digits: "Môže obsahovať iba číslice.", 15 | equalTo: "Dva hodnoty sa musia rovnať.", 16 | range: $.validator.format("Musí byť medzi {0} a {1}."), 17 | max: $.validator.format("Nemôže byť viac ako{0}."), 18 | min: $.validator.format("Nemôže byť menej ako{0}."), 19 | creditcard: "Číslo platobnej karty musí byť platné." 20 | }); 21 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_sl.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Language: SL (Slovenian; slovenski jezik) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "To polje je obvezno.", 7 | remote: "Prosimo popravite to polje.", 8 | email: "Prosimo vnesite veljaven email naslov.", 9 | url: "Prosimo vnesite veljaven URL naslov.", 10 | date: "Prosimo vnesite veljaven datum.", 11 | dateISO: "Prosimo vnesite veljaven ISO datum.", 12 | number: "Prosimo vnesite veljavno število.", 13 | digits: "Prosimo vnesite samo števila.", 14 | creditcard: "Prosimo vnesite veljavno številko kreditne kartice.", 15 | equalTo: "Prosimo ponovno vnesite vrednost.", 16 | extension: "Prosimo vnesite vrednost z veljavno končnico.", 17 | maxlength: $.validator.format("Prosimo vnesite največ {0} znakov."), 18 | minlength: $.validator.format("Prosimo vnesite najmanj {0} znakov."), 19 | rangelength: $.validator.format("Prosimo vnesite najmanj {0} in največ {1} znakov."), 20 | range: $.validator.format("Prosimo vnesite vrednost med {0} in {1}."), 21 | max: $.validator.format("Prosimo vnesite vrednost manjše ali enako {0}."), 22 | min: $.validator.format("Prosimo vnesite vrednost večje ali enako {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_sr.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: SR (Serbian; српски језик) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Поље је обавезно.", 7 | remote: "Средите ово поље.", 8 | email: "Унесите исправну и-мејл адресу.", 9 | url: "Унесите исправан URL.", 10 | date: "Унесите исправан датум.", 11 | dateISO: "Унесите исправан датум (ISO).", 12 | number: "Унесите исправан број.", 13 | digits: "Унесите само цифе.", 14 | creditcard: "Унесите исправан број кредитне картице.", 15 | equalTo: "Унесите исту вредност поново.", 16 | extension: "Унесите вредност са одговарајућом екстензијом.", 17 | maxlength: $.validator.format("Унесите мање од {0} карактера."), 18 | minlength: $.validator.format("Унесите барем {0} карактера."), 19 | rangelength: $.validator.format("Унесите вредност дугачку између {0} и {1} карактера."), 20 | range: $.validator.format("Унесите вредност између {0} и {1}."), 21 | max: $.validator.format("Унесите вредност мању или једнаку {0}."), 22 | min: $.validator.format("Унесите вредност већу или једнаку {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_sr_lat.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: SR (Serbian - Latin alphabet; srpski jezik - latinica) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Polje je obavezno.", 7 | remote: "Sredite ovo polje.", 8 | email: "Unesite ispravnu e-mail adresu", 9 | url: "Unesite ispravan URL.", 10 | date: "Unesite ispravan datum.", 11 | dateISO: "Unesite ispravan datum (ISO).", 12 | number: "Unesite ispravan broj.", 13 | digits: "Unesite samo cifre.", 14 | creditcard: "Unesite ispravan broj kreditne kartice.", 15 | equalTo: "Unesite istu vrednost ponovo.", 16 | extension: "Unesite vrednost sa odgovarajućom ekstenzijom.", 17 | maxlength: $.validator.format("Unesite manje od {0} karaktera."), 18 | minlength: $.validator.format("Unesite barem {0} karaktera."), 19 | rangelength: $.validator.format("Unesite vrednost dugačku između {0} i {1} karaktera."), 20 | range: $.validator.format("Unesite vrednost između {0} i {1}."), 21 | max: $.validator.format("Unesite vrednost manju ili jednaku {0}."), 22 | min: $.validator.format("Unesite vrednost veću ili jednaku {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_sv.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: SV (Swedish; Svenska) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Detta fält är obligatoriskt.", 7 | maxlength: $.validator.format("Du får ange högst {0} tecken."), 8 | minlength: $.validator.format("Du måste ange minst {0} tecken."), 9 | rangelength: $.validator.format("Ange minst {0} och max {1} tecken."), 10 | email: "Ange en korrekt e-postadress.", 11 | url: "Ange en korrekt URL.", 12 | date: "Ange ett korrekt datum.", 13 | dateISO: "Ange ett korrekt datum (ÅÅÅÅ-MM-DD).", 14 | number: "Ange ett korrekt nummer.", 15 | digits: "Ange endast siffror.", 16 | equalTo: "Ange samma värde igen.", 17 | range: $.validator.format("Ange ett värde mellan {0} och {1}."), 18 | max: $.validator.format("Ange ett värde som är mindre eller lika med {0}."), 19 | min: $.validator.format("Ange ett värde som är större eller lika med {0}."), 20 | creditcard: "Ange ett korrekt kreditkortsnummer." 21 | }); 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_th.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: TH (Thai; ไทย) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "โปรดระบุ", 7 | remote: "โปรดแก้ไขให้ถูกต้อง", 8 | email: "โปรดระบุที่อยู่อีเมล์ที่ถูกต้อง", 9 | url: "โปรดระบุ URL ที่ถูกต้อง", 10 | date: "โปรดระบุวันที่ ที่ถูกต้อง", 11 | dateISO: "โปรดระบุวันที่ ที่ถูกต้อง (ระบบ ISO).", 12 | number: "โปรดระบุทศนิยมที่ถูกต้อง", 13 | digits: "โปรดระบุจำนวนเต็มที่ถูกต้อง", 14 | creditcard: "โปรดระบุรหัสบัตรเครดิตที่ถูกต้อง", 15 | equalTo: "โปรดระบุค่าเดิมอีกครั้ง", 16 | extension: "โปรดระบุค่าที่มีส่วนขยายที่ถูกต้อง", 17 | maxlength: $.validator.format("โปรดอย่าระบุค่าที่ยาวกว่า {0} อักขระ"), 18 | minlength: $.validator.format("โปรดอย่าระบุค่าที่สั้นกว่า {0} อักขระ"), 19 | rangelength: $.validator.format("โปรดอย่าระบุค่าความยาวระหว่าง {0} ถึง {1} อักขระ"), 20 | range: $.validator.format("โปรดระบุค่าระหว่าง {0} และ {1}"), 21 | max: $.validator.format("โปรดระบุค่าน้อยกว่าหรือเท่ากับ {0}"), 22 | min: $.validator.format("โปรดระบุค่ามากกว่าหรือเท่ากับ {0}") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_tj.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: TJ (Tajikistan; Забони тоҷикӣ) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Ворид кардани ин филд маҷбури аст.", 7 | remote: "Илтимос, маълумоти саҳеҳ ворид кунед.", 8 | email: "Илтимос, почтаи электронии саҳеҳ ворид кунед.", 9 | url: "Илтимос, URL адреси саҳеҳ ворид кунед.", 10 | date: "Илтимос, таърихи саҳеҳ ворид кунед.", 11 | dateISO: "Илтимос, таърихи саҳеҳи (ISO)ӣ ворид кунед.", 12 | number: "Илтимос, рақамҳои саҳеҳ ворид кунед.", 13 | digits: "Илтимос, танҳо рақам ворид кунед.", 14 | creditcard: "Илтимос, кредит карди саҳеҳ ворид кунед.", 15 | equalTo: "Илтимос, миқдори баробар ворид кунед.", 16 | extension: "Илтимос, қофияи файлро дуруст интихоб кунед", 17 | maxlength: $.validator.format("Илтимос, бештар аз {0} рамз ворид накунед."), 18 | minlength: $.validator.format("Илтимос, камтар аз {0} рамз ворид накунед."), 19 | rangelength: $.validator.format("Илтимос, камтар аз {0} ва зиёда аз {1} рамз ворид кунед."), 20 | range: $.validator.format("Илтимос, аз {0} то {1} рақам зиёд ворид кунед."), 21 | max: $.validator.format("Илтимос, бештар аз {0} рақам ворид накунед."), 22 | min: $.validator.format("Илтимос, камтар аз {0} рақам ворид накунед.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_uk.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: UK (Ukrainian; українська мова) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Це поле необхідно заповнити.", 7 | remote: "Будь ласка, введіть правильне значення.", 8 | email: "Будь ласка, введіть коректну адресу електронної пошти.", 9 | url: "Будь ласка, введіть коректний URL.", 10 | date: "Будь ласка, введіть коректну дату.", 11 | dateISO: "Будь ласка, введіть коректну дату у форматі ISO.", 12 | number: "Будь ласка, введіть число.", 13 | digits: "Вводите потрібно лише цифри.", 14 | creditcard: "Будь ласка, введіть правильний номер кредитної карти.", 15 | equalTo: "Будь ласка, введіть таке ж значення ще раз.", 16 | extension: "Будь ласка, виберіть файл з правильним розширенням.", 17 | maxlength: $.validator.format("Будь ласка, введіть не більше {0} символів."), 18 | minlength: $.validator.format("Будь ласка, введіть не менше {0} символів."), 19 | rangelength: $.validator.format("Будь ласка, введіть значення довжиною від {0} до {1} символів."), 20 | range: $.validator.format("Будь ласка, введіть число від {0} до {1}."), 21 | max: $.validator.format("Будь ласка, введіть число, менше або рівно {0}."), 22 | min: $.validator.format("Будь ласка, введіть число, більше або рівно {0}.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_vi.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: VI (Vietnamese; Tiếng Việt) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "Hãy nhập.", 7 | remote: "Hãy sửa cho đúng.", 8 | email: "Hãy nhập email.", 9 | url: "Hãy nhập URL.", 10 | date: "Hãy nhập ngày.", 11 | dateISO: "Hãy nhập ngày (ISO).", 12 | number: "Hãy nhập số.", 13 | digits: "Hãy nhập chữ số.", 14 | creditcard: "Hãy nhập số thẻ tín dụng.", 15 | equalTo: "Hãy nhập thêm lần nữa.", 16 | extension: "Phần mở rộng không đúng.", 17 | maxlength: $.validator.format("Hãy nhập từ {0} kí tự trở xuống."), 18 | minlength: $.validator.format("Hãy nhập từ {0} kí tự trở lên."), 19 | rangelength: $.validator.format("Hãy nhập từ {0} đến {1} kí tự."), 20 | range: $.validator.format("Hãy nhập từ {0} đến {1}."), 21 | max: $.validator.format("Hãy nhập từ {0} trở xuống."), 22 | min: $.validator.format("Hãy nhập từ {1} trở lên.") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_zh.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語) 4 | */ 5 | $.extend($.validator.messages, { 6 | required: "这是必填字段", 7 | remote: "请修正此字段", 8 | email: "请输入有效的电子邮件地址", 9 | url: "请输入有效的网址", 10 | date: "请输入有效的日期", 11 | dateISO: "请输入有效的日期 (YYYY-MM-DD)", 12 | number: "请输入有效的数字", 13 | digits: "只能输入数字", 14 | creditcard: "请输入有效的信用卡号码", 15 | equalTo: "你的输入不相同", 16 | extension: "请输入有效的后缀", 17 | maxlength: $.validator.format("最多可以输入 {0} 个字符"), 18 | minlength: $.validator.format("最少要输入 {0} 个字符"), 19 | rangelength: $.validator.format("请输入长度在 {0} 到 {1} 之间的字符串"), 20 | range: $.validator.format("请输入范围在 {0} 到 {1} 之间的数值"), 21 | max: $.validator.format("请输入不大于 {0} 的数值"), 22 | min: $.validator.format("请输入不小于 {0} 的数值") 23 | }); 24 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/messages_zh_TW.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Translated default messages for the jQuery validation plugin. 3 | * Locale: ZH (Chinese; 中文 (Zhōngwén), 汉语, 漢語) 4 | * Region: TW (Taiwan) 5 | */ 6 | $.extend($.validator.messages, { 7 | required: "必須填寫", 8 | remote: "請修正此欄位", 9 | email: "請輸入有效的電子郵件", 10 | url: "請輸入有效的網址", 11 | date: "請輸入有效的日期", 12 | dateISO: "請輸入有效的日期 (YYYY-MM-DD)", 13 | number: "請輸入正確的數值", 14 | digits: "只可輸入數字", 15 | creditcard: "請輸入有效的信用卡號碼", 16 | equalTo: "請重複輸入一次", 17 | extension: "請輸入有效的後綴", 18 | maxlength: $.validator.format("最多 {0} 個字"), 19 | minlength: $.validator.format("最少 {0} 個字"), 20 | rangelength: $.validator.format("請輸入長度為 {0} 至 {1} 之間的字串"), 21 | range: $.validator.format("請輸入 {0} 至 {1} 之間的數值"), 22 | max: $.validator.format("請輸入不大於 {0} 的數值"), 23 | min: $.validator.format("請輸入不小於 {0} 的數值") 24 | }); 25 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/methods_de.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: DE 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value); 8 | }, 9 | number: function(value, element) { 10 | return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value); 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/methods_es_CL.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: ES_CL 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?\-\d\d?\-\d\d\d?\d?$/.test(value); 8 | }, 9 | number: function(value, element) { 10 | return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value); 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/methods_fi.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: FI 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d{1,2}\.\d{1,2}\.\d{4}$/.test(value); 8 | }, 9 | number: function(value, element) { 10 | return this.optional(element) || /^-?(?:\d+)(?:,\d+)?$/.test(value); 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/methods_nl.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: NL 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(value); 8 | } 9 | }); 10 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/src/localization/methods_pt.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Localized default methods for the jQuery validation plugin. 3 | * Locale: PT_BR 4 | */ 5 | $.extend($.validator.methods, { 6 | date: function(value, element) { 7 | return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value); 8 | } 9 | }); 10 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery-validation/validation.jquery.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "validation", 3 | "title": "jQuery Validation", 4 | "description": "Form validation made easy. Validate a simple comment form with inline rules, or a complex signup form with powerful remote checks.", 5 | "keywords": [ 6 | "forms", 7 | "validation", 8 | "validate" 9 | ], 10 | "author": { 11 | "name": "Jörn Zaefferer", 12 | "email": "joern.zaefferer@gmail.com", 13 | "url": "http://bassistance.de" 14 | }, 15 | "licenses": [ 16 | { 17 | "type": "MIT", 18 | "url": "http://www.opensource.org/licenses/MIT" 19 | } 20 | ], 21 | "bugs": "https://github.com/jzaefferer/jquery-validation/issues", 22 | "homepage": "https://github.com/jzaefferer/jquery-validation", 23 | "docs": "http://jqueryvalidation.org/documentation/", 24 | "download": "https://github.com/jzaefferer/jquery-validation/releases", 25 | "dependencies": { 26 | "jquery": ">=1.4.4" 27 | }, 28 | "version": "1.14.0" 29 | } 30 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.4", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "dist/cdn", 10 | "speed", 11 | "test", 12 | "*.md", 13 | "AUTHORS.txt", 14 | "Gruntfile.js", 15 | "package.json" 16 | ], 17 | "devDependencies": { 18 | "sizzle": "2.1.1-jquery.2.1.2", 19 | "requirejs": "2.1.10", 20 | "qunit": "1.14.0", 21 | "sinon": "1.8.1" 22 | }, 23 | "keywords": [ 24 | "jquery", 25 | "javascript", 26 | "library" 27 | ], 28 | "homepage": "https://github.com/jquery/jquery", 29 | "_release": "2.1.4", 30 | "_resolution": { 31 | "type": "version", 32 | "tag": "2.1.4", 33 | "commit": "7751e69b615c6eca6f783a81e292a55725af6b85" 34 | }, 35 | "_source": "git://github.com/jquery/jquery.git", 36 | "_target": "2.1.4", 37 | "_originalSource": "jquery" 38 | } -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 jQuery Foundation and other contributors 2 | http://jquery.com/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.4", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "dist/cdn", 10 | "speed", 11 | "test", 12 | "*.md", 13 | "AUTHORS.txt", 14 | "Gruntfile.js", 15 | "package.json" 16 | ], 17 | "devDependencies": { 18 | "sizzle": "2.1.1-jquery.2.1.2", 19 | "requirejs": "2.1.10", 20 | "qunit": "1.14.0", 21 | "sinon": "1.8.1" 22 | }, 23 | "keywords": [ 24 | "jquery", 25 | "javascript", 26 | "library" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/ajax/parseJSON.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Support: Android 2.3 6 | // Workaround failure to string-cast null input 7 | jQuery.parseJSON = function( data ) { 8 | return JSON.parse( data + "" ); 9 | }; 10 | 11 | return jQuery.parseJSON; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/ajax/parseXML.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Cross-browser xml parsing 6 | jQuery.parseXML = function( data ) { 7 | var xml, tmp; 8 | if ( !data || typeof data !== "string" ) { 9 | return null; 10 | } 11 | 12 | // Support: IE9 13 | try { 14 | tmp = new DOMParser(); 15 | xml = tmp.parseFromString( data, "text/xml" ); 16 | } catch ( e ) { 17 | xml = undefined; 18 | } 19 | 20 | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { 21 | jQuery.error( "Invalid XML: " + data ); 22 | } 23 | return xml; 24 | }; 25 | 26 | return jQuery.parseXML; 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/ajax/var/nonce.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../../core" 3 | ], function( jQuery ) { 4 | return jQuery.now(); 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/ajax/var/rquery.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/\?/); 3 | }); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/attributes.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./attributes/attr", 4 | "./attributes/prop", 5 | "./attributes/classes", 6 | "./attributes/val" 7 | ], function( jQuery ) { 8 | 9 | // Return jQuery for attributes-only inclusion 10 | return jQuery; 11 | }); 12 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/attributes/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | (function() { 6 | var input = document.createElement( "input" ), 7 | select = document.createElement( "select" ), 8 | opt = select.appendChild( document.createElement( "option" ) ); 9 | 10 | input.type = "checkbox"; 11 | 12 | // Support: iOS<=5.1, Android<=4.2+ 13 | // Default value for a checkbox should be "on" 14 | support.checkOn = input.value !== ""; 15 | 16 | // Support: IE<=11+ 17 | // Must access selectedIndex to make default options select 18 | support.optSelected = opt.selected; 19 | 20 | // Support: Android<=2.3 21 | // Options inside disabled selects are incorrectly marked as disabled 22 | select.disabled = true; 23 | support.optDisabled = !opt.disabled; 24 | 25 | // Support: IE<=11+ 26 | // An input loses its value after becoming a radio 27 | input = document.createElement( "input" ); 28 | input.value = "t"; 29 | input.type = "radio"; 30 | support.radioValue = input.value === "t"; 31 | })(); 32 | 33 | return support; 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/core/parseHTML.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "./var/rsingleTag", 4 | "../manipulation" // buildFragment 5 | ], function( jQuery, rsingleTag ) { 6 | 7 | // data: string of html 8 | // context (optional): If specified, the fragment will be created in this context, defaults to document 9 | // keepScripts (optional): If true, will include scripts passed in the html string 10 | jQuery.parseHTML = function( data, context, keepScripts ) { 11 | if ( !data || typeof data !== "string" ) { 12 | return null; 13 | } 14 | if ( typeof context === "boolean" ) { 15 | keepScripts = context; 16 | context = false; 17 | } 18 | context = context || document; 19 | 20 | var parsed = rsingleTag.exec( data ), 21 | scripts = !keepScripts && []; 22 | 23 | // Single tag 24 | if ( parsed ) { 25 | return [ context.createElement( parsed[1] ) ]; 26 | } 27 | 28 | parsed = jQuery.buildFragment( [ data ], context, scripts ); 29 | 30 | if ( scripts && scripts.length ) { 31 | jQuery( scripts ).remove(); 32 | } 33 | 34 | return jQuery.merge( [], parsed.childNodes ); 35 | }; 36 | 37 | return jQuery.parseHTML; 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/core/var/rsingleTag.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | // Match a standalone tag 3 | return (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); 4 | }); 5 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/css/addGetHookIf.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | 3 | function addGetHookIf( conditionFn, hookFn ) { 4 | // Define the hook, we'll check on the first run if it's really needed. 5 | return { 6 | get: function() { 7 | if ( conditionFn() ) { 8 | // Hook not needed (or it's not possible to use it due 9 | // to missing dependency), remove it. 10 | delete this.get; 11 | return; 12 | } 13 | 14 | // Hook needed; redefine it so that the support test is not executed again. 15 | return (this.get = hookFn).apply( this, arguments ); 16 | } 17 | }; 18 | } 19 | 20 | return addGetHookIf; 21 | 22 | }); 23 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/css/hiddenVisibleSelectors.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../selector" 4 | ], function( jQuery ) { 5 | 6 | jQuery.expr.filters.hidden = function( elem ) { 7 | // Support: Opera <= 12.12 8 | // Opera reports offsetWidths and offsetHeights less than zero on some elements 9 | return elem.offsetWidth <= 0 && elem.offsetHeight <= 0; 10 | }; 11 | jQuery.expr.filters.visible = function( elem ) { 12 | return !jQuery.expr.filters.hidden( elem ); 13 | }; 14 | 15 | }); 16 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/css/swap.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // A method for quickly swapping in/out CSS properties to get correct calculations. 6 | jQuery.swap = function( elem, options, callback, args ) { 7 | var ret, name, 8 | old = {}; 9 | 10 | // Remember the old values, and insert the new ones 11 | for ( name in options ) { 12 | old[ name ] = elem.style[ name ]; 13 | elem.style[ name ] = options[ name ]; 14 | } 15 | 16 | ret = callback.apply( elem, args || [] ); 17 | 18 | // Revert the old values 19 | for ( name in options ) { 20 | elem.style[ name ] = old[ name ]; 21 | } 22 | 23 | return ret; 24 | }; 25 | 26 | return jQuery.swap; 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/css/var/cssExpand.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return [ "Top", "Right", "Bottom", "Left" ]; 3 | }); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/css/var/getStyles.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return function( elem ) { 3 | // Support: IE<=11+, Firefox<=30+ (#15098, #14150) 4 | // IE throws on elements created in popups 5 | // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" 6 | if ( elem.ownerDocument.defaultView.opener ) { 7 | return elem.ownerDocument.defaultView.getComputedStyle( elem, null ); 8 | } 9 | 10 | return window.getComputedStyle( elem, null ); 11 | }; 12 | }); 13 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/css/var/isHidden.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../../core", 3 | "../../selector" 4 | // css is assumed 5 | ], function( jQuery ) { 6 | 7 | return function( elem, el ) { 8 | // isHidden might be called from jQuery#filter function; 9 | // in that case, element will be second argument 10 | elem = el || elem; 11 | return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); 12 | }; 13 | }); 14 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/css/var/rmargin.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/^margin/); 3 | }); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/css/var/rnumnonpx.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../../var/pnum" 3 | ], function( pnum ) { 4 | return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/data/accepts.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | /** 6 | * Determines whether an object can have data 7 | */ 8 | jQuery.acceptData = function( owner ) { 9 | // Accepts only: 10 | // - Node 11 | // - Node.ELEMENT_NODE 12 | // - Node.DOCUMENT_NODE 13 | // - Object 14 | // - Any 15 | /* jshint -W018 */ 16 | return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); 17 | }; 18 | 19 | return jQuery.acceptData; 20 | }); 21 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/data/var/data_priv.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../Data" 3 | ], function( Data ) { 4 | return new Data(); 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/data/var/data_user.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../Data" 3 | ], function( Data ) { 4 | return new Data(); 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/deprecated.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./traversing" 4 | ], function( jQuery ) { 5 | 6 | // The number of elements contained in the matched element set 7 | jQuery.fn.size = function() { 8 | return this.length; 9 | }; 10 | 11 | jQuery.fn.andSelf = jQuery.fn.addBack; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/effects/animatedSelector.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../selector", 4 | "../effects" 5 | ], function( jQuery ) { 6 | 7 | jQuery.expr.filters.animated = function( elem ) { 8 | return jQuery.grep(jQuery.timers, function( fn ) { 9 | return elem === fn.elem; 10 | }).length; 11 | }; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/event/ajax.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../event" 4 | ], function( jQuery ) { 5 | 6 | // Attach a bunch of functions for handling common AJAX events 7 | jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) { 8 | jQuery.fn[ type ] = function( fn ) { 9 | return this.on( type, fn ); 10 | }; 11 | }); 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/event/alias.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../event" 4 | ], function( jQuery ) { 5 | 6 | jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + 7 | "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + 8 | "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { 9 | 10 | // Handle event binding 11 | jQuery.fn[ name ] = function( data, fn ) { 12 | return arguments.length > 0 ? 13 | this.on( name, null, data, fn ) : 14 | this.trigger( name ); 15 | }; 16 | }); 17 | 18 | jQuery.fn.extend({ 19 | hover: function( fnOver, fnOut ) { 20 | return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); 21 | }, 22 | 23 | bind: function( types, data, fn ) { 24 | return this.on( types, null, data, fn ); 25 | }, 26 | unbind: function( types, fn ) { 27 | return this.off( types, null, fn ); 28 | }, 29 | 30 | delegate: function( selector, types, data, fn ) { 31 | return this.on( types, selector, data, fn ); 32 | }, 33 | undelegate: function( selector, types, fn ) { 34 | // ( namespace ) or ( selector, types [, fn] ) 35 | return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); 36 | } 37 | }); 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/event/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | support.focusinBubbles = "onfocusin" in window; 6 | 7 | return support; 8 | 9 | }); 10 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/exports/amd.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Register as a named AMD module, since jQuery can be concatenated with other 6 | // files that may use define, but not via a proper concatenation script that 7 | // understands anonymous AMD modules. A named AMD is safest and most robust 8 | // way to register. Lowercase jquery is used because AMD module names are 9 | // derived from file names, and jQuery is normally delivered in a lowercase 10 | // file name. Do this after creating the global so that if an AMD module wants 11 | // to call noConflict to hide this version of jQuery, it will work. 12 | 13 | // Note that for maximum portability, libraries that are not jQuery should 14 | // declare themselves as anonymous modules, and avoid setting a global if an 15 | // AMD loader is present. jQuery is a special case. For more information, see 16 | // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon 17 | 18 | if ( typeof define === "function" && define.amd ) { 19 | define( "jquery", [], function() { 20 | return jQuery; 21 | }); 22 | } 23 | 24 | }); 25 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/exports/global.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../var/strundefined" 4 | ], function( jQuery, strundefined ) { 5 | 6 | var 7 | // Map over jQuery in case of overwrite 8 | _jQuery = window.jQuery, 9 | 10 | // Map over the $ in case of overwrite 11 | _$ = window.$; 12 | 13 | jQuery.noConflict = function( deep ) { 14 | if ( window.$ === jQuery ) { 15 | window.$ = _$; 16 | } 17 | 18 | if ( deep && window.jQuery === jQuery ) { 19 | window.jQuery = _jQuery; 20 | } 21 | 22 | return jQuery; 23 | }; 24 | 25 | // Expose jQuery and $ identifiers, even in AMD 26 | // (#7102#comment:10, https://github.com/jquery/jquery/pull/557) 27 | // and CommonJS for browser emulators (#13566) 28 | if ( typeof noGlobal === strundefined ) { 29 | window.jQuery = window.$ = jQuery; 30 | } 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/jquery.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./selector", 4 | "./traversing", 5 | "./callbacks", 6 | "./deferred", 7 | "./core/ready", 8 | "./data", 9 | "./queue", 10 | "./queue/delay", 11 | "./attributes", 12 | "./event", 13 | "./event/alias", 14 | "./manipulation", 15 | "./manipulation/_evalUrl", 16 | "./wrap", 17 | "./css", 18 | "./css/hiddenVisibleSelectors", 19 | "./serialize", 20 | "./ajax", 21 | "./ajax/xhr", 22 | "./ajax/script", 23 | "./ajax/jsonp", 24 | "./ajax/load", 25 | "./event/ajax", 26 | "./effects", 27 | "./effects/animatedSelector", 28 | "./offset", 29 | "./dimensions", 30 | "./deprecated", 31 | "./exports/amd", 32 | "./exports/global" 33 | ], function( jQuery ) { 34 | 35 | return jQuery; 36 | 37 | }); 38 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/manipulation/_evalUrl.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../ajax" 3 | ], function( jQuery ) { 4 | 5 | jQuery._evalUrl = function( url ) { 6 | return jQuery.ajax({ 7 | url: url, 8 | type: "GET", 9 | dataType: "script", 10 | async: false, 11 | global: false, 12 | "throws": true 13 | }); 14 | }; 15 | 16 | return jQuery._evalUrl; 17 | 18 | }); 19 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/manipulation/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | (function() { 6 | var fragment = document.createDocumentFragment(), 7 | div = fragment.appendChild( document.createElement( "div" ) ), 8 | input = document.createElement( "input" ); 9 | 10 | // Support: Safari<=5.1 11 | // Check state lost if the name is set (#11217) 12 | // Support: Windows Web Apps (WWA) 13 | // `name` and `type` must use .setAttribute for WWA (#14901) 14 | input.setAttribute( "type", "radio" ); 15 | input.setAttribute( "checked", "checked" ); 16 | input.setAttribute( "name", "t" ); 17 | 18 | div.appendChild( input ); 19 | 20 | // Support: Safari<=5.1, Android<4.2 21 | // Older WebKit doesn't clone checked state correctly in fragments 22 | support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; 23 | 24 | // Support: IE<=11+ 25 | // Make sure textarea (and checkbox) defaultValue is properly cloned 26 | div.innerHTML = ""; 27 | support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; 28 | })(); 29 | 30 | return support; 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/manipulation/var/rcheckableType.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/^(?:checkbox|radio)$/i); 3 | }); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/outro.js: -------------------------------------------------------------------------------- 1 | })); 2 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/queue/delay.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../queue", 4 | "../effects" // Delay is optional because of this dependency 5 | ], function( jQuery ) { 6 | 7 | // Based off of the plugin by Clint Helfers, with permission. 8 | // http://blindsignals.com/index.php/2009/07/jquery-delay/ 9 | jQuery.fn.delay = function( time, type ) { 10 | time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; 11 | type = type || "fx"; 12 | 13 | return this.queue( type, function( next, hooks ) { 14 | var timeout = setTimeout( next, time ); 15 | hooks.stop = function() { 16 | clearTimeout( timeout ); 17 | }; 18 | }); 19 | }; 20 | 21 | return jQuery.fn.delay; 22 | }); 23 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/selector-sizzle.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "sizzle" 4 | ], function( jQuery, Sizzle ) { 5 | 6 | jQuery.find = Sizzle; 7 | jQuery.expr = Sizzle.selectors; 8 | jQuery.expr[":"] = jQuery.expr.pseudos; 9 | jQuery.unique = Sizzle.uniqueSort; 10 | jQuery.text = Sizzle.getText; 11 | jQuery.isXMLDoc = Sizzle.isXML; 12 | jQuery.contains = Sizzle.contains; 13 | 14 | }); 15 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/selector.js: -------------------------------------------------------------------------------- 1 | define([ "./selector-sizzle" ]); 2 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/traversing/var/rneedsContext.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../../core", 3 | "../../selector" 4 | ], function( jQuery ) { 5 | return jQuery.expr.match.needsContext; 6 | }); 7 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/arr.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return []; 3 | }); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/class2type.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | // [[Class]] -> type pairs 3 | return {}; 4 | }); 5 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/concat.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./arr" 3 | ], function( arr ) { 4 | return arr.concat; 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/hasOwn.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./class2type" 3 | ], function( class2type ) { 4 | return class2type.hasOwnProperty; 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/indexOf.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./arr" 3 | ], function( arr ) { 4 | return arr.indexOf; 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/pnum.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; 3 | }); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/push.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./arr" 3 | ], function( arr ) { 4 | return arr.push; 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/rnotwhite.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/\S+/g); 3 | }); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/slice.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./arr" 3 | ], function( arr ) { 4 | return arr.slice; 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/strundefined.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return typeof undefined; 3 | }); 4 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/support.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | // All support tests are defined in their respective modules. 3 | return {}; 4 | }); 5 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/lib/jquery/src/var/toString.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./class2type" 3 | ], function( class2type ) { 4 | return class2type.toString; 5 | }); 6 | -------------------------------------------------------------------------------- /samples/AspnetReact.Webpack/wwwroot/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/Webpack/Extensions/DevToolTypeExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace Webpack.Extensions { 2 | 3 | /// 4 | /// Contains extensions methods for 5 | /// 6 | public static class DevToolTypeExtensions { 7 | 8 | /// 9 | /// Returns the webpack required value for the provided 10 | /// 11 | public static string GetWebpackValue(this DevToolType devToolType) { 12 | switch (devToolType) { 13 | case DevToolType.Eval: 14 | return "eval"; 15 | case DevToolType.CheapEvalSourceMap: 16 | return "cheap-eval-source-map"; 17 | case DevToolType.CheapSourceMap: 18 | return "cheap-source-map"; 19 | case DevToolType.CheapModuleEvalSourceMap: 20 | return "cheap-module-eval-source-map"; 21 | case DevToolType.EvalSourceMap: 22 | return "eval-source-map"; 23 | case DevToolType.SourceMap: 24 | return "source-map"; 25 | } 26 | return "source-map"; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Webpack/IWebpack.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace Webpack { 3 | /// 4 | /// Basic contract interface for Webpack execution environment 5 | /// 6 | public interface IWebpack { 7 | 8 | /// 9 | /// Executes the webpack or webpack-dev-server based on the provided 10 | /// 11 | /// The webpack configuration object 12 | WebPackMiddlewareOptions Execute(WebpackOptions options); 13 | 14 | /// 15 | /// Executes the webpack or webpack-dev-server based on an external configuration file 16 | /// 17 | /// The webpack configuration object 18 | /// The name of the output file 19 | /// The dev server options in case we need hot loading 20 | WebPackMiddlewareOptions Execute(string configFile, string outputFileName, WebpackDevServerOptions devServerOptions); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Webpack/PlainJsonStringConverter.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System; 3 | 4 | namespace Webpack { 5 | /// 6 | /// Custom json converter used to write a property as raw value (no quotes) 7 | /// 8 | public class PlainJsonStringConverter : JsonConverter { 9 | public override bool CanConvert(Type objectType) { 10 | return objectType == typeof(string); 11 | } 12 | public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { 13 | return reader.Value; 14 | } 15 | public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { 16 | writer.WriteRawValue((string)value); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Webpack/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Webpack")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Webpack")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("09a17799-44b7-409e-99c8-c965722e46ca")] 24 | -------------------------------------------------------------------------------- /src/Webpack/WebPackMiddlewareOptions.cs: -------------------------------------------------------------------------------- 1 | namespace Webpack { 2 | 3 | /// 4 | /// The required options for the middleware in order to add the appropriate script tags 5 | /// 6 | public class WebPackMiddlewareOptions { 7 | 8 | /// 9 | /// Indicates if auto sync should be enabled by using webpack's development server 10 | /// 11 | public bool EnableHotLoading { get; set; } 12 | 13 | /// 14 | /// The file name of the output bundle 15 | /// In order to put the file in a different folder use a relative path e.g. js/webpackBundle.js 16 | /// If not specified is "bundle.js" 17 | /// 18 | public string OutputFileName { get; set; } 19 | 20 | /// 21 | /// The ip address of the server 22 | /// Default value if not specified is localhost 23 | /// 24 | public string Host { get; set; } 25 | 26 | /// 27 | /// The port of the server 28 | /// Default value if not specified is 4000 29 | /// 30 | public int Port { get; set; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/Webpack/WebpackDevServerOptions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Webpack { 4 | /// 5 | /// Contains the configuration options for the webpack development server when used 6 | /// 7 | public class WebpackDevServerOptions { 8 | 9 | public WebpackDevServerOptions(string host = "localhost", int port = 4000) { 10 | Host = host; 11 | Port = port; 12 | } 13 | 14 | /// 15 | /// The ip address of the server 16 | /// Default value if not specified is localhost 17 | /// 18 | public string Host { get; set; } 19 | 20 | /// 21 | /// The port of the server 22 | /// Default value if not specified is 4000 23 | /// 24 | public int Port { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Webpack/WebpackLoader.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System.Collections.Generic; 3 | 4 | namespace Webpack { 5 | /// 6 | /// Represents a webpack loader 7 | /// 8 | internal class WebpackLoader { 9 | [JsonConverter(typeof(PlainJsonStringConverter))] 10 | public string Test { get; set; } 11 | public string Loader { get; set; } 12 | [JsonConverter(typeof(PlainJsonStringConverter))] 13 | public string Exclude { get; set; } 14 | public Query Query { get; set; } 15 | } 16 | 17 | internal class Query { 18 | public IList Presets { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Webpack/WebpackServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.DependencyInjection; 2 | 3 | namespace Webpack { 4 | 5 | /// 6 | /// Handles registering Webpack services in the ASP.NET . 7 | /// 8 | public static class WebpackServiceCollectionExtensions { 9 | /// 10 | /// Registers all services required for Webpack 11 | /// 12 | public static IServiceCollection AddWebpack(this IServiceCollection services) { 13 | services.AddSingleton(); 14 | return services; 15 | } 16 | } 17 | } 18 | --------------------------------------------------------------------------------