nav tabs on admin dashboard
This commit is contained in:
-20
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"extends": "standard",
|
||||
"rules": {
|
||||
"padded-blocks": 0,
|
||||
"semi": 0,
|
||||
"curly": 0,
|
||||
"space-before-function-paren": 0,
|
||||
"space-before-blocks": 0,
|
||||
"brace-style": 0,
|
||||
"quotes": 0,
|
||||
"new-cap": 0,
|
||||
"no-multiple-empty-lines": 0,
|
||||
"promise/param-names": 0,
|
||||
"spaced-comment": 0,
|
||||
"yoda": 0,
|
||||
"keyword-spacing": 0,
|
||||
"standard/object-curly-even-spacing": 0,
|
||||
"comma-spacing": 0
|
||||
}
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
support
|
||||
test
|
||||
examples
|
||||
*.sock
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
node_js:
|
||||
- "5"
|
||||
- "4"
|
||||
- "0.12"
|
||||
- "0.10"
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- node_js: "0.10"
|
||||
- node_js: "0.12"
|
||||
+18
@@ -1,3 +1,21 @@
|
||||
0.15.1 / 2018-03-19
|
||||
===================
|
||||
|
||||
* add support for underscore partials
|
||||
* updating metadata and configurations
|
||||
* lint and cleanup code and tests
|
||||
|
||||
0.15.0 / 2017-11-01
|
||||
===================
|
||||
|
||||
* add plates support
|
||||
* add teacup support
|
||||
* add liquid-node support
|
||||
* add velocityjs support
|
||||
* allow absolute and relative partial paths
|
||||
* extend dot options
|
||||
* support layouts in vash
|
||||
|
||||
0.14.0 / 2016-01-24
|
||||
===================
|
||||
|
||||
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
|
||||
REPORTER = spec
|
||||
|
||||
test:
|
||||
@./node_modules/.bin/mocha \
|
||||
--slow 30 \
|
||||
--reporter $(REPORTER)
|
||||
|
||||
.PHONY: test
|
||||
+6
-9
@@ -32,12 +32,15 @@
|
||||
- [mote](https://github.com/satchmorun/mote) [(website)](http://satchmorun.github.io/mote/)
|
||||
- [mustache](https://github.com/janl/mustache.js)
|
||||
- [nunjucks](https://github.com/mozilla/nunjucks) [(website)](https://mozilla.github.io/nunjucks)
|
||||
- [plates](https://github.com/flatiron/plates)
|
||||
- [pug (formerly jade)](https://github.com/pugjs/pug) [(website)](http://jade-lang.com/)
|
||||
- [QEJS](https://github.com/jepso/QEJS)
|
||||
- [ractive](https://github.com/Rich-Harris/Ractive)
|
||||
- [react](https://github.com/facebook/react)
|
||||
- [slm](https://github.com/slm-lang/slm)
|
||||
- [swig (unmaintained)](https://github.com/paularmstrong/swig)
|
||||
- [swig (maintained fork)](https://github.com/node-swig/swig-templates)
|
||||
- [teacup](https://github.com/goodeggs/teacup)
|
||||
- [templayed](http://archan937.github.com/templayed.js/)
|
||||
- [twig](https://github.com/justjohn/twig.js)
|
||||
- [liquid](https://github.com/leizongmin/tinyliquid) [(website)](http://liquidmarkup.org/)
|
||||
@@ -103,15 +106,9 @@ cons.swig('views/page.html', { user: 'tobi' })
|
||||
|
||||
## Caching
|
||||
|
||||
To enable or disable caching simply pass `{ cache: true/false }`. Engines _may_ use this option to cache things reading the file contents, compiled `Function`s etc. Engines which do _not_ support this may simply ignore it. All engines that consolidate.js implements I/O for will cache the file contents, ideal for production environments.
|
||||
|
||||
```js
|
||||
var cons = require('consolidate');
|
||||
cons.swig('views/page.html', { cache: false, user: 'tobi' }, function(err, html){
|
||||
if (err) throw err;
|
||||
console.log(html);
|
||||
});
|
||||
```
|
||||
To enable caching simply pass `{ cache: true }`. Engines _may_ use this option to cache things reading the file contents, compiled `Function`s etc. Engines which do _not_ support this may simply ignore it. All engines that consolidate.js implements I/O for will cache the file contents, ideal for production environments.
|
||||
When using consolidate directly: `cons.swig('views/page.html', { user: 'tobi', cache:true }, callback);`
|
||||
Using Express 3 or higher: `app.locals.cache = true` or set NODE_ENV to 'production' and Express will do this for you.
|
||||
|
||||
## Express 3.x example
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
module.exports = require('./lib/consolidate');
|
||||
module.exports = require('./lib/consolidate');
|
||||
|
||||
+505
-310
File diff suppressed because it is too large
Load Diff
+33
-18
@@ -1,33 +1,33 @@
|
||||
{
|
||||
"_from": "consolidate@^0.14.0",
|
||||
"_id": "consolidate@0.14.5",
|
||||
"_from": "consolidate@^0.15.1",
|
||||
"_id": "consolidate@0.15.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-WiUEe8dvcwcmZ8jLUsmJiI9JTGM=",
|
||||
"_integrity": "sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==",
|
||||
"_location": "/consolidate",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "consolidate@^0.14.0",
|
||||
"raw": "consolidate@^0.15.1",
|
||||
"name": "consolidate",
|
||||
"escapedName": "consolidate",
|
||||
"rawSpec": "^0.14.0",
|
||||
"rawSpec": "^0.15.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.14.0"
|
||||
"fetchSpec": "^0.15.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/vue-loader"
|
||||
"/@vue/component-compiler-utils"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.14.5.tgz",
|
||||
"_shasum": "5a25047bc76f73072667c8cb52c989888f494c63",
|
||||
"_spec": "consolidate@^0.14.0",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\vue-loader",
|
||||
"_resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.15.1.tgz",
|
||||
"_shasum": "21ab043235c71a07d45d9aad98593b0dba56bab7",
|
||||
"_spec": "consolidate@^0.15.1",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\@vue\\component-compiler-utils",
|
||||
"author": {
|
||||
"name": "TJ Holowaychuk",
|
||||
"email": "tj@vision-media.ca"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/visionmedia/consolidate.js/issues"
|
||||
"url": "https://github.com/tj/consolidate.js/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
@@ -40,7 +40,8 @@
|
||||
"atpl": ">=0.7.6",
|
||||
"babel-core": "^6.7.6",
|
||||
"babel-preset-react": "^6.5.0",
|
||||
"bracket-template": "^1.0.3",
|
||||
"bracket-template": "^1.1.4",
|
||||
"coffee-script": "^1.11.1",
|
||||
"dot": "^1.0.1",
|
||||
"dust": "^0.3.0",
|
||||
"dustjs-helpers": "^1.1.1",
|
||||
@@ -62,6 +63,7 @@
|
||||
"jazz": "^0.0.18",
|
||||
"jqtpl": "~1.1.0",
|
||||
"just": "^0.1.8",
|
||||
"liquid-node": "^2.6.1",
|
||||
"liquor": "^0.0.5",
|
||||
"lodash": "^4.0.0",
|
||||
"marko": "^3.12.0",
|
||||
@@ -69,6 +71,7 @@
|
||||
"mote": "^0.2.0",
|
||||
"mustache": "^2.2.1",
|
||||
"nunjucks": "^3.0.0",
|
||||
"plates": "~0.4.8",
|
||||
"pug": "^2.0.0-beta6",
|
||||
"qejs": "^3.0.5",
|
||||
"ractive": "^0.8.4",
|
||||
@@ -77,30 +80,42 @@
|
||||
"should": "*",
|
||||
"slm": "^0.5.0",
|
||||
"swig": "^1.4.1",
|
||||
"swig-templates": "^2.0.2",
|
||||
"teacup": "^2.0.0",
|
||||
"templayed": ">=0.2.3",
|
||||
"tinyliquid": "^0.2.22",
|
||||
"tinyliquid": "^0.2.30",
|
||||
"toffee": "^0.1.12",
|
||||
"twig": "^0.10.0",
|
||||
"underscore": "^1.3.3",
|
||||
"vash": "^0.12.2",
|
||||
"velocityjs": "^0.8.2",
|
||||
"walrus": "^0.10.1",
|
||||
"whiskers": "^0.4.0"
|
||||
},
|
||||
"homepage": "https://github.com/visionmedia/consolidate.js#readme",
|
||||
"engines": {
|
||||
"node": ">= 0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"lib"
|
||||
],
|
||||
"homepage": "https://github.com/tj/consolidate.js",
|
||||
"keywords": [
|
||||
"engine",
|
||||
"template",
|
||||
"view"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index",
|
||||
"main": "index.js",
|
||||
"name": "consolidate",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/visionmedia/consolidate.js.git"
|
||||
"url": "git+https://github.com/tj/consolidate.js.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"pretest": "npm run lint",
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "0.14.5"
|
||||
"version": "0.15.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user