mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-29 01:55:58 +02:00
Revert "permet l'ajout des frameworks et des routes"
This reverts commit 361112699c
This commit is contained in:
3
app/node_modules/infobox-parser/.babelrc
generated
vendored
3
app/node_modules/infobox-parser/.babelrc
generated
vendored
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"presets": ["es2015"],
|
||||
}
|
3
app/node_modules/infobox-parser/.github/FUNDING.yml
generated
vendored
3
app/node_modules/infobox-parser/.github/FUNDING.yml
generated
vendored
@@ -1,3 +0,0 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
custom: ['https://www.buymeacoffee.com/2tmRKi9']
|
3
app/node_modules/infobox-parser/.prettierrc
generated
vendored
3
app/node_modules/infobox-parser/.prettierrc
generated
vendored
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"singleQuote": true
|
||||
}
|
3
app/node_modules/infobox-parser/.travis.yml
generated
vendored
3
app/node_modules/infobox-parser/.travis.yml
generated
vendored
@@ -1,3 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "6.9.5"
|
46
app/node_modules/infobox-parser/README.md
generated
vendored
46
app/node_modules/infobox-parser/README.md
generated
vendored
@@ -1,46 +0,0 @@
|
||||
[](https://www.npmjs.com/package/infobox-parser)
|
||||
[](https://travis-ci.org/dijs/infobox-parser)
|
||||
|
||||
<a href="https://www.buymeacoffee.com/2tmRKi9" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174"></a>
|
||||
|
||||
## Infobox Parser
|
||||
|
||||
This was originally written as a companion module for `wikijs`. But it can work great on it's own as well. The main function of this module is parsing wikipedia article's infobox data. The infobox source is in wikitext format and
|
||||
difficult to parse. This module analyzes it and outputs JSON for you.
|
||||
|
||||
### Usage
|
||||
|
||||
```js
|
||||
var parseInfo = require("infobox-parser")
|
||||
|
||||
parseInfo(`
|
||||
{{Infobox Batman
|
||||
|name = Bruce Wayne
|
||||
|hero = y
|
||||
}}`);
|
||||
// Outputs {
|
||||
general: {
|
||||
hero: true,
|
||||
name: 'Bruce Wayne'
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parsing Options
|
||||
|
||||
```js
|
||||
/**
|
||||
* Parse Wiki Infobox Text
|
||||
* @param {string} source - Infobox source text
|
||||
* @param {Object} options - Parsing options
|
||||
* @param {boolean} [options.simplifyDataValues=true] - Only use primary data values
|
||||
* @param {boolean} [options.removeSmall=false] - Remove <small>...</small> chunks of source data
|
||||
* @param {boolean} [options.removeReferences=true] - Remove <ref>...</ref> chunks of source data
|
||||
* @returns {Object} Structured information from source text
|
||||
*/
|
||||
const info = parseInfo(source, options);
|
||||
```
|
||||
|
||||
### Support
|
||||
|
||||
It supports many of wikipedia features, but not all yet. If there is a feature you need it to support, but it does not. Please create an issue and I will add the functionality.
|
2
app/node_modules/infobox-parser/build/bundle.min.js
generated
vendored
2
app/node_modules/infobox-parser/build/bundle.min.js
generated
vendored
File diff suppressed because one or more lines are too long
64
app/node_modules/infobox-parser/package.json
generated
vendored
64
app/node_modules/infobox-parser/package.json
generated
vendored
@@ -1,64 +0,0 @@
|
||||
{
|
||||
"_from": "infobox-parser@3.6.2",
|
||||
"_id": "infobox-parser@3.6.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-lasdwvbtjCtDDO6mArAs/ueFEnBJRyo2UbZPAkd5rEG5NVJ3XFCOvbMwNTT/rJlFv1+ORw8D3UvZV4brpgATCg==",
|
||||
"_location": "/infobox-parser",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "infobox-parser@3.6.2",
|
||||
"name": "infobox-parser",
|
||||
"escapedName": "infobox-parser",
|
||||
"rawSpec": "3.6.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "3.6.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/wikijs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/infobox-parser/-/infobox-parser-3.6.2.tgz",
|
||||
"_shasum": "e2b2701fd6a6274fad49869ee1a0bad56930f1e7",
|
||||
"_spec": "infobox-parser@3.6.2",
|
||||
"_where": "/mnt/c/Users/docto/Downloads/Rappaurio/node_modules/wikijs",
|
||||
"author": {
|
||||
"name": "Richard van der Dys"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/dijs/infobox-parser/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"camelcase": "^4.1.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Parse Wikipedia Infobox Source",
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.24.1",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-es2015-rollup": "^3.0.0",
|
||||
"mocha": "^3.2.0",
|
||||
"rollup": "^0.41.6",
|
||||
"rollup-plugin-babel": "^2.7.1",
|
||||
"rollup-plugin-uglify": "^1.0.1",
|
||||
"should": "^11.2.1"
|
||||
},
|
||||
"funding": {
|
||||
"type": "individual",
|
||||
"url": "https://www.buymeacoffee.com/2tmRKi9"
|
||||
},
|
||||
"homepage": "https://github.com/dijs/infobox-parser#readme",
|
||||
"license": "MIT",
|
||||
"main": "build/bundle.min.js",
|
||||
"name": "infobox-parser",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/dijs/infobox-parser.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "mocha --no-colors --compilers js:babel-core/register"
|
||||
},
|
||||
"version": "3.6.2"
|
||||
}
|
17
app/node_modules/infobox-parser/rollup.config.js
generated
vendored
17
app/node_modules/infobox-parser/rollup.config.js
generated
vendored
@@ -1,17 +0,0 @@
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import uglify from 'rollup-plugin-uglify';
|
||||
|
||||
export default {
|
||||
entry: 'index.js',
|
||||
dest: 'build/bundle.min.js',
|
||||
format: 'cjs',
|
||||
sourceMap: 'inline',
|
||||
plugins: [
|
||||
babel({
|
||||
babelrc: false,
|
||||
presets: ['es2015-rollup'],
|
||||
exclude: 'node_modules/**',
|
||||
}),
|
||||
uglify(),
|
||||
],
|
||||
};
|
Reference in New Issue
Block a user