From d1739e16585dfd364378bca644e8d63235aa4412 Mon Sep 17 00:00:00 2001 From: Julie Thezenas <julie.thezenas@gmail.com> Date: Tue, 11 Jan 2022 15:14:36 +0100 Subject: [PATCH] feat: common test --- Discourse_test/about.js | 2 + Discourse_test/common/after_header.html | 22 - .../common/after_header/after_header.html | 6 + .../common/after_header/common.scss | 14 + Discourse_test/common/after_header/index.css | 17 + .../common/after_header/index.css.map | 1 + .../common/after_header/main_base.html | 14 + .../common/body_bottom/body_bottom.html | 1 + .../body_bottom/body_bottom.scss} | 0 .../common/body_bottom/index_body_bottom.css | 3 + .../body_bottom/index_body_bottom.css.map | 1 + Discourse_test/common/common.scss | 389 ------------------ .../component/template_component.js | 12 +- .../node_modules/handlebars/package.json | 131 +++--- .../node_modules/minimist/package.json | 72 +--- .../node_modules/neo-async/package.json | 56 +-- .../node_modules/source-map/package.json | 247 +++-------- .../node_modules/uglify-js/package.json | 83 +--- .../node_modules/wordwrap/package.json | 67 +-- Discourse_test/package-lock.json | 65 ++- Discourse_test/package.json | 5 + 21 files changed, 315 insertions(+), 893 deletions(-) delete mode 100644 Discourse_test/common/after_header.html create mode 100644 Discourse_test/common/after_header/after_header.html create mode 100644 Discourse_test/common/after_header/common.scss create mode 100644 Discourse_test/common/after_header/index.css create mode 100644 Discourse_test/common/after_header/index.css.map create mode 100644 Discourse_test/common/after_header/main_base.html create mode 100644 Discourse_test/common/body_bottom/body_bottom.html rename Discourse_test/{.gitignore => common/body_bottom/body_bottom.scss} (100%) create mode 100644 Discourse_test/common/body_bottom/index_body_bottom.css create mode 100644 Discourse_test/common/body_bottom/index_body_bottom.css.map delete mode 100644 Discourse_test/common/common.scss create mode 100644 Discourse_test/package.json diff --git a/Discourse_test/about.js b/Discourse_test/about.js index aa52edf..bfb2adf 100644 --- a/Discourse_test/about.js +++ b/Discourse_test/about.js @@ -2,4 +2,6 @@ "name": "My first remote theme", "about_url": "https://some.url.com", "license_url": "https://github.com/GitHubUsername/my-first-remote-theme/blob/master/LICENSE" + "homepage-feature-component": "https://github.com/discourse/discourse-homepage-feature-component.git" + "Versatile-banner": "https://github.com/tshenry/discourse-versatile-banner.git" } \ No newline at end of file diff --git a/Discourse_test/common/after_header.html b/Discourse_test/common/after_header.html deleted file mode 100644 index 94bb076..0000000 --- a/Discourse_test/common/after_header.html +++ /dev/null @@ -1,22 +0,0 @@ -<!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="common.scss"> - <title>Base thème</title> -</head> -<body> - <!--SECTION AFTER HEAD--> - <h1>Hello Totoro</h1> - <div class="banner"> - <img class="banner_images" src="../../../../../totoro_triste.png" alt=""> - <img class="banner_images" src="../../../../../totoro_triste.png" alt=""> - <img class="banner_images" src="../../../../../totoro_triste.png" alt=""> - </div> - - - -</body> -</html> \ No newline at end of file diff --git a/Discourse_test/common/after_header/after_header.html b/Discourse_test/common/after_header/after_header.html new file mode 100644 index 0000000..21f9ecd --- /dev/null +++ b/Discourse_test/common/after_header/after_header.html @@ -0,0 +1,6 @@ +<!-- code bannière /3 --> +<div class="hello-world-banner"> + <h1 class="hello-world">Hello World!</h1> +</div> + +<!-- code liste de catégories --> \ No newline at end of file diff --git a/Discourse_test/common/after_header/common.scss b/Discourse_test/common/after_header/common.scss new file mode 100644 index 0000000..e0ecb37 --- /dev/null +++ b/Discourse_test/common/after_header/common.scss @@ -0,0 +1,14 @@ +.hello-world-banner { + height: 300px; + width: 100%; + background: red; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 1em; +} + +.hello-world { + font-size: 8em; + color: white; +} \ No newline at end of file diff --git a/Discourse_test/common/after_header/index.css b/Discourse_test/common/after_header/index.css new file mode 100644 index 0000000..1cac2c1 --- /dev/null +++ b/Discourse_test/common/after_header/index.css @@ -0,0 +1,17 @@ +.banner { + height: 200px; + width: auto; + text-align: center; + margin: auto; +} + +h1 { + font-weight: bold; + font-family: Arial, Helvetica, sans-serif; +} + +body { + background-color: yellow; +} + +/*# sourceMappingURL=index.css.map */ diff --git a/Discourse_test/common/after_header/index.css.map b/Discourse_test/common/after_header/index.css.map new file mode 100644 index 0000000..eb1d75d --- /dev/null +++ b/Discourse_test/common/after_header/index.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["common.scss"],"names":[],"mappings":"AAAA;EACI;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI","file":"index.css"} \ No newline at end of file diff --git a/Discourse_test/common/after_header/main_base.html b/Discourse_test/common/after_header/main_base.html new file mode 100644 index 0000000..3eece68 --- /dev/null +++ b/Discourse_test/common/after_header/main_base.html @@ -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="index.css"> + <title>Base thème</title> +</head> +<body> + {{{ after_header }}} + +</body> +</html> \ No newline at end of file diff --git a/Discourse_test/common/body_bottom/body_bottom.html b/Discourse_test/common/body_bottom/body_bottom.html new file mode 100644 index 0000000..0fb9379 --- /dev/null +++ b/Discourse_test/common/body_bottom/body_bottom.html @@ -0,0 +1 @@ +{{{ body_bottom }}} \ No newline at end of file diff --git a/Discourse_test/.gitignore b/Discourse_test/common/body_bottom/body_bottom.scss similarity index 100% rename from Discourse_test/.gitignore rename to Discourse_test/common/body_bottom/body_bottom.scss diff --git a/Discourse_test/common/body_bottom/index_body_bottom.css b/Discourse_test/common/body_bottom/index_body_bottom.css new file mode 100644 index 0000000..c1cf7c2 --- /dev/null +++ b/Discourse_test/common/body_bottom/index_body_bottom.css @@ -0,0 +1,3 @@ + + +/*# sourceMappingURL=index_body_bottom.css.map */ diff --git a/Discourse_test/common/body_bottom/index_body_bottom.css.map b/Discourse_test/common/body_bottom/index_body_bottom.css.map new file mode 100644 index 0000000..f0e5df8 --- /dev/null +++ b/Discourse_test/common/body_bottom/index_body_bottom.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":[],"names":[],"mappings":"","file":"index_body_bottom.css"} \ No newline at end of file diff --git a/Discourse_test/common/common.scss b/Discourse_test/common/common.scss deleted file mode 100644 index f64640c..0000000 --- a/Discourse_test/common/common.scss +++ /dev/null @@ -1,389 +0,0 @@ -.banner { - height: 200px; - width: auto; - text-align: center; - margin: auto; -} - -h1 { - font-weight: bold; - font-family: Arial, Helvetica, sans-serif; -} - -// .banner_images { -// width: 10em; -// } -////////////////////////////////////////////////////// - -// @import 'variables'; - -// input[type="text"], -// input[type="password"], -// input[type="datetime"], -// input[type="datetime-local"], -// input[type="date"], -// input[type="month"], -// input[type="time"], -// input[type="week"], -// input[type="number"], -// input[type="email"], -// input[type="url"], -// input[type="search"], -// input[type="tel"], -// input[type="color"], -// .d-editor-textarea-wrapper, .select-kit-header { -// @include border-radius; -// } - -// input[type="text"]:focus, -// input[type="password"]:focus, -// input[type="datetime"]:focus, -// input[type="datetime-local"]:focus, -// input[type="date"]:focus, -// input[type="month"]:focus, -// input[type="time"]:focus, -// input[type="week"]:focus, -// input[type="number"]:focus, -// input[type="email"]:focus, -// input[type="url"]:focus, -// input[type="search"]:focus, -// input[type="tel"]:focus, -// input[type="color"]:focus, -// .d-editor-textarea-wrapper.in-focus, -// .select-kit.multi-select.is-expanded .multi-select-header, -// .select-kit.single-select.is-expanded .select-kit-header:not(.btn), -// .select-kit.single-select .select-kit-header:not(.btn):focus, -// .select-kit.single-select .select-kit-header:not(.btn):active { -// @include border-radius; -// box-shadow: none; -// outline: none; -// } - -// .d-header { -// height: 5em; -// box-shadow: none; -// } - -// .alert.alert-info { -// border-radius: 10px; -// } - -// .custom-homepage-columns { -// margin: 2em 0 2em 0; -// .col { -// position: relative; -// @include border-radius; -// background: $color-white; -// padding: 2em 2em 1em; -// border-top: 8px solid $tertiary; -// box-shadow: 0 8px 60px 0 rgba(103,151,255,.10), 0 12px 90px 0 rgba(133,255,103,.10); -// .header-wrapper { -// color: var(--primary); -// background-color: transparent; -// .btn-primary { -// display: none; -// } -// } -// .btn-more { -// color: var(--secondary); -// background: var(--tertiary); -// transition: all 0.3s linear; -// @include border-radius; -// text-transform: uppercase; -// border: 1px solid var(--tertiary); -// &:hover { -// background: var(--tertiary); -// color: var(--secondary); -// box-shadow: 4px 4px $color-box-shadow; -// transition: 0.3s; -// @include border-radius; -// } -// } -// } -// } - -// .navigation-categories .search-banner { -// @include border-radius; -// height: 350px; -// box-sizing: border-box; -// padding: 2.5em 0 3em; -// margin: 1em auto; -// max-width: 1110px; -// } - -// .category-box-inner { -// background: $color-white; -// } - -// .navigation-topics { -// .container.list-container { -// @include border-radius; -// box-shadow: 0 8px 60px 0 rgba(103,151,255,.10), 0 12px 90px 0 rgba(133,255,103,.10); -// padding: 2em; -// background-color: $color-white; -// border-top: 8px solid $tertiary; -// margin-top: .8em; -// } -// } - -// .search-widget .search-context { -// padding: 10px; -// background-color: var(--tertiary-medium); -// @include border-radius; -// } - -// .search-menu .search-context .show-help { -// color: $color-white; -// } - -// .menu-panel .d-label { -// color: $color-black; -// } - -// a { -// color: var(--tertiary-hover); -// } - -// .category-boxes { -// display: grid; -// grid-gap: 2em; -// grid-template-columns: 32% 32% 32%; -// @include border-radius; -// .category-box { -// width: 100%; -// margin: 0; -// overflow: hidden; -// border: none; -// border-top: 8px solid; -// background: var(--secondary); -// @include border-radius; -// box-shadow: 0px 2px 3px 0px rgba(2,47,57,.14); -// .category-box-inner { -// border: none; -// padding: 0; -// .category-details { -// padding: 2em; -// } -// } -// &:hover { -// box-shadow: 0px 40px 30px 0px rgba(2,47,57,.10); -// transform: translateY(-2px); -// } -// } -// } - -// @media (max-width: 960px) { -// .category-boxes.with-logos.with-subcategories { -// grid-template-columns: 1fr; -// } -// } - -// .category-list-item.category { -// @include border-radius; -// border-right: 1px solid var(--primary-low) !important; -// box-shadow: 0 0 4px 0 rgba(0,0,0,.10); -// margin: 0 0.59em 2em .59em; -// background: white; -// } - -// #create-topic { -// color: var(--secondary); -// background: var(--tertiary); -// transition: all 0.3s linear; -// @include border-radius; -// text-transform: uppercase; -// border: 2px solid var(--tertiary); -// .fa { -// color: var(--secondary); -// } -// &:hover { -// background: var(--tertiary); -// color: var(--secondary); -// box-shadow: 4px 4px $color-box-shadow; -// transition: all 0.3s linear; -// @include border-radius; -// .fa { -// color: var(--secondary); -// } -// } -// } - -// .open .grippie { -// background: var(--tertiary); -// } - -// .options.toolbar-popup-menu-options { -// button.single-select-header.dropdown-select-box-header { -// background: transparent; -// border-radius: none; -// border: none; -// &:hover { -// background: var(--tertiary); -// border-radius: 0; -// } -// } -// } - -// .list-controls .combo-box .combo-box-header { -// border: none; -// @include border-radius; -// background-color: $color-white; -// } - -// .menu-panel .panel-body-bottom .btn { -// svg { -// color: var(--tertiary); -// } -// &:hover { -// background: var(--tertiary); -// color: var(--secondary); -// } -// } - -// .nav-pills li a { -// border: 1px solid transparent; -// @include border-radius; -// &:hover { -// @include border-radius; -// transition: all 0.3s linear; -// background-color: transparent; -// color: var(--tertiary); -// border: 1px dashed var(--tertiary); -// } -// &.active { -// @include border-radius; -// transition: all 0.3s linear; -// background: $color-mint; -// color: var(--secondary); -// border: 1px solid $color-mint; -// } -// } - -// .select-kit.dropdown-select-box .dropdown-select-box-header { -// background: var(--tertiary); -// @include border-radius; -// border: 1px solid var(--tertiary); -// color: var(--secondary); -// svg { -// color: var(--secondary); -// &:hover { -// color: var(--secondary); -// } -// } -// } - -// .d-editor-button-bar .select-kit.dropdown-select-box .dropdown-select-box-header { -// background: transparent; -// color: var(--primary-medium); -// border: 1px solid transparent; -// border-radius: 0; -// svg { -// color: currentColor; -// } -// &:hover { -// color: var(--secondary); -// background: var(--tertiary-hover); -// border: 1px solid var(--tertiary-hover); -// border-radius: 5px; -// } -// } - -// .discourse-no-touch .btn:hover .d-icon, .discourse-no-touch .btn.btn-hover .d-icon { -// color: var(--tertiary-hover); -// } - -// .discourse-no-touch .btn:hover, .discourse-no-touch .btn.btn-hover { -// color: var(--secondary); -// background: var(--tertiary-hover); -// border-radius: 5px; -// .fa { -// color: var(--secondary); -// } -// } - -// .menu-panel .widget-link:hover, .menu-panel .widget-link:focus, -// .menu-panel .categories-link:hover, .menu-panel .categories-link:focus { -// background-color: var(--tertiary-low); -// } - -// .btn-default { -// color: var(--secondary); -// background: var(--tertiary); -// transition: all 0.3s linear; -// @include border-radius; -// text-transform: uppercase; -// border: 1px solid var(--tertiary); -// .fa { -// color: var(--secondary); -// } -// } - -// .btn-primary { -// @include border-radius; -// } - -// .discourse-no-touch .btn-danger:hover { -// background: var(--danger-hover); -// } - -// .create { -// @include border-radius; -// } - -// .select-kit .select-kit-row.is-selected { -// background-color: var(--secondary-very-high); -// } - -// .modal-inner-container, .edit-category-footer { -// .btn-primary { -// @include border-radius; -// } -// } - -// .user-menu .quick-access-panel li:hover { -// background-color: var(--tertiary-low); -// } - -// a:hover { -// color: var(--tertiary-hover); -// } - -// .image-upload-controls .btn-default { -// border: 1px solid var(--secondary); -// .fa { -// color: var(--secondary); -// } -// } - -// .admin-controls, .email-template, .admin-container { -// .nav-pills>li a.active { -// background: var(--tertiary); -// color: var(--secondary); -// } -// .btn-primary { -// @include border-radius; -// } -// } - -// .custom-search-banner-wrap h1, .custom-search-banner-wrap p { -// color: $color-white; -// } - -// .btn[href] { -// color: var(--secondary); -// } - -// summary.select-kit-header.single-select-header.dropdown-select-box-header { -// padding: 0.5em; -// } - -// .search-container .search-advanced-sidebar { -// .search-advanced-title { -// background: var(--tertiary); -// color: var(--secondary); -// } -// .search-advanced-filters { -// border: 1px dashed var(--tertiary); -// } -// } - diff --git a/Discourse_test/javascript/component/template_component.js b/Discourse_test/javascript/component/template_component.js index 5d1efd7..a2fe53c 100644 --- a/Discourse_test/javascript/component/template_component.js +++ b/Discourse_test/javascript/component/template_component.js @@ -1,4 +1,8 @@ -// function() { -// firstname: "Yehuda", -// lastname: "Katz", -// } +(function(){ + var theScriptHTML = document.getElementById('adress_template').innerHTML + var theTemplate = Handlebars.compile(theScriptHTML); + var contextObj = {name: "Marie-Ange", city: "Alassac"}; + var compileData = theTemplate(contextObj); + + document.getElementById('adress-template').innerHTML = compileData; +}()); diff --git a/Discourse_test/node_modules/handlebars/package.json b/Discourse_test/node_modules/handlebars/package.json index eb7200b..ffeaf7d 100644 --- a/Discourse_test/node_modules/handlebars/package.json +++ b/Discourse_test/node_modules/handlebars/package.json @@ -1,52 +1,34 @@ { - "_from": "handlebars", - "_id": "handlebars@4.7.7", - "_inBundle": false, - "_integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", - "_location": "/handlebars", - "_phantomChildren": {}, - "_requested": { - "type": "tag", - "registry": true, - "raw": "handlebars", - "name": "handlebars", - "escapedName": "handlebars", - "rawSpec": "", - "saveSpec": null, - "fetchSpec": "latest" - }, - "_requiredBy": [ - "#USER", - "/" - ], - "_resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "_shasum": "9ce33416aad02dbd6c8fafa8240d5d98004945a1", - "_spec": "handlebars", - "_where": "/home/julie/Documents/LYDRA/PROJETS/Discourse_test", - "author": { - "name": "Yehuda Katz" - }, + "name": "handlebars", "barename": "handlebars", - "bin": { - "handlebars": "bin/handlebars" - }, - "browser": { - ".": "./dist/cjs/handlebars.js", - "./runtime": "./dist/cjs/handlebars.runtime.js" + "version": "4.7.7", + "description": "Handlebars provides the power necessary to let you build semantic templates effectively with no frustration", + "homepage": "http://www.handlebarsjs.com/", + "keywords": [ + "handlebars", + "mustache", + "template", + "html" + ], + "repository": { + "type": "git", + "url": "https://github.com/wycats/handlebars.js.git" }, - "bugs": { - "url": "https://github.com/wycats/handlebars.js/issues" + "author": "Yehuda Katz", + "license": "MIT", + "readmeFilename": "README.md", + "engines": { + "node": ">=0.4.7" }, - "bundleDependencies": false, "dependencies": { "minimist": "^1.2.5", "neo-async": "^2.6.0", "source-map": "^0.6.1", - "uglify-js": "^3.1.4", "wordwrap": "^1.0.0" }, - "deprecated": false, - "description": "Handlebars provides the power necessary to let you build semantic templates effectively with no frustration", + "optionalDependencies": { + "uglify-js": "^3.1.4" + }, "devDependencies": { "@knappi/grunt-saucelabs": "^9.0.2", "aws-sdk": "^2.1.49", @@ -92,8 +74,34 @@ "webpack": "^1.12.6", "webpack-dev-server": "^1.12.1" }, - "engines": { - "node": ">=0.4.7" + "main": "lib/index.js", + "types": "types/index.d.ts", + "browser": { + ".": "./dist/cjs/handlebars.js", + "./runtime": "./dist/cjs/handlebars.runtime.js" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "scripts": { + "format": "prettier --write '**/*.js' && eslint --fix .", + "check-format": "prettier --check '**/*.js'", + "lint": "eslint --max-warnings 0 .", + "dtslint": "dtslint types", + "test": "grunt", + "extensive-tests-and-publish-to-aws": "npx mocha tasks/task-tests/ && grunt --stack extensive-tests-and-publish-to-aws", + "integration-test": "grunt integration-tests", + "--- combined tasks ---": "", + "check-before-pull-request": "concurrently --kill-others-on-fail npm:lint npm:dtslint npm:check-format npm:test" + }, + "jspm": { + "main": "handlebars", + "directories": { + "lib": "dist/amd" + }, + "buildConfig": { + "minify": true + } }, "files": [ "bin", @@ -107,28 +115,11 @@ "types/*.d.ts", "runtime.d.ts" ], - "homepage": "http://www.handlebarsjs.com/", "husky": { "hooks": { "pre-commit": "lint-staged" } }, - "jspm": { - "main": "handlebars", - "directories": { - "lib": "dist/amd" - }, - "buildConfig": { - "minify": true - } - }, - "keywords": [ - "handlebars", - "mustache", - "template", - "html" - ], - "license": "MIT", "lint-staged": { "*.{js,css,json,md}": [ "prettier --write", @@ -138,27 +129,5 @@ "eslint --fix", "git add" ] - }, - "main": "lib/index.js", - "name": "handlebars", - "optionalDependencies": { - "uglify-js": "^3.1.4" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/wycats/handlebars.js.git" - }, - "scripts": { - "--- combined tasks ---": "", - "check-before-pull-request": "concurrently --kill-others-on-fail npm:lint npm:dtslint npm:check-format npm:test", - "check-format": "prettier --check '**/*.js'", - "dtslint": "dtslint types", - "extensive-tests-and-publish-to-aws": "npx mocha tasks/task-tests/ && grunt --stack extensive-tests-and-publish-to-aws", - "format": "prettier --write '**/*.js' && eslint --fix .", - "integration-test": "grunt integration-tests", - "lint": "eslint --max-warnings 0 .", - "test": "grunt" - }, - "types": "types/index.d.ts", - "version": "4.7.7" + } } diff --git a/Discourse_test/node_modules/minimist/package.json b/Discourse_test/node_modules/minimist/package.json index 1a24c89..c091d41 100644 --- a/Discourse_test/node_modules/minimist/package.json +++ b/Discourse_test/node_modules/minimist/package.json @@ -1,60 +1,16 @@ { - "_from": "minimist@^1.2.5", - "_id": "minimist@1.2.5", - "_inBundle": false, - "_integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "_location": "/minimist", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "minimist@^1.2.5", - "name": "minimist", - "escapedName": "minimist", - "rawSpec": "^1.2.5", - "saveSpec": null, - "fetchSpec": "^1.2.5" - }, - "_requiredBy": [ - "/handlebars" - ], - "_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "_shasum": "67d66014b66a6a8aaa0c083c5fd58df4e4e97602", - "_spec": "minimist@^1.2.5", - "_where": "/home/julie/Documents/LYDRA/PROJETS/Discourse_test/node_modules/handlebars", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bugs": { - "url": "https://github.com/substack/minimist/issues" - }, - "bundleDependencies": false, - "deprecated": false, + "name": "minimist", + "version": "1.2.5", "description": "parse argument options", + "main": "index.js", "devDependencies": { "covert": "^1.0.0", "tap": "~0.4.0", "tape": "^3.5.0" }, - "homepage": "https://github.com/substack/minimist", - "keywords": [ - "argv", - "getopt", - "parser", - "optimist" - ], - "license": "MIT", - "main": "index.js", - "name": "minimist", - "repository": { - "type": "git", - "url": "git://github.com/substack/minimist.git" - }, "scripts": { - "coverage": "covert test/*.js", - "test": "tap test/*.js" + "test": "tap test/*.js", + "coverage": "covert test/*.js" }, "testling": { "files": "test/*.js", @@ -69,5 +25,21 @@ "opera/12" ] }, - "version": "1.2.5" + "repository": { + "type": "git", + "url": "git://github.com/substack/minimist.git" + }, + "homepage": "https://github.com/substack/minimist", + "keywords": [ + "argv", + "getopt", + "parser", + "optimist" + ], + "author": { + "name": "James Halliday", + "email": "mail@substack.net", + "url": "http://substack.net" + }, + "license": "MIT" } diff --git a/Discourse_test/node_modules/neo-async/package.json b/Discourse_test/node_modules/neo-async/package.json index a19d8b1..d5702c4 100644 --- a/Discourse_test/node_modules/neo-async/package.json +++ b/Discourse_test/node_modules/neo-async/package.json @@ -1,35 +1,19 @@ { - "_from": "neo-async@^2.6.0", - "_id": "neo-async@2.6.2", - "_inBundle": false, - "_integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "_location": "/neo-async", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "neo-async@^2.6.0", - "name": "neo-async", - "escapedName": "neo-async", - "rawSpec": "^2.6.0", - "saveSpec": null, - "fetchSpec": "^2.6.0" - }, - "_requiredBy": [ - "/handlebars" + "name": "neo-async", + "version": "2.6.2", + "description": "Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster ", + "main": "async.js", + "license": "MIT", + "keywords": [ + "async", + "util" ], - "_resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "_shasum": "b4aafb93e3aeb2d8174ca53cf163ab7d7308305f", - "_spec": "neo-async@^2.6.0", - "_where": "/home/julie/Documents/LYDRA/PROJETS/Discourse_test/node_modules/handlebars", - "browser": "async.min.js", - "bugs": { - "url": "https://github.com/suguru03/neo-async/issues" + "repository": { + "type": "git", + "url": "git@github.com:suguru03/neo-async.git" }, - "bundleDependencies": false, + "homepage": "https://github.com/suguru03/neo-async", "dependencies": {}, - "deprecated": false, - "description": "Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster ", "devDependencies": { "aigle": "^1.14.0", "async": "^2.6.0", @@ -59,27 +43,15 @@ "prettier": "^1.15.2", "require-dir": "^0.3.0" }, - "homepage": "https://github.com/suguru03/neo-async", - "keywords": [ - "async", - "util" - ], - "license": "MIT", "lint-staged": { "*.{js,ts}": [ "prettier --write", "git add" ] }, - "main": "async.js", - "name": "neo-async", "prettier": { "printWidth": 100, "singleQuote": true }, - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/suguru03/neo-async.git" - }, - "version": "2.6.2" -} + "browser": "async.min.js" +} \ No newline at end of file diff --git a/Discourse_test/node_modules/source-map/package.json b/Discourse_test/node_modules/source-map/package.json index 4db1159..2466341 100644 --- a/Discourse_test/node_modules/source-map/package.json +++ b/Discourse_test/node_modules/source-map/package.json @@ -1,190 +1,52 @@ { - "_from": "source-map@^0.6.1", - "_id": "source-map@0.6.1", - "_inBundle": false, - "_integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "_location": "/source-map", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "source-map@^0.6.1", - "name": "source-map", - "escapedName": "source-map", - "rawSpec": "^0.6.1", - "saveSpec": null, - "fetchSpec": "^0.6.1" - }, - "_requiredBy": [ - "/handlebars" - ], - "_resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "_shasum": "74722af32e9614e9c287a8d0bbde48b5e2f1a263", - "_spec": "source-map@^0.6.1", - "_where": "/home/julie/Documents/LYDRA/PROJETS/Discourse_test/node_modules/handlebars", - "author": { - "name": "Nick Fitzgerald", - "email": "nfitzgerald@mozilla.com" - }, - "bugs": { - "url": "https://github.com/mozilla/source-map/issues" - }, - "bundleDependencies": false, + "name": "source-map", + "description": "Generates and consumes source maps", + "version": "0.6.1", + "homepage": "https://github.com/mozilla/source-map", + "author": "Nick Fitzgerald <nfitzgerald@mozilla.com>", "contributors": [ - { - "name": "Tobias Koppers", - "email": "tobias.koppers@googlemail.com" - }, - { - "name": "Duncan Beevers", - "email": "duncan@dweebd.com" - }, - { - "name": "Stephen Crane", - "email": "scrane@mozilla.com" - }, - { - "name": "Ryan Seddon", - "email": "seddon.ryan@gmail.com" - }, - { - "name": "Miles Elam", - "email": "miles.elam@deem.com" - }, - { - "name": "Mihai Bazon", - "email": "mihai.bazon@gmail.com" - }, - { - "name": "Michael Ficarra", - "email": "github.public.email@michael.ficarra.me" - }, - { - "name": "Todd Wolfson", - "email": "todd@twolfson.com" - }, - { - "name": "Alexander Solovyov", - "email": "alexander@solovyov.net" - }, - { - "name": "Felix Gnass", - "email": "fgnass@gmail.com" - }, - { - "name": "Conrad Irwin", - "email": "conrad.irwin@gmail.com" - }, - { - "name": "usrbincc", - "email": "usrbincc@yahoo.com" - }, - { - "name": "David Glasser", - "email": "glasser@davidglasser.net" - }, - { - "name": "Chase Douglas", - "email": "chase@newrelic.com" - }, - { - "name": "Evan Wallace", - "email": "evan.exe@gmail.com" - }, - { - "name": "Heather Arthur", - "email": "fayearthur@gmail.com" - }, - { - "name": "Hugh Kennedy", - "email": "hughskennedy@gmail.com" - }, - { - "name": "David Glasser", - "email": "glasser@davidglasser.net" - }, - { - "name": "Simon Lydell", - "email": "simon.lydell@gmail.com" - }, - { - "name": "Jmeas Smith", - "email": "jellyes2@gmail.com" - }, - { - "name": "Michael Z Goddard", - "email": "mzgoddard@gmail.com" - }, - { - "name": "azu", - "email": "azu@users.noreply.github.com" - }, - { - "name": "John Gozde", - "email": "john@gozde.ca" - }, - { - "name": "Adam Kirkton", - "email": "akirkton@truefitinnovation.com" - }, - { - "name": "Chris Montgomery", - "email": "christopher.montgomery@dowjones.com" - }, - { - "name": "J. Ryan Stinnett", - "email": "jryans@gmail.com" - }, - { - "name": "Jack Herrington", - "email": "jherrington@walmartlabs.com" - }, - { - "name": "Chris Truter", - "email": "jeffpalentine@gmail.com" - }, - { - "name": "Daniel Espeset", - "email": "daniel@danielespeset.com" - }, - { - "name": "Jamie Wong", - "email": "jamie.lf.wong@gmail.com" - }, - { - "name": "Eddy Bruël", - "email": "ejpbruel@mozilla.com" - }, - { - "name": "Hawken Rives", - "email": "hawkrives@gmail.com" - }, - { - "name": "Gilad Peleg", - "email": "giladp007@gmail.com" - }, - { - "name": "djchie", - "email": "djchie.dev@gmail.com" - }, - { - "name": "Gary Ye", - "email": "garysye@gmail.com" - }, - { - "name": "Nicolas LaleveÌe", - "email": "nicolas.lalevee@hibnet.org" - } + "Tobias Koppers <tobias.koppers@googlemail.com>", + "Duncan Beevers <duncan@dweebd.com>", + "Stephen Crane <scrane@mozilla.com>", + "Ryan Seddon <seddon.ryan@gmail.com>", + "Miles Elam <miles.elam@deem.com>", + "Mihai Bazon <mihai.bazon@gmail.com>", + "Michael Ficarra <github.public.email@michael.ficarra.me>", + "Todd Wolfson <todd@twolfson.com>", + "Alexander Solovyov <alexander@solovyov.net>", + "Felix Gnass <fgnass@gmail.com>", + "Conrad Irwin <conrad.irwin@gmail.com>", + "usrbincc <usrbincc@yahoo.com>", + "David Glasser <glasser@davidglasser.net>", + "Chase Douglas <chase@newrelic.com>", + "Evan Wallace <evan.exe@gmail.com>", + "Heather Arthur <fayearthur@gmail.com>", + "Hugh Kennedy <hughskennedy@gmail.com>", + "David Glasser <glasser@davidglasser.net>", + "Simon Lydell <simon.lydell@gmail.com>", + "Jmeas Smith <jellyes2@gmail.com>", + "Michael Z Goddard <mzgoddard@gmail.com>", + "azu <azu@users.noreply.github.com>", + "John Gozde <john@gozde.ca>", + "Adam Kirkton <akirkton@truefitinnovation.com>", + "Chris Montgomery <christopher.montgomery@dowjones.com>", + "J. Ryan Stinnett <jryans@gmail.com>", + "Jack Herrington <jherrington@walmartlabs.com>", + "Chris Truter <jeffpalentine@gmail.com>", + "Daniel Espeset <daniel@danielespeset.com>", + "Jamie Wong <jamie.lf.wong@gmail.com>", + "Eddy Bruël <ejpbruel@mozilla.com>", + "Hawken Rives <hawkrives@gmail.com>", + "Gilad Peleg <giladp007@gmail.com>", + "djchie <djchie.dev@gmail.com>", + "Gary Ye <garysye@gmail.com>", + "Nicolas LaleveÌe <nicolas.lalevee@hibnet.org>" ], - "deprecated": false, - "description": "Generates and consumes source maps", - "devDependencies": { - "doctoc": "^0.15.0", - "webpack": "^1.12.0" - }, - "engines": { - "node": ">=0.10.0" + "repository": { + "type": "git", + "url": "http://github.com/mozilla/source-map.git" }, + "main": "./source-map.js", "files": [ "source-map.js", "source-map.d.ts", @@ -194,19 +56,18 @@ "dist/source-map.min.js", "dist/source-map.min.js.map" ], - "homepage": "https://github.com/mozilla/source-map", - "license": "BSD-3-Clause", - "main": "./source-map.js", - "name": "source-map", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/mozilla/source-map.git" + "engines": { + "node": ">=0.10.0" }, + "license": "BSD-3-Clause", "scripts": { - "build": "webpack --color", "test": "npm run build && node test/run-tests.js", + "build": "webpack --color", "toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md" }, - "typings": "source-map", - "version": "0.6.1" + "devDependencies": { + "doctoc": "^0.15.0", + "webpack": "^1.12.0" + }, + "typings": "source-map" } diff --git a/Discourse_test/node_modules/uglify-js/package.json b/Discourse_test/node_modules/uglify-js/package.json index a533386..0636384 100644 --- a/Discourse_test/node_modules/uglify-js/package.json +++ b/Discourse_test/node_modules/uglify-js/package.json @@ -1,55 +1,34 @@ { - "_from": "uglify-js@^3.1.4", - "_id": "uglify-js@3.14.5", - "_inBundle": false, - "_integrity": "sha512-qZukoSxOG0urUTvjc2ERMTcAy+BiFh3weWAkeurLwjrCba73poHmG3E36XEjd/JGukMzwTL7uCxZiAexj8ppvQ==", - "_location": "/uglify-js", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "uglify-js@^3.1.4", - "name": "uglify-js", - "escapedName": "uglify-js", - "rawSpec": "^3.1.4", - "saveSpec": null, - "fetchSpec": "^3.1.4" + "name": "uglify-js", + "description": "JavaScript parser, mangler/compressor and beautifier toolkit", + "author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)", + "license": "BSD-2-Clause", + "version": "3.14.5", + "engines": { + "node": ">=0.8.0" }, - "_requiredBy": [ - "/handlebars" + "maintainers": [ + "Alex Lam <alexlamsl@gmail.com>", + "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)" ], - "_resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.5.tgz", - "_shasum": "cdabb7d4954231d80cb4a927654c4655e51f4859", - "_spec": "uglify-js@^3.1.4", - "_where": "/home/julie/Documents/LYDRA/PROJETS/Discourse_test/node_modules/handlebars", - "author": { - "name": "Mihai Bazon", - "email": "mihai.bazon@gmail.com", - "url": "http://lisperator.net/" - }, + "repository": "mishoo/UglifyJS", + "main": "tools/node.js", "bin": { "uglifyjs": "bin/uglifyjs" }, - "bugs": { - "url": "https://github.com/mishoo/UglifyJS/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "JavaScript parser, mangler/compressor and beautifier toolkit", - "devDependencies": { - "acorn": "~8.2.1", - "semver": "~6.3.0" - }, - "engines": { - "node": ">=0.8.0" - }, "files": [ "bin", "lib", "tools", "LICENSE" ], - "homepage": "https://github.com/mishoo/UglifyJS#readme", + "devDependencies": { + "acorn": "~8.2.1", + "semver": "~6.3.0" + }, + "scripts": { + "test": "node test/compress.js && node test/mocha.js" + }, "keywords": [ "cli", "compress", @@ -73,27 +52,5 @@ "parser", "uglifier", "uglify" - ], - "license": "BSD-2-Clause", - "main": "tools/node.js", - "maintainers": [ - { - "name": "Alex Lam", - "email": "alexlamsl@gmail.com" - }, - { - "name": "Mihai Bazon", - "email": "mihai.bazon@gmail.com", - "url": "http://lisperator.net/" - } - ], - "name": "uglify-js", - "repository": { - "type": "git", - "url": "git+https://github.com/mishoo/UglifyJS.git" - }, - "scripts": { - "test": "node test/compress.js && node test/mocha.js" - }, - "version": "3.14.5" + ] } diff --git a/Discourse_test/node_modules/wordwrap/package.json b/Discourse_test/node_modules/wordwrap/package.json index 4874018..5339ac0 100644 --- a/Discourse_test/node_modules/wordwrap/package.json +++ b/Discourse_test/node_modules/wordwrap/package.json @@ -1,47 +1,12 @@ { - "_from": "wordwrap@^1.0.0", - "_id": "wordwrap@1.0.0", - "_inBundle": false, - "_integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "_location": "/wordwrap", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "wordwrap@^1.0.0", - "name": "wordwrap", - "escapedName": "wordwrap", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/handlebars" - ], - "_resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "_shasum": "27584810891456a4171c8d0226441ade90cbcaeb", - "_spec": "wordwrap@^1.0.0", - "_where": "/home/julie/Documents/LYDRA/PROJETS/Discourse_test/node_modules/handlebars", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bugs": { - "url": "https://github.com/substack/node-wordwrap/issues" - }, - "bundleDependencies": false, - "deprecated": false, + "name": "wordwrap", "description": "Wrap those words. Show them at what columns to start and stop.", - "devDependencies": { - "tape": "^4.0.0" - }, - "directories": { - "lib": ".", - "example": "example", - "test": "test" + "version": "1.0.0", + "repository": { + "type": "git", + "url": "git://github.com/substack/node-wordwrap.git" }, - "homepage": "https://github.com/substack/node-wordwrap#readme", + "main": "./index.js", "keywords": [ "word", "wrap", @@ -49,15 +14,21 @@ "format", "column" ], - "license": "MIT", - "main": "./index.js", - "name": "wordwrap", - "repository": { - "type": "git", - "url": "git://github.com/substack/node-wordwrap.git" + "directories": { + "lib": ".", + "example": "example", + "test": "test" }, "scripts": { "test": "expresso" }, - "version": "1.0.0" + "devDependencies": { + "tape": "^4.0.0" + }, + "license": "MIT", + "author": { + "name": "James Halliday", + "email": "mail@substack.net", + "url": "http://substack.net" + } } diff --git a/Discourse_test/package-lock.json b/Discourse_test/package-lock.json index ef4dc28..214438f 100644 --- a/Discourse_test/package-lock.json +++ b/Discourse_test/package-lock.json @@ -1,6 +1,69 @@ { + "name": "Discourse_test", + "lockfileVersion": 2, "requires": true, - "lockfileVersion": 1, + "packages": { + "": { + "dependencies": { + "handlebars": "^4.7.7" + } + }, + "node_modules/handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/uglify-js": { + "version": "3.14.5", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.5.tgz", + "integrity": "sha512-qZukoSxOG0urUTvjc2ERMTcAy+BiFh3weWAkeurLwjrCba73poHmG3E36XEjd/JGukMzwTL7uCxZiAexj8ppvQ==", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" + } + }, "dependencies": { "handlebars": { "version": "4.7.7", diff --git a/Discourse_test/package.json b/Discourse_test/package.json new file mode 100644 index 0000000..388f062 --- /dev/null +++ b/Discourse_test/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "handlebars": "^4.7.7" + } +} -- GitLab