WebZ → WebA (#2860)

This commit is contained in:
Alexander Zinchuk 2023-04-01 06:15:59 -05:00
parent d1b74edf35
commit c276034a65
8 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
# Telegram Web Z # Telegram Web A
This project won the first prize 🥇 at [Telegram Lightweight Client Contest](https://contest.com/javascript-web-3) and now is an official Telegram client available to anyone at [web.telegram.org/z](https://web.telegram.org/z). This project won the first prize 🥇 at [Telegram Lightweight Client Contest](https://contest.com/javascript-web-3) and now is an official Telegram client available to anyone at [web.telegram.org/a](https://web.telegram.org/a).
According to the original contest rules, it has nearly zero dependencies and is fully based on its own [Teact](https://github.com/Ajaxy/teact) framework (which re-implements React paradigm). It also uses a custom version of [GramJS](https://github.com/gram-js/gramjs) as an MTProto implementation. According to the original contest rules, it has nearly zero dependencies and is fully based on its own [Teact](https://github.com/Ajaxy/teact) framework (which re-implements React paradigm). It also uses a custom version of [GramJS](https://github.com/gram-js/gramjs) as an MTProto implementation.

View File

@ -21,7 +21,7 @@ const pageTemplate = `
<h3>Commits since ${version}</h3>\ <h3>Commits since ${version}</h3>\
<p><i>This list is automatically updated when a new commit pushed to the beta repo</i></p>\ <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>\
<aside><a href="https://t.me/webzchat">WebZ Discussion</a> <b>|</b> <a href="https://t.me/webzcommentsru">WebZ Обсуждение</a></aside>\ <aside><a href="https://t.me/webzchat">WebA Discussion</a> <b>|</b> <a href="https://t.me/webzcommentsru">WebA Обсуждение</a></aside>\
<aside><i>Last update: ${new Date().toLocaleDateString('en-CA')}</i></aside>\ <aside><i>Last update: ${new Date().toLocaleDateString('en-CA')}</i></aside>\
</body> </body>
`.trim(); `.trim();
@ -41,8 +41,8 @@ updateChangelog();
async function updateTelegraph(dom) { async function updateTelegraph(dom) {
const api = new Telegraph(); const api = new Telegraph();
const content = domToNode(dom.window.document.body).children; const content = domToNode(dom.window.document.body).children;
const result = await api.editPage(AUTH_TOKEN, 'WebZ-Beta-04-01', 'Telegram WebZ Beta Changelog', content, { const result = await api.editPage(AUTH_TOKEN, 'WebA-Beta-03-20', 'Telegram WebA Beta Changelog', content, {
author_name: 'WebZ team', author_name: 'WebA team',
author_url: 'https://t.me/webztalks', author_url: 'https://t.me/webztalks',
}); });
// eslint-disable-next-line no-console // eslint-disable-next-line no-console

View File

@ -184,7 +184,7 @@ export async function requestWebView({
startParam, startParam,
themeParams: theme ? buildInputThemeParams(theme) : undefined, themeParams: theme ? buildInputThemeParams(theme) : undefined,
fromBotMenu: isFromBotMenu || undefined, fromBotMenu: isFromBotMenu || undefined,
platform: 'webz', platform: 'weba',
...(threadId && { topMsgId: threadId }), ...(threadId && { topMsgId: threadId }),
...(sendAs && { sendAs: buildInputPeer(sendAs.id, sendAs.accessHash) }), ...(sendAs && { sendAs: buildInputPeer(sendAs.id, sendAs.accessHash) }),
})); }));
@ -210,7 +210,7 @@ export async function requestSimpleWebView({
url, url,
bot: buildInputPeer(bot.id, bot.accessHash), bot: buildInputPeer(bot.id, bot.accessHash),
themeParams: theme ? buildInputThemeParams(theme) : undefined, themeParams: theme ? buildInputThemeParams(theme) : undefined,
platform: 'webz', platform: 'weba',
})); }));
return result?.url; return result?.url;

View File

@ -36,10 +36,10 @@ const SettingsPasscodeStart: FC<OwnProps> = ({
<p className="settings-item-description" dir="auto"> <p className="settings-item-description" dir="auto">
When you set up an additional passcode, a lock icon will appear on the chats page. When you set up an additional passcode, a lock icon will appear on the chats page.
Tap it to lock and unlock your Telegram WebZ. Tap it to lock and unlock your Telegram WebA.
</p> </p>
<p className="settings-item-description mb-3" dir="auto"> <p className="settings-item-description mb-3" dir="auto">
Note: if you forget your local passcode, you&apos;ll need to log out of Telegram WebZ and log in again. Note: if you forget your local passcode, you&apos;ll need to log out of Telegram WebA and log in again.
</p> </p>
</div> </div>

View File

@ -517,7 +517,7 @@ const PaymentModal: FC<OwnProps & StateProps & GlobalStateProps> = ({
onCloseAnimationEnd={handleModalClose} onCloseAnimationEnd={handleModalClose}
> >
<p> <p>
Sorry, Telegram WebZ doesn&apos;t support payments with this provider yet. <br /> Sorry, Telegram WebA doesn&apos;t support payments with this provider yet. <br />
Please use one of our mobile apps to do this. Please use one of our mobile apps to do this.
</p> </p>
<div className="dialog-buttons mt-2"> <div className="dialog-buttons mt-2">

View File

@ -1,6 +1,6 @@
import type { ApiLimitType } from './global/types'; import type { ApiLimitType } from './global/types';
export const APP_NAME = process.env.APP_NAME || 'Telegram WebZ'; export const APP_NAME = process.env.APP_NAME || 'Telegram WebA';
export const APP_VERSION = process.env.APP_VERSION!; export const APP_VERSION = process.env.APP_VERSION!;
export const RELEASE_DATETIME = process.env.RELEASE_DATETIME; export const RELEASE_DATETIME = process.env.RELEASE_DATETIME;
@ -14,7 +14,7 @@ export const IS_TEST = process.env.APP_ENV === 'test';
export const IS_PERF = process.env.APP_ENV === 'perf'; 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/WebA-Beta-03-20';
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;
@ -245,7 +245,7 @@ export const RE_TELEGRAM_LINK = /^(https?:\/\/)?telegram\.org\//i;
export const TME_LINK_PREFIX = 'https://t.me/'; export const TME_LINK_PREFIX = 'https://t.me/';
export const USERNAME_PURCHASE_ERROR = 'USERNAME_PURCHASE_AVAILABLE'; export const USERNAME_PURCHASE_ERROR = 'USERNAME_PURCHASE_AVAILABLE';
export const PURCHASE_USERNAME = 'auction'; export const PURCHASE_USERNAME = 'auction';
export const TME_WEB_DOMAINS = new Set(['t.me', 'web.t.me', 'k.t.me', 'z.t.me']); export const TME_WEB_DOMAINS = new Set(['t.me', 'web.t.me', 'a.t.me', 'k.t.me', 'z.t.me']);
// eslint-disable-next-line max-len // eslint-disable-next-line max-len
export const COUNTRIES_WITH_12H_TIME_FORMAT = new Set(['AU', 'BD', 'CA', 'CO', 'EG', 'HN', 'IE', 'IN', 'JO', 'MX', 'MY', 'NI', 'NZ', 'PH', 'PK', 'SA', 'SV', 'US']); export const COUNTRIES_WITH_12H_TIME_FORMAT = new Set(['AU', 'BD', 'CA', 'CO', 'EG', 'HN', 'IE', 'IN', 'JO', 'MX', 'MY', 'NI', 'NZ', 'PH', 'PK', 'SA', 'SV', 'US']);

View File

@ -1,4 +1,4 @@
**Telegram Web Z was updated to version 1.60** **Telegram Web A was updated to version 1.60**
[🤩](customEmoji:5373026167722876724) **Whats New** [🤩](customEmoji:5373026167722876724) **Whats New**

View File

@ -28,7 +28,7 @@ const STATOSCOPE_REFERENCE_URL = 'https://webz.dev/build-stats.json';
const DEFAULT_APP_TITLE = `Telegram${APP_ENV !== 'production' ? ' Beta' : ''}`; const DEFAULT_APP_TITLE = `Telegram${APP_ENV !== 'production' ? ' Beta' : ''}`;
const { const {
BASE_URL = 'https://web.telegram.org/z/', BASE_URL = 'https://web.telegram.org/a/',
APP_TITLE = DEFAULT_APP_TITLE, APP_TITLE = DEFAULT_APP_TITLE,
} = process.env; } = process.env;