diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..abd292af --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "nodebb" +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..270508c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*.css +npm-debug.log +sftp-config.json +*.sublime-project +*.sublime-workspace +.idea +.vscode +node_modules/ \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..2eb08487 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +*.css +npm-debug.log +sftp-config.json +*.sublime-project +*.sublime-workspace diff --git a/README.md b/README.md new file mode 100644 index 00000000..3b279f7f --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +Harmony theme for NodeBB +==================== + +The Harmony theme is the default theme for NodeBB for versions spanning v3.0.0 onwards. + +## Issues + +Issues are tracked in [the main project issue tracker](https://github.com/NodeBB/NodeBB/issues?q=is%3Aopen+is%3Aissue+label%3Athemes). + +## Screenshots + +### Categories + + +### Recent + + +### Topic + diff --git a/languages/harmony.json b/languages/harmony.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/languages/harmony.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/lib/controllers.js b/lib/controllers.js new file mode 100644 index 00000000..379ec065 --- /dev/null +++ b/lib/controllers.js @@ -0,0 +1,29 @@ +'use strict'; + +const Controllers = module.exports; + +const accountHelpers = require.main.require('./src/controllers/accounts/helpers'); +const helpers = require.main.require('./src/controllers/helpers'); + +Controllers.renderAdminPage = (req, res) => { + res.render('admin/plugins/harmony', { + title: '[[themes/harmony:theme-name]]', + }); +}; + +Controllers.renderThemeSettings = async (req, res, next) => { + const userData = await accountHelpers.getUserDataByUserSlug(req.params.userslug, req.uid, req.query); + if (!userData) { + return next(); + } + const lib = require('../library'); + userData.theme = await lib.loadThemeConfig(userData.uid); + + userData.title = '[[themes/harmony:settings.title]]'; + userData.breadcrumbs = helpers.buildBreadcrumbs([ + { text: userData.username, url: `/user/${userData.userslug}` }, + { text: '[[themes/harmony:settings.title]]' }, + ]); + + res.render('account/theme', userData); +}; diff --git a/library.js b/library.js new file mode 100644 index 00000000..6ab72cf4 --- /dev/null +++ b/library.js @@ -0,0 +1,190 @@ +'use strict'; + +const nconf = require.main.require('nconf'); +const meta = require.main.require('./src/meta'); +const _ = require.main.require('lodash'); +const user = require.main.require('./src/user'); + +const controllers = require('./lib/controllers'); + +const library = module.exports; + +const defaults = { + enableQuickReply: 'on', + enableBreadcrumbs: 'on', + centerHeaderElements: 'off', + mobileTopicTeasers: 'off', + stickyToolbar: 'on', + autohideBottombar: 'on', + openSidebars: 'off', + chatModals: 'off', +}; + +library.init = async function (params) { + const { router, middleware } = params; + const routeHelpers = require.main.require('./src/routes/helpers'); + + routeHelpers.setupAdminPageRoute(router, '/admin/plugins/harmony', [], controllers.renderAdminPage); + + routeHelpers.setupPageRoute(router, '/user/:userslug/theme', [ + middleware.exposeUid, + middleware.ensureLoggedIn, + middleware.canViewUsers, + middleware.checkAccountPermissions, + ], controllers.renderThemeSettings); + + if (nconf.get('isPrimary') && process.env.NODE_ENV === 'production') { + setTimeout(buildSkins, 0); + } +}; + +async function buildSkins() { + try { + const plugins = require.main.require('./src/plugins'); + await plugins.prepareForBuild(['client side styles']); + for (const skin of meta.css.supportedSkins) { + // eslint-disable-next-line no-await-in-loop + await meta.css.buildBundle(`client-${skin}`, true); + } + require.main.require('./src/meta/minifier').killAll(); + } catch (err) { + console.error(err.stack); + } +} + +library.addAdminNavigation = async function (header) { + header.plugins.push({ + route: '/plugins/harmony', + icon: 'fa-paint-brush', + name: '[[themes/harmony:theme-name]]', + }); + return header; +}; + +library.addProfileItem = async (data) => { + data.links.push({ + id: 'theme', + route: 'theme', + icon: 'fa-paint-brush', + name: '[[themes/harmony:settings.title]]', + visibility: { + self: true, + other: false, + moderator: false, + globalMod: false, + admin: false, + }, + }); + + return data; +}; + +library.defineWidgetAreas = async function (areas) { + const locations = ['header', 'sidebar', 'footer']; + const templates = [ + 'categories.tpl', 'category.tpl', 'topic.tpl', 'users.tpl', + 'unread.tpl', 'recent.tpl', 'popular.tpl', 'top.tpl', 'tags.tpl', 'tag.tpl', + 'login.tpl', 'register.tpl', + ]; + function capitalizeFirst(str) { + return str.charAt(0).toUpperCase() + str.slice(1); + } + templates.forEach((template) => { + locations.forEach((location) => { + areas.push({ + name: `${capitalizeFirst(template.split('.')[0])} ${capitalizeFirst(location)}`, + template: template, + location: location, + }); + }); + }); + + areas = areas.concat([ + { + name: 'Main post header', + template: 'topic.tpl', + location: 'mainpost-header', + }, + { + name: 'Main post footer', + template: 'topic.tpl', + location: 'mainpost-footer', + }, + { + name: 'Sidebar Footer', + template: 'global', + location: 'sidebar-footer', + }, + { + name: 'Brand Header', + template: 'global', + location: 'brand-header', + }, + { + name: 'About me (before)', + template: 'account/profile.tpl', + location: 'profile-aboutme-before', + }, + { + name: 'About me (after)', + template: 'account/profile.tpl', + location: 'profile-aboutme-after', + }, + ]); + + return areas; +}; + +library.loadThemeConfig = async function (uid) { + const [themeConfig, userConfig] = await Promise.all([ + meta.settings.get('harmony'), + user.getSettings(uid), + ]); + + const config = { ...defaults, ...themeConfig, ...(_.pick(userConfig, Object.keys(defaults))) }; + config.enableQuickReply = config.enableQuickReply === 'on'; + config.enableBreadcrumbs = config.enableBreadcrumbs === 'on'; + config.centerHeaderElements = config.centerHeaderElements === 'on'; + config.mobileTopicTeasers = config.mobileTopicTeasers === 'on'; + config.stickyToolbar = config.stickyToolbar === 'on'; + config.autohideBottombar = config.autohideBottombar === 'on'; + config.openSidebars = config.openSidebars === 'on'; + config.chatModals = config.chatModals === 'on'; + return config; +}; + +library.getThemeConfig = async function (config) { + config.theme = await library.loadThemeConfig(config.uid); + config.openDraftsOnPageLoad = false; + return config; +}; + +library.getAdminSettings = async function (hookData) { + if (hookData.plugin === 'harmony') { + hookData.values = { + ...defaults, + ...hookData.values, + }; + } + return hookData; +}; + +library.saveUserSettings = async function (hookData) { + Object.keys(defaults).forEach((key) => { + if (hookData.data.hasOwnProperty(key)) { + hookData.settings[key] = hookData.data[key] || undefined; + } + }); + return hookData; +}; + +library.filterMiddlewareRenderHeader = async function (hookData) { + hookData.templateData.bootswatchSkinOptions = await meta.css.getSkinSwitcherOptions(hookData.req.uid); + return hookData; +}; + +library.filterTeasersConfigureStripTags = function (hookData) { + // teasers have a stretched-link to go to last post, the anchors in them are not clickable + hookData.tags.push('a'); + return hookData; +}; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..09441996 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2344 @@ +{ + "name": "nodebb-theme-harmony", + "version": "1.2.63", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "nodebb-theme-harmony", + "version": "1.2.63", + "license": "MIT", + "dependencies": { + "@fontsource/inter": "5.0.15", + "@fontsource/poppins": "5.0.8" + }, + "devDependencies": { + "eslint": "^9.0.0", + "eslint-config-nodebb": "^0.2.0", + "eslint-plugin-import": "^2.24.2" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.2.0.tgz", + "integrity": "sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.6.2.tgz", + "integrity": "sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.0.2.tgz", + "integrity": "sha512-wV19ZEGEMAC1eHgrS7UQPqsdEiCIbTKTasEfcXAigzoXICcqZSjBZEHlZwNVvKg6UBCjSlos84XiLqsRJnIcIg==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.1.1.tgz", + "integrity": "sha512-5WoDz3Y19Bg2BnErkZTp0en+c/i9PvgFS7MBe1+m60HjFr0hrphlAGp4yzI7pxpt4xShln4ZyYp4neJm8hmOkQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@fontsource/inter": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-5.0.15.tgz", + "integrity": "sha512-/IoWYEXl8lqJEx50JqNPT+bI4VNwxb/bg2oOfvG8PiEsDsmHRFvWBVHlohBNn1+QdBf+KbAjU/gb4vlGOSsVWw==" + }, + "node_modules/@fontsource/poppins": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@fontsource/poppins/-/poppins-5.0.8.tgz", + "integrity": "sha512-P8owfYWluoUY5Nyzk4gT/L6LmLmseP6ezFWhj6VBUa5pRIdnCvNJpoQ6i/vhekjtJOfqX6nKlB+LCttoUl2GQQ==" + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "dev": true + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.2.3.tgz", + "integrity": "sha512-X38nUbachlb01YMlvPFojKoiXq+LzZvuSce70KPMPdeM1Rj03k4dR7lDslhbqXn3Ang4EU3+EAmwEAsbrjHW3g==", + "dev": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-abstract": { + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.5", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.2", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", + "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.1.0.tgz", + "integrity": "sha512-1TCBecGFQtItia2o39P7Z4BK1X7ByNPxAiWJvwiyTGcOwYnTiiASgMpNA6a+beu8cFPhEDWvPf6mIlYUJv6sgA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^3.0.2", + "@eslint/js": "9.1.1", + "@humanwhocodes/config-array": "^0.13.0", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.2.3", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.0.1", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.0.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-nodebb": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/eslint-config-nodebb/-/eslint-config-nodebb-0.2.1.tgz", + "integrity": "sha512-oElsZTuYW9W99/C+XnqFYqHzveOXaoBNeCUsAKBJff2KDBXCeoPkhOBoaPf3WSJslrfigOAaUtFZNc4KXNhvow==", + "dev": true, + "dependencies": { + "eslint-config-airbnb-base": "15.0.0" + }, + "peerDependencies": { + "eslint": "7.x || 8.x", + "eslint-plugin-import": "2.x" + } + }, + "node_modules/eslint-config-nodebb/node_modules/eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", + "dev": true, + "dependencies": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.2" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.29.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-scope": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.1.tgz", + "integrity": "sha512-pL8XjgP4ZOmmwfFE8mEhSxA7ZY4C+LWyqjQ3o4yWkkmD0qcMT9kkW3zWHOczhWcjTSgqycYAgwSlXvZltv65og==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz", + "integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==", + "dev": true, + "dependencies": { + "acorn": "^8.11.3", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "dev": true + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.8.tgz", + "integrity": "sha512-cmopxi8VwRIAw/fkijJohSfpef5PdN0pMQJN6VC/ZKvn0LIknWD8KtgY6KlQdEc4tIjcQ3HxSMmnvtzIscdaYQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" + } + }, + "node_modules/object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.4", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..37f18b5e --- /dev/null +++ b/package.json @@ -0,0 +1,48 @@ +{ + "name": "nodebb-theme-harmony", + "version": "1.2.63", + "nbbpm": { + "compatibility": "^3.7.0" + }, + "description": "Harmony theme for NodeBB", + "main": "library.js", + "repository": { + "type": "git", + "url": "https://github.com/NodeBB/nodebb-theme-harmony" + }, + "scripts": { + "lint": "eslint ." + }, + "keywords": [ + "nodebb", + "theme", + "forum", + "bootstrap", + "responsive" + ], + "contributors": [ + { + "name": "Julian Lam", + "email": "julian@nodebb.org", + "url": "https://github.com/julianlam" + }, + { + "name": "Barış Soner Uşaklı", + "email": "baris@nodebb.org", + "url": "https://github.com/barisusakli" + } + ], + "license": "MIT", + "bugs": { + "url": "https://github.com/NodeBB/nodebb-theme-harmony/issues" + }, + "dependencies": { + "@fontsource/inter": "5.0.15", + "@fontsource/poppins": "5.0.8" + }, + "devDependencies": { + "eslint": "^9.0.0", + "eslint-config-nodebb": "^0.2.0", + "eslint-plugin-import": "^2.24.2" + } +} diff --git a/plugin.json b/plugin.json new file mode 100644 index 00000000..9a5bb191 --- /dev/null +++ b/plugin.json @@ -0,0 +1,26 @@ +{ + "id": "nodebb-theme-harmony", + "hooks": [ + { "hook": "static:app.load", "method": "init" }, + { "hook": "filter:admin.header.build", "method": "addAdminNavigation" }, + { "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas" }, + { "hook": "filter:config.get", "method": "getThemeConfig" }, + { "hook": "filter:settings.get", "method": "getAdminSettings"}, + { "hook": "filter:user.saveSettings", "method": "saveUserSettings" }, + { "hook": "filter:user.profileMenu", "method": "addProfileItem" }, + { "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" }, + { "hook": "filter:teasers.configureStripTags", "method": "filterTeasersConfigureStripTags"} + ], + "scripts": [ + "public/harmony.js" + ], + "modules": { + "../admin/plugins/harmony.js": "public/admin.js", + "../client/account/theme.js": "public/settings.js" + }, + "staticDirs": { + "inter": "node_modules/@fontsource/inter/files", + "poppins": "node_modules/@fontsource/poppins/files" + }, + "languages": "languages" +} \ No newline at end of file diff --git a/public/.eslintrc b/public/.eslintrc new file mode 100644 index 00000000..a3ce8297 --- /dev/null +++ b/public/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "nodebb/public" +} diff --git a/public/admin.js b/public/admin.js new file mode 100644 index 00000000..6df37a71 --- /dev/null +++ b/public/admin.js @@ -0,0 +1,15 @@ +'use strict'; + +define('admin/plugins/harmony', ['settings'], function (Settings) { + var ACP = {}; + + ACP.init = function () { + Settings.load('harmony', $('.harmony-settings')); + + $('#save').on('click', function () { + Settings.save('harmony', $('.harmony-settings')); + }); + }; + + return ACP; +}); diff --git a/public/harmony.js b/public/harmony.js new file mode 100644 index 00000000..63870554 --- /dev/null +++ b/public/harmony.js @@ -0,0 +1,287 @@ +'use strict'; + +$(document).ready(function () { + setupSkinSwitcher(); + setupNProgress(); + setupMobileMenu(); + setupSearch(); + setupDrafts(); + handleMobileNavigator(); + setupNavTooltips(); + fixPlaceholders(); + fixSidebarOverflow(); + + function setupSkinSwitcher() { + $('[component="skinSwitcher"]').on('click', '.dropdown-item', function () { + const skin = $(this).attr('data-value'); + $('[component="skinSwitcher"] .dropdown-item .fa-check').addClass('invisible'); + $(this).find('.fa-check').removeClass('invisible'); + require(['forum/account/settings', 'hooks'], function (accountSettings, hooks) { + hooks.one('action:skin.change', function () { + $('[component="skinSwitcher"] [component="skinSwitcher/icon"]').removeClass('fa-fade'); + }); + $('[component="skinSwitcher"] [component="skinSwitcher/icon"]').addClass('fa-fade'); + accountSettings.changeSkin(skin); + }); + }); + } + + require(['hooks'], function (hooks) { + $(window).on('action:composer.resize action:sidebar.toggle', function () { + const isRtl = $('html').attr('data-dir') === 'rtl'; + const css = { + width: $('#panel').width(), + }; + const sidebarEl = $('.sidebar-left'); + css[isRtl ? 'right' : 'left'] = sidebarEl.is(':visible') ? sidebarEl.outerWidth(true) : 0; + $('[component="composer"]').css(css); + }); + + hooks.on('filter:chat.openChat', function (hookData) { + // disables chat modals & goes straight to chat page based on user setting + hookData.modal = config.theme.chatModals && !utils.isMobile(); + return hookData; + }); + }); + + function setupMobileMenu() { + require(['hooks', 'api', 'navigator'], function (hooks, api, navigator) { + $('[component="sidebar/toggle"]').on('click', async function () { + const sidebarEl = $('.sidebar'); + sidebarEl.toggleClass('open'); + if (app.user.uid) { + await api.put(`/users/${app.user.uid}/settings`, { + settings: { + openSidebars: sidebarEl.hasClass('open') ? 'on' : 'off', + }, + }); + } + $(window).trigger('action:sidebar.toggle'); + if (ajaxify.data.template.topic) { + hooks.fire('action:navigator.update', { newIndex: navigator.getIndex() }); + } + }); + + const bottomBar = $('[component="bottombar"]'); + const $body = $('body'); + const $window = $(window); + $body.on('shown.bs.dropdown hidden.bs.dropdown', '.sticky-tools', function () { + bottomBar.toggleClass('hidden', $(this).find('.dropdown-menu.show').length); + }); + function isSearchVisible() { + return !!$('[component="bottombar"] [component="sidebar/search"] .search-dropdown.show').length; + } + + let lastScrollTop = 0; + let newPostsLoaded = false; + + function onWindowScroll() { + const st = $window.scrollTop(); + if (newPostsLoaded) { + newPostsLoaded = false; + lastScrollTop = st; + return; + } + if (st !== lastScrollTop && !navigator.scrollActive && !isSearchVisible()) { + const diff = Math.abs(st - lastScrollTop); + const scrolledDown = st > lastScrollTop; + const scrolledUp = st < lastScrollTop; + if (diff > 5) { + bottomBar.css({ + bottom: !scrolledUp && scrolledDown ? + -bottomBar.find('.bottombar-nav').outerHeight(true) : + 0, + }); + } + } + lastScrollTop = st; + } + + const delayedScroll = utils.throttle(onWindowScroll, 250); + function enableAutohide() { + $window.off('scroll', delayedScroll); + if (config.theme.autohideBottombar) { + lastScrollTop = $window.scrollTop(); + $window.on('scroll', delayedScroll); + } + } + + hooks.on('action:posts.loading', function () { + $window.off('scroll', delayedScroll); + }); + hooks.on('action:posts.loaded', function () { + newPostsLoaded = true; + setTimeout(enableAutohide, 250); + }); + hooks.on('action:ajaxify.end', function () { + $window.off('scroll', delayedScroll); + bottomBar.css({ bottom: 0 }); + setTimeout(enableAutohide, 250); + }); + }); + } + + function setupSearch() { + $('[component="sidebar/search"]').on('shown.bs.dropdown', function () { + $(this).find('[component="search/fields"] input[name="query"]').trigger('focus'); + }); + } + + function setupDrafts() { + require(['composer/drafts', 'bootbox'], function (drafts, bootbox) { + const draftsEl = $('[component="sidebar/drafts"]'); + + function updateBadgeCount() { + const count = drafts.getAvailableCount(); + if (count > 0) { + draftsEl.removeClass('hidden'); + } + $('[component="drafts/count"]').toggleClass('hidden', count <= 0).text(count); + } + + async function renderDraftList() { + const draftListEl = $('[component="drafts/list"]'); + const draftItems = drafts.listAvailable(); + if (!draftItems.length) { + draftListEl.find('.no-drafts').removeClass('hidden'); + draftListEl.find('.placeholder-wave').addClass('hidden'); + draftListEl.find('.draft-item-container').html(''); + return; + } + draftItems.reverse().forEach((draft) => { + if (draft) { + if (draft.title) { + draft.title = utils.escapeHTML(String(draft.title)); + } + draft.text = utils.escapeHTML( + draft.text + ).replace(/(?:\r\n|\r|\n)/g, '
'); + } + }); + + const html = await app.parseAndTranslate('partials/sidebar/drafts', 'drafts', { drafts: draftItems }); + draftListEl.find('.no-drafts').addClass('hidden'); + draftListEl.find('.placeholder-wave').addClass('hidden'); + draftListEl.find('.draft-item-container').html(html).find('.timeago').timeago(); + } + + + draftsEl.on('shown.bs.dropdown', renderDraftList); + + draftsEl.on('click', '[component="drafts/open"]', function () { + drafts.open($(this).attr('data-save-id')); + }); + + draftsEl.on('click', '[component="drafts/delete"]', function () { + const save_id = $(this).attr('data-save-id'); + bootbox.confirm('[[modules:composer.discard-draft-confirm]]', function (ok) { + if (ok) { + drafts.removeDraft(save_id); + renderDraftList(); + } + }); + return false; + }); + + $(window).on('action:composer.drafts.save', updateBadgeCount); + $(window).on('action:composer.drafts.remove', updateBadgeCount); + updateBadgeCount(); + }); + } + + function setupNProgress() { + require(['nprogress'], function (NProgress) { + window.nprogress = NProgress; + if (NProgress) { + $(window).on('action:ajaxify.start', function () { + NProgress.set(0.7); + }); + + $(window).on('action:ajaxify.end', function () { + NProgress.done(true); + }); + } + }); + } + + function handleMobileNavigator() { + const paginationBlockEl = $('.pagination-block'); + require(['hooks'], function (hooks) { + hooks.on('action:ajaxify.end', function () { + paginationBlockEl.find('.dropdown-menu.show').removeClass('show'); + }); + hooks.on('filter:navigator.scroll', function (hookData) { + paginationBlockEl.find('.dropdown-menu.show').removeClass('show'); + return hookData; + }); + }); + } + + function setupNavTooltips() { + // remove title from user icon in sidebar to prevent double tooltip + $('.sidebar [component="header/avatar"] .avatar').removeAttr('title'); + const tooltipEls = $('.sidebar [title]'); + const lefttooltipEls = $('.sidebar-left [title]'); + const rightooltipEls = $('.sidebar-right [title]'); + const isRtl = $('html').attr('data-dir') === 'rtl'; + lefttooltipEls.tooltip({ + trigger: 'manual', + animation: false, + placement: isRtl ? 'left' : 'right', + }); + rightooltipEls.tooltip({ + trigger: 'manual', + animation: false, + placement: isRtl ? 'right' : 'left', + }); + + tooltipEls.on('mouseenter', function (ev) { + const target = $(ev.target); + const isDropdown = target.hasClass('dropdown-menu') || !!target.parents('.dropdown-menu').length; + if (!$('.sidebar').hasClass('open') && !isDropdown) { + $(this).tooltip('show'); + } + }); + tooltipEls.on('click mouseleave', function () { + $(this).tooltip('hide'); + }); + } + + function fixPlaceholders() { + if (!config.loggedIn) { + return; + } + ['notifications', 'chat'].forEach((type) => { + const countEl = document.querySelector(`[component="${type}/count"]`); + if (!countEl) { + return; + } + const count = parseInt(countEl.innerText, 10); + if (count > 1) { + const listEls = document.querySelectorAll(`[component="${type}/list"]`); + listEls.forEach((listEl) => { + const placeholder = listEl.querySelector('*'); + if (placeholder) { + for (let x = 0; x < count - 1; x++) { + const cloneEl = placeholder.cloneNode(true); + listEl.insertBefore(cloneEl, placeholder); + } + } + }); + } + }); + } + + function fixSidebarOverflow() { + // overflow-y-auto needs to be removed on main-nav when dropdowns are opened + const mainNavEl = $('#main-nav'); + function toggleOverflow() { + mainNavEl.toggleClass( + 'overflow-y-auto', + !mainNavEl.find('.dropdown-menu.show').length + ); + } + mainNavEl.on('shown.bs.dropdown', toggleOverflow) + .on('hidden.bs.dropdown', toggleOverflow); + } +}); diff --git a/public/settings.js b/public/settings.js new file mode 100644 index 00000000..e677db7f --- /dev/null +++ b/public/settings.js @@ -0,0 +1,31 @@ +'use strict'; + +define('forum/account/theme', ['forum/account/header', 'api', 'settings', 'alerts'], function (header, api, settings, alerts) { + const Theme = {}; + + Theme.init = () => { + header.init(); + Theme.setupForm(); + }; + + Theme.setupForm = () => { + const saveEl = document.getElementById('save'); + if (saveEl) { + const formEl = document.getElementById('theme-settings'); + saveEl.addEventListener('click', async () => { + const themeSettings = settings.helper.serializeForm($(formEl)); + await api.put(`/users/${ajaxify.data.uid}/settings`, { + settings: { + ...themeSettings, + }, + }); + if (ajaxify.data.isSelf) { + config.theme = (await api.get('/api/config')).theme; + } + alerts.success('[[success:settings-saved]]'); + }); + } + }; + + return Theme; +}); diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..39a2b6e9 --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ] +} diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 00000000..1f8908da Binary files /dev/null and b/screenshot.png differ diff --git a/screenshots/categories.png b/screenshots/categories.png new file mode 100644 index 00000000..7cae6309 Binary files /dev/null and b/screenshots/categories.png differ diff --git a/screenshots/recent.png b/screenshots/recent.png new file mode 100644 index 00000000..9551a275 Binary files /dev/null and b/screenshots/recent.png differ diff --git a/screenshots/topic.png b/screenshots/topic.png new file mode 100644 index 00000000..3e5c92cf Binary files /dev/null and b/screenshots/topic.png differ diff --git a/scss/account.scss b/scss/account.scss new file mode 100644 index 00000000..0a318b3e --- /dev/null +++ b/scss/account.scss @@ -0,0 +1,27 @@ +.page-user.page-status-200 #panel { + margin-top: 0px!important; +} +.account { + margin-top: 200px; + + @include media-breakpoint-up(md) { + margin-top: 300px; + } + + .categories { + [component="categories/category"] { + $category-pad: 50; + @for $i from 1 through 6 { + .depth-#{$i} { + padding-left: #{$category-pad * $i}px; + } + } + } + } +} + +[component="group/badge/item"]:first-child [component="group/order/up"], +[component="group/badge/item"]:last-child [component="group/order/down"] { + opacity: 0.65; + pointer-events: none; +} diff --git a/scss/category.scss b/scss/category.scss new file mode 100644 index 00000000..41bff4d4 --- /dev/null +++ b/scss/category.scss @@ -0,0 +1,4 @@ +.category-header .description p { margin: 0; } +.page-category .breadcrumb .breadcrumb-item:last-child { + display: none; +} \ No newline at end of file diff --git a/scss/chats.scss b/scss/chats.scss new file mode 100644 index 00000000..e0c5f49a --- /dev/null +++ b/scss/chats.scss @@ -0,0 +1,12 @@ +// themes have a different layout so each one needs this block to set height to 100% +body.page-user-chats { + > .layout-container { + height: 100%; + > #panel { + height: 100%; + > .container { + height: 100%; + } + } + } +} \ No newline at end of file diff --git a/scss/common.scss b/scss/common.scss new file mode 100644 index 00000000..b78ceea6 --- /dev/null +++ b/scss/common.scss @@ -0,0 +1,130 @@ + +html { + height: 100%; +} + +body { + overflow-y: scroll; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; +} + +// fixes chrome font boosting :/ https://stackoverflow.com/questions/13430897/how-to-override-font-boosting-in-mobile-chrome +body * { + max-height:1000000px; + text-size-adjust: none; + -webkit-text-size-adjust: none; + -moz-text-size-adjust: none; +} + +hr { + border-top-color: var(--bs-border-color); + opacity: 1; +} + +.ff-base { font-family: $font-family-base !important; } +.ff-sans { font-family: $font-family-sans-serif !important; } +.ff-secondary { font-family: $font-family-secondary; } +.tracking-tight { letter-spacing: -0.02em; } + +.caret { + &::after { + border: none; + font-family: "FontAwesome"; + content: "\f078"; + } +} + +.placeholder-wave { + opacity: 0.5; +} + +.bg-card-cap { + --bs-bg-opacity: 1; + background-color: $card-cap-bg!important; +} + +blockquote { + $bq-border-color: mix($light, $dark, 75%); + @extend .text-bg-light; + font-style: normal; + border-left: 2px solid $bq-border-color; + padding: 1rem; + p:last-child { + margin-bottom: 0; + } + .toggle { + border-color: $bq-border-color!important; + } +} + +body:not(.page-user) { + #content { + transition: opacity 150ms linear; + &.ajaxifying { + -moz-opacity: 0; + opacity: 0; + } + } +} +.page-user { + #content { + transition: opacity 150ms linear; + &.ajaxifying .account-content { + transition: opacity 150ms linear; + -moz-opacity: 0; + opacity: 0; + } + } +} + +.sticky-tools { + position: sticky; + z-index: 3; + top: 0; + padding: 0.25rem 0; +} +// quartz doesn't need body-bg for tool background +.skin-quartz .sticky-tools { + background-color: initial; +} + +.btn-link { + &:hover, &.active { + background-color: var(--btn-ghost-hover-color); + text-decoration: none; + } +} + +.flex-basis-md-200 { + @include media-breakpoint-up(md) { + flex-basis: 200px!important; + } +} + +.markdown-highlight { + @extend .shadow-sm; + @extend .border; +} + +[component="chat/message/body"], [component="post/content"] { + .img-fluid { + @extend .shadow-sm; + padding: $spacer * 0.5; + margin: $spacer * 0.5 0; + border: 1px solid $border-color; + background-color: $light; + border-radius: $border-radius-sm; + max-height: 500px; + width: auto; + } +} + +[component="chat/message/body"], +[component="post/content"], +[component="topic/teaser"] .post-content, +[component="category/posts"] .post-content, +.post-queue.posts-list .post-content { + a { text-decoration: underline;} +} \ No newline at end of file diff --git a/scss/fonts.scss b/scss/fonts.scss new file mode 100644 index 00000000..5d3ae65f --- /dev/null +++ b/scss/fonts.scss @@ -0,0 +1,19 @@ +@use "@fontsource/inter/scss/mixins" as Inter; +@use "@fontsource/poppins/scss/mixins" as Poppins; + +$weights: $font-weight-light, $font-weight-normal, $font-weight-semibold, $font-weight-bold; +$subsets: (latin, latin-ext); +$font-path: "./plugins/nodebb-theme-harmony" !default; + +@include Inter.faces( + $weights: $weights, + $subsets: $subsets, + $display: fallback, + $directory: "#{$font-path}/inter" +); +@include Poppins.faces( + $weights: $weights, + $subsets: $subsets, + $display: fallback, + $directory: "#{$font-path}/poppins" +); diff --git a/scss/groups.scss b/scss/groups.scss new file mode 100644 index 00000000..914e3fce --- /dev/null +++ b/scss/groups.scss @@ -0,0 +1,22 @@ +.template-groups-details #panel { + margin-top: 0px!important; +} + +.group-hover-bg { + $hover-color: mix($light, $dark, 97%); + $border-color: mix($light, $dark, 90%); + .card-body { + border-color: $border-color!important; + } + &:hover { + background-color: $hover-color; + } +} + +.groups.details { + margin-top: 200px; + + @include media-breakpoint-up(md) { + margin-top: 300px; + } +} diff --git a/scss/harmony.scss b/scss/harmony.scss new file mode 100644 index 00000000..f209a54f --- /dev/null +++ b/scss/harmony.scss @@ -0,0 +1,26 @@ +@import "fonts"; +@import "mixins"; +@import "common"; + +@import "header"; +@import "topic"; +@import "category"; +@import "chats"; +@import "sidebar"; +@import "status"; +@import "account"; +@import "groups"; +@import "modals"; + +@import "modules/breadcrumbs"; +@import "modules/tags"; +@import "modules/user-menu"; +@import "modules/bottom-sheet"; +@import "modules/topic-navigator"; +@import "modules/topics-list"; +@import "modules/cover"; +@import "modules/nprogress"; +@import "modules/paginator"; +@import "modules/filters"; + +@import "skins"; \ No newline at end of file diff --git a/scss/header.scss b/scss/header.scss new file mode 100644 index 00000000..a64d632c --- /dev/null +++ b/scss/header.scss @@ -0,0 +1,16 @@ +// hide brand/title on user and group details pages so it doesnt break covers +body[class*="template-account-"], .template-chats, .template-groups-details { + .brand-container { + display: none; + } +} +[component="brand/wrapper"] { + &:hover { + background-color: $card-cap-bg; + } +} + +[component="brand/logo"] { + max-height: 48px; + width: auto; +} \ No newline at end of file diff --git a/scss/mixins.scss b/scss/mixins.scss new file mode 100644 index 00000000..641b38bb --- /dev/null +++ b/scss/mixins.scss @@ -0,0 +1,177 @@ +@mixin topic-avatars() { + .icon .avatar, .timeline-badge { + z-index: 1; + + line-height: calc(var(--avatar-size) - 4px); + } + + [component="user/status"] { + top: 20px; + left: 12px; + + z-index: 2; + } + + @include media-breakpoint-up(sm) { + [component="user/status"] { + padding: 5px; + top: 36px; + left: 36px; + } + } +} + +@mixin timeline-style() { + > [component="post"], .timeline-event, > [component="post/placeholder"] { + position: relative; // for absolutely positioned pseudo-element, below + border: 0; + margin-left: 1.5rem; + transition: border-color 1s ease-out; + + &:first-child { + &:before { + content: ''; + position: absolute; + top: 0; + height: 16px; + width: 16px; + background-color: $border-color; + border-radius: 100%; + transform: translate(calc(-50% - .5px), -100%); + transition: background-color 1s ease-out; + } + + &.highlight:before { + background-color: $primary; + } + } + + &:last-child { + padding-bottom: 2rem; + + &:after { + content: ''; + position: absolute; + bottom: 0; + height: 16px; + width: 16px; + background-color: $border-color; + border-radius: 100%; + transform: translate(calc(-50% - .5px), 100%); + transition: background-color 1s ease-out; + } + + &.highlight:after { + background-color: $primary; + } + } + + > div:first-of-type { + margin-left: -1.5rem; + } + + &.highlight { + .bookmarked { + opacity: 1 !important; + } + } + + @include topic-avatars(); + } + + [component="topic/event"], [component="topic/necro-post"] { + &.timeline-event { + text-align: left; + justify-content: left; + font-size: 1em; + + .timeline-badge { + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + + width: 20px; + height: 20px; + padding: 0; + margin-right: 1rem; + color: $gray-500; + background-color: $body-bg; + } + + .timeline-text { + line-height: 32px; + text-transform: initial; + } + } + } + + @include media-breakpoint-down(sm) { + > [component="post"], .timeline-event { + &:first-child:before, &:last-child:after { + display: none; + } + } + + [component="post"] { + margin-left: initial; + > div:not(.content) { + margin-left: 0; + } + } + + [component="post"]:last-child:after { + display: none; + } + + + [component="topic/event"], [component="topic/necro-post"] { + &.timeline-event { + .timeline-text { + line-height: 16px; + font-size: 0.75rem; + } + } + } + } + + @include media-breakpoint-up(sm) { + > [component="post"], .timeline-event, > [component="post/placeholder"] { + border-left: 2px solid $border-color; + + &.highlight { + border-left: 2px solid $primary; + } + } + + .timeline-event { + margin-left: 1.5rem; + + [component="topic/event/delete"] { + visibility: hidden; + } + + &:hover { + [component="topic/event/delete"] { + visibility: visible; + + &:hover { + color: $danger; + } + } + } + } + + [component="topic/event"], [component="topic/necro-post"] { + &.timeline-event .timeline-badge { + width: 24px; + height: 24px; + padding: 0; + margin-left: -0.75rem; + margin-right: 1.25rem; + border: 2px solid $border-color; + border-radius: 50%; + } + } + } +} \ No newline at end of file diff --git a/scss/modals.scss b/scss/modals.scss new file mode 100644 index 00000000..201cfb52 --- /dev/null +++ b/scss/modals.scss @@ -0,0 +1,6 @@ +.tool-modal { + @include media-breakpoint-up(md) { + bottom: $spacer * 3; + right: $spacer * 4; + } +} diff --git a/scss/modules/bottom-sheet.scss b/scss/modules/bottom-sheet.scss new file mode 100644 index 00000000..339e000a --- /dev/null +++ b/scss/modules/bottom-sheet.scss @@ -0,0 +1,52 @@ +.bottom-sheet { + @include media-breakpoint-down(md) { + .dropdown-menu { + display: block; + visibility: hidden; + + position: fixed!important; + inset: auto 0 0 0!important; + + margin: 0 -1px -1px -1px; + padding: $spacer * 0.25 !important; + max-height: 60%; + + box-shadow: 0 2px 6px rgba(0,0,0,0.35); + overflow: auto; + -webkit-overflow-scrolling: touch; + transform: translate3d(0, 350px, 0); + transition: transform 0.3s, visibility 0s 0.3s; + z-index: $zindex-popover; + padding: 5px 0 10px; + + border-radius: 0; + border: 0px; + border-top: 1px solid $border-color; + + > li { + > a, .dropdown-item { + padding: 10px 20px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + &.divider { + padding: 0; + } + } + } + + .dropdown-menu.show { + transform: none!important; + visibility: visible; + transition-delay: 0s; + top: auto; + width: auto; + } + + .dropdown-backdrop { + background-color: rgba(0, 0, 0, .3); + } + } +} diff --git a/scss/modules/breadcrumbs.scss b/scss/modules/breadcrumbs.scss new file mode 100644 index 00000000..6f7d8551 --- /dev/null +++ b/scss/modules/breadcrumbs.scss @@ -0,0 +1,16 @@ +.breadcrumb .breadcrumb-item { + font-family: $font-family-secondary; + + &::before { + font-family: $font-family-sans-serif; + font-weight: $font-weight-semibold; + font-size: $small-font-size; + line-height: $h4-font-size; + } + + a, span { + color: $body-color; + font-size: $small-font-size; + line-height: 16px; + } +} \ No newline at end of file diff --git a/scss/modules/cover.scss b/scss/modules/cover.scss new file mode 100644 index 00000000..acdd601c --- /dev/null +++ b/scss/modules/cover.scss @@ -0,0 +1,105 @@ +// used in group and account pages +.cover { + background-size: cover; + background-repeat: no-repeat; + height: 200px; + position: absolute; + background-origin: content-box; + width: 100%; + top: var(--panel-offset); + left: auto; + right: 0px; + + &:hover { + .controls { + opacity: 1; + } + } + + .controls { + height: 200px; + line-height: 200px; + opacity: 0; + @include transition(opacity .15s linear); + cursor: pointer; + pointer-events: none; + + > * { + pointer-events: all; + } + } + + &.active { + &:hover { + cursor: move; + } + + .controls { + > * { + display: none; + } + } + + .save { + display: inline-block; + } + } + + &.saving { + .save { + display: none; + } + + .indicator { + display: inline-block; + } + } + + .save, .indicator { + display: inline-block; + position: absolute; + top: 1em; + right: 2em; + opacity: 1; + padding: 0.5em; + font-weight: bold; + + &:hover { + cursor: pointer; + } + } + + .save { + display: none; + } + + .indicator { + display: none; + } +} + +.cover > .container { + height: 200px; + position: relative; + pointer-events: none; + .save { + pointer-events: all; + } + .controls { + pointer-events: none; + > * { + pointer-events: all; + } + } +} + +@include media-breakpoint-up(md) { + .cover, .cover > .container { + height: 300px; + + .controls { + height: 300px; + line-height: 300px; + } + } +} \ No newline at end of file diff --git a/scss/modules/filters.scss b/scss/modules/filters.scss new file mode 100644 index 00000000..1f70620d --- /dev/null +++ b/scss/modules/filters.scss @@ -0,0 +1,8 @@ +[component="search/filters"], [component="flags/filters"] { + .filter-btn { + border-color: $gray-300!important; + &.active-filter { + border-color: $primary!important; + } + } +} \ No newline at end of file diff --git a/scss/modules/nprogress.scss b/scss/modules/nprogress.scss new file mode 100644 index 00000000..a576b32d --- /dev/null +++ b/scss/modules/nprogress.scss @@ -0,0 +1,80 @@ +#nprogress { + pointer-events: none; +} + +$nprogress-color: $primary; + +#nprogress .bar { + background: $nprogress-color; + position: fixed; + z-index: 1031; + top: 0; + left: 0; + width: 100%; + height: 2px; +} + +#nprogress .peg { + display: block; + position: absolute; + right: 0px; + width: 100px; + height: 100%; + box-shadow: 0 0 10px $nprogress-color, 0 0 5px $nprogress-color; + opacity: 1.0; + + -webkit-transform: rotate(3deg) translate(0px, -4px); + -ms-transform: rotate(3deg) translate(0px, -4px); + transform: rotate(3deg) translate(0px, -4px); +} + +#nprogress .spinner { + display: none; + position: fixed; + z-index: 1031; + top: 15px; + right: 15px; +} + +@include media-breakpoint-down(sm) { + #nprogress .spinner { + bottom: 15px; + right: 15px; + top: initial; + } +} + + +#nprogress .spinner-icon { + width: 18px; + height: 18px; + box-sizing: border-box; + + border: solid 2px transparent; + border-top-color: $nprogress-color; + border-left-color: $nprogress-color; + border-radius: 50%; + + -webkit-animation: nprogress-spinner 400ms linear infinite; + animation: nprogress-spinner 400ms linear infinite; +} + +.nprogress-custom-parent { + overflow: hidden; + position: relative; +} + +.nprogress-custom-parent #nprogress .spinner, +.nprogress-custom-parent #nprogress .bar { + position: absolute; +} + +@-webkit-keyframes nprogress-spinner { + 0% { -webkit-transform: rotate(0deg); } + 100% { -webkit-transform: rotate(360deg); } +} +@keyframes nprogress-spinner { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} + diff --git a/scss/modules/paginator.scss b/scss/modules/paginator.scss new file mode 100644 index 00000000..1689c8e4 --- /dev/null +++ b/scss/modules/paginator.scss @@ -0,0 +1,24 @@ +.skin-noskin [component="pagination"] { + .page-item.active:not(.disabled) .page-link { + color: $body-color; + background-color: $gray-300; + border-color: $gray-300; + } + + .page-item:not(.disabled):hover .page-link { + color: $body-color; + } +} + +[component="pagination"] { + .page-item.active:not(.disabled) .page-link { + color: $pagination-active-color; + } + .page-item:not(.disabled):hover .page-link { + color: $pagination-hover-color; + background-color: $pagination-hover-bg; + } + .page-item:not(.disabled) .page-link { + color: $body-color; + } +} \ No newline at end of file diff --git a/scss/modules/tags.scss b/scss/modules/tags.scss new file mode 100644 index 00000000..f1217aa6 --- /dev/null +++ b/scss/modules/tags.scss @@ -0,0 +1,6 @@ +.tag-list { + .tag { + background-color: $gray-200!important; + color: $gray-700!important; + } +} \ No newline at end of file diff --git a/scss/modules/topic-navigator.scss b/scss/modules/topic-navigator.scss new file mode 100644 index 00000000..35d6be6c --- /dev/null +++ b/scss/modules/topic-navigator.scss @@ -0,0 +1,53 @@ +.pagination-block { display: none; } + +body.template-topic { + // used for both sidebar and bottom bar pagination-block + .pagination-block { + display: block; + transition: opacity 250ms ease-in; + opacity: 0; + &.ready { + opacity: 1; + } + &.noreplies { + pointer-events: none; + cursor: none; + } + } +} + +.topic .pagination-block { + .scroller-content { + min-width: 170px; + } + .scroller-container { + left: 10px; + height: 300px; + border-left: 2px solid $border-color; + + .scroller-thumb { + left: -5px; + &:not(.active) { + transition: top 100ms linear; + } + cursor: grab; + &.active { + cursor: grabbing; + } + } + + .unread { + width: 1px; + height: 0; // initial + bottom: 0; + background: $primary; + transition: $transition-base; + left: -1px; + + .meta { + left: 5px; + font-size: 13px; + } + } + } +} \ No newline at end of file diff --git a/scss/modules/topics-list.scss b/scss/modules/topics-list.scss new file mode 100644 index 00000000..6ce124be --- /dev/null +++ b/scss/modules/topics-list.scss @@ -0,0 +1,40 @@ +ul.topics-list, ul.categories-list { + li { + &.deleted { + .meta, .topic-thumbs { display: none!important; } + opacity: 0.65; + } + + &.selected { + background-color: mix($body-bg, $body-color, 90%); + [component="topic/select"] { + color: $success!important; + visibility: visible; + } + } + p { + margin: 0 !important; + } + + // all other skins use link-color for unread titles + &.unread .title { + color: $link-color; + } + + .ui-sortable-handle { + cursor: move; + } + + // if only one thumb don't display + [data-numthumbs="1"] { display: none; } + } +} + +// on default skin use primary color for unread titles +.skin-noskin { + ul.topics-list, ul.categories-list { + li.unread .title { + color: $primary; + } + } +} diff --git a/scss/modules/user-menu.scss b/scss/modules/user-menu.scss new file mode 100644 index 00000000..cda2ac06 --- /dev/null +++ b/scss/modules/user-menu.scss @@ -0,0 +1,11 @@ +[component="header/usercontrol"] { + [component="header/profilelink"] > div, .user-status > div { + min-width: 1.25em; // match fontawesome fixed width + } + .user-status i.fa-check { + display: none; + } + .user-status.selected i.fa-check { + display: block; + } +} \ No newline at end of file diff --git a/scss/overrides.scss b/scss/overrides.scss new file mode 100644 index 00000000..49de2660 --- /dev/null +++ b/scss/overrides.scss @@ -0,0 +1,64 @@ +// only overrides to bs5 variables here + +// Harmony colours +$white: #fff !default; +$gray-100: #f8f9fa !default; +$gray-200: #e9ecef !default; +$gray-300: #dee2e6 !default; +$gray-400: #ced4da !default; +$gray-500: #adb5bd !default; +$gray-600: #6c757d !default; +$gray-700: #495057 !default; +$gray-800: #343a40 !default; +$gray-900: #212529 !default; +$black: #000 !default; + +$blue: #0d6efd !default; +$red: #dc3545 !default; +$yellow: #ffc107 !default; +$green: #198754 !default; +$cyan: #0dcaf0 !default; + +$primary: $blue !default; +$secondary: $gray-600 !default; +$success: $green !default; +$info: $cyan !default; +$warning: $yellow !default; +$danger: $red !default; +$light: $gray-100 !default; +$dark: $gray-900 !default; + +$body-color: $gray-800 !default; +$body-bg: $white !default; +$body-tertiary-bg: $gray-200 !default; +$text-muted: $gray-600 !default; +$border-color: $gray-200 !default; +$link-color: #0951be !default; + +$form-check-input-border: var(--bs-border-width) solid $gray-500 !default; + +// no caret on dropdown-toggle +$enable-caret: false; + +// disable smooth scroll, this makes window.scrollTo(0,0) in ajaxify.js take x milliseconds +$enable-smooth-scroll: false; + +$enable-shadows: true; + +$link-decoration: none; +$link-hover-decoration: underline; + +// Custom fonts +$font-family-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; +$font-family-secondary: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default; +$font-weight-semibold: 500 !default; +$small-font-size: 0.875rem !default; + +$breadcrumb-divider: quote("→"); +$breadcrumb-divider-color: $gray-500 !default; +$breadcrumb-active-color: $body-color !default; +$breadcrumb-item-padding-x: 12px !default; + +.form-control::placeholder, .bootstrap-tagsinput::placeholder { + color: $gray-500 !important; +} \ No newline at end of file diff --git a/scss/sidebar.scss b/scss/sidebar.scss new file mode 100644 index 00000000..ca8df90d --- /dev/null +++ b/scss/sidebar.scss @@ -0,0 +1,189 @@ +.skin-noskin { + // only using colors when there is no bootswatch skin applied + nav.sidebar, .bottombar-nav { + color: $secondary !important; + background-color: $light !important; + } + .bottombar-nav { + .dropdown-menu { + color: $secondary !important; + background-color: $light !important; + } + } +} + +.sidebar { + $hover-color: mix($light, $dark, 90%); + + @include media-breakpoint-up(lg) { + &.open { + min-width: 200px; + max-width: 200px; + width: 200px; + + .sidebar-toggle { + .fa-angles-right { display: none; } + .fa-angles-left { display: inline-block; } + } + .visible-open { display: initial; } + .visible-closed { display: none; } + hr.visible-open { display: block; } + .truncate-open { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .sidebar-toggle-container { + width: 100% + } + } + } + .visible-open { display: none; } + .visible-closed {display: initial; } + + .truncate-open { + overflow: initial; + text-overflow: initial; + white-space: initial; + } + + .nav-link { + @extend .ff-secondary; + padding: ($spacer * 0.25) ($spacer * 0.5); + border-radius: $border-radius-sm; + cursor: pointer; + &.active { + background-color: $hover-color; + } + &:hover { + background-color: $hover-color; + } + } + + .nav-item { + .dropdown-menu .dropdown-item { + @extend .rounded-1; + } + } + + #user_dropdown .avatar { + margin: 2px 0; // fixes the avatar so its height is same as the icons on right sidebar + } + + .sidebar-toggle { + justify-content: start; + .fa-angles-right { display: inline-block; } + .fa-angles-left { display: none; } + } + + .search-dropdown { + width: 300px; + } + + .chats-dropdown, .notifications-dropdown, .drafts-dropdown { + min-width: 300px; + width: 300px; + .list-container { + max-height: 400px; + overflow-y: auto; + } + } + + .badge { + font-size: 9px; + line-height: 12px; + &.visible-open { + font-size:12px; + line-height: 12px; + font-weight: normal; + } + } + + [data-widget-area="sidebar-footer"] { + font-size: $font-size-base * 0.75; + } +} + + /*rtl:begin:ignore*/ + html[data-dir="rtl"] { + .sidebar { + &.open { + .sidebar-toggle { + .fa-angles-right { display: none; } + .fa-angles-left { display: inline-block; } + } + } + .sidebar-toggle { + .fa-angles-right { display: inline-block; } + .fa-angles-left { display: none; } + } + } +} + /*rtl:end:ignore*/ + +.bottombar { + transition: bottom 150ms linear; + + .pagination-block { + .scroller-container { + border-right: 3px solid; + margin-right: 5.5px; + .scroller-thumb { + right: -6px; + padding-right: 15px; + margin-right: -15px; + } + } + } +} + +.bottombar-nav { + .nav-text { + font-size: 1rem; + color: $body-color; + } + .nav-link { + padding: 8px; + border-radius: $border-radius-sm; + } + .usermenu, .chats, .notifications, .drafts, .search, .logged-out-menu { + .visible-open { display: none; } + } + .badge { + font-size: 9px; + line-height: 12px; + } + + .navigation-dropdown, .user-dropdown { + > li { + > a, .dropdown-item { + padding: 10px 20px!important; + } + } + left: 0!important; + right: 0!important; + bottom: $spacer*0.5!important; + box-shadow: none!important; + max-height: 60vh!important; + overflow: auto!important; + } + .search-dropdown .quick-search-results { + max-height: 225px!important; + overflow-y: auto!important; + } + .search-dropdown, .chats-dropdown, .notifications-dropdown, .drafts-dropdown { + left: 0 !important; + right: 0 !important; + box-shadow: none!important; + + border-left: 0; + border-right: 0; + border-bottom: 0; + border-radius: 0; + + .list-container { + max-height: 60vh!important; + overflow-y: auto!important; + } + } +} diff --git a/scss/skins.scss b/scss/skins.scss new file mode 100644 index 00000000..322e3cb2 --- /dev/null +++ b/scss/skins.scss @@ -0,0 +1,50 @@ +.skin-quartz { + // $body-bg-image is gradient in quartz + [component="post"] .icon { + background-color: transparent !important; + } +} + +.skin-quartz, .skin-lux, .skin-morph { + // $spacer being modified looks bad on this element + .topic-list-header .btn, .topic-main-buttons .btn { + padding: 6px 12px; + } +} + +.skin-yeti { + .badge { + padding-left: 0.5rem; + padding-right: 0.5rem; + } +} + +// table color fix, remove once https://github.com/thomaspark/bootswatch/issues/1276 is published +.skin-darkly, .skin-superhero, .skin-solar, .skin-quartz { + table > :not(caption) > * > * { + color: white; + } +} + +.skin-superhero { + // fix read button in dropdowns + .mark-read .read { + color: $primary!important; + } +} + +.skin-slate { + // fix unread button colors in dropdowns + .mark-read .unread { + color: $secondary!important; + } +} + +:root { + .skin-darkly, .skin-slate, .skin-cyborg { + --bs-border-color: #929292; + } + .skin-zephyr { + --bs-secondary-rgb: var(--bs-secondary-color); + } +} \ No newline at end of file diff --git a/scss/status.scss b/scss/status.scss new file mode 100644 index 00000000..37c5f0a4 --- /dev/null +++ b/scss/status.scss @@ -0,0 +1,25 @@ +.status { + padding: 3px; + + &.online { + background-color: $success; + } + + &.away { + background-color: $warning; + } + + &.dnd { + background-color: $danger; + } + + &.offline { + background-color: $gray-600; + } +} + +@include media-breakpoint-up(sm) { + .status { + padding: 5px; + } +} \ No newline at end of file diff --git a/scss/topic.scss b/scss/topic.scss new file mode 100644 index 00000000..94f10bc3 --- /dev/null +++ b/scss/topic.scss @@ -0,0 +1,139 @@ +body.template-topic { + .breadcrumb .breadcrumb-item:last-child { + display: none; + } + .topic { + .posts-container { + max-width: 960px; + width: 960px; + } + + .posts { + // fixes code blocks pushing content out on mobile + @include media-breakpoint-down(md) { + max-width: calc(100vw - $grid-gutter-width); + } + + &.timeline { + @include timeline-style; + } + + .post-header { + font-size: 0.8125rem; + line-height: 1.25rem; + + .bookmarked { + transition: $transition-fade; + } + } + + > [component="post"] > [component="post/footer"] { + margin-left: calc($spacer * 2.5); + } + + [component="post"] { + &.selected .post-container { + background-color: mix($body-bg, $body-color, 90%); + } + &.deleted .post-container .content { opacity: .65; } + + [component="post/content"] { + @include fix-lists(); + + > blockquote { + > blockquote { + > *:not(.blockquote) { + display: none; + } + } + + > blockquote.uncollapsed { + > *:not(.blockquote) { + display: block; + } + } + } + + @include media-breakpoint-up(lg) { + table { // text-break breaks table formatting + word-break:initial!important; + } + } + } + } + + [component="post/upvote"], [component="post/downvote"] { + &.upvoted, &.downvoted { + background-color: var(--btn-ghost-active-color); + + &:hover { + background-color: var(--btn-ghost-hover-color); + } + } + } + } + } + + .quick-reply { + @include topic-avatars(); + } + + [component="post/replies/container"] { + .icon { + display: none !important; + } + + .post-header .icon { + display: initial !important; + + .status { + display: none; + } + } + + .timeline-event { + display: none !important; + } + + [component="post"] { + padding-top: 0 !important; + padding-bottom: $spacer; + &:last-of-type { + padding-bottom: 0; + .post-footer { + border-bottom: none !important; + } + } + } + } + + + [component="topic/thumb/list"] { + height: calc($font-size-base * 4); + } +} + +@include media-breakpoint-up(sm) { + body.template-topic { + .topic .posts { + [component="post"] { + [component="post/actions"] { + opacity: 0; + transition: $transition-fade; + + &:has([aria-expanded="true"]) { + opacity: 1; + } + } + [component="post/actions"]:focus-within { + opacity: 1; + } + &:hover { + > .post-footer > [component="post/actions"] { + opacity: 1; + } + } + } + } + } +} \ No newline at end of file diff --git a/templates/account/best.tpl b/templates/account/best.tpl new file mode 100644 index 00000000..21b7d5b1 --- /dev/null +++ b/templates/account/best.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/account/blocks.tpl b/templates/account/blocks.tpl new file mode 100644 index 00000000..fb7a60aa --- /dev/null +++ b/templates/account/blocks.tpl @@ -0,0 +1,51 @@ + +
+

