diff --git a/internal/web/settings-panel.go b/internal/web/settings-panel.go index 3ba396998..9e0c2ca87 100644 --- a/internal/web/settings-panel.go +++ b/internal/web/settings-panel.go @@ -43,10 +43,10 @@ func (m *Module) SettingsPanelHandler(c *gin.Context) { assetsPathPrefix + "/dist/base.css", assetsPathPrefix + "/dist/profile.css", assetsPathPrefix + "/dist/status.css", - assetsPathPrefix + "/dist/settings-panel-style.css", + assetsPathPrefix + "/dist/settings-style.css", }, "javascript": []string{ - assetsPathPrefix + "/dist/bundle.js", + assetsPathPrefix + "/dist/react-bundle.js", assetsPathPrefix + "/dist/settings.js", }, }) diff --git a/web/source/.browserslistrc b/web/source/.browserslistrc new file mode 100644 index 000000000..bd9fb7727 --- /dev/null +++ b/web/source/.browserslistrc @@ -0,0 +1,2 @@ +> 0.25% +not dead \ No newline at end of file diff --git a/web/source/dev-server.js b/web/source/dev-server.js deleted file mode 100644 index 46baad24a..000000000 --- a/web/source/dev-server.js +++ /dev/null @@ -1,73 +0,0 @@ -/* - GoToSocial - Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -"use strict"; - -const express = require("express"); - -const app = express(); - -function html(title, css, js) { - return ` - - - - - - - ${["_colors.css", "base.css", ...css].map((file) => { - return ``; - }).join("\n")} - GoToSocial ${title} Panel - - -
- Instance Logo -
-

- GoToSocial ${title} Panel -

-
-
-
-
-
- ${["bundle.js", ...js].map((file) => { - return ``; - }).join("\n")} - - -`; -} - -app.get("/admin", (req, res) => { - res.send(html("Admin", ["panels-admin-style.css"], ["admin-panel.js"])); -}); - -app.get("/user", (req, res) => { - res.send(html("Settings", ["panels-user-style.css"], ["user-panel.js"])); -}); - -app.use("/assets", express.static("../assets/")); - -if (process.env.NODE_ENV != "development") { - console.log("adding static asset route"); - app.use(express.static("../assets/dist")); -} - -module.exports = app; \ No newline at end of file diff --git a/web/source/index.js b/web/source/index.js index 218e420ed..896d2b09a 100644 --- a/web/source/index.js +++ b/web/source/index.js @@ -19,112 +19,46 @@ "use strict"; /* - Bundle the frontend panels for admin and user settings + Bundle the PostCSS stylesheets and javascript bundles for general frontend and settings panel */ const path = require('path'); -// Forked budo-express supports EventEmitter, to write bundle.js to disk in development -const budoExpress = require('@f0x52/budo-express'); -const babelify = require('babelify'); -const fs = require("fs"); -const EventEmitter = require('events'); +const fsSync = require("fs"); +const chalk = require("chalk"); -function out(name = "") { - return path.join(__dirname, "../assets/dist/", name); +const gtsBundler = require("./lib/bundler"); + +const devMode = process.env.NODE_ENV == "development"; +if (devMode) { + console.log(chalk.yellow("GoToSocial web asset bundler, running in development mode")); +} else { + console.log(chalk.yellow("GoToSocial web asset bundler, creating production build")); + process.env.NODE_ENV = "production"; } -module.exports = {out}; +let cssFiles = fsSync.readdirSync(path.join(__dirname, "./css")).map((file) => { + return path.join(__dirname, "./css", file); +}); -const splitCSS = require("./lib/split-css.js"); - -const bundles = { - "./frontend/index.js": "frontend.js", - "./settings-panel/index.js": "settings.js", - // "./panels/admin/index.js": "admin-panel.js", - // "./panels/user/index.js": "user-panel.js", -}; - -const postcssPlugins = [ - "postcss-import", - "postcss-nested", - "autoprefixer", - "postcss-custom-prop-vars", - "postcss-color-mod-function" -].map((plugin) => require(plugin)()); - -let uglifyifyInProduction; - -if (process.env.NODE_ENV != "development") { - console.log("uglifyify'ing production bundles"); - uglifyifyInProduction = [ - require("uglifyify"), { +const bundles = [ + { + outputFile: "frontend.js", + entryFiles: ["./frontend/index.js"], + babelOptions: { global: true, - exts: ".js" + exclude: /node_modules\/(?!photoswipe-dynamic-caption-plugin)/, } - ]; -} + }, + { + outputFile: "react-bundle.js", + factors: { + "./settings/index.js": "settings.js", + } + }, + { + outputFile: "_delete", // not needed, we only care for the css that's already split-out by css-extract + entryFiles: cssFiles, + } +]; -const browserifyConfig = { - transform: [ - [ - babelify.configure({ - presets: [ - [ - require.resolve("@babel/preset-env"), - { - modules: "cjs" - } - ], - require.resolve("@babel/preset-react") - ] - }), - { - global: true, - exclude: /node_modules\/(?!photoswipe-dynamic-caption-plugin)/, - } - ], - uglifyifyInProduction - ], - plugin: [ - [require("icssify"), { - parser: require("postcss-scss"), - before: postcssPlugins, - mode: 'global' - }], - [require("css-extract"), { out: splitCSS }], - [require("factor-bundle"), { - outputs: Object.values(bundles).map((file) => { - return out(file); - }) - }] - ], - extensions: [".js", ".jsx", ".css"] -}; - -const entryFiles = Object.keys(bundles); - -fs.readdirSync(path.join(__dirname, "./css")).forEach((file) => { - entryFiles.push(path.join(__dirname, "./css", file)); -}); - -if (!fs.existsSync(out())){ - fs.mkdirSync(out(), { recursive: true }); -} - -const server = budoExpress({ - port: 8081, - host: "localhost", - entryFiles: entryFiles, - basePath: __dirname, - bundlePath: "bundle.js", - staticPath: out(), - expressApp: require("./dev-server.js"), - browserify: browserifyConfig, - livereloadPattern: "**/*.{html,js,svg}" -}); - -if (server instanceof EventEmitter) { - server.on("update", (contents) => { - fs.writeFileSync(out("bundle.js"), contents); - }); -} \ No newline at end of file +return gtsBundler(devMode, bundles); \ No newline at end of file diff --git a/web/source/lib/bundler.js b/web/source/lib/bundler.js new file mode 100644 index 000000000..9d84184b7 --- /dev/null +++ b/web/source/lib/bundler.js @@ -0,0 +1,200 @@ +/* + GoToSocial + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +const Promise = require("bluebird"); +const browserify = require("browserify"); +const babelify = require('babelify'); +const chalk = require("chalk"); +const fs = require("fs").promises; +const { EventEmitter } = require("events"); +const path = require("path"); +const debugLib = require("debug"); +debugLib.enable("GoToSocial"); +const debug = debugLib("GoToSocial"); + +const outputEmitter = new EventEmitter(); + +const splitCSS = require("./split-css")(outputEmitter); +const out = require("./output-path"); + +const postcssPlugins = [ + "postcss-import", + "postcss-nested", + "autoprefixer", + "postcss-custom-prop-vars", + "postcss-color-mod-function" +].map((plugin) => require(plugin)()); + +function browserifyConfig(devMode, { transforms = [], plugins = [], babelOptions = {} }) { + if (devMode) { + plugins.push(require("watchify")); + } else { + transforms.push([ + require("uglifyify"), { + global: true, + exts: ".js" + } + ]); + } + + return { + cache: {}, + packageCache: {}, + transform: [ + [ + babelify.configure({ + presets: [ + [ + require.resolve("@babel/preset-env"), + { + modules: "cjs" + } + ], + require.resolve("@babel/preset-react") + ] + }), + babelOptions + ], + ...transforms + ], + plugin: [ + [require("icssify"), { + parser: require("postcss-scss"), + before: postcssPlugins, + mode: 'global' + }], + [require("css-extract"), { out: splitCSS }], + ...plugins + ], + extensions: [".js", ".jsx", ".css"], + basedir: path.join(__dirname, "../"), + fullPaths: devMode, + debug: devMode + }; +} + +module.exports = function gtsBundler(devMode, bundles) { + if (devMode) { + require("./dev-server")(outputEmitter); + } + + Promise.each(bundles, (bundleCfg) => { + let transforms, plugins, entryFiles; + let { outputFile, babelOptions } = bundleCfg; + + if (bundleCfg.factors != undefined) { + let factorBundle = [require("factor-bundle"), { + outputs: Object.values(bundleCfg.factors).map((file) => { + return out(file); + }), + threshold: function(row, groups) { + // always put livereload.js in common bundle + if (row.file.endsWith("web/source/lib/livereload.js")) { + return true; + } else { + return this._defaultThreshold(row, groups); + } + } + }]; + + plugins = [factorBundle]; + + entryFiles = Object.keys(bundleCfg.factors); + } else { + entryFiles = bundleCfg.entryFiles; + } + + if (devMode) { + entryFiles.push(path.join(__dirname, "./livereload.js")); + } + + let config = browserifyConfig(devMode, { transforms, plugins, babelOptions, entryFiles, outputFile }); + + return Promise.try(() => { + return browserify(entryFiles, config); + }).then((bundler) => { + bundler.on("error", (err) => { + console.error(err.message); + }); + Promise.promisifyAll(bundler); + + function makeBundle(cause) { + if (cause != undefined) { + debug(chalk.yellow(`Watcher: update on ${cause}, re-bundling`)); + } + return Promise.try(() => { + return bundler.bundleAsync(); + }).then((bundle) => { + if (outputFile != "_delete") { + let updates = new Set([outputFile]); + if (bundleCfg.factors != undefined) { + Object.values(bundleCfg.factors).forEach((factor) => { + updates.add(factor); + debug(chalk.magenta(`JS: writing to assets/dist/${factor}`)); + }); + } + outputEmitter.emit("update", {type: "JS", updates: Array.from(updates)}); + return fs.writeFile(out(outputFile), bundle); + } + }).catch((e) => { + debug(chalk.red("Fatal error in bundler:"), bundleCfg.outputFile); + if (e.name == "CssSyntaxError") { + // contains useful info about error + location, but followed by useless + // actual stacktrace, so cut that off + let stack = e.stack; + stack.split("\n").some((line) => { + if (line.startsWith(" at Input.error")) { + return true; + } else { + debug(line); + return false; + } + }); + } else { + debug(e.message); + } + }); + } + + if (devMode) { + bundler.on("update", makeBundle); + } + return makeBundle(); + }); + }).then(() => { + if (devMode) { + debug(chalk.yellow("Initial build finished, waiting for file changes")); + } else { + debug(chalk.yellow("Finished building")); + } + }); +}; + +outputEmitter.on("update", (u) => { + u.updates.forEach((outputFile) => { + let color = (str) => str; + if (u.type == "JS") { + color = chalk.magenta; + } else { + color = chalk.blue; + } + debug(color(`${u.type}: writing to assets/dist/${outputFile}`)); + }); +}); \ No newline at end of file diff --git a/web/source/lib/dev-server.js b/web/source/lib/dev-server.js new file mode 100644 index 000000000..a8094f5c2 --- /dev/null +++ b/web/source/lib/dev-server.js @@ -0,0 +1,40 @@ +/* + GoToSocial + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +const tinylr = require("tiny-lr"); +const chalk = require("chalk"); + +const PORT = 35729; + +module.exports = function devServer(outputEmitter) { + let server = tinylr(); + + server.listen(PORT, () => { + console.log(chalk.cyan(`Livereload server listening on :${PORT}`)); + }); + + outputEmitter.on("update", ({updates}) => { + let fullPaths = updates.map((path) => `/assets/dist/${path}`); + tinylr.changed(fullPaths.join(",")); + }); + + process.on("SIGUSR2", server.close); + process.on("SIGTERM", server.close); +}; \ No newline at end of file diff --git a/web/source/lib/livereload.js b/web/source/lib/livereload.js new file mode 100644 index 000000000..721d0fb64 --- /dev/null +++ b/web/source/lib/livereload.js @@ -0,0 +1,29 @@ +/* + GoToSocial + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +window.LiveReloadOptions = { + host: 'localhost', + pluginOrder: "css,img,external", + verbose: true +}; + +console.log("Development bundle with Livereloading code"); + +require("livereload-js/dist/livereload.min.js"); \ No newline at end of file diff --git a/web/source/lib/output-path.js b/web/source/lib/output-path.js new file mode 100644 index 000000000..e2a0a9c5c --- /dev/null +++ b/web/source/lib/output-path.js @@ -0,0 +1,32 @@ +/* + GoToSocial + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +"use strict"; + +const fsSync = require("fs"); +const path = require("path"); + +function out(name = "") { + return path.join(__dirname, "../../assets/dist/", name); +} + +if (!fsSync.existsSync(out())){ + fsSync.mkdirSync(out(), { recursive: true }); +} + +module.exports = out; \ No newline at end of file diff --git a/web/source/lib/split-css.js b/web/source/lib/split-css.js index da5602e1c..732223bb7 100644 --- a/web/source/lib/split-css.js +++ b/web/source/lib/split-css.js @@ -22,55 +22,61 @@ const fs = require("fs"); const path = require("path"); const {Writable} = require("stream"); -const {out} = require("../index.js"); +const out = require("./output-path"); const fromRegex = /\/\* from (.+?) \*\//; -module.exports = function splitCSS() { - let chunks = []; - return new Writable({ - write: function(chunk, encoding, next) { - chunks.push(chunk); - next(); - }, - final: function() { - let stream = chunks.join(""); - let input; - let content = []; +module.exports = function splitCSS(outputEmitter) { + return function() { + let chunks = []; + return new Writable({ + write: function(chunk, encoding, next) { + chunks.push(chunk); + next(); + }, - function write() { - if (content.length != 0) { - if (input == undefined) { - throw new Error("Got CSS content without filename, can't output: ", content); - } else { - console.log("writing to", out(input)); - fs.writeFileSync(out(input), content.join("\n")); - } - content = []; - } - } - - const cssDir = path.join(__dirname, "../css"); - - stream.split("\n").forEach((line) => { - if (line.startsWith("/* from")) { - let found = fromRegex.exec(line); - if (found != null) { - write(); - - let parts = path.parse(found[1]); - if (path.relative(cssDir, path.join(process.cwd(), parts.dir)) == "") { - input = parts.base; + final: function() { + let stream = chunks.join(""); + let input; + let content = []; + + function write() { + if (content.length != 0) { + if (input == undefined) { + if (content[0].length != 0) { + throw new Error("Got CSS content without filename, can't output: ", content); + } } else { - // prefix filename with path - let relative = path.relative(path.join(__dirname, "../"), path.join(process.cwd(), found[1])); - input = relative.replace(/\//g, "-"); + outputEmitter.emit("update", {type: "CSS", updates: [input]}); + fs.writeFileSync(out(input), content.join("\n")); } + content = []; } - } else { - content.push(line); } - }); - write(); - } - }); + + const cssDir = path.join(__dirname, "../css"); + + stream.split("\n").forEach((line) => { + if (line.startsWith("/* from")) { + let found = fromRegex.exec(line); + if (found != null) { + write(); + + let parts = path.parse(found[1]); + if (path.relative(cssDir, path.join(process.cwd(), parts.dir)) == "") { + input = parts.base; + } else { + // prefix filename with path + let relative = path.relative(path.join(__dirname, "../"), path.join(process.cwd(), found[1])); + input = relative.replace(/\//g, "-"); + } + } + } else { + content.push(line); + } + }); + + write(); + } + }); + }; }; diff --git a/web/source/package.json b/web/source/package.json index 6e8deba09..d6e6507db 100644 --- a/web/source/package.json +++ b/web/source/package.json @@ -16,17 +16,17 @@ "bluebird": "^3.7.2", "browserify": "^17.0.0", "browserlist": "^1.0.1", + "chalk": "4", "create-error": "^0.3.1", "css-extract": "^2.0.0", "default-value": "^1.0.0", "dotty": "^0.1.2", - "eslint-plugin-react": "^7.24.0", - "express": "^4.18.1", "factor-bundle": "^2.5.0", "icssify": "^2.0.0", "is-plain-object": "^5.0.0", "is-valid-domain": "^0.1.6", "js-file-download": "^0.4.12", + "livereload-js": "^3.4.1", "modern-normalize": "^1.1.0", "photoswipe": "^5.3.0", "photoswipe-dynamic-caption-plugin": "^1.2.4", @@ -45,12 +45,14 @@ "redux-devtools-extension": "^2.13.9", "redux-persist": "^6.0.0", "redux-thunk": "^2.4.1", + "tiny-lr": "^2.0.0", "uglifyify": "^5.0.2", "wouter": "^2.8.0-alpha.2" }, "devDependencies": { "@f0x52/eslint-config-react": "^1.1.0", "eslint": "^7.30.0", + "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0" } } diff --git a/web/source/settings-panel/admin/actions.js b/web/source/settings/admin/actions.js similarity index 100% rename from web/source/settings-panel/admin/actions.js rename to web/source/settings/admin/actions.js diff --git a/web/source/settings-panel/admin/emoji.js b/web/source/settings/admin/emoji.js similarity index 100% rename from web/source/settings-panel/admin/emoji.js rename to web/source/settings/admin/emoji.js diff --git a/web/source/settings-panel/admin/federation.js b/web/source/settings/admin/federation.js similarity index 100% rename from web/source/settings-panel/admin/federation.js rename to web/source/settings/admin/federation.js diff --git a/web/source/settings-panel/admin/settings.js b/web/source/settings/admin/settings.js similarity index 100% rename from web/source/settings-panel/admin/settings.js rename to web/source/settings/admin/settings.js diff --git a/web/source/settings-panel/components/error.jsx b/web/source/settings/components/error.jsx similarity index 100% rename from web/source/settings-panel/components/error.jsx rename to web/source/settings/components/error.jsx diff --git a/web/source/settings-panel/components/fake-toot.jsx b/web/source/settings/components/fake-toot.jsx similarity index 100% rename from web/source/settings-panel/components/fake-toot.jsx rename to web/source/settings/components/fake-toot.jsx diff --git a/web/source/settings-panel/components/form-fields.jsx b/web/source/settings/components/form-fields.jsx similarity index 100% rename from web/source/settings-panel/components/form-fields.jsx rename to web/source/settings/components/form-fields.jsx diff --git a/web/source/settings-panel/components/languages.jsx b/web/source/settings/components/languages.jsx similarity index 100% rename from web/source/settings-panel/components/languages.jsx rename to web/source/settings/components/languages.jsx diff --git a/web/source/settings-panel/components/login.jsx b/web/source/settings/components/login.jsx similarity index 100% rename from web/source/settings-panel/components/login.jsx rename to web/source/settings/components/login.jsx diff --git a/web/source/settings-panel/components/nav-button.jsx b/web/source/settings/components/nav-button.jsx similarity index 100% rename from web/source/settings-panel/components/nav-button.jsx rename to web/source/settings/components/nav-button.jsx diff --git a/web/source/settings-panel/components/submit.jsx b/web/source/settings/components/submit.jsx similarity index 100% rename from web/source/settings-panel/components/submit.jsx rename to web/source/settings/components/submit.jsx diff --git a/web/source/settings-panel/index.js b/web/source/settings/index.js similarity index 100% rename from web/source/settings-panel/index.js rename to web/source/settings/index.js diff --git a/web/source/settings-panel/lib/api/admin.js b/web/source/settings/lib/api/admin.js similarity index 100% rename from web/source/settings-panel/lib/api/admin.js rename to web/source/settings/lib/api/admin.js diff --git a/web/source/settings-panel/lib/api/index.js b/web/source/settings/lib/api/index.js similarity index 100% rename from web/source/settings-panel/lib/api/index.js rename to web/source/settings/lib/api/index.js diff --git a/web/source/settings-panel/lib/api/oauth.js b/web/source/settings/lib/api/oauth.js similarity index 100% rename from web/source/settings-panel/lib/api/oauth.js rename to web/source/settings/lib/api/oauth.js diff --git a/web/source/settings-panel/lib/api/user.js b/web/source/settings/lib/api/user.js similarity index 100% rename from web/source/settings-panel/lib/api/user.js rename to web/source/settings/lib/api/user.js diff --git a/web/source/settings-panel/lib/errors.js b/web/source/settings/lib/errors.js similarity index 100% rename from web/source/settings-panel/lib/errors.js rename to web/source/settings/lib/errors.js diff --git a/web/source/settings-panel/lib/get-views.js b/web/source/settings/lib/get-views.js similarity index 100% rename from web/source/settings-panel/lib/get-views.js rename to web/source/settings/lib/get-views.js diff --git a/web/source/settings-panel/lib/panel.js b/web/source/settings/lib/panel.js similarity index 100% rename from web/source/settings-panel/lib/panel.js rename to web/source/settings/lib/panel.js diff --git a/web/source/settings-panel/lib/submit.js b/web/source/settings/lib/submit.js similarity index 100% rename from web/source/settings-panel/lib/submit.js rename to web/source/settings/lib/submit.js diff --git a/web/source/settings-panel/redux/index.js b/web/source/settings/redux/index.js similarity index 100% rename from web/source/settings-panel/redux/index.js rename to web/source/settings/redux/index.js diff --git a/web/source/settings-panel/redux/reducers/admin.js b/web/source/settings/redux/reducers/admin.js similarity index 100% rename from web/source/settings-panel/redux/reducers/admin.js rename to web/source/settings/redux/reducers/admin.js diff --git a/web/source/settings-panel/redux/reducers/instances.js b/web/source/settings/redux/reducers/instances.js similarity index 100% rename from web/source/settings-panel/redux/reducers/instances.js rename to web/source/settings/redux/reducers/instances.js diff --git a/web/source/settings-panel/redux/reducers/oauth.js b/web/source/settings/redux/reducers/oauth.js similarity index 100% rename from web/source/settings-panel/redux/reducers/oauth.js rename to web/source/settings/redux/reducers/oauth.js diff --git a/web/source/settings-panel/redux/reducers/temporary.js b/web/source/settings/redux/reducers/temporary.js similarity index 100% rename from web/source/settings-panel/redux/reducers/temporary.js rename to web/source/settings/redux/reducers/temporary.js diff --git a/web/source/settings-panel/redux/reducers/user.js b/web/source/settings/redux/reducers/user.js similarity index 100% rename from web/source/settings-panel/redux/reducers/user.js rename to web/source/settings/redux/reducers/user.js diff --git a/web/source/settings-panel/style.css b/web/source/settings/style.css similarity index 100% rename from web/source/settings-panel/style.css rename to web/source/settings/style.css diff --git a/web/source/settings-panel/user/profile.js b/web/source/settings/user/profile.js similarity index 100% rename from web/source/settings-panel/user/profile.js rename to web/source/settings/user/profile.js diff --git a/web/source/settings-panel/user/settings.js b/web/source/settings/user/settings.js similarity index 100% rename from web/source/settings-panel/user/settings.js rename to web/source/settings/user/settings.js diff --git a/web/source/yarn.lock b/web/source/yarn.lock index 830ca5055..d88af5d57 100644 --- a/web/source/yarn.lock +++ b/web/source/yarn.lock @@ -1378,14 +1378,6 @@ JSONStream@~0.8.4: jsonparse "0.0.5" through ">=2.2.7 <3" -accepts@~1.3.8: - version "1.3.8" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" - integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== - dependencies: - mime-types "~2.1.34" - negotiator "0.6.3" - acorn-jsx@^5.3.1: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" @@ -1499,11 +1491,6 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" - integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== - array-from@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/array-from/-/array-from-2.1.1.tgz#cfe9d8c26628b9dc5aecc62a9f5d8f1f352c1195" @@ -1670,23 +1657,15 @@ bn.js@^5.0.0, bn.js@^5.1.1: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== -body-parser@1.20.0: - version "1.20.0" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.0.tgz#3de69bd89011c11573d7bfee6a64f11b6bd27cc5" - integrity sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg== +body@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/body/-/body-5.1.0.tgz#e4ba0ce410a46936323367609ecb4e6553125069" + integrity sha512-chUsBxGRtuElD6fmw1gHLpvnKdVLK302peeFa9ZqAEk8TyzZ3fygLyUEDDPTJvL9+Bor0dIwn6ePOsRM2y0zQQ== dependencies: - bytes "3.1.2" - content-type "~1.0.4" - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - http-errors "2.0.0" - iconv-lite "0.4.24" - on-finished "2.4.1" - qs "6.10.3" - raw-body "2.5.1" - type-is "~1.6.18" - unpipe "1.0.0" + continuable-cache "^0.3.1" + error "^7.0.0" + raw-body "~1.1.0" + safe-json-parse "~1.0.1" bole@^2.0.0: version "2.0.0" @@ -2000,10 +1979,10 @@ builtin-status-codes@^3.0.0: resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" integrity sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ== -bytes@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" - integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== +bytes@1: + version "1.0.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-1.0.0.tgz#3569ede8ba34315fab99c3e92cb04c7220de1fa8" + integrity sha512-/x68VkHLeTl3/Ll8IvxdwzhrT+IyKc52e/oyHhA2RwqPqswSnjVbSddfPRwAsJtbilMAPSRWwAlpxdYsSWOTKQ== cached-path-relative@^1.0.0, cached-path-relative@^1.0.2: version "1.1.0" @@ -2028,6 +2007,14 @@ caniuse-lite@^1.0.30001399, caniuse-lite@^1.0.30001400: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001402.tgz#aa29e1f47f5055b0d0c07696a67b8b08023d14c8" integrity sha512-Mx4MlhXO5NwuvXGgVb+hg65HZ+bhUYsz8QtDGDo2QmaJS2GBX47Xfi2koL86lc8K+l+htXeTEB/Aeqvezoo6Ew== +chalk@4, chalk@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chalk@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174" @@ -2067,14 +2054,6 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - charenc@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" @@ -2189,17 +2168,10 @@ constants-browserify@~1.0.0: resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" integrity sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ== -content-disposition@0.5.4: - version "0.5.4" - resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" - integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== - dependencies: - safe-buffer "5.2.1" - -content-type@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" - integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== +continuable-cache@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/continuable-cache/-/continuable-cache-0.3.1.tgz#bd727a7faed77e71ff3985ac93351a912733ad0f" + integrity sha512-TF30kpKhTH8AGCG3dut0rdd/19B7Z+qCnrMoBLpyQu/2drZdNrrpcjPEoJeSVsQM+8KmWG5O56oPDjSSUsuTyA== convert-source-map@^1.5.1, convert-source-map@^1.7.0: version "1.8.0" @@ -2213,16 +2185,6 @@ convert-source-map@~1.1.0: resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860" integrity sha512-Y8L5rp6jo+g9VEPgvqNfEopjTR4OTYct8lXlS8iVQdmnjDvbdbzYe9rjtFCB9egC86JoNCU61WRY+ScjkZpnIg== -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== - -cookie@0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" - integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== - core-js-compat@^3.25.1: version "3.25.1" resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.25.1.tgz#6f13a90de52f89bbe6267e5620a412c7f7ff7e42" @@ -2364,6 +2326,13 @@ debug@2.6.9, debug@^2.2.0: dependencies: ms "2.0.0" +debug@^3.1.0: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" @@ -2550,6 +2519,13 @@ entities@^2.0.0: resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== +error@^7.0.0: + version "7.2.1" + resolved "https://registry.yarnpkg.com/error/-/error-7.2.1.tgz#eab21a4689b5f684fc83da84a0e390de82d94894" + integrity sha512-fo9HBvWnx3NGUKMvMwB/CBCMMrfEJgbDTVDEkPygA3Bdd3lM1OyCd+rbQ8BwnpF6GdVeOLDNmyL4N5Bg80ZvdA== + dependencies: + string-template "~0.2.1" + es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.2, es-abstract@^1.19.5, es-abstract@^1.20.0: version "1.20.2" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.2.tgz#8495a07bc56d342a3b8ea3ab01bd986700c2ccb3" @@ -2892,43 +2868,6 @@ execall@^2.0.0: dependencies: clone-regexp "^2.1.0" -express@^4.18.1: - version "4.18.1" - resolved "https://registry.yarnpkg.com/express/-/express-4.18.1.tgz#7797de8b9c72c857b9cd0e14a5eea80666267caf" - integrity sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q== - dependencies: - accepts "~1.3.8" - array-flatten "1.1.1" - body-parser "1.20.0" - content-disposition "0.5.4" - content-type "~1.0.4" - cookie "0.5.0" - cookie-signature "1.0.6" - debug "2.6.9" - depd "2.0.0" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "1.2.0" - fresh "0.5.2" - http-errors "2.0.0" - merge-descriptors "1.0.1" - methods "~1.1.2" - on-finished "2.4.1" - parseurl "~1.3.3" - path-to-regexp "0.1.7" - proxy-addr "~2.0.7" - qs "6.10.3" - range-parser "~1.2.1" - safe-buffer "5.2.1" - send "0.18.0" - serve-static "1.15.0" - setprototypeof "1.2.0" - statuses "2.0.1" - type-is "~1.6.18" - utils-merge "1.0.1" - vary "~1.1.2" - ext@^1.1.2: version "1.7.0" resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" @@ -2976,6 +2915,13 @@ fast-safe-stringify@^2.0.7: resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== +faye-websocket@^0.11.3: + version "0.11.4" + resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.4.tgz#7f0d9275cfdd86a1c963dc8b65fcc451edcbb1da" + integrity sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g== + dependencies: + websocket-driver ">=0.5.1" + file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -2990,19 +2936,6 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -finalhandler@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.2.0.tgz#7d23fe5731b207b4640e4fcd00aec1f9207a7b32" - integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "2.4.1" - parseurl "~1.3.3" - statuses "2.0.1" - unpipe "~1.0.0" - find-cycle@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/find-cycle/-/find-cycle-1.0.0.tgz#9d4a84b853540e121fd7a2bd7fbc4a6d425364b9" @@ -3033,11 +2966,6 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" -forwarded@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" - integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== - fraction.js@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950" @@ -3300,18 +3228,16 @@ http-errors@2.0.0: statuses "2.0.1" toidentifier "1.0.1" +http-parser-js@>=0.5.1: + version "0.5.8" + resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.8.tgz#af23090d9ac4e24573de6f6aecc9d84a48bf20e3" + integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q== + https-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" integrity sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg== -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - icss-utils@^5.0.0: version "5.1.0" resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae" @@ -3482,7 +3408,7 @@ ip-regex@^2.1.0: resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" integrity sha512-58yWmlHpp7VYfcdTwMTvwMmqx/Elfxjd9RXTDyMsbL7lLWmhMylLEqiYVLKuLzOZqVgiWXD9MfR62Vv89VRxkw== -ipaddr.js@1.9.1, ipaddr.js@^1.5.2: +ipaddr.js@^1.5.2: version "1.9.1" resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== @@ -3809,6 +3735,11 @@ levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" +livereload-js@^3.3.1, livereload-js@^3.4.1: + version "3.4.1" + resolved "https://registry.yarnpkg.com/livereload-js/-/livereload-js-3.4.1.tgz#ba90fbc708ed1b9a024bb89c4ee12c96ea03d66f" + integrity sha512-5MP0uUeVCec89ZbNOT/i97Mc+q3SxXmiUGhRFOTmhrGPn//uWVQdCvcLJDy64MSBR5MidFdOR7B9viumoavy6g== + loader-utils@^1.1.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" @@ -3889,16 +3820,6 @@ md5@^2.2.1: crypt "0.0.2" is-buffer "~1.1.6" -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== - -merge-descriptors@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" - integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w== - merge-source-map@1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/merge-source-map/-/merge-source-map-1.0.4.tgz#a5de46538dae84d4114cc5ea02b4772a6346701f" @@ -3906,11 +3827,6 @@ merge-source-map@1.0.4: dependencies: source-map "^0.5.6" -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" - integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== - micromatch@^4.0.5: version "4.0.5" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" @@ -3927,18 +3843,6 @@ miller-rabin@^4.0.0: bn.js "^4.0.0" brorand "^1.0.1" -mime-db@1.52.0: - version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@~2.1.24, mime-types@~2.1.34: - version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - mime@1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" @@ -4017,7 +3921,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@2.1.3: +ms@2.1.3, ms@^2.1.1: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -4032,11 +3936,6 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -negotiator@0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" - integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== - next-tick@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" @@ -4302,11 +4201,6 @@ path-platform@~0.11.15: resolved "https://registry.yarnpkg.com/path-platform/-/path-platform-0.11.15.tgz#e864217f74c36850f0852b78dc7bf7d4a5721bf2" integrity sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg== -path-to-regexp@0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" - integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== - pbkdf2@^3.0.3: version "3.1.2" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" @@ -4535,14 +4429,6 @@ prop-types@^15.8.1: object-assign "^4.1.1" react-is "^16.13.1" -proxy-addr@~2.0.7: - version "2.0.7" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" - integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== - dependencies: - forwarded "0.2.0" - ipaddr.js "1.9.1" - public-encrypt@^4.0.0: version "4.0.3" resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.3.tgz#4fcc9d77a07e48ba7527e7cbe0de33d0701331e0" @@ -4570,10 +4456,10 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -qs@6.10.3: - version "6.10.3" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.3.tgz#d6cde1b2ffca87b5aa57889816c5f81535e22e8e" - integrity sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ== +qs@^6.4.0: + version "6.11.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a" + integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q== dependencies: side-channel "^1.0.4" @@ -4615,15 +4501,13 @@ range-parser@~1.2.1: resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== -raw-body@2.5.1: - version "2.5.1" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857" - integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== +raw-body@~1.1.0: + version "1.1.7" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-1.1.7.tgz#1d027c2bfa116acc6623bca8f00016572a87d425" + integrity sha512-WmJJU2e9Y6M5UzTOkHaM7xJGAPQD8PNzx3bAd2+uhZAim6wDk6dAZxPVYLF67XhbR4hmKGh33Lpmh4XWrCH5Mg== dependencies: - bytes "3.1.2" - http-errors "2.0.0" - iconv-lite "0.4.24" - unpipe "1.0.0" + bytes "1" + string_decoder "0.10" react-dom@18: version "18.2.0" @@ -4901,7 +4785,7 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: +safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -4911,7 +4795,12 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.1.0: +safe-json-parse@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/safe-json-parse/-/safe-json-parse-1.0.1.tgz#3e76723e38dfdda13c9b1d29a1e07ffee4b30b57" + integrity sha512-o0JmTu17WGUaUOHa1l0FPGXKBfijbxK6qoHzlkihsDXxzBHvJcA7zgviKR92Xs841rX9pK16unfphLq0/KqX7A== + +safer-buffer@^2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== @@ -4972,7 +4861,7 @@ send@0.18.0: range-parser "~1.2.1" statuses "2.0.1" -serve-static@1.15.0, serve-static@^1.10.0: +serve-static@^1.10.0: version "1.15.0" resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540" integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== @@ -5242,6 +5131,11 @@ strict-uri-encode@^1.0.0: resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" integrity sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ== +string-template@~0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add" + integrity sha512-Yptehjogou2xm4UJbxJ4CxgZx12HBfeystp0y3x7s4Dj32ltVVG1Gg8YhKjHZkHicuKpZX/ffilA8505VbUbpw== + string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -5283,6 +5177,11 @@ string.prototype.trimstart@^1.0.5: define-properties "^1.1.4" es-abstract "^1.19.5" +string_decoder@0.10, string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== + string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -5290,11 +5189,6 @@ string_decoder@^1.1.1: dependencies: safe-buffer "~5.2.0" -string_decoder@~0.10.x: - version "0.10.31" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" - integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== - string_decoder@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" @@ -5479,6 +5373,18 @@ timers-browserify@^1.0.1: dependencies: process "~0.11.0" +tiny-lr@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/tiny-lr/-/tiny-lr-2.0.0.tgz#863659d7ce1ed201a117d8197d7f8b9a27bdc085" + integrity sha512-f6nh0VMRvhGx4KCeK1lQ/jaL0Zdb5WdR+Jk8q9OSUQnaSDxAEGH1fgqLZ+cMl5EW3F2MGnCsalBO1IsnnogW1Q== + dependencies: + body "^5.1.0" + debug "^3.1.0" + faye-websocket "^0.11.3" + livereload-js "^3.3.1" + object-assign "^4.1.0" + qs "^6.4.0" + to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" @@ -5520,14 +5426,6 @@ type-fest@^0.20.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== -type-is@~1.6.18: - version "1.6.18" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" - integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== - dependencies: - media-typer "0.3.0" - mime-types "~2.1.24" - type@^1.0.1: version "1.2.0" resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" @@ -5608,11 +5506,6 @@ uniq@^1.0.1: resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" integrity sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA== -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== - update-browserslist-db@^1.0.9: version "1.0.9" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.9.tgz#2924d3927367a38d5c555413a7ce138fc95fcb18" @@ -5677,11 +5570,6 @@ util@~0.12.0: safe-buffer "^5.1.2" which-typed-array "^1.1.2" -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== - v8-compile-cache@^2.0.3: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" @@ -5697,11 +5585,6 @@ validatem@^0.2.0: default-value "^1.0.0" is-plain-obj "^2.0.0" -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== - vm-browserify@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" @@ -5732,6 +5615,20 @@ watchify@^4.0.0: through2 "^4.0.2" xtend "^4.0.2" +websocket-driver@>=0.5.1: + version "0.7.4" + resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" + integrity sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg== + dependencies: + http-parser-js ">=0.5.1" + safe-buffer ">=5.1.0" + websocket-extensions ">=0.1.1" + +websocket-extensions@>=0.1.1: + version "0.1.4" + resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" + integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== + which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"