index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/flag.svg | <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" transform="translate(0.5)" fill="#EF4444" />
<path d="M10.1 3.75H15.1143V9.6H20.9643V14.6143H15.1143V20.4643H10.1V14.6143H4.25V9.6H10.1V3.75Z" fill="white" />
</svg>
| 2,200 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/helper.tsx | import { c } from 'ttag';
import { VpnLogo } from '@proton/components/components';
import { getVPNPlan } from '@proton/components/containers/payments/features/plan';
import { getAllPlatforms, getFreeFeatures, getRefundable } from '@proton/components/containers/payments/features/vpn';
import { COUPON_CODES, CYCLE, DEFA... | 2,201 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/illustration.svg | <svg width="328" height="184" viewBox="0 0 328 184" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1095_1387)">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M137.013 11.5854L135.938 13.0812C138.94 14.408 139.131 17.5658 139.14 17.7166C139.14 ... | 2,202 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/interface.ts | import type { BaseMeasure } from '../single-signup-v2/interface';
import type { TelemetryMeasurementData } from './measure';
export type Measure = BaseMeasure<TelemetryMeasurementData>;
| 2,203 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/measure.ts | import { TelemetryAccountSignupEvents } from '@proton/shared/lib/api/telemetry';
import { CYCLE, PLANS } from '@proton/shared/lib/constants';
import { Currency } from '@proton/shared/lib/interfaces';
export type InteractFields = 'username' | 'email' | 'email_confirm' | 'pwd' | 'pwd_confirm';
type TelemetryBoolean = '... | 2,204 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/vpn-upsell-illustration.svg | <svg width="400" height="494" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#a)">
<path fill="url(#b)" d="M0 0h400v494H0z" />
<g filter="url(#c)">
<g clip-path="url(#d)">
<rect x="-28.197" y="152.843" width="487.557" height="267.14" rx="3.635" fill="#1... | 2,205 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/planCustomizer/ButtonNumberInput.tsx | import { ComponentPropsWithoutRef, useState } from 'react';
import { c } from 'ttag';
import { Icon } from '@proton/components/components';
import clsx from '@proton/utils/clsx';
interface Props extends ComponentPropsWithoutRef<'div'> {
id: string;
min: number;
max: number;
step: number;
value: n... | 2,206 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/planCustomizer/PlanCustomizer.tsx | import { ComponentPropsWithoutRef } from 'react';
import { c } from 'ttag';
import { Icon, Info } from '@proton/components';
import {
ADDON_NAMES,
MAX_ADDRESS_ADDON,
MAX_DOMAIN_PRO_ADDON,
MAX_IPS_ADDON,
MAX_MEMBER_ADDON,
MAX_MEMBER_VPN_B2B_ADDON,
MAX_SPACE_ADDON,
MAX_VPN_ADDON,
} from ... | 2,207 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup | petrpan-code/ProtonMail/WebClients/applications/account/src/app/single-signup/planCustomizer/getAddonsPricing.ts | import { ADDON_NAMES, GIGA } from '@proton/shared/lib/constants';
import { getSupportedAddons } from '@proton/shared/lib/helpers/planIDs';
import { Cycle, Plan, PlanIDs, getPlanMaxIPs } from '@proton/shared/lib/interfaces';
import isTruthy from '@proton/utils/isTruthy';
import { AddonKey, addonLimit } from './PlanCust... | 2,208 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/AppA.tsx | // This is a hack to have the import sort prettier plugin respect that the .scss file gets imported first
// so that local css imports from components would not be ordered before the main import
import '../app/app.scss';
| 2,209 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/AppB.tsx | import { Fragment, useMemo, useState } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import {
ApiProvider,
CacheProvider,
CompatibilityCheck,
ConfigProvider,
CreateNotificationOptions,
ErrorBoundary,
ExperimentsProvider,
FeaturesProvider,
Icons,
Modal... | 2,210 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/MainContainer.tsx | import { StandardErrorPage } from '@proton/components';
import { ProductParam } from '@proton/shared/lib/apps/product';
import DeleteAccount from './actions/DeleteAccount';
import SubscribeAccount from './actions/SubscribeAccount';
import { SupportedActions } from './helper';
interface Props {
action: SupportedAc... | 2,211 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/README.internal.md | # Lite account application
Documentation can be found at https://confluence.protontech.ch/display/CP/Lite+account
| 2,212 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/Setup.tsx | import { ReactNode, useEffect, useRef, useState } from 'react';
import { flushSync } from 'react-dom';
import {
EventManagerProvider,
ModalsChildren,
StandardLoadErrorPage,
useApi,
useCache,
useErrorHandler,
useThemeQueryParameter,
} from '@proton/components';
import { authJwt, pullForkSess... | 2,213 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/broadcast.ts | import genericBroadcast, { GenericErrorPayload } from '@proton/shared/lib/broadcast';
export enum MessageType {
SUCCESS = 'SUCCESS',
ERROR = 'ERROR',
CLOSE = 'CLOSE',
LOADED = 'LOADED',
NOTIFICATION = 'NOTIFICATION',
}
type Message =
| {
type: MessageType.SUCCESS;
}
| {
... | 2,214 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/helper.ts | import { ProductParam } from '@proton/shared/lib/apps/product';
import { APPS } from '@proton/shared/lib/constants';
export enum SupportedActions {
DeleteAccount = 'delete-account',
SubscribeAccount = 'subscribe-account',
SubscribeAccountLink = 'subscribe-account-link',
}
export const getApp = (appQueryPa... | 2,215 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/index.tsx | import ReactDOM from 'react-dom';
import '@proton/polyfill';
import './AppA';
import App from './AppB';
ReactDOM.render(<App />, document.querySelector('.app-root'));
| 2,216 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/actions/DeleteAccount.tsx | import { useRef } from 'react';
import DeleteAccountModal from '@proton/components/containers/account/DeleteAccountModal';
import broadcast, { MessageType } from '../broadcast';
const DeleteAccount = () => {
const successRef = useRef(false);
const handleSuccess = async () => {
successRef.current = t... | 2,217 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/actions/SubscribeAccount.scss | @import '~@proton/styles/scss/lib';
.subscribe-account {
&--vpn-bg {
@include media('>xsmall') {
background: radial-gradient(
45.16% 45.16% at 50% -4.08%,
rgb(0 240 195 / 0.3) 0%,
rgb(74 136 255 / 0.2) 58.39%,
rgb(109 74 255 / 0) 100%
),
#191927;
--logo-text-proton-color: var(--te... | 2,218 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/actions/SubscribeAccount.tsx | import { useRef, useState } from 'react';
import { c } from 'ttag';
import { Button } from '@proton/atoms/Button';
import {
CalendarLogo,
DriveLogo,
Icon,
Logo,
MailLogo,
PassLogo,
ProtonLogo,
Tooltip,
VpnLogo,
useFlag,
useOrganization,
usePlans,
useSubscription,
... | 2,219 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/LiteBox.tsx | import { ReactNode } from 'react';
interface Props {
children: ReactNode;
maxWidth?: number;
}
const LiteBox = ({ children, maxWidth = 52 }: Props) => {
return (
<div
className="m-0 sm:m-4 p-4 sm:p-8 rounded sm:shadow-lifted bg-norm w-full max-w-custom"
style={{ '--max-w-cu... | 2,220 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/LiteLayout.scss | @import '~@proton/styles/scss/lib';
.lite-layout {
&--light-bg {
@include media('>xsmall') {
background: linear-gradient(68.66deg, #e8e2ff 1.3%, #f7f5ff 50%);
}
}
&--dark-bg {
@include media('>xsmall') {
background: #191927;
}
}
}
| 2,221 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/LiteLayout.tsx | import { ReactNode } from 'react';
import clsx from '@proton/utils/clsx';
import getIsDarkLayout from '../helper';
import './LiteLayout.scss';
interface Props {
children: ReactNode;
searchParams?: URLSearchParams;
className?: string;
}
const LiteLayout = ({ searchParams, className, children }: Props) =... | 2,222 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/LiteLoaderPage.tsx | import { CircleLoader } from '@proton/atoms';
const LiteLoaderPage = () => {
return (
<div className="flex flex-justify-center flex-align-items-center h-full">
<CircleLoader className="color-primary" size="large" />
</div>
);
};
export default LiteLoaderPage;
| 2,223 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/ExpiredLink/ExpiredLink.tsx | import { c } from 'ttag';
import expiredLink from './expiredLink.svg';
const ExpiredLink = () => {
return (
<div className="h-full flex flex-column flex-justify-center flex-align-items-center bg-norm text-center">
<img src={expiredLink} alt="" />
<h1 className="text-bold text-2xl m... | 2,224 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/ExpiredLink/expiredLink.svg | <svg width="256" height="158" viewBox="0 0 256 158" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M35.7 30.9335C35.7 26.1101 39.6101 22.2 44.4335 22.2H211.566C216.39 22.2 220.3 26.1101 220.3 30.9335V148.066C220.3 152.89 216.39 156.8 211.566 156.8H44.4335C39.6101 156.8 35.7 152.89 35.7 148.066V30.... | 2,225 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/ExpiredLink/index.ts | import ExpiredLink from './ExpiredLink';
export default ExpiredLink;
| 2,226 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/PromotionAlreadyApplied/PromotionAlreadyApplied.tsx | import { c } from 'ttag';
import { ProtonLogo } from '@proton/components/components';
import PublicFooter from '../../../app/components/PublicFooter';
import promotionApplied from './promotionApplied.svg';
const PromotionAlreadyApplied = () => {
return (
<div className="h-full overflow-auto flex flex-jus... | 2,227 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/PromotionAlreadyApplied/index.ts | import PromotionAlreadyApplied from './PromotionAlreadyApplied';
export default PromotionAlreadyApplied;
| 2,228 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/PromotionAlreadyApplied/promotionApplied.svg | <svg width="152" height="100" viewBox="0 0 152 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_31921_59487)">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M50.5089 20H101.491C105.638 20 109 23.404 109 27.603V92.397C109 96.596 105.638 100 ... | 2,229 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/PromotionExpired/PromotionExpired.tsx | import { c } from 'ttag';
import promotionExpired from './promotionExpired.svg';
const PromotionExpired = () => {
return (
<div className="h-full flex flex-column flex-justify-center flex-align-items-center bg-norm text-center">
<img src={promotionExpired} alt="" />
<h1 className="... | 2,230 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/PromotionExpired/index.ts | import PromotionExpired from './PromotionExpired';
export default PromotionExpired;
| 2,231 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/PromotionExpired/promotionExpired.svg | <svg xmlns="http://www.w3.org/2000/svg" width="250" height="149" viewBox="0 0 250 149" fill="none">
<path
d="M29.2225 22.4335C29.2225 17.6101 33.1326 13.7 37.956 13.7H205.089C209.912 13.7 213.822 17.6101 213.822 22.4335V139.566C213.822 144.39 209.912 148.3 205.089 148.3H37.956C33.1326 148.3 29.2225 144.39 2... | 2,232 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/SubscribeAccountDone/SubscribeAccountDone.tsx | import { c } from 'ttag';
import { SubscribeType } from '../../types/SubscribeType';
import updateSuccess from './updateSuccess.svg';
const SubscribeAccountDone = ({ type }: { type: SubscribeType }) => {
return (
<div className="py-14 text-center">
{type === SubscribeType.Subscribed && (
... | 2,233 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/SubscribeAccountDone/index.ts | import SubscribeAccountDone from './SubscribeAccountDone';
export default SubscribeAccountDone;
| 2,234 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/components/SubscribeAccountDone/updateSuccess.svg | <svg width="384" height="216" viewBox="0 0 384 216" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M192 199H137.943C135.774 199 134 197.212 134 195.026V135H192V199Z" fill="url(#paint0_linear_5741_18656)" />
<path d="M133.82 135H192L176.18 119H118L133.82 135Z" fill="#FFE3BA" />
<path d="M192 199H24... | 2,235 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src/lite | petrpan-code/ProtonMail/WebClients/applications/account/src/lite/types/SubscribeType.ts | export enum SubscribeType {
Subscribed,
Closed,
}
| 2,236 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/business.signup.ts | import { Parameters } from './interface';
import signup from './signup';
const data = (): Parameters => ({
...signup(),
});
export default data;
| 2,237 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/calendar.login.ts | import { CALENDAR_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getLoginDescription, getLoginTitle } from './interface';
const data = (): Parameters => ({
title: getLoginTitle(CALENDAR_APP_NAME),
description: getLoginDescription(CALENDAR_APP_NAME),
});
export default data;
| 2,238 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/calendar.signup.ts | import { CALENDAR_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getSignupDescription, getSignupTitle } from './interface';
const data = (): Parameters => ({
title: getSignupTitle(CALENDAR_APP_NAME),
description: getSignupDescription(CALENDAR_APP_NAME),
});
export default data;
| 2,239 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/drive.login.ts | import { DRIVE_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getLoginDescription, getLoginTitle } from './interface';
const data = (): Parameters => ({
title: getLoginTitle(DRIVE_APP_NAME),
description: getLoginDescription(DRIVE_APP_NAME),
});
export default data;
| 2,240 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/drive.signup.ts | import { DRIVE_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getSignupDescription, getSignupTitle } from './interface';
const data = (): Parameters => ({
title: getSignupTitle(DRIVE_APP_NAME),
description: getSignupDescription(DRIVE_APP_NAME),
});
export default data;
| 2,241 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/forgot-username.ts | import { c } from 'ttag';
import { BRAND_NAME, CALENDAR_SHORT_APP_NAME, DRIVE_SHORT_APP_NAME, MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters } from './interface';
const data = (): Parameters => ({
title: c('Metadata title').t`Find your ${BRAND_NAME} Account username`,
description: c... | 2,242 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/interface.ts | import { c } from 'ttag';
export interface Parameters {
title: string;
description: string;
}
export const getLoginTitle = (appName: string) => {
return c('Metadata title').t`${appName}: Sign-in`;
};
export const getLoginDescription = (appName: string) => {
return c('Metadata title').t`Sign in to acce... | 2,243 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/login.ts | import { c } from 'ttag';
import { BRAND_NAME, CALENDAR_SHORT_APP_NAME, DRIVE_SHORT_APP_NAME, MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getLoginTitle } from './interface';
const data = (): Parameters => ({
title: getLoginTitle(c('Metadata title').t`${BRAND_NAME} Account`),
des... | 2,244 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/mail.login.ts | import { MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getLoginDescription, getLoginTitle } from './interface';
const data = (): Parameters => ({
title: getLoginTitle(MAIL_APP_NAME),
description: getLoginDescription(MAIL_APP_NAME),
});
export default data;
| 2,245 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/mail.signup.ts | import { MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getSignupDescription, getSignupTitle } from './interface';
const data = (): Parameters => ({
title: getSignupTitle(MAIL_APP_NAME),
description: getSignupDescription(MAIL_APP_NAME),
});
export default data;
| 2,246 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/pass.login.ts | import { PASS_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getLoginDescription, getLoginTitle } from './interface';
const data = (): Parameters => ({
title: getLoginTitle(PASS_APP_NAME),
description: getLoginDescription(PASS_APP_NAME),
});
export default data;
| 2,247 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/pass.signup.ts | import { PASS_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getSignupDescription, getSignupTitle } from './interface';
const data = (): Parameters => ({
title: getSignupTitle(PASS_APP_NAME),
description: getSignupDescription(PASS_APP_NAME),
});
export default data;
| 2,248 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/refer-a-friend.ts | import { Parameters } from './interface';
import trial from './trial';
const data = (): Parameters => ({
...trial(),
});
export default data;
| 2,249 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/reset-password.ts | import { c } from 'ttag';
import { BRAND_NAME, CALENDAR_SHORT_APP_NAME, DRIVE_SHORT_APP_NAME, MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters } from './interface';
const data = (): Parameters => ({
title: c('Metadata title').t`Reset your ${BRAND_NAME} Account password`,
description: ... | 2,250 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/signup.ts | import { c } from 'ttag';
import { BRAND_NAME, CALENDAR_SHORT_APP_NAME, DRIVE_SHORT_APP_NAME, MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters } from './interface';
const data = (): Parameters => ({
title: c('Metadata title').t`Create a ${BRAND_NAME} Account | Take back your privacy`,
... | 2,251 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/switch.ts | import { Parameters } from './interface';
import login from './login';
const data = (): Parameters => ({
...login(),
});
export default data;
| 2,252 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/trial.ts | import { c } from 'ttag';
import { MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters } from './interface';
const planName = `${MAIL_APP_NAME} Plus`;
const data = (): Parameters => ({
title: c('Metadata title').t`Try ${planName} for free with this link`,
description: c('Metadata title'... | 2,253 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/vpn.login.ts | import { VPN_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getLoginDescription, getLoginTitle } from './interface';
const data = (): Parameters => ({
title: getLoginTitle(VPN_APP_NAME),
description: getLoginDescription(VPN_APP_NAME),
});
export default data;
| 2,254 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/vpn.pricing.ts | import { Parameters } from './interface';
import signup from './vpn.signup';
const data = (): Parameters => ({
...signup(),
});
export default data;
| 2,255 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/pages/vpn.signup.ts | import { VPN_APP_NAME } from '@proton/shared/lib/constants';
import { Parameters, getSignupDescription, getSignupTitle } from './interface';
const data = (): Parameters => ({
title: getSignupTitle(VPN_APP_NAME),
description: getSignupDescription(VPN_APP_NAME),
});
export default data;
| 2,256 |
0 | petrpan-code/ProtonMail/WebClients/applications/account/src | petrpan-code/ProtonMail/WebClients/applications/account/src/static/localeMapping.ts | export { getLangAttribute } from '@proton/shared/lib/i18n/helper';
export const getLanguage = (locale: string) => locale.split(/[_-]/)[0];
const localeMapping = {
fr_FR: 'fr',
en_US: 'en',
es_LA: 'es',
pt_PT: 'pt',
};
const getLanguageLocale = (locale: string) => {
const result = localeMapping[lo... | 2,257 |
0 | petrpan-code/ProtonMail/WebClients/applications/account | petrpan-code/ProtonMail/WebClients/applications/account/typings/index.d.ts | declare module '*.gif';
declare module '*.md';
declare module '*.png';
declare module '*.ttf';
declare module '*.pdf';
| 2,258 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/.eslintrc.js | module.exports = {
extends: ['@proton/eslint-config-proton'],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
ignorePatterns: ['.eslintrc.js'],
overrides: [
{
files: ['**/__tests__/**/*.[jt]s?(x)... | 2,259 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/CHANGELOG.md | ## Release 5.0.17 — Nov 21st, 2023
### Improvements
- Fixed an issue where event invitations from the Deutsche Bahn would have the wrong dates due to an invalid format in the ICS file
- Updates to your calendar events are now visible in the search results immediately
### Fixes
- Fixed an issue where certain e... | 2,260 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/LICENSE | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Pream... | 2,261 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/docker-compose.yml | version: '3.7'
services:
web:
image: gcr.io/proton-dev-ops/web/calendar/proton-calendar:branch-develop
environment:
# Feel free to change any of these values on your local .env file
API_ENDPOINT:
MAIL_ENDPOINT:
CONTACTS_ENDPOINT:
SETTINGS_... | 2,262 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/favicon.config.js | const path = require('path');
const url = 'https://calendar.proton.me/';
module.exports = {
logo: path.resolve('./src/favicon.svg'),
logoMaskable: path.resolve('./src/icon-maskable.svg'),
favicons: {
appName: 'Proton Calendar',
appDescription:
'Proton Calendar helps you stay on... | 2,263 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/jest.config.js | module.exports = {
setupFilesAfterEnv: ['./jest.setup.js'],
moduleDirectories: ['<rootDir>/node_modules', 'node_modules'],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/app/locales.ts'],
testEnvironment: './jest.env.js',
transformIgnorePatterns: [
'node_m... | 2,264 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/jest.env.js | // Stolen from: https://github.com/ipfs/jest-environment-aegir/blob/master/src/index.js
// Overcomes error from jest internals.. this thing: https://github.com/facebook/jest/issues/6248
// Mostly needed for making OpenPGP.js works
const JSDOMEnvironment = require('jest-environment-jsdom').default;
class MyEnvironment... | 2,265 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/jest.setup.js | import '@testing-library/jest-dom';
import '@proton/testing/lib/mockMatchMedia';
import '@proton/testing/lib/mockUnleash';
const { getComputedStyle } = window;
window.getComputedStyle = (elt) => getComputedStyle(elt);
window.ResizeObserver = jest.fn().mockImplementation(() => ({
observe: jest.fn(),
unobserve... | 2,266 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/jest.transform.js | // Custom Jest transform implementation that injects test-specific babel presets.
module.exports = require('babel-jest').default.createTransformer({
presets: ['@babel/preset-env', ['@babel/preset-react', { runtime: 'automatic' }], '@babel/preset-typescript'],
plugins: [
'@babel/plugin-proposal-object-re... | 2,267 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/package.json | {
"name": "proton-calendar",
"description": "React web application to manage ProtonMail calendar",
"keywords": [],
"license": "GPL-3.0",
"author": "",
"main": "index.js",
"scripts": {
"build": "cross-env NODE_ENV=production TS_NODE_PROJECT=\"../../tsconfig.webpack.json\" proton-pack ... | 2,268 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/sentry.properties | defaults.project=web-calendar
| 2,269 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/tsconfig.json | {
"extends": "../../tsconfig.base.json"
}
| 2,270 |
0 | petrpan-code/ProtonMail/WebClients/applications | petrpan-code/ProtonMail/WebClients/applications/calendar/webpack.config.ts | import getConfig from '@proton/pack/webpack.config';
export default getConfig;
| 2,271 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/doc/dst.md | # DAYLIGHT SAVING TIME (DST): HOW WE DEAL WITH IT
## Important concepts
- UTC - Coordinated Universal Time. This is the standard in the internet world, and also called "Zulu time" (Zulu is the code-name for the letter Z in the military/navy). A time, written as an ISO 8601 string, `1999-05-05T12:00:00.000Z` is a UT... | 2,272 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/doc/encryption_bounds.md | # DETERMINING THE SIZE OF YOUR CIPHERTEXT
## The general problem
You might find that the API is imposing a maximum of characters for some encrypted data. To meet this limit, you will probably need to impose some maximum on characters on the cleartext data.
One example where this happens in with the so-called purpose... | 2,273 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/.locale-state.metadata | {
"project": "fe-calendar",
"locale": "c1c61c2f48453e6ba63dcf9db274e8ce6102a623"
} | 2,274 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/be_BY.json | {
"headers": {
"plural-forms": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);",
"language": "be_BY"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Поўны выгляд (бачны ўсе падрабязнасці падзеі)"
],
... | 2,275 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/ca_ES.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "ca_ES"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Vista completa (mostra tots els detalls dels esdeveniments)"
],
"Limited view (see only free/busy)": [
"Vista ... | 2,276 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/cs_CZ.json | {
"headers": {
"plural-forms": "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;",
"language": "cs_CZ"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Plné zobrazení (zobrazit všechny podrobnosti o události)"
],
"Limited view (see only free/b... | 2,277 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/da_DK.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "da_DK"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Fuld visning (se alle detaljer om begivenheden)"
],
"Limited view (see only free/busy)": [
"Begrænset visning ... | 2,278 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/de_DE.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "de_DE"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Voller Lesezugriff (alle Termindetails anzeigen)"
],
"Limited view (see only free/busy)": [
"Eingeschränkter L... | 2,279 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/el_GR.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "el_GR"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Πλήρης προβολή (δείτε όλες τις λεπτομέρειες)"
],
"Limited view (see only free/busy)": [
"Περιορισμένη προβολή ... | 2,280 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/en_US.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "en_US"
},
"contexts": {
"Action": {
"Ok": [
"OK"
],
"Toggle Contact app": [
"Toggle Contacts app"
],
"You can't send vCard files of more than ${ maxAttachments } contacts": [
... | 2,281 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/es_ES.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "es_ES"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Vista completa (ver todos los detalles del evento)"
],
"Limited view (see only free/busy)": [
"Vista limitada ... | 2,282 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/es_LA.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "es_LA"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Vista completa (ver todos los detalles de eventos)"
],
"Limited view (see only free/busy)": [
"Vista limitada ... | 2,283 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/fi_FI.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "fi_FI"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Täysi tarkastelu (näytä kaikki tapahtumatiedot)"
],
"Limited view (see only free/busy)": [
"Rajoitettu tarkast... | 2,284 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/fr_FR.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n >= 2);",
"language": "fr_FR"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Vue complète (voir toutes les informations des événements)"
],
"Limited view (see only free/busy)": [
"Vue lim... | 2,285 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/hi_IN.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "hi_IN"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"पूरा देखें (सारा इवेंट जानकारी देखें)"
],
"Limited view (see only free/busy)": [
"सीमित व्यू (सिर्फ खाली/व्यस्... | 2,286 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/hr_HR.json | {
"headers": {
"plural-forms": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);",
"language": "hr_HR"
},
"contexts": {
"Action": {
"${ BRAND_NAME } shop": [
"${ BRAND_NAME } dućan"
],
"Activate recovery": [
"Aktiv... | 2,287 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/hu_HU.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "hu_HU"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Teljes megtekintés (az esemény összes adatának megtekintése)"
],
"Limited view (see only free/busy)": [
"Korlá... | 2,288 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/id_ID.json | {
"headers": {
"plural-forms": "nplurals=1; plural=0;",
"language": "id_ID"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Tampilan penuh (lihat seluruh rincian acara)"
],
"Limited view (see only free/busy)": [
"Tampilan terbatas (hanya tam... | 2,289 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/it_IT.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "it_IT"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Vista completa (vedi tutti i dettagli dell'evento)"
],
"Limited view (see only free/busy)": [
"Vista limitata ... | 2,290 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/ja_JP.json | {
"headers": {
"plural-forms": "nplurals=1; plural=0;",
"language": "ja_JP"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"すべて表示 (すべてのイベント詳細)"
],
"Limited view (see only free/busy)": [
"一部だけ表示 (空きまたは忙しい)"
]
},
"account": {
... | 2,291 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/ka_KA.json | {
"headers": {
"plural-forms": "nplurals=1; plural=0;",
"language": "ka_KA"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"სრული ხედი (იხილეთ ყველა მოვლენის დეტალები)"
],
"Limited view (see only free/busy)": [
"შეზღუდული ხედი (დაინახავთ, მხ... | 2,292 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/kab_DZ.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1)",
"language": "kab_DZ"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Taskant taččurant (wali meṛṛa talqayt n tedyant)"
]
},
"account": {
"Mail forward stopped": [
"Awelleh... | 2,293 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/ko_KO.json | {
"headers": {
"plural-forms": "nplurals=1; plural=0;",
"language": "ko_KO"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"모두 보기 (이벤트 상세사항 보기)"
],
"Limited view (see only free/busy)": [
"제한된 보기 (여유/바쁨만 볼 수 있음)"
]
},
"account":... | 2,294 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/nl_NL.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "nl_NL"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Volledig beeld (bekijk alle afspraakdetails)"
],
"Limited view (see only free/busy)": [
"Beperkt beeld (bekijk... | 2,295 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/pl_PL.json | {
"headers": {
"plural-forms": "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);",
"language": "pl_PL"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Pełny odczyt (widzi szczegóły wydarzeń)"
],
"Limited view (s... | 2,296 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/pt_BR.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n > 1);",
"language": "pt_BR"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Visualização completa (ver todos os detalhes do evento)"
],
"Limited view (see only free/busy)": [
"Visualizaçã... | 2,297 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/pt_PT.json | {
"headers": {
"plural-forms": "nplurals=2; plural=(n != 1);",
"language": "pt_PT"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Visualização completa (ver todos os detalhes do evento)"
],
"Limited view (see only free/busy)": [
"Visualizaç... | 2,298 |
0 | petrpan-code/ProtonMail/WebClients/applications/calendar | petrpan-code/ProtonMail/WebClients/applications/calendar/locales/ro_RO.json | {
"headers": {
"plural-forms": "nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2);",
"language": "ro_RO"
},
"contexts": {
"Access level": {
"Full view (see all event details)": [
"Vedere completă (toate detaliile evenimentului)"
],
"Limited view (see... | 2,299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.