[[pages:account/blocks, {username}]]

+
+ +
+
+
+ + +
+ {{{ each users }}} +
+ + +
+ {{{ end }}} +
+ +
+ + diff --git a/templates/account/bookmarks.tpl b/templates/account/bookmarks.tpl new file mode 100644 index 00000000..21b7d5b1 --- /dev/null +++ b/templates/account/bookmarks.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/account/categories.tpl b/templates/account/categories.tpl new file mode 100644 index 00000000..289f1de7 --- /dev/null +++ b/templates/account/categories.tpl @@ -0,0 +1,64 @@ + + +
+
+

{title}

+
+ +
+ +
+
+ +
+ + +
+ + \ No newline at end of file diff --git a/templates/account/consent.tpl b/templates/account/consent.tpl new file mode 100644 index 00000000..f472e9ee --- /dev/null +++ b/templates/account/consent.tpl @@ -0,0 +1,73 @@ + +

[[user:consent.title]]

+ +

[[user:consent.lead]]

+

[[user:consent.intro]]

+ +
+ +
+
+ {{{ if gdpr_consent }}} +
+ [[user:consent.received]] + +
+ {{{ else }}} +
+ [[user:consent.not-received]] +

+
+ +
+
+ {{{ end }}} +
+
+

[[user:consent.email-intro]]

