mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
Main Menu: Remove beta chat buttons (#1914)
This commit is contained in:
parent
918f1cdf7b
commit
6f7e762e6c
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable max-len */
|
||||||
const Telegraph = require('telegraph-node');
|
const Telegraph = require('telegraph-node');
|
||||||
const { JSDOM } = require('jsdom');
|
const { JSDOM } = require('jsdom');
|
||||||
const { gitlogPromise } = require('gitlog');
|
const { gitlogPromise } = require('gitlog');
|
||||||
@ -16,10 +17,12 @@ const gitOptions = {
|
|||||||
|
|
||||||
const pageTemplate = `
|
const pageTemplate = `
|
||||||
<body>\
|
<body>\
|
||||||
|
<aside><img src="https://webz.dev/icon-dev-512x512.png" /></aside>
|
||||||
<h3>Commits since ${version}</h3>\
|
<h3>Commits since ${version}</h3>\
|
||||||
<blockquote>This list is automatically updated when a new commit pushed to the beta repo</blockquote>\
|
<p><i>This list is automatically updated when a new commit pushed to the beta repo</i></p>\
|
||||||
<ul id="list"></ul>\
|
<ul id="list"></ul>\
|
||||||
<blockquote>Last updated ${new Date().toLocaleDateString('en-CA')}</blockquote>\
|
<aside><a href="https://t.me/webzchat">WebZ Discussion</a> <b>|</b> <a href="https://t.me/webzcommentsru">WebZ Обсуждение</a></aside>\
|
||||||
|
<aside><i>Last update: ${new Date().toLocaleDateString('en-CA')}</i></aside>\
|
||||||
</body>
|
</body>
|
||||||
`.trim();
|
`.trim();
|
||||||
|
|
||||||
|
@ -11,8 +11,6 @@ import {
|
|||||||
ANIMATION_LEVEL_MAX,
|
ANIMATION_LEVEL_MAX,
|
||||||
APP_NAME, APP_VERSION,
|
APP_NAME, APP_VERSION,
|
||||||
BETA_CHANGELOG_URL,
|
BETA_CHANGELOG_URL,
|
||||||
BETA_DISCUSSION_CHAT_EN,
|
|
||||||
BETA_DISCUSSION_CHAT_RU,
|
|
||||||
DEBUG,
|
DEBUG,
|
||||||
FEEDBACK_URL,
|
FEEDBACK_URL,
|
||||||
IS_BETA,
|
IS_BETA,
|
||||||
@ -211,14 +209,6 @@ const LeftMainHeader: FC<OwnProps & StateProps> = ({
|
|||||||
window.open(BETA_CHANGELOG_URL, '_blank', 'noopener');
|
window.open(BETA_CHANGELOG_URL, '_blank', 'noopener');
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleRuDiscussionClick = useCallback(() => {
|
|
||||||
openChatByUsername({ username: BETA_DISCUSSION_CHAT_RU });
|
|
||||||
}, [openChatByUsername]);
|
|
||||||
|
|
||||||
const handleEnDiscussionClick = useCallback(() => {
|
|
||||||
openChatByUsername({ username: BETA_DISCUSSION_CHAT_EN });
|
|
||||||
}, [openChatByUsername]);
|
|
||||||
|
|
||||||
const handleSwitchToWebK = useCallback(() => {
|
const handleSwitchToWebK = useCallback(() => {
|
||||||
setPermanentWebVersion('K');
|
setPermanentWebVersion('K');
|
||||||
clearWebsync();
|
clearWebsync();
|
||||||
@ -315,26 +305,12 @@ const LeftMainHeader: FC<OwnProps & StateProps> = ({
|
|||||||
Report Bug
|
Report Bug
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
{IS_BETA && (
|
{IS_BETA && (
|
||||||
<>
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon="permissions"
|
icon="permissions"
|
||||||
onClick={handleChangelogClick}
|
onClick={handleChangelogClick}
|
||||||
>
|
>
|
||||||
Beta Changelog
|
Beta Changelog
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem
|
|
||||||
icon="comments"
|
|
||||||
onClick={handleRuDiscussionClick}
|
|
||||||
>
|
|
||||||
Beta Discussion (ru)
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem
|
|
||||||
icon="comments"
|
|
||||||
onClick={handleEnDiscussionClick}
|
|
||||||
>
|
|
||||||
Beta Discussion (en)
|
|
||||||
</MenuItem>
|
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
{withOtherVersions && (
|
{withOtherVersions && (
|
||||||
<>
|
<>
|
||||||
|
@ -10,8 +10,6 @@ export const IS_PERF = process.env.APP_ENV === 'perf';
|
|||||||
export const IS_BETA = process.env.APP_ENV === 'staging';
|
export const IS_BETA = process.env.APP_ENV === 'staging';
|
||||||
|
|
||||||
export const BETA_CHANGELOG_URL = 'https://telegra.ph/WebZ-Beta-04-01';
|
export const BETA_CHANGELOG_URL = 'https://telegra.ph/WebZ-Beta-04-01';
|
||||||
export const BETA_DISCUSSION_CHAT_RU = 'webzcommentsru';
|
|
||||||
export const BETA_DISCUSSION_CHAT_EN = 'webzchat';
|
|
||||||
|
|
||||||
export const DEBUG_ALERT_MSG = 'Shoot!\nSomething went wrong, please see the error details in Dev Tools Console.';
|
export const DEBUG_ALERT_MSG = 'Shoot!\nSomething went wrong, please see the error details in Dev Tools Console.';
|
||||||
export const DEBUG_GRAMJS = false;
|
export const DEBUG_GRAMJS = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user