- Version 1.11.86
## ✨ Features * Deduplicate icons using Compound Design Tokens (https://github.com/element-hq/element-web/pull/28419). Contributed by @t3chguy. * Let widget driver send error details (https://github.com/element-hq/element-web/pull/28357). Contributed by @AndrewFerr. * Deduplicate icons using Compound Design Tokens (https://github.com/element-hq/element-web/pull/28381). Contributed by @t3chguy. * Auto approvoce `io.element.call.reaction` capability for element call widgets (https://github.com/element-hq/element-web/pull/28401). Contributed by @toger5. * Show message type prefix in thread root \& reply previews (https://github.com/element-hq/element-web/pull/28361). Contributed by @t3chguy. * Support sending encrypted to device messages from widgets (https://github.com/element-hq/element-web/pull/28315). Contributed by @hughns. ## 🐛 Bug Fixes * Feed events to widgets as they are decrypted (even if out of order) (https://github.com/element-hq/element-web/pull/28376). Contributed by @robintown. * Handle authenticated media when downloading from ImageView (https://github.com/element-hq/element-web/pull/28379). Contributed by @t3chguy. * Ignore `m.3pid_changes` for Identity service 3PID changes (https://github.com/element-hq/element-web/pull/28375). Contributed by @t3chguy. * Fix markdown escaping wrongly passing html through (https://github.com/element-hq/element-web/pull/28363). Contributed by @t3chguy. * Remove "Upgrade your encryption" flow in `CreateSecretStorageDialog` (https://github.com/element-hq/element-web/pull/28290). Contributed by @florianduros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=88
This commit is contained in:
commit
daf6ffaa26
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
element-web-1.11.69.tar.gz
Normal file
3
element-web-1.11.69.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fb03dde3db12e39b4144dccdeab90e5503b7a5007de929f2df0f668009b82009
|
||||||
|
size 2399633
|
3
element-web-1.11.71.tar.gz
Normal file
3
element-web-1.11.71.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3b8692f590c9822c75e8b49327369e7b80df02b772b275a1aa67666b49881e1e
|
||||||
|
size 2388489
|
3
element-web-1.11.73.tar.gz
Normal file
3
element-web-1.11.73.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f41c071dff4739d73fffe8e94a009df24742d443e9bd8d291dc2b3b439312340
|
||||||
|
size 2397041
|
3
element-web-1.11.75.tar.gz
Normal file
3
element-web-1.11.75.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3538abd39b613d9cd9244249434a7b545aab39ba1c29e7280484ee15219e037e
|
||||||
|
size 2619174
|
3
element-web-1.11.76.tar.gz
Normal file
3
element-web-1.11.76.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e8616938af329ccdd2ff70ee63af05a004814b61aa539c445d73dc72b6cb121a
|
||||||
|
size 2619340
|
3
element-web-1.11.77.tar.gz
Normal file
3
element-web-1.11.77.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ae6c6db298459a9a01d5b8e24fe69eb1806e608844f63ccc4ce6329a3d20f4c2
|
||||||
|
size 2621710
|
3
element-web-1.11.79.tar.gz
Normal file
3
element-web-1.11.79.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7607f960e38d43d072287fc4f3b222df7742ce69d85a229528d64ad746e9599c
|
||||||
|
size 2622041
|
3
element-web-1.11.80.tar.gz
Normal file
3
element-web-1.11.80.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:76e52fb9874fb5662e74ee1a978d0756efcd77d52fdb055b4b6bc9be51ab7698
|
||||||
|
size 2659635
|
3
element-web-1.11.81.tar.gz
Normal file
3
element-web-1.11.81.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5566878582994344f752086a616a5316948149f2a3367c7ac818567c75ff2191
|
||||||
|
size 2659940
|
3
element-web-1.11.83.tar.gz
Normal file
3
element-web-1.11.83.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:50cd755c8fb22163f089eeb89b2fc23a7c28d65522565a1e9b0a791aa8829952
|
||||||
|
size 2657560
|
3
element-web-1.11.85.tar.gz
Normal file
3
element-web-1.11.85.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:469a83d309c9a8b4bb808508230739b91aabf14edd8a37cc8f75b903fbc91e0b
|
||||||
|
size 26118178
|
3
element-web-1.11.86.tar.gz
Normal file
3
element-web-1.11.86.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a19e4da23c6287dc73b5657334463b97ba69e5ca2eec6ee9b78a91ce6f42a4d2
|
||||||
|
size 25704874
|
1989
element-web.changes
Normal file
1989
element-web.changes
Normal file
File diff suppressed because it is too large
Load Diff
89
element-web.spec
Normal file
89
element-web.spec
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#
|
||||||
|
# spec file for package element-web
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: element-web
|
||||||
|
Version: 1.11.86
|
||||||
|
Release: 0
|
||||||
|
Summary: A glossy Matrix collaboration client - web files
|
||||||
|
License: AGPL-3.0-only or GPL-3.0-only
|
||||||
|
Group: Productivity/Networking/Talk/Clients
|
||||||
|
URL: https://github.com/vector-im/element-web
|
||||||
|
Source0: https://github.com/vector-im/element-web/archive/v%{version}.tar.gz#/element-web-%{version}.tar.gz
|
||||||
|
Source1: npm-packages-offline-cache.tar.gz
|
||||||
|
Source2: jitsi_external_api.min.js
|
||||||
|
Source3: prepare.sh
|
||||||
|
Patch0: fix-webpack-oom.patch
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
BuildRequires: yarn
|
||||||
|
BuildRequires: rust
|
||||||
|
BuildRequires: cargo
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
A glossy Matrix collaboration client - web files
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n element-web-%{version} -a1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
echo 'yarn-offline-mirror "./npm-packages-offline-cache"' > .yarnrc
|
||||||
|
ls -l ./npm-packages-offline-cache | head
|
||||||
|
|
||||||
|
# fix some strange dependency
|
||||||
|
#cp npm-packages-offline-cache/matrix-analytics-events-0.0.1.tgz \
|
||||||
|
# npm-packages-offline-cache/@matrix-analytics-events-0.0.1.tgz
|
||||||
|
#ls -l ./npm-packages-offline-cache/*matrix-analytics-events*
|
||||||
|
|
||||||
|
#sed -i -e 's| matrix-analytics-events "github:matrix-org/matrix-analytics-events.git#[^"]*"| matrix-analytics-events "^0.0.1"|' yarn.lock
|
||||||
|
#sed -i -e 's|"matrix-analytics-events@github:matrix-org/matrix-analytics-events#[^"]*"|matrix-analytics-events@^0.0.1|' yarn.lock
|
||||||
|
|
||||||
|
export SENTRYCLI_SKIP_DOWNLOAD=1
|
||||||
|
|
||||||
|
yarn install --offline --pure-lockfile
|
||||||
|
|
||||||
|
mkdir -p webapp
|
||||||
|
cp %{SOURCE2} ./webapp/jitsi_external_api.min.js
|
||||||
|
echo > scripts/build-jitsi.ts
|
||||||
|
|
||||||
|
DIST_VERSION=%{version} ./scripts/package.sh
|
||||||
|
|
||||||
|
pushd dist || exit 1
|
||||||
|
tar xf element-%{version}.tar.gz
|
||||||
|
popd
|
||||||
|
cp -v LICENSE* dist/element-%{version}/
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d -m 0755 %{buildroot}%{_datadir}/webapps/element
|
||||||
|
|
||||||
|
cp -av dist/element-%{version}/* "%{buildroot}%{_datadir}/webapps/element/"
|
||||||
|
|
||||||
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/webapps/element/
|
||||||
|
install -m 0644 config.sample.json "%{buildroot}%{_sysconfdir}/webapps/element/config.sample.json"
|
||||||
|
|
||||||
|
%fdupes %{buildroot}%{_datadir}/webapps/element/
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE-AGPL-3.0 LICENSE-GPL-3.0
|
||||||
|
%dir %{_datadir}/webapps
|
||||||
|
%{_datadir}/webapps/element
|
||||||
|
%dir %{_sysconfdir}/webapps
|
||||||
|
%dir %{_sysconfdir}/webapps/element
|
||||||
|
%config %{_sysconfdir}/webapps/element/config.sample.json
|
||||||
|
|
||||||
|
%changelog
|
11
fix-webpack-oom.patch
Normal file
11
fix-webpack-oom.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- element-web-1.11.51/package.json.old 2023-12-06 12:17:43.051457300 +0100
|
||||||
|
+++ element-web-1.11.51/package.json 2023-12-06 12:17:48.124782822 +0100
|
||||||
|
@@ -40,7 +40,7 @@
|
||||||
|
"build:res": "ts-node scripts/copy-res.ts",
|
||||||
|
"build:genfiles": "yarn build:res && yarn build:module_system",
|
||||||
|
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
|
||||||
|
- "build:bundle": "webpack --progress --mode production",
|
||||||
|
+ "build:bundle": "node --max_old_space_size=4000 --optimize_for_size $(which webpack) --progress --mode production",
|
||||||
|
"build:bundle-stats": "webpack --progress --mode production --json > webpack-stats.json",
|
||||||
|
"build:module_system": "ts-node --project ./tsconfig.module_system.json module_system/scripts/install.ts",
|
||||||
|
"dist": "scripts/package.sh",
|
2
jitsi_external_api.min.js
vendored
Normal file
2
jitsi_external_api.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
npm-packages-offline-cache.tar.gz
Normal file
3
npm-packages-offline-cache.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f9ac91142d6ff44d7468dd48c1eb3a1d7b04a720ecafbe323a91414fda1af066
|
||||||
|
size 122000101
|
61
prepare.sh
Normal file
61
prepare.sh
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
version=$1
|
||||||
|
sed -i -e "s/^\(Version: *\)[^ ]*$/\1${version}/" element-web.spec
|
||||||
|
|
||||||
|
oldwd="$(pwd)"
|
||||||
|
|
||||||
|
# cleanup old stuff
|
||||||
|
(find -maxdepth 1 -type d -name 'element-web-*' | xargs rm -r) ||:
|
||||||
|
|
||||||
|
version=$(grep "Version:" element-web.spec | awk '{print $2}')
|
||||||
|
last_packaged_version=$(osc cat devel:languages:nodejs/element-web/element-web.spec | grep "^Version:" | awk '{print $NF}')
|
||||||
|
|
||||||
|
osc rm --force element-web-*.tar.gz || :
|
||||||
|
wget -c https://github.com/vector-im/element-web/archive/v${version}.tar.gz -O element-web-${version}.tar.gz
|
||||||
|
wget https://meet.element.io/libs/external_api.min.js -O jitsi_external_api.min.js
|
||||||
|
osc add element-web-*.tar.gz
|
||||||
|
|
||||||
|
#zypper install yarn cargo gcc-c++ sqlcipher-devel libsecret-devel
|
||||||
|
|
||||||
|
rm -rf "element-web-${version}"
|
||||||
|
tar xzvf element-web-${version}.tar.gz
|
||||||
|
cd element-web-${version}
|
||||||
|
changes=$(grep "^Changes in \[$last_packaged_version\]" -B10000 CHANGELOG.md | head -n -2 | sed -e '/^==*$/d' -e 's/Changes in \[\([^\[]*\)\].*/Version \1/' -e 's/^\([^-].*\)$/ \1/' -e 's/\[.*\](\(.*\))/\1/g' -e 's/^ *Version /Version /g')
|
||||||
|
|
||||||
|
echo 'yarn-offline-mirror "./npm-packages-offline-cache"' > .yarnrc
|
||||||
|
yarn cache clean
|
||||||
|
rm -rf node_modules/
|
||||||
|
yarn install --pure-lockfile --ignore-engines || : # this will download tha packages into the offline cache
|
||||||
|
|
||||||
|
# download some additional dependencie that slips through this earlier method
|
||||||
|
cd ./npm-packages-offline-cache/
|
||||||
|
|
||||||
|
# fill sentry-cli cache with mock binaries for all architecutres
|
||||||
|
mkdir -p sentry-cli
|
||||||
|
cd sentry-cli
|
||||||
|
sentry_cli_version=$(ls ../@sentry-cli-*.tgz | sed -e 's/.*cli-//' -e 's/.tgz//')
|
||||||
|
for arch in i686 x86_64 aarch64 armv7 riscv64 ppc64 ppc64le s390x; do
|
||||||
|
url="https://downloads.sentry-cdn.com/sentry-cli/${sentry_cli_version}/sentry-cli-Linux-${arch}"
|
||||||
|
filehash=$(echo -n "$url" | md5sum | cut -c1-6)
|
||||||
|
target="${filehash}-sentry-cli-Linux-${arch/_/-}"
|
||||||
|
#wget -O "$target" "$url"
|
||||||
|
echo '#!/bin/bash' > "$target"
|
||||||
|
echo '' >> "$target"
|
||||||
|
echo "echo ${sentry_cli_version}" >> "$target"
|
||||||
|
chmod +x "$target"
|
||||||
|
done
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
tar czf npm-packages-offline-cache.tar.gz ./npm-packages-offline-cache
|
||||||
|
cp npm-packages-offline-cache.tar.gz "$oldwd/"
|
||||||
|
cd "$oldwd"
|
||||||
|
echo -e "\n\nDONE creating npm dependency offline cache file 'npm-packages-offline-cache.tar.gz'"
|
||||||
|
|
||||||
|
read -p "Write changes?"
|
||||||
|
osc vc -m "${changes}" element-web.changes
|
||||||
|
dos2unix element-web.changes
|
Loading…
Reference in New Issue
Block a user