+ {{{ if digest.enabled }}} +

[[user:consent.digest-frequency, {digest.frequency}]]

+ {{{ else }}} +

[[user:consent.digest-off]]

+ {{{ end }}} + + +
+
+
+
+
+
+

[[user:consent.right-of-access]]

+

[[user:consent.right-of-access-description]]

+

[[user:consent.right-to-rectification]]

+

[[user:consent.right-to-rectification-description]]

+

[[user:consent.right-to-erasure]]

+

[[user:consent.right-to-erasure-description]]

+

[[user:consent.right-to-data-portability]]

+

[[user:consent.right-to-data-portability-description]]

+ +
+ + +
+
+
+
+ + diff --git a/templates/account/controversial.tpl b/templates/account/controversial.tpl new file mode 100644 index 00000000..21b7d5b1 --- /dev/null +++ b/templates/account/controversial.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/account/downvoted.tpl b/templates/account/downvoted.tpl new file mode 100644 index 00000000..21b7d5b1 --- /dev/null +++ b/templates/account/downvoted.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/account/edit.tpl b/templates/account/edit.tpl new file mode 100644 index 00000000..1eee58e1 --- /dev/null +++ b/templates/account/edit.tpl @@ -0,0 +1,123 @@ + + +
+

{{{ if isSelf }}}[[user:edit-profile]]{{{ else }}}[[pages:account/edit, {username}]]{{{ end }}}

+ +
+
+
+
+
+ + +
+ + {{{ if allowWebsite }}} +
+ + +
+ {{{ end }}} + +
+ + +
+ +
+ + +
+ +
+ + +
+ {{{ each groups }}} +
+ +
+ + + {{{ if allowMultipleBadges }}} + + + {{{ end }}} +
+
+ {{{ end }}} +
+
+ + {{{ if allowAboutMe }}} +
+ + +
+ {{{ end }}} + + {{{ if (allowSignature && !disableSignatures) }}} +
+ + +
+ {{{ end }}} +
+
+
+ +
+
+ + + {{{ if config.requireEmailConfirmation }}} + {{{ if (email && isSelf) }}} + [[user:confirm-email]]

+ {{{ end }}} + {{{ end }}} +
+ + {{{ if sso.length }}} + + + {{{ end }}} + +
+ {{{ if (allowAccountDelete && isSelf) }}} +
+ +
+ {{{ end }}} +
+
+ + \ No newline at end of file diff --git a/templates/account/edit/password.tpl b/templates/account/edit/password.tpl new file mode 100644 index 00000000..4ab4fd25 --- /dev/null +++ b/templates/account/edit/password.tpl @@ -0,0 +1,35 @@ + + +

{{{ if isSelf }}}[[user:change-password]]{{{ else }}}[[pages:{template.name}, {username}]]{{{ end }}}

