Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mvcct-templates

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvcct-templates

mvcct-templates installs content files needed by Mvc Controls Toolkit into asp.net core.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

mvcct-templates

current version: 1.2.0.

mvcct-templates installs content files needed by the Mvc Controls Toolkit into an asp.net core project. It is available on npm. Just install it after you have installed all other npm and Bower dependencies, and it'll add:

  1. Shared partial views to handle enhanced validation scripts, globalization scripts, html5 fallback widget scripts and css.
  2. Javascript mvcct-enhancer startup+option file under the folder wwwroot/startupjs.
  3. 2 Javascript files containing tasks to:
    • create a minimized version of the globalize library under wwwroot/lib/globalize (you may add more modules if needed by editing this file), and to move culture files to deploy under wwwroot/lib/globalize.
    • minimize the mvcct-enhancer startup+options file
  4. update or create a libman.json file with the JavaScript libraries from point 1 partial views

Important: 1.1.2 version fixed a JavaScript critical run. Developers, who scaffolded a project prior to that version must fix manually the bug, since the mvcct-templates can't be run twice on the same project. The fix is as follows:

Move the line of code:

<script src="~/lib/mvcct-enhancer/mvcct.enhancer.min.js"></script>

from Views\Shared\_EnhancementFallbackPartial.cshtml to Views\Shared\_GlobalizationScriptsPartial.cshtml just after @using System.Globalization, as shown in the snippet below:

@using System.Globalization
<script src="~/lib/mvcct-enhancer/mvcct.enhancer.min.js"></script>

This project is part of the Mvc Controls Toolkit . You can find instructions, documentation and more information on the Mvc Controls Toolkit in the Home repository

Keywords

FAQs

Package last updated on 27 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc