1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 10:52:47 +00:00

updated bunch of file paths and changed the way posts are loaded

This commit is contained in:
2016-01-05 12:28:04 -06:00
parent 4bb8cae81e
commit 6ab45fe935
13249 changed files with 317868 additions and 2101398 deletions

6
node_modules/css-parse/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,6 @@
support
test
examples
*.sock
test.css
test.js

30
node_modules/css-parse/History.md generated vendored Normal file
View File

@@ -0,0 +1,30 @@
1.0.4 / 2012-09-17
==================
* fix keyframes float percentages
* fix an issue with comments containing slashes.
1.0.3 / 2012-09-01
==================
* add component support
* fix unquoted data uris [rstacruz]
* fix keyframe names with no whitespace [rstacruz]
* fix excess semicolon support [rstacruz]
1.0.2 / 2012-09-01
==================
* fix IE property hack support [rstacruz]
* fix quoted strings in declarations [rstacruz]
1.0.1 / 2012-07-26
==================
* change "selector" to "selectors" array
1.0.0 / 2010-01-03
==================
* Initial release

7
node_modules/css-parse/Makefile generated vendored Normal file
View File

@@ -0,0 +1,7 @@
test:
@./node_modules/.bin/mocha \
--require should \
--reporter spec
.PHONY: test

62
node_modules/css-parse/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,62 @@
# css-parse
CSS parser.
## Example
js:
```js
var parse = require('css-parse')
parse('tobi { name: "tobi" }')
```
object returned:
```json
{
"stylesheet": {
"rules": [
{
"selectors": ["tobi"],
"declarations": [
{
"property": "name",
"value": "tobi"
}
]
}
]
}
}
```
## Performance
Parsed 15,000 lines of CSS (2mb) in 40ms on my macbook air.
## License
(The MIT License)
Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

8
node_modules/css-parse/component.json generated vendored Normal file
View File

@@ -0,0 +1,8 @@
{
"name": "css-parse",
"repo": "visionmedia/node-css-parse",
"version": "1.0.3",
"description": "CSS parser",
"keywords": ["css", "parser", "stylesheet"],
"scripts": ["index.js"]
}

265
node_modules/css-parse/index.js generated vendored Normal file
View File

@@ -0,0 +1,265 @@
module.exports = function(css){
/**
* Parse stylesheet.
*/
function stylesheet() {
return { stylesheet: { rules: rules() }};
}
/**
* Opening brace.
*/
function open() {
return match(/^{\s*/);
}
/**
* Closing brace.
*/
function close() {
return match(/^}\s*/);
}
/**
* Parse ruleset.
*/
function rules() {
var node;
var rules = [];
whitespace();
comments();
while (css[0] != '}' && (node = atrule() || rule())) {
comments();
rules.push(node);
}
return rules;
}
/**
* Match `re` and return captures.
*/
function match(re) {
var m = re.exec(css);
if (!m) return;
css = css.slice(m[0].length);
return m;
}
/**
* Parse whitespace.
*/
function whitespace() {
match(/^\s*/);
}
/**
* Parse comments;
*/
function comments() {
while (comment()) ;
}
/**
* Parse comment.
*/
function comment() {
if ('/' == css[0] && '*' == css[1]) {
var i = 2;
while ('*' != css[i] || '/' != css[i + 1]) ++i;
i += 2;
css = css.slice(i);
whitespace();
return true;
}
}
/**
* Parse selector.
*/
function selector() {
var m = match(/^([^{]+)/);
if (!m) return;
return m[0].trim().split(/\s*,\s*/);
}
/**
* Parse declaration.
*/
function declaration() {
// prop
var prop = match(/^(\*?[-\w]+)\s*/);
if (!prop) return;
prop = prop[0];
// :
if (!match(/^:\s*/)) return;
// val
var val = match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)\s*/);
if (!val) return;
val = val[0].trim();
// ;
match(/^[;\s]*/);
return { property: prop, value: val };
}
/**
* Parse keyframe.
*/
function keyframe() {
var m;
var vals = [];
while (m = match(/^(from|to|\d+%|\.\d+%|\d+\.\d+%)\s*/)) {
vals.push(m[1]);
match(/^,\s*/);
}
if (!vals.length) return;
return {
values: vals,
declarations: declarations()
};
}
/**
* Parse keyframes.
*/
function keyframes() {
var m = match(/^@([-\w]+)?keyframes */);
if (!m) return;
var vendor = m[1];
// identifier
var m = match(/^([-\w]+)\s*/);
if (!m) return;
var name = m[1];
if (!open()) return;
comments();
var frame;
var frames = [];
while (frame = keyframe()) {
frames.push(frame);
comments();
}
if (!close()) return;
return {
name: name,
vendor: vendor,
keyframes: frames
};
}
/**
* Parse media.
*/
function media() {
var m = match(/^@media *([^{]+)/);
if (!m) return;
var media = m[1].trim();
if (!open()) return;
comments();
var style = rules();
if (!close()) return;
return { media: media, rules: style };
}
/**
* Parse import
*/
function atimport() {
return _atrule('import')
}
/**
* Parse charset
*/
function atcharset() {
return _atrule('charset');
}
/**
* Parse non-block at-rules
*/
function _atrule(name) {
var m = match(new RegExp('^@' + name + ' *([^;\\n]+);\\s*'));
if (!m) return;
var ret = {}
ret[name] = m[1].trim();
return ret;
}
/**
* Parse declarations.
*/
function declarations() {
var decls = [];
if (!open()) return;
comments();
// declarations
var decl;
while (decl = declaration()) {
decls.push(decl);
comments();
}
if (!close()) return;
return decls;
}
/**
* Parse at rule.
*/
function atrule() {
return keyframes()
|| media()
|| atimport()
|| atcharset();
}
/**
* Parse rule.
*/
function rule() {
var sel = selector();
if (!sel) return;
comments();
return { selectors: sel, declarations: declarations() };
}
return stylesheet();
};

66
node_modules/css-parse/package.json generated vendored Normal file
View File

@@ -0,0 +1,66 @@
{
"_args": [
[
"css-parse@1.0.4",
"/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/css"
]
],
"_from": "css-parse@1.0.4",
"_id": "css-parse@1.0.4",
"_inCache": true,
"_installable": true,
"_location": "/css-parse",
"_npmUser": {
"email": "tj@vision-media.ca",
"name": "tjholowaychuk"
},
"_npmVersion": "1.1.61",
"_phantomChildren": {},
"_requested": {
"name": "css-parse",
"raw": "css-parse@1.0.4",
"rawSpec": "1.0.4",
"scope": null,
"spec": "1.0.4",
"type": "version"
},
"_requiredBy": [
"/css"
],
"_resolved": "https://registry.npmjs.org/css-parse/-/css-parse-1.0.4.tgz",
"_shasum": "38b0503fbf9da9f54e9c1dbda60e145c77117bdd",
"_shrinkwrap": null,
"_spec": "css-parse@1.0.4",
"_where": "/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/css",
"author": {
"email": "tj@vision-media.ca",
"name": "TJ Holowaychuk"
},
"dependencies": {},
"description": "CSS parser",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "38b0503fbf9da9f54e9c1dbda60e145c77117bdd",
"tarball": "http://registry.npmjs.org/css-parse/-/css-parse-1.0.4.tgz"
},
"keywords": [
"css",
"parser",
"stylesheet"
],
"main": "index",
"maintainers": [
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
}
],
"name": "css-parse",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"version": "1.0.4"
}