+
+
+
+ + + {{{ if isSelf }}} +
+ + +
+ {{{ end }}} + +
+ + + +
+ +
+ + + +
+ +
+ +
+
+
+
+ + \ No newline at end of file diff --git a/templates/account/edit/username.tpl b/templates/account/edit/username.tpl new file mode 100644 index 00000000..cc225d1b --- /dev/null +++ b/templates/account/edit/username.tpl @@ -0,0 +1,31 @@ + + +

{{{ if isSelf }}}[[user:change-username]]{{{ else }}}[[pages:{template.name}, {username}]]{{{ end }}}

+
+
+
+
+ + +
+ + + + {{{ if isSelf }}} +
+ + +
+ {{{ end }}} + + + +
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/templates/account/followers.tpl b/templates/account/followers.tpl new file mode 100644 index 00000000..68fe6de6 --- /dev/null +++ b/templates/account/followers.tpl @@ -0,0 +1,15 @@ + +

[[pages:{template.name}, {username}]]

+ +{{{ if !users.length }}} +
[[user:has-no-follower]]
+{{{ end }}} + +
+{{{ each users }}} + +{{{end}}} +
+ + + \ No newline at end of file diff --git a/templates/account/following.tpl b/templates/account/following.tpl new file mode 100644 index 00000000..73fd4913 --- /dev/null +++ b/templates/account/following.tpl @@ -0,0 +1,16 @@ + + +

