cicy-desktop 2.1.280 → 2.1.281
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/windows/add-team.bat +43 -0
- package/src/backends/homepage-react/assets/index-BzYBKzQW.js +377 -0
- package/src/backends/homepage-react/index.html +1 -1
- package/src/main.js +5 -1
- package/src/profiles/profile-store.js +29 -0
- package/src/tabbrowser/panel-cells.js +84 -5
- package/src/tabbrowser/panel-preload.js +3 -0
- package/src/tabbrowser/telegram-identity.js +77 -0
- package/src/tabbrowser/telegram-matrix.html +152 -43
- package/test/profile-store-note.test.js +27 -0
- package/test/telegram-identity.test.js +41 -0
- package/test/telegram-matrix.test.js +14 -8
- package/workers/render/src/App.jsx +29 -7
- package/src/backends/homepage-react/assets/index-Bok65e-y.js +0 -377
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
setlocal
|
|
3
|
+
rem ============================================================
|
|
4
|
+
rem CiCy Desktop - add a team by deeplink
|
|
5
|
+
rem
|
|
6
|
+
rem Usage:
|
|
7
|
+
rem add-team.bat -> uses the values below
|
|
8
|
+
rem add-team.bat <url> [title] [token]
|
|
9
|
+
rem
|
|
10
|
+
rem Works with the installed CiCy Desktop (registers cicy-desktop://).
|
|
11
|
+
rem If the app is not running it is launched; if it is running the
|
|
12
|
+
rem team is added to the running instance. No login is required:
|
|
13
|
+
rem the team is stored locally (teams.json) and appears in "我的团队".
|
|
14
|
+
rem ============================================================
|
|
15
|
+
|
|
16
|
+
rem ---- defaults (edit these before distributing) ----
|
|
17
|
+
set "TEAM_URL=http://127.0.0.1:8008"
|
|
18
|
+
set "TEAM_TITLE=My Team"
|
|
19
|
+
set "TEAM_TOKEN="
|
|
20
|
+
|
|
21
|
+
if not "%~1"=="" set "TEAM_URL=%~1"
|
|
22
|
+
if not "%~2"=="" set "TEAM_TITLE=%~2"
|
|
23
|
+
if not "%~3"=="" set "TEAM_TOKEN=%~3"
|
|
24
|
+
|
|
25
|
+
rem URL-encode the pieces with PowerShell (handles spaces, Chinese, & etc.)
|
|
26
|
+
for /f "usebackq delims=" %%E in (`powershell -NoProfile -Command "[uri]::EscapeDataString('%TEAM_URL%')"`) do set "ENC_URL=%%E"
|
|
27
|
+
for /f "usebackq delims=" %%E in (`powershell -NoProfile -Command "[uri]::EscapeDataString('%TEAM_TITLE%')"`) do set "ENC_TITLE=%%E"
|
|
28
|
+
set "ENC_TOKEN="
|
|
29
|
+
if not "%TEAM_TOKEN%"=="" for /f "usebackq delims=" %%E in (`powershell -NoProfile -Command "[uri]::EscapeDataString('%TEAM_TOKEN%')"`) do set "ENC_TOKEN=%%E"
|
|
30
|
+
|
|
31
|
+
set "LINK=cicy-desktop://addTeam?title=%ENC_TITLE%&url=%ENC_URL%"
|
|
32
|
+
if not "%ENC_TOKEN%"=="" set "LINK=%LINK%&token=%ENC_TOKEN%"
|
|
33
|
+
|
|
34
|
+
echo Adding team "%TEAM_TITLE%" (%TEAM_URL%) ...
|
|
35
|
+
start "" "%LINK%"
|
|
36
|
+
if errorlevel 1 (
|
|
37
|
+
echo Failed to open %LINK%
|
|
38
|
+
echo Is CiCy Desktop installed? ^(it registers the cicy-desktop:// protocol on first launch^)
|
|
39
|
+
pause
|
|
40
|
+
exit /b 1
|
|
41
|
+
)
|
|
42
|
+
echo Done. The team will show up in CiCy Desktop ^> 我的团队.
|
|
43
|
+
endlocal
|