Archi de base

This commit is contained in:
William Noris 2021-10-18 15:24:38 +02:00
parent 5252705940
commit 966604bb1f
15 changed files with 77621 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules/
dist/

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

BIN
.parcel-cache/data.mdb Normal file

Binary file not shown.

BIN
.parcel-cache/lock.mdb Normal file

Binary file not shown.

13
characters.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/style.css">
<title>Characters</title>
</head>
<body>
</body>
</html>

13
films.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/style.css">
<title>Films</title>
</head>
<body>
</body>
</html>

14
index.html Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/style.css">
<script src="scripts/util.js"></script>
<title>Accueil</title>
</head>
<body>
</body>
</html>

14155
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

497
package.json Normal file
View File

@ -0,0 +1,497 @@
{
"devDependencies": {
"parcel": "^2.0.0"
},
"name": "mandalorian",
"description": "",
"version": "1.0.0",
"dependencies": {
"abortcontroller-polyfill": "^1.7.3",
"acorn-globals": "^4.3.4",
"acorn": "^6.4.2",
"abab": "^2.0.5",
"acorn-walk": "^6.2.0",
"ajv": "^6.12.6",
"ansi-escapes": "^4.3.2",
"alphanum-sort": "^1.0.2",
"ansi-regex": "^5.0.1",
"ansi-html-community": "^0.0.8",
"ansi-styles": "^4.3.0",
"array-equal": "^1.0.0",
"array-union": "^2.1.0",
"asn1": "^0.2.4",
"asn1.js": "^5.4.1",
"assert": "^2.0.0",
"assert-plus": "^1.0.0",
"astral-regex": "^2.0.0",
"astring": "^1.7.5",
"async": "^0.9.2",
"async-limiter": "^1.0.1",
"asynckit": "^0.4.0",
"available-typed-arrays": "^1.0.5",
"aws-sign2": "^0.7.0",
"aws4": "^1.11.0",
"balanced-match": "^1.0.2",
"base-x": "^3.0.8",
"base64-js": "^1.5.1",
"bcrypt-pbkdf": "^1.0.2",
"big.js": "^5.2.2",
"bl": "^4.1.0",
"bn.js": "^5.2.0",
"boolbase": "^1.0.0",
"brace-expansion": "^1.1.11",
"braces": "^3.0.2",
"brorand": "^1.1.0",
"browser-process-hrtime": "^1.0.0",
"browserify-aes": "^1.2.0",
"browserify-cipher": "^1.0.1",
"browserify-des": "^1.0.2",
"browserify-rsa": "^4.1.0",
"browserify-sign": "^4.2.1",
"browserify-zlib": "^0.2.0",
"browserslist": "^4.17.4",
"buffer-from": "^1.1.2",
"builtin-status-codes": "^3.0.0",
"bytes": "^3.0.0",
"buffer": "^5.7.1",
"call-bind": "^1.0.2",
"callsites": "^3.1.0",
"caniuse-api": "^3.0.0",
"caseless": "^0.12.0",
"caniuse-lite": "^1.0.30001269",
"chalk": "^4.1.2",
"chrome-trace-event": "^1.0.3",
"cli-cursor": "^3.1.0",
"cipher-base": "^1.0.4",
"cli-spinners": "^2.6.1",
"color-convert": "^2.0.1",
"color-name": "^1.1.4",
"clone": "^2.1.2",
"colord": "^2.8.0",
"command-exists": "^1.2.9",
"combined-stream": "^1.0.8",
"concat-map": "^0.0.1",
"commander": "^7.2.0",
"connect": "^3.7.0",
"console-browserify": "^1.2.0",
"constants-browserify": "^1.0.0",
"content-disposition": "^0.5.2",
"convert-source-map": "^1.8.0",
"core-js": "^3.18.3",
"core-util-is": "^1.0.3",
"cosmiconfig": "^7.0.1",
"create-hash": "^1.2.0",
"create-ecdh": "^4.0.4",
"create-hmac": "^1.1.7",
"cross-spawn": "^6.0.5",
"crypto-browserify": "^3.12.0",
"css-color-names": "^1.0.1",
"css-declaration-sorter": "^6.1.3",
"css-modules-loader-core": "^1.1.0",
"css-selector-tokenizer": "^0.7.3",
"css-select": "^4.1.3",
"css-what": "^5.1.0",
"css-tree": "^1.1.3",
"cssesc": "^3.0.0",
"cssnano": "^5.0.8",
"cssnano-utils": "^2.0.1",
"cssnano-preset-default": "^5.1.4",
"csso": "^4.2.0",
"cssom": "^0.3.8",
"cssstyle": "^1.4.0",
"dashdash": "^1.14.1",
"data-urls": "^1.1.0",
"debug": "^4.3.2",
"deep-is": "^0.1.4",
"defaults": "^1.0.3",
"define-properties": "^1.1.3",
"delayed-stream": "^1.0.0",
"des.js": "^1.0.1",
"dir-glob": "^3.0.1",
"dom-serializer": "^1.3.2",
"buffer-xor": "^1.0.3",
"diffie-hellman": "^5.0.3",
"detect-libc": "^1.0.3",
"domutils": "^2.8.0",
"domain-browser": "^3.5.0",
"domexception": "^1.0.1",
"domhandler": "^4.2.2",
"domelementtype": "^2.2.0",
"dotenv-expand": "^5.1.0",
"dotenv": "^7.0.0",
"ecc-jsbn": "^0.1.2",
"ee-first": "^1.1.1",
"ejs": "^3.1.6",
"electron-to-chromium": "^1.3.871",
"elliptic": "^6.5.4",
"emoji-regex": "^8.0.0",
"emojis-list": "^3.0.0",
"emphasize": "^4.2.0",
"encodeurl": "^1.0.2",
"entities": "^3.0.1",
"error-ex": "^1.3.2",
"es-abstract": "^1.19.1",
"es-to-primitive": "^1.2.1",
"es6-object-assign": "^1.1.0",
"escalade": "^3.1.1",
"escape-string-regexp": "^1.0.5",
"escape-html": "^1.0.3",
"escodegen": "^1.14.3",
"esprima": "^4.0.1",
"estraverse": "^4.3.0",
"esutils": "^2.0.3",
"eventemitter3": "^4.0.7",
"events": "^3.3.0",
"evp_bytestokey": "^1.0.3",
"extend": "^3.0.2",
"extsprintf": "^1.3.0",
"fast-deep-equal": "^3.1.3",
"fast-glob": "^3.1.1",
"fast-json-stable-stringify": "^2.1.0",
"fast-levenshtein": "^2.0.6",
"fast-url-parser": "^1.1.3",
"fastparse": "^1.1.2",
"fastest-levenshtein": "^1.0.12",
"fault": "^1.0.4",
"filelist": "^1.0.2",
"fastq": "^1.13.0",
"fill-range": "^7.0.1",
"filesize": "^6.4.0",
"finalhandler": "^1.1.2",
"foreach": "^2.0.5",
"form-data": "^2.3.3",
"follow-redirects": "^1.14.4",
"forever-agent": "^0.6.1",
"format": "^0.2.2",
"fs.realpath": "^1.0.0",
"function-bind": "^1.1.1",
"get-intrinsic": "^1.1.1",
"gensync": "^1.0.0-beta.2",
"generic-names": "^2.0.1",
"get-port": "^4.2.0",
"get-symbol-description": "^1.0.0",
"getpass": "^0.1.7",
"glob": "^7.2.0",
"glob-parent": "^5.1.2",
"globals": "^13.11.0",
"globby": "^11.0.4",
"graceful-fs": "^4.2.8",
"har-schema": "^2.0.0",
"har-validator": "^5.1.5",
"has": "^1.0.3",
"has-ansi": "^2.0.0",
"has-bigints": "^1.0.1",
"has-flag": "^4.0.0",
"has-symbols": "^1.0.2",
"has-tostringtag": "^1.0.0",
"hash-base": "^3.1.0",
"hash.js": "^1.1.7",
"hmac-drbg": "^1.0.1",
"highlight.js": "^10.4.1",
"html-encoding-sniffer": "^1.0.2",
"html-tags": "^1.2.0",
"htmlnano": "^1.1.1",
"htmlparser2": "^7.1.2",
"http-proxy": "^1.18.1",
"http-signature": "^1.2.0",
"http-proxy-middleware": "^1.3.1",
"iconv-lite": "^0.4.24",
"https-browserify": "^1.0.0",
"icss-replace-symbols": "^1.1.0",
"ieee754": "^1.2.1",
"icss-utils": "^4.1.1",
"iferr": "^1.0.2",
"ignore": "^5.1.8",
"import-fresh": "^3.3.0",
"inflight": "^1.0.6",
"indexes-of": "^1.0.1",
"imurmurhash": "^0.1.4",
"inherits": "^2.0.4",
"is-absolute-url": "^3.0.3",
"internal-slot": "^1.0.3",
"is-arguments": "^1.1.1",
"is-arrayish": "^0.2.1",
"is-bigint": "^1.0.4",
"is-boolean-object": "^1.1.2",
"is-callable": "^1.2.4",
"is-date-object": "^1.0.5",
"is-docker": "^2.2.1",
"is-extglob": "^2.1.1",
"is-fullwidth-code-point": "^3.0.0",
"is-generator-function": "^1.0.10",
"is-html": "^1.1.0",
"is-glob": "^4.0.3",
"is-interactive": "^1.0.0",
"is-json": "^2.0.1",
"is-nan": "^1.3.2",
"is-negative-zero": "^2.0.1",
"is-number": "^7.0.0",
"is-number-object": "^1.0.6",
"is-plain-obj": "^3.0.0",
"is-regex": "^1.1.4",
"is-resolvable": "^1.1.0",
"is-shared-array-buffer": "^1.0.1",
"is-string": "^1.0.7",
"is-symbol": "^1.0.4",
"is-typed-array": "^1.1.8",
"is-typedarray": "^1.0.0",
"is-unicode-supported": "^0.1.0",
"is-url": "^1.2.4",
"is-weakref": "^1.0.1",
"is-wsl": "^2.2.0",
"isarray": "^1.0.0",
"isexe": "^2.0.0",
"isstream": "^0.1.2",
"js-tokens": "^4.0.0",
"jsbn": "^0.1.1",
"jake": "^10.8.2",
"jsdom": "^14.1.0",
"jsesc": "^2.5.2",
"json-parse-even-better-errors": "^2.3.1",
"json-schema": "^0.2.3",
"json-schema-traverse": "^0.4.1",
"json-source-map": "^0.6.1",
"json-stringify-safe": "^5.0.1",
"json5": "^1.0.1",
"levn": "^0.3.0",
"jsprim": "^1.4.1",
"lilconfig": "^2.0.3",
"lines-and-columns": "^1.1.6",
"lmdb-store": "^1.6.9",
"loader-utils": "^1.4.0",
"lodash": "^4.17.21",
"lodash.camelcase": "^4.3.0",
"lodash.clone": "^4.5.0",
"lodash.memoize": "^4.1.2",
"lodash.sortby": "^4.7.0",
"lodash.uniq": "^4.5.0",
"log-symbols": "^4.1.0",
"lowlight": "^1.17.0",
"lru-cache": "^6.0.0",
"md5.js": "^1.3.5",
"merge2": "^1.4.1",
"mdn-data": "^2.0.14",
"micromatch": "^4.0.4",
"mime-db": "^1.33.0",
"mime-types": "^2.1.18",
"miller-rabin": "^4.0.1",
"mimic-fn": "^2.1.0",
"minimalistic-assert": "^1.0.1",
"minimalistic-crypto-utils": "^1.0.1",
"minimatch": "^3.0.4",
"minimist": "^1.2.5",
"ms": "^2.1.2",
"msgpackr": "^1.4.7",
"msgpackr-extract": "^1.0.14",
"mkdirp": "^0.5.5",
"nanocolors": "^0.1.12",
"nan": "^2.15.0",
"nanoid": "^3.1.30",
"ncp": "^2.0.0",
"nice-try": "^1.0.5",
"node-addon-api": "^3.2.1",
"node-forge": "^0.10.0",
"node-gyp-build": "^4.3.0",
"node-releases": "^2.0.0",
"normalize-url": "^6.1.0",
"nullthrows": "^1.1.1",
"nth-check": "^2.0.1",
"nwsapi": "^2.2.0",
"oauth-sign": "^0.9.0",
"object-inspect": "^1.11.0",
"object-is": "^1.1.5",
"object-keys": "^1.1.1",
"object.assign": "^4.1.2",
"on-finished": "^2.3.0",
"onetime": "^5.1.2",
"once": "^1.4.0",
"open": "^7.4.2",
"optionator": "^0.8.3",
"ora": "^5.4.1",
"ordered-binary": "^1.1.3",
"os-browserify": "^0.3.0",
"pako": "^1.0.11",
"parent-module": "^1.0.1",
"parse-asn1": "^5.1.6",
"parse-json": "^5.2.0",
"parseurl": "^1.3.3",
"parse5": "^5.1.0",
"path-browserify": "^1.0.1",
"path-is-absolute": "^1.0.1",
"path-is-inside": "^1.0.2",
"path-key": "^2.0.1",
"path-to-regexp": "^2.2.1",
"path-type": "^4.0.0",
"pbkdf2": "^3.1.2",
"performance-now": "^2.1.0",
"picocolors": "^1.0.0",
"picomatch": "^2.3.0",
"postcss": "^8.3.9",
"pn": "^1.1.0",
"postcss-calc": "^8.0.0",
"postcss-colormin": "^5.2.0",
"postcss-convert-values": "^5.0.1",
"postcss-discard-comments": "^5.0.1",
"postcss-discard-duplicates": "^5.0.1",
"postcss-discard-empty": "^5.0.1",
"postcss-discard-overridden": "^5.0.1",
"postcss-merge-longhand": "^5.0.2",
"postcss-minify-font-values": "^5.0.1",
"postcss-merge-rules": "^5.0.2",
"postcss-minify-gradients": "^5.0.2",
"postcss-minify-params": "^5.0.1",
"postcss-minify-selectors": "^5.1.0",
"postcss-modules": "^3.2.2",
"postcss-modules-extract-imports": "^1.1.0",
"postcss-modules-local-by-default": "^1.2.0",
"postcss-modules-scope": "^1.1.0",
"postcss-modules-values": "^1.3.0",
"postcss-normalize-charset": "^5.0.1",
"postcss-normalize-display-values": "^5.0.1",
"postcss-normalize-repeat-style": "^5.0.1",
"postcss-normalize-string": "^5.0.1",
"postcss-normalize-positions": "^5.0.1",
"postcss-normalize-timing-functions": "^5.0.1",
"postcss-normalize-unicode": "^5.0.1",
"postcss-normalize-url": "^5.0.2",
"postcss-normalize-whitespace": "^5.0.1",
"postcss-ordered-values": "^5.0.2",
"postcss-reduce-initial": "^5.0.1",
"postcss-selector-parser": "^6.0.6",
"postcss-reduce-transforms": "^5.0.1",
"postcss-unique-selectors": "^5.0.1",
"postcss-svgo": "^5.0.2",
"posthtml": "^0.16.5",
"postcss-value-parser": "^4.1.0",
"posthtml-render": "^3.0.0",
"posthtml-parser": "^0.10.1",
"prelude-ls": "^1.1.2",
"process": "^0.11.10",
"process-nextick-args": "^2.0.1",
"psl": "^1.8.0",
"punycode": "^1.4.1",
"public-encrypt": "^4.0.3",
"qs": "^6.5.2",
"purgecss": "^4.0.3",
"querystring-es3": "^0.2.1",
"querystring": "^0.2.0",
"randombytes": "^2.1.0",
"queue-microtask": "^1.2.3",
"randomfill": "^1.0.4",
"range-parser": "^1.2.0",
"react-refresh": "^0.9.0",
"readable-stream": "^2.3.7",
"relateurl": "^0.2.7",
"regenerator-runtime": "^0.13.9",
"request": "^2.88.2",
"request-promise-core": "^1.1.4",
"request-promise-native": "^1.0.9",
"requires-port": "^1.0.0",
"resolve-from": "^4.0.0",
"restore-cursor": "^3.1.0",
"reusify": "^1.0.4",
"rimraf": "^3.0.2",
"ripemd160": "^2.0.2",
"run-parallel": "^1.2.0",
"safe-buffer": "^5.2.1",
"safer-buffer": "^2.1.2",
"saxes": "^3.1.11",
"semver": "^5.7.1",
"serve-handler": "^6.1.3",
"setimmediate": "^1.0.5",
"shebang-command": "^1.2.0",
"sha.js": "^2.4.11",
"shebang-regex": "^1.0.0",
"side-channel": "^1.0.4",
"signal-exit": "^3.0.5",
"slash": "^3.0.0",
"slice-ansi": "^4.0.0",
"source-map": "^0.5.7",
"source-map-js": "^0.6.2",
"source-map-support": "^0.5.20",
"split2": "^3.2.2",
"sshpk": "^1.16.1",
"srcset": "^4.0.0",
"stable": "^0.1.8",
"stealthy-require": "^1.1.1",
"statuses": "^1.5.0",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"string-width": "^4.2.3",
"string.prototype.trimend": "^1.0.4",
"string.prototype.trimstart": "^1.0.4",
"string-hash": "^1.1.3",
"string_decoder": "^1.3.0",
"strip-ansi": "^6.0.1",
"stylehacks": "^5.0.1",
"supports-color": "^7.2.0",
"svgo": "^2.7.0",
"supports-hyperlinks": "^2.2.0",
"symbol-tree": "^3.2.4",
"term-size": "^2.2.1",
"terminal-link": "^2.1.1",
"terser": "^5.9.0",
"timers-browserify": "^2.0.12",
"timsort": "^0.3.0",
"to-fast-properties": "^2.0.0",
"to-regex-range": "^5.0.1",
"tough-cookie": "^2.5.0",
"tty-browserify": "^0.0.1",
"tr46": "^1.0.1",
"tunnel-agent": "^0.6.0",
"tweetnacl": "^0.14.5",
"type-fest": "^0.20.2",
"type-check": "^0.3.2",
"unbox-primitive": "^1.0.1",
"uncss": "^0.17.3",
"uniq": "^1.0.1",
"uniqs": "^2.0.0",
"uri-js": "^4.4.1",
"unpipe": "^1.0.0",
"url": "^0.11.0",
"util": "^0.12.4",
"util-deprecate": "^1.0.2",
"utility-types": "^3.10.0",
"utils-merge": "^1.0.1",
"uuid": "^3.4.0",
"vendors": "^1.0.4",
"v8-compile-cache": "^2.3.0",
"verror": "^1.10.0",
"vm-browserify": "^1.1.2",
"w3c-hr-time": "^1.0.2",
"w3c-xmlserializer": "^1.1.2",
"wcwidth": "^1.0.1",
"weak-lru-cache": "^1.1.3",
"webidl-conversions": "^4.0.2",
"whatwg-mimetype": "^2.3.0",
"whatwg-encoding": "^1.0.5",
"whatwg-url": "^7.1.0",
"which": "^1.3.1",
"which-typed-array": "^1.1.7",
"which-boxed-primitive": "^1.0.2",
"word-wrap": "^1.2.3",
"wrap-ansi": "^7.0.0",
"wrappy": "^1.0.2",
"ws": "^7.5.5",
"xml-name-validator": "^3.0.0",
"xmlchars": "^2.2.0",
"xtend": "^4.0.2",
"xxhash-wasm": "^0.4.2",
"yallist": "^4.0.0",
"yaml": "^1.10.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "parcel index.html"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rasoirnoir/mandalorian.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/rasoirnoir/mandalorian/issues"
},
"homepage": "https://github.com/rasoirnoir/mandalorian#readme"
}

13
planets.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/style.css">
<title>Planets</title>
</head>
<body>
</body>
</html>

18
scripts/util.js Normal file
View File

@ -0,0 +1,18 @@
console.log("util.js loaded");
const URL = "https://swapi.dev/api";
/**
* Envoie un GET à l'api swappi
* @param {string} endpoint l'endpoint à interroger (ex: planets)
* @param {function} callback La fonction qui traitera la réponse JSON en retour
*/
const api_call = (endpoint, callback) => {
fetch(`${URL}/${endpoint}`)
.then(response => {
return response.json();
})
.then(jsonResp => {
callback(jsonResp);
});
}

4
styles/style.css Normal file
View File

@ -0,0 +1,4 @@
*{
margin: 0;
padding: 0;
}