[[pages:{template.name}, {username}]]

+ +{{{ if !users.length }}} +
[[user:follows-no-one]]
+{{{ end }}} + +
+{{{ each users }}} + +{{{end}}} +
+ + + \ No newline at end of file diff --git a/templates/account/groups.tpl b/templates/account/groups.tpl new file mode 100644 index 00000000..c1faf808 --- /dev/null +++ b/templates/account/groups.tpl @@ -0,0 +1,15 @@ + + +

[[pages:{template.name}, {username}]]

+ +
+
+ {{{ if !groups.length }}} +
[[groups:no-groups-found]]
+ {{{ else }}} + + {{{ end }}} +
+
+ + diff --git a/templates/account/ignored.tpl b/templates/account/ignored.tpl new file mode 100644 index 00000000..238b943c --- /dev/null +++ b/templates/account/ignored.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/account/info.tpl b/templates/account/info.tpl new file mode 100644 index 00000000..fa0a215d --- /dev/null +++ b/templates/account/info.tpl @@ -0,0 +1,271 @@ + + +{{{ if sessions.length }}} +
+

[[global:sessions]]

+ +
+{{{ end }}} + +
+
+
+
+ [[global:recentips]] +
+
+
    + {{{each ips}}} +
  • {@value}
  • + {{{end}}} +
+
+
+ +
+
+ [[user:info.username-history]] +
+
+ +
+
+ +
+
+ [[user:info.email-history]] +
+
+ +
+
+ + {{{ if isAdminOrGlobalModerator }}} +
+
+ [[user:info.moderation-note]] +
+
+ + + +
+
+ {{{ each moderationNotes }}} +
+ +
+ + + +
+
+ {./note} +
+ +
+ +
+ +
+ + +
+
+
+ {{{ end }}} +
+ +
+
+ {{{ end }}} +
+
+
+
+ [[user:info.latest-flags]] +
+
+ {{{ if history.flags.length }}} +
    + {{{ each history.flags }}} +
  • +
    +
    + {{{ if (./type == "user")}}} + [[user:info.profile]] + {{{ else }}} + [[user:info.post]] + {{{ end }}} + +
    + + [[user:info.view-flag]] +
    + + {{{ if (./type == "post") }}} +

    + {{{ if history.flags.targetPurged }}} +

    [[flags:target-purged]]
    + {{{ else }}} + {./title} + {{{ end }}} +

    + {{{ end }}} + +
    + [[user:info.reported-by]] +
    + {{{ each ./reports }}} + {buildAvatar(./reporter, "24px", true)} + {{{ end }}} +
    +
    +
  • + {{{ end }}} +
