From c5a3d8f5d2c4822ab1b13e6f3b3517761d96c946 Mon Sep 17 00:00:00 2001 From: Mehdi Benadel Date: Tue, 28 May 2024 13:39:07 +0200 Subject: [PATCH] css tweaking + rearranging packages + update Changelog --- CHANGELOG.md | 4 +++ assets/styles/configuration.scss | 10 +++++++- package-lock.json | 42 ++++++++++++++++++++++++-------- package.json | 8 +++--- 4 files changed, 49 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee0bff48..b52ff8b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ SPDX-License-Identifier: AGPL-3.0-only ### New features +* Overhauled configuration page, with more broadly customizable lists of parameters by @Murazaki ([See pull request #352](https://github.com/JohnXLivingston/peertube-plugin-livechat/pull/352)) + +### New features + * #377: new setting to listen C2S connection on non-localhost interfaces. ## 10.0.2 diff --git a/assets/styles/configuration.scss b/assets/styles/configuration.scss index 13047caf..859f83ab 100644 --- a/assets/styles/configuration.scss +++ b/assets/styles/configuration.scss @@ -234,6 +234,11 @@ livechat-dynamic-table-form { td:last-child { vertical-align: middle; min-width: 28px; + + > input:not([type="checkbox"]), + textarea { + min-width: 150px; + } } tbody tr:nth-child(odd) { @@ -287,6 +292,8 @@ livechat-tags-input { flex-wrap: wrap; max-width: 320px; + // stylelint trying to rearrange unrelated root blocks because of smaller blocks in them + /* stylelint-disable-next-line no-descending-specificity */ input { flex: 1; border: none; @@ -295,6 +302,7 @@ livechat-tags-input { background-color: inherit; width: 100%; + /* stylelint-disable-next-line no-descending-specificity */ &:focus { outline: transparent; } @@ -342,7 +350,6 @@ livechat-tags-input { .tag-searched { width: auto; height: 24px; - max-width: 150px; display: flex; align-items: center; justify-content: center; @@ -408,6 +415,7 @@ livechat-tags-input { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; + max-width: 250px; } } diff --git a/package-lock.json b/package-lock.json index 4bd2b5a1..46cdb61e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,6 @@ "version": "10.0.2", "license": "AGPL-3.0", "dependencies": { - "@lit-labs/motion": "^1.0.7", - "@lit/context": "^1.1.1", - "@lit/task": "^1.0.0", "@xmpp/jid": "^0.13.1", "async": "^3.2.2", "decache": "^4.6.0", @@ -20,11 +17,13 @@ "http-proxy": "^1.18.1", "log-rotate": "^0.2.8", "openid-client": "^5.6.5", - "rxjs": "^7.8.1", "validate-color": "^2.2.1", "xmppjs-chat-bot": "^0.3.0" }, "devDependencies": { + "@lit-labs/motion": "^1.0.7", + "@lit/context": "^1.1.1", + "@lit/task": "^1.0.0", "@peertube/feed": "^5.1.0", "@peertube/peertube-types": "^5.2.0", "@tsconfig/node12": "^1.0.9", @@ -50,6 +49,7 @@ "eslint-plugin-standard": "^5.0.0", "lit": "^2.4.0", "npm-run-all": "^4.1.5", + "rxjs": "^7.8.1", "sass": "^1.43.4", "sharp": "^0.33.2", "stylelint": "^14.0.1", @@ -2672,6 +2672,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/@lit-labs/motion/-/motion-1.0.7.tgz", "integrity": "sha512-odykI6Talw274lYRWQvrGNplHzRy5QAtYEMbqonX6oesEuDQq1nR9Mis38X587jinj68Gjria0mlzqowJ1FACw==", + "dev": true, "dependencies": { "lit": "^3.1.2" } @@ -2680,6 +2681,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.3.tgz", "integrity": "sha512-l4slfspEsnCcHVRTvaP7YnkTZEZggNFywLEIhQaGhYDczG+tu/vlgm/KaWIEjIp+ZyV20r2JnZctMb8LeLCG7Q==", + "dev": true, "dependencies": { "@lit/reactive-element": "^2.0.4", "lit-element": "^4.0.4", @@ -2690,6 +2692,7 @@ "version": "4.0.5", "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.5.tgz", "integrity": "sha512-iTWskWZEtn9SyEf4aBG6rKT8GABZMrTWop1+jopsEOgEcugcXJGKuX5bEbkq9qfzY+XB4MAgCaSPwnNpdsNQ3Q==", + "dev": true, "dependencies": { "@lit-labs/ssr-dom-shim": "^1.2.0", "@lit/reactive-element": "^2.0.4", @@ -2700,6 +2703,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.3.tgz", "integrity": "sha512-FwIbqDD8O/8lM4vUZ4KvQZjPPNx7V1VhT7vmRB8RBAO0AU6wuTVdoXiu2CivVjEGdugvcbPNBLtPE1y0ifplHA==", + "dev": true, "dependencies": { "@types/trusted-types": "^2.0.2" } @@ -2707,12 +2711,14 @@ "node_modules/@lit-labs/ssr-dom-shim": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz", - "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==" + "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==", + "dev": true }, "node_modules/@lit/context": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@lit/context/-/context-1.1.1.tgz", "integrity": "sha512-q/Rw7oWSJidUP43f/RUPwqZ6f5VlY8HzinTWxL/gW1Hvm2S5q2hZvV+qM8WFcC+oLNNknc3JKsd5TwxLk1hbdg==", + "dev": true, "dependencies": { "@lit/reactive-element": "^1.6.2 || ^2.0.0" } @@ -2721,6 +2727,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "dev": true, "dependencies": { "@lit-labs/ssr-dom-shim": "^1.2.0" } @@ -2729,6 +2736,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/@lit/task/-/task-1.0.0.tgz", "integrity": "sha512-7jocGBh3yGlo3kKxQggZph2txK4X5GYNWp2FAsmV9u2spzUypwrzRzXe8I72icAb02B00+k2nlvxVcrQB6vyrw==", + "dev": true, "dependencies": { "@lit/reactive-element": "^1.0.0 || ^2.0.0" } @@ -4161,7 +4169,8 @@ "node_modules/@types/trusted-types": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "dev": true }, "node_modules/@types/validator": { "version": "13.7.1", @@ -10622,6 +10631,7 @@ "version": "7.8.1", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, "dependencies": { "tslib": "^2.1.0" } @@ -10629,7 +10639,8 @@ "node_modules/rxjs/node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true }, "node_modules/safe-array-concat": { "version": "1.0.1", @@ -14403,6 +14414,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/@lit-labs/motion/-/motion-1.0.7.tgz", "integrity": "sha512-odykI6Talw274lYRWQvrGNplHzRy5QAtYEMbqonX6oesEuDQq1nR9Mis38X587jinj68Gjria0mlzqowJ1FACw==", + "dev": true, "requires": { "lit": "^3.1.2" }, @@ -14411,6 +14423,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.3.tgz", "integrity": "sha512-l4slfspEsnCcHVRTvaP7YnkTZEZggNFywLEIhQaGhYDczG+tu/vlgm/KaWIEjIp+ZyV20r2JnZctMb8LeLCG7Q==", + "dev": true, "requires": { "@lit/reactive-element": "^2.0.4", "lit-element": "^4.0.4", @@ -14421,6 +14434,7 @@ "version": "4.0.5", "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.5.tgz", "integrity": "sha512-iTWskWZEtn9SyEf4aBG6rKT8GABZMrTWop1+jopsEOgEcugcXJGKuX5bEbkq9qfzY+XB4MAgCaSPwnNpdsNQ3Q==", + "dev": true, "requires": { "@lit-labs/ssr-dom-shim": "^1.2.0", "@lit/reactive-element": "^2.0.4", @@ -14431,6 +14445,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.3.tgz", "integrity": "sha512-FwIbqDD8O/8lM4vUZ4KvQZjPPNx7V1VhT7vmRB8RBAO0AU6wuTVdoXiu2CivVjEGdugvcbPNBLtPE1y0ifplHA==", + "dev": true, "requires": { "@types/trusted-types": "^2.0.2" } @@ -14440,12 +14455,14 @@ "@lit-labs/ssr-dom-shim": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz", - "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==" + "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==", + "dev": true }, "@lit/context": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@lit/context/-/context-1.1.1.tgz", "integrity": "sha512-q/Rw7oWSJidUP43f/RUPwqZ6f5VlY8HzinTWxL/gW1Hvm2S5q2hZvV+qM8WFcC+oLNNknc3JKsd5TwxLk1hbdg==", + "dev": true, "requires": { "@lit/reactive-element": "^1.6.2 || ^2.0.0" } @@ -14454,6 +14471,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "dev": true, "requires": { "@lit-labs/ssr-dom-shim": "^1.2.0" } @@ -14462,6 +14480,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/@lit/task/-/task-1.0.0.tgz", "integrity": "sha512-7jocGBh3yGlo3kKxQggZph2txK4X5GYNWp2FAsmV9u2spzUypwrzRzXe8I72icAb02B00+k2nlvxVcrQB6vyrw==", + "dev": true, "requires": { "@lit/reactive-element": "^1.0.0 || ^2.0.0" } @@ -15772,7 +15791,8 @@ "@types/trusted-types": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "dev": true }, "@types/validator": { "version": "13.7.1", @@ -20507,6 +20527,7 @@ "version": "7.8.1", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, "requires": { "tslib": "^2.1.0" }, @@ -20514,7 +20535,8 @@ "tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true } } }, diff --git a/package.json b/package.json index a87c82ba..06524358 100644 --- a/package.json +++ b/package.json @@ -33,9 +33,6 @@ "dist/assets/styles/configuration.css" ], "dependencies": { - "@lit-labs/motion": "^1.0.7", - "@lit/context": "^1.1.1", - "@lit/task": "^1.0.0", "@xmpp/jid": "^0.13.1", "async": "^3.2.2", "decache": "^4.6.0", @@ -44,11 +41,13 @@ "http-proxy": "^1.18.1", "log-rotate": "^0.2.8", "openid-client": "^5.6.5", - "rxjs": "^7.8.1", "validate-color": "^2.2.1", "xmppjs-chat-bot": "^0.3.0" }, "devDependencies": { + "@lit-labs/motion": "^1.0.7", + "@lit/context": "^1.1.1", + "@lit/task": "^1.0.0", "@peertube/feed": "^5.1.0", "@peertube/peertube-types": "^5.2.0", "@tsconfig/node12": "^1.0.9", @@ -74,6 +73,7 @@ "eslint-plugin-standard": "^5.0.0", "lit": "^2.4.0", "npm-run-all": "^4.1.5", + "rxjs": "^7.8.1", "sass": "^1.43.4", "sharp": "^0.33.2", "stylelint": "^14.0.1",