+ {{{ else }}} +
[[user:info.no-flags]]
+ {{{ end }}} +
+
+ +
+
+ [[user:info.ban-history]] + + {{{ if (!banned && !isSelf) }}} + + {{{ end }}} + {{{ if (banned && !isSelf) }}} + + {{{ end }}} +
+
+ {{{ if history.bans.length }}} +
    + {{{ each history.bans }}} +
  • +
    + + {{{ if (./type != "unban") }}} + [[user:banned]] + {{{ else }}} + [[user:unbanned]] + {{{ end }}} +
    +

    + [[user:info.banned-reason-label]]: {./reason} +

    +

    + {{{ if ./until }}} + [[user:info.banned-until, {isoTimeToLocaleString(./untilISO, config.userLang)}]] + {{{ else }}} + {{{ if (./type != "unban") }}} + [[user:info.banned-permanently]] + {{{ end }}} + {{{ end }}} +

    +
  • + {{{ end }}} +
+ {{{ else }}} +
[[user:info.no-ban-history]]
+ {{{ end }}} +
+
+ +
+
+ [[user:info.mute-history]] + + {{{ if !muted }}} + {{{ if !isSelf }}} + + {{{ end }}} + {{{ else }}} + {{{ if !isSelf }}} + + {{{ end }}} + {{{ end }}} +
+
+ {{{ if history.mutes.length }}} +
    + {{{ each history.mutes }}} +
  • +
    + + {{{ if (./type != "unmute") }}} + [[user:muted]] + {{{ else }}} + [[user:unmuted]] + {{{ end }}} +
    +

    + [[user:info.banned-reason-label]]: {./reason} +

    +

    + {{{ if ./until }}} + [[user:info.muted-until, {isoTimeToLocaleString(./untilISO, config.userLang)}]] + {{{ end }}} +

    +
  • + {{{ end }}} +
+ {{{ else }}} +
[[user:info.no-mute-history]]
+ {{{ end }}} +
+
+
+
+ + \ No newline at end of file diff --git a/templates/account/posts.tpl b/templates/account/posts.tpl new file mode 100644 index 00000000..d8934a07 --- /dev/null +++ b/templates/account/posts.tpl @@ -0,0 +1,35 @@ + + +
+

[[global:posts]]

+
+ [[global:header.recent]] + {{{ if !reputation:disabled }}} + [[global:best]] + [[global:controversial]] + {{{ if canEdit }}} + [[global:upvoted]] + {{{ if !downvote:disabled }}} + [[global:downvoted]] + {{{ end }}} + {{{ end }}} + {{{ end }}} + {{{ if canEdit }}} + [[user:bookmarks]] + {{{ end }}} +
+
+ +{{{ if !posts.length }}} +
{noItemsFoundKey}
+{{{ end }}} + +
+ + + {{{ if config.usePagination }}} + + {{{ end }}} +
+ + diff --git a/templates/account/profile.tpl b/templates/account/profile.tpl new file mode 100644 index 00000000..7fa531c6 --- /dev/null +++ b/templates/account/profile.tpl @@ -0,0 +1,95 @@ + + +{{{ if widgets.profile-aboutme-before.length }}} +
+{{{each widgets.profile-aboutme-before}}} +{./html} +{{{end}}} +
+{{{ end }}} + +{{{ if aboutme }}} +
+{aboutmeParsed} +
+{{{ end }}} + +{{{ if widgets.profile-aboutme-after.length }}} +
+{{{each widgets.profile-aboutme-after}}} +{./html} +{{{end}}} +
+{{{ end }}} + +
+
+ {{{ if !reputation:disabled }}} +
+
+ [[global:reputation]] + {humanReadableNumber(reputation)} +
+
+ {{{ end }}} +
+
+ [[user:profile-views]] + {humanReadableNumber(profileviews)} +
+
+ +
+
+ [[user:joined]] + +
+
+ +
+
+ [[user:lastonline]] + +
+
+ + {{{ if email }}} +
+
+ [[user:email]] {{{ if emailHidden}}}([[global:hidden]]){{{ end }}} + {email} +
+
+ {{{ end }}} + + {{{ if websiteName }}} +
+
+ [[user:website]] + {websiteName} +
+
+ {{{ end }}} + + {{{ if location }}} +
+
+ [[user:location]] + {location} +
+
+ {{{ end }}} + + {{{ if age }}} +
+
+ [[user:age]] + {age} +
+
+ {{{ end }}} +
+
+ + diff --git a/templates/account/sessions.tpl b/templates/account/sessions.tpl new file mode 100644 index 00000000..679d0877 --- /dev/null +++ b/templates/account/sessions.tpl @@ -0,0 +1,9 @@ + + +

[[user:sessions.description]]

+
+ + + \ No newline at end of file diff --git a/templates/account/settings.tpl b/templates/account/settings.tpl new file mode 100644 index 00000000..c4c78a16 --- /dev/null +++ b/templates/account/settings.tpl @@ -0,0 +1,236 @@ + + +
+

{{{ if isSelf }}}[[pages:account/settings]]{{{ else }}}[[pages:account/settings-of, {username}]]{{{ end }}}

+ +
+
+
+ {{{ if !disableCustomUserSkins }}} + + + +
+ {{{ end }}} + + {{{ if allowUserHomePage }}} + + +
+ +

[[user:homepage-description]]

+
+ + +
+ {{{ end }}} + +
[[global:privacy]]
+ + {{{ if !hideEmail }}} +
+ + +
+ {{{ end }}} + + {{{ if !hideFullname }}} +
+ + +
+ {{{ end }}} + + {{{ if !config.disableChat }}} +
+ + +
+ {{{ end }}} + +
+ +
[[user:browsing]]
+ +
+ + +
+ + {{{ if inTopicSearchAvailable }}} +
+ + +
+

[[user:topic-search-help]]

+ {{{ end }}} + +
+ + +
+ +
+ + +
+ +
+ +
[[global:pagination]]
+ +
+ + +
+
+ + +
+
+ + +
+ +
+ +
[[global:sort]]
+ +
+ + +
+
+ + +
+ + + {{{ if !disableEmailSubscriptions }}} +
+
[[global:email]]
+
+
+ + +

[[user:digest-description]]

+
+
+ {{{ end }}} + + {{{ each customSettings}}} +
+
{./title}
+
+ {./content} +
+ {{{end}}} +
+
+ +
+ + + +
+ + {{{ if (isAdmin && isSelf) }}} + + + +
+ {{{ end }}} + +
[[topic:watch]]
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
[[user:notifications]]
+
+ {{{ each notificationSettings }}} +
+
+ +
+
+ +
+
+ {{{end}}} + +
+
+ +
+
+ +
+
+
+
+
+ + diff --git a/templates/account/tags.tpl b/templates/account/tags.tpl new file mode 100644 index 00000000..c1007eb8 --- /dev/null +++ b/templates/account/tags.tpl @@ -0,0 +1,13 @@ + + +
+
+

{title}

+
+
+ +
+ +
+ + \ No newline at end of file diff --git a/templates/account/theme.tpl b/templates/account/theme.tpl new file mode 100644 index 00000000..67fdbc71 --- /dev/null +++ b/templates/account/theme.tpl @@ -0,0 +1,64 @@ + + +
+

[[themes/harmony:settings.title]]

+ + +
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + \ No newline at end of file diff --git a/templates/account/topics.tpl b/templates/account/topics.tpl new file mode 100644 index 00000000..b6960988 --- /dev/null +++ b/templates/account/topics.tpl @@ -0,0 +1,44 @@ + + +
+
+

[[global:topics]]

+ {{{ if showSort }}} +
+ + +
+ {{{ end }}} +
+ +
+ {{{ if canEdit }}} + [[global:header.recent]] + [[user:watched]] + [[user:ignored]] + {{{ end }}} +
+
+ + +{{{ if !topics.length }}} +
{noItemsFoundKey}
+{{{ end }}} + +
+ + {{{ if config.usePagination }}} + + {{{ end }}} +
+ + \ No newline at end of file diff --git a/templates/account/uploads.tpl b/templates/account/uploads.tpl new file mode 100644 index 00000000..dd5e7900 --- /dev/null +++ b/templates/account/uploads.tpl @@ -0,0 +1,37 @@ + + +

{title}

+ +
+ {{{ if privateUploads }}}[[uploads:private-uploads-info]]{{{ else }}}[[uploads:public-uploads-info]]{{{ end }}} +
+ +{{{ if !uploads.length }}} +
[[uploads:no-uploads-found]]
+{{{ end }}} + + + + + + + + + + {{{ each uploads }}} + + + + + {{{ end }}} + +
+ {./url} + +
+ +
+
+ + + diff --git a/templates/account/upvoted.tpl b/templates/account/upvoted.tpl new file mode 100644 index 00000000..21b7d5b1 --- /dev/null +++ b/templates/account/upvoted.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/account/watched.tpl b/templates/account/watched.tpl new file mode 100644 index 00000000..238b943c --- /dev/null +++ b/templates/account/watched.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/admin/plugins/harmony.tpl b/templates/admin/plugins/harmony.tpl new file mode 100644 index 00000000..289011ad --- /dev/null +++ b/templates/admin/plugins/harmony.tpl @@ -0,0 +1,56 @@ +
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ [[themes/harmony:settings.stickyToolbar]] +

+ [[themes/harmony:settings.stickyToolbar.help]] +

+
+
+
+ +
+ [[themes/harmony:settings.autohideBottombar]] +

+ [[themes/harmony:settings.autohideBottombar.help]] +

+
+
+
+ + +
+
+ +
+ [[themes/harmony:settings.chatModals]] +
+
+
+
+ + +
+
diff --git a/templates/categories.tpl b/templates/categories.tpl new file mode 100644 index 00000000..24d98b46 --- /dev/null +++ b/templates/categories.tpl @@ -0,0 +1,29 @@ +
+ {{{ each widgets.header }}} + {{widgets.header.html}} + {{{ end }}} +
+
+
+ {{{ if pagination.pages.length }}} +
+ {{{ end }}} + + + +
+
+ {{{ each widgets.sidebar }}} + {{widgets.sidebar.html}} + {{{ end }}} +
+
+
+ {{{ each widgets.footer }}} + {{widgets.footer.html}} + {{{ end }}} +
diff --git a/templates/category.tpl b/templates/category.tpl new file mode 100644 index 00000000..e9b75915 --- /dev/null +++ b/templates/category.tpl @@ -0,0 +1,72 @@ + +{{{ if config.theme.enableBreadcrumbs }}} + +{{{ end }}} + +
+
+ {buildCategoryIcon(@value, "40px", "rounded-1 flex-shrink-0")} +

{./name}

+
+ {{{ if ./descriptionParsed }}} +
+ {./descriptionParsed} +
+ {{{ end }}} +
+ + {humanReadableNumber(totalTopicCount)} + [[global:topics]] + + + {humanReadableNumber(totalPostCount)} + [[global:posts]] + +
+
+ +{{{ if widgets.header.length }}} +
+ {{{ each widgets.header }}} + {{widgets.header.html}} + {{{ end }}} +
+{{{ end }}} + + +
+
+ + {{{ if (topics.length || privileges.topics:create) }}} + + {{{ end }}} + + {{{ if (!topics.length && privileges.topics:create) }}} +
+ [[category:no-topics]] +
+ {{{ end }}} + + + + {{{ if config.usePagination }}} + + {{{ end }}} +
+
+ {{{ each widgets.sidebar }}} + {{widgets.sidebar.html}} + {{{ end }}} +
+
+
+ {{{each widgets.footer}}} + {{widgets.footer.html}} + {{{end}}} +
+ +{{{ if !config.usePagination }}} + +{{{ end }}} diff --git a/templates/flags/detail.tpl b/templates/flags/detail.tpl new file mode 100644 index 00000000..3a81a466 --- /dev/null +++ b/templates/flags/detail.tpl @@ -0,0 +1,179 @@ + + +
+
+
+ + + [[flags:go-to-target]] + + + {{{ if target.uid }}} +
+ + +
+ {{{ end }}} + + + + [[flags:assign-to-me]] + + + {{{ if type_bool.post }}} + {{{ if !target.deleted}}} + [[flags:delete-post]] + {{{ else }}} + [[flags:purge-post]] + [[flags:restore-post]] + {{{ end }}} + {{{ end }}} +
+ +
+
+ + +
+
+ + +
+
+ +
+
+ +
+

[[flags:history]]

+ {{{ if !history.length }}} +
[[flags:no-history]]
+ {{{ end }}} + {{{ each history }}} +
+ +
+
    + {{{ each ./fields }}} +
  • + [[flags:{@key}]]{{{ if @value }}} → {@value}{{{ end }}} +
  • + {{{ end }}} + {{{ each ./meta }}} +
  • + {{./key}}{{{ if ./value }}} → {./value}{{{ end }}} +
  • + {{{ end }}} +
+
+
+ {{{ end }}} +
+
+
+
+

+ {target_readable} +

+
+ {{{ if type_bool.post }}} + +
{target.content}
+ {{{ end }}} + + {{{ if type_bool.user }}} + +
{{{ if target.aboutme }}}{target.aboutme}{{{ else }}}[[flags:target-aboutme-empty]]{{{ end }}}
+ {{{ end }}} + + {{{ if type_bool.empty }}} + + {{{ end }}} +
+
+

[[flags:reports]]

+ +
+
+
+

[[flags:notes]]

+ +
+ +
+
+
+
diff --git a/templates/flags/list.tpl b/templates/flags/list.tpl new file mode 100644 index 00000000..1e5aa059 --- /dev/null +++ b/templates/flags/list.tpl @@ -0,0 +1,6 @@ + + +
+ + +
diff --git a/templates/footer.tpl b/templates/footer.tpl new file mode 100644 index 00000000..6bcfd586 --- /dev/null +++ b/templates/footer.tpl @@ -0,0 +1,17 @@ + + + + + + + {{{ if !isSpider }}} +
+
+ +
+
+ {{{ end }}} + + + + diff --git a/templates/groups/details.tpl b/templates/groups/details.tpl new file mode 100644 index 00000000..9290af34 --- /dev/null +++ b/templates/groups/details.tpl @@ -0,0 +1,86 @@ +
+
+
+ {{{ if group.isOwner }}} +
+ + + +
+
[[groups:cover-save]]
+
[[groups:cover-saving]]
+ {{{ end }}} +
+
+ +
+
+
+

{group.displayName}

+
+
+ {group.descriptionParsed} +
+ {{{ if group.private }}}[[groups:details.private]]{{{ end }}} + {{{ if group.hidden }}}[[groups:details.hidden]]{{{ end }}} +
+
+
+
+ {{{ if loggedIn }}} + {function.membershipBtn, group} + {{{ end }}} + {{{ if isAdmin }}} + [[user:edit]] + {{{ end }}} +
+
+ +
+
+ {{{each widgets.left}}} + {{widgets.left.html}} + {{{end}}} +
+ + +
+
+
+

[[global:posts]]

+ {{{ if !posts.length }}} +
[[groups:details.has-no-posts]]
+ {{{ end }}} + +
+
+

[[groups:details.members]]

+ + +
+ {{{ if group.isOwner }}} +
+

[[groups:details.pending]]

+ +
+ +
+

[[groups:details.invited]]

+ +
+ +
+

[[groups:details.owner-options]]

+ +
+ {{{ end }}} +
+
+ +
+ {{{each widgets.right}}} + {{widgets.right.html}} + {{{end}}} +
+
+
diff --git a/templates/groups/list.tpl b/templates/groups/list.tpl new file mode 100644 index 00000000..d69f80c2 --- /dev/null +++ b/templates/groups/list.tpl @@ -0,0 +1,56 @@ +
+ {{{each widgets.header}}} + {{widgets.header.html}} + {{{end}}} +
+
+

[[pages:groups]]

+
+ +
+
+
+ {{{ if allowGroupCreation }}} + + {{{ end }}} + +
+
+
+ + +
+
+
+
+
+ +
+ +
+ {{{ if groups.length }}} + + {{{ else }}} +
+
+ [[groups:no-groups-found]] +
+
+ {{{ end }}} +
+
diff --git a/templates/groups/members.tpl b/templates/groups/members.tpl new file mode 100644 index 00000000..e5cb1c41 --- /dev/null +++ b/templates/groups/members.tpl @@ -0,0 +1,10 @@ + +
+
+ {{{ each users }}} + + {{{ end }}} +
+ + +
\ No newline at end of file diff --git a/templates/header.tpl b/templates/header.tpl new file mode 100644 index 00000000..e2f48ab1 --- /dev/null +++ b/templates/header.tpl @@ -0,0 +1,45 @@ + + + + {browserTitle} + {{{each metaTags}}}{function.buildMetaTag}{{{end}}} + + {{{each linkTags}}}{function.buildLinkTag}{{{end}}} + + + + {{{if useCustomHTML}}} + {{customHTML}} + {{{end}}} + {{{if useCustomCSS}}} + + {{{end}}} + + + + [[global:skip-to-content]] +
+ + +
+ + +
+ + diff --git a/templates/login.tpl b/templates/login.tpl new file mode 100644 index 00000000..13ca55b8 --- /dev/null +++ b/templates/login.tpl @@ -0,0 +1,101 @@ +
+ {{{each widgets.header}}} + {{widgets.header.html}} + {{{end}}} +
+ +
+ {{{each widgets.footer}}} + {{widgets.footer.html}} + {{{end}}} +
\ No newline at end of file diff --git a/templates/notifications.tpl b/templates/notifications.tpl new file mode 100644 index 00000000..ee5d6fb2 --- /dev/null +++ b/templates/notifications.tpl @@ -0,0 +1,32 @@ +
+ + +
+ +
+
+ +
+
+
    + +
+ +
+
+
+ + diff --git a/templates/partials/account/admin-menu.tpl b/templates/partials/account/admin-menu.tpl new file mode 100644 index 00000000..2941c915 --- /dev/null +++ b/templates/partials/account/admin-menu.tpl @@ -0,0 +1,36 @@ +
+ + +
diff --git a/templates/partials/account/category-item.tpl b/templates/partials/account/category-item.tpl new file mode 100644 index 00000000..e7f9568a --- /dev/null +++ b/templates/partials/account/category-item.tpl @@ -0,0 +1,22 @@ +
  • + +
    +
    +
    + {buildCategoryIcon(@value, "24px", "rounded-1")} +
    +
    +
    + +
    + {{{ if ./descriptionParsed }}} +
    {./descriptionParsed}
    + {{{ end }}} +
    +
    +
    + +
    +
    +
    +
  • diff --git a/templates/partials/account/footer.tpl b/templates/partials/account/footer.tpl new file mode 100644 index 00000000..e3c5167c --- /dev/null +++ b/templates/partials/account/footer.tpl @@ -0,0 +1,3 @@ +
    +
    + \ No newline at end of file diff --git a/templates/partials/account/header.tpl b/templates/partials/account/header.tpl new file mode 100644 index 00000000..5499f49d --- /dev/null +++ b/templates/partials/account/header.tpl @@ -0,0 +1,98 @@ +
    +
    + {{{each widgets.header}}} + {{widgets.header.html}} + {{{end}}} +
    + +
    +
    + {{{ if allowCoverPicture }}} + {{{ if canEdit }}} +
    + + + +
    +
    [[groups:cover-save]]
    +
    [[groups:cover-saving]]
    + {{{ end }}} + {{{ end }}} +
    +
    + +
    +
    + {buildAvatar(@value, "142px", true)} + {{{ if (allowProfilePicture && isSelfOrAdminOrGlobalModerator)}}} +
    + +
    + {{{ end }}} +
    + +
    +
    +
    +

    {{{ if fullname }}}{fullname}{{{ else }}}{username}{{{ end }}}

    +
    + {{{ if !banned }}}@{username}{{{ else }}}[[user:banned]]{{{ end }}} +
    + {{{ if selectedGroup.length }}} + {{{ each selectedGroup }}} + {{{ if ./slug }}} + + {{{ end }}} + {{{ end }}} + {{{ end }}} +
    +
    +
    + {{{ if isAdminOrGlobalModeratorOrModerator }}} + {{{ if banned }}} +
    + {{{ if banned_until }}} + [[user:info.banned-until, {banned_until_readable}]] + {{{ else }}} + [[user:info.banned-permanently]] + {{{ end }}} +
    + {{{ end }}} + {{{ end }}} +
    +
    + +
    + {{{ if loggedIn }}} + {{{ if !isSelf }}} + [[user:unfollow]] + [[user:follow]] + {{{ end }}} + {{{ end }}} + + {{{ if (canChat && !banned) }}} +
    + [[user:chat]] + {{{ if hasPrivateChat}}} + + + {{{ end }}} +
    + {{{ end }}} + {{{ if !isSelf }}} + {{{ if (isAdmin || (canBan || canMute ))}}} + + {{{ end }}} + {{{ end }}} +
    +
    +
    + +
    + +